1 2010-06-10 Glenn Morris <rgm@gnu.org>
3 * editfns.c (Fbyte_to_string): Pacify compiler.
5 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
7 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
9 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
10 Check `object's type before accessing its guts.
12 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
14 * s/usg5-4.h: Fix previous change.
15 Suggested by Lawrence Mitchell <wence@gmx.li>
17 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
19 * minibuf.c (Fall_completions): Add more checks.
21 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
23 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
25 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
27 * lread.c (X_OK): Remove, unused.
29 * dispnew.c: Remove obsolete comment.
31 Remove INCLUDED_FCNTL.
32 * xterm.c (INCLUDED_FCNTL):
33 * callproc.c (INCLUDED_FCNTL):
34 * alloc.c (INCLUDED_FCNTL):
35 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
36 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
38 2010-06-07 Martin Rudalics <rudalics@gmx.at>
40 * window.c (Fselect_window): Move `record_buffer' up to the
41 beginning of this function, so the buffer gets recorded
42 even if the selected window does not change.
43 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
45 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
47 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
48 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
50 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
52 Remove BSTRING related code, all platforms define it.
53 * s/usg5-4.h (BSTRING): Remove definition.
54 * s/template.h (BSTRING):
55 * s/msdos.h (BSTRING):
56 * s/ms-w32.h (BSTRING):
57 * s/hpux10-20.h (BSTRING):
58 * s/gnu-linux.h (BSTRING):
59 * s/darwin.h (BSTRING):
60 * s/cygwin.h (BSTRING):
61 * s/bsd-common.h (BSTRING):
62 * s/aix4-2.h (BSTRING): Likewise.
63 * sysdep.c: Remove code depending on BSTRING not being defined.
65 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
67 Remove obsolete macro BASE_LEADING_CODE_P.
68 * character.h (BASE_LEADING_CODE_P): Remove.
69 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
70 * buffer.c (Fset_buffer_multibyte):
71 * indent.c (scan_for_column, compute_motion):
72 * insdel.c (count_combining_before, count_combining_after):
73 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
75 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
77 Turn `directory-sep-char' into a noop.
79 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
80 (DIRECTORY_SEP): Define unconditionally.
82 * s/ms-w32.h (DIRECTORY_SEP): Remove.
84 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
85 call dostounix_filename directly.
87 * fileio.c (CORRECT_DIR_SEPS): Remove.
88 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
89 (Fsubstitute_in_file_name): Use dostounix_filename instead.
90 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
91 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
93 * w32proc.c (CORRECT_DIR_SEPS): Remove.
94 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
96 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
98 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
101 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
103 * ccl.c (Fccl_program_p): Fix typo in docstring.
105 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
107 Move UNEXEC definition to autoconf.
108 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
109 * s/sol2-10.h (UNEXEC):
110 * s/irix6-5.h (UNEXEC):
111 * s/hpux10-20.h (UNEXEC):
112 * s/gnu-linux.h (UNEXEC):
113 * s/darwin.h (UNEXEC):
114 * s/cygwin.h (UNEXEC):
115 * s/bsd-common.h (UNEXEC):
116 * s/aix4-2.h (UNEXEC):
117 * m/alpha.h (UNEXEC): Likewise.
118 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
120 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
122 Remove obsolete pre-unicode2 macros.
123 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
124 * composite.c (composition_reseat_it):
126 * fns.c (Ffillarray):
127 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
128 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
130 2010-06-03 Juri Linkov <juri@jurta.org>
132 * buffer.c (Fother_buffer): Add CHECK_FRAME.
133 (Fswitch_to_buffer): Remove unused variable `err'.
135 2010-06-03 Glenn Morris <rgm@gnu.org>
137 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
139 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
140 now that AH_BOTTOM does it.
142 * m/hp800.h (HAVE_ALLOCA):
143 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
145 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
146 Remove NOT_C_CODE tests, it is always true now.
148 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
150 Fix config.h includes.
158 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
161 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
163 * s/sol2-6.h: Remove obsolete comments.
165 Remove unnecessary alloca.h includes.
166 * keymap.c: Do not include alloca.h, config.h does that.
167 * sysdep.c: Likewise. Do not define fwrite, not used.
169 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
171 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
172 the HAVE_TERMIO where it belongs (bug#6149).
174 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
176 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
179 2010-05-30 Eli Zaretskii <eliz@gnu.org>
181 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
182 state is always cached (bug#6306).
184 2010-05-29 Eli Zaretskii <eliz@gnu.org>
186 Fix cursor motion in bidi-reordered continued lines.
187 * xdisp.c (try_cursor_movement): Backup to non-continuation line
188 only after finding point's row. Fix the logic. Rewrite the loop
189 over continuation lines in bidi-reordered buffers. Return
190 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
191 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
193 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
195 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
197 2010-05-28 Kenichi Handa <handa@m17n.org>
199 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
200 Don't sheck SPEC if it is nil.
201 (font_list_entities): Call font_delete_unmatched if
202 Vface_ignored_fonts is non-nil. (Bug#6287)
204 2010-05-28 Glenn Morris <rgm@gnu.org>
206 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
208 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
210 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
212 (internal_delete_file, Frename_file): Callers changed.
213 (delete_by_moving_to_trash): Doc fix.
214 (Fdelete_directory_internal): Don't move to trash.
216 * callproc.c (delete_temp_file):
217 * buffer.c (Fkill_buffer): Callers changed.
219 * lisp.h: Update prototype.
221 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
223 * xdisp.c (redisplay_window): After redisplay, check if point is
224 still valid before setting it (Bug#6177).
226 2010-05-27 Glenn Morris <rgm@gnu.org>
228 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
229 Convert comments to Makefile format.
231 * Makefile.in (bootstrap-clean): No more Makefile.c.
233 2010-05-26 Glenn Morris <rgm@gnu.org>
235 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
236 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
238 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
240 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
242 2010-05-26 Kenichi Handa <handa@m17n.org>
244 * composite.c (composition_compute_stop_pos): Fix condition for
247 2010-05-25 Glenn Morris <rgm@gnu.org>
249 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
250 Move before TEMACS_LDFLAGS.
251 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
252 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
254 * Makefile.in (NOT_C_CODE): No longer define.
255 (config.h): No longer include.
257 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
258 variables it may reference.
260 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
261 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
263 2010-05-25 Kenichi Handa <handa@m17n.org>
265 * dispextern.h (struct composition_it): New members rule_idx and
268 * xdisp.c (set_iterator_to_next): While scanning backward, assume
269 that the character positions of IT point the last character of the
270 current grapheme cluster.
271 (next_element_from_composition): Don't change character positions
273 (append_composite_glyph): Set glyph->charpos to
276 * composite.c (autocmp_chars): Change the first argument to RULE,
277 and try composition with RULE only.
278 (composition_compute_stop_pos): Record the index number of the
279 composition rule in CMP_IT->rule_idx.
280 (composition_reseat_it): Call autocmp_chars repeatedly until the
281 correct rule of the composition is found.
282 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
283 is at the last character of the current grapheme cluster when
284 CMP_IT->reversed_p is nonzero.
286 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
288 * editfns.c (Fbyte_to_string): New function.
290 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
292 * process.c (Fmake_network_process): Set :host to nil if it's not used.
293 Suggested by Masatake YAMATO <yamato@redhat.com>.
295 2010-05-23 Eli Zaretskii <eliz@gnu.org>
297 * dispextern.h (init_iterator): Sync prototype with changed definition.
299 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
301 * s/netbsd.h: If terminfo is found, use it in preference to
302 termcap. (Bug#6190) [Backport from trunk]
304 2010-05-19 Eli Zaretskii <eliz@gnu.org>
306 Redesign and reimplement bidi-aware edge positions of glyph rows.
308 * dispextern.h (struct glyph_row): New members minpos and maxpos.
309 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
310 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
311 and maxpos members instead of start.pos and end.pos, respectively.
313 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
314 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
315 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
316 (try_window_reusing_current_matrix, try_window_id):
317 Use ROW->minpos rather than ROW->start.pos.
318 (init_from_display_pos, init_iterator): Use EMACS_INT for
319 character and byte positions.
320 (find_row_edges): Rename from find_row_end. Accept additional
321 arguments for minimum and maximum buffer positions seen by
322 display_line for this row. Don't use iterator to find the
323 position following the maximum one; instead, increment the
324 position found by display_line directly. Fix logic; eol_pos
325 should be tested before the rest. Handle the case of characters
326 delivered from display vector (bug#6036). Fix tests related to
327 it->method. Handle the truncated_on_right_p rows.
328 (RECORD_MAX_MIN_POS): New macro.
329 (display_line): Use it to record the minimum and maximum buffer
330 positions for glyphs in the row being assembled. Record the
331 position of the newline that terminates the line. If word wrap is
332 in effect, restore minimum and maximum positions seen up to the
333 wrap point, when iterator returns to it.
334 (try_window_reusing_current_matrix): Give up if in bidi-reordered
335 row and cursor not already at point. Restore original pre-bidi
336 code for unidirectional buffers.
338 * dispnew.c (increment_row_positions, check_matrix_invariants):
339 Increment and check row->start.pos and row->end.pos, in addition
340 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
342 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
343 Display truncated_on_left_p and truncated_on_right_p flags.
345 (pmtxrows): Display the ordinal number of each row. Don't display
346 rows beyond the last one.
348 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
349 it is not copied by bidi_copy_it.
351 2010-05-22 Eli Zaretskii <eliz@gnu.org>
353 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
356 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
358 * image.c (Fimage_flush): Rename from image-refresh.
360 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
362 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
365 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
366 (clear_image_cache): If the number of cached images is unusually
367 large, decrease the cache eviction delay (Bug#6230).
369 2010-05-21 Glenn Morris <rgm@gnu.org>
371 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
372 Move these rules to ns.mk.
375 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
377 * Makefile.in (CANNOT_DUMP): New, set by configure.
378 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
380 2010-05-20 Juri Linkov <juri@jurta.org>
382 * fileio.c (Fdelete_file): Change interative spec to use
383 `read-file-name' like in `find-file-read-args' where the default
384 value is `default-directory' instead of `buffer-file-name'.
385 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
387 2010-05-20 Kevin Ryde <user42@zip.com.au>
389 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
390 (Voverriding_terminal_local_map, Vsystem_key_alist)
391 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
393 2010-05-20 Glenn Morris <rgm@gnu.org>
395 * Makefile.in (DEPDIR): New constant.
396 (DEPFLAGS): Set with configure, not cpp.
397 (MKDEPDIR): New, set by configure.
398 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
399 (clean): Use $DEPDIR.
400 (deps_frag): Include from configure.
401 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
402 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
404 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
405 reallocation of the cache. (Bug#6210)
407 2010-05-19 Glenn Morris <rgm@gnu.org>
409 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
411 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
412 (GNULIB_VAR): Remove.
413 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
415 * m/ibms390x.h (LINKER):
416 * m/macppc.h (LINKER) [GNU_LINUX]:
417 * s/aix4-2.h (ORDINARY_LINK):
418 * s/cygwin.h (LINKER):
419 * s/darwin.h (ORDINARY_LINK):
420 * s/gnu.h (ORDINARY_LINK):
421 * s/netbsd.h (LINKER):
422 * s/usg5-4.h (ORDINARY_LINK):
425 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
427 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
429 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
430 prevent stack overflow if number of arguments is too large
433 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
435 * charset.c (load_charset_map_from_file): Don't call close after fclose.
437 2010-05-18 Glenn Morris <rgm@gnu.org>
439 * s/gnu-linux.h: Combine two conditionals.
441 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
444 * Makefile.in (RALLOC_OBJ): New, set by configure.
445 (rallocobj): Replace with the previous variable.
446 (otherobj): Use $RALLOC_OBJ.
448 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
449 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
451 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
452 (gmallocobj, vmlimitobj): Replace with previous two variables.
453 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
455 2010-05-17 Glenn Morris <rgm@gnu.org>
457 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
458 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
460 2010-05-16 Glenn Morris <rgm@gnu.org>
462 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
464 * Makefile.in (clean): Get rid of HAVE_NS conditional.
466 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
469 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
470 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
472 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
473 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
474 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
475 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
476 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
478 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
479 Remove ${STARTFLAGS}, nothing ever sets it.
481 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
483 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
485 2010-05-16 Glenn Morris <rgm@gnu.org>
487 * Makefile.in (LIBX_BASE): Always define.
489 * Makefile.in (LIBX_OTHER): Move out of cpp section.
491 * Makefile.in (LIBXT): Always define.
493 2010-05-15 Glenn Morris <rgm@gnu.org>
495 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
497 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
498 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
500 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
502 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
503 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
505 * emacs.c (main): Initialize initial-environment and
506 process-environment before generating from env, not after.
508 Handle --version reasonably in CANNOT_DUMP configuration.
509 * emacs.c (emacs_version, emacs_copyright): New string variables.
510 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
511 (syms_of_emacs): Defvar them, and initialize them from the C
513 (main): If initialization hasn't been done, print initial version
514 info from the C strings, instead of starting an interactive session.
516 2010-05-15 Eli Zaretskii <eliz@gnu.org>
518 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
519 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
520 (bidi_paragraph_init): Remove redundant assertion that we are at
521 the beginning of a line after call to bidi_find_paragraph_start.
523 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
524 (syms_of_xdisp): Defsubr it.
526 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
528 * Makefile.in: Fix MSDOS-related comments.
530 2010-05-15 Glenn Morris <rgm@gnu.org>
532 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
533 (really-lwlib, really-oldXMenu): Always define.
534 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
536 * Makefile.in: Simplify cpp conditional.
538 * Makefile.in (${ns_appdir}): Simplify using umask.
540 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
542 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
544 * eval.c (specbind): Remove left-over duplicate test.
545 Disallow let-binding frame-local vars. Add comment.
547 2010-05-14 Eli Zaretskii <eliz@gnu.org>
549 Make the cache of bidi iterator states dynamically allocated.
550 * bidi.c (bidi_cache_shrink): New function.
551 (bidi_init_it): Call it.
552 (bidi_cache_iterator_state): Enlarge the cache if needed.
554 * bidi.c (bidi_move_to_visually_next): Rename from
555 bidi_get_next_char_visually. All callers changed.
557 2010-05-14 Kenichi Handa <handa@m17n.org>
559 * dispextern.h (struct composition_it): New member reversed_p.
561 * composite.c (composition_compute_stop_pos): Search backward if
563 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
564 Set CMP_IT->reversed_p.
565 (composition_update_it): Pay attention to CMP_IT->reversed_p.
567 * xdisp.c (set_iterator_to_next):
568 Call composition_compute_stop_pos with negative ENDPOS if we are
569 scanning backward. Call composition_compute_stop_pos if scan
570 direction is changed.
571 (next_element_from_buffer): Call composition_compute_stop_pos with
572 negative ENDPOS if we are scanning backward.
573 (next_element_from_composition): Pay attention to
574 IT->cmp_it.reversed_p.
576 2010-05-14 Kenichi Handa <handa@m17n.org>
578 * font.c (font_range): Return the range for the font found at first.
580 2010-05-14 Glenn Morris <rgm@gnu.org>
582 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
584 * Makefile.in (mktime, X11, register): Move undefs to configure.
586 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
587 (MSDOS_X_OBJ): New variable.
588 (MSDOS_SUPPORT_REAL): New constant.
589 (MSDOS_SUPPORT): Set as a variable, not with cpp.
590 (obj): Use MSDOS_X_OBJ.
591 (lisp): Use MSDOS_SUPPORT as a variable.
593 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
594 (GPM_MOUSE_SUPPORT): Now it's a constant.
595 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
598 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
599 (ns_appresdir): Remove, unused.
601 * Makefile.in (SHELL): Move outside cpp section.
603 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
605 2010-05-13 Glenn Morris <rgm@gnu.org>
607 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
608 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
610 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
611 HAVE_WINDOW_SYSTEM must be too.
613 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
614 (lisp): Remove WINNT_SUPPORT.
616 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
617 Let configure set these variables (to empty) in this case as well.
619 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
620 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
622 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
623 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
624 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
625 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
626 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
627 the values output by configure.
628 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
630 2010-05-12 Glenn Morris <rgm@gnu.org>
632 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
633 (LINKER_WAS_SPECIFIED): Remove.
635 * Makefile.in (LIB_GCC): Set using configure, not cpp.
636 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
637 * m/arm.h (LIB_GCC) [GNU_LINUX]:
638 * s/cygwin.h (LIB_GCC):
639 * s/freebsd.h (LIB_GCC):
640 * s/gnu-linux.h (LIB_GCC):
641 * s/msdos.h (LIB_GCC):
642 * s/netbsd.h (LIB_GCC):
645 2010-05-11 Karel Klic <kklic@redhat.com>
647 * ftfont.c: Fix incorrect parentheses of #if condition for
648 definining M17N_FLT_USE_NEW_FEATURE.
650 2010-05-11 Glenn Morris <rgm@gnu.org>
652 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
653 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
655 2010-05-10 Eli Zaretskii <eliz@gnu.org>
657 * xdisp.c (init_iterator): Don't turn on bidi reordering in
659 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
661 2010-05-10 Glenn Morris <rgm@gnu.org>
663 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
664 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
665 (LIBES): Use LIBS_SYSTEM as a variable.
666 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
667 * s/aix4-2.h (LIBS_SYSTEM):
668 * s/freebsd.h (LIBS_SYSTEM):
669 * s/hpux10-20.h (LIBS_SYSTEM):
670 * s/sol2-6.h (LIBS_SYSTEM):
671 * s/unixware.h (LIBS_SYSTEM):
674 * s/aix4-2.h (MAIL_USE_LOCKF):
675 * s/bsd-common.h (MAIL_USE_FLOCK):
676 * s/darwin.h (MAIL_USE_FLOCK):
677 * s/gnu-linux.h (MAIL_USE_FLOCK):
678 * s/irix6-5.h (MAIL_USE_FLOCK):
679 * s/template.h (MAIL_USE_FLOCK):
682 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
684 * Version 23.2 released.
686 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
688 * composite.c (autocmp_chars): Save point as marker before calling
689 auto-composition-function (Bug#5984).
691 * lisp.h (restore_point_unwind): Add prototype.
693 * fileio.c (restore_point_unwind): Remove static attribute.
695 2010-05-08 Kenichi Handa <handa@m17n.org>
697 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
698 new feature of libotf and m17n-flt.
699 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
700 Call OTF_check_features even if no specific feature is given.
701 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
702 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
703 that OUT is NULL. Use OTF_drive_gsub_with_log and
704 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
706 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
707 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
708 Setup mflt_enable_new_feature and mflt_try_otf.
710 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
712 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
714 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
715 box and toolbar (Bug #6139).
716 (xg_create_tool_bar): Remove comment (Bug #6139).
717 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
718 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
720 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
722 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
725 2010-05-08 Eli Zaretskii <eliz@gnu.org>
727 * fringe.c (update_window_fringes): Set up truncation bitmaps for
730 2010-05-08 Glenn Morris <rgm@gnu.org>
732 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
734 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
735 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
736 (termcapobj): Replace with TERMCAP_OBJ.
737 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
738 (LIBES): Use LIBS_TERMCAP as a variable.
740 * s/freebsd.h (osreldate.h): No longer include, since this file
741 does not use __FreeBSD_version any more.
743 * s/aix4-2.h (TERMINFO):
744 * s/cygwin.h (TERMINFO):
745 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
746 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
747 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
748 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
749 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
750 * s/irix6-5.h (TERMINFO):
751 * s/netbsd.h (LIBS_TERMCAP):
752 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
753 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
754 * s/usg5-4.h (TERMINFO):
757 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
759 * eval.c (unbind_to): Don't unbind a local binding into the global
760 binding when the local binding disappeared. Inversely, don't unbind
761 a global binding into a newly created local binding.
762 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
763 can specify the frame to use, when applicable. Adjust callers.
765 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
766 Stefan Monnier <monnier@iro.umontreal.ca>
768 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
770 2010-05-07 Eli Zaretskii <eliz@gnu.org>
772 * w32fns.c: Include w32.h.
773 (Fw32_shell_execute): Decode the error message before passing it
774 to `error'. (Bug#6126)
776 * msdos.c (dos_set_window_size):
777 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
778 instead of `XSYMBOL (foo)->value'.
780 2010-05-07 Eli Zaretskii <eliz@gnu.org>
782 Fix the MS-DOS build, broken by autoconfiscation.
784 * Makefile.in: Don't use Make-style comments past the "start of
786 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
788 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
789 edited directly by msdos/sed1v2.inp).
791 2010-05-07 Glenn Morris <rgm@gnu.org>
793 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
794 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
795 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
796 move out of cpp section.
797 * s/freebsd.h (LD_SWITCH_SYSTEM):
798 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
799 * s/netbsd.h (LD_SWITCH_SYSTEM):
800 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
802 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
804 Define LIB_STANDARD and START_FILES using autoconf.
805 * s/usg5-4.h (LIB_STANDARD):
806 * s/netbsd.h (START_FILES):
807 * s/irix6-5.h (LIB_STANDARD):
808 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
809 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
810 * s/freebsd.h (START_FILES):
811 * s/darwin.h (START_FILES):
812 * s/cygwin.h (START_FILES):
813 * s/aix4-2.h (LIB_STANDARD):
814 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
815 * Makefile.in (STARTFILES): Rename to START_FILES, define using
818 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
820 Remove NEED_BSDTTY and NEED_UNISTD_H.
821 * s/hpux10-20.h (NEED_BSDTTY): Remove.
822 * s/aix4-2.h (NEED_UNISTD_H): Remove.
823 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
824 <sys/ptyio.h> and <unistd.h>.
826 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
828 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
829 * s/gnu.h (START_FILES): Remove empty definition.
831 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
833 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
835 2010-05-06 Glenn Morris <rgm@gnu.org>
837 * Makefile.in (CPP, LN_S): Remove unused variables.
839 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
841 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
843 2010-05-05 Lawrence Mitchell <wence@gmx.li>
845 * m/sparc.h: Fix typo in earlier change.
847 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
850 * eval.c (Fdefvaralias): Remove unintended nested if.
851 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
853 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
855 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
857 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
860 * s/bsd-common.h (BSD_PGRPS): Remove undef.
861 * s/gnu-linux.h (BSD_PGRPS): Remove.
862 * term.c (dissociate_if_controlling_tty):
863 * sysdep.c (narrow_foreground_group, widen_foreground_group)
864 (init_sys_modes, reset_sys_modes):
866 * callproc.c (Fcall_process, child_setup): Remove code depending
869 Remove POSIX_SIGNALS.
870 * s/usg5-4.h (POSIX_SIGNALS):
871 * s/netbsd.h (POSIX_SIGNALS):
872 * s/msdos.h (POSIX_SIGNALS):
873 * s/ms-w32.h (POSIX_SIGNALS):
874 * s/hpux11.h (POSIX_SIGNALS):
875 * s/gnu.h (POSIX_SIGNALS):
876 * s/gnu-linux.h (POSIX_SIGNALS):
877 * s/freebsd.h (POSIX_SIGNALS):
878 * s/darwin.h (POSIX_SIGNALS):
879 * s/cygwin.h (POSIX_SIGNALS):
880 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
882 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
883 * process.c (create_process):
885 * sysdep.c (wait_for_termination, init_signals):
886 * process.c (create_process):
887 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
888 remove all code that assumes the contrary.
890 2010-05-04 Glenn Morris <rgm@gnu.org>
892 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
894 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
895 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
896 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
897 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
898 LD_SWITCH_SYSTEM_tmp.
899 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
900 New variables, set by configure.
902 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
903 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
904 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
905 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
906 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
908 * s/aix4-2.h (C_SWITCH_SYSTEM):
909 * m/alpha.h (C_SWITCH_MACHINE):
910 Move to configure.in.
911 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
912 New variables, set by configure.
913 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
914 $c_switch_machine and $c_switch_system.
916 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
918 * s/hpux10-20.h (LIB_STANDARD): New definition.
919 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
920 on it, not used anymore.
922 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
924 * eval.c (internal_condition_case_n): Rename from
925 internal_condition_case_2.
926 (internal_condition_case_2): New function.
928 * xdisp.c (safe_call): Use internal_condition_case_n.
930 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
931 (internal_delete_file, Frename_file): Callers changed.
933 * buffer.c (Fkill_buffer):
934 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
936 * lisp.h: Update prototypes.
938 2010-05-03 Glenn Morris <rgm@gnu.org>
940 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
941 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
942 (LIBXT): Set with configure, not cpp.
944 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
946 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
948 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
949 The FreeBSD is not needed, the default works, Solaris version is
950 not needed, and the remaining case is not supported by configure.
952 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
954 * xsmfns.c (CHDIR_OPT): New define.
955 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
958 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
961 * emacs.c (USAGE1): Mention --chdir.
962 (main): Handle --chdir.
963 (standard_args): Add --chdir.
964 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
967 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
969 Remove LD_SWITCH_MACHINE.
970 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
971 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
974 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
975 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
978 * m/ibmrs6000.inp: Remove file, unused.
979 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
980 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
982 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
984 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
987 2010-05-01 Eli Zaretskii <eliz@gnu.org>
989 Emulate POSIX_SIGNALS on MS-Windows.
991 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
992 (SIG_SETMASK, SIG_UNBLOCK): Define.
994 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
995 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
996 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
998 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1001 Miscellaneous fixes of bidi display.
1003 * xdisp.c (find_row_end): New function, refactored from display_line.
1004 (display_line): Use it.
1005 (extend_face_to_end_of_line): In almost-filled rows, extend only
1006 if the row is R2L and not continued.
1007 (display_line): Fix prepending of truncation glyphs to R2L rows.
1008 Preserve overlay and string info in row->end.
1009 (insert_left_trunc_glyphs): Support addition of left truncation
1011 (set_cursor_from_row): Don't place cursor on the vertical border
1012 glyph between adjacent windows. Fix a crash when a display string
1013 is continued to the next line. Don't return zero if cursor was
1014 found by `cursor' property of a display string.
1015 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1016 test for that explicitly.
1018 2010-05-01 Glenn Morris <rgm@gnu.org>
1020 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1022 (OTHER_OBJ): Remove.
1023 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1024 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1026 2010-05-01 Karel Klíč <kklic@redhat.com>
1028 * fileio.c (Ffile_selinux_context): Context functions may return null.
1030 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1032 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
1034 2010-04-30 Glenn Morris <rgm@gnu.org>
1036 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1037 (OTHER_OBJ): Define as a separate variable, for clarity.
1039 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1041 * xsettings.c: include limits.h and update file comment.
1043 2010-04-30 Glenn Morris <rgm@gnu.org>
1045 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1046 Set with configure, not cpp.
1047 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1049 * Makefile.in (mallocobj): Remove.
1050 (otherobj): Simplify using @OTHER_OBJ@.
1052 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1053 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1054 Don't bother making nsgui.h dependency platform-specific.
1056 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1058 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1060 * process.c (read_process_output, exec_sentinel): Don't burp if the
1061 sentinel/filter kills the current buffer (bug#6060).
1063 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
1064 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1065 Remove unused var `args'.
1066 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1067 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1068 * doc.c (store_function_docstring): Use XSETCAR.
1070 2010-04-28 Glenn Morris <rgm@gnu.org>
1072 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1073 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1075 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1077 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1078 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1080 * Makefile.in (FONT_OBJ): New, set by configure.
1081 (FONT_DRIVERS): Use $FONT_OBJ.
1083 * Makefile.in (LIBXMU): Set with configure, not cpp.
1084 * s/aix4-2.h (LIBXMU):
1085 * s/hpux10-20.h (LIBXMU):
1086 Remove definition, now set in configure.
1088 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1090 * m/amdx86-64.h [i386]: Move this test to configure.in.
1092 2010-04-27 Glenn Morris <rgm@gnu.org>
1094 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1095 * s/unixware.h (NEED_LIBW): Remove definition.
1097 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1098 (TOOLKIT_LIBW): New, set by configure.
1099 (@X_TOOLKIT_TYPE@): No longer define it.
1101 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1102 (MOTIF_LIBW): Set with configure, not cpp.
1103 * s/aix4-2.h (LIB_MOTIF):
1104 * s/gnu-linux.h (LIB_MOTIF):
1105 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1107 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1110 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1111 (obj): Use autoconf for unexec instead of cpp.
1112 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1113 definitions and undefs. Inline definitions in the only user.
1114 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
1116 2010-04-27 Glenn Morris <rgm@gnu.org>
1118 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1119 since the defaults (set by the system file) are fine in most cases.
1120 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1121 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1122 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1123 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1124 Remove definitions, since they are set correctly in s/gnu-linux.h.
1125 * s/freebsd.h (START_FILES, LIB_STANDARD):
1126 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1127 * s/hpux10-20.h (START_FILES):
1128 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1129 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1131 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1132 (MOTIF_LIBW): Use $LIBXP.
1133 (otherobj): Use $WIDGET_OBJ.
1135 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1137 * Makefile.in (LIBS_MACHINE): Remove, unused.
1139 Use autoconf instead of cpp for LIB_MATH.
1140 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1141 * s/cygwin.h (LIB_MATH): Likewise.
1142 * Makefile.in (LIB_MATH): Do not define with cpp.
1143 (LIBES): Use autoconf for LIB_MATH.
1145 2010-04-26 Kenichi Handa <handa@m17n.org>
1147 * composite.c (Ffind_composition_internal): Fix the return value
1148 for an automatic composition.
1150 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1152 Remove all NO_ARG_ARRAY uses.
1153 * fns.c (concat2, concat3, nconc2):
1154 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1155 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1156 * m/xtensa.h (NO_ARG_ARRAY):
1157 * m/template.h (NO_ARG_ARRAY):
1158 * m/sparc.h (NO_ARG_ARRAY):
1159 * m/sh3.h (NO_ARG_ARRAY):
1160 * m/mips.h (NO_ARG_ARRAY):
1161 * m/macppc.h (NO_ARG_ARRAY):
1162 * m/iris4d.h (NO_ARG_ARRAY):
1163 * m/intel386.h (NO_ARG_ARRAY):
1164 * m/ibms390x.h (NO_ARG_ARRAY):
1165 * m/ibms390.h (NO_ARG_ARRAY):
1166 * m/ibmrs6000.h (NO_ARG_ARRAY):
1167 * m/ia64.h (NO_ARG_ARRAY):
1168 * m/hp800.h (NO_ARG_ARRAY):
1169 * m/arm.h (NO_ARG_ARRAY):
1170 * m/amdx86-64.h (NO_ARG_ARRAY):
1171 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1173 2010-04-25 Eli Zaretskii <eliz@gnu.org>
1175 * xdisp.c (display_line): Don't assume 2nd call to
1176 get_next_display_element cannot return zero. (Bug#6030)
1177 (iterate_out_of_display_property): New function, body from pop_it.
1180 2010-04-24 Glenn Morris <rgm@gnu.org>
1182 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1183 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1184 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1185 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1187 2010-04-24 Eli Zaretskii <eliz@gnu.org>
1189 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1190 use `get_next_display_element' and `set_iterator_to_next' to
1191 advance to the next character, when looking for the character that
1192 begins the next row.
1194 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
1195 definition of "struct Lisp_Symbol".
1197 2010-04-24 Glenn Morris <rgm@gnu.org>
1199 * Makefile.in (CRT_DIR): New variable, set by configure.
1200 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1201 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1203 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1205 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1207 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1209 Remove redundant flags.
1210 * s/freebsd.h (C_SWITCH_SYSTEM):
1211 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1212 * s/netbsd.h (C_SWITCH_SYSTEM):
1213 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1216 Simplify m/intel386.h.
1217 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1219 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1220 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1221 the only user: s/unixware.h.
1222 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1224 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1225 moved here from m/intel386.h.
1227 * m/mips.h: Remove #if 0 code.
1229 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1231 Fix display of composed characters from L2R scripts in bidi buffers.
1232 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1233 After advancing IT past the composition, resync the bidi iterator
1234 with IT's position. (Bug#5977)
1236 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1238 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1239 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1241 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1243 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1245 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1247 Support `display' text properties and overlay strings in bidi buffers.
1248 * xdisp.c (pop_it): When the stack is popped after displaying
1249 from a string, bidi-iterate to exit from the text portion covered
1250 by the `display' property or overlay. (Bug#5988, bug#5920)
1252 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1254 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1255 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1257 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1258 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1260 Simplify STARTFILES definition.
1261 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1262 relying on Makefile.in to define it.
1263 * s/cygwin.h (START_FILES): Likewise.
1264 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1266 Clean up Solaris code.
1267 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1268 (LIB_MOTIF): Remove, configure takes care of this.
1269 (NOT_USING_MOTIF): Remove, unused.
1270 * xrdb.c: Remove #if 0-ed #include.
1271 (SYSV): Remove conditional for old SysV.
1272 * sysdep.c (closedir): Remove conditional code for Solaris,
1273 Solaris has closedir.
1275 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1277 * xsettings.c (read_and_apply_settings): Check if current_font is
1278 NULL before strcmp (Bug#6001).
1280 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1282 Clean up HP-UX files.
1283 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1284 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1285 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1286 * s/hpux10-20.h: ... to the only user, here.
1288 2010-04-21 Eli Zaretskii <eliz@gnu.org>
1290 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1291 use buffer-local values of paragraph-start and paragraph-separate.
1292 <paragraph_start_re, paragraph_separate_re>: Rename from
1293 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1296 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1298 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1299 current_tool_bar_style are new.
1300 (store_config_changed_event): Rename from store_font_changed_event.
1301 (XSETTINGS_TOOL_BAR_STYLE): New define.
1302 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1303 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1305 (something_changedCB): store_font_changed_event is now
1306 store_config_changed_event
1307 (parse_settings): Rename from parse_xft_settings. Read
1308 non-xft xsettings outside #ifdef HAVE_XFT.
1309 (read_settings): Renamed from read_xft_settings.
1310 (apply_xft_settings): Take current settings as parameter. Do not
1311 call read_(xft)_settings.
1312 (read_and_apply_settings): New function.
1313 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1314 read_and_apply_settings if there are settings to be read.
1315 (init_xsettings): Renamed from init_xfd_settings.
1316 Call read_and_apply_settings unconditionally.
1317 (xsettings_initialize): Call init_xsettings.
1318 (Ftool_bar_get_system_style): New function.
1319 (syms_of_xsettings): Define Qmonospace_font_name and
1320 Qtool_bar_style. Initialize current_tool_bar_style to nil.
1321 defsubr Stool_bar_get_system_style. Fprovide on
1323 Move misplaced HAVE_GCONF
1325 * xsettings.h (Ftool_bar_get_system_style): Declare.
1327 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1328 Qtext, Qboth, Qboth_horiz are new.
1329 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1330 Vtool_bar_style, tool_bar_max_label_size.
1332 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1334 * keyboard.c: QClabel is new.
1335 (parse_tool_bar_item): Take out QClabel from tool bar items.
1336 Try to construct a label if ther is no QClabel.
1337 (syms_of_keyboard): Intern :label as QClabel.
1339 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1340 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1343 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1346 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1347 (xg_make_tool_item, xg_show_toolbar_item): New function.
1348 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1349 Call xg_make_tool_item to make a tool bar item.
1350 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1352 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1353 into account for toolbars.
1355 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1357 * data.c (make_blv): Declarations before code (Bug#5993).
1359 2010-04-21 Glenn Morris <rgm@gnu.org>
1361 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1362 Define using autoconf, not cpp.
1363 (LIBXSM): New variable, set by autoconf.
1364 (LIBXT): Use $LIBXSM.
1366 2010-04-21 Dan Nicolaescu <local_user@dannlt>
1368 Remove NOMULTIPLEJOBS, unused.
1369 * s/template.h (NOMULTIPLEJOBS):
1370 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1372 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1373 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1374 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1375 detects -znocombreloc and passes it to the linker
1376 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1378 2010-04-21 Glenn Morris <rgm@gnu.org>
1380 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1382 2010-04-21 Karel Klíč <kklic@redhat.com>
1384 * Makefile.in (LIBSELINUX_LIBS): New.
1385 (LIBES): Add $LIBSELINUX_LIBS.
1386 * eval.c, lisp.h (call7): New function.
1387 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1388 (Ffile_selinux_context, Fset_file_selinux_context):
1390 (Fcopy_file): New parameter preserve-selinux-context.
1391 (Frename_file): Preserve selinux context when renaming by copy-file.
1393 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
1394 Eli Zaretskii <eliz@gnu.org>
1396 Don't depend on cm.c or termcap.c on Windows, use stubs.
1397 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1398 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1399 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1400 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1401 (sys_tputs, sys_tgetstr): New stubs.
1402 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1403 (tputs, tgetstr): New; define to sys_*.
1405 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
1407 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1409 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1411 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1412 Just signal a warning rather than an error when inside a let.
1413 (Fmake_variable_frame_local): Add the same test.
1415 * font.c (syms_of_font): Make the style table vars read-only.
1417 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1418 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1420 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1422 2010-04-20 Eli Zaretskii <eliz@gnu.org>
1424 Fix R2L paragraph display on TTY.
1426 * xdisp.c (unproduce_glyphs): New function.
1427 (display_line): Use it when produced glyphs are discarded from R2L
1429 (append_composite_glyph): In R2L rows, prepend the glyph rather
1432 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1433 rather than append it. Set up the resolved_level and bidi_type
1434 attributes of the appended glyph.
1435 (produce_special_glyphs): Mirror the backslash continuation
1436 character in R2L lines.
1438 Implement display of R2L paragraphs in GUI sessions.
1440 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1441 append_stretch_glyph.
1442 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1443 off-by-one error in computing x at end of text in the row.
1444 (append_stretch_glyph): In reversed row, prepend the glyph rather
1445 than append it. Set resolved_level and bidi_type of the glyph.
1446 (extend_face_to_end_of_line): If the row is reversed, prepend a
1447 stretch glyph whose width is such that the rightmost glyph will be
1448 drawn at the right margin of the window. Fix off-by-one error on
1449 TTY frames in testing whether a line needs face extension. Fix
1450 face extension at ZV. If this is the last glyph row, use
1451 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1453 (set_cursor_from_row, display_line): Use
1454 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1455 row->continuation_lines_width.
1456 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1457 are at ZV. Fixes a crash when reseated to ZV by
1458 try_window_reusing_current_matrix.
1459 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1460 which happens with R2L glyph rows. Fixes a crash when inserting a
1461 character at end of an R2L line.
1462 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1463 treat them as having zero-width characters. Improve comments.
1464 Don't reverse pos_before and pos_after for reversed glyph rows.
1465 Set cursor.x to negative value when the cursor might be on the
1467 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1468 left fringe, not the right one.
1469 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1470 (erase_phys_cursor): For reversed cursor_row, support cursor on
1473 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1474 of continuation indicators on the fringes.
1475 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1478 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1479 draw cursor on the left fringe.
1481 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1482 cursor on the left fringe.
1484 * dispnew.c (update_text_area): Handle reversed desired rows when
1485 the cursor is on the left fringe.
1486 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1487 below, not by 0, for when the cursor is on the left fringe.
1489 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1491 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1492 widget is a scrollbar.
1494 2010-04-20 Kenichi Handa <handa@m17n.org>
1496 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1497 only when the arg CHARSET_LIST is nil.
1499 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1501 Make variable forwarding explicit rather the using special values.
1502 Basically, this makes the structure of buffer-local values and object
1503 forwarding explicit in the type of Lisp_Symbols rather than use
1504 special Lisp_Objects for that. This tends to lead to slightly more
1505 verbose code, but is more C-like, simpler, and makes it easier to make
1506 sure we handled all cases, among other things by letting the compiler
1508 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1509 Removing forwarding objects.
1510 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1511 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1512 explicit rather than hiding them inside Lisp_Object "values".
1513 (XFWDTYPE): New macro.
1514 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1515 (XBUFFER_LOCAL_VALUE): Remove.
1516 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1517 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1518 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1519 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1520 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1521 Remove the Lisp_Misc_* header.
1522 (struct Lisp_Buffer_Local_Value): Redefine.
1523 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1524 (struct Lisp_Misc_Any): Add filler to get the right size.
1525 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1527 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1528 (DEFVAR_KBOARD): Allocate a forwarding object.
1529 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1530 (let_shadows_global_binding_p): New function.
1531 (union Lisp_Val_Fwd): New type.
1532 (make_blv): New function.
1533 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1534 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1535 (swap_in_symval_forwarding, find_symbol_value, Fset)
1536 (let_shadows_buffer_binding_p, set_internal, default_value)
1537 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1538 (Fkill_local_variable, Fmake_variable_frame_local)
1539 (Flocal_variable_p, Flocal_variable_if_set_p)
1540 (Fvariable_binding_locus):
1541 * xdisp.c (select_frame_for_redisplay):
1542 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1543 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1544 * frame.c (store_frame_param):
1545 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1546 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1548 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1549 (clone_per_buffer_values): Only adjust markers into the current buffer.
1550 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1551 (Fbuffer_local_value, set_buffer_internal_1)
1552 (swap_out_buffer_local_variables):
1553 Adapt to the new symbol value structure.
1554 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1555 (defvar_per_buffer): Take a new arg for the fwd object.
1556 (buffer_lisp_local_variables): Return a proper alist (different fix
1558 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1559 (Fgarbage_collect): Don't handle buffer_defaults specially.
1560 (mark_object): Handle new symbol value structure rather than the old
1561 special Lisp_Misc_* objects.
1562 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1563 * term.c (set_tty_color_mode):
1564 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1565 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1566 a buffer_local_flags.
1567 * print.c (print_object): Get rid of impossible forwarding objects.
1569 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1571 * bidi.c (bidi_get_type, bidi_get_category)
1572 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
1573 (bidi_type_of_next_char, bidi_level_of_next_char):
1574 Declare static. Use `INLINE' rather than `inline'.
1576 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
1578 * dired.c (Ffile_attributes): Fix typo in docstring.
1580 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1582 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1583 NSInteger (Bug#5811).
1585 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1587 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1588 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1590 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1592 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1594 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
1596 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1597 terminal frames (Bug#5837).
1599 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1601 * .gdbinit (xsubchartable): New command.
1603 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1605 * xdisp.c (display_line): Don't write beyond the last glyph row in
1606 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
1607 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1609 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1611 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1613 * alloc.c (Fpurecopy): Hash-cons if requested.
1614 (syms_of_alloc): Update purify-flag docstring.
1616 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1618 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1619 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1621 2010-04-17 Eli Zaretskii <eliz@gnu.org>
1623 Fix a crash when an NSM character is inserted at BEGV.
1625 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1626 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1627 NEUTRAL_B or UNKNOWN_BT.
1629 2010-04-16 Eli Zaretskii <eliz@gnu.org>
1631 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1632 other rows with cursor unless they are different from this row and
1633 this row is part of a continued line. (Bug#5943)
1635 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1637 * s/freebsd.h: Restore osreldate.h include.
1638 Suggested by Naohiro Aota.
1640 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1642 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1644 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1646 * s/cygwin.h: Avoid linking against static libgcc.
1648 2010-04-15 Juri Linkov <juri@jurta.org>
1650 * window.c: Add Qscroll_command.
1651 Remove Vscroll_preserve_screen_position_commands.
1652 (window_scroll_pixel_based, window_scroll_line_based): Check the
1653 `scroll-command' property on the last command instead of searching
1654 the last command in Vscroll_preserve_screen_position_commands.
1655 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1656 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1657 (scroll-preserve-screen-position): Doc fix.
1658 (Vscroll_preserve_screen_position_commands): Remove variable.
1660 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1662 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1664 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1666 Reduce cpp use in Makefile.in.
1667 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1668 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1669 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1670 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1671 (CRT0_COMPILE): Remove, inline it in the only user.
1673 2010-04-14 Juri Linkov <juri@jurta.org>
1675 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1676 `scroll-up-command' and `M-v' from `scroll-down' to
1677 `scroll-down-command'.
1679 2010-04-14 Juri Linkov <juri@jurta.org>
1681 * window.c (Vscroll_preserve_screen_position_commands): New variable
1682 with the default value as the list of Qscroll_down and Qscroll_up.
1683 (window_scroll_pixel_based, window_scroll_line_based): Search the
1684 last command in the list Vscroll_preserve_screen_position_commands
1685 instead of comparing with Qscroll_up and Qscroll_down.
1687 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1689 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1690 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1693 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1696 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1698 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1700 Try to solve the problem of spurious EOF chars in long lines of text
1701 sent to interactive subprocesses.
1702 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1703 (system_process_attributes): Remove unused var `ttotal'.
1704 * process.c (send_process): Don't bother breaking long line with EOF
1705 chars when talking to ttys any more.
1706 (wait_reading_process_output): Output a warning when called in such
1707 a way that it could block without being interruptible.
1709 Try to detect file modification within the same second.
1710 * buffer.h (struct buffer): New field modtime_size.
1711 * buffer.c (reset_buffer): Initialize it.
1712 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1713 (Fverify_visited_file_modtime): Check it.
1714 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1715 (Fset_visited_file_modtime): Set (or clear) it.
1717 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1719 * process.c (status_notify): Remove unused var `ro'.
1721 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1723 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1724 more than one visual (Bug#5938).
1726 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1728 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1731 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1733 Remove C_SWITCH_SYSTEM_TEMACS.
1734 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1735 (malloc, realloc, free): Use emacs, not temacs for conditional
1738 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1739 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1741 Use autoconf, not cpp for some variables.
1742 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1743 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1744 (ALL_CFLAGS): Use them as make variables.
1745 (really-lwlib, really-oldXMenu): Do not pass them.
1747 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1749 * xmenu.c (apply_systemfont_to_dialog): New.
1750 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1752 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1754 * process.c (exec_sentinel): Preserve current-buffer.
1756 * process.c (read_process_output): Move the save-current-buffer to
1757 apply to both the filter and the non-filter branches.
1759 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1761 * s/msdos.h (UNEXEC): New definition.
1763 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1765 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1766 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1768 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1769 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1770 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1771 TRY_WINDOW_CHECK_MARGINS.
1773 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
1774 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1775 width only when it is for padding.
1777 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1779 * xfns.c (Fx_show_tip): Call try_window in a loop until
1780 fonts_changed_p is zero (Bug#2423).
1782 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1784 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1785 the end of TEXT_AREA. (Bug#5856)
1787 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1789 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1792 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1794 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1795 prev.orig_type, for resolving type of NSM. (Bug#5858)
1797 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1799 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1800 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1802 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
1803 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1805 (syms_of_xsettings): Initialize current_font.
1806 defsubr Sfont_get_system_normal_font.
1808 * xsettings.h (Ffont_get_system_normal_font,
1809 xsettings_get_system_normal_font): Declare.
1811 * xfns.c (extern xlwmenu_default_font): Remove.
1812 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1815 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1816 menu items in UTF-8.
1818 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1819 (apply_systemfont_to_menu): New function.
1820 (set_frame_menubar, create_and_show_popup_menu): Call
1821 apply_systemfont_to_menu.
1823 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1825 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1826 FRAME_LINE_TO_PIXEL_Y.
1828 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1831 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1833 Simplify code for HP machines.
1834 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1835 for GNU_LINUX, not needed.
1836 (UNEXEC, NEED_BSDTTY): Move definitions...
1837 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1839 * m/iris4d.h (UNEXEC): Move definition ...
1840 * s/irix6-5.h (UNEXEC): ... here.
1842 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1844 * xfns.c (set_machine_and_pid_properties): New function.
1845 (Fx_create_frame): Call set_machine_and_pid_properties.
1847 2010-04-03 Eli Zaretskii <eliz@gnu.org>
1849 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1850 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1851 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1853 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1854 in this function. (Bug#5703)
1856 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
1858 * nsterm.h: Fix last change.
1860 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1862 * m/intel386.h (NO_REMAP): Move definition ...
1863 * s/msdos.h (NO_REMAP): ... here.
1865 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1867 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1868 used on those platforms.
1870 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1872 Remove extern errno declarations.
1889 * buffer.c: Remove errno extern declarations.
1890 * s/netbsd.h (NEED_ERRNO): Remove.
1892 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1894 Remove all uses of LIBX11_SYSTEM.
1895 * Makefile.in (LIBX11_SYSTEM): Remove.
1896 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1899 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1901 Remove support for DJGPP v1.x (bug#5813).
1903 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
1905 * unexec.c (make_hdr, copy_text_and_data):
1906 * sysdep.c (wait_for_termination, sys_subshell):
1907 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
1908 (IT_set_terminal_modes, __write, _rename, gethostname)
1909 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1910 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1911 the value of __DJGPP__.
1912 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1915 * gmalloc.c (memalign):
1916 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1918 * dosfns.c (init_dosfns):
1919 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1921 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1923 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1924 string with `cursor' property comes from an `after-string'
1927 2010-04-01 Glenn Morris <rgm@gnu.org>
1929 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1930 Define as Makefile variables.
1931 (LIBX): Use above variables rather than directly using autoconf.
1933 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1935 Clean up BSD_SYSTEM use.
1938 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1939 for including <sys/ioctl.h>.
1940 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1941 code is only used for MSDOS.
1943 2010-03-31 Juri Linkov <juri@jurta.org>
1945 * image.c: Add `Qextension_data'.
1946 (syms_of_image): Initialize and staticpro `Qextension_data'.
1947 (Fimage_metadata): Rename from `Fimage_extension_data'.
1948 (gif_load): Put GIF extension data to the property
1951 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1953 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1954 * nsterm.h: Fix prototype.
1956 2010-03-31 Eli Zaretskii <eliz@gnu.org>
1958 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1959 trailing whitespace in right-to-left rows.
1961 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1963 Get rid of the direct_output optimizations.
1964 * keyboard.c (nonundocount): Remove extern declaration.
1965 (command_loop_1): Remove brittle optimisation for cheap and
1967 * xdisp.c (redisplay_internal): Don't bother checking
1968 redisplay_performed_directly_p any more.
1969 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1971 * dispnew.c (redisplay_performed_directly_p)
1972 (direct_output_for_insert, direct_output_forward_char):
1973 * dispextern.h (redisplay_performed_directly_p)
1974 (direct_output_for_insert, direct_output_forward_char): Remove.
1975 * cmds.c (nonundocount): Make it static.
1977 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
1979 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1981 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
1983 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1984 invisible (Bug#5766).
1986 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
1988 * xdisp.c (x_consider_frame_title, update_window_cursor):
1989 Remove HAVE_NS conditionals.
1990 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
1992 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1993 filename for the title.
1994 (ns_set_doc_edited): Do nothing if the selected window is a
1997 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2000 * nsterm.m: Remove unneeded prototype.
2002 2010-03-31 Glenn Morris <rgm@gnu.org>
2004 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2005 in the DOC file. (Bug#5336)
2007 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
2009 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2011 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2013 * window.c (keys_of_window): Remove redundant/overridden bindings.
2015 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2017 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2018 Restore original behavior when the iterator is not bidi_p.
2020 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2022 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2024 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2026 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2027 are outside the range of cached character positions.
2029 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
2031 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2033 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2035 Initial support for bidirectional editing.
2037 * Makefile.in (obj): Include bidi.o.
2038 (bidi.o): New target.
2040 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2041 ($(BLD)/bidi.$(O)): New target.
2045 * buffer.h (struct buffer): New members bidi_display_reordering
2046 and bidi_paragraph_direction.
2048 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2049 and bidi_paragraph_direction.
2050 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2051 and bidi-paragraph-direction.
2052 (Fbuffer_swap_text): Swap the values of
2053 bidi_display_reordering and bidi_paragraph_direction.
2055 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2056 (bidi_type_t, bidi_dir_t): New types.
2057 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2058 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2059 prev_stop, base_level_stop, and eol_pos.
2060 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2061 (IT_STACK_SIZE): Enlarge to 5.
2062 (struct glyph_row): New member reversed_p.
2063 <string_buffer_position>: Update prototype.
2064 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2065 glyph_row if bidi_it.paragraph_dir == R2L.
2066 (struct glyph): New members resolved_level and bidi_type.
2068 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2069 processing or buffer's direction is right-to-left.
2070 (prepare_desired_row): Preserve the reversed_p flag.
2071 (row_equal_p): Compare the reversed_p attributes as well.
2073 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2074 bidi_init_it and set it->paragraph_embedding from the current
2075 buffer's value of bidi_paragraph_direction.
2076 (reseat_1): Initialize bidi_it.first_elt.
2077 (set_iterator_to_next, next_element_from_buffer): Use the value of
2078 paragraph_embedding to determine the paragraph direction.
2079 (set_iterator_to_next): Under bidi reordering, call
2080 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2081 new_paragraph flag is set in the bidi iterator.
2082 (next_element_from_buffer): If bidi_it.first_elt is set,
2083 initialize paragraph direction and find the first character to
2084 display in the visual order. If reseated to a middle of a line,
2085 prime the bidi iterator starting at the line's beginning. Handle
2086 the situation where we overstepped stop_charpos due to
2087 non-linearity of the bidi iteration. Likewise for when we back up
2088 beyond the previous stop_charpos. When moving across stop_charpos,
2089 record it in prev_stop.
2090 (display_line): Set row->end and it->start for the next row to the
2091 next character in logical order. Always extend reversed_p rows to
2092 the end of line, even if they end at ZV. Copy the reversed_p flag
2093 to the next glyph row. Keep calling set_cursor_from_row for
2094 bidi-reordered rows even if we already have a possible candidate
2095 for cursor position. Set row_end after all the row's glyphs have
2096 been produced, by looping over the glyphs. Record the position
2097 after EOL in it->eol_pos, and use it to set end_pos of the last
2098 row produced for a continued line.
2099 <Qright_to_left, Qleft_to_right>: New variables.
2100 (syms_of_xdisp): Initialize and staticpro them.
2101 (string_buffer_position_lim): New function.
2102 (string_buffer_position): Most of code moved to
2103 string_buffer_position_lim. Last argument and return value are
2104 now EMACS_INT; all callers changed.
2105 (set_cursor_from_row): Rewritten to support bidirectional text and
2106 reversed glyph rows.
2107 (text_outside_line_unchanged_p, try_window_id): Disable
2108 optimizations if we are reordering bidirectional text and the
2109 paragraph direction can be affected by the change.
2110 (append_glyph, append_composite_glyph)
2111 (produce_image_glyph, append_stretch_glyph): Set the
2112 resolved_level and bidi_type members of each glyph.
2113 (append_glyph): If the glyph row is reversed, prepend the glyph
2114 rather than appending it.
2115 (handle_stop_backwards): New function.
2116 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2117 (reseat): call handle_stop_backwards to recompute prev_stop and
2118 base_level_stop for the new position.
2119 (handle_invisible_prop): Under bidi iteration, skip invisible text
2120 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2121 paragraph direction. Update IT->prev_stop after skipping
2123 (move_it_in_display_line_to): New variables prev_method
2124 and prev_pos. Compare for strict equality in
2125 BUFFER_POS_REACHED_P.
2126 (try_cursor_movement): Examine all the candidate rows that occlude
2127 point, to return the best match. If rows are bidi-reordered
2128 and point moved backwards, back up to the row that is not a
2129 continuation line, and start looking for a suitable row from
2132 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2133 rather than appending, if the glyph_row's reversed_p flag is set.
2134 Set the resolved_level and bidi_type members of each glyph.
2136 * .gdbinit (pbiditype): New command.
2137 (pgx): Use it to display bidi level and type of the glyph.
2138 (pitx): Display some bidi information about the iterator.
2139 (prowlims, pmtxrows): New commands.
2141 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2143 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2144 * s/usg5-4.h (LIBS_DEBUG):
2145 * s/irix6-5.h (C_DEBUG_SWITCH):
2146 * s/gnu-linux.h (LIBS_DEBUG):
2147 * s/darwin.h (LIBS_DEBUG):
2148 * s/bsd-common.h (LIBS_DEBUG):
2149 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2150 * m/iris4d.h (LIBS_DEBUG):
2151 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2153 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2154 (LIBS_DEBUG): Remove definition.
2156 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
2158 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2161 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2163 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2164 `connect' (Bug#5723).
2166 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
2168 * process.c (Fmake_network_process): Call `select' for interrupted
2169 `connect' rather than creating new socket (Bug#5173).
2171 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
2173 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2175 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2177 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2179 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2181 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2184 2010-03-24 Kenichi Handa <handa@m17n.org>
2186 * coding.c (decode_coding_ccl): Fix previous change for the
2188 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2189 case that the output buffer is fullfilled.
2190 (encode_coding): Setup ccl program here.
2192 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2194 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2196 Simplify LIBS_MACHINE definitions.
2197 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2198 * m/iris4d.h (LIBS_MACHINE): Likewise.
2199 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2200 * s/aix4-2.h (LIBS_SYSTEM): ... here.
2201 * s/netbsd.h: Remove commented out code.
2203 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2205 Remove dead code dealing with POSIX_SIGNALS.
2206 * atimer.c (set_alarm): Remove dead code, all USG systems define
2208 * data.c (arith_error): Likewise.
2209 * keyboard.c (input_available_signal, handle_user_signal)
2210 (interrupt_signal): Likewise.
2211 * process.c (sigchld_handler): Likewise.
2212 (create_process): Remove if 0 code. Remove HPUX conditional when
2213 !defined (POSIX_SIGNALS), it cannot be true.
2214 * syssignal.h: Remove USG5_4 and USG conditionals when
2215 !POSIX_SIGNALS, they cannot be true.
2217 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2218 NO_SOCK_SIGIO, not used anymore.
2220 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2222 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2223 support vax on BSDs.
2225 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2226 * s/aix4-2.h (ORDINARY_LINK): ... here.
2228 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2230 * Makefile.in (abs_builddir): Define.
2231 (bootstrap_exe): Use it.
2232 (VPATH): Use $(srcdir) instead of @srcdir@.
2234 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2236 * Makefile.in (bootstrap_exe): Use an absolute name.
2238 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2240 Remove support for old GNU/Linux using libc version 5.
2241 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2242 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2244 Consolidate redundant definitions in s/bsd-common.h.
2245 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2246 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2247 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2248 doing it in all files that include this one.
2249 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2250 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2251 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2252 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2253 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2254 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2255 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2256 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2257 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2259 Consolidate redundant definitions.
2260 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2261 it's undefined in all files that include this one.
2262 (POSIX_SIGNALS): Define here instead of doing it in all files that
2264 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2265 (POSIX_SIGNALS): Do not define.
2266 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2267 (POSIX_SIGNALS): Do not define.
2268 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2269 (POSIX_SIGNALS): Do not define.
2271 Remove support for old UNIX System V systems.
2272 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2273 * s/usg-5-4-2.h: Remove.
2275 Remove support for Solaris on PPC and for old versions.
2276 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2277 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2278 that cancel each other.
2281 * s/sol2-5.h: Remove.
2282 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2283 (NO_REMAP): Remove, unused.
2284 (UNEXEC): Move definition ...
2285 * s/aix4-2.h (UNEXEC): ... here.
2287 * s/openbsd.h: Remove support for non-ELF and for systems that do
2288 not support shared libraries.
2290 * s/freebsd.h: Likewise.
2292 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2294 Remove non-working support for lynxos 3.0.
2295 * s/lynxos.h: Remove file.
2297 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2298 COFF_BSD_SYMBOLS, nothing defines it anymore.
2300 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2302 Remove obsolete uses of HAVE_SHM.
2303 * emacs.c (standard_args):
2305 (syms_of_emacs): Remove code depending on HAVE_SHM.
2307 * alloc.c: Remove HAVE_SHM dependent definition.
2309 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2311 2010-03-18 Glenn Morris <rgm@gnu.org>
2313 * emacs.c (USAGE4): Hard-code bug address.
2314 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2315 (bug_reporting_address): Remove.
2316 (main): Don't call bug_reporting_address.
2318 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2319 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2321 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
2323 * xfns.c (Fx_create_frame):
2324 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2327 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2329 * editfns.c (Fformat): Account for string precision when computing
2330 field width (Bug#5710).
2332 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
2334 * xfns.c (Fx_create_frame): Set default to Qright.
2336 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2339 2010-03-12 Eli Zaretskii <eliz@gnu.org>
2341 These changes remove termcap.c from the build on Posix platforms.
2342 * Makefile.in (termcapobj): Move termcap.o from here...
2343 (MSDOS_OBJ): ...to here.
2344 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2345 now identical to when LIBS_TERMCAP is defined.
2347 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2349 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2351 * config.in: Regenerated. (See top-level ChangeLog.)
2353 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
2357 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2359 Cleanup setup of gl_state in various parts of the code.
2360 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2361 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2362 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2364 * regex.c (regex_compile): Use it.
2365 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2366 it's now set in regex_compile when/if we need it.
2368 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2370 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2371 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2372 (QUIT): Use it to consolidate code and remove redundancy.
2373 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2375 * regex.c (regex_compile): Setup gl_state as well.
2377 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2378 (in_classes): Use CONSP before XCAR/XCDR.
2380 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
2382 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2383 definitions, so that keyboard macros are correctly handled
2386 2010-03-02 Eli Zaretskii <eliz@gnu.org>
2388 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2389 text that could be relocated inside the call to emacs_mule_char.
2390 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2391 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2393 2010-03-02 Kenichi Handa <handa@m17n.org>
2395 * character.c (parse_str_as_multibyte): Fix handling of the
2396 multibyte form of raw-bytes.
2397 (str_as_multibyte): Likewise.
2399 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2402 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
2404 * charset.c (load_charset_map_from_file)
2405 (load_charset_map_from_vector): Zero out allocated
2406 charset_map_entries before using them.
2408 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2410 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2412 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
2414 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2415 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
2417 2010-02-26 Kenichi Handa <handa@m17n.org>
2419 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2421 * xdisp.c (reseat_to_string): Fix previous change.
2423 2010-02-26 David Reitter <david.reitter@gmail.com>
2425 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2426 Lisp_Object (Bug#4736).
2428 2010-02-25 Kenichi Handa <handa@m17n.org>
2430 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2432 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2434 * xterm.c (XTflash): Move declarations before statements.
2436 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2437 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2438 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2439 (xg_create_tool_bar): Remove unused variables.
2440 (x_wm_set_size_hint): Move declarations before statements.
2441 (xg_create_frame_widgets): Remove variable grav.
2443 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
2445 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2447 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2449 * term.c (fatal): Add a final \n if needed (bug#5596).
2451 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
2453 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2455 2010-02-18 Glenn Morris <rgm@gnu.org>
2457 * callint.c (Finteractive): Doc fix.
2459 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2461 * coding.c (record_conversion_result):
2462 Handle CODING_RESULT_INSUFFICIENT_DST.
2463 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2464 memory allocation error.
2466 2010-02-17 Kenichi Handa <handa@m17n.org>
2468 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2469 Fix for the case that the output buffer is fullfilled.
2470 (decode_coding): Setup ccl program here. Keep looping when the
2471 decoder stopped because the output buffer is
2472 fullfilled (bug#5534).
2474 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2476 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2478 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
2480 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
2483 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2485 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2486 doing_interact here.
2487 (ice_connection_closed): New function.
2488 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2489 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2490 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2492 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2495 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
2497 * nsfont.m (nsfont_open): The system's value for the font descent
2498 is negative, so round it down to avoid clipping.
2500 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
2502 * charset.c (load_charset_map_from_file)
2503 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
2504 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
2506 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
2508 * charset.c (load_charset_map_from_file): Allocate large
2509 charset_map_entries structure on the heap rather than the stack.
2512 2010-01-31 Kenichi Handa <handa@m17n.org>
2514 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
2515 size in NAME is invalid, return -1 (Bug#5396).
2517 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
2519 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2520 <deactivated@gmail.com> (Bug#3605).
2522 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
2524 * fileio.c (Frename_file): Correctly rename symlinks to
2525 directories (Bug#5496).
2527 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2529 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2531 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2533 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2535 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
2537 * frame.c (DEFAULT_ROWS): Change default to 35.
2539 * xfns.c (x_default_font_parameter): Change default XFT font to
2540 monospace-10 (Bug#3643).
2542 2010-01-29 Eli Zaretskii <eliz@gnu.org>
2544 * w32inevt.c (key_event): Remove unnecessary comparison of
2545 event->uChar.AsciiChar with 128.
2547 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
2549 * fileio.c (Frename_file): Fix last change (Bug#5487).
2551 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2553 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2555 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2557 * xfns.c (Fx_create_frame): Remove window size matching code from
2559 (x_get_current_desktop, x_get_desktop_workarea): Remove.
2561 2010-01-27 Jason Rumney <jasonr@gnu.org>
2563 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
2564 (key_event): Use unicode for characters 128 and higher (Bug#4567).
2566 2010-01-27 Kenichi Handa <handa@m17n.org>
2568 * regex.c (analyse_first): Fix setting of fastmap for unibyte
2569 pattern string (Bug#4209).
2571 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
2573 * fileio.c (Frename_file): Call copy-directory and
2574 delete-directory for directories, in order to handle cross-device
2575 renaming (Bug#3353).
2577 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2579 * xfns.c (Fx_create_frame): If frame height is too big, try
2580 sizes 24 and 10. Bug #3643.
2582 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2584 Try and fix bug#788, hopefully for real this time.
2585 * keymap.c (shadow_lookup): Add `remap' arg.
2586 (describe_map, describe_vector): Update calls to shadow_lookup.
2587 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2588 `remapped' so this flag is applicable to `sequence'. Be careful to
2589 perform remapping during shadow_lookup check of remapped_sequences.
2591 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2593 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2594 png_check_sig, which has been removed in libpng 1.4.
2596 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2598 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2599 lacks this header file).
2601 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2603 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2606 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2608 * lisp.h (make_pure_string): String pointer arg now points to const.
2610 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2611 args now point to const.
2613 2010-01-22 Eli Zaretskii <eliz@gnu.org>
2615 * lread.c (Fload): Don't treat files without .elc extension as
2616 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2619 2010-01-20 Kenichi Handa <handa@m17n.org>
2621 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2622 treat the source as actual byte sequence.
2624 2010-01-19 Alan Mackenzie <acm@muc.de>
2626 Fix spurious before-change-functions invocation from (insert ?\n).
2627 * textprop.c (set_text_properties): Rename parameter
2628 `signal_after_change_p' to `coherent_change_p', and make the
2629 invocation of `modify_region' conditional on it.
2631 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2633 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2635 (syms_of_xsettings): Declare xft-settings.
2637 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
2639 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2641 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2643 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2645 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
2647 * emacs.c (standard_args): Adjust arg priorities to reflect how
2648 they are processed in startup.el.
2650 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2652 * Makefile.in (lisp, shortlisp): Update.
2654 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2656 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2657 code, link the new kboard into all_kboard before running Lisp code,
2658 and protect the new terminal with GCPRO (Bug#5365).
2659 (x_term_init): Remove unused var `atom'.
2660 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2662 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2664 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2665 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2666 to find out usable size of the desktop. Don't make frames larger than
2669 2010-01-15 Kenichi Handa <handa@m17n.org>
2671 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2673 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
2675 * nsterm.m (Qnone): Define.
2677 * nsfns.m (Qnone): Move definition to nsterm.m.
2679 2010-01-14 Kenichi Handa <handa@m17n.org>
2681 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2684 2010-01-14 Kenichi Handa <handa@m17n.org>
2686 Make auto-composition work on all buffers even if they are
2689 * composite.c (Vauto_composition_mode): New variable.
2690 (composition_compute_stop_pos): Check Vauto_composition_mode
2691 instead of Vauto_composition_function.
2692 (composition_adjust_point, Ffind_composition_internal): Likewise.
2693 (syms_of_composite): Declare Lisp variable
2694 "auto-composition-mode" here.
2696 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
2698 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2699 during call to vendor-specific-keysyms (Bug#5365).
2701 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2703 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2704 Call SIGNAL_THREAD_CHECK (Bug#5333).
2706 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2707 Call SIGNAL_THREAD_CHECK.
2709 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2711 Try to fix bug#5314. This is probably not the final word, tho.
2712 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2713 recent-auto-save-p as a side-effect.
2714 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2715 * buffer.c (Fkill_buffer, reset_buffer):
2716 * editfns.c (Fsubst_char_in_region):
2717 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2718 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2720 2010-01-13 Kenichi Handa <handa@m17n.org>
2722 Display buffer name, etc. in mode line by composing correctly.
2724 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2726 (display_mode_element): Adjust for the change of
2727 decode_mode_spec and display_line.
2728 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2729 (display_string): Handle the case that STRING is non-null and
2730 LISP_STRING is not nil.
2732 * xterm.c (x_draw_composite_glyph_string_foreground):
2733 Pay attention to s->face->overstrike.
2735 * composite.c (composition_reseat_it): Don't check PT if STRING is
2738 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2740 * keyboard.c (read_char): Don't apply previous change when current
2741 buffer is unchanged by command execution.
2743 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2745 * keyboard.c (read_char): Return after executing from special map.
2747 2010-01-12 Glenn Morris <rgm@gnu.org>
2749 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2750 bug-gnu-emacs rather than emacs-pretest-bug.
2752 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
2754 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2755 initializing the Lisp variables that depend on them.
2757 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2759 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2760 Clear areas that will not be updated after change of menu bar lines.
2761 Clear the menu bar window's current matrix when the window gets empty.
2763 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
2765 * intervals.h, textprop.c (extend_property_ranges): Return value
2766 and args changed. Discard properties that begin at or after the
2769 * editfns.c (Fformat): Caller changed.
2771 * nsterm.m (ns_set_default_prefs): Delete function.
2772 (syms_of_nsterm): Initialize ns_command_modifier,
2773 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2774 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2776 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2777 position (Bug#4040).
2779 2010-01-09 Eli Zaretskii <eliz@gnu.org>
2781 * editfns.c (Ffloat_time): Doc fix.
2783 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2785 * xfns.c (Fx_create_frame): Don't create frame larger than display
2786 by default bug#3643.
2788 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2790 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2791 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2792 windows above internal border.
2794 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2795 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2796 windows above internal border.
2798 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2799 tool bar windows specially.
2801 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2803 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2805 (XTflash): Take account of menu bar height.
2807 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2810 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2812 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
2813 also be true before we can return early (bug #5339).
2815 2010-01-06 David Reitter <david.reitter@gmail.com>
2817 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2818 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2821 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2823 * font.c (font_open_entity): Enable chache and call cached_font_ok
2824 for the driver if defined.
2825 (QCuser_spec): New symbol.
2826 (font_spec_from_name): Save name as user-spec.
2827 (font_load_for_lface): Keep user-spec instead of name.
2828 (font_open_by_name): Save name as user-spec.
2829 (syms_of_font): Initialize QCuser_spec.
2830 (font_clear_prop): Clear name if it exists in font (bug#5157).
2832 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2833 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2834 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2836 * font.h (struct font_driver): Add cached_font_ok.
2838 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2840 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2842 * xterm.c (x_new_font): Move code for setting rows/cols before
2844 (x_set_window_size): ... to here. Bug #2568.
2846 * gtkutil.c (xg_clear_under_internal_border): New function.
2847 (xg_frame_resized, xg_frame_set_char_size):
2848 Call xg_clear_under_internal_border.
2849 (xg_update_scrollbar_pos): Clear under old scroll bar position.
2851 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
2853 * keyboard.c (read_key_sequence): Catch keyboard switch after
2854 making a new tty frame (Bug#5095).
2856 2010-01-05 Kenichi Handa <handa@m17n.org>
2858 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2860 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2862 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2863 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2864 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2866 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
2868 * dbusbind.c (xd_add_watch): Improve debug message.
2869 (xd_remove_watch): Improve debug message. If DATA is the session
2870 bus, unset D-Bus session environment.
2871 (Fdbus_init_bus): Pass the bus as argument to
2872 dbus_connection_set_watch_functions. (Bug#5283)
2874 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
2876 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2878 * lread.c (syms_of_lread): Make it clearer that these are the
2879 names of loaded files (Bug#5068).
2881 * eval.c (run_hook_with_args): Handle the case where the global
2882 value has the obsolete single-function form (Bug#5026).
2884 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
2886 * minibuf.c (Fall_completions): Minor optimization.
2888 2009-12-26 Eli Zaretskii <eliz@gnu.org>
2890 * .gdbinit (pgx): Fix display of composite glyphs.
2891 Display cmp.from and cmp.to as well.
2892 (pitx): Fix last change.
2894 2009-12-25 Kenichi Handa <handa@m17n.org>
2896 * composite.h (composition_adjust_point): Update prototype.
2898 * composite.c (composition_reseat_it): Don't make a composition
2899 spanning over point.
2900 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2901 composable characters.
2902 (composition_adjust_point): New arg NEW_PT. Callers changed.
2904 * keyboard.c (command_loop_1): Force redisplay if the last point
2905 was within a composition.
2906 (adjust_point_for_property): Don't adjust point for automatic
2907 composition when called after buffer modification.
2909 2009-12-19 Eli Zaretskii <eliz@gnu.org>
2911 * .gdbinit (pitx): Don't use enum names, use their values.
2912 Remove reference to non-existing value GET_FROM_COMPOSITION.
2913 (pgx): Don't use enum names, use their values.
2914 (pitmethod): New helper command.
2915 (pitx): Use it to display iteration method.
2916 (pgrowit): New command.
2918 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2920 Update dependencies in Makefile.in.
2922 * Makefile.in (alloc.o): Depend on termhooks.h.
2923 (atimer.o): Depend on blockinput.h.
2924 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2926 (callint.o): Depend on systime.h, coding.h, and composite.h.
2927 (callproc.o): Depend on buffer.h.
2928 (casefiddle.o): Don't depend on charset.h.
2929 (casetab.o): Depend on character.h.
2930 (ccl.o): Depend on composite.h.
2931 (chartab.o): Depend on ccl.h.
2932 (cm.o): Depend on dispextern.h.
2933 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2934 (coding.o): Don't depend on $(INTERVALS_H).
2935 (composite.o): Don't depend on dispextern.h explicitly (it's in
2936 $(INTERVALS_H)). Depend on ccl.h.
2937 (data.o): Depend on systime.h, coding.h, composite.h,
2938 dispextern.h, font.h, and ccl.h.
2939 (dired.o): Depend on composite.h.
2940 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2941 composite.h (it's in $(INTERVALS_H)).
2942 (doc.o): Depend on systime.h, coding.h, and composite.h.
2943 (editfns.o): Don't depend explicitly on dispextern.h.
2944 (emacs.o): Depend on frame.h and coding.h.
2945 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2946 (fileio.o): Depend on frame.h and commands.h. Don't depend
2947 explicitly on dispextern.h.
2948 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2950 (fns.o): Don't depend on termhooks.h.
2951 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2952 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2953 coding.h, $(INTERVALS_H), window.h, xterm.h.
2954 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2955 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2956 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2957 fontset.h, ccl.h, and ftfont.h.
2958 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2959 (gtkutil.o): Depend on dispextern.h and composite.h.
2960 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2961 termhooks.h, and ccl.h.
2962 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2963 (intervals.o): Depend on systime.h and coding.h.
2964 (keyboard.o): Depend on composite.h and coding.h.
2965 (keymap.o): Depend on coding.h and frame.h.
2966 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2967 (macros.o): Depend on systime.h, coding.h, and composite.h.
2968 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2970 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2971 dispextern.h explicitly.
2972 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2973 Don't depend explicitly on dispextern.h and composite.h.
2974 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2975 (regex.o): Don't depend on charset.h.
2976 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2977 (search.o): Don't depend explicitly on composite.h.
2978 (sound.o): Depend on atimer.h and systime.h.
2979 (syntax.o): Don't depend explicitly on composite.h.
2980 (sysdep.o): Depend on coding.h and composite.h.
2981 (term.o): Depend on xterm.h and buffer.h.
2982 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2983 (textprop.o): Don't depend on dispextern.h explicitly.
2984 (undo.o): Depend on dispextern.h.
2985 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2986 dispextern.h and composite.h explicitly.
2987 (xdisp.o): Depend on ccl.h.
2988 (xfaces.o): Depend on coding.h and ccl.h.
2989 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2990 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2991 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2993 (xgselect.o): New dependency.
2994 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2995 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2996 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2997 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2998 (xsmfns.o): Depend on frame.h and dispextern.h.
2999 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3002 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3004 * font.c (Fclear_font_cache): Pass correct cache argument to
3007 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3009 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3012 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
3014 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3015 calling file-remote-p. Reported by Jim Meyering.
3017 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
3019 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
3020 avoid compiler warnings. (Bug #5217)
3022 2009-12-14 Kenichi Handa <handa@m17n.org>
3024 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3027 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
3029 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3032 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3034 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3035 Xatom_net_window_type.
3037 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3038 Xatom_net_window_type.
3040 * xterm.c (my_log_handler): New function.
3041 (x_term_init): Set my_log_handler as log handler during gtk_init
3042 so we can filter out buggy messages. (Bug #5120).
3044 * xterm.c (xg_scroll_callback): Parameter list changed,
3045 use parameter GtkScrollType to determine scroll/line/page.
3046 Only allow dragging if a button < 4 is grabbed (bug #5177).
3047 (xg_end_scroll_callback): New function.
3048 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3049 xg_create_scroll_bar.
3051 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3052 (scroll_end_callback): Remove.
3053 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3054 button-release-event. Replace value-changed event with change-value,
3056 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3059 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3060 (xg_create_scroll_bar): Add GCallback end_callback.
3062 * xftfont.c (QClcdfilter): New variable.
3063 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3064 (syms_of_xftfont): Initialize QClcdfilter.
3066 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3068 * xsettings.c (struct xsettings): Add member seen.
3069 (parse_xft_settings): Update member seen with what we have read.
3070 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3071 (apply_xft_settings): Only update Xft settings with what member seen
3074 2009-12-12 Eli Zaretskii <eliz@gnu.org>
3076 * dispextern.h (struct text_pos): Use EMACS_INT;
3077 (struct glyph): Use EMACS_INT for charpos.
3078 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3079 region_beg_charpos, region_end_charpos,
3080 redisplay_end_trigger_charpos, and also for
3081 iterator_stack_entry.end_charpos and
3082 iterator_stack_entry.stop_charpos.
3084 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3086 * gtkutil.c (scroll_end_callback): New function (bug #5177).
3087 (xg_create_scroll_bar): Call scroll_end_callback on button release
3089 (xg_event_is_for_scrollbar): != replaced with ==.
3091 2009-12-12 Kenichi Handa <handa@m17n.org>
3093 * ftfont.c (struct ftfont_info): New member matrix.
3094 (ftfont_open): Setup xftfont_info->matrix.
3095 (MFLTFontFT): New member matrix.
3096 (FLOOR, CEIL, ROUND): New macros.
3097 (ftfont_get_metrics): Handle matrix transformation.
3098 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3100 * xftfont.c (struct xftfont_info): New member matrix.
3101 (xftfont_open): Setup xftfont_info->matrix.
3103 2009-12-10 Kenichi Handa <handa@m17n.org>
3105 * xdisp.c (append_space_for_newline): Consider face-remapping.
3107 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3109 * xsettings.c: Include "keyboard.h".
3111 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3113 Fix implicit function declarations.
3114 * cmds.c: Include "frame.h".
3115 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3116 * frame.h: Move declaration of delete_frame outside of
3119 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3121 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3123 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3126 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3128 * unexelf.c (unexec): Don't search for .data twice.
3130 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
3132 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3134 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3135 of push_display_prop (Bug#5000).
3137 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3138 value of font_list_entities (Bug#5085).
3140 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
3142 Fix `string-to-number' to deal consistently with integers and floats.
3143 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3144 trailing characters, not just whitespace.
3145 (read1): Pass new arg 0 to keep old behavior.
3146 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3147 trailing chars, as it is already done for integers. Doc fixes.
3148 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3150 2009-12-04 Eli Zaretskii <eliz@gnu.org>
3152 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3153 Delete unused enumeration value.
3155 2009-12-03 Eli Zaretskii <eliz@gnu.org>
3157 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3159 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3161 * process.c (Fmake_network_process): Fix up the tests for
3162 "connectionless socket", so they DTRT for seqpacket sockets as well.
3164 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3166 * process.c (Qseqpacket): New symbol.
3167 (HAVE_SEQPACKET): New macro.
3168 (Fmake_network_process): Accept new :type `seqpacket'.
3169 (init_process): Add `seqpacket' feature when applicable.
3170 (syms_of_process): Initialize Qseqpacket.
3172 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3174 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3177 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3179 * print.c (print_preprocess): Preprocess the key_and_value table of
3180 hashtables, even tho they're "hidden" (bug#5082).
3182 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3184 * frame.c (frame_make_pointer_invisible)
3185 (frame_make_pointer_visible): Declare f before statements.
3187 2009-11-28 Eli Zaretskii <eliz@gnu.org>
3189 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3190 omitted dependencies on lisp.h.
3192 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3194 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3197 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3199 * frame.c (frame_make_pointer_invisible)
3200 (frame_make_pointer_visible): Just return if there isn't any selected
3203 * search.c (simple_search): Remove warning by making *p const.
3205 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3207 * xdisp.c (power_letter): Remove duplicate const.
3209 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3211 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3213 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
3214 defaults (bug #5025).
3216 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3218 * insdel.c (adjust_markers_for_delete): Move it in the
3219 right direction! (bug#4803)
3221 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3223 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3225 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3227 2009-11-24 Glenn Morris <rgm@gnu.org>
3229 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3231 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3233 * Makefile.in: Must create deps for ecrt0.o in its rule.
3235 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3236 because that is what Gtk+ font dialog understands.
3238 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3240 (font_open_by_name): Put name given into QCname for font-object returned.
3242 * frame.c (x_set_font): Save original font name as frame parameter
3245 * xsettings.c (set_default_xft_settings): New function.
3246 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3249 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3251 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3252 searching backwards through multibyte buffer.
3254 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3256 * xterm.c: #include xgselect.h.
3257 (x_initialize): Call xgselect_initialize.
3259 * xsettings.c (something_changedCB): C++ comments => C comments.
3260 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3263 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3264 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3265 (scroll_bar_button_cb): Remove.
3266 (create_menus): C++ comments => C comments. Don't bind grab-notify
3268 (xg_create_scroll_bar): Don't bind button-press-event and
3269 button-release-event.
3271 * process.c: Include xgselect.h if defined (USE_GTK) ||
3272 defined (HAVE_GCONF).
3273 (wait_reading_process_output): Call xg_select for the same condition.
3275 * xgselect.c (xg_select): New function to better integrate with
3276 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3278 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3280 * Makefile.in (XOBJ): Add xgselect.o.
3282 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3284 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3285 Remove ignored second argument. All callers changed.
3286 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3287 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3288 * xdisp.c (string_char_and_length): Likewise.
3290 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3292 * xterm.c (x_new_font):
3293 * print.c (print_object):
3294 * cmds.c (Fself_insert_command): Move declarations before statements.
3296 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3298 * s/cygwin.h: Remove unneeded linker flags.
3300 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3302 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3304 * xsettings.h: Declare xsettings_get_system_font.
3306 * xsettings.c (xsettings_get_system_font): New function.
3307 (init_gconf): No use initiating gconf unless we have Xft also.
3308 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3311 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3312 add a blank entry so it doesn't collapse into nothing.
3314 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3316 * lread.c (Funintern): Comment out last change.
3318 2009-11-19 Richard Stallman <rms@gnu.org>
3320 * lread.c (Funintern): Error if symbol is t or nil.
3322 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3324 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3325 representation of Lisp integers.
3326 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3328 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3330 * lisp.h: Remove declaration of Ffont_get_system_font.
3331 * xfns.c: Move include of "xsettings.h".
3332 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3334 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3336 * xsettings.c (something_changedCB, Ffont_get_system_font):
3337 Check use_system_font.
3338 (syms_of_xsettings): DEFVAR font-use-system-font.
3340 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3342 * xfns.c (x_default_font_parameter): Remove dead assignment.
3344 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3346 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3348 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
3349 not have FC_LCD_*. #define them if not there.
3351 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
3353 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3355 * xterm.c (handle_one_xevent): Call xft_settings_event for
3356 ClientMessage, PropertyNotify and DestroyNotify.
3357 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3358 Call xsettings_initialize.
3360 * xftfont.c (xftfont_fix_match): New function.
3361 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3362 Call xftfont_fix_match after XftFontMatch.
3364 * xfont.c (xfont_driver): Initialize all members.
3366 * xfns.c (x_default_font_parameter):
3367 Try font from Ffont_get_system_font.
3368 Do not get font from x_default_parameter if we got one from
3369 Ffont_get_system_font.
3370 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
3372 * w32font.c (w32font_driver): Initialize all members.
3374 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3376 * lisp.h: Declare syms_of_xsettings.
3378 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3379 Handle CONFIG_CHANGED_EVENT.
3381 * ftfont.c (ftfont_filter_properties): New function.
3383 * frame.c (x_set_font): Remove unused variable lval.
3385 * font.h (struct font_driver): Add filter_properties.
3387 * font.c (font_put_extra): Don't return if val is nil, it means
3388 boolean option is off.
3389 (font_parse_fcname): Collect all extra properties in extra_props
3390 and call filter_properties for all drivers with extra_props and
3392 (font_open_entity): Do not use cache, it does not pick up new
3393 fontconfig settings like hinting.
3394 (font_load_for_lface): If spec had a name in it, store it in entity.
3396 * emacs.c (main): Call syms_of_xsettings.
3398 * config.in: HAVE_GCONF is new.
3400 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3403 2009-11-17 Kenichi Handa <handa@m17n.org>
3405 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3406 back to the default font in case that no suitable font is found.
3408 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3410 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3411 Suggested by Chad Brown <yandros@mit.edu>.
3412 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3414 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3416 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3418 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3420 * Makefile.in: Ignore errors from mkdir when creating deps directory.
3422 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3424 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3427 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
3428 dependency files in deps/. Include those files into Makefile.
3430 * config.in: Generated (AUTO_DEPEND).
3432 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
3434 * dbusbind.c (Vdbus_registered_objects_table): Rename from
3435 Vdbus_registered_functions_table, because it contains also
3436 properties. Fix docstring.
3437 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
3439 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3441 * alloc.c (mark_object): Don't reprocess marked strings.
3442 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3443 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3445 2009-11-13 Kenichi Handa <handa@m17n.org>
3447 * category.c (word_boundary_p): Adjust for the change of the
3448 semantics of Vword_combining_categories.
3449 (Vword_combining_categories): Describe the slight change of the
3452 2009-11-13 Eli Zaretskii <eliz@gnu.org>
3454 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3456 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3458 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3460 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3462 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
3464 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3466 2009-11-11 David Reitter <david.reitter@gmail.com>
3468 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3469 variables to fix 2009-11-09 change.
3471 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3473 * process.c (ifflag_def): Make flag_sym constant.
3474 (Fnetwork_interface_info): Use a constant pointer.
3476 * xfns.c (cursor_bits):
3477 * xdisp.c (power_letter):
3478 * termcap.c (speeds, esctab):
3479 * sysdep.c (baud_convert):
3480 * keyboard.c (lispy_accent_codes, modifier_names):
3481 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3482 (jpeg_format, tiff_format, gif_format, svg_format)
3483 (interlace_start, interlace_increment, gs_format):
3484 * gtkutil.c (separator_names):
3485 * fringe.c (swap_nibble):
3486 * fns.c (base64_value_to_char, base64_char_to_value):
3487 * fileio.c (make_temp_name_tbl):
3488 * coding.c (suffixes): Make constant.
3490 * frame.c (make_initial_frame):
3491 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3493 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3496 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3498 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3499 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3501 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3502 * xterm.c (syms_of_xterm):
3503 * xfaces.c (syms_of_xfaces):
3504 * xdisp.c (syms_of_xdisp):
3505 * lread.c (syms_of_lread):
3506 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3509 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3511 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3513 * fns.c (Fplist_get): Merge the active and the commented out code.
3515 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3517 * keyboard.h: Declare timer_check.
3519 * keyboard.c (timer_check_2): New function that does what the old
3521 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3522 returned, i.e. don't return -1 with timers pending.
3524 * process.c: Remove extern declaration of timer_check.
3526 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3527 even if timer_check returned -1.
3529 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3531 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3533 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3534 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3535 Destroy the dialog after xg_dialog_run.
3537 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3539 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3541 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3543 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3545 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
3547 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3549 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3551 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3552 w32menu.c, and nsmenu.m.
3553 Simplify the obsolete case where position is nil.
3554 (cleanup_popup_menu): New function, moved from nsmenu.m.
3555 (struct skp): Remove slot `notreal'.
3556 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3558 (single_menu_item): Adjust call to parse_menu_item.
3559 (syms_of_menu): Defsubr x-popup-menu.
3560 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3561 (keymap_panes): Don't export any more.
3562 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3563 (xmenu_show): Declare.
3564 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3565 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3566 * keyboard.h (parse_menu_item): Update declaration.
3567 * xmenu.c (Fx_popup_menu): Remove.
3568 (syms_of_xmenu): Don't defsubr x-popup-menu.
3569 * w32menu.c (Fx_popup_menu): Remove.
3570 (syms_of_w32menu): Don't defsubr x-popup-menu.
3571 * nsmenu.m (cleanup_popup_menu): Remove.
3572 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3573 moved to menu.c's Fx_popup_menu.
3574 (Fx_popup_menu): Remove.
3575 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3576 menu_items (it's done in menu.c already).
3578 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3580 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3581 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3583 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
3585 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
3586 xmenu_show. Hide any tooltip before opening a menu.
3587 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3588 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3590 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3592 Let integers use up 2 tags to give them one extra bit and thus double
3594 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3595 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3597 (enum Lisp_Type): Use them. Give explicit values.
3598 (Lisp_Type_Limit): Remove.
3599 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3600 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3601 Pay attention to USE_2_TAGS_FOR_INTS.
3602 (INTEGERP): Use LISP_INT_TAG_P.
3603 * fns.c (internal_equal): Simplify the default case.
3604 (sxhash): Use case_Lisp_Int.
3605 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3607 (Ftype_of): Use case_Lisp_Int.
3608 (store_symval_forwarding): Take into account the fact that Ints can
3609 now have more than one tag.
3610 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3611 buffer_slot_type_mismatch):
3612 * xfaces.c (face_attr_equal_p):
3613 * print.c (print_object):
3614 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3617 2009-11-06 Eli Zaretskii <eliz@gnu.org>
3619 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3621 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3624 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3626 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3628 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3630 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3631 ButtonPressRelease and MotionNotify (bug#4870).
3633 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3635 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3637 * xterm.c (syms_of_xterm):
3638 * xselect.c (syms_of_xselect):
3639 * xmenu.c (syms_of_xmenu):
3640 * xfns.c (syms_of_xfns):
3641 * xfaces.c (syms_of_xfaces):
3642 * xdisp.c (syms_of_xdisp):
3643 * window.c (syms_of_window):
3644 * w32fns.c (syms_of_w32fns):
3645 * undo.c (syms_of_undo):
3646 * textprop.c (syms_of_textprop):
3647 * terminal.c (syms_of_terminal):
3648 * syntax.c (syms_of_syntax):
3649 * sound.c (syms_of_sound):
3650 * search.c (syms_of_search):
3651 * print.c (syms_of_print):
3652 * minibuf.c (syms_of_minibuf):
3653 * macros.c (syms_of_macros):
3654 * keymap.c (syms_of_keymap, initial_define_key)
3655 (initial_define_lispy_key):
3656 * keyboard.c (syms_of_keyboard):
3657 * insdel.c (syms_of_insdel):
3658 * image.c (syms_of_image):
3659 * fringe.c (syms_of_fringe):
3660 * frame.c (syms_of_frame):
3661 * fontset.c (syms_of_fontset):
3662 * fns.c (syms_of_fns):
3663 * fns.c (syms_of_fns):
3664 * fileio.c (syms_of_fileio):
3665 * fileio.c (syms_of_fileio):
3666 * eval.c (syms_of_eval):
3667 * doc.c (syms_of_doc):
3668 * dispnew.c (syms_of_display):
3669 * dired.c (syms_of_dired):
3670 * dbusbind.c (syms_of_dbusbind):
3671 * data.c (syms_of_data):
3672 * composite.c (syms_of_composite):
3673 * coding.c (syms_of_coding):
3674 * cmds.c (syms_of_cmds):
3675 * charset.c (define_charset_internal, syms_of_character):
3676 * ccl.c (syms_of_ccl):
3677 * category.c (syms_of_category, init_category_once):
3678 * casetab.c (syms_of_casetab):
3679 * casefiddle.c (syms_of_casefiddle):
3680 * callint.c (syms_of_callint):
3681 * bytecode.c (syms_of_bytecode):
3682 * buffer.c (keys_of_buffer, syms_of_buffer):
3683 * alloc.c (syms_of_alloc):
3684 * process.c (syms_of_process, init_process):
3685 * lread.c (syms_of_lread, init_obarray):
3686 * font.c (build_style_table):
3687 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3688 intern_c_string, calls to make_pure_string with
3689 make_pure_c_string. Use pure_cons instead of Fcons.
3691 * process.c (socket_options): Make it const.
3692 (set_socket_option, init_process): Use a const pointer.
3694 * lread.c (intern_c_string): New function.
3695 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3696 (defvar_int): Uset it. Make the name const char*.
3698 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3699 (defvar_int): Update prototypes.
3700 (DEFUN, EXFUN): Support for prototypes is now required.
3701 (intern_c_string): New prototype.
3702 (struct Lisp_Subr): Make symbol_name constant.
3704 * font.c (struct table_entry): Remove unused member. Make NAMES
3706 (weight_table, slant_table, width_table): Make constant.
3708 * emacs.c (struct standard_args): Make name and longname constant.
3710 * character.h (DEFSYM): Use intern_c_string.
3712 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3714 * alloc.c (make_pure_c_string): New function.
3716 * eval.c (Fautoload): Purecopy all arguments.
3718 2009-11-05 Kenichi Handa <handa@m17n.org>
3720 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3721 the buffer in case of replace.
3723 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3725 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3727 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3729 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3730 when applicable (bug#4851).
3732 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3733 (P_): Support for prototypes is now required.
3735 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
3737 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3740 2009-10-30 Eli Zaretskii <eliz@gnu.org>
3742 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
3744 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3746 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3748 * lread.c (Fload): Purecopy the file name when building
3749 Vpreloaded_file_list.
3751 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3753 * w32fns.c (syms_of_w32fns): Change default value of
3754 w32-scroll-lock-modifier to nil. (Bug#2827)
3756 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3758 * minibuf.c (Fall_completions): Fix typos in docstring.
3760 2009-10-26 Andreas Schwab <schwab@redhat.com>
3762 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3764 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3766 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3767 For delta < 0, skip check that only makes sense when the mini-window
3768 is going to be enlarged. (Bug#4534)
3770 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
3772 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3773 string in menu maps (Bug#4471).
3775 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
3777 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3778 FRAME_NS_VIEW on terminal frames (Bug#4765).
3780 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3782 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3783 DBUS_TYPE_UINTnn separately to get proper sign extension.
3785 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3786 can properly handle unsigned types.
3787 (make_uid, make_gid): Remove.
3789 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3792 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
3793 (system_process_attributes): Likewise.
3795 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3797 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3799 * eval.c (Fautoload): Purecopy the filename. Simplify.
3801 * category.c (Fdefine_category): Purecopy docstring.
3803 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3805 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3807 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3809 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
3811 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3812 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3815 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3817 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3819 * lisp.h (init_fileio_once): Remove.
3820 * emacs.c (main): Don't call init_fileio_once.
3822 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3824 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3826 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3828 * doprnt.c (doprnt): Fix overflow check.
3830 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3832 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3834 * xterm.h (x_wait_for_event): Declare it.
3836 * xterm.c (pending_event_wait): New variable.
3837 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3838 see pending_event_wait.eventtype.
3839 (handle_one_xevent): Don't change gravity when parent changes.
3840 (x_new_font): Call change_frame_size with new rows/columns before we
3841 try to resize the frame.
3842 (x_wait_for_event): New function.
3843 (x_set_window_size_1): Don't change gravity unless change_gravity
3845 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3846 don't change frame size, instead wait for the ConfigureNotify.
3847 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3848 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3849 (x_initialize): Initialize pending_event_wait.
3851 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3854 * widget.c (EmacsFrameSetValues): Add comment.
3855 (EmacsFrameSetCharSize): Just call x_set_window_size.
3857 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3859 (flush_and_sync): Remove again.
3860 (xg_get_font_name): Suggest monospace if no previous font is known.
3862 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3864 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
3865 8th bit, since that only made sense in the ASCII world (bug#4751).
3867 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3869 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3870 processing pending events when event is filtered for input method.
3873 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
3875 * fns.c: Add #endif accidentally removed in previous change.
3877 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3879 * fns.c: Remove code for unsupported system: MAC_OS.
3880 * image.c: Likewise. Include setjmp.h.
3882 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3884 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3885 pixel -1 (bug #4742).
3887 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3889 * process.c (create_pty): Remove conditionals for no longer
3890 supported systems: UNIPLUS and RTU.
3893 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3895 * alloc.c: Do not define struct catchtag.
3896 * eval.c: Move struct catchtag definition ...
3899 * image.c: Move png.h #include earlier to avoid warnings.
4000 * atimer.c: Include setjmp.h. (Bug#4643)
4002 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4004 Remove leftover table unibyte_to_multibyte_table.
4005 * character.c (unibyte_to_multibyte_table): Remove.
4006 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4007 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4008 * character.h (UNIBYTE_TO_CHAR): New macro.
4009 (MAKE_CHAR_MULTIBYTE): Use it.
4010 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4011 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4012 (message_dolog, set_message_1):
4013 * search.c (Freplace_match):
4014 * editfns.c (Fcompare_buffer_substrings):
4015 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4017 * insdel.c (copy_text, count_size_as_multibyte):
4018 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4019 * term.c (produce_glyphs):
4020 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4021 * regex.c (RE_CHAR_TO_MULTIBYTE):
4022 * cmds.c (internal_self_insert):
4023 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4025 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4027 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4029 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4031 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
4033 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4035 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4037 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4038 still needed under Tiger.
4040 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4042 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4045 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4047 2009-10-15 Kenichi Handa <handa@m17n.org>
4049 * print.c (print_object): Escape a symbol like "2E10" too.
4051 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
4053 Cleanups and changes for 64-bit compile under Snow Leopard.
4054 Based on suggestions by Erik Charlebois.
4056 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4058 * nsfont.m (ns_char_width): Replace deprecated call.
4059 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4061 (nsfont_open): Use ns_char_width() everywhere.
4062 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
4064 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4066 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4069 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4071 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4072 Use stringWithUTF8String.
4073 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4075 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4076 Add formal protocol mention to inheritance.
4077 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4079 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4081 (ns_query_color): Use CGFloat where appropriate.
4082 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
4083 (EmacsScroller-mouseDown:): Use long format in printf, and cast
4086 * config.in (NS_HAVE_NSINTEGER): Drop.
4088 * dbusbind.c (dbus-method-return-internal)
4089 (dbus-method-error-internal): Use long format in printf, and cast
4092 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4093 in printf, and cast argument.
4095 * process.c (list_processes_1): Use long format in printf, and
4098 2009-10-11 Glenn Morris <rgm@gnu.org>
4100 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4102 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4104 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4105 menu bar with a small width so it doesn't enlarge the frame.
4107 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
4109 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4111 2009-10-06 Glenn Morris <rgm@gnu.org>
4113 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4114 SOME_MACHINE_LISP (this enters indirectly via DOC).
4116 2009-10-05 Eli Zaretskii <eliz@gnu.org>
4118 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4120 2009-10-04 Eli Zaretskii <eliz@gnu.org>
4122 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4125 2009-10-03 Martin Rudalics <rudalics@gmx.at>
4127 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4129 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
4131 * lisp.h (Qdelete_directory_internal): Remove, because it is not
4132 used anymore outside fileio.c.
4134 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4136 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
4138 * lisp.h (Qdelete_directory_internal):
4139 Declare, instead of Qdelete_directory.
4141 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4143 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4145 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4147 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
4149 * fileio.c (Fdelete_directory_internal): Rename from
4150 Fdelete_directory. It is not a command anymore. It has no file
4153 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4155 * xdisp.c (get_next_display_element): Use an enum in last change.
4157 2009-09-28 Kenichi Handa <handa@m17n.org>
4159 * xdisp.c (get_next_display_element): Pay attention to
4160 unibyte_display_via_language_environment in handling
4161 Vnobreak_char_display.
4163 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4165 * nsterm.h (ns_app_name): New extern variable.
4167 * nsterm.m (ns_app_name): New variable.
4168 (ns_term_init): Set and use it.
4169 (ns_term_shutdown): Use it.
4171 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4172 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4174 * nsfns.m (ns_set_name_iconic, ns_set_name)
4175 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4176 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4178 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4179 Remove double-casting in client_data comparison.
4181 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4183 * keyboard.c (make_lispy_event): Remember last wheel direction.
4184 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4186 2009-09-26 Glenn Morris <rgm@gnu.org>
4188 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4189 internal.elc. Add term/pc-win.elc.
4190 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4192 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4195 (lisp): Add NS_SUPPORT.
4196 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4198 2009-09-25 David Reitter <david.reitter@gmail.com>
4200 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4201 on Mac OS X 10.6+ (bug#4513).
4203 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4205 * frame.c (xrdb_get_resource): Return nil for empty string resources;
4206 some parts of Emacs code (like font selection) don't grok them.
4207 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
4209 2009-09-24 Andreas Schwab <schwab@redhat.com>
4211 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4213 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4215 * dired.c (Fdirectory_files): Fix typo in docstring.
4217 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4219 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4220 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4221 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4223 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4225 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4228 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4230 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
4231 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
4233 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4234 deleted (bug #4492).
4236 * nsfont.m (Vns_reg_to_script): New lisp variable.
4237 (syms_of_nsfont): Declare it.
4238 (ns_registry_to_script): New function.
4239 (ns_get_req_script): Call it.
4240 (ns_findfonts): Don't give up on non-unicode registry.
4242 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4244 2009-09-20 Tom Tromey <tromey@redhat.com>
4246 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4247 batch mode (bug#4228).
4249 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
4251 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
4252 carefully. (Bug #4339)
4254 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
4256 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
4258 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4260 * emacs.c (inhibit_x_resources): Update doc string for NS.
4261 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
4262 legacy code for -NXHost. Fix error printf in daemon case.
4264 * nsterm.h (ns_no_defaults): Remove.
4266 * nsterm.m (ns_no_defaults): Remove.
4267 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4268 (ns_use_qd_smoothing): Remove legacy variable.
4269 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4270 don't update the NSWindow itself.
4271 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
4272 state detection and store user rect ourselves. (Bug #3581)
4274 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4275 ns_use_qd_smoothing.
4277 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4278 platform versions. Drop support for emacs-20-style face specs.
4279 (x-close-connection): Drop PSFlush() under OS X.
4280 (x-focus-frame): Activate the app first. (Bug #4180)
4282 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
4284 * emacs.c (inhibit_x_resources): New variable.
4285 (main) [HAVE_NS]: Don't process --quick command line option.
4286 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4288 * lisp.h (inhibit_x_resources): Declare it extern.
4290 * w32reg.c (x_get_string_resource):
4291 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4293 2009-09-17 Eli Zaretskii <eliz@gnu.org>
4295 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4296 Add lisp/term/internal.elc.
4298 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4300 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4303 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4305 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4307 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4308 (OBJECTS_MACHINE): Remove, unused.
4310 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4312 * frame.c (x_get_resource_string): Remove unused.
4314 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4316 * xterm.c (x_new_font): Call change_frame_size before calling
4317 x_set_window_size, in case frame size won't change.
4319 * frame.c (x_set_font): Remove dead code.
4321 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4323 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4325 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4327 * lread.c (Fload): Don't output a message after loading an obsolete
4328 package any more (done in Lisp now).
4330 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
4332 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4334 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4336 * keymap.c (Fwhere_is_internal): Use nconc2.
4338 2009-09-11 Alan Mackenzie <acm@muc.de>
4340 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4343 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4345 * xdisp.c (display_mode_element): Detect cycles.
4347 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4349 * keymap.c (where_is_internal): Don't erroneously return nil right after
4351 (where_is_internal_1): Fix up typo.
4353 2009-09-11 Glenn Morris <rgm@gnu.org>
4355 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4356 share a common doc-string.
4358 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4360 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4361 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4363 * keymap.c (QCadvertised_binding): New constant.
4364 (syms_of_keymap): Initialize it.
4365 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4368 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4370 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4371 (parse_menu_item): Streamline since bindings are recomputed all the
4372 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4373 more and don't support lmenu's menu-alias any more either.
4375 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4376 (where_is_internal): Strip it down to only traverse the keymaps.
4377 Move the cache handling from Fwhere_is_internal to here.
4378 (Fwhere_is_internal): Move the handling of remapping and the choice of
4379 the best binding from where_is_internal to here.
4380 Unify the cached/noncached paths, so remapping is also handled
4381 correctly when the cache is used, and so the cache can be used to
4382 speed up remap-handling when applicable.
4383 Give preference to non-remapped bindings.
4384 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4385 non-remapped bindings.
4386 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4389 * xdisp.c (display_mode_element): Move list length limit from 50 to
4390 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4392 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
4394 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4396 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4398 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4401 * keymap.c (where_is_internal): Filter out shadowed remappings.
4402 Assume that where_is_internal returns unshadowed bindings to simplify
4403 the code and get rid of the gotos. Use ASIZE.
4405 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4407 * xterm.c (x_focus_changed): If we get a focusout and pointer
4408 is invisible, make it visible.
4410 * xterm.h: Remove condition for declaration of
4411 x_*_window_to_frame.
4413 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4415 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4416 initial terminal as well.
4418 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4420 * xterm.h: Rename x_non_menubar_window_to_frame to
4421 x_menubar_window_to_frame.
4423 * xterm.c: Remove declarations also in xterm.h.
4424 (XTmouse_position): Do not return valid positions
4425 for clicks in the menubar and the toolbar for Gtk+.
4427 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4428 if the widget for the event has the same top level as a frame,
4430 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4431 internal windows, bug #4122.
4432 (x_non_menubar_window_to_frame): Remove.
4434 2009-09-02 Glenn Morris <rgm@gnu.org>
4436 * buffer.c (default-major-mode): Move most of the doc from here...
4437 (major-mode): ... to here.
4439 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
4441 * process.c (wait_reading_process_output): Keep the descriptor
4442 when pty is used by a non-child process, e.g., in I/O buffer of
4443 GDB this allows inferior to be restarted.
4445 2009-08-29 Eli Zaretskii <eliz@gnu.org>
4447 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4448 both branches into one.
4450 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4452 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4453 (main): Use enable-multibyte-characters rather than
4454 default-enable-multibyte-characters. Output a warning message when
4455 running a unibyte session.
4457 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4459 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4460 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4461 (copy_data_segment): Also copy __program_vars section.
4462 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4463 (dump_it) [LC_DYLD_INFO]: Use it.
4465 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4467 2009-08-28 Eli Zaretskii <eliz@gnu.org>
4469 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4471 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4472 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4474 (clean): Add buildobj.h.
4476 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4478 * print.c (print_object): Set escapeflag to 1 when printing
4479 hashtable keys and values.
4481 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4483 * lread.c (read_integer): Use doubles (and potentially return a float
4484 number) as we do in string-to-number.
4485 (read1): Use strtol to read integers, signal errors on strtol's
4486 overflow and use floats if strtol's output is too large for
4489 2009-08-27 Eli Zaretskii <eliz@gnu.org>
4491 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4492 (make-buildobj-SH): Fix last change.
4493 (SRC): Move to before where it's first used.
4495 2009-08-27 Kenichi Handa <handa@m17n.org>
4497 * process.c (send_process): Use encode_coding_object instead of
4498 encode_coding_string to perform eol-conversion even if the string
4501 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4504 * cmds.c (Fself_insert_command): Avoid unnecessay
4505 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
4507 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4509 * callproc.c (Fcall_process): Remove always true #if.
4511 * lisp.h: Replace #if 0 code for checking with text pointing to
4512 the --enable-checking configure flag.
4514 * emacs.c (main): Mention the --enable-profiling configure flag
4515 instead of using CFLAGS.
4517 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
4519 * Makefile.in (buildobj.h): New target.
4520 (doc.o): Depend on it.
4521 (temacs${EXEEXT}): Don't generate buildobj.lst.
4522 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4523 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4524 ($(BLD)/doc.$(O)): Depend on it.
4525 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4526 provided by Eli Zaretskii.)
4527 ($(TEMACS)): Don't generate buildobj.lst.
4528 * doc.c: Include buildobj.h.
4529 (buildobj): New static variable.
4530 (Fsnarf_documentation): Use it, instead of opening and reading
4533 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
4535 * dbusbind.c (Fdbus_call_method)
4536 (Fdbus_call_method_asynchronously): Use English numeric format for
4537 timeout values in doc string.
4539 2009-08-25 Kenichi Handa <handa@m17n.org>
4541 * alloc.c (mark_char_table): New function.
4542 (mark_object): Use mark_char_table for a char-table.
4544 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4545 (CHAR_TABLE_REF): Use it.
4547 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
4549 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4550 before invoking the newly build emacs to check for load-path
4553 2009-08-22 Glenn Morris <rgm@gnu.org>
4555 * Makefile.in (bootstrap_exe): New variable.
4556 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4557 Use ${bootstrap_exe}.
4559 2009-08-22 Eli Zaretskii <eliz@gnu.org>
4561 * coding.h (encode_coding_string): Don't encode unibyte strings.
4564 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
4566 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4568 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4569 intended as hotfix only.
4570 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4572 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4574 * nsterm.m (ns_get_color): Update documentation properly for last
4575 change, and clean up loose ends in the code left by it. Fix
4576 longstanding bug with 16-bit hex parsing, and add support for
4577 yet another X11 format (rgb:r/g/b) for compatibility.
4578 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4579 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4581 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4583 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4585 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
4587 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4588 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4589 (xd_initialize, xd_pending_messages): Check, whether
4590 $DBUS_SESSION_BUS_ADDRESS is set.
4592 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4594 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4596 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4598 2009-08-20 Glenn Morris <rgm@gnu.org>
4600 * emacs.c (system-type): Doc fix.
4602 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4604 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4605 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4607 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
4609 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4611 (xd_initialize): Revert change from 2009-08-16.
4613 2009-08-18 Kenichi Handa <handa@m17n.org>
4615 * fontset.c (Ffontset_font): If a nil element is found in a
4616 font-group vector, return nil.
4618 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
4620 * process.c (status_notify): Don't perform redisplay.
4621 (Fdelete_process, list_processes_1, process_send_signal):
4622 Expliticly perform redisplay.
4623 (wait_reading_process_output): Always check process status, but
4624 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4626 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
4628 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
4629 (XFLOAT_INIT): New macro for storing a float value.
4630 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4631 * fns.c (sxhash): Copy out the value of a float in order to
4633 * dbusbind.c (xd_append_arg): Likewise.
4635 * emacs.c (main): Don't call syms_of_data twice.
4637 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
4639 * dbusbind.c (xd_initialize): Add connection file descriptor to
4640 input_wait_mask, in order to let select() detect, whether a new
4641 message has been arrived.
4642 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
4644 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
4646 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4649 * lisp.h (xd_pending_messages): Declare.
4651 * keyboard.c (readable_events): Call xd_pending_messages.
4653 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
4655 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
4657 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4659 * buffer.c (set_buffer_internal_1)
4660 (swap_out_buffer_local_variables): Check for unbound local
4661 variables (Bug#4138).
4663 2009-08-14 Eli Zaretskii <eliz@gnu.org>
4665 * process.c (create_pty): Fix last change.
4667 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
4669 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4670 (xbm_load_image): Caller changed.
4671 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
4673 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
4675 * process.c (create_pty): New function.
4676 (Fstart_process): Use it to allow Emacs to just associate a pty
4677 with the buffer. See associated change in gdb-mi.el.
4678 (list_processes_1): Deal with no program name.
4679 (start_process_unwind): Use pid == -2 to mean no process.
4681 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4683 * cmds.c (nonundocount): New global variable.
4684 (keys_of_cmds): Initialize it.
4685 (Fself_insert_command): Use it to combine upto 20 sequential chars
4686 into a single undo entry, just like the Qself_insert_command code in
4688 Call frame_make_pointer_invisible, also like the Qself_insert_command
4689 code in keyboard.c does.
4690 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4691 than its own local replacement for it.
4693 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
4695 * fns.c (concat): Don't re-set string length to its current value.
4697 * coding.h (decode_coding_string, encode_coding_string):
4700 * doprnt.c (doprnt_lisp): Delete unused function.
4701 (doprnt): Merge with doprnt1, discarding lispstrings code.
4702 * lisp.h (doprnt_lisp): Don't declare.
4704 2009-08-07 Juri Linkov <juri@jurta.org>
4706 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4708 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4710 * print.c (syms_of_print): Undo previous change.
4712 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4714 * lread.c (read1, syms_of_lread): Read hashtables back from the
4717 * print.c (print_preprocess, print_object): Print hashtables fully
4719 (syms_of_print): Provide 'hashtable-print-readable.
4721 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4723 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4725 (nsfont_open): Handle case when entity has no family.
4727 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4729 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4730 element, not a list, for match case.
4732 2009-07-28 Kenichi Handa <handa@m17n.org>
4734 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4737 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4738 font_parse_xlfd. Check font properties more rigidly.
4740 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4742 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4745 2009-07-27 Kenichi Handa <handa@m17n.org>
4747 * xfaces.c (face_with_height): Call font_clear_prop.
4749 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
4751 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4753 * xterm.c (x_term_init): Use Qx.
4755 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4757 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4758 (ns_get_color): Revert 2009-07-16 change.
4760 2009-07-25 Eli Zaretskii <eliz@gnu.org>
4762 * lread.c (syms_of_lread) <force_load_messages>: New variable.
4763 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
4765 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
4767 * coding.h (decode_coding_string, encode_coding_string):
4770 * lread.c: Rewrite 2009-07-21 changes.
4771 (load_depth): Delete.
4772 (Qload_in_progress): New variable.
4773 (load_unwind): Don't reference load_depth or load_in_progress.
4774 (Fload): Likewise; specbind Qload_in_progress instead.
4775 (init_lread): Don't initialize load_depth.
4776 (syms_of_lread): Initialize and protect Qload_in_progress.
4778 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4780 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4782 2009-07-23 Yavor Doganov <yavor@gnu.org>
4784 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4786 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4788 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
4789 Bugs 3792, 3720, 2402.
4790 (ns_lookup_indexed_color): Check for bad index.
4791 (ns_index_color): Init unused slot to 0.
4792 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4793 Bug 3714, possibly 3082.
4795 2009-07-22 Jason Rumney <jasonr@gnu.org>
4797 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4798 Position IME window at cursor (Bug#2570).
4799 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4800 (globals_of_w32fns): Dynamically load functions required above.
4802 * w32term.c (w32_draw_window_cursor): Send message to reposition
4805 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4807 * fileio.c: Revert 2009-07-16 changes.
4808 (Vauto_save_include_big_deletions): New variable.
4809 (Fdo_auto_save): Disable auto-save only if
4810 auto-save-include-big-deletions is nil.
4812 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4814 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4815 the overflowed pixels into account (Bug#3879).
4817 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
4819 * lread.c (load_depth): New variable.
4820 (Fload, load_unwind, init_lread): Set it to the load recursion
4821 depth; set load_in_progress as a simple boolean based on the
4822 current load_depth. (Bug#3892)
4824 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4826 * nsfont.m (ns_has_attribute): Remove.
4827 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4829 2009-07-18 Juri Linkov <juri@jurta.org>
4831 * process.c (Fset_process_query_on_exit_flag): Mention killing
4832 a buffer in docstring.
4834 2009-07-17 Kenichi Handa <handa@m17n.org>
4836 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4838 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4840 * nsfns.m (Fns_set_alpha): Remove function.
4841 (syms_of_nsfns): Don't defsubr it.
4843 * nsterm.m (ns_get_color): Remove incompatible color formats.
4844 (ns_color_to_lisp): Generate #rrggbb color format string.
4846 2009-07-16 Richard Stallman <rms@gnu.org>
4848 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4849 (Fset_buffer_auto_saved): Handle save_length = -2.
4851 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
4853 * xterm.c (Qx_gtk_map_stock): New var.
4855 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4856 of calling intern each time.
4858 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4860 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4863 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4865 2009-07-14 Kenichi Handa <handa@m17n.org>
4867 * font.c (font_vconcat_entity_vectors): New function.
4868 (struct font_sort_data): New member font_driver_preference.
4869 (font_compare): Check font_driver_preference.
4870 (font_sort_entities): The format of the first argument changed.
4871 (font_delete_unmatched): Likewise.
4872 (font_list_entities): The return type changed.
4873 (font_select_entity): The format of the second argument changed.
4874 (font_find_for_lface): Adjuste for the above changes.
4875 Don't suppress the checking of C even if the repertory supports it.
4876 (Flist_fonts): Adjust for the above changes.
4878 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4879 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
4880 Reject a font who has adstyle property that is different from a
4881 langname derived from registry property.
4882 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
4884 2009-07-13 Eli Zaretskii <eliz@gnu.org>
4886 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4887 local copy of dirfilename.
4889 2009-07-13 Kenichi Handa <handa@m17n.org>
4891 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4894 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4895 calling XSYMBOL (sym).
4897 2009-07-11 Eli Zaretskii <eliz@gnu.org>
4899 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4901 (directory_files_internal) [WINDOWSNT]:
4902 Bind w32-get-true-file-attributes to either t or nil, depending whether
4903 the filesystem of the directory is fast or slow.
4905 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4907 (is_slow_fs): New function.
4908 (stat): Use it to determine whether to issue more system calls to
4909 get accurate file attributes, when w32-get-true-file-attributes is
4912 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4914 * xfns.c (Fx_select_font): Remember last font selected in
4915 x_last_font_name and use that the next time. Also try the frame
4916 parameter font-parameter as default to the font dialog.
4918 2009-07-10 Kenichi Handa <handa@m17n.org>
4920 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4922 2009-07-09 Eli Zaretskii <eliz@gnu.org>
4924 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
4926 * w32.c (stat): Treat UNC file names as residing on remote
4929 2009-07-09 Kenichi Handa <handa@m17n.org>
4931 * fontset.c (fontset_find_font): Fix previous change.
4933 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
4935 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4936 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4939 2009-07-08 Kenichi Handa <handa@m17n.org>
4941 * fontset.c (fontset_find_font): Fix the logic of handling
4943 (font_for_char): Delete unused var.
4944 (generate_ascii_font_name): Delete it.
4946 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4948 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4949 (encode_coding_sjis): Fix the code range check.
4951 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
4953 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4954 (Fexpand_file_name): Copy string data properly (Bug#3772).
4956 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4958 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4961 2009-07-07 Kenichi Handa <handa@m17n.org>
4963 * character.h (unibyte_has_multibyte_table): Delete extern.
4964 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4966 * charset.c (Fset_charset_priority): Update charset_unibyte.
4967 (syms_of_charset): Initialize charset_unibyte.
4969 * character.c (unibyte_has_multibyte_table): Delete it.
4970 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4972 (multibyte_char_to_unibyte_safe): Likewise.
4973 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4975 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
4976 (x_produce_glyphs): Likewise.
4978 * .gdbinit (xcharset): Fix the treating $arg0.
4980 2009-07-04 Eli Zaretskii <eliz@gnu.org>
4982 Emulation of `getloadavg' on MS-Windows.
4983 * w32.c: Include float.h.
4984 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4985 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4986 (get_native_system_info, get_system_times): New functions.
4987 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4988 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4989 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4990 g_b_init_get_system_times, and num_of_processors.
4992 2009-07-03 Jason Rumney <jasonr@gnu.org>
4994 * w32term.c (w32_initialize): Use standard types.
4996 2009-07-03 Eli Zaretskii <eliz@gnu.org>
4998 * dired.c (Ffile_attributes): Decode user and group names by the
4999 locale's encoding. (Bug#3443)
5001 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5003 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5004 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5006 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5008 * term.c (init_tty): Remove spurious #ifdef.
5010 * m/mips.h: Mention this file is also used for netbsd.
5011 * m/pmax.h: Remove file.
5013 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5015 * xterm.h (struct x_display_info): Add invisible_cursor.
5016 (struct x_output): Add current_cursor.
5018 * xterm.c (XTtoggle_invisible_pointer): New function.
5019 (x_define_frame_cursor): Don't define cursor if invisible or the
5020 same as before. Set current_cursor.
5021 (x_create_terminal): Set toggle_invisible_pointer_hook.
5023 * xfns.c (make_invisible_cursor): New function.
5024 (x_set_mouse_color): Call make_invisible_cursor.
5026 (x_window): Set current_cursor.
5028 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5030 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5031 inserting a character.
5032 (read_avail_input): Call frame_make_pointer_visible.
5034 * frame.c (Vmake_pointer_invisible): New variable.
5035 (frame_make_pointer_invisible, frame_make_pointer_visible):
5037 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5039 * frame.h: Declare frame_make_pointer_invisible and
5040 frame_make_pointer_visible.
5041 (struct frame): Add pointer_invisible.
5043 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5045 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5046 frame isn't visible.
5047 (xg_frame_resized): If width/height is -1, get size of window
5050 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5053 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
5054 here or call change_frame_size. Just call flush_and_sync.
5055 (flush_and_sync): Reintroduce.
5057 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
5059 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
5061 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5062 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5064 * frame.h: Declare Qsticky.
5066 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5068 * nsfns.m (ns_frame_parm_handlers): Ditto.
5070 * frame.c: Declare Qsticky.
5071 (frame_parms): Add sticky.
5073 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5075 * xterm.h: Declare x_set_sticky.
5077 * xterm.c (x_set_sticky): New function.
5079 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5080 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5081 xg_tool_bar_proxy_help_callback.
5083 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5085 * frame.c: Qmaximized is new.
5086 (x_set_frame_parameters): Do not handle fullscreen specially.
5087 Only set width and height if explicitly set.
5088 (x_set_fullscreen): Handle Qmaximized.
5089 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5090 (syms_of_frame): Initialize Qmaximized.
5092 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5093 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
5095 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
5096 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5097 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
5098 set gravity to NorthWestGravity when USE_GTK.
5099 (set_wm_state): New function.
5100 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
5101 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5102 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
5103 or the case when no window manager is running. That means remove calls
5104 to x_real_positions and x_fullscreen_adjust.
5106 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5107 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5109 (xg_height_changed): New function.
5110 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
5111 and gtk_window_set_policy. Set frame gravity after parsing the
5113 (xg_update_frame_menubar, free_frame_menubar)
5114 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5115 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5116 Remove calls to xg_frame_set_char_size.
5118 2009-07-01 Kenichi Handa <handa@m17n.org>
5120 * keyboard.c (decode_keyboard_code): New function.
5121 (tty_read_avail_input): Decode the input bytes if necessary.
5123 * coding.c (setup_coding_system):
5124 Initialize coding->carryover_bytes to 0.
5125 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5128 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5130 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5132 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
5134 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
5136 2009-06-30 Jason Rumney <jasonr@gnu.org>
5138 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5140 Set user model ID if supported (bug#1849).
5142 2009-06-29 Jim Meyering <meyering@redhat.com>
5144 Remove useless if-before-xfree test.
5145 * nsfont.m (nsfont_close): Remove useless test.
5146 * term.c (delete_tty): Likewise.
5147 * w32.c (system_process_attributes): Likewise.
5148 * w32font.c (w32font_close): Likewise.
5149 * xfaces.c (x_free_gc): Likewise.
5150 * xselect.c (buffer): Likewise.
5152 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5154 * process.c (send_process): Keep decoded string in a local
5155 variable and protect it from GC. (Bug#3521)
5157 2009-06-28 Eli Zaretskii <eliz@gnu.org>
5159 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5160 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5162 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
5164 * xdisp.c (start_display, handle_face_prop)
5165 (move_it_vertically_backward, cursor_row_fully_visible_p)
5166 (redisplay_window, try_window_id, produce_image_glyph):
5167 Delete some #ifdef-ed out code chunks that are now obsolete.
5169 * xterm.c (x_update_window_begin, x_new_focus_frame)
5170 (x_scroll_bar_handle_click, handle_one_xevent)
5171 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5172 (x_make_frame_visible, x_make_frame_invisible)
5173 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5174 code chunks that are now obsolete.
5176 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
5178 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5179 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5180 for hours, when optimzation is enabled.
5181 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5182 (xd_read_message): Make them static.
5184 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5186 * term.c (turn_on_face): Allow simultaneously bold and dim
5187 terminal faces (Bug#3530).
5189 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
5191 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5193 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5194 truncation glyphs (Bug#3686).
5196 2009-06-27 Glenn Morris <rgm@gnu.org>
5198 * m/pmax.h: Restore file, with only netbsd portions.
5200 2009-06-26 David Reitter <david.reitter@gmail.com>
5202 * nsterm.m (keydown): Avoid infinite loop.
5204 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5206 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5207 the arg FORCE_SYMBOL.
5209 2009-06-25 Kenichi Handa <handa@m17n.org>
5211 * fontset.c (fontset_find_font): When a usable rfont_def is found
5212 in a fallback font-group, make it the first element of the group.
5214 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
5216 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5218 2009-06-24 Kenichi Handa <handa@m17n.org>
5220 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5222 (fontset_font): Record the availability of a font for C both in
5223 the realized fontsets of the current one and the default one.
5225 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5227 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5228 conditional, it is always defined on AIX.
5230 2009-06-23 Miles Bader <miles@gnu.org>
5232 * window.c (Vrecenter_redisplay): New variable.
5233 (syms_of_window): Initialize it.
5234 (Qtty): New extern declaration.
5235 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5237 2009-06-23 Jim Meyering <meyering@redhat.com>
5239 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5240 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
5241 pointer dereferences are guaranteed to be valid.
5243 2009-06-23 Kenichi Handa <handa@m17n.org>
5245 * emacs.c (main): Call init_font ().
5247 * font.h (Vfont_log): Extern it.
5248 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5250 * font.c (font_sort_entities, font_list_entities)
5251 (font_matching_entity, font_open_entity)
5252 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5253 (Vfont_log): Delete static.
5254 (font_log_env_checked): Delete this variable.
5255 (font_add_log): Don't check font_log_env_checked.
5256 (font_deferred_log): Check Vfont_log.
5257 (init_font): New function.
5259 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5261 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5263 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5265 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5267 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5268 (face_for_char): Don't call font_deferred_log here.
5269 (font_for_char): Likewise.
5271 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
5273 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5274 rather than its background_width for drawing the overline and
5275 underline (Bug#489).
5277 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5278 rather than its background_width for drawing the overline and
5279 underline (Bug#489).
5280 (xg_default_icon_file): New variable.
5281 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5282 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
5284 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5285 (load_overlay_strings): Remove externs.
5286 (fast_find_position): Function deleted.
5287 (mouse_face_from_buffer_pos): New function, based on
5288 fast_find_position. Correctly handle before-strings,
5289 display-strings, and after-strings (Bug#1220).
5290 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5292 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5294 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
5295 (move_it_in_display_line_to, move_it_in_display_line_to)
5296 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5298 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5302 2009-06-21 Jason Rumney <jasonr@gnu.org>
5304 * w32term.c (keyboard_codepage): New static variable.
5305 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5306 (w32_read_socket) [WM_CHAR]: Use it to decode character
5308 (w32_initialize): Initialize it.
5309 (codepage_for_locale): New function.
5311 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
5313 * process.c (status_message): Pass Faset index argument as a lisp
5314 object, so as to work with USE_LISP_UNION_TYPE.
5316 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5318 * coding.c (Ffind_coding_systems_region_internal):
5319 Cache checked characters.
5321 2009-06-18 Kenichi Handa <handa@m17n.org>
5323 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
5325 2009-06-18 Andreas Schwab <aschwab@redhat.com>
5327 * xdisp.c (redisplay_internal): Check that the frame is still
5328 live after redisplay of its windows.
5329 (redisplay_windows): Check that the window is still live.
5331 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5333 * coding.c (detect_coding_utf_16): Fix previous change.
5335 2009-06-16 Kenichi Handa <handa@m17n.org>
5337 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5338 UTF-16 by checking the dispersion of Eth and Oth bytes.
5340 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5342 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5344 2009-06-15 Kenichi Handa <handa@m17n.org>
5346 * process.c (status_message): Fix previous change. Be sure to
5347 decode a localized string.
5349 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5351 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5352 add comment explaining why.
5354 2009-06-14 Sidney Markowitz <sidney@sidney.com>
5356 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5358 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5360 * nsfont.m (ns_attribute_value): Remove.
5361 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5362 (ns_has_attribute): Shrink the normal range.
5363 (ns_findfonts): Don't worry about requested spec in determining
5365 (ns_get_covering_families): Retain scriptToFamilies.
5367 2009-06-14 Seiji Zenitani <zenitani@mac.com>
5369 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5371 2009-06-11 Kenichi Handa <handa@m17n.org>
5373 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5374 overhang for the static composition case.
5376 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5378 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5379 overhang for the automatic composition case.
5381 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5384 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
5386 * xdisp.c (get_next_display_element): When handling wrap-prefix
5387 and line-prefix, treat \n as a control character (bug#3502).
5389 2009-06-10 Kenichi Handa <handa@m17n.org>
5391 * font.c (font_parse_family_registry): Fix for one-char foundry.
5392 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5394 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5396 * process.c (status_message): Fix handling of multibyte signal
5399 2009-06-09 Jim Meyering <meyering@redhat.com>
5401 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5402 color name is missing.
5404 2009-06-09 Kenichi Handa <handa@m17n.org>
5406 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5407 FROM-CODE and TO-CODE are codepoints of CHARSET.
5409 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5411 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5413 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5415 Changes to support :script/:lang/:otf in NS font driver.
5416 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5417 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5418 indicate not part of font driver interface, and change callers.
5419 (ns_get_family): Remove pointless null check.
5420 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5421 ns_spec_to_descriptor, ns_descriptor_to_entity.
5422 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5423 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5424 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5425 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5426 (ns_get_req_script, ns_accumulate_script_ranges)
5427 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5429 (nsfont_list, nsfont_match): Use ns_findfonts.
5430 (nsfont_open): Use font descriptor instead of traits.
5431 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5432 (dump_glyphstring): Rename to ns_dump_glyphstring.
5434 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5436 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5438 * fontset.c (fontset_from_font): Remove NS-specific code.
5440 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
5442 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5445 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
5447 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
5449 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5451 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5453 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
5455 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5456 account for the overflowing of newlines into the last glyph on the
5457 display line (Bug#3482).
5459 2009-06-05 David Reitter <david.reitter@gmail.com>
5461 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5462 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
5463 Fns_selection_exists_p, Fns_selection_owner_p.
5465 2009-06-03 Jason Rumney <jasonr@gnu.org>
5467 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5468 available. (Bug#3379)
5470 2009-05-29 Kenichi Handa <handa@m17n.org>
5472 * coding.c (get_translation_table):
5473 Check Venable_character_translation.
5475 2009-05-26 David Reitter <david.reitter@gmail.com>
5477 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5478 (x_make_frame_visible): Move frame to front rather than calling
5480 (keyDown:): Do not swallow events that aren't re-sent if frame
5482 (drawRect:): Do not set visibility/iconified flags because
5483 drawRect may be called by NSView even if the frame is hidden.
5485 * nsfns.m (Fx_create_frame): Follow other ports in
5486 determining visibility; default to t. Ensure async_visible is set.
5488 2009-05-23 Eli Zaretskii <eliz@gnu.org>
5490 * dired.c (Ffile_attributes): Doc fix.
5492 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
5494 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5496 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5498 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5499 and xfont_scratch_props.
5500 (syms_of_xfont): Do it here instead.
5501 (xfont_find_ccl_program): Delete, unused.
5502 (xfont_open): Delete unused var `i'.
5504 2009-05-21 Kenichi Handa <handa@m17n.org>
5506 * fontset.c (Qlatin): Don't make it static.
5508 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5510 (xfont_scripts_cache, xfont_scratch_props): New variables.
5511 (Qlatin, Vscalable_fonts_allowed): Extern it.
5512 (xfont_list_pattern): Argument changed. Callers changed.
5513 Check Vscalable_fonts_allowed. Check the support of a script.
5514 (xfont_list): Don't reject a font spec with :script property.
5515 (xfont_has_char): Fix setting of encoding.
5516 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5517 xfont_scratch_props.
5519 2009-05-19 Kenichi Handa <handa@m17n.org>
5521 * font.c (font_sort_entities): Rename from font_sort_entites.
5524 2009-05-18 Kenichi Handa <handa@m17n.org>
5526 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5528 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5530 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5531 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5533 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5535 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5536 (x_delete_terminal): Dissociate resource database from display and
5537 then call XrmDestroyDatabase before closing display.
5539 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5541 * nsterm.m (ns_read_socket): Remove unused variable.
5542 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5543 whether selected frame is viable before raising it (based on patch
5544 by David Reitter), and improve commentary.
5545 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
5547 2009-05-15 Kenichi Handa <handa@m17n.org>
5549 * font.c (Ffont_spec): Check arguments.
5551 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
5553 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5554 weight when testing attributes (Bug#3282).
5556 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5558 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5559 what we expect to get in the next ConfigureNotify event.
5561 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5562 before Xft one (Bug#1696).
5564 2009-05-07 David Reitter <david.reitter@gmail.com>
5566 * nsfns.m (Fx_display_planes): Compute bitplanes using
5567 NSBitsPerPixelFromDepth (Bug#3207).
5569 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
5571 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5573 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
5575 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5577 2009-05-07 David Reitter <david.reitter@gmail.com>
5579 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5580 Respect mouse face background.
5582 2009-05-07 David Reitter <david.reitter@gmail.com>
5584 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5585 Mouse movement/highlight: bracket drawing operations
5586 in ns_update_begin and ns_update_end.
5588 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5590 * nsfns.m (ns_get_screen): Rewrite.
5591 Don't presume selected-frame is of type `ns'.
5593 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5596 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5598 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5600 * keyboard.h (add_user_signal): Fix typo in extern.
5602 * lisp.h (add_user_signal): Remove extern.
5604 * unexelf.c (unexec): Consider a section to precede the .bss section
5605 if its addresses overlap that of .bss.
5606 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5607 instead of dumping process.
5609 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5611 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5613 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5615 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5617 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5619 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5622 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5624 * process.c (read_process_output): Make sure the current buffer is
5627 * coding.c (record_conversion_result): Don't modify
5628 Vlast_code_conversion_error for successful result.
5629 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5631 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5633 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
5634 (load_charset_map): Remove unnecessary code.
5636 2009-04-30 David Reitter <david.reitter@gmail.com>
5638 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
5641 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
5643 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5645 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5646 face_at_buffer_position.
5647 (face_before_or_after_it_pos, get_next_display_element)
5648 (note_mouse_highlight): Update face_at_buffer_position call.
5650 * term.c (term_mouse_highlight):
5651 * msdos.c (IT_note_mouse_highlight):
5652 * fontset.c (Finternal_char_font):
5653 * font.c (font_at, font_range): Update face_at_buffer_position call.
5655 * dispextern.h (face_at_buffer_position): Update prototype.
5657 2009-04-30 Kenichi Handa <handa@m17n.org>
5659 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
5661 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5663 * callproc.c (Fcall_process): Fix GC protection. Make sure
5664 current buffer is always restored.
5666 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5668 * atimer.c (init_atimer): Also clear stopped_atimers.
5670 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5672 * process.c (create_process): Clean up merger residues of
5675 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
5677 * lread.c (Vread_circle): New variable.
5678 (read1): Disable recursive read if Vread_circle is nil.
5680 2009-04-29 Kenichi Handa <handa@m17n.org>
5682 * fontset.h (set_default_ascii_font): Delete extern.
5684 * fontset.c (set_default_ascii_font): Delete this unused function.
5686 * frame.c (x_set_font): When ARG is a font-object, check if the
5687 font-object matches with the ASCII font-spec of the frame's
5688 fontset. If not, create a new fontset for the frame. (Bug #3075)
5690 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5692 * fns.c (Flocale_info): Protect vector from GC during decoding.
5694 * process.c (Fstart_process): Protect argv strings from GC during
5697 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5699 * sysdep.c: Include <ctype.h>.
5701 2009-04-27 David Reitter <david.reitter@gmail.com>
5703 * nsfont.m (nsfont_open): Remove unused variable shrink.
5704 Remove commented-out code.
5706 2009-04-26 Johan Bockgård <bojohan@gnu.org>
5708 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5710 2009-04-25 Jason Rumney <jasonr@gnu.org>
5712 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5714 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5716 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5717 Swap bytes in short integer if fringe bitmap width > 8.
5719 2009-04-23 Kenichi Handa <handa@m17n.org>
5721 * xfaces.c (Fx_list_fonts): If a font size is specified in
5722 PATTERN, set it in returned scalable fonts.
5724 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
5726 * keyboard.c (Fset_input_meta_mode): Doc fix.
5728 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5730 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
5732 * coding.c (Fterminal_coding_system): Doc fix.
5734 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5735 (Fx_display_pixel_height, Fx_display_planes)
5736 (Fx_display_color_cells, Fx_server_max_request_size)
5737 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5738 (Fx_display_mm_height, Fx_display_mm_width)
5739 (Fx_display_backing_store, Fx_display_visual_class)
5740 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5741 Doc fixes, replacing "terminal id" with "terminal object".
5742 (check_x_display_info): Handle terminal objects instead of
5745 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5746 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
5747 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5748 Doc fixes, replacing "terminal id" with "terminal object".
5750 2009-04-21 Kenichi Handa <handa@m17n.org>
5752 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
5753 (font_score): Check AVGWIDTH too.
5755 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5757 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5758 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
5760 2009-04-19 Jason Rumney <jasonr@gnu.org>
5762 The following changes fix Bug#3005 for wide glyphs on each platform,
5763 without reintroducing Bug#1258 for stretch glyphs.
5765 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5766 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5767 get_phys_cursor_geometry.
5769 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
5770 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5771 using get_phys_cursor_geometry.
5773 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5774 correctly calculated.
5776 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5778 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5779 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
5780 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5783 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5785 * font.c (font_put_frame_data): Use xfree instead of free.
5787 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
5789 * w32font.c (Qja, Qko): Remove declarations.
5790 (syms_of_w32font): Don't DEFSYM them.
5792 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
5794 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5796 * font.h (Qja, Qko): Extern them.
5798 * ftfont.c (Qja, Qko): Remove declarations.
5800 * xfont.c (Qja, Qko): Remove declarations.
5802 2009-04-17 Kenichi Handa <handa@m17n.org>
5804 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5805 string from a vector to handle Latin-1 characters correctly.
5807 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5808 entity even if the cache hits.
5810 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5812 * search.c (boyer_moore): Use zero as marker value for a possible
5813 match instead of depending on overflow behavior. (Bug#2844)
5815 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5816 * lisp.h: Adjust prototypes.
5818 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
5820 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5823 2009-04-16 Kenichi Handa <handa@m17n.org>
5825 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
5827 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5830 * ftfont.c (Qja, Qko): Don't make them static.
5831 (enum ftfont_cache_for): New enum.
5832 (fc_charset_table): Undo the previous change.
5833 (ftfont_get_latin1_charset): Delete it.
5834 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5835 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
5836 non-scarable font, try to get AVERAGE_WIDTH.
5837 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5838 Change ft_face_cache from a list of a hash-table. Don't check
5839 `ja' and `ko' adstyle here.
5840 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5841 FTFONT_CACHE_FOR_CHARET.
5842 (ftfont_get_charset): Undo the previous change.
5843 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
5844 (ftfont_close): Likewise.
5845 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5847 * font.c (font_sort_entites): Change the meaning of the arg
5848 BEST-ONLY. Don't optimize for VEC of lenght 1.
5849 (font_select_entity): Just return the value of font_sort_entites.
5851 * xfaces.c (merge_face_vectors): Reflect font properties in
5852 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5853 font_clear_prop if a face attribute doesn't change.
5855 * charset.h (charset_ksc5601): Extern it.
5857 * charset.c (charset_ksc5601): New variable.
5858 (Fdefine_charset_internal): Set charset_ksc5601.
5859 (init_charset_once): Initialize charset_ksc5601 to -1.
5861 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5863 * fileio.c (history_delete_duplicates): Remove unused declaration.
5865 * callint.c (history_delete_duplicates): New declaration.
5866 (Fcall_interactively): Remove command history duplicates when
5867 history_delete_duplicates is true.
5869 2009-04-14 Eli Zaretskii <eliz@gnu.org>
5871 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5873 2009-04-14 Kenichi Handa <handa@m17n.org>
5875 * font.c (Ffont_info): Fix docstring. Fix the second element of
5876 the returned value (bug#2949).
5878 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
5880 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5882 2009-04-14 Kenichi Handa <handa@m17n.org>
5884 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5885 encoding charset is ascii_compatible.
5887 * charset.c (Fdefine_charset_internal): Make charset
5888 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5889 code_offset is 0, and covers all ASCII characters.
5891 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5893 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5894 (ns_string_to_pasteboard_internal):
5895 * nsmenu.m (process_dialog):
5896 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5897 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5898 * lisp.h (Fx_load_color_file): Declare.
5900 2009-04-13 Kenichi Handa <handa@m17n.org>
5902 * font.c (font_delete_unmatched): Preserve the order of list elements.
5903 (font_select_entity): Suppress the code to optimize for the same
5905 (font_load_for_lface): Get a font that supports at least ASCII
5908 * ftfont.c (Qja, Qko): New variables.
5909 (fc_charset_table): Delete uniquifier data for iso8859-1.
5910 (ftfont_get_latin1_charset): New function.
5911 (get_adstyle_property): New function.
5912 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5914 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5915 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5917 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
5918 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
5919 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5921 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5922 (syms_of_ftfont): DEFSYM Qja and Qko.
5924 2009-04-09 Kenichi Handa <handa@m17n.org>
5926 * charset.c (map_charset_chars): For a charset of `superset'
5927 method, fix calculation of code range.
5929 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5930 from the list of extra properties.
5931 (font_clear_prop): Be sure to delete `:name' font property.
5933 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5935 * dispnew.c (redraw_overlapping_rows): Fix detection of
5936 overlapping for topmost and bottommost rows.
5938 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
5940 2009-04-06 Jason Rumney <jasonr@gnu.org>
5942 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5944 2009-04-06 Kenichi Handa <handa@m17n.org>
5946 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5948 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5950 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5952 * ftfont.c (ftfont_open): Fix checking of the return value of
5953 FT_Load_Char. Fix setting font->underline_thickness.
5955 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
5957 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5958 (Fterminal_parameters, Fterminal_parameter)
5959 (Fset_terminal_parameter): In doc string, refer to terminal
5960 objects rather than terminal ids.
5962 2009-04-04 Eli Zaretskii <eliz@gnu.org>
5964 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5965 ret_lim_data. (Bug#2867)
5967 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
5969 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5970 so they don't get wider than the window, matching 2006-01-23
5971 change to the partner function in xdisp.c (Bug#2800).
5973 2009-04-03 Kenichi Handa <handa@m17n.org>
5975 * print.c (print_object): Make each lowest sub_char_table start a
5976 new line (Bug#2866).
5978 2009-04-02 Kenichi Handa <handa@m17n.org>
5980 * fontset.c (fontset_font): Record no-font when a fontset
5981 explicitly tells not to try another font-specs.
5983 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5985 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5987 2009-03-30 Kenichi Handa <handa@m17n.org>
5989 * fontset.c (fontset_from_font): Specify only registry in a
5990 font-spec for all characters supported by that registry.
5992 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5993 even if HAVE_M17N_FLT is not defined.
5995 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5997 * ftfont.c: Conditionalize prototyping and use of
5998 ftfont_variation_glyphs.
6000 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6002 * frame.c (delete_frame): Work around compiler bug.
6004 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6005 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6006 Some more EMACS_INT.
6007 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6009 * xdisp.c (dump_glyph): Fix typo.
6011 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6012 (adjust_markers_gap_motion, adjust_markers_for_delete)
6013 (adjust_markers_for_insert, adjust_point)
6014 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6015 (make_gap, copy_text, count_size_as_multibyte, insert)
6016 (insert_and_inherit, insert_before_markers)
6017 (insert_before_markers_and_inherit, insert_1)
6018 (count_combining_before, count_combining_after, insert_1_both)
6019 (insert_from_string, insert_from_string_before_markers)
6020 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6021 (insert_from_buffer_1, adjust_after_replace)
6022 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6023 (replace_range_2, del_range, del_range_1, del_range_byte)
6024 (del_range_both, del_range_2, modify_region)
6025 (prepare_to_modify_buffer, signal_before_change)
6026 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6027 for buffer positions and sizes.
6028 * lisp.h: Adjust prototypes accordingly.
6030 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6031 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6032 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6034 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6036 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6038 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6039 lines and columns so we keep the same pixel height and width.
6041 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6042 the property _NET_WM_STATE has changed.
6043 (x_handle_net_wm_state): New function to update frame parameter
6045 (x_term_init): Initialize atoms for _NET_WM_STATE.
6047 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6049 2009-03-27 Kevin Ryde <user42@zip.com.au>
6051 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6052 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6053 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6054 (Fgpm_mouse_stop): Pass that new parameter.
6055 * termhooks.h (close_gpm): Adjust prototype.
6057 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6059 * lisp.h (Fx_focus_frame): Declare.
6061 * callint.c (Fcall_interactively): For '^' just delegate the work to
6062 handle-shift-selection.
6063 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6065 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
6067 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6069 * data.c (Qinteractive_form): New variable.
6070 (Finteractive_form): Use it.
6072 * eval.c (Fcommandp): Use Qinteractive_form.
6074 2009-03-24 Jason Rumney <jasonr@gnu.org>
6076 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6077 Calculate total size precisely. Decode environment variables
6078 before substituting. (Bug#38)
6080 2009-03-24 Kenichi Handa <handa@m17n.org>
6082 * font.c (find_font_encoding): Return Qnil for unsupported
6083 encoding (Bug#2722).
6085 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6087 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6090 2009-03-22 Alan Mackenzie <acm@muc.de>
6092 * callint.c (Finteractive): Clarify the doc string - even
6093 promptless elements need \n separators.
6095 2009-03-22 Jason Rumney <jasonr@gnu.org>
6097 * w32term.c (syms_of_w32term): Doc fix for
6098 x-use-underline-position-properties.
6100 2009-03-21 Eli Zaretskii <eliz@gnu.org>
6102 * w32.c (getpwuid): Change argument type to unsigned.
6103 (struct w32_id): Change type of `rid' member to unsigned.
6104 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6105 argument ID to unsigned. All callers changed.
6106 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6108 2009-03-20 Eli Zaretskii <eliz@gnu.org>
6110 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6111 negative, produce a float value.
6113 * dired.c (make_uid, make_gid): New functions.
6114 (Ffile_attributes): Use them to avoid negative UID and GID.
6116 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
6118 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6119 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6120 Fix typos in docstrings.
6122 2009-03-19 Kenichi Handa <handa@m17n.org>
6124 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
6125 changed, use font_load_for_lface to get a new font object.
6126 Call free_realized_fontset after handling ASCII font change.
6128 * frame.c (x_set_font): Handle the case that ARG is a cons.
6130 2009-03-19 Glenn Morris <rgm@gnu.org>
6132 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6134 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
6136 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6138 2009-03-19 Kenichi Handa <handa@m17n.org>
6140 * charset.c (load_charset_map_from_file): When a mapfile can't be
6141 loaded, signal an error.
6143 2009-03-18 Eli Zaretskii <eliz@gnu.org>
6145 * dired.c (Ffile_attributes): Make sure UID and GID are always
6146 positive, even if the value is too large for a positive EMACS_INT.
6149 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6151 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6153 * xmenu.c (xdialog_show): Move Fredisplay call ...
6154 (Fx_popup_dialog): ... here.
6156 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6158 * dired.c (file_name_completion): Disable the first optimization just
6159 installed, since it is not implemented correctly.
6161 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6163 * dired.c (file_name_completion): Check completion-ignored-extensions
6164 only if the entry can affect bestmatch.
6165 Stop the search early, as Ftry_completion already does.
6167 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
6169 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
6171 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
6173 * keyboard.c (parse_menu_item): Don't display remappings as menu
6174 equivalent bindings (Bug#788).
6176 2009-03-15 Jason Rumney <jasonr@gnu.org>
6178 * w32term.h (WM_EMACS_PAINT): New message.
6179 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6180 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6181 before passing to lisp thread. (Bug#950)
6183 2009-03-14 David Reitter <david.reitter@gmail.com>
6185 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6186 variable as it was never reset.
6187 (ns_term_init): Remove initialization of Lisp-settable defaults
6188 and ns_expand_space.
6189 (-setPanelFromDefaultValues): Remove ns_expand_space.
6190 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6191 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
6192 i.e. no additional spacing, similar to Carbon port.
6194 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6195 * nsfns.m (ns-popup-prefs-panel): Remove.
6197 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6199 * sound.c (alsa_configure): Remove call to deprecated
6200 snd_pcm_sw_params_set_xfer_align.
6202 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
6204 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6205 after clicking in a detached tool bar.
6206 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6208 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6210 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6211 int/Lisp_Object mixup).
6213 2009-03-13 Kenichi Handa <handa@m17n.org>
6215 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
6216 Handle NAME nil and t correctly. Callers changed.
6217 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6218 (set_fontset_font): Change ARG to a vector. Handle range_list in
6220 (Fset_fontset_font): Fix the case that TARGET is both a script
6221 name and charset name. Adjust the arg to set_fontset_font for
6223 (fontset_from_font): Fix previous change.
6224 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
6225 entry. If FONTSET is the default fontset, don't set the extra
6226 slot of the returning char-table.
6228 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
6230 * nsfns.m (Fx_close_connection): Doc fix.
6231 (Fns_do_applescript): Reflow docstring.
6232 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6233 (Fx_display_pixel_width, Fx_display_pixel_height)
6234 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6235 Fix typos in docstrings.
6236 (Fns_set_alpha): Fix typos in error messages.
6238 2009-03-12 David Reitter <david.reitter@gmail.com>
6240 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
6241 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6242 were used for such events.
6244 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6245 (toggleToolbar, performDragOperation, runHelp): Use it.
6247 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
6248 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6250 2009-03-11 Kenichi Handa <handa@m17n.org>
6252 * font.h (font_open_by_spec): Extern it.
6254 * font.c (font_open_by_spec): New function.
6255 (font_open_by_name): Use font_open_by_spec.
6257 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6258 fontset of the frame.
6260 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6261 modify the default font of frames that use this fontset.
6262 (num_auto_fontsets): New variable.
6263 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6264 name. Be sure to set FONTSET_ASCII to the correct font name.
6265 (update_auto_fontset_alist): New function.
6267 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
6269 * makefile.w32-in: Update dependencies.
6271 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6273 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6275 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6277 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6279 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
6281 * lread.c (Feval_buffer): Doc fix.
6283 2009-03-09 Kenichi Handa <handa@m17n.org>
6285 * charset.c (Qfile_name_handler_alist): Extern it.
6286 (load_charset_map_from_file): Temporarily bind
6287 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6289 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
6291 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6292 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
6294 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6296 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6297 (x_set_window_size): Change back to calculated method of setting
6298 toolbar height under Cocoa. (Bug#2546)
6299 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6300 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6302 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6304 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6305 accelerator in parens under GNUstep.
6307 2009-03-06 Kenichi Handa <handa@m17n.org>
6309 These changes are to detect incorrect composition sequence without
6310 looking ahead the source. (Bug#2370)
6312 * coding.h: Include "composite.h".
6313 (enum compisition_state): New enum.
6314 (struct compisition_status): New struct.
6315 (struct iso_2022_spec): New member cmp_status.
6316 (struct emacs_mule_spec): New struct.
6317 (struct coding_system): New members ctext_extended_segment_len and
6318 embedded_utf_8. Change the union member
6319 spec.emacs_mule_full_support to spec.emacs_mule.
6321 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6322 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
6323 (MAX_ANNOTATION_LENGTH): Define to 5.
6324 (ADD_COMPOSITION_DATA): New arg nbytes.
6325 (emacs_mule_char): New arg cmp_status.
6326 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6327 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6328 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6329 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6330 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6331 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6332 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6333 (EMACS_MULE_COMPOSITION_END): New macro.
6334 (emacs_mule_finish_composition): New function.
6335 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6336 (decode_coding_emacs_mule): Avoid long looking ahead while
6337 handling composition.
6338 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6339 (ENCODE_COMPOSITION_RULE): New macro.
6340 (finish_composition): New function.
6341 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6342 (DECODE_COMPOSITION_START): New implementation.
6343 (DECODE_COMPOSITION_END): Likewise.
6344 (STORE_COMPOSITION_RULE): New macro.
6345 (decode_coding_iso_2022): Avoid long looking ahead while handling
6346 composition, CTEXT extended segment, and embedded UTF-8.
6347 (setup_coding_system): For a coding of type iso-2022, reset
6348 CODING_ISO_EXTSEGMENT_LEN (coding) and
6349 CODING_ISO_EMBEDDED_UTF_8 (coding).
6350 (get_translation): Delete arguments last_block, from_nchars,
6351 to_nchars. Callers changed.
6352 (produce_chars): Don't modify charbuf. Adjusted for the change of
6354 (produce_composition): Adjust for the new annotation sequence.
6355 (handle_composition_annotation): Likewise.
6356 (consume_chars): Adjust for the change of get_translation.
6358 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6360 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
6362 2009-03-05 Kenichi Handa <handa@m17n.org>
6364 * font.c (font_select_entity): New function.
6365 (font_find_for_lface): Use font_select_entity to select a font.
6367 * fontset.c (fontset_find_font): If a font found without
6368 restricting to the characters C doesn't support C, try to find a
6369 font with C restriction.
6371 2009-03-04 Nikolaj Schumacher <me@nschum.de>
6373 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
6375 2009-03-04 Jason Rumney <jasonr@gnu.org>
6377 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
6378 characters that have already been read. (Bug#2569)
6380 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6381 Log an error message if check_image_size failed.
6382 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
6383 (gs_load): Mention max-image-size in size error message. (Bug#2560)
6385 2009-03-02 Eli Zaretskii <eliz@gnu.org>
6387 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6388 when decoding process output.
6390 2009-03-01 Richard M Stallman <rms@gnu.org>
6392 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6394 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6396 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6398 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6399 (decode_coding_emacs_mule, decode_coding_iso_2022)
6400 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6401 (decode_coding_raw_text, decode_coding_charset)
6402 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6403 Honor inhibit-eol-conversion. (Bug #2186)
6405 2009-02-28 Jason Rumney <jasonr@gnu.org>
6407 * coding.c (detect_coding_charset): If not checking latin extra,
6408 fail on characters between 0x80 and 0xA0. (Bug#2354)
6410 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6412 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
6413 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
6415 2009-02-27 Glenn Morris <rgm@gnu.org>
6417 * callint.c (Finteractive): Doc fix.
6419 2009-02-27 Kenichi Handa <handa@m17n.org>
6421 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6423 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
6425 * font.c (font_style_to_value): Set value for unknown symbols to
6427 (weight_table, slant_table, width_table): Treat "unspecified" as
6430 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
6432 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6434 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
6436 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6437 error as soon as a recursive load is detected.
6439 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6441 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6444 2009-02-24 Kenichi Handa <handa@m17n.org>
6446 * fontset.c (fontset_find_font): Fix the condition for checking
6449 2009-02-24 Glenn Morris <rgm@gnu.org>
6451 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6452 whitespace that confuses documentation.
6454 2009-02-23 Miles Bader <miles@gnu.org>
6456 * process.c (Flist_system_processes, Fprocess_attributes)
6457 (syms_of_process): Rename `system-process-attributes' to
6458 `process-attributes'.
6460 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6462 * coding.h (struct coding_system): Make safe_charsets a pointer to
6464 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6466 (SAFE_CHARSET_P): Likewise.
6467 (setup_iso_safe_charsets): Properly setup safe_charsets.
6468 (Fdefine_coding_system_internal): Likewise.
6469 (setup_coding_system): Likewise. Remove unneeded casts.
6470 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6471 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6474 * insdel.c (del_range_2): Don't modify gap contents when called
6475 from decode_coding_object. (Bug#1809)
6477 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
6479 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6481 (Ftype_of): Recognize font objects.
6483 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6485 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6488 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6490 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6491 async_iconified. Based on a patch by Christian Lynbech
6492 <christian.lynbech@tieto.com>.
6493 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6495 2009-02-20 Glenn Morris <rgm@gnu.org>
6497 * syntax.c (Fskip_chars_forward): Fix doc typo.
6499 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
6501 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6503 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
6505 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6507 2009-02-19 Kenichi Handa <handa@m17n.org>
6509 * coding.c (detect_coding): Preserve coding->mode.
6510 Don't overflow coding->carryover. (Bug#2370)
6512 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6514 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6516 2009-02-18 Kenichi Handa <handa@m17n.org>
6518 * font.c (font_check_otf_features): Fix handling of `nil' element.
6519 (Ffont_spec): Describe :lang and :otf in the docstring.
6521 2009-02-16 Andreas Schwab <schwab@suse.de>
6523 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6526 2009-02-16 Kenichi Handa <handa@m17n.org>
6528 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
6531 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
6533 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
6535 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6536 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6538 2009-02-14 Eli Zaretskii <eliz@gnu.org>
6540 * msdos.c (MAX_SCREEN_BUF): New macro.
6541 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6542 Encode the entire run of glyphs sharing the same face, instead of
6543 doing that one glyph at a time (fixes a bug with displaying
6544 double-size characters).
6546 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6548 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6550 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6551 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
6552 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
6554 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
6555 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
6557 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6559 * keyboard.c (adjust_point_for_property): Allow stopping between two
6562 2009-02-12 Jason Rumney <jasonr@gnu.org>
6564 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6565 (add_font_entity_to_list): Call check_face_name even when family
6568 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6569 Release DC when finished. Use NULL window to refer to desktop.
6570 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
6572 * w32font.c (add_font_entity_to_list): Fix check for substituted
6573 raster fonts. (Bug#2219)
6575 2009-02-12 Kenichi Handa <handa@m17n.org>
6577 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6578 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6579 (autocmp_chars): Use fast_looking_at. Don't compose more
6580 characters than MAX_COMPOSITION_COMPONENTS.
6581 (find_automatic_composition): While looking forward and backward,
6582 check static composition. Fix where to stop looking forward.
6583 (composition_adjust_point): Fix checking of static composition.
6584 (Fcomposition_get_gstring): Pay attention to
6585 MAX_COMPOSITION_COMPONENTS.
6587 * lisp.h (fast_looking_at): Extern it.
6589 * search.c (fast_looking_at): New function.
6591 * term.c (encode_terminal_code): Adjust for the change of
6592 <struct glyph>.u.cmp.to.
6593 (append_composite_glyph): Likewise.
6595 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
6596 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6598 (append_composite_glyph): Adjust for the change of
6599 <strcut glyph>.u.cmp.to.
6601 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
6603 * casetab.c (init_casetab_once):
6604 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6605 * font.c (font_update_lface):
6606 * fontset.c (Fnew_fontset):
6607 * ftfont.c (ftfont_drive_otf):
6608 * xfont.c (xfont_open):
6609 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6611 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6613 * fileio.c (Fwrite_region): !NILP -> CONSP.
6615 2009-02-10 Andreas Schwab <schwab@suse.de>
6617 * process.c (send_process): Properly relocate pointer into data
6618 when using encoded data. (Bug#2272)
6620 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6622 * coding.c (detect_coding_charset): Fix previous change.
6624 2009-02-08 Jason Rumney <jasonr@gnu.org>
6626 * w32fns.c (w32_hide_hourglass): Handle case where frame
6627 disappeared while hourglass was displayed. (Bug #2193)
6629 2009-02-07 Andreas Schwab <schwab@suse.de>
6631 * unexelf.c (unexec): Fix error message.
6633 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6635 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
6636 when modal window is active. (Bug #2152)
6637 (applicationShouldTerminate:): Remove now-unneeded while loop
6638 around NSRunAlertPanel.
6640 * nsmenu.m (popupSession): New file-global variable.
6641 (pop_down_menu): End the popupSession before closing dialog.
6642 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6643 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6644 don't query NSApp for events (just sleep instead).
6646 2009-02-07 Eli Zaretskii <eliz@gnu.org>
6648 * coding.c (syms_of_coding) <translation-table-for-input>:
6649 Modify doc string to discourage use for character code unification.
6651 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6653 * atimer.c (run_timers): Update pending_atimers.
6655 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
6657 * image.c (svg_load_image): Fix last change.
6659 * xfns.c (Fx_create_frame): Signal an error if no font is
6662 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
6664 * character.c (syms_of_character) <script-representative-chars>:
6665 Fix typo in docstring.
6667 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6669 * nsmenu.m (pop_down_menu): New function.
6670 (ns_popup_dialog): Call it on unwind.
6671 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6672 call timer_check() (Bug#2154).
6673 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6674 handling_signal is set.
6675 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6677 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
6679 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6681 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6683 * keyboard.c (poll_for_input_1, handle_async_input):
6684 Set handling_signal under HAVE_NS.
6686 2009-02-04 Glenn Morris <rgm@gnu.org>
6688 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6690 2009-02-04 Kenichi Handa <handa@m17n.org>
6692 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6694 * charset.c (Fchar_charset): New optional arg restriction.
6696 * coding.h (coding_system_charset_list): Extern it.
6698 * coding.c (coding_system_charset_list): New function.
6700 * composite.c: Include coding.h and termhooks.h.
6701 (composition_gstring_p): Fix for the terminal case.
6702 (composition_gstring_width): Likewise.
6703 (fill_gstring_body): Likewise.
6704 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6706 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6707 is within a composition.
6708 (Fcomposition_get_gstring): Fix the terminal case.
6710 * term.c (encode_terminal_code): Fix handling of composition.
6711 (produce_composite_glyph): For static composition, get pixel_width
6712 from struct composition.
6714 2009-02-02 Andreas Schwab <schwab@suse.de>
6716 * unexelf.c (unexec): Handle unaligned bss offset.
6718 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6720 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6721 XT,w32read_socket changes to ns_read_socket.
6723 * keyboard.c (handle_interrupt): Don't call
6724 quit_throw_to_read_char() under NS.
6726 * blockinput.h: Remove NS-specific code.
6728 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6730 * dispnew.c (window_change_signal): Don't try to get the size of a
6731 suspended tty frame.
6732 * term.c (Fresume_tty): Resize if the size has changed while the
6735 * alloc.c (mark_stack): Properly conditionalize previous change.
6737 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6739 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6740 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6741 Remove; this code is not used on Windows.
6743 2009-01-30 Eli Zaretskii <eliz@gnu.org>
6745 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6746 EOLs that also has stray ^M characters.
6748 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6750 * atimer.c (run_timers, alarm_signal_handler):
6751 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6752 * w32inevt.c (w32_console_read_socket):
6753 * w32term.c (w32_read_socket):
6754 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6756 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
6758 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6759 Initialize it as a relative filename pattern.
6760 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6761 (Fcall_process_region): Simplify temp file creation using
6762 temporary-file-directory.
6764 2009-01-29 Eli Zaretskii <eliz@gnu.org>
6766 * msdos.c: Rename pending_signals to msdos_pending_signals.
6767 (sig_suspender, sigprocmask): Adjust.
6769 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
6771 * keyboard.c (pending_signals): New var.
6772 (poll_for_input, input_available_signal, init_keyboard): Set it.
6773 (process_pending_signals): New function.
6775 * lisp.h (QUIT): Check pending_signals instead of
6776 interrupt_input_pending. Use process_pending_signals.
6778 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
6780 * process.c (wait_reading_process_output): Use process_pending_signals.
6782 * sysdep.c (emacs_write): Use process_pending_signals.
6784 * xterm.c (XTread_socket): Update pending_signals.
6786 * w32term.c (w32_read_socket): Update pending_signals.
6788 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6790 2009-01-29 Kenichi Handa <handa@m17n.org>
6792 * xftfont.c (xftfont_has_char): New function.
6793 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6795 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6797 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6799 (ns_query_color): New declaration.
6801 * nsterm.m (ns_confirm_quit): New variable.
6802 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6803 (EmacsApp-applicationShouldTerminate:): Use it.
6804 (EmacsPrefsController): Let user set it.
6805 (ns_query_color): New function.
6806 (ns_defined_color): Use it.
6807 (ns_initialize): Drop.
6808 (ns_term_init): Add two lines from ns_initialize(), and set
6809 input_interrupt_mode to nil.
6811 * image.c (svg_load_image): Don't right-shift background RGB when
6812 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
6814 2009-01-28 Kenichi Handa <handa@m17n.org>
6816 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6817 (fontset_get_font_group): Remember that no font-group is specified
6820 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
6822 * fns.c (concat): Check for string overflow (bug#1787).
6824 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6825 Quadruple undo limits (bug#1501).
6827 2009-01-27 Kenichi Handa <handa@m17n.org>
6829 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6830 directly use GT_Get_Char_index.
6832 * xftfont.c (struct xftfont_info): New member `index'.
6834 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6835 (Ffontset_font): Adjust for the change of fontset entry.
6837 2009-01-26 Kenichi Handa <handa@m17n.org>
6839 * fontset.c (fontset_find_font): Fix handling of non-cons return
6840 value of fontset_get_font_group.
6841 (fontset_font): Revert last change.
6843 2009-01-26 Jason Rumney <jasonr@gnu.org>
6845 * w32font.c (w32font_list_internal): Return quickly if registry is
6846 unknown. Simplify final return.
6847 (add_font_entity_to_list): Break complex logic down into more
6848 manageable chunks. Move unknown registry check to
6849 w32font_list_internal.
6851 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6853 Changes to remove Feval calls from GUI under NS.
6855 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6856 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
6857 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6859 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6860 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6861 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6862 instead of NON_ASCII_KEYSTROKE_EVENT.
6863 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6864 (EmacsApp-applicationShouldTerminate:): Query user.
6865 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6868 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6870 * keyboard.c (kbd_buffer_get_event): Check for it.
6871 (keys_of_keyboard): Define lispy keys for
6872 ns-put/unput-working-text.
6874 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6876 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6878 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
6880 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
6881 setting current_buffer directly. (Bug#2044)
6883 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
6885 * fontset.c (fontset_font): If we know there is no font, don't do
6886 any work. (Bug#1952, bug#1990).
6888 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
6890 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6892 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
6893 (ns_no_defaults): New declaration.
6896 * nsterm.h (ns_no_defaults): New declaration.
6898 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
6900 * nsterm.m (ns_no_defaults): New variable.
6901 (ns_initialize): Don't read defaults when ns_no_defaults.
6902 (EmacsView-readSelectionFromPasteboard:)
6903 (writeSelectionToPasteboard:types:): New stubbed-out methods for
6904 NSServicesRequests protocol. (Bug#1435)
6905 (ns_dumpglyphs_stretch): New function.
6906 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
6907 of 2008-11-15 to other terms. (Bug#615)
6909 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6911 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6913 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6916 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6923 * nsterm.m: Remove '23' comments that indicated code added during
6924 update from emacs-20 -> emacs-23.
6926 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6928 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
6929 ns_alternate_modifier. (Bug#1217)
6931 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6932 Display all shortcuts, including those w/o super modifier.
6934 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6936 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
6938 * fileio.c (Vwrite_region_post_annotation_function)
6939 (Vwrite_region_annotation_buffers): New vars.
6940 (build_annotations_unwind): Just reset
6941 Vwrite_region_annotation_buffers.
6942 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6943 Call write-region-post-annotation-function.
6944 (build_annotations): Add to Vwrite_region_annotation_buffers if
6947 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6949 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6951 * nsfns.m (ns_do_applescript):
6952 Conditionalize typeUTF16ExternalRepresentation on Tiger.
6954 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6956 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6958 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6960 * nsmenu.m (NSMENUPROFILE): Change #if style.
6962 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6964 * nsterm.m (x_set_frame_alpha): Add prototype.
6965 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6966 handle Ctrl-tab. (Bug#1841)
6967 (ns_get_color): Use unsigned long long for scanned hex string value.
6968 (ns_term_shutdown): Abort on non SIGTERM signals.
6969 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6970 (EmacsPrefsController-setPanelFromDefaultValues): New function.
6971 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
6972 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
6973 (ns_defined_color): Fix settings of the XColor variable fields:
6974 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
6976 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
6978 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6979 values in onTiger section.
6981 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
6983 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6984 Check return value of font_spec_from_name.
6985 (Fx_list_fonts): Doc fix. (Bug#1951)
6987 * font.c (font_spec_from_name): Return Qnil if font name could not
6989 (font_parse_name): Treat a `?' character as part of an XLFD.
6991 * fns.c (Fsubstring): Doc fix.
6993 2009-01-19 Kenichi Handa <handa@m17n.org>
6995 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
6996 (ftfont_list): Likewise.
6998 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
7000 * dbusbind.c (Fdbus_register_signal):
7001 * process.c (conv_sockaddr_to_lisp):
7002 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7004 * callproc.c (Fgetenv_internal): Doc fix.
7006 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
7008 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7009 it is not even used.
7011 2009-01-16 Glenn Morris <rgm@gnu.org>
7013 * font.c (Ffont_variation_glyphs): Silence compiler.
7015 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
7017 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7018 Reported by David Robinow <drobinow@gmail.com>.
7020 2009-01-15 Kenichi Handa <handa@m17n.org>
7022 * coding.c (detect_coding_system): Fix handling of null_byte_found.
7024 2009-01-14 Jason Rumney <jasonr@gnu.org>
7026 * frame.c (x_set_font): Always store a font to the font parameter,
7027 never a fontset. (Bug#1562)
7029 2009-01-14 Kenichi Handa <handa@m17n.org>
7031 * coding.c (TWO_MORE_BYTES): New macro.
7032 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
7034 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
7036 * font.c (font_clear_prop): If clearing the family, clear the font
7039 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
7041 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
7043 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7044 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7045 functions, use sizeof.
7047 2009-01-12 Martin Rudalics <rudalics@gmx.at>
7049 * keyboard.c (read_char): Fix case where last_nonmenu_event
7050 returned a bad value with submenus. (Bug#447)
7052 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
7054 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7055 family, clear the font width index too.
7057 2009-01-11 Jason Rumney <jasonr@gnu.org>
7059 * keyboard.c (cmd_error_internal): Exit when errors occur before
7060 frame creation and not in daemon mode. (Bug#1836)
7062 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
7064 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7065 of a display vector, backtrack.
7066 (try_window_reusing_current_matrix): Check glyph type before
7067 referencing charpos member.
7069 2009-01-10 Eli Zaretskii <eliz@gnu.org>
7073 * coding.c (inhibit_null_byte_detection): New variable.
7074 (detect_coding, detect_coding_system): Don't pay attention to null
7075 bytes if inhibit_null_byte_detection is non-zero.
7076 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
7077 <inhibit-iso-escape-detection>: Doc fix.
7079 2009-01-09 Jason Rumney <jasonr@gnu.org>
7081 * w32font.c (add_font_entity_to_list): Don't report unknown
7082 Windows charset as any unrecognized registry. (Bug#1548)
7083 Only report Unicode Plane 2 fonts as unicode-sip.
7085 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
7087 * xfaces.c (Fx_font_family_list): Delete function.
7088 Move compatibility version to faces.el.
7090 * font.c (Ffont_family_list): Return a list of strings, not symbols.
7092 2009-01-09 Martin Rudalics <rudalics@gmx.at>
7094 * frame.c (x_set_frame_parameters): Remember requested value for
7095 fullscreen before it's reset by the parameter handler.
7097 2009-01-09 Glenn Morris <rgm@gnu.org>
7099 * keyboard.c (last_command_char): For clarity, rename to...
7100 (last_command_event): ... and update all users.
7101 (last_input_char): For clarity, rename to...
7102 (last_input_event): ... and update all users.
7103 (last-command-char, last-input-char): Move to subr.el as aliases.
7104 * cmds.c, commands.h: Update for last_command_char rename.
7106 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
7108 * font.c (font_open_for_lface): Handle unspecified height attribute.
7110 2009-01-08 Jason Rumney <jasonr@gnu.org>
7112 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7113 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7114 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7116 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
7117 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7119 2009-01-07 Kenichi Handa <handa@m17n.org>
7121 * fileio.c (Finsert_file_contents): In the case of replace,
7122 remember the coding system used for decoding in
7123 coding_system (Bug#1039).
7125 * coding.c (decode_coding_utf_8): Check byte_after_cr before
7126 breaking the loop. (Bug#870)
7127 (decode_coding_utf_16, decode_coding_emacs_mule)
7128 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7129 (decode_coding_charset): Likewise.
7131 2009-01-05 Martin Rudalics <rudalics@gmx.at>
7133 * frame.c (x_set_frame_parameters): Make sure height (width) get
7134 applied when fullwidth (fullheight) is set. (Bug#1522)
7136 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
7138 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7139 (utc_base): Declare as ULONGLONG, not long double.
7140 (convert_time_raw): Delete.
7141 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7142 (initialize_utc_base): New function.
7143 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7144 (convert_from_time_t): Use initialize_utc_base; compute result with
7146 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7148 2009-01-03 Eli Zaretskii <eliz@gnu.org>
7150 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
7151 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7152 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7153 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7154 [!subprocesses]: Define.
7155 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7156 (Flist_system_processes, Fsystem_process_attributes)
7157 [!subprocesses]: Call list_system_processes and
7158 system_process_attributes instead of returning Qnil.
7160 * dosfns.c (system_process_attributes, list_system_processes):
7163 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7165 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7166 Don't use the default (no-op) implementation.
7168 2009-01-03 Jason Rumney <jasonr@gnu.org>
7170 * keyboard.c (parse_modifiers_uncached): Wheel events are
7173 * w32term.c (x_query_colors, x_query_color): New functions.
7175 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7176 (svg_load_image): Cast returned pointers from dynamically loaded
7177 functions. Eliminate W32 specific code.
7179 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7181 * nsfns.m (x_set_foreground_color, x_set_background_color)
7182 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7183 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7184 x_ prefix instead of ns_. Update references.
7185 (syms_of_nsfns): Add a FIXME comment.
7187 * nsterm.m (x_set_cursor_type): New prototype.
7188 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7190 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7191 for Solaris instead of incorrectly providing Qutime and Qcutime.
7193 2009-01-02 Eli Zaretskii <eliz@gnu.org>
7195 * w32.c (process_times): Compute sum of utime and stime.
7196 (system_process_attributes): Add Qtime to the alist.
7198 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7199 and add them to the alist.
7201 * process.c (top level) <Qtime, Qctime>: New variables.
7202 (syms_of_process): staticpro them.
7203 (Fsystem_process_attributes): Add their documentation to the doc
7206 * process.h: Declare Qtime and Qctime.
7208 2009-01-02 Jason Rumney <jasonr@gnu.org>
7210 * image.c (Qgobject): New symbol.
7211 (syms_of_image): Initialize it.
7212 (init_svg_functions): Load some functions from gobject library.
7214 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7216 * frame.c (make_terminal_frame): Remove redundant code and useless
7219 2009-01-01 Andreas Schwab <schwab@suse.de>
7221 * process.c (conv_sockaddr_to_lisp): Add workaround for
7222 getsockname bug on BSD.
7224 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
7226 * xfns.c (x_create_tip_frame): Set border width of the X window.
7228 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
7230 2009-01-01 Jason Rumney <jasonr@gnu.org>
7232 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
7233 Don't block input, as per earlier xterm.c changes.
7235 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7237 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7238 (ns_appkit_version_int): New function.
7239 (x-server-version): Use ns_appkit_version_int and follow 21+
7240 convention of returning 3 integers.
7242 2008-12-30 Kenichi Handa <handa@m17n.org>
7244 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7245 (CHAR_SURROGATE_PAIR_P): New macro.
7247 * font.h (struct font_driver): New member get_variation_glyphs.
7249 * font.c (font_range): Don't require a font for a variation selector.
7250 (Ffont_variation_glyphs): New function.
7251 (syms_of_font): Defsubr it.
7253 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7254 ftfont_variation_glyphs.
7255 (setup_otf_gstring): New function.
7256 (ftfont_drive_otf): Use it.
7257 (ftfont_shape_by_flt): Handle variation selector.
7258 (ftfont_variation_glyphs): New function.
7260 2008-12-30 Martin Rudalics <rudalics@gmx.at>
7262 * frame.c (Vemacs_iconified): Remove.
7264 2008-12-30 Jason Rumney <jasonr@gnu.org>
7266 * frame.c (store_frame_param, x_get_arg): Enable newer code on
7267 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7269 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
7271 * indent.c (Fvertical_motion): Don't advance iterator if we have
7272 reseated to the desired position.
7274 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7275 checking for pos match.
7277 2008-12-30 Kenichi Handa <handa@m17n.org>
7279 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7280 just get the low 8-bit of the code.
7282 * font.c (font_intern_prop): Validate str as multibyte.
7284 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7286 * dispextern.h (struct face): Move lface and hash from the middle
7289 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7291 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7293 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7294 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7295 instead of intervals.h.
7297 2008-12-26 Andreas Schwab <schwab@suse.de>
7299 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7302 2008-12-26 Martin Rudalics <rudalics@gmx.at>
7304 * textprop.c (Qminibuffer_prompt): New variable.
7305 (syms_of_textprop): Initialize it.
7306 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7307 in minibuffer-prompt face. (Bug#1662)
7309 2008-12-25 Jason Rumney <jasonr@gnu.org>
7311 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7313 2008-12-24 Jason Rumney <jasonr@gnu.org>
7315 * ralloc.c (r_alloc_reset_variable): New function.
7317 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
7318 record of what points where. (Bug#716)
7320 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7322 * minibuf.c (read_minibuf): Follow the non-interactive case when
7323 running as a daemon, before detaching.
7325 2008-12-22 Andreas Schwab <schwab@suse.de>
7327 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7328 * gtkutil.c (free_widget_value): Use xfree instead of free.
7330 2008-12-22 Martin Rudalics <rudalics@gmx.at>
7332 * frame.c (delete_frame): New function derived from
7333 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7334 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7335 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7336 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7337 * frame.h: Extern delete_frame.
7338 * window.c (window_loop):
7339 * terminal.c (delete_terminal):
7340 * xterm.c (x_connection_closed):
7341 * xfns.c (Fx_hide_tip):
7342 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
7344 2008-12-21 Jason Rumney <jasonr@gnu.org>
7346 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7347 when character maps to .notdef character.
7349 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7351 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7353 2008-12-20 Jason Rumney <jasonr@gnu.org>
7355 * frame.c (Fmake_terminal_frame): Raise an error when called from
7356 a graphical frame on Windows. (Bug#1325)
7358 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7360 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7362 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
7364 * minibuf.c (Fread_buffer): Doc fix.
7366 2008-12-20 Jason Rumney <jasonr@gnu.org>
7368 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
7369 server name in UNC paths. (Bug#719)
7371 * coding.c (decode_coding): Clear chars_at_source flag when using
7374 2008-12-19 Daniel Engeler <engeler@gmail.com>
7376 * sysdep.c (serial_configure): Fix typo.
7378 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7380 * sysdep.c: Include alloca.h.
7381 (system_process_attributes): Add implementation for Solaris.
7383 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
7385 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7387 Reorganize implementation of Flist_system_processes and
7388 Fsystem_process_attributes. No functional changes.
7389 * process.c: Don't #include pwd.h, grp.h and limits.h.
7390 (Flist_system_processes): Just call list_system_processes.
7391 (Fsystem_process_attributes): Just call system_process_attributes.
7392 (procfs_list_system_processes, time_from_jiffies)
7393 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7394 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7396 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7397 (list_system_processes): Rename from
7398 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7399 Provide a do nothing implementation.
7400 (system_process_attributes): Rename from
7401 procfs_list_system_processes.
7402 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7403 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
7405 * w32.c (list_system_processes): Rename from
7406 w32_list_system_processes.
7407 (system_process_attributes): Rename from
7408 w32_system_process_attributes.
7410 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7412 * process.h (w32_list_system_processes)
7413 (w32_system_process_attributes): Remove.
7414 (list_system_processes, system_process_attributes):
7417 2008-12-19 Kenichi Handa <handa@m17n.org>
7419 * xfont.c (xfont_decode_coding_xlfd): New function.
7420 (xfont_encode_coding_xlfd): New function.
7421 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7422 (xfont_list): Decode and encode XLFD by iso-8859-1.
7423 (xfont_match): Likewise.
7424 (xfont_list_family): Likewise.
7425 (xfont_open): Likewise.
7427 * ftfont.c (ftfont_open): Generate a multibyte string if given
7430 * xftfont.c (xftfont_open): Generate a multibyte string if given
7433 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7435 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7437 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7438 clicked on a detached tool bar button.
7440 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7442 * emacs.c (main): Print and error and exit when no data is read
7445 2008-12-17 Jason Rumney <jasonr@gnu.org>
7447 * w32font.c (w32font_has_char): Always return -1.
7449 2008-12-16 Kenichi Handa <handa@m17n.org>
7451 * font.c (font_open_entity): Fix previous change.
7453 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7455 * process.c: Include <limits.h>.
7457 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
7459 * font.c (font_update_drivers): Fix mistake in reconstructing the
7462 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
7464 * font.c (font_clear_cache): Fix format of font cache data.
7466 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
7468 * xftfont.c (xftfont_open): Free Xft font pattern if
7469 XftFontOpenPattern fails.
7471 * xterm.c (x_free_frame_resources): Remove extraneous call to
7474 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7476 * xterm.c (x_delete_display): Move xim_close_dpy call to
7478 (x_delete_terminal): Call xim_close_dpy.
7480 2008-12-13 Jason Rumney <jasonr@gnu.org>
7482 * w32font.c (intern_font_name): New function.
7483 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7484 (w32font_open_internal, Fx_select_font): Decode font name.
7485 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7487 * w32font.h (intern_font_name): Declare new function.
7489 * w32uniscribe.c (add_opentype_font_name_to_list):
7490 Use intern_font_name.
7492 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7494 * frame.c (Fdelete_frame): Call free_font_driver_list.
7496 * font.c (free_font_driver_list): Implement missing function.
7498 * w32term.c (w32_term_init): Don't initialize the image cache
7499 here; it will be done in init_frame_faces.
7501 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7502 (struct x_display_info): Remove unused member null_pixel. New
7503 member xim_callback_data.
7505 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7506 (xim_initialize): Save pointer to callback function data.
7507 (xim_close_dpy): Free callback function data. Call XCloseIM,
7508 reverting 2008-11-04 change by David Smith.
7509 (x_term_init): Don't initialize the image cache here; it will be
7510 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7511 (x_delete_display): Free x_dnd_atoms member.
7513 2008-12-13 Kenichi Handa <handa@m17n.org>
7515 * font.c (font_rescale_ratio): Moved from xfaces.c.
7516 Argument type changed. Handle a font-spec too.
7517 (font_score): Check Vface_font_rescale_alist.
7518 (font_open_entity): Likewise. (Bug#1547)
7520 * xfaces.c (font_rescale_ratio): Moved to font.c.
7522 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7524 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7526 2008-12-12 Jason Rumney <jasonr@gnu.org>
7528 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7529 Vwindow_system_version to the real w32 major version.
7531 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7533 * term.c (init_tty): Move setting the terminal name before the
7534 potential user: maybe_fatal.
7536 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
7538 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7539 all callers changed. Call free_frame_faces to free the face cache.
7541 2008-12-11 Jason Rumney <jasonr@gnu.org>
7543 * w32font.c (fill_in_logfont): Don't assume symbol script means
7544 SYMBOL_CHARSET. (Bug#547)
7546 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
7547 size for surrogates. (Bug#1096, bug#872)
7549 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7551 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7553 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7555 * process.c (Fsystem_process_attributes, syms_of_process):
7556 Fix typo in name of Ssystem_process_attributes.
7557 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7559 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7561 * syntax.c (Fmodify_syntax_entry): Doc fix.
7563 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7565 * font.c (Ffont_spec): Move usage to end of docstring.
7567 2008-12-10 Jason Rumney <jasonr@gnu.org>
7569 * w32font.c (Qcham): New symbol.
7570 (font_supported_scripts): Add cham, and comments for other new
7571 scripts in bitfield from OpenType spec.
7572 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7573 contain characters beyond the bmp.
7575 2008-12-10 Kenichi Handa <handa@m17n.org>
7577 * ftfont.c (fc_charset_table): Add "unicode-sip".
7578 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7581 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7583 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7584 (Fcoding_system_put): Use QCdefault_char.
7585 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7587 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
7589 * xftfont.c (syms_of_xftfont): Fix typo.
7591 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
7593 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7595 * emacs.c (main): Close daemon_pipe on exec.
7597 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
7599 * termchar.h (struct tty): New members termcap_term_buffer and
7600 termcap_strings_buffer.
7602 * term.c (encode_terminal_code): Free any previous memory blocks
7603 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
7604 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7605 All callers changed.
7606 (init_tty): Store termcap data and string buffers in new struct
7607 tty members termcap_term_buffer and termcap_strings_buffer.
7608 (delete_tty): Free them.
7609 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
7611 2008-12-07 Seiji Zenitani <zenitani@mac.com>
7613 * nsfns.m (ns_set_background_color): Remove code duplication.
7614 It was a substitute for face-transparency on OS X 10.3.
7616 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
7618 * coding.c (make_conversion_work_buffer): Disable buffer
7619 modification hooks in the work buffer.
7621 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7623 * process.c (procfs_system_process_attributes): If `nread' has a
7624 negative value, assign zero to it.
7626 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
7628 * eval.c (Vdebug_on_error): Doc fix.
7630 2008-12-05 Kenichi Handa <handa@m17n.org>
7632 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7633 second character is a combining character.
7635 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7637 * process.c (procfs_system_process_attributes): Don't use cmd,
7638 cmdsize, and q without initializing them first.
7640 2008-12-04 Jason Rumney <jasonr@gnu.org>
7642 * w32font.c (w32font_draw): Initialize orig_clip before getting
7643 it, and delete it when finished.
7645 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7647 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7648 case when running as a daemon before detaching.
7650 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
7652 * w32.c (init_environment): Don't unload library shell32.dll.
7654 2008-12-03 Kenichi Handa <handa@m17n.org>
7656 * font.c (font_at): Set `multibyte' at first.
7658 * coding.c (decode_coding_charset): Check type of an element of
7660 (encode_coding_emacs_mule): Be sure to set `code'.
7662 * fontset.c (face_for_char): Handle invalid charset property correctly.
7663 (font_for_char): Likewise.
7665 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
7667 * font.c (Fopen_font): Compute pixel size correctly.
7668 (font_update_lface): Handle fonts with corrupted size specs,
7669 i.e. non-int and non-float.
7671 * ftfont.c (ftfont_match): Initialize entity variable.
7672 (ftfont_resolve_generic_family): Avoid using uninitialized var.
7673 (ftfont_list_family): Initialize list var earlier.
7675 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7677 * xterm.c (x_draw_glyph_string): Fall back on
7678 underline_minimum_offset for underline position.
7680 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7682 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7684 * character.c (c_string_width): Specify the type for LEN.
7686 2008-12-03 Kenichi Handa <handa@m17n.org>
7688 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
7689 (decode_coding_utf_8): Likewise.
7690 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
7691 (produce_chars): Initialize consumed_chars to 0.
7693 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7695 * keyboard.c (make_lispy_position): Only use PT if the selected
7698 2008-12-02 Andreas Schwab <schwab@suse.de>
7700 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7702 * doprnt.c (doprnt1): Fix size of charbuf.
7704 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7706 * keyboard.c (timer_check): Revert last change.
7708 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
7710 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7712 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
7714 * makefile.w32-in: Update dependencies.
7715 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7717 2008-12-01 Andreas Schwab <schwab@suse.de>
7719 * font.c (register_font_driver): Use xmalloc.
7720 (font_put_frame_data): Likewise.
7722 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
7724 * xfaces.c (realize_x_face): Make abort condition clearer.
7726 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7728 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
7730 * keyboard.c (timer_check): After a timer runs, ensure that the
7731 selected window's buffer is current.
7733 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
7735 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7736 It was accidentally restored by the Unicode merge.
7738 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7740 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
7742 * w32proc.c: Include "coding.h".
7743 (Fw32_short_file_name): Encode filename passed to Windows API.
7744 (Fw32_long_file_name): Encode filename passed to Windows API and
7745 decode back the result. (Bug#1433)
7747 2008-11-29 Kenichi Handa <handa@m17n.org>
7749 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7750 not before accessing it.
7752 * charset.c (Fdefine_charset_internal): After calculating
7753 min_char, max_char, and fastmap, copy the charset structure again.
7754 (encode_char): Fix the previous change.
7756 2008-11-28 Seiji Zenitani <zenitani@mac.com>
7758 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7760 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7762 * nsterm.m (x_set_frame_alpha): New function.
7764 2008-11-27 Eli Zaretskii <eliz@gnu.org>
7766 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7768 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
7770 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7771 pointer to check_face_name.
7773 2008-11-27 Kenichi Handa <handa@m17n.org>
7775 * category.h (SET_CATEGORY_SET): Call set_category_set.
7776 (set_category_set): Extern it.
7778 * category.c (hash_get_category_set): New function.
7779 (Fmodify_category_entry): Adjusted for the change of
7780 char_table_ref_and_range. Call hash_get_category_set to get a
7781 category set to store in the table.
7783 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7786 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
7787 (DECODE_CHAR): Check if the decoder vector is ready.
7788 (ENCODE_CHAR): Check if the encoder char-table is ready.
7789 (maybe_unify_char): Extern it.
7791 * charset.c (Vchar_unified_charset_table): Delete it.
7792 (inhibit_load_charset_map): New variable.
7793 (temp_charset_work): New variable.
7794 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7795 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7797 (load_charset_map): Meaning of control_flag changed. If
7798 inhibit_load_charset_map is nonzero, setup a table in
7800 (load_charset): New argument control_flag.
7801 (map_charset_for_dump): New function.
7802 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7803 map_charset_for_dump.
7804 (Fdefine_charset_internal): If the charset method is MAP, load
7805 mapping tables by calling load_charset.
7806 (Funify_charset): Don't load a mapping table but directly set
7808 (maybe_unify_char): New function.
7809 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7810 Handle the case of inhibit_load_charset_map being nonzero.
7811 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7812 Handle the case of inhibit_load_charset_map being nonzero.
7813 (Fclear_charset_maps): Just free temp_charset_work.
7814 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7817 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7818 change of char_table_ref_and_range.
7819 (char_table_ref_and_range): Change the meaning of argument FROM
7820 and TO. Now the caller must provide initial values for *FROM
7823 * fontset.c (fontset_add): Adjusted for the change of
7824 char_table_ref_and_range.
7825 (fontset_get_font_group): Likewise.
7826 (Ffontset_info): Likewise.
7828 * keymap.c (describe_vector): Adjusted for the change of
7829 char_table_ref_and_range. For char-table, put boundary between
7830 non-ASCII and 8-bit characters.
7832 * print.c (print_object): For bool-vector, delete unnecessary
7833 check of ASCII_BYTE_P.
7835 2008-11-26 Jason Rumney <jasonr@gnu.org>
7837 * w32font.c (w32font_open_internal): Don't include external
7838 leading in font height. (Bug#879)
7840 2008-11-26 Glenn Morris <rgm@gnu.org>
7842 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7843 redefinition with ifdef. (Bug#1383)
7845 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7847 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7849 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7851 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7852 New EmacsView methods.
7853 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7854 Fixes bug #1048,1357,1414.
7856 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7859 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7860 is not an indexed color.
7861 * nsterm.m (free_indexed_color): Add argument checking.
7862 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7864 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
7866 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7867 Document confirm-after-completion value for
7868 minibuffer-completion-confirm.
7870 2008-11-24 Jason Rumney <jasonr@gnu.org>
7872 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7875 2008-11-23 Jason Rumney <jasonr@gnu.org>
7877 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7878 restored before returning.
7880 * w32font.c (check_face_name): New function.
7881 (add_font_entity_to_list): Use it to filter out common substituted
7884 2008-11-22 Martin Rudalics <rudalics@gmx.at>
7886 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7887 confirm-nonexistent-file-or-buffer in doc-string.
7889 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7891 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7892 Fix copy/paste typo. Add checks.
7894 2008-11-21 Kenichi Handa <handa@m17n.org>
7896 * coding.c (detect_coding_iso_2022): Reject invalid composition
7898 (DECODE_COMPOSITION_START): If the current source is the last
7899 block, and the current composition doesn't end, regard this
7900 sequence as invalid.
7901 (decode_coding_iso_2022): Handle invalid composition sequence.
7903 2008-11-20 Martin Rudalics <rudalics@gmx.at>
7905 * window.c (coordinates_in_window): Don't return
7906 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7907 line when the window is not the rightmost one. (Bug#1372)
7909 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7911 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7913 2008-11-15 Eli Zaretskii <eliz@gnu.org>
7915 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7916 and bright_bg if noninteractive is non-zero.
7918 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7920 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7921 x_draw_glyph_string_background.
7923 * w32term.c (x_draw_glyph_string): Likewise.
7925 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
7927 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7928 the next glyph string once past the overhang width.
7930 * nsterm.m (ns_draw_glyph_string): Likewise.
7932 * w32term.c (x_draw_glyph_string): Likewise.
7934 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7936 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7939 2008-11-14 Martin Rudalics <rudalics@gmx.at>
7941 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7942 dedicated status of window before attempting to display another
7945 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
7947 * msdos.c (Fmsdos_long_file_names):
7948 (syms_of_msdos) <dos-unsupported-char-glyph>:
7949 * dosfns.c (Fint86): Fix typos in docstrings.
7951 2008-11-14 Eli Zaretskii <eliz@gnu.org>
7953 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7955 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7957 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7959 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7961 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7963 * frame.h: Negative alpha means "don't touch".
7965 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7967 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7969 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7973 * acldef.h: Remove files used only for systems no longer supported.
7975 * Makefile.in: Fix .o alphabetical ordering.
7976 (hftctl.o): Remove dependency, file removed.
7977 (keymap.o, print.o): Depend on charset.h.
7979 2008-11-10 Kenichi Handa <handa@m17n.org>
7981 * character.c (Fget_byte): Fix and make it faster for unibyte target.
7983 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
7985 * dired.c (file_name_completion): If completion_ignore_case is
7986 enabled, ignore case when checking completion-regexp-list.
7988 2008-11-08 Eli Zaretskii <eliz@gnu.org>
7990 * vm-limit.c (get_lim_data): Fix last change.
7992 2008-11-08 Kenichi Handa <handa@m17n.org>
7994 * character.c (Fget_byte): New function.
7995 (syms_of_character): Defsubr Fget_byte.
7997 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
7999 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8000 cursor position is valid after scrolling.
8002 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
8004 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8006 2008-11-06 Glenn Morris <rgm@gnu.org>
8008 * xterm.c (handle_one_xevent): Don't let popup menus cause
8009 mouse-autoselect-window related window switching. (Bug#1261)
8011 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8013 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8015 2008-11-04 Andreas Schwab <schwab@suse.de>
8017 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8019 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
8021 * xfns.c (Fx_wm_set_size_hint): New function.
8023 2008-11-03 Martin Rudalics <rudalics@gmx.at>
8025 * textprop.c (Fprevious_single_char_property_change): Return 0
8026 when there's no change in a string. (Bug#1301)
8028 2008-11-02 Martin Rudalics <rudalics@gmx.at>
8030 * frame.c (do_switch_frame): New argument NORECORD passed to
8032 (Fselect_frame): New argument NORECORD passed to
8034 (Fset_frame_selected_window): New argument NORECORD passed to
8036 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8037 in call of do_switch_frame.
8038 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8039 Handle NORECORD argument in call of Fselect_frame.
8040 * lisp.h (do_switch_frame, Fselect_frame)
8041 (Fset_frame_selected_window): Adjust declarations.
8042 * window.c (select_frame_norecord): New function.
8043 (run_window_configuration_change_hook): Use it and call
8044 Fselect_frame with NORECORD set.
8045 (Fselect_window): Pass NORECORD to Fselect_frame.
8046 (Fset_window_configuration): Handle NORECORD argument in call of
8048 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8049 Fset_frame_selected_window.
8050 * keyboard.c (command_loop_1): Handle NORECORD in call of
8051 Fselect_frame (currently ifdefd).
8053 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8055 * emacs.c (USAGE2): Untabify.
8057 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8059 * composite.c (fill_gstring_header): Fix copy/paste typo.
8061 2008-10-31 Martin Rudalics <rudalics@gmx.at>
8063 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8064 (Fother_window): Rename argument and rewrite doc-string.
8065 (select_window_norecord): Fix return value. (Bug#1276)
8067 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
8069 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8070 new frames overriding foreground for tooltips. Based on similar patch
8071 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8073 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
8075 * emacs.c (Fdaemon_initialized): Initialize nfd.
8077 2008-10-29 Martin Rudalics <rudalics@gmx.at>
8079 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8080 (Fwindow_text_height): Clarify doc-strings.
8081 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8082 doc-string of window-scroll-functions.
8084 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8086 * category.c (syms_of_category): Fix typo in docstring.
8088 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
8090 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8091 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8092 Fix typos in docstrings.
8094 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8096 * emacs.c (daemon_pipe): Make non-static.
8097 (IS_DAEMON): Move definition ...
8098 * lisp.h (IS_DAEMON): ... here.
8099 (daemon_pipe): Declare.
8100 (is_daemon): Remove.
8101 * dispnew.c (init_display): Use IS_DAEMON.
8103 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8105 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8106 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8108 * emacs.c (is_daemon): Remove.
8109 (main): Don't set is_daemon.
8110 (IS_DAEMON): New macro.
8111 (Fdaemonp, Fdaemon_initialized): Use it.
8112 (Fdaemon_initialized): Write a char into the pipe to make sure the
8114 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8116 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
8118 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8119 over-sized glyph, draw it with the default glyph width.
8121 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8122 glyph, draw it with the default glyph width.
8124 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8125 glyph, draw it with the default glyph width.
8127 * xdisp.c (try_scrolling): When computing the distance from the
8128 scroll margin to PT, try moving some distance past the window
8129 bottom before giving up.
8131 2008-10-27 Martin Rudalics <rudalics@gmx.at>
8133 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8134 (Fset_window_buffer): Explain in doc-string that a window can be
8135 "strongly" dedicated to its buffer.
8137 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8139 * emacs.c (daemon_name): New variable.
8140 (main): Deal with --daemon=SERVER_NAME.
8141 (Fdaemonp): Return a name if one was passed to --daemon.
8143 2008-10-26 Romain Francoise <romain@orebokech.com>
8145 * emacs.c (daemon_pipe): New variable.
8146 (main): Create a pipe before forking, make the parent exit only after
8147 the child has closed its end of the pipe. Move closing the
8149 (Fdaemon_initialized): ... here. New function.
8151 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8153 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8154 the previous unoptimized table.
8156 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8157 the distinction between non-nil and non-t value of `dedicated'.
8159 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
8161 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
8162 read_char_minibuf_menu_text is large enough to hold the menu string.
8164 2008-10-25 Martin Rudalics <rudalics@gmx.at>
8166 * window.c (Fget_buffer_window, Fdelete_windows_on)
8167 (Freplace_buffer_in_windows): Make buffer argument optional and
8168 rename to buffer_or_name.
8170 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
8172 * xdisp.c (handle_single_display_spec, handle_display_prop):
8173 Undo 2005-05-16 change.
8174 (handle_stop): Pop iterator if it's loaded with an empty string.
8175 (get_overlay_strings_1): Don't save iterator if it's loaded with
8176 an empty string (bug#1201).
8178 2008-10-24 Kenichi Handa <handa@m17n.org>
8180 * ftfont.c (ftfont_otf_features): Fix previous change.
8181 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8182 calling ftfont_otf_features.
8184 2008-10-24 Kenichi Handa <handa@m17n.org>
8186 * font.c (font_match_p): Fix for the case that a vector of
8187 characters is in script-representative-chars.
8189 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
8191 * dbusbind.c (xd_in_read_queued_messages): New variable.
8192 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
8193 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8194 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
8197 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
8199 * s/sol2-10.h: New file.
8201 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8203 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8204 poor beast has survived 9+ years and the jump from xterm.c!).
8206 2008-10-23 Martin Rudalics <rudalics@gmx.at>
8208 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8210 (Fbury_buffer): In doc-string say what happens to the buffer's window.
8212 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8214 * character.c (syms_of_character) <script-representative-chars>:
8215 <unicode-category-table>: Doc fixes.
8217 2008-10-23 Noah Friedman <friedman@splode.com>
8219 * coding.c (make_conversion_work_buffer): Check that
8220 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8223 2008-10-23 Kenichi Handa <handa@m17n.org>
8225 * font.c (font_add_log): Check the values of extra properties.
8227 2008-10-22 Martin Rudalics <rudalics@gmx.at>
8229 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8231 (Fset_window_parameter): Use NILP.
8232 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
8233 (Frecenter): Use "selected" instead of "current" window in doc-strings.
8235 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8237 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8239 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8241 * nsfns.m (ns_appkit_version): New function.
8242 (x-server-version): Use it.
8243 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8244 (x-server-vendor): Don't check_ns().
8246 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8248 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8250 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8251 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8253 2008-10-22 Kenichi Handa <handa@m17n.org>
8255 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8258 * category.c (word_boundary_p): Check scripts instead of charset.
8259 Handle nil value in word-separating-categories and
8260 word-combining-categories.
8261 (syms_of_category): Fix docstrings of word-separating-categories
8262 and word-combining-categories.
8264 2008-10-21 Eli Zaretskii <eliz@gnu.org>
8266 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8267 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8269 2008-10-21 Martin Rudalics <rudalics@gmx.at>
8271 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8272 Rename arg "buffer" to "buffer_or_name".
8273 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8275 (no_switch_window): Remove since the return value is not used.
8276 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
8277 Consider window as dedicated when Fwindow_dedicated_p returns a
8279 * lisp.h: Remove prototype for no_switch_window.
8281 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8283 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
8284 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
8286 2008-10-21 Kenichi Handa <handa@m17n.org>
8288 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8289 check Vlatin_extra_code_table.
8291 2008-10-20 Eli Zaretskii <eliz@gnu.org>
8293 * fileio.c (Fset_file_modes): Doc fix.
8295 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
8297 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8300 2008-10-19 Martin Rudalics <rudalics@gmx.at>
8302 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8303 Mention kill-buffer in doc-string.
8304 (Fset_window_buffer): Reinsert tem check removed in last commit.
8305 (Fenlarge_window, Fshrink_window): Have argument names and
8306 doc-string follow Elisp manual more closely.
8308 2008-10-18 Eli Zaretskii <eliz@gnu.org>
8310 * fileio.c (Fset_file_modes): Doc fix.
8312 2008-10-18 Martin Rudalics <rudalics@gmx.at>
8314 * window.c (Fwindow_width, Fset_window_start)
8315 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
8316 (Fdelete_windows_on, Freplace_buffer_in_windows):
8317 Make doc-strings follow code and Elisp manual more closely.
8318 (Fwindow_dedicated_p): Make window argument optional.
8319 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8320 (Fset_window_buffer): Respect any non-nil dedicated value for
8321 window. Rename "buffer" argument to "buffer_or_name".
8323 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
8325 * m/sh3.h: New file, machine description for SuperH.
8327 2008-10-17 Martin Rudalics <rudalics@gmx.at>
8329 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8331 2008-10-17 Kenichi Handa <handa@m17n.org>
8333 * ftfont.c (ftfont_otf_features): Fix indexing
8334 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8336 2008-10-16 Magnus Henoch <mange@freemail.hu>
8338 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8339 (Fdbus_call_method_asynchronously): Ditto.
8340 This change makes C-h f display the argument list.
8342 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
8344 * fileio.c (Fexpand_file_name): Doc fix.
8346 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8347 of :foreground and :background equivalent to unspecified (20.x
8350 2008-10-15 Eli Zaretskii <eliz@gnu.org>
8352 * buffer.c (syms_of_buffer): Doc fix.
8354 2008-10-14 Kenichi Handa <handa@m17n.org>
8356 * font.c (font_clear_prop): When clearing font width, clear the
8357 average width field too.
8359 2008-10-12 Andreas Schwab <schwab@suse.de>
8361 * ftfont.c (ftfont_shape_by_flt): Make static.
8362 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8364 * font.c: Don't include <m17n-flt.h>.
8366 2008-10-10 Eli Zaretskii <eliz@gnu.org>
8368 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8370 2008-10-09 Eli Zaretskii <eliz@gnu.org>
8372 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8375 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
8377 * dispnew.c (update_text_area): Avoid looping due to large glyph
8378 overhangs (bug#1070).
8380 2008-10-09 Kenichi Handa <handa@m17n.org>
8382 * fontset.c (face_for_char): If face->fontset is negative, just
8385 * font.c (font_delete_unmatched): Fix previous change.
8386 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
8388 2008-10-09 Martin Rudalics <rudalics@gmx.at>
8390 * frame.c (Fraise_frame): On text-only terminals select frame in
8391 order to make it visible. (Bug#1061)
8393 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
8395 * fontset.c (fontset_find_font): Check frame validity.
8397 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
8399 * gtkutil.c (xg_display_open): Reset default display if none exists.
8400 (xg_display_close): Allow Emacs to close all displays (bug#985).
8402 2008-10-06 Andreas Schwab <schwab@suse.de>
8404 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
8406 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
8408 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
8410 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
8412 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8413 during initialization.
8415 2008-10-04 Eli Zaretskii <eliz@gnu.org>
8417 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8418 whole thing on MSDOS frames as well as on a TTY.
8420 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8422 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8425 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8428 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8430 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8431 MSDOS frames as well.
8433 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8435 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8437 * menu.c (find_and_return_menu_selection): Add cast.
8439 2008-10-03 Glenn Morris <rgm@gnu.org>
8441 * emacs.c (USAGE1): Add --daemon.
8443 2008-10-02 Eli Zaretskii <eliz@gnu.org>
8445 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8446 100, so it's in percents as advertised.
8448 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8450 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8451 (ns_output.current_cursor, ns_output.desired_cursor)
8452 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8453 (FRAME_NEW_CURSOR_COLOR): Remove.
8455 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
8456 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
8457 enumeration (HOLLOW_BOX_CURSOR, etc.).
8459 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8460 (draw_window_cursor): Simplify code.
8461 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8462 Don't change cursor type. In latter, call rehighlight instead of doing
8464 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8465 Use core Emacs cursor types.
8467 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
8469 2008-10-02 Martin Rudalics <rudalics@gmx.at>
8471 * process.c (Faccept_process_output): Fix doc-string.
8473 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8475 * gmalloc.c (__sbrk): Also define for uClibc.
8477 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8480 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8482 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8484 (nsfont_open): Reenable the cache.
8486 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8488 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8489 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8491 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8493 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8494 a suspended terminal.
8496 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
8498 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8500 2008-09-30 Eli Zaretskii <eliz@gnu.org>
8502 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8504 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
8506 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8507 in a continued line coincides with a line beginning.
8509 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8511 * nsfont.m (nsfont_trait_distance): Fix bug.
8512 (nsfont_list): Return a list rather than a vector (syncs with Handa
8513 changes of 2008-05-14).
8514 (nsfont_open): Improve logging.
8516 2008-09-29 Andreas Schwab <schwab@suse.de>
8518 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8520 2008-09-28 Martin Rudalics <rudalics@gmx.at>
8522 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8523 name as char-resolve-modifiers.
8524 Reported by: Markus Triska <markus.triska@gmx.at>
8526 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8528 * dispnew.c (init_display): Return earlier when running as a daemon.
8530 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8532 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8534 2008-09-27 Eli Zaretskii <eliz@gnu.org>
8536 * composite.c (Fcomposition_get_gstring)
8537 (Fcompose_region_internal, Fcompose_string_internal)
8538 (Ffind_composition_internal): Doc fix.
8539 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8540 (syms_of_composite) <auto-composition-function>: Doc fix.
8541 (syms_of_composite) <composition-function-table>: Doc fix.
8543 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
8545 * search.c (wordify): New argument for lax word-ends.
8546 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8548 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8550 * lisp.h (is_daemon): Declare.
8551 * dispnew.c (init_display): Do not try to initialize the terminal
8552 when running as a daemon.
8554 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
8556 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8557 x_display_pixel_height.
8559 2008-09-22 Martin Rudalics <rudalics@gmx.at>
8561 * undo.c (record_point): Don't call Fundo_boundary for first
8564 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
8566 * emacs.c (Fdaemonp): Doc fix.
8568 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8570 * emacs.c (main): Place #ifdef in the proper place.
8572 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8574 * emacs.c (standard_args): Add --daemon.
8575 (main): Disconnect from the terminal when --daemon is passed.
8576 (is_daemon): New variable.
8577 (Fdaemonp): New function.
8578 (syms_of_emacs): Defsubr it.
8580 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
8582 * xdisp.c (get_next_display_element): Handle string display
8583 correctly when checking for the end of a box run.
8585 2008-09-20 Glenn Morris <rgm@gnu.org>
8587 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8588 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8589 (Frename_file): Avoid copying to trash if a rename involves
8590 a delete. (Bug#964).
8592 2008-09-20 Eli Zaretskii <eliz@gnu.org>
8594 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8595 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8596 frames as well as termcap frames.
8597 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8600 2008-09-19 Eli Zaretskii <eliz@gnu.org>
8602 * process.c (procfs_system_process_attributes): Fix cmdline in
8603 case /proc/PID/cmdline is empty.
8605 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8606 x_display_pixel_height.
8608 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
8610 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8612 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8613 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8615 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8617 * dispextern.h (struct it): Move line_wrap away from the middle of
8618 bitfields. Move voffset in struct iterator_stack_entry after the
8619 bitfields. Move tab_width near after another short.
8621 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8623 * frame.h (struct frame): Move alpha from the middle of bitfields.
8625 * window.h (struct window): Move frozen_window_start_p after the
8626 rest of the bitfields to reduce padding.
8628 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
8630 * xterm.h (x_display_info): Remove `height' and `width' members.
8632 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8634 * w32term.h (w32_display_info): Remove `height', `width',
8635 `height_in', and `width_in' members.
8637 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8639 (x_calc_absolute_position): Use them.
8640 (x_term_init): Omit removed `height' and `width' members.
8642 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8644 (w32_read_socket, x_calc_absolute_position): Use them.
8645 (w32_initialize_display_info, w32_term_init): Omit removed members
8646 of w32_display_info.
8648 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8650 (ns_initialize_display_info): Omit removed members of ns_display_info.
8652 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8654 (x_calc_absolute_position): Use them.
8655 (x_term_init): Omit removed `height' and `width' members.
8657 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8659 * frame.c (x_fullscreen_adjust):
8660 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8661 x_display_pixel_width.
8663 2008-09-18 Kenichi Handa <handa@m17n.org>
8665 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8666 (composition_compute_stop_pos): Fix handling of static composition.
8667 (Fcomposition_get_gstring): Check FROM and TO at first.
8669 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8671 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
8674 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
8676 * indent.c (Fvertical_motion): Use position reported by iterator
8677 instead of PT for determining screen motion (bug#943).
8679 2008-09-17 Romain Francoise <romain@orebokech.com>
8681 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8683 2008-09-17 Kenichi Handa <handa@m17n.org>
8685 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8687 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8690 2008-09-16 Kenichi Handa <handa@m17n.org>
8692 * coding.c (make_conversion_work_buffer): Avoid calling
8693 Fget_buffer_create if it is not necessary.
8695 2008-09-15 Martin Rudalics <rudalics@gmx.at>
8697 * window.c (Fselect_window): Don't update window_select_count and
8698 use_time when norecord is not nil.
8700 2008-09-14 Kenichi Handa <handa@m17n.org>
8702 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8705 2008-09-12 Kenichi Handa <handa@m17n.org>
8707 * indent.c (scan_for_column): Don't handle automatic composition
8708 if the current buffer is not associated with a window.
8710 * composite.c (composition_reseat_it): If the current buffer is
8711 not associated with a window, ignore the automatic composition.
8712 (find_automatic_composition): Likewise.
8714 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8716 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8717 (Fgpm_mouse_stop): Use it.
8718 * termhooks.h (close_gpm): Declare.
8719 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8720 connection if Gpm_GetEvent fails.
8722 * window.c (set_window_buffer): Always preserve current-buffer.
8724 2008-09-12 Glenn Morris <rgm@gnu.org>
8726 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8728 2008-09-11 Glenn Morris <rgm@gnu.org>
8730 * charset.c (charset-map-path): Doc fix.
8732 2008-09-10 Kenichi Handa <handa@m17n.org>
8734 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8736 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8737 compose a grapheme cluster with the preceding base glyph.
8739 * composite.c (composition_compute_stop_pos): Fix previous change.
8740 Reset cmp_it->id to -1 at first.
8742 2008-09-10 Glenn Morris <rgm@gnu.org>
8744 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8746 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
8748 * keyboard.c (read_key_sequence): Reapply translation maps when
8749 switching keyboards.
8751 2008-09-09 Kenichi Handa <handa@m17n.org>
8753 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8756 * composite.c (FORWARD_CHAR): Fix calculation
8757 of (POSITION).pos_byte.
8758 (composition_compute_stop_pos): Limit the search of composition to
8759 at most 500 characters ahead. If we reach the limit or find a
8760 newline, set cmp_it->ch to -2 and return 0.
8761 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8763 2008-09-08 Kenichi Handa <handa@m17n.org>
8765 * indent.c (Fvertical_motion): Be sure to set
8766 it_overshoot_expected if it.cmp_it.id is non-negative.
8768 2008-09-07 Andreas Schwab <schwab@suse.de>
8770 * callproc.c (Fcall_process): Don't hold references to string data
8771 across garbage collection. Move initialisation of new_argv down
8772 to avoid compiler bug.
8774 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8776 * process.c (Fsystem_process_attributes): Doc fix.
8778 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
8780 * callproc.c (Fcall_process): Canonicalize current directory name.
8782 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8783 iterator advances to the next line if the current line ends in a
8786 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8788 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8789 member to point to cmp_from.
8791 * xdisp.c: Doc fix for references to gidx data member.
8793 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8795 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8797 2008-09-07 Kenichi Handa <handa@m17n.org>
8799 * composite.c (FORWARD_CHAR): Check STOP after
8800 incrementing (POSITION).pos.
8802 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8804 * process.c (Fsystem_process_attributes): Doc fix.
8806 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
8808 * keyboard.c (Ftop_level): Doc fix.
8810 2008-09-06 Eli Zaretskii <eliz@gnu.org>
8812 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8813 minibuffer, don't let lower part of menu invade the echo area.
8815 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8816 "char *q" to access menu text and advance through it. Revert the
8817 change that displayed ">" instead of ASCII character 0x10.
8819 2008-09-05 Eli Zaretskii <eliz@gnu.org>
8821 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8822 toggle boxes and radio buttons on MS-DOS as well.
8824 2008-09-05 Kenichi Handa <handa@m17n.org>
8826 * composite.c (autocmp_chars): Check lookback count.
8827 (composition_compute_stop_pos): Set cmp_it->lookback.
8828 (composition_reseat_it): Check lookback count.
8829 (struct position_record): New struct.
8830 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8831 (find_automatic_composition): New function.
8832 (composition_adjust_point): Use find_automatic_composition.
8834 * dispextern.h (struct composition_it): New member lookback.
8836 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
8838 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8839 if moving by a single line.
8841 2008-09-02 Andreas Schwab <schwab@suse.de>
8843 * xterm.c (x_delete_display): Fix merge error.
8845 * fileio.c (Fexpand_file_name): Remove unused variables.
8847 2008-09-02 Eli Zaretskii <eliz@gnu.org>
8849 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8850 storage on all platforms, not just on DOS_NT.
8852 2008-09-02 Jason Rumney <jasonr@gnu.org>
8854 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8855 Ensure mouse is not grabbed after menu is finished.
8857 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
8859 * xfaces.c (Finternal_set_alternative_font_family_alist)
8860 (Finternal_set_alternative_font_registry_alist): Properly copy
8861 entire alist structure.
8863 2008-09-01 Kenichi Handa <handa@m17n.org>
8865 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
8866 representative chars of the script is a vector.
8867 (ftfont_list): Handle the case where the representative chars of
8868 the script is a vector.
8870 * character.c (syms_of_character): Docstring of
8871 script-representative-chars fixed.
8873 2008-08-31 Eli Zaretskii <eliz@gnu.org>
8875 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8876 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8877 the menu. Allocate larger buffer for `text', to account for
8878 possible ^C characters.
8880 2008-08-31 Martin Rudalics <rudalics@gmx.at>
8882 * xdisp.c (prepare_menu_bars): Don't call
8883 Vwindow_size_change_functions with arg Qt.
8885 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8887 * font.h (font_range):
8888 * fileio.c (report_file_error):
8889 * composite.c (composition_update_it): Yet another int/Lisp_Object
8892 2008-08-30 Glenn Morris <rgm@gnu.org>
8894 * data.c (Fmake_variable_frame_local): Doc fix.
8896 * frame.c (Fmodify_frame_parameters): Doc fix.
8898 2008-08-30 Eli Zaretskii <eliz@gnu.org>
8900 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8901 needed by GetTokenInformation.
8902 (w32_system_process_attributes): Check return values of all system
8905 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8906 only when the state changes.
8907 (IT_update_begin, IT_update_end): Add termscript trace.
8909 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8910 clipboard is unavailable. Set dst to NULL if it doesn't point to
8912 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8913 passing random values to xfree.
8915 * dispnew.c (init_display): Set `tty's association in frame's
8916 parameters alist to the name of the terminal device, if that is known.
8918 2008-08-29 Jason Rumney <jasonr@gnu.org>
8920 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8922 2008-08-29 Eli Zaretskii <eliz@gnu.org>
8924 * composite.c (fill_gstring_body): Avoid compiler warnings.
8926 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8927 LGLYPH_SET_CODE to avoid compiler warnings.
8929 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
8931 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8933 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8936 2008-08-29 Kenichi Handa <handa@m17n.org>
8938 * fileio.c (report_file_error): Don't downcase the first character
8939 of errstring if it is still unibyte.
8941 2008-08-29 Kenichi Handa <handa@m17n.org>
8943 These changes are to re-implement the automatic composition so
8944 that it doesn't use text properties.
8946 * Makefile.in (ftfont.o): Depend on composite.h.
8947 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8949 * character.h (Vunicode_category_table): Extern it.
8951 * character.c (Vunicode_category_table): New variable.
8952 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8954 * chartab.c (optimize_sub_char_table): Perform more greedy
8957 * composite.h (enum composition_method):
8958 Delete COMPOSITION_WITH_GLYPH_STRING.
8959 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8960 (Vcomposition_function_table): Extern it.
8961 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8962 (composition_gstring_put_cache, composition_gstring_from_id)
8963 (composition_gstring_p, composition_gstring_width)
8964 (composition_compute_stop_pos, composition_reseat_it)
8965 (composition_update_it, composition_adjust_point): Extern them.
8966 (Fcomposition_get_gstring): EXFUN it.
8968 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
8969 (Vcomposition_function_table)
8970 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
8971 (gstring_hash_table, gstring_work, gstring_work_headers):
8973 (gstring_lookup_cache, composition_gstring_put_cache)
8974 (composition_gstring_from_id, composition_gstring_p)
8975 (composition_gstring_width, fill_gstring_header)
8976 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8977 (composition_reseat_it, composition_update_it)
8978 (composition_adjust_point, Fcomposition_get_gstring): New functions.
8979 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8980 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8981 Defsubr composition_get_gstring.
8983 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8985 (struct glyph_string): Delete the member gidx. New members
8986 cmp_id, cmp_from, and cmp_to.
8987 (enum it_method): Delete GET_FROM_COMPOSITION.
8988 (struct composition_it): New struct.
8989 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8990 Delete c, len, cmp_id, cmp_len in u.comp.
8992 * font.h (enum lgstring_indices): Delete it.
8993 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
8994 (enum lglyph_indices): Likewise.
8995 (font_range): Adjust extern.
8996 (font_fill_lglyph_metrics): Extern it.
8998 * font.c (QCf): New variable.
8999 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9000 (font_prepare_composition): Delete this function.
9001 (font_range): Type and arguments changed.
9002 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9003 (font_fill_lglyph_metrics): New function.
9004 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
9005 (syms_of_font): DEFSYM QCf. Delete defsubr for
9006 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9007 Defsubr Sfont_shape_gstring.
9009 * fontset.h (font_for_char): Extern it.
9011 * fontset.c (font_for_char): New function.
9013 * ftfont.c: Include composite.h.
9014 (ftfont_resolve_generic_family): Add langset "en" to pattern.
9015 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9017 * indent.c: Include composite.h and dispextern.h.
9018 (check_composition): Delete this function.
9019 (scan_for_column): Handle composition by
9020 composition_compute_stop_pos, composition_reseat_it, and
9021 composition_update_it.
9022 (compute_motion): Likewise.
9023 (Fvertical_motion): Fix checking of composition.
9025 * keyboard.c (adjust_point_for_property): Check composition by
9026 composition_adjust_point.
9028 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
9029 struct glyph_string.
9031 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9032 (append_composite_glyph): Adjust for the change of struct it and
9034 (produce_composite_glyph): Likewise.
9036 * w32term.c (x_draw_composite_glyph_string_foreground):
9037 Adjust for the change of struct glyph_string.
9038 (x_draw_glyph_string): Likewise.
9040 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9041 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9043 * xdisp.c: Include font.h.
9044 (it_props): Delete the entry for Qauto_composed.
9045 (init_iterator): Initialize it->cmp_it.id to -1.
9046 (compute_stop_pos): Call composition_compute_stop_pos.
9047 (face_before_or_after_it_pos): Adjust for the change of struct it.
9048 (handle_auto_composed_prop): Delete it.
9049 (handle_composition_prop): Handle only static composition.
9050 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9051 from xassert. Initialize it->cmp_it.stop_pos.
9052 (push_it): Adjust for the change of struct it.
9054 (get_next_element): Delete next_element_from_composition.
9055 (CHAR_COMPOSED_P): New macro.
9056 (get_next_display_element): For automatic composition, get a face
9057 from the font in the glyph-string.
9058 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
9059 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
9060 (next_element_from_string): Check if the character at the current
9061 position is composed by CHAR_COMPOSED_P.
9062 (next_element_from_buffer): Likewise.
9063 (next_element_from_composition): Adjust for the change of struct it.
9065 (dump_glyph): Adjust for the change of struct glyph.
9066 (fill_composite_glyph_string): Adjust for the change of struct
9067 it and struct glyph. Don't handle automatic composition here.
9068 (fill_gstring_glyph_string): New function.
9069 (x_get_glyph_overhangs): Handle automatic composition.
9070 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
9071 (BUILD_GSTRING_GLYPH_STRING): New macro.
9072 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9073 automatic composition.
9074 (append_composite_glyph): Adjust for the change of struct it and
9076 (x_produce_glyphs): Adjust for the change of struct it.
9078 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9079 the change of struct glyph_string.
9080 (x_draw_glyph_string): Likewise.
9082 2008-08-29 Glenn Morris <rgm@gnu.org>
9084 * buffer.c (word-wrap): Doc fix.
9085 * xdisp.c (truncate-partial-width-windows): Doc fix.
9086 Increase default to 50.
9088 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
9090 * xdisp.c (update_tool_bar_unwind): New function.
9091 (update_tool_bar): Temporarily set selected frame before building
9094 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
9096 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9097 snprintf, respectively.
9098 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9100 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
9102 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9103 LDFLAGS to GNUstep CC invocation.
9105 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
9107 * indent.c (Fvertical_motion): Revert last change. Handle the
9108 general case where we are moving forward, and PT spans multiple
9111 * eval.c (find_handler_clause): Temporarily increase
9112 max-lisp-eval-depth while printing the backtrace buffer, to
9113 guarantee that help-mode code can run.
9115 2008-08-27 Eli Zaretskii <eliz@gnu.org>
9117 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9119 (IT_set_frame_parameters): Don't swap foreground and background
9120 colors if `(reverse . t)' is present in the frame properties.
9121 (internal_terminal_init): Call init_frame_faces only for the
9124 2008-08-27 Andreas Schwab <schwab@suse.de>
9126 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9128 2008-08-27 Andreas Schwab <schwab@suse.de>
9130 * search.c (search_buffer): Set char_base to zero only at the end.
9132 2008-08-27 Kenichi Handa <handa@m17n.org>
9134 * fileio.c (report_file_error): Fix handling of multibyte error string.
9136 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9138 * xterm.c (x_term_init): Temporarily hide the partially
9139 initialized terminal while calling vendor-specific-keysyms.
9141 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9143 * msdos.c (internal_terminal_init): Most initializations done only
9144 once, especially initial_screen_colors[] and termscript open.
9146 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9148 * eval.c (Fcondition_case): Doc fix.
9150 * widgetprv.h (EmacsFramePart): Change font member to the new font
9153 * widget.c: Include character.h and font.h for XSETFONT.
9154 (setup_frame_gcs): Compute X font id from font struct, just once.
9156 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9158 * term.c (get_named_tty): Fix last change.
9160 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9162 * indent.c (Fvertical_motion): If moving forward starting from a
9163 multi-line string, move the iterator to the last line of that string.
9165 2008-08-25 Eli Zaretskii <eliz@gnu.org>
9167 * frame.c (do_switch_frame): Mark previously displayed frame as
9168 obscured for FRAME_MSDOS_P frames as well.
9170 2008-08-24 Eli Zaretskii <eliz@gnu.org>
9172 * frame.c (make_terminal_frame): Initialize f->terminal,
9173 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9174 Set the top frame to newly created frame.
9175 (Fmake_terminal_frame): Reuse the_only_display_info.
9177 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9178 estimating available memory.
9180 2008-08-23 David Reitter <david.reitter@gmail.com>
9182 * nsterm.m (ns_draw_window_cursor): Don't call
9183 NSDisableScreenUpdates and NSEnableScreenUpdates on
9184 non-NS_IMPL_COCOA systems.
9186 2008-08-23 Andreas Schwab <schwab@suse.de>
9188 * process.c (procfs_system_process_attributes): Fix use of
9189 uninitialized variables.
9191 2008-08-23 Eli Zaretskii <eliz@gnu.org>
9193 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9195 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9196 calling tty-set-up-initial-frame-faces.
9198 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9199 Allow MSDOS frames along with X frames.
9201 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9202 addition to output_termcap.
9204 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9206 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9207 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9210 * process.c [!subprocesses]: Define QCname.
9211 (syms_of_process): Intern and staticpro it.
9213 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
9214 Adjust for changes in encoding/decoding routines.
9215 Use encode_coding_object and decode_coding_object instead of
9216 encode_coding and decode_coding.
9218 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
9220 * dosfns.c: Include frame.h before termhooks.h.
9221 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9222 variable termscript.
9224 * s/msdos.h (USER_FULL_NAME): Define.
9225 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9227 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9228 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9231 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9232 SELECTED_FRAME as additional (1st) argument.
9233 (tty_read_avail_input): Handle output_msdos_raw in
9234 addition to output_termcap.
9236 * msdos.c: Include frame.h before termhooks.h.
9237 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9238 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9239 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9240 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9241 (IT_set_terminal_modes, IT_reset_terminal_modes)
9242 (IT_set_frame_parameters): Use tty->termscript instead of a global
9243 variable termscript.
9244 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9245 global variable terminal_coding. Don't refer to
9246 Vnonascii_translation_table.
9247 (internal_terminal_init): Set Vwindow_system in current_kboard.
9248 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9249 Announce date and time of session start, if termscript is open.
9250 Don't zero out the_only_display_info (it is done in
9251 term.c:init_tty). Open termscript only of not already open.
9252 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
9253 here instead of dos_ttraw. Don't initialize display if this is an
9254 initial tty. Don't set FRAME_FONT.
9255 (Vwindow_system_version): Bump to 23.
9256 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9257 is available, set up mouse_position_hook.
9258 (dos_ttraw, IT_set_terminal_modes): If called with initial
9259 terminal, do nothing.
9260 (IT_set_frame_parameters): Handle the Qtty_type frame
9261 parameter by calling internal_terminal_init.
9262 (dos_set_window_size, show_mouse_face)
9263 (clear_mouse_face, IT_note_mode_line_highlight)
9264 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9265 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9266 (initialize_msdos_display): New function.
9267 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9268 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9269 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9270 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
9271 Accept additional argument: a pointer to a frame. Update all callers.
9272 (request_sigio, unrequest_sigio): Don't define, now defined on
9274 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9276 * term.c [MSDOS]: Include msdos.h.
9277 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9278 conditional to DOS_NT. Allow only one call to this function in a
9279 session. Don't allocate a new struct tty_display_info; instead,
9280 reuse the_only_display_info. Call get_tty_size to get screen
9281 dimensions. Call init_baud_rate to set bad_rate.
9282 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9283 (Fsuspend_tty) [MSDOS]: Don't close input and output.
9284 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
9285 (get_tty_terminal, get_named_tty, Ftty_type)
9286 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9288 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9289 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
9290 only when subprocesses are supported.
9292 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9294 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9297 * msdos.h: Remove definition of struct x_display_info and struct
9299 (FRAME_FONT): Use output_data.tty.
9300 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
9301 (struct x_display_info): Rename from display_info. Update all users in
9303 (struct x_output): Remove background_pixel and foreground_pixel.
9304 (the_only_display_info): Rename from the_only_x_display.
9305 (dos_ttraw): Update prototype.
9307 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9308 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9310 2008-08-23 Jason Rumney <jasonr@gnu.org>
9312 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9313 (fn_TIFFSetDirectory): New library function used.
9314 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9315 (tiff_load): Use :index to select among multiple images. Set count
9316 property when multiple images exist.
9317 (gif_format): Use :index, not :image.
9319 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
9321 * xdisp.c (try_scrolling): Check INT_MAX instead of
9322 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9325 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9327 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9329 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9331 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9332 GNUstep library location.
9334 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
9336 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9339 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9341 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9343 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9344 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9345 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9346 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9347 (EmacsApp-cursor_blink_handler): Remove declaration.
9348 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9349 match 01 Feb 2008 changes in xterm.c.
9350 (ns_read_socket): Add cast to avoid warning.
9351 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9354 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
9356 * xselect.c (x_get_foreign_selection): Return nil if desired
9357 selection could not be obtained, instead of signalling an error.
9359 2008-08-20 David Reitter <david.reitter@gmail.com>
9361 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9362 * nsterm.m: Remove ns-specific code for cursor blinking.
9363 (ns_draw_window_cursor): Clear cursor properly rather than
9364 redrawing the area. Respect width of bar cursors.
9365 These changes enable the use of generic blink-cursor-mode and
9366 generic cursor types in NS and support smooth cursor movements (do
9367 not blink off after command).
9368 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9371 2008-08-19 Kenichi Handa <handa@m17n.org>
9373 * font.c (Vfont_log_deferred): New variable.
9374 (font_add_log): Check Vfont_log_deferred.
9375 (font_deferred_log): New function.
9377 * font.h (font_deferred_log): Extern it.
9379 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9381 (face_for_char): Use deferred log.
9383 2008-08-18 Kenichi Handa <handa@m17n.org>
9385 * fontset.c (face_for_char): Add font log.
9387 * font.c (font_add_log): Add the font properties :script, :lang,
9388 and :otf in the log.
9390 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
9392 * xdisp.c: Remove dead code.
9393 (handle_invisible_prop, next_overlay_string): Defer call to
9395 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9397 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
9399 * xfaces.c (lookup_derived_face): Properly handle possible zero
9400 return value of get_lface_attributes.
9401 (merge_faces): Don't tell lookup_derived_face to signal an error
9402 if face is not found.
9404 * dired.c (Fdirectory_files): Doc fix.
9406 * process.c (make_process): Initialize kill_without_query struct
9409 2008-08-15 Eli Zaretskii <eliz@gnu.org>
9411 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9412 Alternative calculation of totphys for Visual Studio 6.
9414 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9416 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9417 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9419 (stat): Only root directory passed to GetDriveType. Allow RAM
9420 disk as well as local fixed disk when w32-get-true-file-attributes
9422 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9423 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9424 (w32_cached_id, w32_add_to_cache): New functions.
9425 (get_name_and_id): Look account names in the cache before calling
9427 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9428 New initialization flags.
9429 (globals_of_w32): Initialize them to zero.
9430 (w32_system_process_attributes): Use w32_cached_id and
9433 2008-08-14 Lawrence Mitchell <wence@gmx.li>
9435 * lread.c (Fread_char, Fread_char_exclusive): If no character
9436 event is read before timeout is reached, return nil, rather than
9437 converting to a number.
9439 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
9441 * fns.c (use_dialog_box): Doc fix.
9443 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9446 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
9448 * frame.c (Qns_parse_geometry): New var.
9449 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9451 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
9453 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9454 space character in calculating tabs.
9456 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9458 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9460 2008-08-10 Glenn Morris <rgm@gnu.org>
9462 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9463 silence gcc "limited range of data type" warnings in some
9464 make_fixnum_or_float calls.
9466 2008-08-09 Eli Zaretskii <eliz@gnu.org>
9468 * w32.c (w32_system_process_attributes): If the process does not
9471 * w32.c: Include thelp32.h, psapi.h and coding.h.
9472 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9474 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9475 (Process32Next_Proc): New typedefs.
9476 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9477 (g_b_init_process32_next, g_b_init_open_thread_token)
9478 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9479 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9480 (g_b_init_get_process_working_set_size)
9481 (g_b_init_global_memory_status_ex): New static variables.
9482 (globals_of_w32): Initialize them.
9483 (create_toolhelp32_snapshot, process32_first, process32_next)
9484 (open_thread_token, impersonate_self, revert_to_self)
9485 (get_process_memory_info, get_process_working_set_size)
9486 (global_memory_status, global_memory_status_ex): New wrapper
9488 (w32_list_system_processes, w32_system_process_attributes)
9489 (enable_privilege, restore_privilege, ltime, process_times):
9491 (convert_time_raw): New function.
9492 (convert_time): Remove conversion of FILETIME into time in 100
9493 nsec units, call convert_time_raw instead.
9495 * process.h (w32_list_system_processes, w32_system_process_attributes):
9497 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9498 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9499 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9500 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9502 * process.c (Fsystem_process_attributes): Doc fix.
9504 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
9506 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9507 a continued multi-char glyph; if so, advance to the actual glyph.
9509 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9511 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9513 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9515 * config.in: Regenerate.
9517 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
9519 * xdisp.c (redisplay_window): Revert last change.
9520 (try_window): Check bottom scroll margin too.
9522 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9524 * config.in: Regenerate.
9526 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9527 -list-load-path-shadows'.
9528 (nsgui.h): Reduce number of things depending on it.
9530 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
9532 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9533 instead of window-end which does the wrong thing at eob.
9534 (try_cursor_movement): Minor optimization.
9535 (redisplay_window): If scroll margin is defined, don't assume
9536 window doesn't need scrolling.
9538 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9540 * config.in: Regenerate.
9542 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9543 (mostlyclean): Don't delete *.d under NS.
9545 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9547 2008-08-06 Kenichi Handa <handa@m17n.org>
9549 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9551 2008-08-06 Andreas Schwab <schwab@suse.de>
9553 * config.in: Regenerate.
9555 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
9557 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9558 forcing a window start.
9560 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9561 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9563 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9565 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9568 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
9570 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9571 <scroll-down-aggressively, before-change-functions>:
9572 <after-change-functions>: Reflow docstrings.
9574 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9575 Ken Raeburn <raeburn@gnu.org>
9577 Dock menu customization, based on a patch by Ken Raeburn, plus some
9579 * nsmenu.m (dockMenu): New variable.
9580 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9582 * nsterm.h (dockMenu): Declare.
9584 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9585 (ns_term_init): Initialize dockMenu.
9586 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9587 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9590 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9592 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9594 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9596 * config.in: Regenerate.
9598 2008-08-04 Seiji Zenitani <zenitani@mac.com>
9600 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9602 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9604 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9606 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9608 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9610 * keyboard.h: Comment an #endif.
9612 * lisp.h (have_menus_p): Adjust comment.
9614 * menu.c (find_and_return_menu_selection): Fix comparison with
9617 * nsmenu.m (popup_activated_flag): New variable.
9618 (popup_activated): New function.
9619 (menu-or-popup-active-p): New exported lisp definition.
9620 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9622 (ns_popup_dialog): Set popup_activated_flag.
9624 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9625 version for GNUstep (handled by conditional typedef in nsterm.m).
9626 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9629 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9631 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9633 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9635 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9636 shortcircuit if popup_activated like GTK and X toolkit.
9638 * m/inter386.h: Change DARWIN to DARWIN_OS.
9640 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9641 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9642 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9643 comment on NO_SOCK_SIGIO.
9645 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
9647 * nsterm.m (windowDidResize): Remove stopModal call.
9649 2008-08-03 Andreas Schwab <schwab@suse.de>
9651 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9652 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9654 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
9656 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9657 Don't use uninitialized pointer variable when using getrlimit.
9659 2008-08-02 Jason Rumney <jasonr@gnu.org>
9661 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9663 2008-08-02 Eli Zaretskii <eliz@gnu.org>
9665 * alloc.c (NSTATICS): Bump to 0x640.
9667 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9669 * lisp.h: Add prototype for directory_files_internal.
9671 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9673 (syms_of_process): Defsubr them. Add initializations for various
9674 Q* symbols used in procfs_system_process_attributes.
9675 (procfs_list_system_processes, procfs_system_process_attributes)
9676 [HAVE_PROCFS]: New functions.
9677 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9678 (procfs_get_total_memory): New functions.
9680 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9682 * xfaces.c (Fx_load_color_file): Fix previous change;
9683 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9685 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
9687 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9689 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9691 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9693 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
9695 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9697 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9698 define NSApplicationDelegateReplySuccess.
9699 (EmacsView -converstationIdentifier): Use long instead of
9700 NSInteger for GNUstep, since it doesn't have NSInteger.
9702 * xmenu.c: Revert last change.
9704 * keyboard.h: Fix last change.
9706 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9708 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9711 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9713 Warning clearing and clean-up in NS port.
9714 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9716 * nsgui.h (FACE_DEFAULT): Remove, unused.
9717 (XGCValues): Change colors to unsigned long.
9718 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9720 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9721 (ns_list_fonts): Remove, unused.
9722 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9723 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9724 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9725 (nsfont_draw): Compare face colors to 0, not nil.
9726 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9727 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9728 (-addSubmenuWithTitle:): Use NSMenuItem class.
9729 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9730 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9731 (ns_clip_to_row): Make gc arg a BOOL.
9732 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9733 ns_clip_to_row() call.
9734 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9735 used). Cast FRAME_FONT assignments.
9736 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9737 (ns_string_to_lispmod): Change arg to const char.
9738 (ns_term_init): Use NSMenuItem class.
9739 (EmacsApp -openFile:): Move to different section of file.
9740 (EmacsApp -application:openFiles:): Don't return a value, call
9741 -replyToOpenOrPrint:.
9742 (EmacsView -keyDown:): Fix up cast.
9743 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9744 (EmacsView -menuDown:): Cast tag in call to
9745 find_and_call_menu_selection().
9746 (ns_list_fonts): Remove, unused.
9747 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9748 (ns_fontname_to_xlfd): Make static.
9749 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9750 Remove prototypes (now in keyboard.h).
9751 (next_menubar_widget_id): Remove, unused.
9752 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9753 Remove prototypes (now in keyboard.h).
9754 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9756 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9758 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9759 (floatfns.o): Depend on syssignal.h.
9760 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9762 * systty.h: Fix previous change that removed BSD_TERMIOS.
9763 Add comments to #ifdefs.
9765 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9767 * w32fns.c (w32-load-color-file): Remove.
9768 (x-open-connection): Use renamed Fx_load_color_file.
9769 * xfaces.c (x-load-color-file): Add.
9770 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9772 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9774 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
9776 * dbusbind.c (Fdbus_call_method_asynchronously)
9777 (Fdbus_method_error_internal): New defuns.
9778 (xd_read_message): Handle also reply messages.
9779 (Vdbus_registered_functions_table): Extend docstring.
9781 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
9783 * keyboard.c (gobble_input): Fix previous change.
9785 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9816 * m/vax.h: Remove VMS support.
9822 * ioctl.h: Remove file.
9824 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9826 * s/ms-w32.h (MULTI_KBOARD): Remove.
9841 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9842 * config.in: Regenerate.
9844 2008-07-30 Jason Rumney <jasonr@gnu.org>
9846 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9848 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9849 (w32font_open_internal): Get unicode version of textmetrics.
9850 Don't enable or disable glyph indices here.
9851 (w32font_open): Disable use of glyph indices.
9853 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9855 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
9857 * minibuf.c (Vread_buffer_function): Doc fix.
9859 2008-07-30 John Paul Wallington <jpw@pobox.com>
9861 * minibuf.c (read_buffer_completion_ignore_case): New var.
9862 (Fread_buffer): Use it.
9864 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9866 * systty.h (sensemode): Remove empty #if. Remove reference to
9867 BSD_TERMIOS, unused.
9869 * sysdep.c: Remove reference to DGUX.
9870 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9872 * config.in: Regenerate.
9874 2008-07-30 Jason Rumney <jasonr@gnu.org>
9876 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9878 2008-07-29 Jason Rumney <jasonr@gnu.org>
9880 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9882 (uniscribe_encode_char): Always use uniscribe.
9883 Avoid using context if cache is populated.
9885 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9887 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9890 * gtkutil.c (menu_nav_ended): Remove.
9891 (create_menus): Remove signal connect for menu_nav_ended.
9893 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
9895 * xdisp.c (redisplay_window): Check return value of
9896 compute_window_start_on_continuation_line before forcing a window
9899 2008-07-28 Jason Rumney <jasonr@gnu.org>
9901 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9903 * w32term.c (w32_enable_unicode_output, cleartype_active):
9904 Remove obsolete display options.
9905 (x_draw_glyph_string_background): Don't use old cleartype_active
9907 (w32_initialize): Remove cleartype_active initialization.
9908 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9910 2008-07-28 Andreas Schwab <schwab@suse.de>
9912 * lisp.h (init_weak_hash_tables, syms_of_font)
9913 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9914 (remove_hash_entry): Don't declare.
9915 * eval.c (maybe_call_debugger): Make static and move before use.
9916 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9917 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9918 * xterm.h (x_set_frame_alpha): Declare.
9920 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9922 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9923 (create_menus): Connect selection-done to menu_nav_ended.
9925 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9927 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9928 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9929 parameter with read of 'alpha' one.
9930 (Qns_frame_parameter): Remove.
9931 * nsselect.m (selection-coding-system)
9932 (next-selection-coding-system, Vselection_coding_system)
9933 (Vnext_selection_coding_system): Drop.
9935 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9937 * nsfns.m (do-applescript, do_applescript): Rename to
9938 ns-do-applescript, ns_do_applescript, and move within file.
9940 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9942 Remove support for Mac Carbon.
9950 * mac.c: Remove file.
9981 * Makefile.in: Remove code for Carbon.
9983 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9985 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9987 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9989 * macterm.h (kCGBitmapByteOrder32Host): New define for
9992 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9993 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9995 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9996 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9998 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10000 * w32inevt.c: Include dispextern.h.
10002 2008-07-26 Andreas Schwab <schwab@suse.de>
10004 * print.c (print_object): Fix off-by-one in last change.
10006 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
10008 * term.c (syms_of_term): Don't initialize default_orig_pair,
10009 default_set_foreground and default_set_background on Windows.
10011 2008-07-25 Jason Rumney <jasonr@gnu.org>
10013 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10014 ScriptItemize. Clean up return value checking. Remove unused
10016 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10019 * w32font.c (w32font_has_char): Handle the case where we can't
10020 determine the script for a character.
10022 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
10024 * term.c (syms_of_term): Initialize default_orig_pair,
10025 default_set_foreground, and default_set_background.
10027 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10029 (getloadavg): Callers changed.
10031 * image.c (svg_load_image): Fix last change.
10032 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10033 image size is valid. Use g_object_unref instead of deprecated
10034 rsvg_handle_free to free rsvg handle.
10035 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10037 2008-07-25 Jason Rumney <jasonr@gnu.org>
10039 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10040 surrogates before looking up glyph index.
10041 (w32font_text_extents): Encode as surrogates if falling back to
10042 functions that need UTF-16 wide chars.
10044 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10045 BMP as surrogates before looking up glyph index.
10047 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
10049 * image.c (svg_load_image): Check for failure in return value of
10050 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10052 2008-07-25 Jason Rumney <jasonr@gnu.org>
10054 * w32font.c (Fx_select_font): Reverse sense of second arg.
10056 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10058 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10059 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10061 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10062 (PURESIZE): Use it.
10064 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10066 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10067 * m/alpha.h (TEXT_END):
10068 * m/ibmrs6000.h (TEXT_END):
10069 * m/macppc.h (TEXT_END):
10070 * s/darwin.h (TEXT_END):
10071 * s/msdos.h (TEXT_END): Remove, unused.
10072 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10073 * s/cygwin.h: Remove comment.
10075 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10076 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10077 * m/intel386.h (DOT_GLOBAL_START):
10078 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10079 (USG): Remove, file not used on USG platforms.
10081 * Makefile.in (HAVE_X11): Remove empty #else.
10083 2008-07-24 Andreas Schwab <schwab@suse.de>
10085 * fileio.c (Finsert_file_contents): Properly adjust undo list
10086 after format conversion.
10088 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10090 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10091 (menu_nav_ended): Remove.
10092 (create_menus): Remove signal connect for menu_nav_ended.
10093 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10095 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10097 2008-07-23 Jason Rumney <jasonr@gnu.org>
10099 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10101 (w32font_open): Set font type to gdi.
10103 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10105 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10107 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10108 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10110 * unexec.c (ADDR_CORRECT): Define unconditionally.
10112 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10114 * unexec.c: Remove code depending on !COFF and USG, the file is
10115 not used for such systems.
10117 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10118 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10119 (LD_SWITCH_SYSTEM_1): Remove, update users.
10121 * s/darwin.h (DATA_END):
10122 * m/intel386.h (DATA_END):
10123 * m/ibmrs6000.h (DATA_END):
10124 * m/alpha.h (DATA_END): Remove, unused.
10126 * config.in: Regenerate.
10127 * s/ms-w32.h (subprocesses): Define unconditionally.
10128 * s/template.h (subprocesses): Update comment.
10129 * s/vms.h (subprocesses):
10130 * s/usg5-4.h (subprocesses):
10131 * s/hpux10-20.h (subprocesses):
10132 * s/gnu-linux.h (subprocesses):
10133 * s/cygwin.h (subprocesses):
10134 * s/bsd-common.h (subprocesses):
10135 * s/aix4-2.h (subprocesses):
10136 * s/darwin.h (subprocesses): Do not define, defined by default now.
10138 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10139 Remove all references.
10140 (temacs): Add GNUstep specific ld flags.
10142 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10143 similarly to what X does.
10145 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10147 * nsfns.m (x-list-fonts): Remove.
10148 (syms_of_nsfns): Drop the x-list-fonts declaration.
10149 * nsterm.m: Get rid of remaining "//" comments.
10151 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
10153 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10155 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10156 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10157 (Fns_own_selection_internal, Fx_disown_selection_internal)
10158 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10160 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10161 ... */' style of docstrings. Doc fixes.
10163 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10165 * terminfo.c (UP, BC, PC): Undo previous change.
10167 * nsfns.m: Rename ns prefixed functions/variables to the
10168 corresponding x versions. Update references.
10170 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10172 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10174 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10176 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10177 Remove forwarding functions.
10178 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10180 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10182 (ns_frame_parm_handlers): Use the new names.
10183 (syms_of_nsfns): Move to the end of file.
10185 * nsterm.m (syms_of_nsterm): Move to the end of file.
10187 * dispnew.c (init_display): Remove code for X10.
10189 2008-07-22 Jason Rumney <jasonr@gnu.org>
10191 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10194 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10196 * nsterm.m (syms_of_nsterm): Remove debugging println.
10198 2008-07-22 David Reitter <david.reitter@gmail.com>
10200 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10201 Carbon implementation of the same functionality: execute arbitrary
10204 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10206 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10207 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10208 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10209 (Fx_display_mm_height, Fx_display_mm_width)
10210 (Fx_display_backing_store, Fx_display_visual_class)
10211 (Fx_display_save_under, Fx_open_connection)
10212 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10213 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10214 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10215 (Fx_display_pixel_width, Fx_display_pixel_height)
10216 (Fx_display_usable_bounds, Fx_display_planes)
10217 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10218 ... */' style of docstrings.
10220 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10222 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10225 * m/iris4d.h (mips): Do not define.
10226 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10228 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10234 * nsterm.m: Rename ns prefixed functions/variables to the
10235 corresponding x versions. Update references.
10237 * m/ibms390x.h (NO_REMAP): Do not undefine.
10239 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10241 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
10243 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10244 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10245 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10246 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10247 (Fns_display_mm_height, Fns_display_mm_width)
10248 (Fns_display_backing_store, Fns_display_visual_class)
10249 (Fns_display_save_under, Fns_open_connection)
10250 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10251 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10252 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10253 (Fns_display_pixel_width, Fns_display_pixel_height)
10254 (Fns_display_usable_bounds, Fx_display_planes)
10255 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10257 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10259 * print.c (print_object): Check print_depth before searching for
10262 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
10264 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10267 2008-07-21 Kenichi Handa <handa@m17n.org>
10269 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10271 2008-07-20 Andreas Schwab <schwab@suse.de>
10273 * syntax.c (find_start_pos, find_start_value)
10274 (find_start_value_byte, find_start_begv, find_defun_start)
10275 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10277 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10279 * s/sol2-3.h: Insert contents of s/sol2.h.
10280 (LD_SWITCH_SYSTEM): Remove redundant definition.
10281 * s/sol2.h: Remove, unused.
10283 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10285 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10287 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10289 * Makefile.in (ns_appdir): Fix typo in find command.
10291 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10293 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10295 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10296 added not supported anymore.
10298 * s/usg5-4-2.h (LIBS_SYSTEM):
10299 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10301 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10302 * s/lynxos.h (GETPGRP_NO_ARG):
10303 * s/hpux10-20.h (NO_SIOCTL_H):
10304 * s/gnu.h (GETPGRP_NO_ARG):
10305 * s/gnu-linux.h (NO_SIOCTL_H):
10306 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10307 * s/cygwin.h (GETPGRP_NO_ARG):
10308 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10309 (C_DEBUG_SWITCH): Remove duplicate definition.
10311 * m/ibms390.h: Remove boilerplate comments.
10313 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10315 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10316 (wait_reading_process_output): Remove code for SunOS, platform not
10317 supported anymore. Use SOLARIS2 instead of sun.
10319 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10321 * font.c (font_open_by_name): Under NS, default lface height to zero.
10322 (font_open_for_lface): Under NS, set size based on frame fontsize.
10323 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10324 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10326 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10328 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10329 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10330 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10332 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10333 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10334 * Makefile.in (clean): Clear out build destination dir.
10336 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10338 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10340 * lisp.h: Remove declaration of hash_remove.
10341 * nsgui.h: Remove redefinitions of hash_remove.
10342 * fns.c (hash_remove): Rename to hash_remove_from_table.
10344 2008-07-19 Seiji Zenitani <zenitani@mac.com>
10346 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10347 strdup() the family UTF8String before modifying it.
10349 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10351 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10352 NS_FACE_BACKGROUND with 0 instead of nil.
10353 * nsfont.m (nsfont_draw): Same.
10355 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
10357 * nsfns.m (ns_set_background_color): Fix crash.
10359 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
10361 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10363 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10365 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10367 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10369 * gtkutil.c: Include <config.h> instead of "config.h".
10371 * lisp.h (Foverlay_buffer): Add EXFUN.
10373 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10374 child process to complete child_setup. Undo 2005-09-21 change.
10376 * s/darwin.h: Mention setsid after vfork.
10378 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10380 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10381 Depend on macgui.h.
10383 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10384 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10386 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10388 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10390 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10391 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10392 Remove enumerators.
10394 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10395 Check if FACE_FROM_ID returns NULL.
10397 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10399 * w32inevt.c (change_frame_size): Remove extern declaration.
10400 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10403 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10405 * getloadavg.c: Revert last change (2008-07-15).
10407 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10409 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
10410 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
10413 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10416 * s/sol2-4.h: Reorganize conditionals.
10418 * ecrt0.c: Remove code depending on m68000, not used anymore.
10420 * fns.c (hash_remove): Make static.
10421 * lisp.h (hash_remove): Don't prototype.
10425 * m/macppc.h: Remove boilerplate comments.
10427 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10428 Solaris, which does not need them.
10430 * m/vax.h: Remove comments about unsupported systems.
10432 * s/darwin.h: Reorganize ifdefs.
10434 2008-07-17 Andreas Schwab <schwab@suse.de>
10436 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10438 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10440 Use SDATA. Follow coding convention of placing operators at
10441 beginning of next line rather than end of previous line, and placing
10442 spaces around infix operators.
10444 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10445 in case it was defined already.
10446 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10447 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10449 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10451 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10452 (ns_defined_color, ns_color_to_lisp): Declare.
10453 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10454 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10455 it's accepted even with USE_LISP_UNION_TYPE.
10456 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10457 (update_frame_tool_bar): Remove apparently obsolete tests for
10458 non-integerness of f->tool_bar_lines.
10459 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10460 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10461 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10462 (nsfont_open): Don't confuse NULL for Qnil.
10463 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10464 * menu.h (find_and_call_menu_selection):
10465 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10466 (find_and_return_menu_selection): Always return something.
10467 * frame.h: Include dispextern.h for Display_Info.
10468 (display_x_get_resource): Declare.
10470 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10472 * syntax.c: Remove stdio.h include accidentally introduced in
10474 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10476 * keyboard.c (handle_async_input, input_available_signal): Remove
10477 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10479 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10481 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10482 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10483 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10486 * keymap.c: Remove all NS-specific code.
10487 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10488 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10489 where_is_preferred_modifier, return a different value depending on how
10490 preferred is the binding.
10491 (where_is_internal): Adjust accordingly.
10492 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10493 Adjust to new preferred_sequence_p.
10494 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10495 * keyboard.c (parse_solitary_modifier): Not static any more.
10496 * keyboard.h (parse_solitary_modifier): Declare.
10498 2008-07-16 Andreas Schwab <schwab@suse.de>
10500 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10503 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
10505 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10506 that we don't move off the line.
10508 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10510 * keyboard.c (Qsuper): Remove.
10511 (parse_menu_item): Don't call where_is_internal specially for NS.
10513 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10515 * s/gnu-linux.h: Remove boilerplate comments.
10517 * m/alpha.h (__ELF__): Consolidate conditions.
10519 * m/m68k.h (linux): Use GNU_LINUX instead.
10520 Remove boilerplate comments.
10522 * m/intel386.h: Undo refactoring from previous change.
10523 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10524 too, remove dead code.
10525 (linux): Use GNU_LINUX instead.
10527 2008-07-16 Jason Rumney <jasonr@gnu.org>
10529 * w32gui.h: Repeat 26 June changes lost by last change.
10531 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10533 * systty.h: Remove code for Aix on 386, unsupported platform.
10535 * s/ms-w32.h: Remove boilerplate comments.
10536 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10538 * s/gnu-linux.h (TERM): Remove support.
10539 (HAVE_SYSVIPC): Remove, unused.
10540 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10543 * process.c: Remove support for IRIS, unused.
10544 Remove support for TERM, not relevant anymore.
10546 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10547 used with the definition.
10549 * s/aix4-2.h (static): Do not undef.
10551 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10553 (HAVE_SYSVIPC): Remove, unused.
10555 * m/hp800.h (CANNOT_DUMP): Do not undef.
10557 * m/alpha.h: Fix comment.
10559 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10560 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10561 used by this configuration.
10562 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10563 * unexec.c: Remove code depending on HPUX and
10564 USG_SHARED_LIBRARIES, not used with this file. Remove code
10565 depending on IRIS, unused. Remove if 0-ed code.
10567 * s/template.h: Remove comments about static.
10569 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10570 Remove if 0-ed code.
10571 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10572 were the same as the default.
10573 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10574 Remove boilerplate comments.
10575 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10576 (HAVE_SYSVIPC): Remove, unused.
10577 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10579 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10580 Remove boilerplate comments.
10581 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10582 Remove boilerplate comments.
10583 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10584 Remove boilerplate comments.
10585 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10587 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10588 USG systems which do not use DATA_SEG_BITS.
10589 Refactor code. Remove boilerplate comments.
10598 * s/msdos.h: Remove boilerplate comments.
10600 * m/iris4d.h: Remove boilerplate comments and code for systems that
10601 do not use this file.
10602 (IRIS_4D): Remove, unused.
10604 * m/mips.h: Remove boilerplate comments and code for systems that
10605 do not use this file.
10606 (SIGN_EXTEND_CHAR):
10607 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10608 * unexmips.c: Remove file, unused.
10610 * editfns.c (Fuser_full_name): Replace the only use of
10611 USER_FULL_NAME with its value.
10612 * config.in: Regenerate.
10614 2008-07-16 David Reitter <david.reitter@gmail.com>
10616 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10617 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10619 2008-07-16 Glenn Morris <rgm@gnu.org>
10621 * emacs.c (system-type): Doc fix.
10623 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10625 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10626 If the cache doesn't work, let's fix it, rather than work around it.
10628 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10630 * Makefile.in: Correct additions for nsfont.o in last commit.
10631 * nsfont.m: New file (forgot last commit).
10633 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10635 * callproc.c (set_initial_environment): Initialize
10636 Vprocess_environment under CANNOT_DUMP (fixes crash when
10637 batch-compiling for bootstrap).
10639 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10640 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10642 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10643 fix crash due to different init order.
10645 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10647 Changes and additions for NeXTstep windowing system (Cocoa and
10651 * config.in: Support defines and build commands for NS port.
10652 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10653 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10654 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10656 (struct face): Add synth_ital field.
10657 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10658 (init_display): Initialize Vinitial_window_system to "ns" when so
10660 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10661 (display_arg): Use under NS.
10662 (main): Under NS, allocate autorelease pool and handle command line
10663 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10664 (standard_args): Add NS-specific args.
10665 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10666 * font.c (DEFAULT_ENCODING): New variable.
10667 (font_find_for_lface): Use it.
10668 (syms_of_font): Load syms_of_nsfont under NS.
10669 * font.h: Declare nsfont_driver when compiled under NS.
10670 * fontset.c: When compiling under NS, include nsterm.h.
10671 (fontset_from_font): Autoconstruct fontset under NS.
10672 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10673 symbol, document and use it.
10674 (do_switch_frame): When for_deletion under Cocoa, add
10675 Fraise_frame(Qnil).
10676 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10677 (x_get_arg): Allow "yes" and "no" as boolean values.
10678 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10679 Qright under Cocoa.
10680 (focus-follows-mouse): Default to 0 under NS.
10681 * frame.h (enum output_method): Add output_ns.
10682 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10683 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10684 (FRAME_WINDOW_P): NS-specific definition.
10685 * fringe.c (max_used_fringe_bitmap): Make public.
10686 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10687 (getloadavg): Use NeXT code under descendant OS's.
10688 * image.c (includes and header section, x_create_bitmap_from_data)
10689 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10690 (image_background_transparent, x_clear_image_1)
10691 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10692 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10693 (x_to_xcolors, x_from_xcolors, x_disable_image)
10694 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10695 other GUIs, including XPM support using code originally written for
10697 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10699 (image_ascent): Use font metrics macros instead of direct struct field
10701 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10702 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10703 Also, handle NS as GTK for menu bar purposes.
10704 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10705 toolkit where they differ.
10706 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10707 use cachelist, still needed under NS.
10708 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10709 (struct widget_value): Define it here for menu.c.
10710 * keymap.c (includes): Include modifier internals.
10711 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10713 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10714 support for preferring sequences using certain modifiers, specified by
10715 the FIRSTONLY argument.
10716 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10717 under NS GNUstep implementation.
10718 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10719 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10720 * menu.c: Include nsterm.h under NS.
10721 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10722 (free_menubar_widget_tree_value, update_submenu_strings)
10723 (find_and_call_menu_selection): Treat NS as X and NT.
10724 (find_and_return_menu_selection): New function, used for popup menus.
10731 * nsterm.m: New files.
10732 * process.c (wait_reading_process_output): Under NS, call ns_select()
10733 instead of plain select().
10734 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10735 beginning of buffer.
10736 * sysselect.h (init_process): Rename when compiling under Cocoa to
10737 avoid name conflict.
10738 * termhooks.h (display_info): Add ns_display_info to union.
10739 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10740 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10742 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10743 unexec() signature. (Note, this will dump, but the resulting file
10744 crashes; unexosx is used instead; keeping around for reference and
10745 possible aid in getting dump working under GNUstep.)
10746 * w32gui.h (button_type, widget_value): Remove definitions (now in
10748 * window.c: Include nsterm.h when compiling under NS.
10749 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10750 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10751 other GUI windowing systems.
10752 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10754 (x_consider_frame_title): Under NS, set icon type and frame
10755 modified-state indicator; use ns_set_name_as_filename() when using
10757 (update_window_cursor): Make public when compiling under NS.
10758 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10759 (hourglass_atimer, Vhourglass_delay
10760 * xfaces.c (header section, init_frame_faces, clear_font_table)
10761 (defined_color, unload_color, x_face_list_fonts)
10762 (prepare_face_for_display): Add NS support parallel to other GUIs.
10763 Emulate GCs like other non-X GUIs.
10764 (split_font_name): Don't lowercase font name under NS.
10765 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10767 * s/darwin.h: Add support for compilation under NS.
10769 2008-07-15 Jason Rumney <jasonr@gnu.org>
10771 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10772 (w32_show_hourglass): Rename from show_hourglass.
10773 (w32_hide_hourglass): Rename from hide_hourglass.
10774 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10775 (Vhourglass_delay): Declare extern.
10776 (hourglass_started): Remove.
10778 * xdisp.c (Vhourglass_delay): Remove static.
10779 (hourglass_started, start_hourglass, cancel_hourglass):
10780 Don't include these versions on WINDOWSNT.
10782 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10784 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10785 variables (formerly in xfns.c).
10786 (show_hourglass, hide_hourglass): New prototypes (same).
10787 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10788 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10790 (syms_of_xdisp): Declare/initialize display-hourglass,
10791 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10792 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10793 formerly in xfns.c.
10794 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10795 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10796 (start_hourglass, cancel_hourglass): Remove.
10797 (show_hourglass, hide_hourglass): Remove prototypes and static
10799 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10800 hourglass_atimer, hourglass_shown_p declaration/initialization.
10801 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10802 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10803 (start_hourglass, cancel_hourglass): Remove.
10804 (show_hourglass, hide_hourglass): Remove prototypes and static
10806 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10807 hourglass_atimer, hourglass_shown_p declaration/initialization.
10808 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10809 (DEFAULT_HOURGLASS_DELAY): Remove.
10810 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10811 hourglass_shown_p declaration/initialization.
10813 2008-07-14 Jason Rumney <jasonr@gnu.org>
10815 * w32fns.c (w32_get_arg): Remove wrapper function.
10816 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10818 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10820 2008-07-14 Kenichi Handa <handa@m17n.org>
10822 * xfont.c (xfont_open): Add workaround for X's bug.
10824 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10826 * fontset.c: Include <stdio.h> unconditionally.
10828 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
10830 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10833 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10835 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10838 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10840 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10841 (SPECIAL_EMACS_INT):
10842 * m/ia64.h (SPECIAL_EMACS_INT):
10843 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10844 * s/gnu.h (NLIST_STRUCT):
10845 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10846 * s/gnu-linux.h (LINUX):
10847 * s/msdos.h (HAVE_FACES):
10848 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10851 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10854 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10856 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10857 always defined as int.
10859 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10860 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10861 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10862 * s/freebsd.h (HAVE_WAIT_HEADER):
10863 * s/bsd-common.h (HAVE_UNION_WAIT):
10864 * s/aix4-2.h (HAVE_WAIT_HEADER):
10865 * m/mips.h (HAVE_UNION_WAIT):
10866 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10867 (COFF, static): Do not define, they are undefined later in the file.
10869 * process.c (update_status): Don't use a union.
10871 (sigchld_handler): Use int instead of WAITTYPE.
10873 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
10875 * indent.c (Fvertical_motion): Restore hscroll before moving to
10878 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10880 * lisp.h: Remove left over code.
10882 2008-07-11 Andreas Schwab <schwab@suse.de>
10884 * lisp.h: Fix logic in last change.
10886 * menu.h: New file.
10887 * menu.c: Include it.
10888 * xmenu.c: Likewise.
10889 * Makefile.in: Update dependencies.
10891 2008-07-11 Kenichi Handa <handa@m17n.org>
10893 * fontset.c (fontset_from_font): Cancel the previous change.
10895 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10900 * alloc.c: Replace all references of NO_UNION_TYPE with
10901 USE_LISP_UNION_TYPE.
10903 * m/xtensa.h (NO_UNION_TYPE):
10904 * m/vax.h (NO_UNION_TYPE):
10905 * m/template.h (NO_UNION_TYPE):
10906 * m/sparc.h (NO_UNION_TYPE):
10907 * m/mips.h (NO_UNION_TYPE):
10908 * m/macppc.h (NO_UNION_TYPE):
10909 * m/m68k.h (NO_UNION_TYPE):
10910 * m/iris4d.h (NO_UNION_TYPE):
10911 * m/intel386.h (NO_UNION_TYPE):
10912 * m/ibms390x.h (NO_UNION_TYPE):
10913 * m/ibms390.h (NO_UNION_TYPE):
10914 * m/ibmrs6000.h (NO_UNION_TYPE):
10915 * m/ia64.h (NO_UNION_TYPE):
10916 * m/hp800.h (NO_UNION_TYPE):
10917 * m/arm.h (NO_UNION_TYPE):
10918 * m/amdx86-64.h (NO_UNION_TYPE):
10919 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10920 defining it the same.
10922 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
10924 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10926 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10943 * s/vms.h: Remove references to unused variables.
10945 2008-07-10 Andreas Schwab <schwab@suse.de>
10947 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10948 pattern before matching the generic family.
10950 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10957 * s/darwin.h: Remove dead code.
10970 * m/amdx86-64.h: Remove dead code and references to unused
10971 and compiler defined symbols.
10974 * unexelf.c: Remove references to desupported systems.
10976 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10978 * m/powermac.h: Remove boilerplate comments.
10979 (NO_REMAP): Remove unused definition.
10981 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10984 2008-07-10 Kenichi Handa <handa@m17n.org>
10986 * xfont.c (xfont_open): Log the reason of failure.
10988 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10990 * fontset.c (fontset_get_font_group):
10991 * font.c (font_check_otf): Specify argument types.
10993 2008-07-09 Kenichi Handa <handa@m17n.org>
10995 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10996 non-ASCII char is found.
10998 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10999 (reorder_font_vector): Change the arg preferred_family to font.
11000 Prefer the spec matching with font.
11001 (fontset_get_font_group): New function.
11002 (fontset_find_font): Change the format of an element of a realized
11003 fontset. Use fontset_get_font_group.
11004 (fontset_font): Try the current fontset, the default fontset, the
11005 fallbacks of the current fontset, and the fallbacks of the default
11006 fontset in this order.
11007 (face_for_char): Delete the shortcut to use the current font.
11008 (fontset_from_font): Don't set fonts for Latin in the fontset.
11010 * font.h (font_make_object, font_match_p): Adjust prototypes.
11012 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11014 * font.c (font_make_object): New arg entity and pixelsize.
11015 (font_check_otf_features, font_check_otf): New functions.
11016 (font_match_p): Check :lang, :script, and :otf properties.
11018 * xfont.c (xfont_open): Adjust it for the change of
11020 (xfont_text_extents): Fix initial setting of metrics.
11022 * ftfont.c (struct ftfont_info): New member index, delete member
11023 fc_charset_idx. Make the member order compatible with struct
11025 (fc_charset_table): Change charset names to registry names.
11026 (ftfont_pattern_entity): Delete the args registry and
11027 fc_charset_idx. Change the value of :font-entity property
11028 to (FONTNAME . INDEX). Always set :registry property to
11030 (struct ftfont_cache_data): New struct.
11031 (ftfont_lookup_cache): New arg for_face.
11032 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11033 (ftfont_driver): Set the member otf_capability.
11034 (ftfont_get_charset): Adjust it for the change of
11036 (OTF_TAG_SYM): New macro.
11037 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11038 for the change of fc_charset_table.
11039 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11040 ftfont_pattern_entity. Add FC_INDEX to objset.
11041 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11042 and ftfont_pattern_entity.
11043 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11044 font_make_object, struct ftfont_info.
11045 (ftfont_has_char): Use ftfont_get_fc_charset.
11046 (ftfont_otf_features, ftfont_otf_capability): New functions.
11047 (ftfont_shape): Use ftfont_get_otf.
11048 (ftfont_text_extents): Fix initial setting of metrics.
11050 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11051 member order compatible with struct ftfont_info.
11052 (xftfont_open): Add FC_CHARSET to the pattern. Set
11053 xftfont_info->ft_size. Don't unlock the face. Check BDF
11054 properties if appropriate.
11055 (xftfont_close): Unlock the face.
11056 (xftfont_anchor_point, xftfont_shape): Deleted.
11057 (syms_of_xftfont): Don't set members anchor_point and shape of
11060 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11063 * w32font.c (w32font_open): Adjust it for the change of
11065 (w32font_open_internal): Don't set properties of font_object here.
11067 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
11069 * macfns.c (x_create_tip_frame):
11070 * w32fns.c (x_create_tip_frame):
11071 * xfns.c (x_create_tip_frame): Pass parameter argument to
11072 face-set-after-frame-default.
11074 * xfaces.c (Finternal_merge_in_global_face): Save merged
11075 attributes for the default face back into the face vector.
11077 2008-07-08 Andreas Schwab <schwab@suse.de>
11079 * fontset.h: Declare fontset_from_font. Don't declare
11080 new_fontset_from_font and fontset_from_font_name.
11081 * xterm.c: Include "fontset.h".
11082 * Makefile.in (xterm.o): Update dependencies.
11084 2008-07-08 Glenn Morris <rgm@gnu.org>
11086 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11087 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11089 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
11091 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11092 (x_set_frame_parameters): Don't bind it.
11094 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
11096 * w32fns.c (map_w32_filename): Declare extern.
11098 2008-07-07 Jason Rumney <jasonr@gnu.org>
11100 * w32term.c (WS_EX_LAYERED): Define if not already.
11102 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
11104 * xfaces.c (set_font_frame_param): Don't try to set the font
11105 parameter if it is still unspecified in the lface.
11107 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11109 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11110 face if it didn't already exist.
11112 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11114 2008-07-05 Andreas Schwab <schwab@suse.de>
11116 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11118 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11120 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11122 (IT_DISPLAYING_WHITESPACE): New macro.
11123 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11124 when word-wrapping. Simplify word-wrapping logic. Use correct
11125 pixel positions when saving copies of the iterator.
11126 (display_line): Use proper wrap point if the last character on a
11127 line was preceded by whitespace.
11129 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11131 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11133 2008-07-04 Kenichi Handa <handa@m17n.org>
11135 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11137 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11139 2008-07-02 Jason Rumney <jasonr@gnu.org>
11141 * xfns.c (syms_of_xfns): Only define x-select-font when both
11142 HAVE_FREETYPE and USE_GTK.
11144 * xdisp.c (next_element_from_display_vector): Move assignment out
11147 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11149 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11151 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11152 (syms_of_fileio): Initialize and export them.
11153 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11155 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11156 (Fsystem_move_file_to_trash): New function.
11157 (syms_of_w32fns): Export it to lisp.
11159 2008-07-01 Jason Rumney <jasonr@gnu.org>
11161 * w32font.c (w32font_text_extents): Don't count overhang as part
11164 2008-06-30 Miles Bader <miles@gnu.org>
11166 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11167 Add `avoid_cursor_p' field.
11169 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11170 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11171 (append_glyph, append_composite_glyph, produce_image_glyph)
11172 (append_stretch_glyph): Initialize avoid_cursor_p.
11173 (get_it_property): Rename from `get_line_height_property'.
11174 (x_produce_glyphs): Use get_it_property.
11175 (handle_line_prefix, push_display_prop): New functions.
11176 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11177 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11179 (syms_of_xdisp): Initialize them.
11181 2008-06-30 Kenichi Handa <handa@m17n.org>
11183 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11184 XftDefaultSubstitute (they are called in XftFontMatch).
11185 (xftfont_open): Fix args to ftfont_font_format.
11187 * ftfont.c (fc_charset_table): New member lang.
11188 (ftfont_resolve_generic_family): New arg pattern.
11189 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
11190 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11191 (ftfont_open): Fix args to ftfont_font_format.
11192 (ftfont_font_format): New arg filename.
11194 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
11196 * xfaces.c (Finternal_merge_in_global_face): If default face was
11197 modified, realize it again. Update the font face attribute.
11199 2008-06-29 Jason Rumney <jasonr@gnu.org>
11201 * w32term.c (x_set_frame_alpha): Fix logic.
11203 2008-06-29 Kenichi Handa <handa@m17n.org>
11205 * fontset.c (Finternal_char_font): Return font-object instead of
11208 * composite.c (get_composition_id): Fix the width calculation for TAB.
11210 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11212 * indent.c (Fvertical_motion): Properly handle float column arg.
11214 2008-06-28 Jason Rumney <jasonr@gnu.org>
11216 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11217 (pfnSetLayeredWindowAttributes): New function pointer.
11218 (w32_initialize): Initialize it when supported.
11219 (x_set_frame_alpha): New function.
11221 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11222 (w32_frame_parm_handlers): Set alpha handler.
11224 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11226 2008-06-27 Jason Rumney <jasonr@gnu.org>
11228 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11229 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11230 (w32_to_x_charset, x_to_w32_charset)
11231 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11232 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11233 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11234 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11235 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11236 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11237 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11238 (Qw32_charset_unicode): Remove.
11239 (syms_of_w32fns): Update for above changes.
11241 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11242 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11243 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11244 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11245 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11246 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11247 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11248 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11249 (syms_of_w32font): Update for above changes.
11251 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11253 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11255 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11257 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11258 Eli Zaretskii <eliz@gnu.org>
11260 * makefile.w32-in (LOCAL_FLAGS):
11261 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11263 * sysdep.c (_spawnlp, _getpid):
11264 Declare with explicit _cdecl instead of _CRTAPI1.
11266 * editfns.c (Fget_internal_run_time):
11267 Check for WINDOWSNT with #ifdef, not #if.
11269 2008-06-26 Jason Rumney <jasonr@gnu.org>
11271 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11273 * w32term.c (x_draw_glyph_string_foreground)
11274 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11275 Use FONT_HANDLE macro.
11276 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11278 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11279 (uniscribe_encode_char): Use FONT_HANDLE macro.
11281 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11282 (w32font_text_extents): Use precast w32_font.
11283 (w32font_close): Free cached metrics.
11284 (w32font_open_internal): Allocate space for name on stack.
11286 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
11288 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11290 2008-06-26 Jason Rumney <jasonr@gnu.org>
11292 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11293 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11295 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11297 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11299 2008-06-26 Jason Rumney <jasonr@gnu.org>
11301 * w32bdf.c, w32bdf.h: Remove obsolete files.
11303 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11305 * w32gui.h: Don't include w32bdf.h.
11306 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11307 Remove obsolete font support.
11309 * w32font.h (struct w32font_info): Remove compat_w32_font.
11311 (FONT_COMPAT): Remove obsolete macro.
11313 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11314 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11315 (w32font_open_internal): Remove compat code. Set new hfont member.
11316 (Fx_select_font): Use new hfont member.
11318 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11319 (uniscribe_encode_char): Use new hfont member.
11321 * w32term.c (x_draw_glyph_string_foreground)
11322 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11323 (x_draw_glyph_string): Use metrics in w32font_info.
11325 2008-06-26 Kenichi Handa <handa@m17n.org>
11327 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11329 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11335 * m/mips-siemens.h:
11357 * s/uxpv.h: Remove support for obsolete systems.
11358 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
11359 Remove, insert contents in s/hpux10-20.h.
11360 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11361 Remove, insert contents in s/aix4-2.h.
11362 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11363 * s/bsd4-3.h: Rename to ...
11364 * s/bsd-common.h: ... this.
11393 * s/template.h: Remove references to obsolete variables.
11395 * Makefile.in: Add dependencies for all unexec files.
11396 (admindir): Remove unused variable.
11397 (UNEXEC_SRC): Remove references.
11399 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
11401 * xfns.c (x_default_font_parameter): If Xft is available, first
11402 try Monospace-12 for the default font.
11404 2008-06-25 Jason Rumney <jasonr@gnu.org>
11406 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11408 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11410 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11412 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11414 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
11416 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11417 <scroll-conservatively>: Fix typo in docstring.
11419 * xselect.c (Fx_send_client_event): Doc fix.
11421 2008-06-25 Kenichi Handa <handa@m17n.org>
11423 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11425 * font.c (font_parse_fcname): Remove unused variables.
11426 (font_sort_entites): Delete the arg SPEC. Caller changed.
11427 Fix for the case of ! best_only.
11428 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11430 * lisp.h (Fstring_to_unibyte): EXFUN it.
11432 * character.h (str_to_unibyte): Extern it.
11434 * character.c (str_to_unibyte): New function.
11436 * fns.c (Fstring_to_unibyte): New function.
11437 (syms_of_fns): Defsubr it.
11439 2008-06-24 Kenichi Handa <handa@m17n.org>
11441 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11443 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11445 2008-06-24 Andreas Schwab <schwab@suse.de>
11447 * Makefile.in (${lispsource}loaddefs.el): Rename from
11448 ../lisp/loaddefs.el.
11449 (bootstrap-clean): Do what distclean does but don't remove
11451 (distclean): Depend on bootstrap-clean and remove Makefile.
11453 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
11455 * buffer.h (struct buffer): New member word_wrap.
11457 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11459 (init_buffer_once): Initialize them.
11461 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11462 line_wrap enum possessing three possible values.
11464 * termopts.h: Replace truncate_partial_width_windows with
11465 Vtruncate_partial_width_windows.
11467 * dispnew.c (direct_output_for_insert): Avoid direct output when
11468 inserting a space with word wrap on.
11470 * indent.c (compute_motion): Obey integer values of
11471 truncate-partial-width-windows.
11473 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11474 replacing truncate_partial_width_windows.
11475 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11476 truncate only if the window width is below that integer.
11477 (start_display, resize_mini_window, produce_stretch_glyph)
11478 (display_string, move_it_in_display_line_to): Use line_wrap.
11479 (back_to_previous_visible_line_start, reseat_1): Reset
11480 string_from_display_prop_p.
11481 (display_line): Extend default face to end of line when wrapping.
11483 2008-06-24 Kim F. Storm <storm@cua.dk>
11485 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11486 to wrap continued lines at word boundaries.
11488 2008-06-24 Jason Rumney <jasonr@gnu.org>
11490 * font.c (Ffont_face_attributes): Multiply pixel size before point
11491 conversion to avoid multiplying rounding error.
11493 2008-06-23 Jason Rumney <jasonr@gnu.org>
11495 * w32term.c (x_draw_glyph_string_background)
11496 (x_draw_glyph_string): Remove old bdf font code.
11498 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11500 2008-06-22 Kenichi Handa <handa@m17n.org>
11502 * font.c (font_find_for_lface): Try the adstyle specified in
11503 the property of LFACE_FONT of LFACE (if any).
11505 2008-06-21 Seiji Zenitani <zenitani@mac.com>
11506 Ryo Yoshitake <ryo@shiftmode.net>
11508 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11510 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11512 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11513 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11514 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11515 (witness-emacs): Remove.
11516 (lisp, shortlisp): Move loaddefs.el earlier.
11517 (mostlyclean): Forget about witness-emacs.
11519 2008-06-22 Glenn Morris <rgm@gnu.org>
11521 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11522 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11524 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11526 * Makefile.in (PRECOMP): Remove.
11527 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11528 (witness-emacs): Run `compile-first'.
11529 (.el.elc): Use the new compile-onefile target.
11531 2008-06-21 Kenichi Handa <handa@m17n.org>
11533 * xftfont.c (xftfont_open): Handle QCembolden only when
11534 FC_EMBOLDEN is defined.
11536 2008-06-21 Andreas Schwab <schwab@suse.de>
11538 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11539 (.el.elc): Likewise.
11541 2008-06-21 Miles Bader <miles@gnu.org>
11543 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11544 build dir, not the lisp source dir.
11546 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11548 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11549 (bootstrapclean): Remove.
11550 (.el.elc): New rule.
11551 (PRECOMP): New var.
11552 (../lisp/subdirs.el): Remove.
11553 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11554 (witness-emacs): New target.
11555 (mostlyclean): Remove witness-emacs as well.
11556 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11557 Add witness-emacs dependency.
11559 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
11561 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11562 defined by the font.
11564 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11566 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11567 (bootstrap-clean): New target that keeps TAGS around.
11568 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11569 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11571 2008-06-20 Jason Rumney <jasonr@gnu.org>
11573 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11574 Remove obsolete font code.
11576 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11577 to determine language support.
11579 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11581 * sysdep.c (cfsetspeed): New fun extracted from the code.
11582 (cfmakeraw): Move before first use.
11584 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11586 * sysdep.c (cfmakeraw): Provide fallback implementation.
11587 (serial_configure): Provide fallback implementation of cfsetspeed.
11589 2008-06-20 Kenichi Handa <handa@m17n.org>
11591 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11594 * fontset.c (fontset_from_font): Copy font_spec before changing
11597 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11599 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11601 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11602 for explicit `font' parameters.
11604 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11606 2008-06-19 Kenichi Handa <handa@m17n.org>
11608 * frame.c: Include <ctype.h>.
11609 (x_set_font_backend): Allow spacing characters in the X resource
11612 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11614 * w32fns.c, xfns.c (Qfont_param): New var.
11615 (syms_of_w32fns): Initialize it.
11616 (x_default_font_parameter): Record explicit `font' into
11619 2008-06-18 Kenichi Handa <handa@m17n.org>
11621 * font.c (font_parse_xlfd): Fix previous change.
11622 (font_parse_fcname): Don't use :fc-unknown-spec.
11623 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11624 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11625 (font_add_log): Prepend the driver name to the resulting fonts.
11627 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11628 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11629 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11631 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11632 (QCembolden): New variables.
11633 (syms_of_xftfont): DEFSYM them.
11634 (xftfont_open): Call XftFontMatch. Don't trust the result of
11635 XftTextExtents8 if the pixel_size is less than 5.
11637 2008-06-18 Andreas Schwab <schwab@suse.de>
11639 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11640 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11642 2008-06-18 Jason Rumney <jasonr@gnu.org>
11644 * w32font.c (w32font_list, w32font_match): Add logging.
11646 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11648 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
11650 * font.c (font_parse_fcname): Store divider characters for
11651 unknown-spec list. For known key symbols, intern using correct
11654 2008-06-17 Kenichi Handa <handa@m17n.org>
11656 * xfaces.c (realize_default_face): If the frame is not on window
11657 system, set the fontset of face to nil.
11659 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11661 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11663 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11665 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11666 (build_font_name_from_vector): Delete externs.
11668 * xfaces.c (struct font_name): Don't declare.
11670 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11672 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11674 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11676 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11678 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11680 * font.c (Ffont_spec): Fix usage in docstring.
11681 (Ffont_face_attributes): Doc fix.
11683 2008-06-16 Andreas Schwab <schwab@suse.de>
11685 * font.c (Ffont_face_attributes): Fix definition.
11687 2008-06-16 Jason Rumney <jasonr@gnu.org>
11689 * font.h (font_style_symbolic_from_value): Remove.
11691 * font.c (font_style_symbolic_from_value): Remove.
11692 (font_style_symbolic): Revert to pre 2008-06-13 version.
11694 * w32font.c (w32_to_fc_weight): New function.
11695 (w32font_full_name, logfont_to_fcname): Use it.
11697 2008-06-16 Kenichi Handa <handa@m17n.org>
11699 * font.c (font_check_object): Delete it.
11700 (font_clear_cache): Check if a font-object is alive.
11701 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11702 font-object to nil.
11703 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11704 (font_at): Don't call font_check_object.
11705 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11707 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11709 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11711 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11713 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11715 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
11717 * font.c (font_parse_fcname): Only one decimal point.
11718 (font_unparse_fcname): Handle data in family and foundry indices
11719 as symbols, not strings.
11720 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11722 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11724 * font.h (font_unparse_gtkname): Add prototype.
11726 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11728 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11730 2008-06-15 Andreas Schwab <schwab@suse.de>
11732 * font.c (font_update_drivers): Fix crash when no drivers match.
11734 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11736 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11737 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11739 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11741 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11743 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11745 * process.c (Fserial_process_configure, Fprocess_send_eof):
11746 Use EQ to compare Lisp_Objects.
11748 2008-06-13 Jason Rumney <jasonr@gnu.org>
11750 * w32fns.c (Fw32_select_font): Remove old font API function.
11752 * w32font.c (logfont_to_fcname): New function.
11753 (Fx_select_font): New font dialog function compatible with
11754 GTK/fontconfig version.
11756 * font.c (font_style_symbolic_from_value): New function.
11757 (font_style_symbolic): Use it.
11759 * font.h (font_style_symbolic_from_value): Declare new function.
11761 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
11763 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11764 <font-width-table>: Fix typos in docstrings.
11766 2008-06-13 Daniel Engeler <engeler@gmail.com>
11768 These changes add serial port access.
11769 * process.c: Add HAVE_SERIAL.
11770 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11771 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11772 (list_processes_1, select_wrapper, Fstop_process)
11773 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11774 (status_notify): Modify to handle serial processes.
11775 [HAVE_SERIAL] (Fserial_process_configure)
11776 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11778 * process.h (struct Lisp_Process): Add `type'.
11779 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11781 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11783 (serial_open, serial_configure): New functions.
11784 * w32.h: Add FILE_SERIAL.
11785 (struct _child_process): Add ovl_read, ovl_write.
11787 2008-06-13 Kenichi Handa <handa@m17n.org>
11789 * dispextern.h (enum lface_attribute_index): New member
11790 LFACE_FOUNDRY_INDEX.
11792 * font.c (font_score): Delete arg alternate_families. Check only
11793 weight, slant, width, and size. Ignore the difference of alias
11795 (font_sort_entites): Adjust for the above change. Reflect the
11796 order of font-driver to scores.
11797 (font_list_entities): Don't check alternate_familes here.
11798 (font_clear_prop): Handle foundry.
11799 (font_update_lface): Don't parse "foundry-family" form here.
11800 Handle FONT_FOUNDRY_INDEX.
11801 (font_find_for_lface): Likewise. Handle alternate families here.
11802 If registry is nil, try iso8859-1 and ascii-0.
11803 (font_open_for_lface): Pay attention to size in ENTITY.
11804 (font_open_by_name): Simplify by calling font_load_for_lface.
11805 (free_font_driver_list): Delete it.
11806 (font_update_drivers): Preserve the order of backends.
11807 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11808 of font_score and font_sort_entites.
11809 (font_update_sort_order): Likewise.
11811 * xfaces.c (LFACE_FOUNDRY): New macro.
11812 (check_lface_attrs): Check foundry.
11813 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11814 (merge_face_vectors): Check foundry.
11815 (merge_face_ref): Likewise.
11816 (Finternal_set_lisp_face_attribute): Likewise.
11817 (x_update_menu_appearance): Likewise.
11818 (Finternal_get_lisp_face_attribute): Likewise.
11819 (lface_hash): Likewise.
11820 (lface_same_font_attributes_p): Likewise.
11821 (x_supports_face_attributes_p): Likewise.
11822 (tty_supports_face_attributes_p): Likewise.
11823 (Finternal_set_alternative_font_family_alist): Intern strings.
11824 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11825 (realize_default_face): Set LFACE_FOUNDRY (lface).
11827 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11828 font-driver at first.
11830 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11832 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11834 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11836 2008-06-12 Jim Meyering <meyering@redhat.com>
11838 Make unexec_free handle NULL the same way free does.
11839 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11841 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11843 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11844 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11845 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11846 (WEAK_ALIAS): Simplify.
11847 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11848 when searching a unibyte buffer.
11850 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
11852 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11854 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
11856 * w32font.c: Include ctype.h.
11858 2008-06-11 Jason Rumney <jasonr@gnu.org>
11860 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11861 misreported as space.
11862 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11863 as aliases for registry iso10646-1.
11865 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11867 * buffer.c (clone_per_buffer_values): Skip `name'.
11869 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
11871 * font.c (font_parse_fcname): Fix last change; accept decimal
11872 points in font size.
11874 2008-06-10 Jason Rumney <jasonr@gnu.org>
11876 * w32uniscribe.c (add_opentype_font_name_to_list):
11877 Skip non unicode fonts.
11879 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11881 * xfns.c (Fx_font_dialog): New function.
11883 * gtkutil.c (xg_dialog_response_cb): Rename from
11884 xg_file_response_callback.
11885 (pop_down_dialog): Rename from pop_down_file_dialog.
11886 (xg_get_file_name): Callers changed.
11887 (xg_get_font_name): New function.
11889 * gtkutil.h (xg_get_font_name): Insert prototype.
11891 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11893 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11894 x_underline_minimum_display_offset.
11895 (syms_of_xdisp): Declare it here rather than in xterm.c.
11896 * dispextern.h (underline_minimum_offset): Declare it.
11897 * w32term.c (x_draw_glyph_string): Use it.
11898 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11899 (syms_of_xterm): Don't declare it any more.
11900 (x_draw_glyph_string): Adjust to the new name.
11902 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
11904 * xterm.c (x_underline_minimum_display_offset): New var.
11905 (x_draw_glyph_string): Use it.
11906 (syms_of_xterm): Declare it.
11908 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11910 * font.c (font_parse_fcname): Accept GTK-style font names too.
11912 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11914 * dired.c (file_name_completion): Don't return t if the match is exact
11915 but with different capitalization.
11916 * minibuf.c (Ftry_completion): Simplify.
11918 * window.c (Vwindow_point_insertion_type): New var.
11919 (set_window_buffer): Use it.
11920 (syms_of_window): Init and export it to Lisp.
11922 2008-06-10 Kenichi Handa <handa@m17n.org>
11924 * font.h (font_intern_prop): Prototype adjusted.
11926 * font.c (font_intern_prop): New arg force_symbol.
11927 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11928 Adjust for the change of font_intern_prop.
11930 * ftfont.c (ftfont_pattern_entity):
11931 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11933 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11934 the change of font_intern_prop.
11936 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
11938 * w32menu.c (digest_single_submenu): Declare extern.
11940 2008-06-09 Jason Rumney <jasonr@gnu.org>
11942 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11944 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11945 (parse_single_submenu): Remove.
11946 (digest_single_submenu): Remove.
11947 (syms_of_w32menu): Don't initialise variables that have moved
11949 (set_frame_menubar): Sync with version in xmenu.c.
11950 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11952 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11955 2008-06-09 Jason Rumney <jasonr@gnu.org>
11957 Changes to w32 files related to the move of common menu code
11958 to menu.c on 2008-06-08 by Chong Yidong.
11960 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11962 (single_keymap_panes, push_menu_item, push_menu_pane):
11963 Make globally visible.
11965 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11966 (local_free, malloc_widget_value, free_widget_value)
11967 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11968 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11969 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11970 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11971 (menu_items, menu_items_allocated, menu_items_used)
11972 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11973 (init_menu_items, finish_menu_items, discard_menu_items)
11974 (grow_menu_items, push_submenu_start, push_submenu_end)
11975 (push_left_right_boundary, push_menu_pane, push_menu_item)
11976 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11977 (free_menubar_widget_tree_value, parse_single_submenu)
11978 (update_submenu_strings): Remove functions.
11979 (xmalloc_widget_value): Remove and declare extern.
11981 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11984 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11985 (local_heap, local_alloc, local_free, malloc_widget_value)
11986 (free_widget_value): Define here.
11988 2008-06-09 Kenichi Handa <handa@m17n.org>
11990 * font.h (Qascii_0): Extern it.
11992 * font.c (Qascii_0): New variable.
11993 (syms_of_font): DEFSYM it.
11994 (font_open_by_name): If the registry "iso8859-1" fails, try also
11997 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11999 2008-06-08 Kenichi Handa <handa@m17n.org>
12001 * .gdbinit (xfont): New command.
12003 2008-06-08 Andreas Schwab <schwab@suse.de>
12005 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12006 * Makefile.in (menu.o): Update dependencies.
12008 * Makefile.in (obj): Always add menu.o.
12009 * emacs.c (main): Always call syms_of_menu.
12010 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12012 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
12014 * Makefile.in: Compile menu.c.
12016 * lisp.h: Declare syms_of_menu.
12018 * emacs.c (main): Call syms_of_menu.
12020 * keyboard.h: Relocate platform-independent menu definitions from
12023 * menu.c: New file. Relocate platform-independent menu
12024 definitions from xmenu.c. Suggested by Adrian Robert.
12026 * xmenu.c: Remove platform-independent menu definitions.
12027 (menu_items, menu_items_inuse, menu_items_allocated)
12028 (menu_items_used, menu_items_n_panes)
12029 (menu_items_submenu_depth): Move to keyboard.h.
12030 (init_menu_items, finish_menu_items, unuse_menu_items)
12031 (discard_menu_items, restore_menu_items, save_menu_items)
12032 (grow_menu_items, push_submenu_start, push_submenu_end)
12033 (push_left_right_boundary, push_menu_pane, push_menu_item)
12034 (keymap_panes, single_keymap_panes, single_menu_item)
12035 (list_of_panes, list_of_items, find_and_call_menu_selection)
12036 (xmalloc_widget_value, free_menubar_widget_value_tree)
12037 (parse_single_submenu, digest_single_submenu)
12038 (update_submenu_strings): Move to menu.c.
12040 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12042 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12044 2008-06-06 Miles Bader <miles@gnu.org>
12046 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12047 face, not frame default.
12049 2008-06-05 Martin Rudalics <rudalics@gmx.at>
12051 * window.c (pop_up_windows, pop_up_frames)
12052 (display_buffer_reuse_frames, Vpop_up_frame_function)
12053 (Vdisplay_buffer_function, Veven_window_heights)
12054 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12055 (Vspecial_display_function, Vsame_window_buffer_names)
12056 (Vsame_window_regexps, split_height_threshold)
12057 (Vsplit_window_preferred_function): Move those vars to window.el.
12058 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12059 (Fdisplay_buffer): Move those functions to window.el.
12060 (syms_of_window): Remove corresponding declarations.
12061 (display_buffer): New function.
12062 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12063 * dispnew.c (Flast_nonminibuf_frame): New function.
12064 * buffer.c (Fpop_to_buffer): Move to window.el.
12066 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12068 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12070 2008-06-05 Kenichi Handa <handa@m17n.org>
12072 * coding.c (detect_coding): Fix previous change.
12073 (detect_coding_system): Likewise.
12075 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12077 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12079 * keymap.c (Vminibuffer_local_filename_must_match_map):
12080 Rename from Vminibuffer_local_must_match_filename_map.
12082 * minibuf.c (Fcompleting_read): Adjust accordingly.
12083 * commands.h: Rename declaration as well.
12085 2008-06-05 Kenichi Handa <handa@m17n.org>
12087 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12089 (Ffont_put): Likewise.
12091 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12094 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12097 * xfaces.c (realize_x_face): If the font-related face attributes
12098 are the same as those of default face, realize a new fontset from
12100 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12102 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12104 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12105 (move_it_in_display_line): New wrapper.
12107 * window.c (window_scroll_pixel_based_preserve_x)
12108 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12109 (window_scroll_pixel_based, window_scroll_line_based):
12110 Use them to preserve column positions.
12111 (syms_of_window): Initialize them.
12113 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12114 (HPOS . VPOS) pair.
12116 * dispextern.h (move_it_in_display_line): Declare.
12118 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
12120 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12121 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12122 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12124 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
12126 * window.c (Fset_window_parameter): Doc fix.
12127 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12129 2008-06-04 Joakim Verona <joakim@verona.se>
12131 * window.h (struct window): Add new member window_parameters.
12133 * window.c (Fwindow_parameters, Fwindow_parameter)
12134 (Fset_window_parameter): New defuns.
12135 (syms_of_window): Defsubr the new defuns.
12136 (make_window): Initialize window_parameters to nil.
12138 2008-06-04 John Paul Wallington <jpw@pobox.com>
12140 * eval.c (Fdefmacro): Doc fix.
12142 2008-06-04 Kenichi Handa <handa@m17n.org>
12144 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12145 Be sure to call setup_coding_system when we find a proper coding system.
12146 (detect_coding_system): Fix handling of coding->head_ascii.
12148 2008-06-03 Andreas Schwab <schwab@suse.de>
12150 * font.c (font_prop_validate_spacing): Fix last change.
12152 2008-06-03 Kenichi Handa <handa@m17n.org>
12154 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12155 (font_parse_fcname): Fix handling of unknown key.
12157 * xfont.c (xfont_list): Try an alias.
12159 * charset.c (char_charset): Return NULL if the arg charset_list is
12160 specified and C doesn't belong to any of them.
12162 2008-06-02 Chip Coldwell <coldwell@redhat.com>
12164 * font.c (font_pixel_size): Don't take cdr of an integer.
12166 2008-06-02 Jim Meyering <meyering@redhat.com>
12168 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12169 * alloc.c (xfree): Return right away for a NULL arg.
12170 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12171 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12172 * mac.c (create_apple_event_from_event_ref): Likewise.
12173 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12175 * doprnt.c (doprnt1): Likewise.
12176 * frame.c (frame): Likewise.
12177 * keyboard.c (wipe_kboard): Likewise.
12178 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12179 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12180 * term.c (tty_default_color_capabilities, maybe_fatal)
12181 (delete_tty): Likewise.
12182 * w16select.c (string): Likewise.
12183 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12184 * w32bdf.c (w32_free_bdf_font): Likewise.
12185 * w32fns.c (w32_unload_font): Likewise.
12186 * w32font.c (w32font_close): Likewise.
12187 * window.c (size_window): Likewise.
12188 * xselect.c (receive_incremental_selection): Likewise.
12189 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12190 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12191 * w32.c (stat): Likewise.
12193 Remove useless if-before-free tests.
12194 * editfns.c (Fset_time_zone_rule): Likewise.
12195 * lread.c (nosuffix): Likewise.
12196 * ralloc.c (get_bloc): Likewise.
12197 * regex.c (reg_free): Likewise.
12198 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12199 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12200 * xsmfns.c (smc_save_yourself_CB): Likewise.
12202 2008-06-02 Kenichi Handa <handa@m17n.org>
12204 * font.c (font_find_for_lface): Handle float font size.
12205 (font_open_for_lface): Likewise.
12207 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12208 comparing the properties.
12210 2008-06-01 Jason Rumney <jasonr@gnu.org>
12212 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12213 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12214 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12215 Don't add empty script list.
12216 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12218 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12220 * Makefile.in (dot, dotdot): Remove, update users.
12221 ".." has been used elsewhere in the file for a long time.
12222 (LIBXT_STATIC): Remove conditional based on unused variable.
12224 2008-06-01 Miles Bader <miles@gnu.org>
12226 * xfaces.c (Vface_remapping_alist): New variable.
12227 (syms_of_xfaces): Initialize it.
12228 (enum named_merge_point_kind): New type.
12229 (struct named_merge_point): Add `named_merge_point_kind' field.
12230 (push_named_merge_point): Make cycle detection respect different
12231 named-merge-point kinds.
12232 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12233 Remove face-name alias resolution.
12234 (lface_from_face_name): New definition using
12235 `lface_from_face_name_no_resolve'.
12236 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12237 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12238 (get_lface_attributes): New definition that layers face-remapping on
12239 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12240 (lookup_basic_face): New function.
12241 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12242 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12243 `get_lface_attributes'.
12244 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12245 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12246 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12248 * xdisp.c (init_iterator): Pass base_face_id through
12249 `lookup_basic_face' when we actually use it as a face-id.
12250 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12253 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12254 lookup the initial face-id.
12256 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12258 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
12260 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12261 (Fremove_text_properties): Fix typos in docstrings.
12263 2008-05-31 Kenichi Handa <handa@m17n.org>
12265 * font.c (font_list_entities): Fix the car part of data to be
12266 stored in the cache.
12268 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12270 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12272 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12273 Add a `test' argument so another predicate than `equal' can be used.
12274 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12275 (map_char_table): Remove unused vars `c' and `i'.
12276 * lisp.h (Foptimize_char_table): Adjust declaration.
12277 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12279 2008-05-30 Kenichi Handa <handa@m17n.org>
12281 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12282 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12285 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12287 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12288 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12289 frame-local settings for the same variable.
12291 2008-05-30 Kenichi Handa <handa@m17n.org>
12293 * fontset.c (Ffont_info): Move to font.c.
12294 (syms_of_fontset): Delete defsubr of Sfont_info.
12296 * font.c (font_style_to_value, font_score): Delete casting of the
12297 args to xstcasecmp.
12298 (register_font_driver): Increment num_font_drivers only when
12299 registering the driver globally.
12300 (Ffont_info): Move from fontset.c. Handle a font object too.
12301 (syms_of_font): Defsubr Sfont_info.
12303 2008-05-29 Kenichi Handa <handa@m17n.org>
12305 * coding.h (enum define_coding_utf8_arg_index): New enum.
12306 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12307 coding_attr_utf_bom.
12308 (enum utf_bom_type): Rename from utf_16_bom_type.
12309 (struct utf_16_spec): Adjust for the above change.
12310 (struct coding_system): Add utf_8_bom in `spec' union.
12312 * coding.c (CODING_UTF_8_BOM): New macro.
12313 (enum coding_category): Delete coding_category_utf_8, add
12314 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12315 coding_category_utf_8_sig.
12316 (CATEGORY_MASK_UTF_8): Delete it.
12317 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12318 (CATEGORY_MASK_UTF_8_SIG): New macros.
12319 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12320 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12321 CATEGORY_MASK_UTF_8_SIG.
12322 (CATEGORY_MASK_UTF_8): New macro.
12323 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12324 (detect_coding_utf_8): Check BOM.
12325 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12326 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12327 (encode_coding_utf_16): Likewise.
12328 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12329 (detect_coding, detect_coding_system): Handle utf-8-auto.
12330 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12331 (syms_of_coding): Fix setting up of Vcoding_category_table.
12333 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12335 * process.c (Faccept_process_output): If `millisec' is non-nil,
12336 `seconds' default to 0.
12337 (wait_reading_process_output): Also return non-nil if we read output
12338 from a non-running process.
12340 2008-05-29 Jason Rumney <jasonr@gnu.org>
12342 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12343 `raster' specified.
12344 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12345 in the uniscribe backend, but disallow any font that has no
12346 unicode subrange support.
12348 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
12350 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12351 Fix typos in docstrings.
12353 2008-05-29 Kenichi Handa <handa@m17n.org>
12355 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12356 (Fx_family_fonts): Set frame correctly.
12358 2008-05-28 Jason Rumney <jasonr@gnu.org>
12360 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12362 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12364 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12365 calling build_annotations.
12367 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
12369 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12370 (Fencode_coding_string):
12371 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12372 <latin-extra-code-table>: Fix typos in docstrings.
12373 (syms_of_coding) <coding-system-alist>: Doc fix.
12374 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12376 2008-05-28 Kenichi Handa <handa@m17n.org>
12378 * fontset.c (Ffont_info): Don't call font_close_object.
12380 * font.c (font_parse_family_registry): Use Ffont_put to validate
12381 foundry and family.
12382 (font_delete_unmatched): Don't check spacing.
12383 (font_list_entities): Add spacing to the spec to list fonts.
12385 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12386 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12388 * coding.c (encode_coding_raw_text): Fix previous change.
12389 (encode_coding_object): When the dst_object is a buffer and is
12390 different from src_object, move gap to PT.
12392 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12394 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12396 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12398 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12399 all branches. Compute it differently.
12401 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12403 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
12405 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12406 into "else if () ... else ...".
12408 2008-05-27 Jason Rumney <jasonr@gnu.org>
12410 * w32font.c (w32font_open_internal): Determine if glyph indices
12411 are likely to work here.
12413 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12415 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12416 draw overlap glyphs with appropriate highlighting.
12418 2008-05-27 Kenichi Handa <handa@m17n.org>
12420 * xfont.c (xfont_open): Fix calculation of font->average_width.
12422 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12424 * casefiddle.c (casify_object): Try to guess better whether the
12425 argument is a byte or a char.
12427 2008-05-26 Andreas Schwab <schwab@suse.de>
12429 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12430 Always send multiples of format size.
12432 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12434 2008-05-26 Jason Rumney <jasonr@gnu.org>
12436 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12437 (compute_metrics): Don't set failure if we just cleared the cache.
12438 (w32_weight_table): Remove unused variable.
12439 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12440 backwards compatibility.
12442 2008-05-25 Kenichi Handa <handa@m17n.org>
12444 * w32term.c (x_draw_glyph_string):
12445 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12447 * xfaces.c: Delete unused function prototypes.
12448 (xstrlwr, font_frame): Delete them.
12449 (clear_face_cache): Delete unused variable.
12451 * xftfont.c (xftfont_open): Delete unused variable.
12452 If underline_thickness is not 1, adjust underline_position.
12454 * ftxfont.c (ftxfont_open): Delete unused variable.
12456 * fontset.c (face_for_char): Optimize for the case of no charset
12459 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12460 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12461 (otf_open, font_otf_capability, generate_otf_features)
12462 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12463 Comment out by surrounding "#if 0" and "#endif" for the moment.
12464 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12465 (syms_of_font): Codes for accessing above commented out.
12467 2008-05-24 Eli Zaretskii <eliz@gnu.org>
12469 * w32proc.c: Include dispextern.h.
12471 * w32.c: Include dispextern.h.
12473 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
12475 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12476 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12477 Fix typos in docstrings.
12479 2008-05-23 Jason Rumney <jasonr@gnu.org>
12481 * xsmfns.c: Remove includes that are already included by config.h.
12483 2008-05-23 Kenichi Handa <handa@m17n.org>
12485 * charset.c (Qemacs, charset_emacs): New variables.
12486 (char_charset): Fix for non-Unicode characters.
12487 (syms_of_charset): Define charset_emacs.
12489 * w32term.c (x_draw_glyph_string): Be sure to update
12490 s->underline_thickness and s->underline_position. Be sure to draw
12491 underline within the current line area.
12493 * xterm.c (x_draw_glyph_string): Be sure to update
12494 s->underline_thickness and s->underline_position. Be sure to draw
12495 underline within the current line area.
12497 * fontset.c: Delete unused variables and add casting for char *
12498 throughout the file.
12499 (fontset_font): Try the fallback fonts of the current fontset
12500 before consulting the default fontset.
12502 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12504 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12506 2008-05-22 Jason Rumney <jasonr@gnu.org>
12508 * font.c: Don't include strings.h.
12510 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12512 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12513 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12514 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12515 to call xstrcasecmp.
12517 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12519 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12521 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12523 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12525 2008-05-22 Kenichi Handa <handa@m17n.org>
12527 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12529 * font.c (font_prop_validate_style): Adjust for the format
12530 change of font_style_table.
12532 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12535 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12538 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12540 * minibuf.c (keys_of_minibuf): Delete.
12541 * lisp.h (keys_of_minibuf): Delete.
12542 * emacs.c (main): Don't call keys_of_minibuf.
12544 2008-05-22 Kenichi Handa <handa@m17n.org>
12546 * ftfont.c (ftfont_resolve_generic_family): Rename from
12547 ftfont_list_generic_family. Return a single family for each
12549 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12550 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12552 (ftfont_match): Call font_add_log.
12554 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12555 (FONT_DEBUG): Define it.
12556 (font_add_log): Extern it.
12557 (font_assert): Rename from xassert.
12559 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12560 (xfont_list_family): Call font_add_log.
12561 (xfont_match): Likewise.
12562 (memq_no_quit): Delete.
12564 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12565 call of Ffont_xlfd_name.
12567 * xfaces.c (struct table_entry, slant_table, weight_table)
12568 (swidth_table): Move to font.c.
12570 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12571 xassert are changed to font_assert. Delete many unused variables.
12572 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12574 (struct table_entry): Move from xfaces.c and modified.
12575 (weight_table, slant_table, width_table): Move from xfaces.c and
12576 contents adjusted for the change of struct table_entry.
12577 (font_style_to_value, font_style_symbolic): Adjust for the
12578 format change of font_style_table.
12579 (font_parse_family_registry): Don't overwrite existing foundry and
12580 family of font_spec.
12581 (font_score): Fix calculation of diff for sizes.
12582 (font_sort_entites): Call font_add_log.
12583 (font_delete_unmatched): Return a newly created list.
12584 (font_list_entities): Fix previous change. Call font_add_log.
12585 (font_matching_entity, font_open_entity, font_close_entity):
12587 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12588 (Finternal_set_font_style_table): Delete.
12589 (BUILD_STYLE_TABLE): New macro.
12590 (build_style_table): New function.
12591 (Vfont_log, font_log_env_checked): New variables.
12592 (font_add_log): New function.
12593 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12594 Declare Lisp variables "font-weight-table", "font-slant-table",
12595 "font-width-table", and "font-log". Initialize font_style_table.
12597 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12599 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12601 2008-05-21 Seiji Zenitani <zenitani@mac.com>
12602 Ryo Yoshitake <ryo@shiftmode.net>
12604 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12605 (Vframe_alpha_lower_limit): New variable.
12606 (x_set_alpha): New function.
12608 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12610 * xfns.c (x-create-frame, Qalpha):
12611 Initialize the frame parameter `alpha'.
12612 * xterm.c (OPAQUE, OPACITY): New.
12613 (x_set_frame_alpha): New function.
12614 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12616 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12617 * w32fns.c (w32_frame_parm_handlers): Likewise.
12619 2008-05-20 Jason Rumney <jasonr@gnu.org>
12621 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12622 truetype fonts to opentype list.
12624 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
12626 * fontset.c (Ffontset_info): Doc fix.
12627 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12628 <ignore-relative-composition>: Fix typos in docstrings.
12630 * font.c (syms-of-font) <font-encoding-alist>:
12631 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12632 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12633 (Ffont_otf_alternates): Doc fixes.
12635 2008-05-20 Kenichi Handa <handa@m17n.org>
12637 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12638 font.h through out the file.
12639 (FONT_DRIVERS): Rename from FONTOBJ.
12640 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12641 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12643 * emacs.c (main): Call syms_of_font unconditionally.
12645 * font.h (find_font_encoding): Extern it.
12647 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12649 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
12650 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12651 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12652 only when HAVE_WINDOW_SYSTEM is defined.
12653 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12654 when HAVE_WINDOW_SYSTEM is defined.
12656 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12657 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12659 * xfaces.c: Include font.h unconditionally.
12660 (merge_face_ref, merge_face_vectors)
12661 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12663 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12665 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12667 * eval.c (lisp_indirect_variable): New fun.
12668 (Fuser_variable_p): Use it.
12670 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12672 * lisp.h (indirect_variable):
12673 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12674 Use Lisp_Symbol pointers rather than Lisp_Object.
12676 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12677 To this end, change calling-convention.
12679 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12680 if some non-hidden buffers are selected by string&pred.
12682 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
12684 * process.c (wait_reading_process_output): Always check status
12685 when in batch mode.
12687 2008-05-19 Kenichi Handa <handa@m17n.org>
12689 * font.c (font_list_entities): Fix handling of cache.
12690 (font_matching_entity): Likewise.
12692 * ftfont.c (cs_iso8859_1): Delete.
12693 (ft_face_cache): New variable.
12694 (struct ftfont_info): New member fc_charset_idx.
12695 (ftfont_build_basic_charsets): Delete.
12696 (fc_charset_table): New variable.
12697 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12698 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12700 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12701 (ftfont_spec_pattern): New argument fc_charset_idx.
12702 Check registry more rigidly. Change callers.
12703 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12704 change of :font-entity property of the font.
12706 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12707 property of the font.
12709 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
12711 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12712 (Funencodable_char_position, Fcheck_coding_systems_region)
12713 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12714 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12715 (Ffind_operation_coding_system, Fset_coding_system_priority)
12716 (Fcoding_system_eol_type): Doc fixes.
12718 2008-05-17 Glenn Morris <rgm@gnu.org>
12720 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12722 2008-05-16 Eli Zaretskii <eliz@gnu.org>
12724 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12727 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12728 HAVE_WINDOW_SYSTEM is not defined.
12730 * xfaces.c (merge_face_ref, merge_face_vectors)
12731 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12732 HAVE_WINDOW_SYSTEM is defined.
12733 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12735 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12737 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12739 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12741 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12743 2008-05-15 Kenichi Handa <handa@m17n.org>
12745 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12748 2008-05-15 Glenn Morris <rgm@gnu.org>
12750 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12752 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
12754 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12755 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12757 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12759 2008-05-15 Kenichi Handa <handa@m17n.org>
12761 * ftfont.c (ftfont_list): Downcase family name to check generic
12764 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12765 font-spec for QCfont value.
12767 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12768 buffer. Check the return value of it.
12770 2008-05-14 Jason Rumney <jasonr@gnu.org>
12772 * w32term.c (w32_get_glyph_overhangs): Remove.
12773 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12775 2008-05-14 Kenichi Handa <handa@m17n.org>
12777 * font.c (font_prop_validate): Make nil a valid value.
12778 (font_clear_cache): Check if the cached vector of entities is nil
12781 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12783 * emacs.c (main_thread): Conditionalize on
12784 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12785 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12787 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12788 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12789 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12791 2008-05-14 Kenichi Handa <handa@m17n.org>
12793 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12794 has no corresponding coding system.
12796 2008-05-14 Jason Rumney <jasonr@gnu.org>
12798 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12800 * w32font.h (w32font_open_internal): Update declaration.
12802 * w32font.c (w32font_open_internal): Change last argument from
12803 w32font_info struct to font object. Fill in font object from
12804 font_entity. Get Outline metrics if possible. Use them to
12805 calculate underline position and thickness. Use xlfd name as name
12806 property. Don't set codepage.
12807 (w32font_open): Pass font_object to w32font_open_internal. Don't
12808 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12809 (w32font_draw): Use s->font.
12810 (clear_cached_metrics): Don't clear non-existent blocks.
12812 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12813 font was not found.
12814 (x_draw_glyph_string): Use underline position and thickness from font.
12816 * w32uniscribe.c (uniscribe_open): Pass font_object to
12817 w32font_open_internal.
12819 2008-05-14 Kenichi Handa <handa@m17n.org>
12821 These changes are to delete all legacy font-handling codes, and
12822 make Emacs use only font-backends.
12824 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12825 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12827 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12829 * charset.h (Vcharset_non_preferred_head)
12830 (Vcurrent_iso639_language): Extern them.
12832 * charset.c (Vcharset_non_preferred_head): New variable.
12833 (Vcurrent_iso639_language): New variable.
12834 (syms_of_charset): Declare it as a Lisp variable.
12835 (char_charset): Don't check non preferred charsets. As a last
12836 resort, return charset_unicode.
12837 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12839 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12840 conditionals. Don't check enable_font_backend. Delete all codes
12841 used only when USE_FONT_BACKEND is not defined.
12843 * dispextern.h (struct glyph_string): Change type of `font' to
12845 (struct glyph_string): New member underline_position and
12846 underline_thickness.
12847 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12848 (struct face): Change type of `font' to `struct font *'. Remove
12849 members `font_name', `font_info_id'.
12850 (per_char_metric, encode_char): Delete externs.
12851 (calc_pixel_width_or_height): Adjust the prototype.
12853 * emacs.c (enable_font_backend): Delete extern.
12854 (main): Don't set enable_font_backend. Don't check the command
12855 line argument "-disable-font-backend".
12857 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12858 (enum font_property_index): New members FONT_DPI_INDEX,
12859 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12860 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12861 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12862 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12863 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12864 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12865 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12866 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12867 (struct font_spec, struct font_entity): New structs.
12868 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12869 (struct font): Many members from old "struct font_info" moved to
12870 here. Members font and entity deleted.
12871 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12872 the new font-related objects.
12873 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12874 (CHECK_FONT_GET_OBJECT): Likewise.
12875 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12876 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12877 (struct font_driver): New members case_sensitive anc check. Type
12878 of the member list and open changed.
12879 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12880 (font_symbolic_width, font_find_object, font_get_spec)
12881 (font_set_lface_from_name): Delete extern.
12882 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12884 * font.c: Include <strings.h>.
12885 (enable_font_backend): Delete it.
12886 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12887 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12888 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12889 (null_string): Delete it.
12890 (null_vector): Make it static.
12891 (font_family_alist): Delete it.
12892 (Qnormal): Extern it.
12893 (QCextra, QClanguage): Delete it.
12894 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12895 (font_make_spec, font_make_entity, font_make_object)
12896 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12897 the string. Callers changed.
12898 (font_pixel_size): Adjusted for the format change of font-related
12900 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12901 (font_style_to_value, font_style_symbolic): New function.
12902 (build_font_family_alist): Delete it.
12903 (font_registry_charsets): Use Fassoc_string instead of
12905 (font_prop_validate_symbol): Don't return null_string.
12906 (font_prop_validate_style): Adjusted for the change of
12907 style-related values in a font vector.
12908 (font_property_table): Delete entries for QClanguage and
12909 QCantialias, add entries for QCavgwidth.
12910 (get_font_prop_index): Delete the 2nd argument FROM.
12911 (font_prop_validate): Arguments changed.
12912 (font_put_extra): Adjusted for the change of font-related objects.
12913 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12914 (font_parse_fcname, font_unparse_fcname)
12915 (font_prepare_composition): Likewise.
12916 (font_parse_family_registry): Renamed from font_merge_old_spec.
12917 (otf_open): Delete the 1st arg entity.
12918 (font_otf_capability): Adjusted for the above change.
12919 (font_score): New arg alternate_families. Adjusted for the change
12920 of font-related objects.
12921 (font_sort_entites): New arg best_only.
12922 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12924 (font_match_p): Check alternate families.
12925 (font_find_object): Delete it.
12926 (font_check_object): New function.
12927 (font_clear_cache): Adjusted for the change of font-related objects.
12928 (font_delete_unmatched): New arg.
12929 (font_list_entities): Call font_driver->list with a spec that
12930 doesn't specify style-related properties.
12931 (font_matching_entity): Arguments changed. Caller changed.
12932 (font_open_entity): Adjusted for the change of font-related objects.
12933 (font_close_object, font_has_char, font_encode_char)
12934 (font_get_name, font_get_spec): Likewise.
12935 (font_spec_from_name, font_clear_prop, font_update_lface):
12937 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12938 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12939 (font_at): Adjusted for the change of font-related objects.
12940 (font_range): New function.
12941 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12942 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12943 (Fcopy_font_spec, Fmerge_font_spec): New function.
12944 (Ffont_family_list): Renamed from list-families.
12945 (Finternal_set_font_style_table): Arguments changed.
12946 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12947 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12948 change of font-related objects.
12949 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12951 * fontset.h (struct font_info): Delete it. Most members go to
12953 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12954 (enum FONT_SPEC_INDEX): Delete it.
12955 (font_info, list_fonts_func, load_font_func, query_font_func)
12956 (set_frame_fontset_func, find_ccl_program_func)
12957 (get_font_repertory_func, new_fontset_from_font_name): Delete
12959 (fontset_from_font_name): Extern it.
12960 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12961 (FONT_INFO_FROM_FACE): Deleted.
12962 (face_for_font): Adjust prototype.
12964 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12965 conditionals. Don't check enable_font_backend. Delete all codes
12966 used only when USE_FONT_BACKEND is not defined.
12967 (get_font_info_func, list_font_func, load_font_func)
12968 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12969 (get_font_repertory_func): Delete them.
12970 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12971 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12972 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12973 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12974 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12975 (fontset_compare_rfontdef): New function.
12976 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12977 rfont-defs by qsort. Adjusted for the change of font-group vector.
12978 (load_font_get_repertory): Deleted.
12979 (fontset_find_font): Use new macros to ref/set elements of
12980 font-def and rfont-def.
12981 (fontset_font): Fix the timing of remembering that no font for C.
12982 (free_face_fontset): Do nothing if the face has no fontset.
12983 (face_suitable_for_char_p): Use new macros to ref/set elements of
12985 (face_for_char): Likewise. Call face_for_char with font_object.
12986 (fs_load_font): Delete. Delete #pragma surrounding it.
12987 (fs_query_fontset): Use strcasecmp instead of strcmp.
12988 (generate_ascii_font_name): Adjusted for the format change of
12990 (Fset_fontset_font): Likewise. Use new macros to set elements of
12992 (Fnew_fontset): Use font_unparse_xlfd to generate
12993 FONTSET_ASCII (fontset).
12994 (new_fontset_from_font_name): Deleted.
12995 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12996 a fontset is already created for the font. FIx updating of
12997 Vfontset_alias_alist.
12998 (fontset_ascii_font): Deleted.
12999 (Ffont_info): Adjusted for the format change of font-spec.
13000 (Finternal_char_font): Likewise.
13001 (Ffontset_info): Likewise.
13002 (syms_of_fontset): Don't check load_font_func.
13004 * fns.c (internal_equal): Handle PREV_FONT.
13006 * frame.h: Delete USE_FONT_BACKEND conditional.
13008 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13009 conditionals. Don't check enable_font_backend. Delete all codes
13010 used only when USE_FONT_BACKEND is not defined.
13011 (x_set_font): Call x_new_font, not x_new_fontset2.
13012 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13013 already set for the frame.
13015 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13016 a font-entity by font_make_entity. Use font_intern_prop instead
13017 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13018 font property. If a font is scalable, set avgwidth property to 0.
13019 Set font-entity property by font_put_extra.
13020 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13021 (ffont_driver): Adjusted for the change of struct font_driver.
13022 (ftfont_spec_pattern): New function.
13023 (ftfont_list): Return a list, not vector.
13024 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13025 (ftfont_list_family): Don't downcase names.
13026 (ftfont_free_entity): Deleted.
13027 (ftfont_open): Return a font-object. Adjusted for the change of
13028 struct font. Get underline_thickness and underline_position from
13029 font property. Don't update dpyinfo->smallest_font_height and
13030 dpyinfo->smallest_char_width.
13031 (ftfont_close): Don't free `struct font'.
13032 (ftfont_has_char): Adjusted for the format change of font-entity.
13033 (ftfont_encode_char, ftfont_text_extents): Likewise.
13035 * ftxfont.c (ftxfont_list): Return a list, not vector.
13036 (ftxfont_open): Return a font-object. Adjusted for the change of
13037 struct font. Get underline_thickness and underline_position from
13038 font property. Don't update dpyinfo->smallest_font_height and
13039 dpyinfo->smallest_char_width.
13040 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13041 (ftxfont_draw): Adjusted for the change of struct font.
13043 * image.c (image_ascent): Don't include "charset.h". Include
13044 "character.h" and "font.h".
13046 * lisp.h (enum pvec_type): New member PREV_FONT.
13047 (Fassoc_string): EXFUN it.
13049 * print.c: Include font.h.
13050 (print_object): Handle font-related objects.
13052 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13053 conditionals. Don't check enable_font_backend. Delete all codes
13054 used only when USE_FONT_BACKEND is not defined.
13055 (handle_auto_composed_prop): Do nothing if it->f is not on a
13056 window system. Check how many following characters can be
13057 displayed by the same font.
13058 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13060 (get_char_face_and_encoding): Assign the whole encoding task to
13061 the `encode-char' method of a font driver.
13062 (fill_composite_glyph_string): Adjusted for the change of `struct
13063 face' and `struct glyph_string'.
13064 (fill_glyph_string): Likewise.
13065 (get_per_char_metric): Arguments changed.
13066 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13067 and `struct glyph_string'.
13068 (produce_stretch_glyph, calc_line_height_property)
13069 (x_produce_glyphs): Likewise.
13071 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13072 conditionals. Don't check enable_font_backend. Delete all codes
13073 used only when USE_FONT_BACKEND is not defined. Use
13074 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13075 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13077 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13079 (struct font_name): Deleted.
13080 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13081 (compare_fonts_by_sort_order): New function.
13082 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13083 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13085 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13086 compare_fonts_by_sort_order.
13087 (Fx_font_family_list): Call Ffont_family_list.
13088 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13089 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13090 (face_symbolic_slant, face_symbolic_swidth)
13091 (split_font_name_into_vector, build_font_name_from_vector)
13092 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13093 (font_rescale_ratio, split_font_name, build_font_name)
13094 (free_font_names, sort_fonts, x_face_list_fonts)
13095 (face_font_available_p, sorted_font_list, cmp_font_names)
13096 (font_list_1, concat_font_list, font_list, remove_duplicates):
13098 (Fx_list_fonts): Use Ffont_list.
13099 (LFACE_AVGWIDTH): Deleted.
13100 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13102 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13103 (set_lface_from_font_name): Delete it.
13104 (set_lface_from_font): Renamed from
13105 set_lface_from_font_and_fontset. Caller changed. Don't set
13106 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13108 (merge_face_vectors): Copy font-spec if necessary.
13109 Clear properties of the font-spec if necessary.
13110 (merge_face_ref): Clear properties of the font-spec if necessary.
13111 (Finternal_set_lisp_face_attribute): Likewise.
13112 (set_font_frame_param): Use font_load_for_lface to load a
13113 font-object, and call Fmodify_frame_parameters with it.
13114 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13115 font name by Ffont_xlfd_name.
13116 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13117 QCslant, and QCwidth.
13118 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13119 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13120 Compare fonts by EQ.
13121 (lookup_non_ascii_face): Deleted.
13122 (face_for_font): The 2nd argument changed.
13123 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13124 Check atomic font properties by case insensitive.
13125 (realize_non_ascii_face): Set face->overstrike correctly.
13126 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13127 (dump_realized_face): Get font name from
13128 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13130 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13131 conditionals. Don't check enable_font_backend. Delete all codes
13132 used only when USE_FONT_BACKEND is not defined.
13133 (xic_create_xfontset): Original code deleted and renamed from
13134 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13135 (x_make_gc): Don't set GCFont in GCs.
13136 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13138 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13139 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13140 get_font_repertory_func.
13142 * xfont.c: Include <stdlib.h> and "ccl.h".
13143 (struct xfont_info): New structure.
13144 (xfont_query_font): Deleted.
13145 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13146 moved from xterm.c.
13147 (xfont_driver): Adjusted for the change of struct font_driver.
13148 (compare_font_names): New function.
13149 (xfont_list_pattern): Sort font names case insensitively. Make
13150 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13151 (xfont_list): Return a list, not vector.
13152 (xfont_match): If the font doesn't have QCname property, generate
13153 a name from the other font properties.
13154 (xfont_open): Return a font-object. Adjusted for the change of
13155 struct font. Get underline_thickness and underline_position from
13156 font property. Don't update dpyinfo->smallest_font_height and
13157 dpyinfo->smallest_char_width.
13158 (xfont_close): Don't free struct font.
13159 (xfont_prepare_face): Adjusted for the change of struct font.
13160 (xfont_done_face): Deleted.
13161 (xfont_has_char): Adjusted for the change of struct font.
13162 (xfont_encode_char, xfont_draw): Likewise.
13163 (xfont_check): New function.
13165 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13167 (xftfont_match): Adjusted for the format change of font-entity.
13168 (xftfont_open): Adjusted for the format change of font-entity and
13169 font-object. Adjusted for the change of struct font. Return a
13170 font-object. Don't update dpyinfo->smallest_font_height and
13171 dpyinfo->smallest_char_width.
13172 (xftfont_close): Block input while calling XftFontClose.
13173 (xftfont_prepare_face): Don't block input while calling
13174 xftfont_get_colors. Adjusted for the change of struct font.
13175 (xftfont_shape): Return value of error case fixed.
13177 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13179 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13181 (FONT_WIDTH): Return (f)->max_width.
13182 (struct x_display_info): Delete member `font'.
13183 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13184 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13185 (struct x_output): Change type of `font' to `struct font *'.
13187 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13188 conditionals. Don't check enable_font_backend. Delete all codes
13189 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13190 (x_per_char_metric, x_encode_char): Deleted.
13191 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13192 (x_compute_glyph_string_overhangs): Adjusted for the change of
13194 (x_draw_glyph_string_foreground)
13195 (x_draw_composite_glyph_string_foreground): Likewise.
13196 (x_draw_glyph_string): Likewise. Use font->underline_position and
13197 font->underline_thickness.
13198 (x_new_font): Renamed from x_new_fontset2.
13199 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13200 (x_check_font): Call `check' method of a font driver.
13201 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13202 (x_query_font, x_get_font_repertory): Deleted.
13203 (x_find_ccl_program): Renamed and moved to xfont.c.
13204 (x_redisplay_interface): Adjusted for the change of `struct
13205 redisplay_interface'.
13207 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13208 conditionals. Don't check enable_font_backend. Delete all codes
13209 used only when USE_FONT_BACKEND is not defined. Surround non-used
13210 code by "#ifdef OLD_FONT" and "endif".
13211 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13213 * w32font.h (struct w32font_info): New member.
13214 (FONT_COMPAT): New macro.
13215 (w32font_open_internal): Prototype adjusted.
13217 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13218 OLD_FONT" and "endif".
13220 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13221 conditionals. Don't check enable_font_backend. Delete all codes
13222 used only when USE_FONT_BACKEND is not defined.
13223 (w32font_open): Return a font-object. Make a font-object by
13224 font_make_object. Adjusted for the change of struct w32font_info.
13225 (w32font_close): Don't free struct font. Adjusted for the change
13226 of struct w32font_info.
13227 (w32font_encode_char, w32font_text_extents, w32font_draw):
13228 Adjusted for the change of struct w32font_info.
13229 (w32font_draw): Likewise.
13230 (w32font_list_internal): Return a list, not vector.
13231 (w32font_open_internal): Change the 4th arg to font-object.
13232 Adjusted for the change of struct w32font_info and font-object format.
13233 (add_font_name_to_list): Don't downcase names.
13234 (w32_enumfont_pattern_entity): Make a font-entity by
13235 font_make_entity. Adjusted for the format change of font-entity.
13236 Use FONT_SET_STYLE to set a style-related font property. If a
13237 font is scalable, set avgwidth property to 0. Set font-entity
13238 property by font_put_extra.
13239 (font_matches_spec): Adjusted for the format change of font-entity.
13240 (w32_weight_table, w32_decode_weight): New variables.
13241 (w32_encode_weight): New function.
13242 (fill_in_logfont): Adjusted for the format change of font-spec.
13243 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13245 (w32font_driver): Adjusted for the change of struct font_driver.
13247 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13248 conditionals. Don't check enable_font_backend. Surround non-used
13249 code by "#ifdef OLD_FONT" and "endif".
13250 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13251 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13253 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13254 conditionals. Don't check enable_font_backend. Delete all codes
13255 used only when USE_FONT_BACKEND is not defined. Surround non-used
13256 code by "#ifdef OLD_FONT" and "endif".
13258 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13259 (uniscribe_open): Return value changed to font-object.
13260 Adjusted for the format change of font-object.
13261 (uniscribe_otf_capability): Adjusted for the change of struct font.
13262 (add_opentype_font_name_to_list): Don't downcase names.
13263 (uniscribe_font_driver): Adjusted for the change of struct
13266 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
13268 * dispnew.c (update_frame_1): Check if tty output is still valid
13269 before flushing it.
13271 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13273 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13276 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13278 * dired.c (file_name_completion): Tweak the code so as to always do it
13279 in a single pass. Tighten the scope of some variables.
13281 * dired.c (Qdefault_directory): New var.
13282 (file_name_completion): Use it instead of Fexpand_file_name.
13283 (syms_of_dired): Initialize it.
13285 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13287 * fileio.c (double_dollars): Remove dead code.
13289 2008-05-10 Eli Zaretskii <eliz@gnu.org>
13291 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13292 Mention w32-get-true-file-attributes in doc string.
13294 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13296 2008-05-09 Glenn Morris <rgm@gnu.org>
13298 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13301 2008-05-09 Eli Zaretskii <eliz@gnu.org>
13303 Support for reporting owner and group of each file on MS-Windows:
13304 * dired.c (stat_uname, stat_gname): New functions, with special
13305 implementation for w32.
13306 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13308 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13309 (dflt_group_name): New static variable.
13310 (dflt_group): Rename from the_group.
13311 (init_user_info): Init dflt_group fields. Get user's group name
13312 from LookupAccountSid.
13313 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13314 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13315 New initialization states.
13316 (globals_of_w32): Initialize them to zero. Initialize the default
13317 group name to "None".
13318 (GetFileSecurity_Name): New global var, the name of the function
13319 to call for GetFileSecurity.
13320 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13321 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13322 (get_file_security, get_security_descriptor_owner)
13323 (get_security_descriptor_group, is_valid_sid)
13324 (get_file_security_desc, get_rid, get_name_and_id)
13325 (get_file_owner_and_group): New functions.
13326 (stat): Use get_file_security_desc and get_file_owner_and_group to
13327 report the owner and primary group of each file. Don't ignore the
13328 high 32 bits of file's size, now that st_size is 64-bit wide.
13329 Fix test when to get true file attributes.
13330 (init_user_info): Use get_rid instead of equivalent inline code.
13331 (fstat): Don't ignore the high 32 bits of file's size.
13333 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
13335 * image.c (png_load): Use correct bit-depth for setting background
13338 2008-05-08 Eli Zaretskii <eliz@gnu.org>
13340 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13343 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
13345 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13347 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13349 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13350 because the original parameters are in pure storage now.
13351 (mac_window): Remove unused params. Update callers.
13353 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13355 * lread.c (substitute_object_recurse): Use lower-level primitives.
13356 Don't signal errors when traversing sub-char-tables.
13357 Don't loop over all the possible characters when traversing char-tables.
13359 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13360 just like we do in print.c.
13362 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13364 * minibuf.c (Ftry_completion): Remove code left over from when we used
13365 scmp instead of Fcompare_strings.
13367 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
13369 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13371 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13373 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13374 Create bitmap context in native byte order.
13376 * macterm.c (XDrawLine)
13377 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13378 context in native byte order.
13380 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13382 * config.in: Regenerate.
13384 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13385 New definitions for Image I/O support.
13386 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13387 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13388 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13389 (mac_data_provider_release_data, image_load_image_io)
13390 [USE_MAC_IMAGE_IO]: New functions.
13391 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13392 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13393 (init_image_func_pointer) [MAC_OSX]: Remove function.
13394 (image_load_quartz2d) [MAC_OSX]: Check availability of
13395 CGImageCreateWithPNGDataProvider at compile time.
13396 Use lowercase `false' for boolean constant.
13397 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13398 Use image_load_image_io.
13399 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13400 Don't check MyCGImageCreateWithPNGDataProvider.
13401 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13402 Don't call init_image_func_pointer.
13404 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13406 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13407 Make variable non-static.
13408 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13409 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13411 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13412 (RED_FROM_ULONG): Mask off higher bits.
13413 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13415 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13416 Include AvailabilityMacros.h.
13417 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13418 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13420 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13422 * chartab.c (Fset_char_table_range): If range is t, really set all
13423 chars to that value.
13425 2008-05-03 Eli Zaretskii <eliz@gnu.org>
13427 * dired.c (Ffile_attributes): Don't allow the device number become
13430 2008-05-02 Daiki Ueno <ueno@unixuser.org>
13432 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13434 2008-05-02 Juri Linkov <juri@jurta.org>
13436 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13437 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13438 DEFAULT argument as a list of default values in docstrings.
13440 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
13442 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13444 2008-05-01 Martin Rudalics <rudalics@gmx.at>
13446 * dispnew.c (change_frame_size_1): Preserve small windows when
13447 shrinking frames by calling set_window_height|width with third
13450 * window.h (struct window): Replace field too_small_ok by field
13451 resize_proportionally.
13453 * window.c (make_window): Initialize resize_proportionally.
13454 (enlarge_window): Temporarily set resize_proportionally to make
13455 sure that shrink_windows does scale the window proportionally.
13456 (shrink_windows): When window has resize_proportionally set try
13457 to shrink it proportionally by stealing from other windows.
13458 (struct saved_window, Fset_window_configuration)
13459 (compare_window_configurations): Handle resize_proportionally.
13460 (WINDOW_TOTAL_SIZE): New macro.
13461 (window_min_size, shrink_windows, size_window): Use it.
13462 (check_min_window_sizes): Remove. Invalid values of
13463 window-min-height|width are handled by window_min_size_2 now.
13464 (size_window, Fsplit_window, enlarge_window)
13465 (adjust_window_trailing_edge, grow_mini_window): Don't call
13466 check_min_window_sizes.
13467 (window_min_size_2, window_min_size_1, window_min_size):
13468 New argument safe_p for retrieving "safe" minimum sizes.
13469 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13470 (adjust_window_trailing_edge, grow_mini_window):
13471 Adjust arguments of window_min_size... functions.
13472 (shrink_windows): Argument min_size removed. New argument
13473 safe_p allows shrinking windows to their safe minimum sizes.
13474 Calculate minimum size and decide whether a window shall be
13475 deleted for each window individually.
13476 (size_window): When nodelete_p equals 2, tell shrink_windows to
13477 delete windows only if their new minimum size is no more safe.
13478 (shrink_window_lowest_first): Call window_min_size_1 to make
13479 sure to preserve modeline of bottom-most window when resizing
13481 (Fset_window_configuration, Fcurrent_window_configuration)
13482 (compare_window_configurations): Do not handle
13483 window-min-height|width any more.
13484 (syms_of_window): Clarify window-min-height|width doc-strings.
13486 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13488 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13489 some more. Copy some of the code from Ftry_completions.
13490 Remove special case code that dates back to initial revision when the
13491 slash was only added when necessary and that can't trigger nowadays.
13493 2008-04-27 Kenichi Handa <handa@m17n.org>
13495 * font.c (font_prop_validate): Signal `error' instead of `font'.
13497 2008-04-29 Jason Rumney <jasonr@gnu.org>
13499 * w32fns.c (Fw32_battery_status): New defun.
13500 (syms_of_w32fns): Defsubr it.
13502 2008-04-28 Andreas Schwab <schwab@suse.de>
13504 * dired.c (file_name_completion): Fix another mixing of encoded
13507 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
13509 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13511 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
13513 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13515 2008-04-27 Andreas Schwab <schwab@suse.de>
13517 * dired.c (file_name_completion): Fix inappropriate mixing of
13518 encoded and decoded names.
13520 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13522 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13524 2008-04-26 Eli Zaretskii <eliz@gnu.org>
13526 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13527 2008-03-31, it's not needed anymore with `struct stat' definition
13528 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13529 for the same reasons.
13531 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13533 * m/sparc.h: Additional redefinitions for GNU/Linux.
13535 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13537 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13538 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13539 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13540 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13541 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13542 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13543 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13546 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13547 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13548 (mac_ax_number_of_characters): Add externs.
13549 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13550 [USE_MAC_TSM]: Likewise.
13551 (mac_handle_text_input_event) [MAC_OSX]:
13552 Handle kEventTextInputOffsetToPos for no active input area case.
13553 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13554 (mac_handle_document_access_event)
13555 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13556 (install_application_handler) [MAC_OSX]: Register handlers for
13557 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13558 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13559 Register mac_handle_document_access_event.
13561 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13562 Make functions non-static.
13564 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13566 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13567 (read_file_name_completion_ignore_case, insert_default_directory)
13568 (Qdefault_directory): Move to minibuffer.el.
13569 (Fread_file_name): Call the new `read-file-name' instead.
13571 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13573 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13574 Make function non-static.
13575 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13577 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13578 Move to mactoolbox.c.
13579 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13581 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13582 (mac_rect_make): New macro.
13584 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13586 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13587 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13588 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13589 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13591 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13592 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13593 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13594 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13595 instead of WindowRef in argument type.
13596 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13597 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13598 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13599 instead of DISPLAY. All uses changed.
13600 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13601 (x_calc_absolute_position): Simplify so as not to use
13602 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13604 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13605 instead of WindowRef in argument type.
13606 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13607 [TARGET_API_MAC_CARBON]: Remove externs.
13608 (create_apple_event, mac_event_parameters_to_lisp)
13609 [TARGET_API_MAC_CARBON]: Add externs.
13611 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13612 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13613 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13615 (x_activate_menubar): Remove extern for saved_menu_event_location.
13616 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13619 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13621 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13622 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13624 2008-04-23 Jason Rumney <jasonr@gnu.org>
13626 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13627 attributes only for local files.
13629 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13632 2008-04-22 Juri Linkov <juri@jurta.org>
13634 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13635 read-buffer-to-switch instead of using the letter "B".
13637 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13639 * fileio.c (Qdefault_directory): New variable.
13640 (Fread_file_name): Use it to pass `dir' to the completion functions.
13642 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
13644 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13646 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13648 * keyboard.c (Vpre_help_message): Remove.
13649 (show_help_echo): Remove default C code.
13651 * dired.c (directory_files_internal, file_name_completion):
13652 Only call ENCODE_FILE if the string is indeed decoded.
13654 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13656 * Makefile.in (TOOLKIT_DEFINES): Remove.
13657 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13659 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13661 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13662 (mactoolbox.o): New target.
13664 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13665 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13667 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13668 Use mac_set_frame_window_background instead of XSetWindowBackground.
13669 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13670 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13671 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13672 instead of SetWindowTitleWithCFString.
13673 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13674 Move function to mactoolbox.c.
13675 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13676 Use mac_set_window_modified instead of SetWindowModified.
13677 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13678 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13679 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13680 FrontNonFloatingWindow. Use mac_activate_window instead of
13681 ActivateWindow. Use mac_active_non_floating_window instead of
13682 ActiveNonFloatingWindow.
13683 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13684 Use mac_show_hourglass and mac_hide_hourglass.
13685 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13686 instead of GetGlobalMouse.
13687 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13688 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13689 Use mac_bring_window_to_front instead of BringToFront.
13690 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13692 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13693 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13694 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13697 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13698 (XtPointer): Move typedef from macmenu.c.
13699 (enum button_type): Move enum from macmenu.c.
13700 (widget_value): Move typedef from macmenu.c.
13701 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13702 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13703 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13704 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13705 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13706 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13707 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13708 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13709 (Selection): Move typedef from macselect.c.
13710 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13712 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13713 (mac_is_window_collapsed, mac_bring_window_to_front)
13714 (mac_send_window_behind, mac_hide_window, mac_show_window)
13715 (mac_collapse_window, mac_front_non_floating_window)
13716 (mac_active_non_floating_window, mac_activate_window)
13717 (mac_move_window_structure, mac_move_window, mac_size_window)
13718 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13720 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13721 (enum mac_menu_kind): Move enum to mactoolbox.c.
13722 (min_menu_id): Move variable to mactoolbox.c.
13723 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13724 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13725 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13726 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13727 [TARGET_API_MAC_CARBON]: Likewise.
13728 (XtPointer): Move typedef to macgui.h.
13729 (enum button_type): Move enum to macgui.h.
13730 (widget_value): Move typedef to macgui.h.
13731 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13732 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13733 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13734 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13735 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13736 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13737 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13738 (popup_activated_flag): Make variable non-static.
13739 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13740 (add_menu_item, fill_menu, dispose_menus):
13741 Move functions to mactoolbox.c.
13742 (restore_show_help_function, menu_target_item_handler)
13743 (install_menu_target_item_handler, mac_handle_dialog_event)
13744 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13745 [TARGET_API_MAC_CARBON]: Likewise.
13746 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13747 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13748 (find_and_call_menu_selection, name_is_separator): Make function
13750 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13752 (set_frame_menubar): Don't call install_menu_quit_handler.
13753 (menu_item_selection): New variable.
13754 (mac_menu_show): Use create_and_show_popup_menu.
13755 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13756 selection but set variable menu_item_selection. All uses changed.
13757 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13758 Call install_menu_quit_handler. Move to mactoolbox.c.
13760 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13761 (Selection): Move typedef to macgui.h.
13762 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13763 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13764 Make variables non-static.
13765 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13766 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13767 Make functions non-static.
13768 (Vmac_service_selection) [MAC_OSX]: Likewise.
13769 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13770 (mac_valid_selection_target_p, mac_clear_selection)
13771 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13772 (mac_put_selection_value, mac_selection_has_target_p)
13773 (mac_get_selection_value, mac_get_selection_target_list)
13774 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13775 Move functions to mactoolbox.c.
13776 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13778 (copy_scrap_flavor_data, mac_handle_service_event)
13779 (install_service_handler) [MAC_OSX]: Likewise.
13780 (syms_of_macselect) <Vmac_dnd_known_types>:
13781 Use mac_dnd_default_known_types.
13783 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13784 Move to mactoolbox.c.
13785 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13786 (Fx_selection_owner_p): Add EXFUN.
13787 (install_window_handler, remove_window_handler, XSetWindowBackground):
13789 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13790 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13791 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13792 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13793 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13794 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13795 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13796 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13797 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13798 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13799 (mac_valid_selection_target_p, mac_clear_selection)
13800 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13801 (mac_put_selection_value, mac_selection_has_target_p)
13802 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13803 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13804 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13805 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13806 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13807 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13808 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13809 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13810 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13812 * mactoolbox.c: New file.
13814 2008-04-18 Jason Rumney <jasonr@gnu.org>
13816 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13818 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13820 * character.c (Fmultibyte_char_to_unibyte):
13821 Return latin1 chars unchanged.
13823 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13824 relocated if it points to `name'.
13826 2008-04-17 Kenichi Handa <handa@m17n.org>
13828 * data.c (Faset): Allow setting a multibyte character in an
13829 ASCII-only unibyte string.
13831 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13833 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13835 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13838 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
13840 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13841 (Fchar_direction): Add usage in the docstring.
13843 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
13845 * keyboard.c (read_key_sequence): Remove always-true checks.
13847 2008-04-14 Jason Rumney <jasonr@gnu.org>
13849 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13850 compatibility struct, for better underline positioning.
13852 2008-04-13 David Hansen <david.hansen@gmx.net>
13854 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13857 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13859 * m/hp800.h (XUINT, XSET): Remove.
13861 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
13863 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13866 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13868 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13869 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13871 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13873 * keymap.h (map_keymap_canonical): Declare.
13874 * xmenu.c (single_keymap_panes): Use it.
13876 2008-04-11 Glenn Morris <rgm@gnu.org>
13878 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13879 set the target's value to that of the alias.
13881 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13883 * term.c (set_tty_color_mode): Left over typo.
13885 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
13887 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13888 only after check for file name handler functions. Signal, when
13889 native functionality is not supported.
13890 (syms_of_fileio): Declare it unconditionally.
13892 2008-04-10 Jason Rumney <jasonr@gnu.org>
13894 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13895 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13897 * w32.c (logon_network_drive): Also logon to remote drives that
13898 are mapped to drive letters.
13900 2008-04-10 Glenn Morris <rgm@gnu.org>
13902 * xdisp.c (truncate-partial-width-windows): Doc fix.
13904 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13906 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13907 Move functions to minibuffer.el.
13908 (syms_of_fileio): Don't declare them.
13910 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13912 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13913 (syms_of_minibuf): Remove its initialization.
13915 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13917 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
13919 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13921 2008-04-09 Jason Rumney <jasonr@gnu.org>
13923 * makefile.w32-in (distclean): Delete makefile too.
13924 (maintainer-clean): New target.
13926 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13928 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13929 for new font backend and composite cases.
13931 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13933 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13934 Most of the code moved to run_timers.
13935 (do_pending_atimers): Call run_timers.
13936 (run_timers): New function.
13938 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13941 * process.c (wait_reading_process_output): The same as above.
13943 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13945 * minibuf.c (last_exact_completion): Remove variable.
13946 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13947 (complete_and_exit_1, complete_and_exit_2)
13948 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13949 (Fdisplay_completion_list, display_completion_list_1)
13950 (Fminibuffer_completion_help, Fself_insert_and_exit)
13951 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13953 (syms_of_minibuf): Remove corresponding initializations.
13955 * keyboard.c (Qdeactivate_mark): New var.
13956 (command_loop_1): Use it to call `deactivate-mark'.
13957 (syms_of_keyboard): Initialize it.
13959 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13961 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13962 Don't call set_tty_color_mode.
13963 (store_frame_param): Reset previous_frame rather than call
13964 set_tty_color_mode.
13965 * term.c (set_tty_color_mode): Rewrite.
13966 * dispextern.h (set_tty_color_mode): New type.
13967 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13969 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13971 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13972 for generic chars, which do not exist any more in emacs-unicode.
13974 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
13976 * coding.c (detect_coding_emacs_mule)
13977 (Ffind_operation_coding_system): Fix typo.
13979 2008-04-08 Jason Rumney <jasonr@gnu.org>
13981 * w32uniscribe.c (SNAME): Extract only symbol name.
13983 * w32font.h (struct w32_metric_cache): New struct.
13984 (w32font_info): Use it.
13985 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13986 (CACHE_BLOCKSIZE): New constants.
13988 * w32font.c (Qja, Qko, Qzh): New symbols.
13989 (syms_of_w32font): Initialise them.
13990 (font_matches_spec): Use them to filter by language.
13991 (recompute_cached_metrics): Remove function.
13992 (compute_metrics, clear_cached_metrics): New functions.
13993 (w32font_encode_char): Use them to manage metric cache.
13994 (w32font_text_extents): Cache metrics for all glyphs on demand.
13995 Delay converting glyph indices to WORD until needed.
13996 (w32font_open_internal): Initialize metric cache to empty.
13997 (registry_to_w32_charset): Charset should always be a symbol.
13998 (fill_in_logfont, list_all_matching_fonts): Family should
13999 always be a symbol.
14001 2008-04-06 Jason Rumney <jasonr@gnu.org>
14003 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14004 Give up if glyph indices not supported. Use uniscribe obtained
14005 ABC widths for individual metrics. Map glyph clusters back to
14006 characters using fClusterStart flag. Return number of glyphs
14007 produced, not chars processed.
14008 (uniscribe_shape): Map char at FROM to current glyph.
14010 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14012 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14013 Use SetMenuItemHierarchicalMenu.
14015 2008-04-05 Jason Rumney <jasonr@gnu.org>
14017 * image.c (pbm_load): Allow color values up to 65535.
14018 Throw an error if max_color_idx is outside the supported range.
14019 Report an error when image size is invalid.
14020 Read two bytes at a time when raw images have max_color_idx above 255.
14022 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14024 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14025 append "CCL: Quitted" when the CCL program is quitted.
14026 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14028 * ccl.h (struct ccl_program): New member quit_silently.
14030 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
14032 * search.c (compile_pattern_1): Treat non-nil and non-string of
14033 search-spaces-regexp as nil.
14035 * minibuf.c (Fassoc_string): Tweak docstring.
14037 2008-04-05 Eli Zaretskii <eliz@gnu.org>
14039 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14040 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14041 2008-03-14 to force inode be positive.
14043 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14044 _S_* ones, since we now use our own sys/stat.h.
14045 (stat, fstat): Don't mangle the inode number.
14046 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14048 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14050 * frame.h (struct frame): Give one more bit to `visible' since we use
14051 values larger than 1 to indicate obscured frames on ttys.
14053 * keymap.c (Qkeymap_canonicalize): New var.
14054 (Fmap_keymap_internal): New fun.
14055 (describe_map): Use keymap-canonicalize.
14057 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14058 (Fundo_boundary): Set them.
14059 (syms_of_undo): Initialize them.
14060 (record_point): Use them instead of last_point_position*.
14061 (last_undo_buffer): Change type.
14063 2008-04-04 Jason Rumney <jasonr@gnu.org>
14065 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14066 (recompute_cached_metrics): Don't set ascent and descent per char.
14068 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14069 (uniscribe_check_otf): Add GC protection before consing.
14070 Rearrange loop for counting features.
14072 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14074 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14075 buffer with byte-size of source buffer.
14077 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
14079 * callint.c (Fcall_interactively): Handle temporary region even
14080 when shift-select-mode is off.
14082 2008-04-03 Jason Rumney <jasonr@gnu.org>
14084 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14086 2008-04-03 Kenichi Handa <handa@m17n.org>
14088 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14089 (CATEGORY_MASK_UTF_16): Likewise.
14090 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14092 (detect_coding): Add null-byte detection for a binary file.
14093 (detect_coding_system): Likewise.
14095 2008-04-03 Jason Rumney <jasonr@gnu.org>
14097 * w32uniscribe.c: New file.
14099 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14101 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14103 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14104 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14105 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14106 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14107 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14108 (Qphonetic): New symbols.
14109 (syms_of_w32font): Initialize them.
14110 (font_supported_scripts): Use them.
14111 (w32font_list_family): List all charsets.
14112 (w32font_text_extents, recompute_cached_metrics): Fix metric
14114 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14115 Give opentype fonts their own format.
14116 (font_matches_spec): New arguments backend and logfont.
14117 Handle :otf spec for uniscribe backend.
14118 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14119 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14121 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14123 (globals_of_w32fns): Initialize uniscribe font backend.
14125 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14127 (w32uniscribe.$(O)): New file to build.
14128 (FONT_OBJ): Include w32uniscribe.$(O).
14129 (LIBS): Add uniscribe libraries.
14131 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14133 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
14135 * callint.c (Vshift_select_mode): New var.
14136 (Finteractive): Document new ^ spec.
14137 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14140 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14141 (command_loop_1): Avoid running the direct display versions of
14142 forward-char and backward-char if shift-selection may occur.
14143 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14144 shift-translation takes place.
14146 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14147 avoid clobbering by define-minor-mode.
14149 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14150 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14152 * syntax.c (Fforward_word): Add ^ interactive spec.
14154 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14155 (Fscroll_right): Add ^ interactive spec.
14157 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14159 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14161 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14163 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14165 2008-03-31 Juri Linkov <juri@jurta.org>
14167 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14169 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14171 * gtkutil.c (xg_set_geometry): Fix indentation.
14172 (xg_resize_outer_widget): Remove.
14173 (x_wm_size_hint_off): Fix indentation.
14174 (xg_frame_set_char_size): Call flush_and_sync after
14176 (x_wm_set_size_hint): Pass NULL as geometry window to
14177 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14178 Add menu bar and tool bar height to base height.
14179 (xg_update_frame_menubar, free_frame_menubar)
14180 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14181 (update_frame_tool_bar, free_frame_tool_bar):
14182 Change xg_resize_outer_widget to xg_frame_set_char_size.
14184 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
14186 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14187 (Fdbus_call_method): New parameter TIMEOUT.
14188 (dbus-send-signal): Optimize UNGCPRO call.
14190 2008-03-29 Juri Linkov <juri@jurta.org>
14192 * window.c (Fdisplay_buffer): Move call to
14193 Vsplit_window_preferred_function out of conditions that check
14194 if window is eligible for vertical splitting.
14195 When Vsplit_window_preferred_function is non-nil, call it and use
14196 its non-nil return value as window. Otherwise, continue doing
14197 vertical splitting using Fsplit_window with arg horflag=nil.
14198 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14199 default value from `split-window' to nil.
14201 2008-03-29 Juri Linkov <juri@jurta.org>
14203 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14204 for interactive code letters 'b' and 'B'.
14206 2008-03-29 Eli Zaretskii <eliz@gnu.org>
14208 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14211 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14213 * keyboard.c (pending_funcalls): New var.
14214 (timer_check): Run it.
14215 (syms_of_keyboard): Initialize it.
14216 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14217 (Vdelete_terminal_functions): New vars.
14218 (syms_of_terminal): Initialize them.
14219 (Fdelete_terminal): Run delete-terminal-functions.
14220 * xdisp.c (safe_eval): Rewrite.
14221 (safe_call2): New fun.
14222 * frame.c (Qdelete_frame_functions): New var.
14223 (syms_of_frame): Initialize it.
14224 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14225 * lisp.h (safe_call2, pending_funcalls): Declare.
14227 2008-03-28 Andreas Schwab <schwab@suse.de>
14229 * indent.c (Fmove_to_column): Move declaration before statements.
14231 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14233 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14234 (struct frame): Use bit fields for boolean vars.
14236 * process.c (server_accept_connection): Simplify naming.
14237 (emacs_get_tty_pgrp): Use SDATA.
14239 * coding.c (decode_coding_object): Fix last change.
14241 2008-03-27 Jason Rumney <jasonr@gnu.org>
14243 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14245 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14247 * charset.c (Fdefine_charset_internal): Change the way of
14248 registering charsets in Vcharset_order_list.
14249 (syms_of_charset): Make the charset `eight-bit' supplementary.
14251 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14253 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14254 operations, to avoid having the difference between pointers
14257 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14259 * indent.c (check_display_width): New fun.
14260 (scan_for_column): Use it.
14262 * data.c (syms_of_data): Mark most-positive-fixnum and
14263 most-negative-fixnum as constants.
14265 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14267 * indent.c (scan_for_column): Extract from current_column_1.
14268 Merge with the same code from Fmove_to_column.
14269 (current_column_1, Fmove_to_column): Use it.
14271 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14273 * keymap.c (map_keymap_internal): New fun.
14274 (map_keymap): Use it.
14275 (Fmap_keymap_internal): New fun.
14276 (Fmap_keymap): Remove left-out test from before make_save_value.
14278 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14280 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14283 * process.h (struct Lisp_Process): Remove filter_multibyte.
14284 * process.c (QCfilter_multibyte): Remove.
14285 (setup_process_coding_systems): Don't use filter_multibyte.
14286 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14287 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14288 (Fset_process_filter_multibyte): Change the coding-system to
14289 approximate the previous behavior.
14290 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14293 * coding.c (decode_coding_object): When not decoding into a buffer,
14294 obey the coding system's preference of (uni|multi)byte.
14296 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14298 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14299 every char is changed and has a different byte-length.
14300 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14301 Fix int -> EMACS_INT.
14303 2008-03-23 David Hansen <david.hansen@gmx.net>
14305 * dbusbind.c (xd_read_message): Remove extra copying of message
14306 strings. Check for NULL `interface' or `member'.
14308 2008-03-22 Eli Zaretskii <eliz@gnu.org>
14310 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14311 cFileName a file name that includes `?' characters, use the 8+3
14312 alias in cAlternateFileName instead.
14314 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14316 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14318 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14320 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14321 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14322 work on current_buffer only instead (that was already the case
14323 for some of the code anyway).
14324 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14325 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14326 (SET_PT, SET_PT_BOTH): Adjust.
14327 * intervals.h (set_point, temp_set_point, set_point_both)
14328 (temp_set_point_both): Remove redundant declarations.
14330 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14332 * fileio.c (Finsert_file_contents):
14333 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14334 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14335 when buffer != current_buffer anyway.
14337 2008-03-20 Andreas Schwab <schwab@suse.de>
14339 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14342 2008-03-19 Jason Rumney <jasonr@gnu.org>
14344 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14345 (syms_of_w32fns): Initialize them.
14346 (HOURGLASS_ID): New constant.
14347 (x_window_to_frame): Don't check hourglass_window.
14348 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14349 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14350 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14351 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14352 Only change the cursor if hourglass is not active.
14353 (Fx_create_frame): Initialize frame's current_cursor.
14354 (hourglass_atimer): Remove.
14355 (hourglass_started): New function.
14356 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14357 (show_hourglass): Adapt to w32, changing argument to frame.
14359 * w32term.h (struct w32_output): Remove hourglass_window.
14360 Add current_cursor.
14362 * eval.c (call_debugger, Fsignal):
14363 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14364 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14365 (Fexecute_extended_command, cancel_hourglass_unwind):
14366 * minibuf.c (read_minibuf):
14367 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14369 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14371 * window.c (run_funs): New fun.
14372 (run_window_configuration_change_hook): Use it to run the buffer-local
14373 and the global part of the hook.
14375 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14376 (unwind_format_mode_line): Restore selected window.
14377 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14379 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14381 * editfns.c (Fchar_equal): Check they are valid characters.
14383 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14385 2008-03-17 Andreas Schwab <schwab@suse.de>
14387 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14390 * lisp.h (Fbuffer_list): Declare.
14392 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
14394 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14395 handlebox_widget is != 0.
14397 2008-03-16 Juri Linkov <juri@jurta.org>
14399 * callint.c (Fcall_interactively): For interactive code letters
14400 'b' and 'B' put the buffer list into the list of default "future"
14401 values of the minibuffer.
14403 2008-03-16 Andreas Schwab <schwab@suse.de>
14405 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14408 * regex.c (re_match_2_internal): Correct matching of a charset
14409 against latin-1 characters.
14411 2008-03-16 Kenichi Handa <handa@m17n.org>
14413 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14414 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14415 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14416 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14417 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14418 CHAR_STRING_ADVANCE.
14419 (produce_chars): Fix for the case that the source and the
14420 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14421 instead of CHAR_STRING_ADVANCE.
14422 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14423 STRING_CHAR_ADVANCE.
14425 2008-03-15 Andreas Schwab <schwab@suse.de>
14427 * regex.c (re_match_2_internal): Correct matching of eight bit
14428 characters in unibyte strings.
14430 2008-03-15 Martin Rudalics <rudalics@gmx.at>
14432 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14433 at end of range when it coincides with the end of the buffer.
14435 2008-03-14 Eli Zaretskii <eliz@gnu.org>
14437 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14439 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14441 2008-03-14 Jason Rumney <jasonr@gnu.org>
14443 * editfns.c (initial_tz): New variable.
14444 (syms_of_editfns): Initialize it.
14445 (Fset_time_zone_rule): Set it when first called.
14446 Use it when TZSTRING is nil.
14448 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14449 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14450 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14451 (globals_of_w32fns): Initialize them.
14452 (compute_tip_xy): Use them to position tooltips.
14454 2008-03-14 Glenn Morris <rgm@gnu.org>
14456 * emacs.c (main): Revert previous change.
14457 (standard_args): Revert -internal-script back to -scriptload,
14458 and remove the long-option form.
14460 2008-03-13 Glenn Morris <rgm@gnu.org>
14462 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14463 Remove option -enable-font-backend.
14465 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14467 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14469 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14471 * xterm.c (x_connection_closed): For GTK: If this is the last
14472 terminal just exit without closing the display.
14474 2008-03-11 Jason Rumney <jasonr@gnu.org>
14476 * w32font.c (w32font_full_name): Use floor to round.
14478 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
14480 * sound.c (alsa_configure): Declare vol at beginning of block.
14482 * fontset.c (Ffontset_info): Remove extra semicolon.
14484 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14486 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14487 size of resulting string.
14489 2008-03-10 Jason Rumney <jasonr@gnu.org>
14491 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14493 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14495 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14496 Don't pretend as if characters with display property haven't been
14497 consumed for string-replacing-string case.
14499 2008-03-08 Kim F. Storm <storm@cua.dk>
14501 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14502 (get_next_display_element, next_element_from_string)
14503 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14505 2008-03-08 Andreas Schwab <schwab@suse.de>
14507 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14509 2008-03-06 Jason Rumney <jasonr@gnu.org>
14511 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14512 when charset not specified. Only translate ANSI to unicode when
14513 font_type is truetype.
14514 (w32font_coverage_ok): New function.
14515 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14517 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14519 * lread.c (Fread_char): Resolve modifiers.
14520 (Fread_char_exclusive): Likewise.
14522 * character.c (char_resolve_modifier_mask): New function.
14523 (char_string): Use char_resolve_modifier_mask.
14524 (Fchar_resolve_modifiers): New function.
14525 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14528 2008-03-04 Jason Rumney <jasonr@gnu.org>
14530 * makefile.w32-in: Always include w32font.c in the build.
14531 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14533 2008-03-04 Andreas Schwab <schwab@suse.de>
14535 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14536 (versionclean): Likewise.
14538 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
14540 * .cvsignore: Add oo.
14542 2008-03-03 Andreas Schwab <schwab@suse.de>
14544 * coding.c (decode_coding_object): Inhibit gap shrinking while
14547 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14549 * w32term.c: Remove unused include "gnu.h".
14550 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14552 * gnu.h: Rename to ...
14553 * emacs-icon.h: ... this.
14554 * xterm.c: Use emacs-icon.h instead of gnu.h.
14555 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14557 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
14559 * w32font.c: Include math.h.
14561 2008-03-03 Jason Rumney <jasonr@gnu.org>
14563 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14564 Compute options separately.
14565 (w32font_open_internal): Set glyph_idx before caching metrics.
14567 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14568 Define if system headers don't.
14569 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14570 (w32font_encode_char): Don't declare here.
14572 * w32font.c (Quniscribe, QCformat): New symbols.
14573 (syms_of_w32font): Define them.
14574 (w32font_has_char): Indicate uncertainty.
14575 (w32font_encode_char): Encode as glyph point. Make static.
14576 (recompute_cached_metrics): New function.
14577 (w32font_open_internal): Use it. Set font to use glyph points
14578 initially. Set format based on type of font.
14579 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14580 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14581 on it. Set format based on information available here.
14582 (add_font_entity_to_list): Identify backend based on opentype_only.
14584 2008-03-02 Andreas Schwab <schwab@suse.de>
14586 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14588 * coding.c (decode_coding_big5, produce_chars):
14589 Fix typos in last change.
14591 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14595 2008-03-02 Kenichi Handa <handa@m17n.org>
14597 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14598 `dos', don't decode '\r' if that is the last in the source.
14599 (decode_coding_utf_16, decode_coding_emacs_mule)
14600 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14601 (decode_coding_raw_text, decode_coding_charset): Likewise.
14602 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14604 2008-03-01 Jason Rumney <jasonr@gnu.org>
14606 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14608 2008-03-01 Kim F. Storm <storm@cua.dk>
14610 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14612 2008-03-01 Jason Rumney <jasonr@gnu.org>
14614 * w32font.c (w32font_full_name): New function.
14615 (w32font_open_internal): Use it.
14617 2008-03-01 Kim F. Storm <storm@cua.dk>
14619 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14621 2008-03-01 Jason Rumney <jasonr@gnu.org>
14623 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14625 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14627 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14628 xg_frame_resized when the event is for the edit widget.
14630 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14632 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14634 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14635 operations on widgets here. Just set frame size if needed.
14636 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14637 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14638 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14640 (xg_create_tool_bar): Move attachment of the tool bar to
14641 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14642 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14644 2008-03-01 Jason Rumney <jasonr@gnu.org>
14646 * w32fns.c (w32_msg_pump): Disable debug code.
14648 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14650 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14652 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14654 * xdisp.c (next_overlay_string): Don't set
14655 overlay_strings_at_end_processed_p if we're currently reading from
14658 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14660 * xdisp.c (get_overlay_strings_1): Fix typo.
14662 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14664 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14666 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14668 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14670 * xdisp.c (display_mode_element): Cancel the previous change.
14671 (decode_mode_spec): Likewise.
14672 (handle_auto_composed_prop): Don't make composition if it->string
14675 2008-02-27 Kim F. Storm <storm@cua.dk>
14677 * lisp.h (GLYPH): Change type from int to struct with separate char
14678 and face_id members.
14679 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14680 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14681 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14682 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14683 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14684 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14685 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14686 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14687 handle new Lisp glyph code encoding, either an integer or a cons.
14689 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14690 (GLYPH_ALIAS): Delete.
14691 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14692 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14693 (GLYPH_FROM_CHAR): Replace macro by ...
14694 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14696 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14697 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14698 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14699 (GLYPH_INVALID_P): New macro.
14700 (spec_glyph_lookup_face): Update prototype.
14702 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14703 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14704 new glyph code encoding.
14705 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14706 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14708 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14709 Adapt to new glyph type and new glyph code encoding.
14711 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14713 * indent.c (current_column, current_column_1, Fmove_to_column)
14714 (compute_motion): Adapt to new glyph code encoding.
14716 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14718 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
14720 * process.c (wait_reading_process_output): Check for window
14721 changes caused by timers.
14722 Suggested by Johan Bockgård.
14724 2008-02-27 Glenn Morris <rgm@gnu.org>
14726 * emacs.c (USAGE1): Add `--disable-font-backend'.
14728 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14730 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14731 is made to the buffer.
14733 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14735 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14736 (face_at_string_position):
14737 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14738 (face_at_string_position):
14739 * xdisp.c (display_string, next_overlay_change):
14740 * buffer.h (overlays_at):
14741 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14744 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
14746 * editfns.c (Fformat): Doc fix.
14748 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
14750 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14751 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14752 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14754 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14756 * buffer.c (Fbuffer_swap_text): New function.
14757 (syms_of_buffer): Defsubr it.
14759 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
14761 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14763 2008-02-25 Jason Rumney <jasonr@gnu.org>
14765 * w32font.c (w32font_draw): Draw one character at a time when padding.
14767 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14769 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14770 Handle a nil arg. Use run_window_configuration_change_hook.
14771 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14772 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14773 Use run_window_configuration_change_hook.
14775 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14777 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14780 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14782 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14783 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14784 if the glyph in the font is zero pixel with.
14786 * dispextern.h (struct glyph_string): New member padding_p.
14788 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14790 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14792 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14794 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14796 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14798 2008-02-25 Jason Rumney <jasonr@gnu.org>
14800 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14802 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14804 Allow fine-grained image-cache flushing.
14805 * dispextern.h (struct image): Add `dependencies' field.
14806 (clear_image_caches): Change arg to Lisp_Object.
14807 * image.c (make_image): Initialize `dependencies' field.
14808 (clear_image_cache): Change arg to allow fine-grained flushing.
14809 Perform the flush even if image-cache-eviction-delay is nil.
14810 (clear_image_caches): Change arg to Lisp_Object.
14811 (Fclear_image_cache): Expand meaning of the argument.
14812 (mark_image): Mark `dependencies' field.
14813 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14814 (lface_hash): Use XHASH rather than XFASTINT.
14815 (face_at_buffer_position): Fix int -> EMACS_INT position.
14816 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14817 (select_frame_for_redisplay): Remove code duplication.
14818 (redisplay_internal): Adapt arg to call to clear_image_caches.
14820 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14825 * s/vms5-5.h: Remove, unused.
14831 * m/mips4.h: Remove files for obsolete systems.
14844 * s/usg5-3.h: Remove references to obsolete variables.
14846 * s/irix5-0.h: Remove, move all the contents ...
14847 * s/irix6-5.h: ... here. Simplify.
14848 * config.in: Regenerate.
14850 2008-02-24 Jason Rumney <jasonr@gnu.org>
14852 * w32term.c (x_draw_glyph_string_background): Clear the background
14853 manually when cleartype is in use.
14854 (x_draw_glyph_string_foreground): Draw text transparently when
14855 cleartype is in use.
14857 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14858 a font into it unless we have to.
14860 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14862 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14863 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
14865 2008-02-18 Jason Rumney <jasonr@gnu.org>
14867 * w32fns.c (Fw32_shell_execute): Encode parameters.
14869 2008-02-09 Eli Zaretskii <eliz@gnu.org>
14871 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14873 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
14875 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14877 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14879 * xterm.c (x_set_offset): Don't change the gravity if
14880 CHANGE_GRAVITY is -1.
14882 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
14884 * fileio.c (auto_save_error_occurred): New var.
14885 (auto_save_error): Set it.
14886 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14889 2008-02-23 Eli Zaretskii <eliz@gnu.org>
14891 * w32.c (globals_of_w32): Add initializations for
14892 g_b_init_get_sid_sub_authority and
14893 g_b_init_get_sid_sub_authority_count.
14895 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14897 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14898 (font_parse_xlfd): Use them for sanity check.
14899 (Finternal_set_font_style_table): Make sure the table is bijective.
14901 Consolidate the image_cache to the terminal struct.
14902 * termhooks.h (P_): Remove redundant def.
14903 (struct terminal): New field `image_cache'.
14904 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14905 of FRAME_X_IMAGE_CACHE.
14906 * xterm.h (struct x_display_info): Remove image_cache field.
14907 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14908 * w32term.h (struct w32_display_info): Remove image_cache field.
14909 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14910 * macterm.h (struct mac_display_info): Remove image_cache field.
14911 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14912 * xterm.c (x_term_init):
14913 * w32term.c (w32_term_init):
14914 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14915 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14916 Remove declarations.
14917 (clear_image_caches, mark_image_cache): New declarations.
14918 * xfaces.c (clear_face_cache):
14919 * xdisp.c (redisplay_internal): Use clear_image_caches.
14920 * image.c (clear_image_cache): Don't check that a frame is on
14921 a window-system before checking if it shares the same cache.
14922 (clear_image_caches): New function.
14923 (Fclear_image_cache): Use it.
14924 (mark_image): Move from allo.c.
14925 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14926 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14927 (mark_object): Don't call mark_image_cache for frames.
14928 (mark_terminals): Call mark_image_cache.
14930 * lisp.h (Fdelete_terminal): Declare.
14932 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14933 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14934 wrong_type_argument.
14936 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14938 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14939 malayalam.el, and tamil.el. Add sinhala.el.
14941 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14943 * xterm.c (x_connection_closed): Consolidate identical tests.
14944 (x_delete_terminal): Don't crash if called via x_connection_closed.
14946 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14948 * xdisp.c (decode_mode_spec): New arg string.
14949 (display_mode_element): Adjust for the above change.
14951 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14953 * callint.c (Fcall_interactively): Use AREF.
14955 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14957 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14959 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14961 * xfns.c (Fx_show_tip): Set string to " " if empty.
14963 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14965 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14968 2008-02-17 Kenichi Handa <handa@m17n.org>
14970 * ftfont.c (ftfont_shape): Return Lispy number.
14972 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14974 (Finternal_set_font_selection_order): Call font_update_sort_order
14975 only when enable_font_backend is set.
14976 (realize_x_face): Set face->font_info to that of default face only
14977 when enable_font_backend is set.
14979 * xdisp.c (handle_composition_prop): Set it->c to the fist
14980 character of the composed region.
14981 (fill_composite_glyph_string): Set base_face->font_info to
14982 s->font_info. Get a face for ascii from base_face->ascii_face.
14983 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14984 with a face already decided.
14985 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14987 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14988 call font_prepare_composition unconditionally.
14990 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14992 * xterm.h (struct x_display_info): New member font.
14994 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14995 (x_set_mouse_face_gc, x_new_font): Likewise.
14996 (x_term_init): Setup display_info->font.
14997 (x_delete_terminal): Free display_info->font.
14999 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15001 * ftxfont.c (ftxfont_default_fid): Delete it.
15002 (ftxfont_open): Set xfont->fid to 0.
15003 (ftxfont_end_for_frame): Clear data specific to the frame and the
15006 * xftfont.c (xftfont_default_fid): Delete it.
15007 (xftfont_open): Set xfont->fid to 0.
15009 * fontset.c (FONTSET_OBJLIST): New macro.
15010 (fontset_find_font): Update font-object list of the fontset.
15011 (free_realized_fontset): New function.
15012 (free_face_fontset): Call free_realized_fontset.
15013 (Ffont_info): Call font_close_object only when enable_font_backend
15016 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15017 [HAVE_NTGUI]: Include w32term.h.
15018 [MAC_OS]: Include macterm.ch.
15019 (font_otf_ValueRecord): Use make_number.
15020 (font_finish_cache): Fix handling of reference count.
15021 (font_clear_cache): Update num_fonts.
15022 (font_open_entity): Update smallest_char_width and
15023 smallest_font_height of the frame.
15024 (font_close_object): Update num_fonts.
15025 (Fclear_font_cache): Fix finding the target cache data.
15027 2008-02-16 Glenn Morris <rgm@gnu.org>
15029 * fontset.c (Finternal_char_font): Fix compilation warning.
15031 2008-02-16 Eli Zaretskii <eliz@gnu.org>
15033 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15034 instead of char arrays. Enlarge the size of array passed to
15035 get_token_information.
15037 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15040 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15042 * .gdbinit: Don't set `args', it breaks gdb --args.
15044 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15046 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15047 within a narrowed buffer.
15049 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15051 * coding.c (decode_coding_object, encode_coding_object):
15052 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15054 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15056 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15058 (detect_coding_system):
15059 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15060 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15061 * insdel.c (insert_from_gap):
15062 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15063 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15064 (string_to_multibyte):
15065 * character.c (chars_in_text, multibyte_chars_in_text):
15066 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15068 * character.h (FETCH_STRING_CHAR_ADVANCE)
15069 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15070 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15071 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15073 * casefiddle.c (casify_region): Only call after-change and composition
15074 functions on the part of the region that was changed.
15076 * keyboard.c (read_avail_input):
15077 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15079 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15081 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15082 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15084 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
15086 * w32menu.c (push_submenu_start, push_submenu_end)
15087 (push_left_right_boundary, push_menu_pane, push_menu_item):
15088 * keyboard.c (read_key_sequence): Don't pass args with side effects
15089 to AREF, it fails when compiling with -DENABLE_CHECKING.
15091 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15093 * Makefile.in (${lispsource}international/charprop.el):
15094 Delete this target.
15096 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15099 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15101 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15103 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15105 * frame.c (Qnoelisp): New symbol.
15106 (syms_of_frame): Initialize it.
15107 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15108 harmless Elisp code, from a strong `force' from x_connection_closed.
15109 * frame.h (Qnoelisp): Declare.
15110 * xterm.c (x_connection_closed): Pass `noelisp'.
15112 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15113 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15114 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15115 rather than `int' for the type of `type'.
15117 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15119 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15121 * Makefile.in (GNUC): Remove support for gcc-1.x.
15123 2008-02-10 Richard Stallman <rms@gnu.org>
15125 * lisp.h (ASET): Use AREF, not ASLOT.
15127 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15129 * lisp.h (ASET): Check bounds.
15131 2008-02-10 Glenn Morris <rgm@gnu.org>
15133 * buffer.c (mode-name): Doc fix.
15135 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15152 * xterm.c: Remove code that deals with obsolete variables.
15154 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15156 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15157 nothing else needs it anymore.
15159 2008-02-09 Eli Zaretskii <eliz@gnu.org>
15161 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15162 instead of unibyte_char_to_multibyte.
15164 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15166 * s/gnu-linux.h: Remove commented out code.
15168 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15170 * Makefile.in: Update what RMS says about using autoconf.
15171 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15172 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15173 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15174 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15176 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15178 * keymap.c (Fkey_description): Move side effect outside of macro call.
15180 * xfaces.c (Finternal_make_lisp_face):
15181 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15183 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15184 (syms_of_fontset): Use ASET.
15186 * fns.c (concat): Move side effect outside of macro call.
15187 (hash_clear): Use ASET.
15189 2008-02-08 Richard Stallman <rms@gnu.org>
15191 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15192 If FORCE, and frame has a surrogate minibuffer for another frame,
15193 delete the other frame first.
15195 2008-02-07 Timo Savola <timo.savola@iki.fi>
15197 * xterm.c (x_detect_focus_change): Handle embed client message.
15198 (handle_one_xevent): Ditto.
15199 (handle_one_xevent): If embedded and we get a button press/release,
15201 (xembed_set_info, xembed_send_message): New functions.
15202 (x_make_frame_visible): Call xembed_set_info if embedded.
15203 (x_make_frame_invisible): Call xembed_set_info if embedded.
15204 (x_term_init): Initialize Xatom_XEMBED.
15205 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15206 (x_iconify_frame): Ditto.
15208 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15209 (enum xembed_info, enum xembed_message, enum xembed_focus)
15210 (enum xembed_modifier, enum xembed_accelerator): New.
15211 (xembed_set_info, xembed_send_message): Declare.
15212 (FRAME_X_EMBEDDED_P): New.
15214 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15217 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15218 window ID of a frame.
15219 (x_window): Reparent frame if embedded.
15220 (Fx_create_frame): Don't set border width if embedded.
15222 * emacs.c (USAGE3): Add --parent-id.
15223 (standard_args): Ditto.
15225 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15227 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15229 2008-02-07 Jim Meyering <meyering@redhat.com>
15231 Use "do...while (0)", not "if (1)...else" in macro definitions.
15232 The latter provokes a warning from gcc about the empty else, when
15233 followed by ";". Also, without that trailing semicolon, it would
15234 silently swallow up any following statement.
15235 * syntax.h (SETUP_SYNTAX_TABLE)
15236 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15237 * buffer.h (DECODE_POSITION): Likewise.
15238 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15239 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15240 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15241 (FETCH_CHAR_ADVANCE): Likewise.
15242 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15244 2008-02-07 Jim Meyering <meyering@redhat.com>
15246 * lread.c [lint]: Don't include <sys/inode.h>.
15248 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15250 * xselect.c (x_handle_dnd_message):
15251 * xmenu.c (digest_single_submenu, xmenu_show):
15252 * xdisp.c (with_echo_area_buffer_unwind_data)
15253 (format_mode_line_unwind_data, unwind_format_mode_line)
15254 (display_menu_bar):
15255 * eval.c (Ffetch_bytecode):
15256 * doc.c (store_function_docstring):
15257 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15258 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15259 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15261 2008-02-07 Kenichi Handa <handa@m17n.org>
15263 * ftxfont.c (ftxfont_open): Don't set
15264 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15266 * ftfont.c (ftfont_open): Fix previous change.
15268 2008-02-06 Jason Rumney <jasonr@gnu.org>
15270 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15271 Use cached metrics for ASCII characters.
15272 (w32font_open_internal): Don't set font's owning_frame.
15273 Cache metrics for ASCII characters.
15275 * w32font.h (struct w32font_info): Add ascii_metrics.
15276 Remove owning_frame.
15278 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15280 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15283 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15285 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15287 * charset.c (syms_of_charset): Set QCtest and Qeq.
15289 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15291 * process.c (Fstart_process):
15292 * callproc.c (Fcall_process): Handle the case where
15293 Funhandled_file_name_directory returns nil.
15295 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15296 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15297 * font.c (check_gstring): Use them and AREF to access the vector before
15298 we know it's really a gstring.
15299 (Ffont_shape_text): Fix typo.
15300 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
15302 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15305 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15307 2008-02-05 Jason Rumney <jasonr@gnu.org>
15309 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15310 Set smallest_font_height and smallest_char_width in display info.
15312 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15314 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15316 2008-02-05 Miles Bader <miles@gnu.org>
15318 * xfaces.c (get_lface_attributes, merge_named_face)
15319 (lookup_named_face, lookup_derived_face, realize_named_face):
15320 Revert 2008-02-01 change by cyd@stupidchicken.com.
15322 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15324 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15326 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15328 2008-02-04 Jason Rumney <jasonr@gnu.org>
15330 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15332 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15334 2008-02-03 Jason Rumney <jasonr@gnu.org>
15336 * makefile.w32-in (OBJ1): Include font.o here.
15337 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15339 2008-02-02 Jason Rumney <jasonr@gnu.org>
15341 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15343 2008-02-01 Jason Rumney <jasonr@gnu.org>
15345 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15347 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15349 2008-02-01 Andreas Schwab <schwab@suse.de>
15351 * Makefile.in (shortlisp, lisp): Update for rename of
15352 ../lisp/language/myanmar.el.
15354 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
15356 * xfaces.c (get_lface_attributes): Delete function.
15357 (merge_named_face, lookup_named_face, lookup_derived_face)
15358 (realize_named_face): Call lface_from_face_name directly, and use
15359 the fact that merge_face_vectors does not alter its FROM argument.
15361 2008-02-01 Jason Rumney <jasonr@gnu.org>
15363 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15364 input in the default locale. Handle non-Unicode multibyte input.
15366 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15368 * fontset.c (reorder_font_vector): Exclude nil elements from the
15369 font group. Don't try multiple fonts.
15370 (fontset_font): Adjust for the above change.
15371 (Finternal_char_font): Return nil if the found font doesn't
15372 contain the character ch.
15374 * Makefile.in (lisp, shortlisp): Add cham.el.
15376 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15378 * font.h (FONTP): Make it return 1 also for a font-object.
15380 * .gdbinit (xfontset): New function.
15382 * font.c (font_find_for_lface): Check if the character C is
15383 supported or not only for the first font.
15385 * fontset.c (reorder_font_vector): Fix typo.
15386 (fontset_find_font): Don't add a font-spec specifying a script.
15387 Use 0 (not Qt) for the indication of empty font-group. Change the
15388 format of RFONT-DEF. Return Qt if no font in the font-group
15389 support the character.
15390 (fontset_font): Adjust for the above change. If no font was
15391 found the character, remember that.
15392 (face_for_char): Adjust for the change of RFONT-DEF.
15393 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15394 no font for the target.
15395 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15397 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15399 * font.c (font_load_for_face): Handle the case that the font in
15400 face->lface is a string.
15402 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15404 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15406 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15408 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15409 Fix previous change. If the frame is not on a window system,
15412 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15414 * coding.c (decode_coding_object, encode_coding_object): Adjust
15415 marker positions after conversion.
15417 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15419 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15421 * font.c (font_find_for_lface): Fix the handling of the return
15422 value of font_has_char.
15423 (Ffont_shape_text): Fix previous change.
15425 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15426 (fontset_ref_and_range): Delete it.
15427 (fontset_find_font): Call char_table_ref_and_range instead of
15428 FONTSET_REF_AND_RANGE.
15429 (make_fontset): Don't setup font groups of Latin here.
15430 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15431 (new_fontset_from_font): Make the specified font the default for
15432 all Latin characters.
15434 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15436 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15437 is on a window system before accessing the fontset of the frame.
15439 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15441 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15443 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15444 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15446 * font.c (Ffont_shape_text): If the font driver doesn't have a
15447 shaper function, make zero-width glyphs to have at least one-pixel
15448 width. Fix setting of `to' field of glyphs.
15450 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15452 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15455 * font.h (struct font_driver): Improve docstring of member `shape'.
15457 2008-02-01 Kenichi Handa <handa@m17n.org>
15459 * composite.c (syms_of_composite): Fix docstring of
15460 auto-composition-function.
15462 * font.h (LGLYPH_SIZE): New macro.
15464 * font.c (Ffont_fill_gstring): Stop filling when a character not
15465 supported by the font is found.
15466 (Ffont_shape_text): When a shape callback function returns nil,
15467 try at most two more times with larger gstring.
15468 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15470 * xdisp.c (handle_auto_composed_prop): Change the argument to
15471 auto-composition-function.
15473 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15474 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15475 Lispy glyph and store it in the lgstring.
15477 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15479 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15481 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15483 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15485 * fontset.c (Vfont_encoding_charset_alist): New variable.
15486 (syms_of_fontset): DEFVAR it.
15487 (reorder_font_vector, fontset_find_font): Optimize for the case of
15488 no need of reordering.
15489 (face_for_char): Map the charset property by
15490 Vfont_encoding_charset_alist.
15492 2008-02-01 Jason Rumney <jasonr@gnu.org>
15494 * w32font.c (logfonts_match): Don't check adstyle here.
15495 (font_matches_spec): Check here against physical font instead.
15496 (add_font_entity_to_list): Avoid some substitutions.
15498 * font.c (font_parse_fcname): Default weight and slant to normal.
15499 (font_score): Prefer normal fonts if weight or slant unspecified.
15500 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15501 match freetype scores.
15503 2008-02-01 Jason Rumney <jasonr@gnu.org>
15505 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15506 font, as it may have been deleted.
15507 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15508 most common hyphenless variation.
15509 (logfonts_match): Check generic family.
15510 (font_matches_spec): Don't check generic family here.
15511 (fill_in_logfont): Set generic family based on adstyle.
15513 * w32font.h (w32font_get_cache): Update declaration.
15515 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15517 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15519 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15520 If none of the new drivers are available, call font_update_drivers
15521 with the old drivers.
15523 * w32font.c (w32font_get_cache): Adjust the argument type.
15525 * xfont.c (xfont_get_cache): Adjust the argument type.
15527 * font.h (struct font_driver): Change argument type of get_cache.
15529 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15531 * font.c (Ffont_get): Fix arguments to Fassoc.
15532 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15533 (font_clear_cache): New function.
15534 (font_list_entities, font_matching_entity): Use font_get_cache.
15535 (font_update_drivers): Call font_clear_cache when finishing a driver.
15537 * fontset.c (fontset_find_font): Fix previous change.
15539 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15541 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15542 dpyinfo->font_table.
15543 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15544 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15546 * font.c (font_at): Handle the case that the arg C is negative.
15547 Handle the unibyte case.
15548 (Ffont_at): Call font_at with the arg C -1.
15550 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15551 the position here, and call font_at with the arg C -1.
15552 Don't check the range of the existing composition at the point.
15554 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15556 * fontset.c (fontset_add): New args charset_id and family.
15558 (load_font_get_repertory, fontset_find_font): Assume that
15559 font_spec is always a font-spec object.
15560 (Fset_fontset_font): Always store a font-spec object in a fontset.
15562 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15563 instead of get_property_and_range.
15565 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15567 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15568 (xftfont_open): Don't keep locking face.
15569 (xftfont_close): Don't unlock face.
15570 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15572 * fontset.c (fontset_find_font): Don't prefer a font of
15573 supplementary charset.
15575 2008-02-01 Kenichi Handa <handa@m17n.org>
15577 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15578 script, langsys_tag to langsys, new member script.
15579 (OTF_TAG_STR): Terminate by '\0'.
15580 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
15581 listing to the script specified in that property. Fix arg to
15582 OTF_check_features.
15584 2008-02-01 Jason Rumney <jasonr@gnu.org>
15586 * w32font.h: New file.
15588 * w32font.c: Include it.
15589 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15590 (w32font_open): Set owning_frame.
15591 (w32font_text_extents): Use owning_frame.
15592 (struct font_callback_data): Add opentype_only field.
15593 (add_font_entity_to_list): Use it to filter fonts.
15594 Don't check against full name.
15595 (w32font_list_internal): New function.
15596 (w32font_list): Use it.
15597 (w32font_match_internal): New function.
15598 (w32font_match): Use it.
15599 (w32font_open_internal): New function.
15600 (w32font_open): Use it.
15601 (w32font_get_cache, w32font_close, w32font_has_char)
15602 (w32font_encode_char, w32font_text_extents, w32font_draw):
15605 * makefile.w32-in (w32font.o): Depend on w32font.h.
15607 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15609 * charset.c (Fdefine_charset_internal): Record a supplementary
15610 charset at the tail of Vcharset_order_list.
15612 * font.c (Ffont_shape_text): Fix the return value.
15614 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15616 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15618 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15620 * ftfont.c (struct OpenTypeSpec): New struct.
15621 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15622 (ftfont_get_open_type_spec): New function.
15623 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15625 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15627 2008-02-01 Jason Rumney <jasonr@gnu.org>
15629 * w32font.c (add_font_entity_to_list): Compare only the beginning
15632 2008-02-01 Kenichi Handa <handa@m17n.org>
15634 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15635 Never return HANDLED_RECOMPUTE_PROPS.
15637 2008-02-01 Kenichi Handa <handa@m17n.org>
15639 * font.c (font_gstring_produce): Delete it.
15641 * composite.h (COMPOSITION_METHOD):
15642 Handle COMPOSITION_WITH_GLYPH_STRING.
15644 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15646 * xfont.c (Qx): Delete.
15647 (syms_of_xfont): Don't initialize Qx.
15649 * composite.h (enum composition_method):
15650 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15652 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15654 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15655 (choose_face_font): Accept new form of font-spec.
15657 * frame.h (font_driver_list): Declare it unconditionally.
15658 (struct frame): Define members font_driver_list and font_data_list
15661 * fontset.c: Include "font.h" unconditionally.
15662 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15663 (Fset_fontset_font): Accept a font-spec object.
15665 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15666 PIXEL_SIZE part a wild card.
15668 * dispextern.h (struct glyph_string): Define members clip and
15669 num_clips unconditionally.
15670 (struct face): Define members font_info and extra unconditionally.
15672 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15673 ftfont_info only when HAVE_LIBOTF is defined.
15675 2008-02-01 Andreas Schwab <schwab@suse.de>
15677 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15680 2008-02-01 Jason Rumney <jasonr@gnu.org>
15682 * w32font.c (w32font_driver): Add new fields.
15684 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15686 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15687 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15688 (LIBES): Add @M17N_FLT_CFLAGS@.
15690 * composite.c (compose_text): Don't treat the new style
15691 composition specially.
15693 * emacs.c (main): Call syms_of_font unconditionally.
15695 * font.h (FONT_ENTITY_NOT_LOADABLE)
15696 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15697 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15698 (struct font_driver): New member shape.
15699 (font_registry_charsets): Extern it.
15700 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15701 (font_otf_capability, font_drive_otf): Delete their externs.
15703 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15704 (font_charset_alist, font_registry_charsets): Move from xfont.c
15706 (font_prop_validate_otf): New function.
15707 (font_property_table): Register it for QCotf.
15708 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15709 (font_drive_otf): Delete.
15710 (font_prepare_composition): New arg F. Adjust for the change of
15712 (font_find_for_lface): New arg C.
15713 (font_load_for_face): Adjust for the change of font_find_for_lface.
15714 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15716 (Ffont_shape_text): New function.
15717 (Fopen_font): If the font size is not given, use 12-pixel.
15718 (Ffont_at): New arg STRING.
15719 (syms_of_font): Initalize font_charset_alist.
15720 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15723 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15724 fonts of the same font-spec. Change the format of RFONT-DEF.
15725 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15726 Adjust for the change of RFONT-DEF.
15727 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15729 * ftfont.h: New file.
15731 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15732 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15733 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15734 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15735 font_otf_capability and font_drive_otf, set ftfont_shape.
15736 (ftfont_list): Adjust for the change of :otf property value.
15737 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15738 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15739 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15740 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15741 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15742 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15744 * w32term.c (x_draw_composite_glyph_string_foreground):
15745 Adjust for the change of lispy gstring.
15747 * xdisp.c (handle_composition_prop): Adjust for the change of
15748 lispy gstring. Call a function for auto-composition with the
15749 third arg it->window.
15750 (fill_composite_glyph_string): Adjust for the change of lispy string.
15751 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15753 * xfaces.c (set_font_frame_param): Adjust for the change of
15754 font_find_for_lface.
15756 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15757 (xfont_registry_charsets): Likewise. Change caller.
15758 (syms_of_xfont): Don't handle x_font_charset_alist.
15760 * xftfont.c: Include "ftfont.h".
15761 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15762 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15763 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15764 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15765 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15766 Set xftfont_driver.shape to xftfont_shape.
15768 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15769 the change of lispy gstring.
15771 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15773 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15775 2008-02-01 Jason Rumney <jasonr@gnu.org>
15777 * w32font.c (w32font_draw): Fill background manually.
15779 2008-02-01 Jason Rumney <jasonr@gnu.org>
15781 * font.c (Qfontp): Remove unused symbol.
15782 (QCantialias): New symbol.
15783 (syms_of_font): Define it.
15784 (font_property_table): Set a validator for QCantialias.
15786 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15787 Define if not already.
15788 (QCfamily): Share with xfaces.c.
15789 (Qstandard, Qsubpixel, Qnatural): New symbols.
15790 (syms_of_w32font): Define them. Don't define QCfamily here.
15791 (w32_antialias_type, lispy_antialias_type): New functions.
15792 (w32_enumfont_pattern_entity): New arg requested_font.
15793 Set antialias parameter if non-default was requested.
15794 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15796 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15798 * lread.c (read1): Undo the previous change.
15800 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15802 * frame.c (Fdelete_frame): Call font_update_drivers only when
15803 USE_FONT_BACKEND is defined.
15805 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15807 * font.h (struct font_bitmap): New member bits_per_pixel.
15808 (struct font_driver): New members start_for_frame and end_for_frame.
15809 (struct font_data_list): New struct.
15810 (font_put_frame_data, font_get_frame_data): Extern them.
15812 * frame.h (struct frame): New member font_data_list.
15814 * font.c (font_update_drivers): Call driver->start_for_frame and
15815 driver->end_for_frame at proper timings.
15816 (font_put_frame_data, font_get_frame_data): New functions.
15817 (Ffont_spec): Add usage in the docstring.
15819 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15820 (Fdelete_frame): Call font_update_drivers.
15822 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15823 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15824 (xftfont_get_xft_draw): New function.
15825 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15826 (xftfont_end_for_frame): New function.
15827 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15829 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15830 Change argument. Cache GCs in the per-frame data.
15831 (struct ftxfont_frame_data): New struct.
15832 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15833 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15834 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15835 (ftxfont_end_for_frame): New function.
15836 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15838 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15840 2008-02-01 Kenichi Handa <handa@m17n.org>
15842 * xselect.c (Vselection_coding_system)
15843 (Vnext_selection_coding_system): Delete them.
15844 (syms_of_xselect): Don't declare selection-coding-system and
15845 next-selection-coding-system. They are declared in select.el.
15847 2008-02-01 Jason Rumney <jasonr@gnu.org>
15849 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15851 * w32fns.c: Include imm.h.
15852 (get_composition_string_fn, get_ime_context_fn): New optional
15854 (globals_of_w32fns): Load them from imm32.dll.
15855 (ignore_ime_char): New flag.
15856 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15857 WM_IME_ENDCOMPOSITION messages.
15859 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15860 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15862 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15864 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15865 (READCHAR_REPORT_MULTIBYTE): New macro.
15866 (readchar): New 2nd arg MULTIBYTE.
15867 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15868 Make symbol's name multibyte according to the multibyteness of the
15871 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15873 * xfaces.c (face_for_overlay_string): Call lookup_face with
15874 correct arguments (fix of synching with the trunk).
15876 2008-02-01 Kenichi Handa <handa@m17n.org>
15878 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15879 (font_prop_validate_non_neg, font_prop_validate_spacing):
15880 Delete argument prop_index.
15881 (font_property_table): Change arguments to validater. Change Callers.
15882 (font_lispy_object): Delete.
15883 (font_at): Use font_find_object instead fo font_lispy_object.
15885 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15887 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15890 2008-02-01 Jason Rumney <jasonr@gnu.org>
15892 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15893 (font_matches_spec): Remove debug output.
15894 (add_font_entity_to_list): Avoid using substituted fonts.
15896 2008-02-01 Jason Rumney <jasonr@gnu.org>
15898 * doc.c (Fsnarf_documentation):
15899 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15901 2008-02-01 Miles Bader <miles@gnu.org>
15903 * dispextern.h (struct glyph_row): Only define "clip" field if
15904 HAVE_WINDOW_SYSTEM is defined.
15906 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15908 Fix up multi-tty merge.
15910 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15913 * xfaces.c (free_realized_face, clear_face_gcs):
15914 Include font_done_for_face in the input_blocked section, just in case.
15916 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15917 (get_char_face_and_encoding): Undo last change and remove the *other*
15918 duplicate definition (i.e. keep the one that's better scoped and that
15919 includes code for the font-backend).
15921 * terminal.c (create_terminal): Default keyboard_coding to
15922 `no-conversion' and terminal_coding to `undecided'.
15924 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15926 * fontset.c (free_realized_fontsets): Check that the table entry does
15927 contain a fontset before trying to compare it to `base'.
15929 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15930 syms_of_charset, and syms_of_coding earlier because init_window_once
15931 now needs Vcoding_system_hash_table to be setup.
15933 * coding.h (default_buffer_file_coding): Remove.
15935 * coding.c (default_buffer_file_coding): Remove.
15936 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15937 than ->symbol, and use the terminal-local coding system.
15938 (syms_of_coding): Don't setup the coding-systems that are not
15940 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15942 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15943 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15945 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15946 in chartab.c and were re-added here by mistake.
15947 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15949 * doc.c (Fsnarf_documentation):
15950 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15953 * ChangeLog.10: Add mistakenly removed entry.
15955 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15957 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15959 2008-02-01 Miles Bader <miles@gnu.org>
15961 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15962 Add extra args to FACE_FOR_CHAR.
15964 2008-02-01 Kenichi Handa <handa@m17n.org>
15966 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15969 * chartab.c (map_sub_char_table, map_char_table): If the range
15970 contains just one character, call the function with that character
15971 even if the depth is not 3.
15973 2008-02-01 Jason Rumney <jasonr@gnu.org>
15975 * w32font.c (w32font_text_extents): Calculate metrics for the
15978 2008-02-01 Jason Rumney <jasonr@gnu.org>
15980 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15982 2008-02-01 Jason Rumney <jasonr@gnu.org>
15984 * w32term.c (x_set_glyph_string_clipping): Use
15985 get_glyph_string_clip_rects.
15986 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15987 Adjust for the change of struct glyph_string.
15989 * w32font.c (w32font_draw): Do clipping here.
15991 2008-02-01 Kenichi Handa <handa@m17n.org>
15993 * xftfont.c (xftfont_draw): Adjust for the change of struct
15996 * xterm.c (x_set_glyph_string_clipping): Use
15997 get_glyph_string_clip_rects.
15998 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15999 Adjust for the change of struct glyph_string.
16001 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16002 the resulting clip(s}.
16003 (expose_overlaps): Add arg r. Change callers. Set it to
16004 row->clip temporarily.
16005 (expose_window): Redraw rows overlapping the exposed area.
16007 * dispextern.h (struct glyph_row): New member clip.
16008 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16009 clip_height, new member clip, and num_clips.
16011 2008-02-01 Kenichi Handa <handa@m17n.org>
16013 * data.c (Fchar_or_string_p): Fix docstring.
16015 2008-02-01 Kenichi Handa <handa@m17n.org>
16017 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16018 create a temporary XftDraw object.
16020 2008-02-01 Kenichi Handa <handa@m17n.org>
16022 * font.c (Ffontp): Fix docstring.
16024 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16025 strong evidence of ISO-2022.
16027 2008-02-01 Kenichi Handa <handa@m17n.org>
16029 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16030 SYNTAX_ENTRY_FOLLOW_PARENT.
16032 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16034 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16036 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16037 Update to the new type of weak_hash_tables and next_weak.
16039 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16040 a plain C pointer to Lisp_Hash_Table.
16042 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16043 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16044 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16045 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16046 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16047 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16048 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16049 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16050 (GC_EQ): Remove since they've been identical to their non-GC_
16051 alter-egos ever since the markbit was eradicated.
16070 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16072 2008-02-01 Kenichi Handa <handa@m17n.org>
16074 * chartab.c (map_sub_char_table): Make it work for the top-level
16075 char-table. Fix handling of parent char-table.
16076 (map_char_table): Adjust for the above change.
16078 2008-02-01 Jason Rumney <jasonr@gnu.org>
16080 * w32font.c (Qgdi): Rename from Qw32.
16082 2008-02-01 Jason Rumney <jasonr@gnu.org>
16084 * w32bdf.c (get_quoted_string): Make function static.
16086 2008-02-01 Kenichi Handa <handa@m17n.org>
16088 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16089 bigger ascent and descent than those of the font, use them as
16090 font's ascent and descent.
16092 2008-02-01 Kenichi Handa <handa@m17n.org>
16094 * Makefile.in (${lispsource}international/charprop.el): Move this
16095 target within "#ifdef HAVE_UNIDATA" and "#endif".
16097 2008-02-01 Kenichi Handa <handa@m17n.org>
16099 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16100 (shortlisp): Add ../lisp/language/tai-viet.el.
16102 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
16104 * Makefile.in (${lispsource}international/charprop.el): Depend on
16107 2008-02-01 Jason Rumney <jasonr@gnu.org>
16109 * w32font.c (w32font_close): Delete the GDI font object.
16111 * w32menu.c: Include character.h.
16113 * w32proc.c: Likewise.
16115 * w32select.c: Likewise.
16117 * makefile.w32-in (w32proc.o): Depend on character.h.
16119 2008-02-01 Jason Rumney <jasonr@gnu.org>
16121 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16123 * w32menu.c (syms_of_w32menu): Likewise.
16125 * w32proc.c (syms_of_ntproc): Likewise.
16127 * w32select.c (syms_of_w32select): Likewise.
16129 * w32term.c (syms_of_w32term): Likewise.
16131 2008-02-01 Jason Rumney <jasonr@gnu.org>
16133 * w32font.c (w32font_draw): Delete brush after using it.
16135 2008-02-01 Jason Rumney <jasonr@gnu.org>
16137 * w32font.c (w32font_open): Don't set font_idx.
16138 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16140 (w32font_draw): Fill background explicitly.
16142 2008-02-01 Jason Rumney <jasonr@gnu.org>
16144 * w32term.c (w32_initialize): Don't call w32font_initialize.
16146 * w32font.c (w32font_info): Remove subranges.
16147 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16148 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16149 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16150 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16151 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16152 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16153 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16154 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16155 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16156 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16158 (font_callback_data): New struct.
16159 (w32font_list, w32font_match): Use it.
16160 (w32font_open): Don't populate subranges.
16161 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16162 (w32font_encode_char): Always return unicode code-point as-is.
16163 (w32font_text_extents): Supply a transformation matrix to
16164 GetGlyphOutline. Never look up by glyph index. Avoid looping
16165 twice. Use unicode version of GetTexExtentPoint32 instead of
16166 glyph index version.
16167 (set_fonts_frame): Remove.
16168 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16169 set frame parameter. Use backward compatible fake foundries.
16170 Save generic family in extra slot under QCfamily. Make width slot
16171 constant. Save QCspacing value. Save list of scripts instead of
16173 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16174 (add_font_entity_to_list): Use font_callback_data struct. Filter
16176 (add_one_font_entity_to_list): Use font_callback_data struct.
16177 (w32_registry): Default to iso10646_1.
16178 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16179 string font registries. Don't fill in font name if it is a generic
16180 family name, fill family instead. Use spacing, family and script
16181 extra info to fill pitch, family and charset fields.
16182 (list_all_matching_fonts): Use font_callback_data struct.
16183 (unicode_range_for_char): Remove.
16184 (font_supported_scripts): New function.
16185 (w32font_initialize): Remove.
16186 (syms_of_w32font): Update which symbols are defined.
16188 2008-02-01 Jason Rumney <jasonr@gnu.org>
16190 * font.c (font_pixel_size): Reverse assq_no_quit args.
16192 * w32term.h (FONT_WIDTH): Report max width, not average.
16193 (FONT_MAX_WIDTH): Remove.
16194 (FONT_AVG_WIDTH): New macro.
16196 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16197 redefinition of FONT_WIDTH.
16199 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16200 (w32_cache_char_metrics): Use FONT_WIDTH.
16202 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16204 2008-02-01 Jason Rumney <jasonr@gnu.org>
16206 * w32font.c (w32font_open): Make lfHeight negative.
16208 * w32fns.c (x_default_font_parameter): Use new style font name.
16209 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16211 2008-02-01 Jason Rumney <jasonr@gnu.org>
16213 * w32font.c (QCsubranges): New symbol.
16214 (w32font_open, w32font_has_char): Get subranges from subproperty
16216 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16217 (syms_of_w32font): Define :subranges symbol.
16219 * font.c (font_put_extra): Expose externally.
16221 * font.h (font_put_extra): Move declaration from font.c.
16223 * font.c (Ffont_get): Use font driver to determine otf capability.
16224 (adjust_anchor): Check if driver defines anchor_point before using.
16226 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16227 (w32font_draw): Use options.
16228 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16229 Fix detection of truetype fonts.
16230 (registry_to_w32_charset): Handle charsets other than iso8859-1
16231 expressed as lisp symbols.
16232 (w32_registry): Express charset as lisp symbol.
16233 (fill_in_logfont): Reverse pixel and point height logic.
16234 Don't set width here. Set quality to default.
16236 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16237 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16239 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16240 Remove redundant loop and allocation.
16242 * makefile.w32-in (font.o, w32font.o): New objects.
16243 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16244 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16246 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16247 STORE_XCHARB a valid l-value.
16249 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16250 calculations for non-Truetype fonts.
16251 (x_draw_glyph_string): Sync with xterm.c.
16252 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16253 Remove redundant code.
16254 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16256 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16257 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16259 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16260 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16262 * w32font.c: New file for w32 font backend.
16264 2008-02-01 Kenichi Handa <handa@m17n.org>
16266 * term.c: Don't include "buffer.h" twice.
16268 2008-02-01 Kenichi Handa <handa@m17n.org>
16270 * character.c (Funibyte_string): New function.
16271 (syms_of_character): Defsubr it.
16273 2008-02-01 Jason Rumney <jasonr@gnu.org>
16275 * w32term.c [USE_FONT_BACKEND]:
16276 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16277 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16278 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16279 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16280 (x_free_frame_resources): Sync with xterm.c.
16282 2008-02-01 Andreas Schwab <schwab@suse.de>
16284 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16287 2008-02-01 Kenichi Handa <handa@m17n.org>
16289 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16291 2008-02-01 Kenichi Handa <handa@m17n.org>
16293 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16294 font_otf_gpos, add font_drive_otf.
16296 * fontset.c (fontset_find_font): Pay attention to font size
16297 specified for a font.
16298 (reorder_font_vector): Check contents of font_def.
16300 * font.c (struct otf_list): Delete it.
16301 (otf_list): Make it a lisp variable.
16302 (otf_open): Use lispy otf_list.
16303 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16304 (check_otf_features): New function.
16305 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16307 (font_drive_otf): New function merging font_otf_gsub and
16309 (font_open_for_lface): New arg spec. Change argument order.
16310 (font_load_for_face): Adjust for the change of font_open_for_lface.
16311 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16313 (syms_of_font): Staticpro otf_list. Delete defsubr of
16314 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16316 * xfaces.c (set_font_frame_param): Adjust for the change of
16317 font_open_for_lface.
16319 * font.h (font_open_for_lface): Adjust prototype.
16320 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16322 (font_otf_gsub, font_otf_gpos): Delete externs.
16323 (font_drive_otf): Extern it.
16325 2008-02-01 Kenichi Handa <handa@m17n.org>
16327 * font.c (font_at): If the window W is not on a window system,
16330 * coding.c (produce_chars, encode_coding): Don't call
16331 insert_from_gap if no characters to produce.
16333 2008-02-01 Kenichi Handa <handa@m17n.org>
16335 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16338 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16340 2008-02-01 Miles Bader <miles@gnu.org>
16342 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16343 Parse "--disable-font-backend" option.
16344 (standard_args): Add "--disable-font-backend" option.
16346 2008-02-01 Kenichi Handa <handa@m17n.org>
16348 * fontset.c (fontset_find_font): New function.
16349 (fontset_font): Use fontset_find_font.
16350 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16351 Register the specified font for all Latin characters.
16352 (new_fontset_from_font): Register the specified font for all Latin
16354 (dump_fontset): For a realized fontset, include the base fontset
16355 name in the returned vector.
16357 2008-02-01 Kenichi Handa <handa@m17n.org>
16359 * character.h (CHAR_STRING): Cast C to unsigned on calling
16362 * character.c (char_string): Type of arg C changed to unsigned.
16363 Signal an error if C is an invalid character code.
16365 * editfns.c (general_insert_function, Fchar_to_string):
16366 Use CHARACTERP, not INTEGERP.
16368 2008-02-01 Kenichi Handa <handa@m17n.org>
16370 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16371 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16373 * regex.c (analyse_first): Fix for multibyte characters in "case
16374 charset:" and "case categoryspec:".
16376 2008-02-01 Andreas Schwab <schwab@suse.de>
16378 * Makefile.in (LIBES): Move standard libraries to the end.
16380 2008-02-01 Kenichi Handa <handa@m17n.org>
16382 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16383 nonzero, don't shrink the buffer nextb.
16385 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16387 * coding.c (coding_alloc_by_making_gap): New arg offset.
16388 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16390 (decode_coding_iso_2022): Update coding->safe_charsets.
16391 (decode_coding_gap): Temporarily set
16392 current_buffer->text->inhibit_shrinking to 1.
16394 2008-02-01 Kenichi Handa <handa@m17n.org>
16396 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16397 indexing into elements of s->cmp and s->char2b.
16399 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
16401 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16403 2008-02-01 Kenichi Handa <handa@m17n.org>
16405 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16406 target_multibyte instead of multibyte.
16407 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16408 (bcmp_translate): Change the argument name from multibyte to
16411 2008-02-01 Kenichi Handa <handa@m17n.org>
16413 These changes are to compile a regexp into a pattern that can be
16414 used both for multibyte and unibyte targets.
16416 * Makefile.in (search.o): Depend on charset.h.
16418 * character.c (multibyte_char_to_unibyte_safe): New function.
16420 * search.c: Include "charset.h".
16421 (compile_pattern_1): Delete argument multibyte. Don't set
16422 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16423 (compile_pattern): Don't compare cp->buf.target_multibyte.
16424 Compare cp->buf.charset_unibyte.
16425 (compile_pattern): Set cp->buf.target_multibyte.
16427 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16429 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16431 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16432 multibyte. Change callers.
16433 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16434 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16435 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16436 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16437 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16438 (regex_compile): Make the compiled pattern usable both for
16439 multibyte and unibyte targets.
16440 (analyse_first): Make the fastmap usable both for multibyte and
16442 (TRANSLATE_VIA_MULTIBYTE): Delete.
16443 (re_match_2_internal): Pay attention to the case that the
16444 multibyteness of bufp and target may be different.
16446 2008-02-01 Kenichi Handa <handa@m17n.org>
16448 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16449 empty box occupy at least one column width.
16451 2008-02-01 Miles Bader <miles@gnu.org>
16453 * Makefile.in: Remove redundant HAVE_XFT clause.
16455 2008-02-01 Kenichi Handa <handa@m17n.org>
16457 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16459 2008-02-01 Kenichi Handa <handa@m17n.org>
16461 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16464 2008-02-01 Kenichi Handa <handa@m17n.org>
16466 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16468 2008-02-01 Kenichi Handa <handa@m17n.org>
16470 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16472 2008-02-01 Kenichi Handa <handa@m17n.org>
16474 * search.c (simple_search): Fix previous change.
16476 2008-02-01 Kenichi Handa <handa@m17n.org>
16478 * xftfont.c (ftfont_font_format): Extern declaration.
16480 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16482 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16483 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16485 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16486 (ftfont_font_format): Fix previous change.
16488 * font.h (Ffont_xlfd_name): EXFUN it.
16490 * font.c (font_parse_xlfd): Fix the array size of `f'.
16491 (register_font_driver): Use EQ to compare driver->type.
16493 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16494 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16495 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16497 2008-02-01 Kenichi Handa <handa@m17n.org>
16499 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16500 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16502 2008-02-01 Kenichi Handa <handa@m17n.org>
16504 * xfont.c (xfont_open): Set font->format.
16506 * xftfont.c (xftfont_open): Set font->format.
16508 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16509 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16510 (ftfont_open): Set font->format.
16511 (ftfont_font_format): New function.
16513 * font.h (struct font): New member format.
16515 * font.c (Qopentype): New variable.
16516 (syms_of_font): Defsym it.
16517 (Fquery_font): Change the format of the last element of the return
16520 2008-02-01 Kenichi Handa <handa@m17n.org>
16522 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16525 2008-02-01 Kenichi Handa <handa@m17n.org>
16527 * coding.c (detect_coding_charset): Fix detection of multi-byte
16530 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16532 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16534 2008-02-01 Kenichi Handa <handa@m17n.org>
16536 * xdisp.c (get_next_display_element): Set it->face_id for the
16537 first component of a composition.
16538 (x_produce_glyphs): Check if the font is changed or not for composition.
16540 2008-02-01 Kenichi Handa <handa@m17n.org>
16542 * fontset.c (Qlatin): New variable.
16543 (syms_of_fontset): Define it as a lisp symbol.
16544 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16546 2008-02-01 Kenichi Handa <handa@m17n.org>
16548 * font.c (font_unparse_fcname): Pay attention to the case that
16549 some of font property is a null string.
16551 2008-02-01 Kenichi Handa <handa@m17n.org>
16553 * term.c: Include "composite.h".
16554 (encode_terminal_code): Output all components of composition.
16555 Check the size of encode_terminal_src.
16556 (produce_glyphs): For composition, call produce_composite_glyph.
16557 (append_composite_glyph, produce_composite_glyph): New functions.
16559 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16560 is not found, get font_info from the current ascii face.
16562 2008-02-01 Kenichi Handa <handa@m17n.org>
16564 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16565 buffer-file-name to Qnil before calling insert_from_buffer.
16567 * font.c (font_unparse_fcname): Pay attention to the case that
16568 foundry is a null string.
16570 2008-02-01 Kenichi Handa <handa@m17n.org>
16572 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16574 * font.c (Qunicode_sip): New variable.
16575 (syms_of_font): Declare it as a Lisp symbol.
16577 * font.h (Qunicode_sip): Extern it.
16579 2008-02-01 Kenichi Handa <handa@m17n.org>
16581 * composite.c (get_composition_id): Pay attention to TAB component.
16583 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16584 TAB. Adjust for the change of s->char2b which always points to
16585 the first element of allocated memory.
16587 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16589 * xdisp.c (handle_composition_prop): Set it->c to the first
16591 (fill_composite_glyph_string): Change argument.
16592 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16593 (x_produce_glyphs): Fix handling of left/right padding.
16595 2008-02-01 Kenichi Handa <handa@m17n.org>
16597 * coding.c (detect_coding_system): Fix for handling off
16598 inhibit_iso_escape_detection. Fix for the case that no coding
16599 system is defined for a specific coding category.
16601 2008-02-01 Kenichi Handa <handa@m17n.org>
16603 * font.c (font_matching_entity): Delete unused local var.
16605 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16608 * fileio.c (Finsert_file_contents): On recovering a file, assume
16610 (choose_write_coding_system): On auto-saving a file, force
16613 * coding.c (setup_coding_system): Fix setting of
16614 coding->common_flags based on eol_type.
16615 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16618 2008-02-01 Kenichi Handa <handa@m17n.org>
16620 * alloc.c (NSTATICS): Increas to 0x600.
16622 2008-02-01 Kenichi Handa <handa@m17n.org>
16624 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16625 (ftfont_list): Don't check :name property.
16626 (ftfont_match): New function.
16627 (ftfont_pattern_entity): If the pattern doesn't contain
16628 FC_SPACING, don't assume FC_MONO.
16630 * font.h (struct font_driver): New member `match'.
16631 (font_update_drivers): Adjust prototype.
16633 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16635 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16636 them unconditionally.
16637 (font_matching_entity): New function.
16638 (font_open_by_name): Try font_matching_entity if exact match is
16640 (font_update_drivers): Delete the arg FONT. Return a list of
16641 actually used backends. Don't free faces, font caches here.
16642 Don't store data in frame parameters. Don't call x_set_font.
16643 (Ffont_spec): Store :name property as is.
16644 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16645 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16646 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16647 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16648 Call font->driver->otf_gsub instead of font_otf_gsub.
16650 * frame.c (x_set_font_backend): Do more works that were done in
16651 font_update_drivers before.
16653 * xfont.c (xfont_match): New function.
16654 (xfont_driver): Set xfont_driver.match to xfont_match.
16655 (xfont_draw): Set font in GC if necessary.
16657 * ftxfont.c (ftxfont_match): New function.
16658 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16660 * xftfont.c (xftfont_match): New function.
16661 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16663 2008-02-01 Kenichi Handa <handa@m17n.org>
16665 * font.h (struct font): New member scalable.
16666 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16667 (font_otf_gsub): Adjust prototype.
16669 * font.c (font_otf_capability): Fix handling of the default langsys.
16670 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16671 Check the contents of SPEC.
16672 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16673 (check_gstring): New function.
16674 (REPLACEMENT_CHARACTER): New macro.
16675 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16676 glyph codes of GSTRING.
16677 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16678 (font_prepare_composition): Set cmp->glyph_len.
16679 (font_open_entity): Set font->scalable.
16680 (Ffont_get): Handle :otf property.
16681 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16683 (Fquery_font): Use font->font.full_name.
16684 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16685 Sfont_otf_alternates.
16687 * ftfont.c (ftfont_open): Set font->font.full_name and
16688 font->font.name properly. Fix calculation of font->font.height
16689 and font->min_width.
16691 * ftxfont.c (ftxfont_create_gcs): New function.
16692 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16693 (ftxfont_draw_backgrond): Fix filling region.
16694 (ftxfont_default_fid): New function.
16695 (ftxfont_open): Set xfont->fid to the return value of
16696 ftxfont_default_fid.
16697 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16698 (ftxfont_done_face): Free only GCs that are created by
16699 ftxfont_create_gcs.
16700 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16702 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16703 Clip to src->width, etc (not src->clip_XXX).
16705 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16706 FontBackend frame parameter.
16708 2008-02-01 Kenichi Handa <handa@m17n.org>
16710 * font.h (struct font_driver_list): New member `on'.
16711 (Fclear_font_cache): EXFUN it.
16712 (font_update_drivers): Extern it.
16714 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16715 (font_list_entities): Check driver_list->on.
16716 (register_font_driver): Initalize `on' member to 0.
16717 (font_update_drivers): New function.
16718 (Fclear_font_cache): Check driver_list->on.
16720 * frame.h (Qfont_backend): Extern it.
16721 (x_set_font_backend): Extern it.
16723 * frame.c (Qfont_backend): New variable.
16724 (frame_parms): New element for font-backend.
16725 (x_set_font_backend): New function.
16727 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16728 FontBackend frame parameter.
16729 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16730 x_set_font_backend.
16732 * xfont.c (xfont_list): Don't try listing by :name property if the
16733 name is not for XLFD.
16735 2008-02-01 Kenichi Handa <handa@m17n.org>
16737 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16738 (LGLYPH_SET_TO): New macros.
16739 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16740 element of G is vector or not.
16741 (font_at): Extern it.
16743 * font.c: Include window.h.
16744 (font_lispy_object): New function.
16745 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16746 end of valid glyph.
16747 (font_close_object): Fix getting (struct font *).
16748 (font_at): New function.
16749 (Ffont_get): If FONT is a font-object, get entity from it.
16750 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16751 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16753 (Ffont_at): New function.
16754 (syms_of_font): Defsubr Sfont_at.
16756 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16757 before the entry for Qcomposition.
16758 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16759 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16760 the font in gstring.
16761 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16762 LGLYPH_FORM (g) to detect the end of valid glyph.
16763 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16764 we are composing with gstring.
16766 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16767 Check if adjustment is vector or not.
16769 * Makefile.in (font.o): Make it depends on window.h.
16771 2008-02-01 Kenichi Handa <handa@m17n.org>
16773 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16774 adjustment is vector or not.
16776 2008-02-01 Miles Bader <miles@gnu.org>
16778 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16780 2008-02-01 Kenichi Handa <handa@m17n.org>
16782 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16783 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16784 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16786 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16787 (DEVICE_DELTA): Fix typo.
16788 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16791 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16792 the change of LGLYPH format.
16794 2008-02-01 Kenichi Handa <handa@m17n.org>
16796 * ftfont.c (ftfont_list): Fix typo.
16797 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16799 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16801 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16803 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16804 xftface_info is non-NULL.
16806 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16808 * ftfont.c (ftfont_list): Move misplaced #endif.
16810 2008-02-01 Kenichi Handa <handa@m17n.org>
16812 * ftfont.c (ftfont_list): Pay attention to the case that
16813 FC_CAPABILITY is not defined.
16815 2008-02-01 Kenichi Handa <handa@m17n.org>
16817 * xftfont.c (xftfont_open): Set charset related members to -1.
16819 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16821 (ftfont_open): Set charset related members to -1.
16823 * fontset.c (Votf_script_alist): New variable.
16824 (syms_of_fontset): Initialize it.
16825 (fontset_font): Delete unused variable.
16827 * fontset.h (Votf_script_alist): Extern it.
16829 * font.c (font_find_for_lface): Optimize code.
16831 * font.h (font_close_object, font_merge_old_spec): Extern them.
16833 2008-02-01 Kenichi Handa <handa@m17n.org>
16835 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16836 (syms_of_font): Initialize them.
16837 (font_pixel_size): Allow float value in dpi.
16838 (font_prop_validate_type): Delete.
16839 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16841 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16842 (font_prop_validate_extra): Delete.
16843 (font_prop_validate_spacing): New function.
16844 (font_property_table): Add elements for all known properties.
16845 (get_font_prop_index): Rename from check_font_prop_name. New
16846 argument FROM. Change caller.
16847 (font_prop_validate): Validate all known properties.
16848 (font_put_extra): Delete argument force. Change caller.
16849 (font_expand_wildcards): Make it static. Fix the way of shrinking
16850 the possible range.
16851 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16852 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16854 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16855 (font_parse_fcname): Delete argument merge. Fix parsing of point
16856 size. Don't validate properties values here. Change caller.
16857 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16858 (font_open_by_name): Delete unused variable.
16859 (Ffont_spec): Likewise. Validate property values.
16860 (Ffont_match_p): New function.
16862 * font.h (QCscalable): Extern it.
16863 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16865 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16867 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16868 (xfont_list_pattern): New function.
16869 (xfont_list): Use xfont_list_pattern.
16871 2008-02-01 Kenichi Handa <handa@m17n.org>
16873 * font.h (Flist_fonts): EXFUN it.
16875 2008-02-01 Jason Rumney <jasonr@gnu.org>
16877 * w32term.c (w32_initialize): Add back smoothing_type and
16878 smoothing_enabled definitions.
16880 2008-02-01 Kenichi Handa <handa@m17n.org>
16882 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16883 s->face->font on determining underline position.
16885 2008-02-01 Kenichi Handa <handa@m17n.org>
16887 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16888 (font_has_char): Accept font-object too.
16889 (font_find_for_lface): Try at first with a size specified in face.
16891 2008-02-01 Kenichi Handa <handa@m17n.org>
16893 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16896 2008-02-01 Kenichi Handa <handa@m17n.org>
16898 * font.h (QCspacing, QCdpi): Extern them.
16899 (enum font_spacing): New enum.
16900 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16902 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16903 (QCspacing, QCdpi): New variables.
16904 (syms_of_font): Initialize them.
16905 (font_pixel_size): New function.
16906 (font_put_extra): New function.
16907 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16909 (font_parse_fcname): Handle enumerated values (e.g. bold).
16910 Fix handling font size. Add QCname property that contains only
16911 unknown properties.
16912 (font_score): Change argument. Change caller. Pay attention to
16913 FONT_PIXEL_SIZE_QUANTUM.
16914 (font_sort_entites, font_list_entities, font_find_for_lface)
16915 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16916 (Ffont_spec): Add QCname property that contains only unknown properties.
16918 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16919 include weight in listing pattern, instead check weight of each
16920 listed font. Don't include scalable in pattern. Pay attention to
16921 FONT_PIXEL_SIZE_QUANTUM.
16923 2008-02-01 Kenichi Handa <handa@m17n.org>
16925 * font.c (font_parse_fcname): Fix parsing of point-size.
16926 (font_unparse_fcname): Produce symbolic names for style properties.
16927 (font_list_entities): Handle float size correctly.
16928 (font_open_by_name): Prefer `normal' property values if the name
16929 doesn't specify them.
16931 * fontset.c (Finternal_char_font): Use font_get_name, not
16934 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16935 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16936 pattern. Don't force scalable.
16938 * xftfont.c (xftfont_open): For generating a name, start from
16941 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16943 * frame.h (x_new_fontset2): Fix prototype.
16945 2008-02-01 Kenichi Handa <handa@m17n.org>
16947 * font.h (struct font_driver): Delete member parse_name.
16948 (font_match_p, font_get_spec, font_parse_fcname)
16949 (font_unparse_fcname): Extern them.
16950 (font_get_name): Adjust prototype.
16952 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16953 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16954 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16955 unnecessary checks for weight, slant, and swidth.
16956 (font_parse_fcname): New function.
16957 (font_unparse_fcname): New function.
16958 (font_parse_name): New function.
16959 (font_match_p): New function.
16960 (font_get_name): Change return value to Lisp string.
16961 (font_get_spec): New function.
16962 (Qunspecified, Qignore_defface): Don't extern them.
16963 (font_find_for_lface): Assume that LFACE is fully specified.
16964 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16965 object, use it for FACE.
16966 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16967 driver->parse_name.
16968 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16970 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16973 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16974 argument F. Don't call Fnew_fontset. Instead, directly call
16977 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16979 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16982 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16983 (Qsans__serif): New variables.
16984 (ftfont_generic_family_list): New variable.
16985 (syms_of_ftfont): Initialize the above variables.
16986 (ftfont_pattern_entity): Delete argument NAME.
16987 (ftfont_list_generic_family): New function.
16988 (ftfont_parse_name): Delete this function.
16989 (ftfont_list): Try generic family only when FcFontList found no font.
16990 (ftfont_list_family): Fix args to FcObjectSetBuild.
16992 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16993 object in attrs[LFACE_FONT_INDEX].
16994 (set_lface_from_font_name): Cancel all changes for font-backend.
16995 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16997 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16998 font object in QCfont attribute.
16999 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17000 (realize_default_face) [USE_FONT_BACKEND]: Call
17001 set_lface_from_font_and_fontset.
17003 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17004 "fixed", and signal error here if no suitable font was found.
17006 * xfont.c (xfont_parse_name): Delete this function.
17008 * xftfont.c (xftfont_open): Change coding style of error
17009 handling. Generate fontconfig's fontname pattern.
17011 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17012 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17014 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17015 Both args FONTSET and FONT_OBJECT must be existing ones.
17017 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17019 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17021 2008-02-01 Kenichi Handa <handa@m17n.org>
17023 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17025 * font.h (struct font): Fix typo.
17027 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17029 (enum xlfd_field_mask): New enum.
17030 (intern_font_field): Changed argument. Change caller. If digits
17031 are followed by non-digits, return a symbol.
17032 (font_expand_wildcards): New function.
17033 (font_parse_xlfd): Fix wildcard handling.
17034 (Ffont_spec): If :name is specified, reflect the info in the other
17037 * ftfont.c (ftfont_pattern_entity): Fix typo.
17038 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17041 2008-02-01 Kenichi Handa <handa@m17n.org>
17043 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17045 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17046 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17047 registry doesn't specify encoding part.
17048 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17049 (font_open_by_name): At first try parsing the name.
17050 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17053 * fontset.c (reorder_font_vector): Pay attention to the case that
17054 the 3rd element of font_def is nil.
17055 (fontset_font): For the default fontset, append one more fontset
17056 elements for a script-based font specification. Don't add script
17057 attribute on finding a font.
17058 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17060 (fontset_ascii_font): If a font can't be opened, return nil.
17062 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17063 (ftfont_pattern_entity): New function.
17064 (ftfont_get_cache): Assume that freetype_font_cache is already
17066 (ftfont_list): Handle the case that a file is specified in font
17067 name. Use ftfont_pattern_entity to generate entities.
17068 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17069 (syms_of_ftfont): Initialize freetype_font_cache.
17071 * xftfont.c (xftfont_open): Make the font name fontconfig's
17072 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17073 (xftfont_close): Free font->font.name if not NULL.
17075 * xfont.c (xfont_list): If script is specified for a font, return
17077 (xfont_list_family): Declare argument type.
17079 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17080 name, set LFACE_FONT (lface) to nil.
17082 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17085 2008-02-01 Kenichi Handa <handa@m17n.org>
17087 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17088 (standard_args): Add "-enable-font-backend".
17090 2008-02-01 Kenichi Handa <handa@m17n.org>
17092 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17093 (struct xftdraw_list, xftdraw_list): Delete them.
17094 (register_xftdraw, check_xftdraw): Delete them.
17095 (xftfont_prepare_face): Don't call register_xftdraw.
17096 (xftfont_done_face): Don't call check_xftdraw.
17097 (xftfont_draw): Get background color only when with_background is
17100 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17102 2008-02-01 Kenichi Handa <handa@m17n.org>
17104 These changes are for the new font handling codes.
17106 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17107 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17108 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17109 (FONTSRC, FONTOBJ): New variables.
17110 (obj): Add $(FONTOBJ).
17111 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17112 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17114 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17115 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17117 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17119 * character.h (Vscript_representative_chars): Extern it.
17121 * character.c (Vscript_representative_chars): New variable.
17122 (syms_of_character): Declare it as a Lisp variable.
17124 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17125 enable_font_backend is nonzero, accept the composition method
17126 COMPOSITION_WITH_GLYPH_STRING.
17128 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17129 enumeration COMPOSITION_WITH_GLYPH_STRING.
17131 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17132 members clip_x, clip_y, clip_width, and clip_height.
17133 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17135 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17136 --enable-font-backend. Call syms_of_font.
17138 * fns.c (assoc_no_quit): New function.
17140 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17141 (face_for_font, new_fontset_from_font)
17142 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17144 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17145 (fontset_font, fontset_ascii, face_for_char)
17146 (make_fontset_for_ascii_face, Ffont_info)
17147 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17148 is nonzero, use font-backend mechanism.
17149 (find_font_encoding): Make it non-static.
17150 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17153 * frame.h (struct frame): New members resx and resy.
17154 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17155 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17157 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17158 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17160 * lisp.h (assoc_no_quit): Extern it.
17162 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17163 Through out the file, use FONT_INFO_FROM_FACE instead of
17164 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17165 rif->per_char_metric.
17166 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17167 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17168 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17169 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17170 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17171 nonzero, use font-backend mechanism.
17172 (get_per_char_metric): New function.
17174 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17175 (set_lface_from_font_name)
17176 (set_font_frame_param, free_realized_face)
17177 (prepare_face_for_display, clear_face_gcs)
17178 (Finternal_set_font_selection_order, realize_x_face)
17179 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17180 font-backend mechanism.
17181 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17182 (load_face_font) [USE_FONT_BACKEND]: Abort.
17183 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17184 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17186 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17187 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17188 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17189 nonzero, register all available font drivers. Call
17190 x_default_font_parameter for deciding a font.
17191 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17193 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17194 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17195 (x_set_glyph_string_clipping_exactly)
17196 (x_compute_glyph_string_overhangs)
17197 (x_draw_glyph_string_foreground)
17198 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17199 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17200 enable_font_backend is nonzero, use font-backend mechanism.
17201 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17203 2008-02-01 Kenichi Handa <handa@m17n.org>
17205 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17207 (syms_of_coding): Initialize system_eol_type.
17209 * process.c (Fset_process_coding_system): Inherit system's eol
17210 format if necessary.
17212 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17214 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17216 2008-02-01 Kenichi Handa <handa@m17n.org>
17218 * coding.c (decode_eol): Pay attention to buffer relocation in
17220 (decode_coding): Call decode_eol before restoring undo_list.
17222 2008-02-01 Kenichi Handa <handa@m17n.org>
17224 * charset.c (Fdefine_charset_internal): Fix setting of
17227 2008-02-01 Kenichi Handa <handa@m17n.org>
17229 * keyboard.c (read_char): Check if C is a character or not before
17230 looking up Vkeyboard_translate_table.
17232 2008-02-01 Kenichi Handa <handa@m17n.org>
17234 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17235 condition to terminate the loop.
17237 2008-02-01 Kenichi Handa <handa@m17n.org>
17239 * coding.c (produce_composition): Compare charbuf[i] instead of
17241 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17243 2008-02-01 Kenichi Handa <handa@m17n.org>
17245 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17246 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17247 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17249 (emacs_mule_char): Handle old style (Emacs 20) component character
17251 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17252 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17254 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17256 2008-02-01 Kenichi Handa <handa@m17n.org>
17258 * coding.c (encode_coding_ccl): Allocate destination dynamically
17261 2008-02-01 Kenichi Handa <handa@m17n.org>
17263 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17264 the loop. When quitted, show a proper error message.
17266 2008-02-01 Kenichi Handa <handa@m17n.org>
17268 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17269 src->clip_head and src->clip_tail temporarily instead of src->hl.
17271 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17272 character sequence.
17273 (Fccl_execute_on_string): Use ASET, not XSET.
17275 2008-02-01 Kenichi Handa <handa@m17n.org>
17277 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17279 2008-02-01 Kenichi Handa <handa@m17n.org>
17281 * coding.c (decode_coding): Fix the condition of terminating the
17284 2008-02-01 Kenichi Handa <handa@m17n.org>
17286 * data.c (Faset): On setting a character bigger than 255 in a
17287 unibyte string, signal an error instead of make the string multibyte.
17289 2008-02-01 Kenichi Handa <handa@m17n.org>
17291 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17292 made by a mapping table.
17294 2008-02-01 Kenichi Handa <handa@m17n.org>
17296 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17298 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17299 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17301 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17302 s->face is NULL or not.
17304 2008-02-01 Kenichi Handa <handa@m17n.org>
17306 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17307 (x_draw_glyph_string): Fix drawing of right_overhang and
17308 left_overhang around/on cursor.
17310 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17312 2008-02-01 Kenichi Handa <handa@m17n.org>
17314 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17316 2008-02-01 Kenichi Handa <handa@m17n.org>
17318 * coding.c (Fdefine_coding_system_internal)
17319 (Fdefine_coding_system_alias): Avoid a duplicated element in
17320 Vcoding_system_alist.
17322 2008-02-01 Kenichi Handa <handa@m17n.org>
17324 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17326 * coding.c (Qcoding_system_define_form): New variable.
17327 (syms_of_coding): Intern and staticpro it.
17328 (Fcoding_system_p): Check Qcoding_system_define_form.
17329 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17331 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17333 (CHECK_CODING_SYSTEM): If ID is not available, call
17334 Fcheck_coding_system.
17335 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17336 Try also Fcheck_coding_system.
17338 2008-02-01 Kenichi Handa <handa@m17n.org>
17340 * coding.c (code_conversion_restore): GCPRO arg.
17342 2008-02-01 Kenichi Handa <handa@m17n.org>
17344 * character.c (lisp_string_width): Check multibyteness of STRING.
17346 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17348 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17349 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17350 (decode_mac_font_name): Use decode_coding_c_string instead of
17352 (x_load_font): Initialize fontp->fontset to -1. Set
17353 fontp->encoding_type.
17355 2008-02-01 Kenichi Handa <handa@m17n.org>
17357 * search.c (search_buffer): Give up BM search on case-fold-search
17358 if one of a target character has a case-equivalence of different
17359 byte length even if that target charcter is an ASCII.
17360 (simple_search): Fix calculation of byte length of matched text.
17361 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17363 2008-02-01 Kenichi Handa <handa@m17n.org>
17365 * coding.c (decode_coding): Fix handling of invalid bytes.
17367 2008-02-01 Kenichi Handa <handa@m17n.org>
17369 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17370 Unicode characters.
17372 2008-02-01 Kenichi Handa <handa@m17n.org>
17374 * coding.c (encode_coding_object): If a pre-write-conversion
17375 function makes a new buffer, kill it.
17377 2008-02-01 Kenichi Handa <handa@m17n.org>
17379 * coding.c (QCascii_compatible_p): New variable.
17380 (syms_of_coding): Initialize it.
17381 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17382 calling string_char.
17383 (record_conversion_result): Add `default:' case.
17384 (coding_charset_list): Delete unused variable `coding_type'.
17385 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17386 property in the plist of the coding system.
17387 (Fcoding_system_put): Check QCascii_compatible_p.
17389 2008-02-01 Miles Bader <miles@gnu.org>
17391 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17392 removed calculation of frame `f', as it's now used.
17394 2008-02-01 Kenichi Handa <handa@m17n.org>
17396 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17397 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17398 (UNIDATA): New variable.
17399 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17400 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17401 $(RUN_TEMACS) unconditionally.
17403 2008-02-01 Kenichi Handa <handa@m17n.org>
17405 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17406 (admindir): New variable.
17407 ($(lispsource)international/charprop.el): New target.
17409 2008-02-01 Miles Bader <miles@gnu.org>
17411 * character.c (chars-in-region): Remove obsolete function.
17412 (syms_of_character): Remove its initialization.
17414 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17416 * w32select.c (validate_coding_system)
17417 (setup_windows_coding_system): New functions.
17418 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17419 setup_windows_coding_system.
17420 (setup_config, Fw32_get_clipboard_data): Use
17421 validate_coding_system.
17422 (Fx_selection_exists): Move call to setup_config to a place
17423 where signals are allowed.
17425 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17426 (Fcheck_coding_system): Add declarations.
17428 2008-02-01 Kenichi Handa <handa@m17n.org>
17430 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17432 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17434 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17435 string as the second argument for x_new_fontset.
17437 2008-02-01 Kenichi Handa <handa@m17n.org>
17439 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17440 (encode_coding_object): Use safe_call instead of call2.
17442 2008-02-01 Kenichi Handa <handa@m17n.org>
17444 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17446 * Makefile.in (lisp): Include charprop.el.
17448 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17450 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17451 Not sure if it's unnecessary.
17453 2008-02-01 Steven Tamm <steventamm@mac.com>
17455 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17456 some possibly unnecessary fontset checking code that crashed
17457 when creating a new frame.
17459 2008-02-01 Kenichi Handa <handa@m17n.org>
17461 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17464 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17466 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17468 2008-02-01 Kenichi Handa <handa@m17n.org>
17470 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17471 (coding_charset_list): New function.
17473 * coding.h (coding_charset_list): Extern it.
17475 2008-02-01 Kenichi Handa <handa@m17n.org>
17477 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17478 concatenation of family and registry.
17480 2008-02-01 Kenichi Handa <handa@m17n.org>
17482 * character.h (BYTE8_STRING): Fix typo.
17484 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17485 string to multibyte (sync to HEAD).
17487 * casefiddle.c (casify_region): Handle changes in byte-length
17488 using replace_range_2 (sync to HEAD).
17490 2008-02-01 Andreas Schwab <schwab@suse.de>
17492 * chartab.c (map_char_table): GCPRO table and arg.
17494 2008-02-01 Kenichi Handa <handa@m17n.org>
17496 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17499 2008-02-01 Kenichi Handa <handa@m17n.org>
17501 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17502 instead of fast_c_string_match_ignore_case.
17503 (find_font_encoding): Change argument to Lisp_Object. Use
17504 fast_string_match_ignore_case instead of
17505 fast_c_string_match_ignore_case. Change caller.
17507 2008-02-01 Kenichi Handa <handa@m17n.org>
17509 * xdisp.c (get_next_display_element): In unibyte case, decide to
17510 display in octal form by checking a character by
17511 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17513 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17515 * character.c (unibyte_has_multibyte_table): New variable.
17517 * character.h (unibyte_has_multibyte_table): Extern it.
17518 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17520 2008-02-01 Kenichi Handa <handa@m17n.org>
17522 * coding.c (encode_coding_iso_2022): Fix handling of charset
17525 2008-02-01 Kenichi Handa <handa@m17n.org>
17527 * coding.c (setup_coding_system): If coding_system is nil, use
17529 (Fterminal_coding_system): Return nil if terminal coding system is
17531 (syms_of_coding): Define coding-system `undecided' here. Setup
17532 terminal_coding as `undecided'.
17534 2008-02-01 Kenichi Handa <handa@m17n.org>
17536 * xdisp.c (message_dolog, set_message_1): Call
17537 unibyte_char_to_multibyte with arg type int.
17539 * lread.c (read1): Fix reading of a char-table.
17541 * print.c (print_object): Include sub char-table in circularities
17544 2008-02-01 Kenichi Handa <handa@m17n.org>
17546 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17547 Append the found sequences in car of ARGS instead of prepending.
17549 2008-02-01 Kenichi Handa <handa@m17n.org>
17551 * fileio.c (report_file_error): Make a unibyte string from
17552 strerror (errorno).
17553 (Fsubstitute_in_file_name): Fix the arg to
17554 unibyte_char_to_multibyte. It is evaluated twice.
17556 2008-02-01 Kenichi Handa <handa@m17n.org>
17558 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17560 2008-02-01 Kenichi Handa <handa@m17n.org>
17562 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17564 (detect_coding, detect_coding_system): Optimization for ISO-2022
17565 when no 8-bit data is found.
17567 2008-02-01 Jason Rumney <jasonr@gnu.org>
17569 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17571 2008-02-01 Kenichi Handa <handa@m17n.org>
17573 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17576 2008-02-01 Steven Tamm <steventamm@mac.com>
17578 * macterm.c (mac_encode_char): Add charset argument and update
17579 to use encoding_type.
17580 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17581 switch to pure fontset.
17582 (decode_mac_font_name): Temporarily remove decoding.
17583 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17584 (x_load_font): Temporarily remove encoding.
17586 2008-02-01 Kenichi Handa <handa@m17n.org>
17588 * xfaces.c (Fface_font): If frame is not on a window system,
17589 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17590 refer to face->font.
17591 (split_font_name_into_vector, build_font_name_from_vector)
17592 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17593 when HAVE_WINDOW_SYSTEM is defined.
17595 2008-02-01 Kenichi Handa <handa@m17n.org>
17597 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17598 (x_produce_glyphs): Fix setting of members of cmp in case
17599 cmp->glyph_len is zero.
17601 * fontset.c (Fset_fontset_font): Fix docstring.
17602 (Ffontset_info): Make it backward compatible. New arg ALL.
17604 2008-02-01 Kim F. Storm <storm@cua.dk>
17606 * process.c (read_process_output): Grow decoding_buf when needed;
17607 this could cause a crash in allocate_string and compact_small_strings.
17609 2008-02-01 Kenichi Handa <handa@m17n.org>
17611 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17613 2008-02-01 Kenichi Handa <handa@m17n.org>
17615 * coding.c (setup_coding_system): Set coding->common_flags
17616 correctly for raw-text.
17617 (consume_chars): On encoding unibyte text by raw-text, don't check
17619 (encode_coding): On encoding by raw-text, never use translation tables.
17621 * fileio.c (e_write): Short cut for the case of no encoding.
17623 2008-02-01 Kenichi Handa <handa@m17n.org>
17625 * coding.c (detect_coding, detect_coding_system): Delete unused
17628 2008-02-01 Kenichi Handa <handa@m17n.org>
17630 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17631 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17633 2008-02-01 Kenichi Handa <handa@m17n.org>
17635 * coding.c (Ffind_coding_systems_region_internal): Include
17636 raw-text and no-conversion in the result.
17638 2008-02-01 Kenichi Handa <handa@m17n.org>
17640 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17641 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17643 (font_def_arg, add_arg, from_arg, to_arg): New args.
17644 (set_fontset_font): Change argument.
17645 (Fset_fontset_font): Fix for the case that TARGET is a script
17646 name and charset name.
17647 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17649 2008-02-01 Kenichi Handa <handa@m17n.org>
17651 * fontset.c (fontset_font): Rename from fontset_face. Change return
17653 (face_suitable_for_char_p, face_for_char): Adjust for the change
17655 (make_fontset_for_ascii_face): Fix setting of the fontset element
17657 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17658 to get a font name.
17659 (Ffontset_info): Adjust for the change of fontset_font.
17661 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17663 * character.h (LEADING_CODE_LATIN_1_MIN)
17664 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17666 2008-02-01 Kenichi Handa <handa@m17n.org>
17668 * editfns.c (check_translation): New function.
17669 (Ftranslate_region_internal): Handle M:N mapping.
17671 2008-02-01 Kenichi Handa <handa@m17n.org>
17673 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17675 2008-02-01 Kenichi Handa <handa@m17n.org>
17677 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17679 (decode_coding_iso_2022): Fix handling of invalid designation.
17681 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17682 after calling code_conversion_save.
17684 2008-02-01 Kenichi Handa <handa@m17n.org>
17686 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17688 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17690 * fontset.c: Include "intervals.h".
17691 (fontset_face): Fix comparing of Lisp_Objects.
17692 (free_face_fontset, new_fontset_from_font_name): Fix
17693 Lisp_Object/int mixup.
17695 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17697 * coding.c: Add many prototypes for static functions.
17698 (get_translation_table): Allow max_lookup to be NULL.
17699 (decode_coding, Ffind_coding_systems_region_internal)
17700 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17701 get_translation_table with max_lookup NULL.
17703 2008-02-01 Kenichi Handa <handa@m17n.org>
17705 * coding.c (get_translation_table): Declare it as Lisp_Object.
17706 (LOOKUP_TRANSLATION_TABLE): New macro.
17707 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17708 instead of CHAR_TABLE_REF.
17710 2008-02-01 Kenichi Handa <handa@m17n.org>
17712 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17713 annotation data format.
17714 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17715 Change arguments FROM and TO to single argument NCHARS. Change caller.
17716 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17717 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17718 (decode_coding_ccl, decode_coding_charset): Pay attention to
17719 coding->charbuf_used.
17720 (get_translation): New function.
17721 (produce_chars): New arguments translation_table and last_block.
17722 Translate characters here. Return number of carryover chars.
17724 (produce_composition): New argument pos. Change caller.
17725 Adjust for the change of annotation data format.
17726 (produce_charset, produce_annotation): Likewise.
17727 (decode_coding, encode_coding): Don't call translate_chars.
17728 (consume_chars): New arg translation_table. Change caller.
17729 (translate_chars): Delete.
17730 (syms_of_coding): Make translation-table's number of extra slots 2.
17732 2008-02-01 Kenichi Handa <handa@m17n.org>
17734 * search.c (simple_search): Fix setting this_pos_byte in backward
17737 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17739 (detect_coding_ccl): Fix setting of the variable valids.
17741 2008-02-01 Kenichi Handa <handa@m17n.org>
17743 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17745 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17747 * editfns.c (Ftranslate_region_internal): Rename from
17748 Ftranslate_region. Accept a char-table in TABLE.
17749 (syms_of_editfns): Defsubr Stranslate_region_internal.
17751 * xfaces.c (set_lface_from_font_name): If a font is specified for
17752 a frame, generate a fontset from the font.
17753 (build_scalable_font_name): If the scalable font is requested for
17754 a specific size, don't change that size.
17755 (try_font_list): Try a scalable font also in the case that a
17756 pattern string is specified.
17758 2008-02-01 Kenichi Handa <handa@m17n.org>
17760 * xfaces.c (Fface_font): New optional arg CHARACTER.
17762 2008-02-01 Kenichi Handa <handa@m17n.org>
17764 * charset.h (CHARSET_OFFSET): New macro.
17766 2008-02-01 Kenichi Handa <handa@m17n.org>
17768 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17770 * fontset.c (fontset_face): Handle the case that repertory is a
17772 (find_font_encoding): Return nil for unknown encoding.
17773 (Fset_fontset_font): Ignore a font of unknown encoding.
17775 2008-02-01 Kenichi Handa <handa@m17n.org>
17777 * keymap.c (describe_vector): Handle default value of a char table.
17779 * fontset.c (fontset_face): Handle fallback fonts correctly.
17780 (Ffontset_info): Return infomation about fallback fonts.
17782 2008-02-01 Kenichi Handa <handa@m17n.org>
17784 * fontset.c (FONTSET_DEFAULT): New macro.
17785 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17786 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17787 the case that it is nil.
17788 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17789 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17791 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17792 subset or superset.
17794 2008-02-01 Kenichi Handa <handa@m17n.org>
17796 * emacs.c (main): Call init_charset after syms_of_XXX.
17798 * charset.c (Vcharset_map_directory): Delete.
17799 (Vcharset_map_path): New variable.
17800 (load_charset_map_from_file): Use Vcharset_map_path instead.
17801 (init_charset): Initialize Vcharset_map_path.
17802 (syms_of_charset): Delete declaration of "charset-map-directory",
17803 add declaration of "charset-map-path".
17805 2008-02-01 Kenichi Handa <handa@m17n.org>
17807 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17810 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17812 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17813 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17815 2008-02-01 Kenichi Handa <handa@m17n.org>
17817 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17819 * coding.c (QCmnemonic, QCdefalut_char)
17820 (QCdecode_translation_table, QCencode_translation_table)
17821 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17822 (get_translation_table): Return a list of translation tables if
17824 (decode_coding): Call get_translation_table with ENCODEP 0.
17825 (char_encodable_p): If translation_table is non-nil, always call
17827 (Fdefine_coding_system_internal): Accept list of translation
17828 tables as :encode-translation-table and :decode-translation-table.
17829 (Fcoding_system_put): New function.
17830 (syms_of_coding): Declare new symbols. Defsubr
17831 Scoding_system_put.
17832 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17833 typically JISX0212.
17835 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17836 when the charset is superset type.
17838 * character.c (translate_char): Accept list of translation tables.
17840 2008-02-01 Kenichi Handa <handa@m17n.org>
17842 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17843 (CODING_ATTR_TRANS_TBL): New macro.
17845 * coding.c (get_translation_table): New function.
17846 (translate_chars): Fix the bug of skipping annotation data.
17847 (decode_coding, encode_coding): Utilize get_translation_table.
17848 (char_encodable_p, Funencodable_char_position): Translate char if
17850 (Ffind_coding_systems_region_internal)
17851 (Fcheck_coding_systems_region): Setup translation table for encode
17852 in a coding system attribute vector in advance.
17853 (Fdefine_coding_system_internal): Allow a symbol as translation
17854 table. For shift-jis type coding system, allow 4th charset.
17856 2008-02-01 Kenichi Handa <handa@m17n.org>
17858 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17860 * xdisp.c (get_next_display_element): Pass -1 as POS to
17861 FACE_FOR_CHAR if displaying a C-string.
17863 2008-02-01 Kenichi Handa <handa@m17n.org>
17865 * composite.c (get_composition_id): Handle xoff and yoff in a
17868 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17869 (struct composition): New member lbearing and rbearing.
17871 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17872 (x_get_glyph_overhangs): Handle a composition glyph.
17873 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17875 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17878 2008-02-01 Kenichi Handa <handa@m17n.org>
17880 * print.c: Include charset.h.
17881 (Vprint_charset_text_property): New variable.
17882 (Qdefault): Extern it.
17883 (PRINT_STRING_NON_CHARSET_FOUND)
17884 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17885 (print_check_string_result): New variable.
17886 (print_check_string_charset_prop): New function.
17887 (print_prune_charset_plist): New variable.
17888 (print_prune_string_charset): New function.
17889 (print_object): Call print_prune_string_charset if
17890 Vprint_charset_text_property is not t.
17891 (print_interval): Print nothing if interval->plist is nil.
17892 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17893 variable. Init and staticpro print_prune_charset_plist.
17895 2008-02-01 Kenichi Handa <handa@m17n.org>
17897 * fontset.c (new_fontset_from_font_name): Use the specified font
17898 for all characters in the new fontset.
17900 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17903 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17904 OBJECT args for composition too.
17906 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17909 2008-02-01 Kenichi Handa <handa@m17n.org>
17911 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17913 * fontset.c (reorder_font_vector): Adjust for the change of
17915 (fontset_face): New arg id. Change caller.
17916 (face_for_char): New args pos and object.
17917 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17918 (fs_query_fontset): Check NAME by Fassoc too.
17919 (Fset_fontset_font): Allow non-XLFD font name.
17920 (Ffontset_info): Adjust for the change of FONT_DEF format.
17922 * fontset.h (face_for_char): Adjust prototype.
17924 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17925 (append_space, extend_face_to_end_of_line)
17926 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17927 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17929 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17930 POS and OBJECT args.
17932 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17933 POS and OBJECT args.
17935 2008-02-01 Jason Rumney <jasonr@gnu.org>
17937 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17938 of GlobalAlloc'ed memory.
17940 2008-02-01 Kenichi Handa <handa@m17n.org>
17942 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17944 * charset.h (charset_table_used): Delete extern.
17946 * charset.c (charset_table_used): Make it static.
17947 (map_charset_chars): Fix args to c_function with.
17949 * chartab.c (map_sub_char_table_for_charset): Fix args to
17952 * coding.h (enum coding_result_code): Delete
17953 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17955 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17956 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17957 (Vlast_code_conversion_error): New variables.
17958 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17959 (ONE_MORE_BYTE): Record error if any instead of signaling an
17960 error. If non-ASCII multibyte char is found, return the negative
17961 value of the code. All callers changed to check it.
17962 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17963 (record_conversion_result): New function. Change all codes setting
17964 coding->result to call this function.
17965 (detect_coding_utf_8, decode_coding_utf_8)
17966 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17967 Don't use the local variable incomplete.
17968 (emacs_mule_char): Change the second arg to `const'.
17969 (decode_coding): Fix of flushing out unprocessed data.
17970 (make_conversion_work_buffer): Fix making of a work buffer.
17971 (decode_coding_object): Return coding->dst_object.
17973 * fontset.c (set_fontset_font): Fix args.
17975 * lisp.h (CHARACTERBITS): Define as 22.
17977 * process.c (send_process): Be sure to set coding->src_multibyte.
17979 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17981 2008-02-01 Kenichi Handa <handa@m17n.org>
17983 * xdisp.c (handle_auto_composed_prop): Give limit to
17984 Fnext_single_char_property_change.
17986 2008-02-01 Kenichi Handa <handa@m17n.org>
17988 * composite.c (syms_of_composite): Don't make the composition hash
17991 * fontset.c (Fset_fontset_font): Fix docstring.
17993 * lisp.h (detect_coding_system): Adjust prototype.
17995 * fileio.c (kill_workbuf_unwind): Delete this function.
17996 (Finsert_file_contents): Adjust the call of detect_coding_system.
17997 Get conversion_buffer by code_conversion_save. Use the macro
17998 CODING_MAY_REQUIRE_DECODING. After decoding, update
18001 * coding.h (make_conversion_work_buffer): Delete extern.
18002 (code_conversion_save): Extern it.
18004 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18005 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18006 (decode_coding_utf_8): Don't do eol converion.
18007 (detect_coding_utf_16): Check coding->src_chars, not
18008 coding->src_bytes. Add heuristics for those that have no signature.
18009 (decode_coding_emacs_mule, decode_coding_iso_2022)
18010 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18011 Don't do eol converion.
18012 (adjust_coding_eol_type): Return a new coding system.
18013 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18014 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18016 (decode_coding): Pay attention to undo_list. Do eol conversion for
18017 all types of coding-systems (if necessary).
18018 (Vcode_conversion_work_buf_list): Delete it.
18019 (Vcode_conversion_reused_workbuf): Rename from
18020 Vcode_conversion_reused_work_buf.
18021 (Vcode_conversion_workbuf_name): New variable.
18022 (reused_workbuf_in_use): New variable.
18023 (make_conversion_work_buffer): Delete the arg DEPTH.
18024 (code_conversion_restore): Change argument to cons.
18025 (code_conversion_save): Delete the argument BUFFER. Change callers.
18026 (detect_coding_system): New argument src_chars. Change callers.
18027 Fix for utf-16 detection.
18028 (init_coding_once): Don't use ISO_carriage_return.
18029 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18030 reused_workbuf_in_use.
18032 2008-02-01 Kenichi Handa <handa@m17n.org>
18034 * keymap.c (store_in_keymap): Pay attention to the case that idx
18035 is a cons specifying a character range.
18037 2008-02-01 Kenichi Handa <handa@m17n.org>
18039 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18040 HANDLED_RECOMPUTE_PROPS.
18042 * coding.c (Fdefine_coding_system_internal): Fix checking of
18043 ascii compatibility.
18045 2008-02-01 Kenichi Handa <handa@m17n.org>
18047 * charset.c (find_charsets_in_text): Delete unused locale variable.
18048 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18050 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18051 Resync charset_list to Vemacs_mule_charset_list.
18053 * keymap.c (store_in_keymap): Pay attention to the case that idx
18054 is a cons specifying a character range.
18056 2008-02-01 Kenichi Handa <handa@m17n.org>
18058 * composite.c (update_compositions): Bind inhibit-read-only, etc
18059 to t before calling remove-list-of-text-properties.
18061 * print.c (print_object): Always print ASCII chars as is.
18063 2008-02-01 Kenichi Handa <handa@m17n.org>
18065 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18067 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18070 2008-02-01 Kenichi Handa <handa@m17n.org>
18072 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18074 2008-02-01 Kenichi Handa <handa@m17n.org>
18076 * xfaces.c (set_lface_from_font_name): Fix for the case that
18077 FONTNAME is not fontset name.
18079 2008-02-01 Kenichi Handa <handa@m17n.org>
18081 * fns.c (base64_encode_1): Fix previous change.
18083 2008-02-01 Kenichi Handa <handa@m17n.org>
18085 * fontset.c (set_fontset_font): New function.
18086 (Fset_fontset_font): If a font is specified for a charset, use
18087 map_charset_chars to store the font spec in a fontset.
18089 2008-02-01 Kenichi Handa <handa@m17n.org>
18091 * fontset.c (fontset_face): Create a fallback fontset on demand.
18092 (make_fontset): Don't create a fallback fontset here.
18093 (free_face_fontset): Free a fallback fontset (if any) too.
18094 (n_auto_fontsets): Delete this variable.
18095 (auto_fontset_alist): New variable.
18096 (new_fontset_from_font_name): Check auto_fontset_alist.
18097 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18098 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18099 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18100 Defsubr Sfontset_list_all.
18102 2008-02-01 Kenichi Handa <handa@m17n.org>
18104 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18106 2008-02-01 Kenichi Handa <handa@m17n.org>
18108 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18110 2008-02-01 Kenichi Handa <handa@m17n.org>
18112 * editfns.c (Fgoto_char): Fix docstring.
18114 2008-02-01 Kenichi Handa <handa@m17n.org>
18116 * insdel.c (insert_from_gap): Adjust intervals correctly.
18118 2008-02-01 Jason Rumney <jasonr@gnu.org>
18120 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18121 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18122 (w32_initialize): Try to load it.
18123 (x_get_font_repertory): Use it if available.
18124 (w32_encode_char): Add shortcut for unicode output.
18126 * w32fns.c (w32_load_system_font): Default charset to -1.
18127 (x_to_w32_charset): Match all fonts for unicode.
18128 (w32_to_x_charset): New parameter matching. Don't return partial
18129 or wildcard charsets.
18130 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18131 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18132 (w32_to_x_font): Match charset to real charset.
18133 (enum_font_cb2): Always list unicode versions.
18135 * makefile.w32-in (temacs): Increase EMHEAP.
18137 2008-02-01 Jason Rumney <jasonr@gnu.org>
18139 * w32term.c (w32_encode_char): New charset parameter.
18140 font_info.encoding becomes encoding_type.
18141 (x_get_font_repertory): New function. Warning: stub only!
18142 (x_new_font): Return quickly if font already set.
18143 (x_new_fontset): fontsetname parameter is Lisp_Object.
18144 Use new fs_query_fontset. Try new_fontset_from_font_name.
18145 Use fontset_name for return value.
18147 * w32term.h: Declare x_get_font_repertory.
18149 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18150 place of find_charset_in_text. Use encode_coding_object in place
18152 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18155 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18157 (w32_load_system_font): Initialize charset as unicode.
18158 font_info.encoding becomes encoding_type.
18159 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18160 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18161 (syms_of_w32fns): Set get_font_repertory_func.
18163 * w32console.c: Include character.h. Use terminal_encode_buffer
18165 (write_glyphs): Use new version of encode_terminal_code. Use
18166 encode_coding_object in place of encode_coding.
18168 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18169 encoding becomes encoding_type.
18171 * term.c (terminal_encode_buffer): Make externally visible.
18173 * makefile.w32-in: Add character.h dependancies.
18174 (character.o, chartab.o): New targets.
18176 2008-02-01 Kenichi Handa <handa@m17n.org>
18178 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18179 CODING_ID_EOL_TYPE.
18181 2008-02-01 Andreas Schwab <schwab@suse.de>
18183 * coding.c (produce_chars): Revert last change.
18185 2008-02-01 Kenichi Handa <handa@m17n.org>
18187 * charset.h (charset_unicode): Extern it.
18189 * charset.c (string_xstring_p): Check by (C >= 0x100).
18190 (find_charsets_in_text): Change format of the arc CHARSETS. New
18192 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18193 change of find_charsets_in_text.
18194 (Fsplit_char): Fix doc. Never return unknown.
18196 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18198 * coding.c (Fdefine_coding_system_alias): Update
18199 Vcoding_system_list.
18201 * fontset.c (load_font_get_repertory): Pay attention to the case
18202 that ENCODING of a font is specified by a char-table.
18204 * xterm.c (x_get_font_repertory): Handle the case that the
18205 encoding of font is other than Unicode.
18207 2008-02-01 Kenichi Handa <handa@m17n.org>
18209 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18210 if a character is encodable by the terminal coding system. If
18211 not, produces proper number of `?'s. Update
18212 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18213 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18215 2008-02-01 Kenichi Handa <handa@m17n.org>
18217 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18219 (encode_terminal_code): Change argument. Encode multiple
18220 characters at once. Store the result of encoding in
18221 terminal_encode_buffer.
18222 (write_glyphs, insert_glyphs): Adjust for the change of
18223 encode_terminal_code.
18224 (term_init): Initialize terminal_encode_buffer and
18225 terminal_encode_buf_size.
18227 * coding.c (consume_chars): If coding->src_object is nil, don't
18230 2008-02-01 Kenichi Handa <handa@m17n.org>
18232 * character.c (char_string): Use ASCII_CHAR_P instead of
18233 SINGLE_BYTE_CHAR_P.
18235 2008-02-01 Kenichi Handa <handa@m17n.org>
18237 * xdisp.c (handle_auto_composed_prop): Check if the last
18238 characters of auto-composed region is newly composed with the
18239 following characters.
18240 (handle_composition_prop): Fix checking of point being inside
18243 2008-02-01 Kenichi Handa <handa@m17n.org>
18245 * fns.c (concat): Don't change multibyteness of the result by
18246 concatenating an 8-bit character.
18248 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18249 multibyteness of the result when newelt is an 8-bit character.
18251 2008-02-01 Dave Love <fx@gnu.org>
18253 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18256 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18258 * xfaces.c (face_numeric_value): Declare dim size_t.
18259 (Finternal_lisp_face_equal_p): Remove unused f.
18261 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18262 (MATRIX_ROW): Remove unused vars.
18263 (draw_glyphs, x_insert_glyphs, fast_find_position)
18264 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18267 * regex.c (regex_compile): Remove unused var.
18269 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18271 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18272 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18274 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18276 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18278 * fileio.c (Fwrite_region): Remove unused var.
18280 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18281 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18283 * composite.c (Fremove_list_of_text_properties): Declare.
18285 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18286 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18287 (coding_inherit_eol_type): Remove unused attrs.
18288 (detect_coding): Cast arg of detect_eol.
18290 * charset.c (syms_of_charset): Remove unused var p.
18291 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18294 * casetab.c (set_case_table): Remove unused var.
18296 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18299 2008-02-01 Dave Love <fx@gnu.org>
18301 * xterm.c (x_bitmap_mask): Declare.
18303 2008-02-01 Dave Love <fx@gnu.org>
18305 * xterm.c (x_term_init): Fix type error.
18307 * lisp.h: Add Funibyte_char_to_multibyte.
18309 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18310 (Fset_coding_system_priority): Doc fix.
18312 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18314 * indent.c (check_composition): Make start and end EMACS_INT.
18316 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18318 * xdisp.c (handle_composition_prop, check_point_in_composition):
18319 Make buffer positions EMACS_INT.
18321 * composite.c (find_composition, run_composition_function)
18322 (update_compositions, Ffind_composition_internal): Make buffer
18323 positions EMACS_INT.
18325 * composite.h (find_composition, update_compositions): Make
18326 position args EMACS_INT.
18328 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18330 * intervals.c (get_property_and_range):
18331 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18333 * unexalpha.c: Don't include varargs.h.
18335 2008-02-01 Dave Love <fx@gnu.org>
18337 * coding.h (ENCODE_UTF_8): New.
18339 * Makefile.in (gtkutil.o): Depend on coding.h.
18341 * coding.c (Fset_coding_system_priority): Doc fix.
18343 2008-02-01 Kenichi Handa <handa@m17n.org>
18345 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18346 the case of auto saving.
18348 2008-02-01 Andreas Schwab <schwab@suse.de>
18350 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18353 2008-02-01 Kenichi Handa <handa@m17n.org>
18355 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18357 2008-02-01 Kenichi Handa <handa@m17n.org>
18359 * fileio.c (choose_write_coding_system): Return a decided coding system.
18360 (Fwrite_region): Set Vlast_coding_system_used to the return value
18361 of choose_write_coding_system.
18363 2008-02-01 Kenichi Handa <handa@m17n.org>
18365 * charset.c (Fset_charset_priority): Pay attention to duplicated
18368 * coding.c (QCcategory): New variable.
18369 (syms_of_coding): Defsym it. Set all elements of
18370 Vcoding_category_table and their symbol values.
18371 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18372 coding-category-XXX, and coding-category-list.
18373 (Fdefine_coding_system_internal): Add category in the plist.
18375 2008-02-01 Kenichi Handa <handa@m17n.org>
18377 * callproc.c (Fcall_process): Handle carryover correctly.
18379 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18380 (raw_text_coding_system): Check NILP (coding_system).
18381 (coding_inherit_eol_type): Check NILP (coding_system) and
18383 (consume_chars): Fix for the case of raw-text.
18385 * process.c (read_process_output): Handle carryover correctly.
18387 2008-02-01 Dave Love <fx@gnu.org>
18389 * regex.c (re_search_2): Fix last change.
18391 2008-02-01 Kenichi Handa <handa@m17n.org>
18393 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18394 target_multibyte. Even in a unibyte case, return a converted
18396 (GET_CHAR_AFTER): New macro.
18397 (PATFETCH): Translate via multibyte char.
18398 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18399 (SETUP_MULTIBYTE_RANGE): New macro.
18400 (regex_compile): Setup compiled code so that its multibyteness
18401 matches that of a target. Fix the handling of "[X-YZ]" using
18402 SETUP_MULTIBYTE_RANGE.
18403 (analyse_first) <charset>: For filling fastmap for all multibyte
18404 characters, don't check by BASE_LEADING_CODE_P.
18405 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18406 the same as RE_MULTIBYTE_P (bufp) now.
18407 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18408 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18409 (TRANSLATE_VIA_MULTIBYTE): New macro.
18410 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18411 It is the same as RE_MULTIBYTE_P (bufp) now.
18412 <exactn>: Translate via multibyte.
18413 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18415 <charset, charset_not>: Fetch a character by
18416 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18417 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18418 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18419 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18421 (bcmp_translate): Likewise.
18423 * search.c (compile_pattern): Check the member target_multibyte,
18424 not the member multibyte of buf.
18426 * lread.c (read1): While reading a string, set force_singlebyte
18427 and force_multibyte correctly.
18429 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18430 up of unibyte_to_multibyte_table.
18432 2008-02-01 Kenichi Handa <handa@m17n.org>
18434 * coding.c (setup_coding_system): If coding has
18435 post-read-conversion or pre-write-conversion, set
18436 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18438 (decode_coding_gap): Run post-read-conversion if any.
18440 * fileio.c (Finsert_file_contents): Even if we read into a
18441 unibyte buffer, check if we must decode the result or not.
18443 2008-02-01 Kenichi Handa <handa@m17n.org>
18445 * coding.c (make_conversion_work_buffer): Change the work buffer
18446 name to the same one as that of Emacs 21.
18448 2008-02-01 Kenichi Handa <handa@m17n.org>
18450 * coding.h (make_conversion_work_buffer): Adjust prototype.
18451 (code_conversion_restore): Don't extern it.
18453 * coding.c (detected_mask): Delete unused variable.
18454 (decode_coding_iso_2022): Pay attention to the byte sequence of
18455 CTEXT extended segment, and retain those bytes as is.
18456 (decode_coding_ccl): Delete unused variable `valids'.
18457 (setup_coding_system): Delete unused variable `category'.
18458 (consume_chars): Delete unused variable `category'. Make it work
18459 for non-multibyte case.
18460 (make_conversion_work_buffer): Change argument.
18461 (saved_coding): Delete unused variable.
18462 (code_conversion_restore): Don't check saved_coding->destination.
18463 (code_conversion_save): New function.
18464 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18465 instead of record_unwind_protect.
18466 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18467 (detect_coding_system): Delete unused variable `mask'.
18468 (Fdefine_coding_system_internal): Delete unused variable id.
18470 * fileio.c (kill_workbuf_unwind): New function.
18471 (Finsert_file_contents): On replacing, call
18472 make_conversion_work_buffer with correct args, and call
18473 record_unwind_protect with the first arg kill_workbuf_unwind.
18475 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18477 2008-02-01 Kenichi Handa <handa@m17n.org>
18479 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18480 (fontset_add): Fix for the case that TO is less than TO1.
18481 (Ffontset_info): Don't use fallback fontset on checking the
18483 (dump_fontset): New function for debugging.
18485 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18486 coding_type is Qcharset.
18488 2008-02-01 Kenichi Handa <handa@m17n.org>
18490 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18491 (map_char_table): Don't inherit the value from the parent on
18492 initializing VAL. Adjust for the above change.
18494 2008-02-01 Kenichi Handa <handa@m17n.org>
18496 * coding.c (Qsignature, Qendian): Delete these variables.
18497 (syms_of_coding): Don't initialize them.
18498 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18499 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18500 detect_info->found.
18501 (decode_coding_utf_16): Don't detect BOM here.
18502 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18503 is NOT utf_16_without_bom.
18504 (setup_coding_system): For a coding system of type utf-16, check
18505 if the attribute :endian is Qbig or not (not nil or not), and set
18506 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18507 (detect_coding): If coding type is utf-16 and BOM detection is
18508 required, detect it.
18509 (Fdefine_coding_system_internal): For a coding system of type
18510 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18512 2008-02-01 Kenichi Handa <handa@m17n.org>
18514 * coding.c (coding_set_source): Fix for the case that the current
18515 buffer is different from coding->src_object.
18516 (decode_coding_object): Don't use the conversion work buffer if
18517 DST_OBJECT is a buffer.
18519 2008-02-01 Dave Love <fx@gnu.org>
18521 * lread.c (read_emacs_mule_char) [len==2]: Index
18522 emacs_mule_charset correctly.
18524 2008-02-01 Dave Love <fx@gnu.org>
18526 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18527 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18528 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18529 treated specially.)
18530 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18531 (detected_mask): Remove Big5 bits.
18533 2008-02-01 Kenichi Handa <handa@m17n.org>
18535 The following changes are to make the font rescaling facility
18536 compatible with Emacs 21.
18538 * xfaces.c (Vface_font_rescale_alist): Rename from
18539 Vface_resizing_fonts.
18540 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18541 (font_rescale_ratio): Rename from font_resizing_ratio.
18542 (split_font_name): Set font->rescale_ratio.
18543 (better_font_p): Pay attention to font->rescale_ratio.
18544 (build_scalable_font_name): Likewise. Change RESX, and RESY
18546 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18548 2008-02-01 Kenichi Handa <handa@m17n.org>
18550 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18551 (Qutf_16_le): Remove these variables.
18552 (syms_of_coding): Don't DEFSYM them.
18553 (decode_coding_utf_16): Fix handling of BOM.
18554 (encode_coding_utf_16): Fix handling of BOM.
18556 2008-02-01 Kenichi Handa <handa@m17n.org>
18558 * fileio.c (Finsert_file_contents): On replacing, before decoding
18559 the file into the work buffer, set point of the work buffer to the end.
18561 2008-02-01 Dave Love <fx@gnu.org>
18563 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18565 2008-02-01 Dave Love <fx@gnu.org>
18567 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18570 2008-02-01 Kenichi Handa <handa@m17n.org>
18572 * xdisp.c (SKIP_GLYPHS): New macro.
18573 (set_cursor_from_row): Pay attention to string display properties.
18575 * category.c (copy_category_entry): Fix for the case that RANGE
18578 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18580 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18582 2008-02-01 Kenichi Handa <handa@m17n.org>
18584 * charset.c (Fcharset_id_internal): New function.
18585 (syms_of_charset): Defsubr it.
18587 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18588 with the last arg charset_list acquired from coding.
18589 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18590 the attribute coding_attr_ccl_valids.
18592 * coding.h (enum define_coding_ccl_arg_index): Set the first
18593 member coding_arg_ccl_decoder to coding_arg_max.
18595 * ccl.h (ccl_driver): Adjust prototype.
18597 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18598 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
18599 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
18600 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18603 2008-02-01 Kenichi Handa <handa@m17n.org>
18605 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18608 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18610 2008-02-01 Dave Love <fx@gnu.org>
18612 * composite.c (syms_of_composite): Make composition_hash_table weak.
18614 2008-02-01 Kenichi Handa <handa@m17n.org>
18616 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18617 (font_name_registry): Don't extern them.
18618 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18620 * fontset.h (Qfontset): Don't extern it.
18621 (new_fontset_from_font_name): Extern it.
18623 * fontset.c: Give 8 extra slots to fontset objects.
18624 (Qfontset_info): New variable.
18625 (syms_of_fontset): Defsym it.
18626 (FONTSET_FALLBACK): New macro.
18627 (fontset_face): Try also the default fontset.
18628 (make_fontset): Realize a fallback fontset from the default fontset.
18629 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18630 using split_font_name_into_vector and build_font_name_from_vector.
18631 (Fset_fontset_font): Access the elements of font_spec by enum
18632 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18633 name by using split_font_name_into_vector.
18634 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18635 generate a proper font name from the fontset name. Update
18636 Vfontset_alias_alist.
18637 (n_auto_fontsets): New variable.
18638 (new_fontset_from_font_name): New function.
18639 (Ffont_info): Store the information about fonts generated from the
18640 default fontset in the first extra slot of the returned char-table.
18642 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18643 (font_name_registry): Delete function.
18644 (split_font_name_into_vector): New function.
18645 (build_font_name_from_vector): New function.
18646 (font_list): The argument REGISTRY is now a list of registry names.
18647 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18648 specifies an explicit font name, return the name as is. Make a
18649 list of registy names.
18651 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18653 (Fx_create_frame): Don't call x_new_fontset here. Just use
18654 x_list_fonts to check the existence of fonts.
18656 * xterm.h (x_new_fontset): Adjust prototype.
18658 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18659 string. Use new_fontset_from_font_name to create a fontset from a
18662 2008-02-01 Kenichi Handa <handa@m17n.org>
18664 * syntax.c (Vfind_word_boundary_function_table): New name for
18665 Vnext_word_boundary_function_table.
18666 (find-word-boundary-function-table): New name for
18667 next-word-boundary-function-table.
18669 2008-02-01 Dave Love <fx@gnu.org>
18671 * Makefile.in: Fix some dependencies.
18673 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18674 set it to nil before returning.
18676 * composite.c (update_compositions): Fix type error.
18678 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18680 2008-02-01 Kenichi Handa <handa@m17n.org>
18682 * xterm.c (x_new_font): Optimize for the case that the font is
18683 already set for the frame.
18685 2008-02-01 Kenichi Handa <handa@m17n.org>
18687 * chartab.c (char_table_ascii): Check if the char table contents
18688 is sub-char-table or not.
18689 (char_table_set, char_table_set_range): Fix argument to
18692 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18693 (detect_coding_utf_8, detect_coding_utf_16)
18694 (detect_coding_emacs_mule, detect_coding_iso_2022)
18695 (detect_coding_sjis, detect_coding_big5)
18696 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18697 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18698 sequence is valid in this coding system. Change callers.
18699 (MAX_ANNOTATION_LENGTH): New macro.
18700 (ADD_ANNOTATION_DATA): New macro.
18701 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18702 ADD_ANNOTATION_DATA. Change the format of annotation data.
18703 (ADD_CHARSET_DATA): New macro.
18704 (emacs_mule_char): New argument ID. Change callers.
18705 (decode_coding_emacs_mule, decode_coding_iso_2022)
18706 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18707 Produce charset annotation data in coding->charbuf.
18708 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18709 to charset annotation data in coding->charbuf.
18710 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18711 coding->common_flags if the coding system is iso-2022 based and
18713 (produce_composition): Adjust for the new annotation data format.
18714 (produce_charset): New function.
18715 (produce_annotation): Handle charset annotation.
18716 (handle_composition_annotation, handle_charset_annotation): New
18718 (consume_chars): Handle charset annotation. Utilize the above two
18720 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18721 buffer, get the deleted text as a string and set
18722 coding->src_object to that string.
18723 (detect_coding, detect_coding_system): Use the new struct
18724 coding_detection_info.
18726 * coding.h (struct coding_detection_info): New structure.
18727 (struct coding_system): Adjust prototype of the member `detector'.
18728 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18730 2008-02-01 Kenichi Handa <handa@m17n.org>
18732 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18734 2008-02-01 Dave Love <fx@gnu.org>
18736 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18737 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18738 to new local and nullify apropos_accumulate before returning.
18739 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18741 2008-02-01 Kenichi Handa <handa@m17n.org>
18743 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18746 2008-02-01 Dave Love <fx@gnu.org>
18748 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18750 2008-02-01 Kenichi Handa <handa@m17n.org>
18752 The following changes are to make character composition happen
18753 automatically on displaying.
18755 * Makefile.in (lisp, shortlisp): Add composite.elc.
18757 * composite.h (Qauto_composed, Vauto_composition_function)
18758 (Qauto_composition_function): Extern them.
18760 * composite.c (Vcomposition_function_table)
18761 (Qcomposition_function_table): Delete variables.
18762 (Qauto_composed, Vauto_composition_function)
18763 (Qauto_composition_function): New variables.
18764 (run_composition_function): Don't call
18765 compose-chars-after-function.
18766 (update_compositions): Clear `auto-composed' text property.
18767 (compose_chars_in_text): Delete this function.
18768 (syms_of_composite): Staticpro Qauto_composed and
18769 Qauto_composition_function. Declare Vauto_composition_function as
18772 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18774 * xdisp.c (it_props): Add an entry for Qauto_composed.
18775 (handle_auto_composed_prop): New function.
18777 * xselect.c (selection_data_to_lisp_data): Don't call
18778 compose_chars_in_text.
18780 2008-02-01 Dave Love <fx@gnu.org>
18782 * keyboard.c (read_char): Modify checking around use of
18783 Vkeyboard_translate_table.
18785 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18788 2008-02-01 Kenichi Handa <handa@m17n.org>
18790 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18791 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18792 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18793 the case that the last byte is '\r' correctly.
18794 (decode_coding): Flush out the unprocessed data correctly.
18795 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18797 2008-02-01 Dave Love <fx@gnu.org>
18799 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18800 Add XK_ISO... case.
18801 (xaw_scroll_callback): Revert last change.
18803 2008-02-01 Kenichi Handa <handa@m17n.org>
18805 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18807 2008-02-01 Kenichi Handa <handa@m17n.org>
18809 * xfaces.c (Vface_resizing_fonts): New variable.
18810 (struct font_name): New member `resizing_ratio'.
18811 (font_resizing_ratio): New function.
18812 (split_font_name): Set font->resizing_ratio.
18813 (better_font_p): Pay attention to font->resizing_ratio.
18814 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18815 RESX, and RESY fields.
18816 (try_alternative_families): Try scalable fonts if
18817 Vscalable_fonts_allowed is not Qt.
18818 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18820 2008-02-01 Dave Love <fx@gnu.org>
18822 * xterm.c (xaw_scroll_callback): Cast correctly.
18824 2008-02-01 Dave Love <fx@gnu.org>
18826 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18827 (lispy_kana_keys): Comment out.
18828 (make_lispy_event) [XK_kana_A]: Comment out.
18830 * xterm.c (xaw_scroll_callback): Cast call_data.
18831 (XTread_socket): Deal with ASCII keysyms.
18832 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18834 2008-02-01 Dave Love <fx@gnu.org>
18836 * xterm.c (Vx_keysym_table): New.
18837 (syms_of_xterm): Initialize it.
18838 (XTread_socket): Use it.
18839 From head: Eliminate incorrect optimization that tried to avoid
18840 decoding the output of X*LookupString.
18841 (x_get_font_repertory): Delete charset declaration.
18843 2008-02-01 Kenichi Handa <handa@m17n.org>
18845 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18847 (Fdefine_coding_system_internal): Setup
18848 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18850 2008-02-01 Dave Love <fx@gnu.org>
18852 * coding.c (Fcheck_coding_system): Doc fix.
18854 * editfns.c (Finsert_byte): Return a proper value.
18856 2008-02-01 Kenichi Handa <handa@m17n.org>
18858 * coding.c (decode_coding): Fix args to translate_chars. Pay
18859 attention to Vstandard_translation_table_for_decode.
18860 (encode_coding): Fix args to translate_chars. Pay attention to
18861 Vstandard_translation_table_for_encode.
18863 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18864 SINGLE_BYTE_CHAR_P.
18866 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18867 not by SINGLE_BYTE_CHAR_P.
18869 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18870 SINGLE_BYTE_CHAR_P.
18872 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18873 SINGLE_BYTE_CHAR_P.
18875 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18876 by SINGLE_BYTE_CHAR_P.
18878 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18879 SINGLE_BYTE_CHAR_P.
18881 2008-02-01 Dave Love <fx@gnu.org>
18883 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18885 2008-02-01 Dave Love <fx@gnu.org>
18887 * fns.c (Flanginfo): Fix typo.
18889 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18891 2008-02-01 Kenichi Handa <handa@m17n.org>
18893 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18894 (detect_coding_emacs_mule, detect_coding_iso_2022)
18895 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18896 incomplete byte sequence. Don't update *mask when correctly detected.
18897 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18898 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18899 (detect_coding, detect_coding_system): Adjust for the changes above.
18901 2008-02-01 Kenichi Handa <handa@m17n.org>
18903 * character.c (char_string): Rename from
18904 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18905 (string_char): Rename from string_char.
18907 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18908 if C is greater than MAX_3_BYTE_CHAR.
18909 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18910 string_char instead of string_char_with_unification.
18912 2008-02-01 Dave Love <fx@gnu.org>
18914 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18916 2008-02-01 Kenichi Handa <handa@m17n.org>
18918 * keymap.c (push_key_description): Pay attention to force_multibyte.
18920 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18922 2008-02-01 Dave Love <fx@gnu.org>
18924 * charset.c (define_charset_internal): Rename `supprementary'.
18926 * Makefile.in (lisp, shortlisp): Remove latin-N.
18928 2008-02-01 Dave Love <fx@gnu.org>
18930 * xfns.c (x_window, x_window): Use use_xim.
18932 * xterm.c (use_xim): Initialize.
18933 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18934 (x_term_init): Maybe set use_xim.
18936 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18938 2008-02-01 Kenichi Handa <handa@m17n.org>
18940 * search.c (search_buffer): Fix case-fold-search of multibyte
18942 (boyer_moore): Rename the last argument to char_high_bits.
18944 2008-02-01 Kenichi Handa <handa@m17n.org>
18946 * xdisp.c (display_string): Fix for the case of zero width glyph.
18948 * xfns.c (x_set_font): Change the error message of the case that
18949 x_new_fontset returns Qt.
18951 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18952 (Finternal_set_lisp_face_attribute): Use signal_error for the
18953 error of invalid fontset.
18955 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18956 fontset, return Qt.
18958 2008-02-01 Dave Love <fx@gnu.org>
18960 * unexelf.c (unexec): Make .got handling not SGI-specific.
18962 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18964 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18966 * keyboard.c (read_key_sequence): Fix type error.
18968 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18971 * fontset.c (fontset_add): Return Lisp_Object.
18973 2008-02-01 Dave Love <fx@gnu.org>
18975 * charset.h (charset_ordered_list_tick): Declare extern.
18977 2008-02-01 Kenichi Handa <handa@m17n.org>
18979 The following changes (and some of 2008-02-01 changes of mine) are
18980 for handling syntax, category, and case conversion for unibyte
18981 characters by converting them to multibyte on the fly. With these
18982 changes, we don't have to setup syntax and case tables for unibyte
18983 characters in each language environment.
18985 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18986 multibyte if necessary.
18988 * bytecode.c (Fbyte_code): Likewise.
18990 * character.h (LEADING_CODE_LATIN_1_MIN)
18991 (LEADING_CODE_LATIN_1_MAX): New macros.
18992 (unibyte_to_multibyte_table): Extern it.
18993 (unibyte_char_to_multibyte): New macro.
18994 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18995 (CHAR_LEADING_CODE): New macro.
18996 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18998 * character.c (unibyte_to_multibyte_table): New variable.
18999 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19000 (multibyte_char_to_unibyte): If C is an eight-bit character,
19001 convert it to the corresponding byte value.
19003 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19004 not 1, signals an error. Update the elements of
19005 unibyte_to_multibyte_table.
19006 (init_charset_once): Initialize unibyte_to_multibyte_table.
19007 (syms_of_charset): Define the charset `iso-8859-1'.
19009 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19010 as is without converting it to unibyte. In a unibyte buffer,
19011 convert C to multibyte before checking the syntax.
19013 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19015 * minibuf.c (Fminibuffer_complete_word): Use the macro
19016 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19018 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19020 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19021 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19022 that is zero, convert an eight-bit char to multibyte.
19023 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19025 (PATFETCH): Convert an eight-bit char to multibyte.
19026 (HANDLE_UNIBYTE_RANGE): New macro.
19027 (regex_compile): Setup the compiled pattern for multibyte chars
19028 even if the given regex string is unibyte. Use PATFETCH_RAW
19029 instead of PATFETCH in many places. To handle `charset'
19030 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19031 only for ASCII chars.
19032 (analyse_first) <exactn>: Simplify because the compiled pattern
19034 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19035 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19036 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19037 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19038 multibyte always 1.
19039 (re_search_2): In emacs, set the locale variable multibyte to 1,
19040 otherwise to 0. New local variable target_multibyte. Check it
19041 to decide the multibyteness of STR1 and STR2. If
19042 target_multibyte is zero, convert unibyte chars to multibyte
19043 before translating and checking fastmap.
19044 (TARGET_CHAR_AND_LENGTH): New macro.
19045 (re_match_2_internal): In emacs, set the locale variable multibyte
19046 to 1, otherwise to 0. New local variable target_multibyte. Check
19047 it to decide the multibyteness of STR1 and STR2. Use
19048 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19049 <charset, charset_not>: If multibyte is nonzero, check fastmap
19050 only for ASCII chars. Call bcmp_translate with
19051 target_multibyte, not with multibyte.
19052 <begline>: Declare the local variable C as `unsigned'.
19053 (bcmp_translate): Change the last arg name to target_multibyte.
19055 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19056 the regexp pattern and the matching target. Set cp->buf.multibyte
19057 to the multibyteness of the regexp pattern. Set
19058 cp->but.target_multibyte to the multibyteness of the matching target.
19059 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19060 FETCH_STRING_CHAR_ADVANCE.
19061 (Freplace_match): Convert unibyte chars to multibyte.
19063 * syntax.c (char_quoted, back_comment, scan_words)
19064 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19065 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19066 unibyte chars to multibyte.
19067 (skip_chars): Delete the arg syntaxp, and move the code for
19068 handling syntaxes to skip_syntaxes. Change callers.
19069 Fix the case that the multibyteness of STRING and the current
19070 buffer doesn't match.
19071 (skip_syntaxes): New function.
19072 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19073 SINGLE_BYTE_CHAR_P.
19075 2008-02-01 Kenichi Handa <handa@m17n.org>
19077 * xfaces.c (QCfontset): New variable.
19078 (LFACE_FONTSET): New macro.
19079 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19080 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19081 (Finternal_set_lisp_face_attribute)
19082 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19083 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19084 check also LFACE_FONTSET_INDEX.
19085 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19086 attrs[LFACE_FONT_INDEX].
19087 (syms_of_xfaces): Intern and staticpro QCfontset.
19089 * dispextern.h (enum lface_attribute_index): New member
19090 LFACE_FONTSET_INDEX.
19092 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19094 2008-02-01 Kenichi Handa <handa@m17n.org>
19096 * coding.c (coding_set_destination): Fix coding->destination for
19097 the case converting a region.
19098 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19099 (encode_coding_object): Fix coding->dst_pos and
19100 coding->dst_pos_byte for the case converting a region.
19102 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19104 * character.h (BYTE8_STRING): New macro.
19106 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19108 2008-02-01 Kenichi Handa <handa@m17n.org>
19110 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19111 characters by octal form.
19113 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19115 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19116 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19117 _fetch_multibyte_char_len.
19118 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19120 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19122 * casefiddle.c (casify_object): Simplify. Handle the case that
19123 the case conversion change the byte length.
19124 (casify_region): Likewise.
19126 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19128 * character.c (_fetch_multibyte_char_len): Delete this variable.
19129 (syms_of_character): Setup Vprintable_chars.
19131 * editfns.c (Fchar_equal): Fix for the unibyte case.
19132 (Finsert_byte): New function.
19133 (syms_of_editfns): Defsubr it.
19135 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19136 of direct code 0x3ffff.
19138 * search.c (Freplace_match): Fix for the unibyte case.
19140 2008-02-01 Kenichi Handa <handa@m17n.org>
19142 * lread.c (safe_to_load_p): Fix the logic.
19144 * syntax.c (scan_words): Don't treat characters belonging to
19145 different scripts as constituting a word.
19147 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19149 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19151 * emacs.c (main): In the case of --unibyte, instead of aborting on
19152 finding non-empty buffer, make it unibyte.
19154 2008-02-01 Kenichi Handa <handa@m17n.org>
19156 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19157 to create a fontset.
19159 2008-02-01 Dave Love <fx@gnu.org>
19161 * character.c (Funibyte_char_to_multibyte): Doc fix.
19163 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19165 2008-02-01 Kenichi Handa <handa@m17n.org>
19167 * fontset.c (fontset_add): Make the type `int'.
19168 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19170 * character.c (unibyte_char_to_multibyte)
19171 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19172 charset_unibyte, not charset_primary.
19174 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19176 * charset.c (charset_unibyte): Rename from charset_primary.
19177 (Funibyte_charset): Rename from Fprimary_charset.
19178 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19179 (syms_of_charset): Adjust for the above changes.
19181 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19182 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19183 it->multibyte_p is zero.
19185 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19188 2008-02-01 Kenichi Handa <handa@m17n.org>
19190 * coding.c (Fdefine_coding_system_internal): Fix category setting
19191 for a coding system of type iso-2022.
19193 2008-02-01 Kenichi Handa <handa@m17n.org>
19195 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19197 2008-02-01 Kenichi Handa <handa@m17n.org>
19199 * syntax.c (Vnext_word_boundary_function_table): New variable.
19200 (next-word-boundary-function-table): Declare it as a Lisp variable
19202 (scan_words): Call functions in Vnext_word_boundary_function_table
19205 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19207 * fontset.c (fs_load_font): If fontp->charset is not negative,
19208 return fontp without setting its members.
19210 2008-02-01 Dave Love <fx@gnu.org>
19212 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19214 * m/sparc.h (HAVE_ALLOCA): Delete.
19216 * s/irix6-5.h: Don't include strings.h.
19217 (bcopy, bzero, bcmp): Don't undef.
19219 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19221 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19222 (TIOCSIGSEND): Don't test IRIX6.
19223 (bcopy, bzero, bcmp): Define conditionally.
19225 2008-02-01 Kenichi Handa <handa@m17n.org>
19227 * buffer.c (Qas, Qmake, Qto): New variables.
19228 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19229 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19231 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19232 we are inserting a process output into a multibyte buffer.
19234 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19235 multibyte_char_to_unibyte.
19237 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19238 by the primary charset, make it eight-bit char.
19239 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19241 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19242 (charset_8_bit__control, charset_8_bit_graphic)
19243 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19244 (define_charset_internal): New function.
19245 (syms_of_charset): Call define_charset_internal for pre-defined
19248 * charset.h (charset_8_bit): Extern it.
19250 * coding.c (make_conversion_work_buffer): Adjust for the change
19251 of Fset_buffer_multibyte.
19252 (encode_coding_raw_text): Increment p0 in the loop.
19254 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19256 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19257 for the change of Fset_buffer_multibyte.
19259 * fns.c (Fstring_to_multibyte): New function.
19260 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19262 2008-02-01 Dave Love <fx@gnu.org>
19264 * xfns.c (x_put_x_image): Declare args.
19266 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19267 (try_font_list): Declare an arg.
19269 * xdisp.c (message2_nolog, set_message): Declare an arg.
19271 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19273 * syntax.c (scan_sexps_forward): Declare an arg.
19275 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19278 * lisp.h (Fnew_fontset): Declare.
19280 * keymap.c (push_key_description): Call CHARACTERP correctly.
19282 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19283 (face_for_char): Delete unused vars.
19284 (Fset_fontset_font): Doc fix. Delete unused vars.
19286 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19288 * composite.c (update_compositions): Declare arg.
19290 * cm.c (calccost, cmgoto): Declare args.
19292 * charset.c: Remove `emacs' conditional. Doc fixes.
19293 (map_char_table_for_charset): Declare.
19295 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19297 * ccl.c: Remove `emacs' conditional.
19299 2008-02-01 Kenichi Handa <handa@m17n.org>
19301 The following changes are to allow specifying multiple font
19302 patterns for a character range (specified by script or charset).
19304 * Makefile.in (abbrev.o): Depend on syntax.h.
19305 (xfaces.o): Depend on charset.h.
19307 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19308 SINGLE_BYTE_CHAR_P.
19310 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19312 * character.h (Vchar_script_table): Extern it.
19314 * character.c (Vscript_alist): Delete.
19315 (Vchar_script_table, Qchar_script_table): New variable.
19316 (syms_of_character): Declare Vchar_script_table as a lisp variable
19319 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19320 have property char-table-extra-slots, make no extra slot.
19322 * dispextern.h (struct face): Delete member `charset'.
19323 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19324 SINGLE_BYTE_CHAR_P.
19325 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19327 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19328 (generate_ascii_font_name): Rename from generate_ascii_font.
19330 * fontset.h (get_font_repertory_func): New prototype.
19331 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19332 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19334 * fontset.c (Qprepend, Qappend): New variables.
19335 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19336 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19337 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19338 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19339 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19340 (load_font_get_repertory): New functions.
19341 (fontset_set): Delete.
19342 (fontset_face): New arg FACE. Return face ID, not face.
19343 Complete re-write to handle new fontset structure. Change caller.
19344 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19345 (face_for_char): Don't call lookup_face.
19346 (make_fontset_for_ascii_face): New arg FACE.
19347 (fs_load_font): New arg CHARSET_ID. Don't check
19348 Vfont_encoding_alist here.
19349 (find_font_encoding): New function.
19350 (list_fontsets): Use STRINGP, not ! NILP.
19351 (accumulate_script_ranges): New function.
19352 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19353 re-written to handle new fontset structure.
19354 (Ffontset_font): Return a copy of element.
19355 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19356 docstring of font-encoding-alist.
19358 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19359 (Fset_fotset_font): Fix arguments to 5.
19361 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19363 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19364 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19365 (highlight_trailing_whitespace): Adjust for the change of
19368 * xfaces.c: Include charset.h.
19369 (load_face_font): Delete argument C. Change caller.
19370 (generate_ascii_font_name): Rename from generate_ascii_font.
19371 (font_name_registry): New function.
19372 (cache_face): Store ascii faces before non-ascii faces in buckets.
19373 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19374 Lookup only ascii faces.
19375 (lookup_non_ascii_face): New function.
19376 (lookup_named_face): Delete argument C. Change caller.
19377 (lookup_derived_face): Delete argument C. Change caller.
19378 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19379 a string, just call font_list with it.
19380 (choose_face_font): Delete arguments FACE and C. New arg
19381 FONT_SPEC. Change caller.
19382 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19384 (realize_non_ascii_face): New function.
19385 (realize_x_face): Call load_face_font here.
19386 (realize_tty_face): Delete argument C. Change caller.
19387 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19389 (dump_realized_face): Don't print charset of FACE.
19391 * xfns.c (x_set_font): Always call x_new_fontset and
19392 store_frame_parameter.
19393 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19394 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19396 * xterm.h (x_get_font_repertory): Extern it.
19398 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19399 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19400 it->multibyte_p is zero.
19401 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19402 (x_new_fontset): If FONTSETNAME doesn't match any existing
19403 fontsets, create a new one.
19404 (x_get_font_repertory): New function.
19406 2008-02-01 Kenichi Handa <handa@m17n.org>
19408 * coding.c (Ffind_coding_systems_region_internal): Detect an
19409 ASCII only string correctly.
19411 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19414 2008-02-01 Kenichi Handa <handa@m17n.org>
19416 * lread.c: Include "coding.h".
19417 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19418 (load_each_byte, unread_char): New variables.
19419 (readchar_backlog): Delete.
19420 (readchar): Return a character unless load_each_byte is nonzero.
19421 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19422 cons. If unread_char is not -1, simply return it.
19423 (unreadchar): Handle the case that readcharfun is
19424 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19425 (read_multibyte): Delete.
19426 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19427 (read_emacs_mule_char): New functions.
19428 (Fload): Even if the file doesn't have the extension ".elc", if
19429 safe_to_load_p returns a positive version number, assume that the
19430 file contains bytecompiled code. If the version is less than 22,
19431 load the file while decoding multibyte sequences by emacs-mule.
19432 (readevalloop): Don't use readchar_backlog.
19433 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19434 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19435 (read_escape): Delete the arg BYTEREP.
19436 (read1): Set load_each_byte to 1 temporarily while handling
19437 #@NUMBER. Don't call read_multibyte.
19438 (read_vector): Call Fread with a cons. If readcharfun is
19439 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19440 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19441 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19442 and Qload_force_doc_strings.
19444 2008-02-01 Kenichi Handa <handa@m17n.org>
19446 * xdisp.c (face_before_or_after_it_pos): Call
19447 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19449 2008-02-01 Kenichi Handa <handa@m17n.org>
19451 * character.h (TRAILING_CODE_P): New macro.
19452 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19453 (string_char_with_unification): Fix prototype.
19454 (Vscript_alist): Extern it.
19456 * character.c (Vscript_alist): New variable.
19457 (string_char_with_unification, str_as_unibyte)
19458 (string_escape_byte8): Add `const' to local variables.
19459 (syms_of_character): Declare script-alist as a Lisp variable.
19461 * charset.h (Vcharset_ordered_list): Extern it.
19462 (charset_ordered_list_tick): Extern it.
19463 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19464 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19465 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19466 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19467 (Funify_charset): Adjust for the change of Funify_charset.
19469 * charset.c (charset_ordered_list_tick): New variable.
19470 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19471 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19472 deunify intead of unify a charset.
19473 (string_xstring_p): Add `const' to local variables.
19474 (find_charsets_in_text): Add `const' to arguments and local variables.
19475 (encode_char): Adjust for the change of Funify_charset. Fix
19476 detecting of invalid code.
19477 (Fset_charset_priority): Increment charset_ordered_list_tick.
19478 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19481 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19482 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19483 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19484 (decode_coding_ccl, consume_chars)
19485 (Ffind_coding_systems_region_internal)
19486 (Fcheck_coding_systems_region): Add `const' to local variables.
19488 * print.c (print_object): Use octal form for printing the
19489 contents of a bool vector.
19491 2008-02-01 Dave Love <fx@gnu.org>
19493 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19494 <version == 20>: Refuse to load.
19496 2008-02-01 Dave Love <fx@gnu.org>
19498 * fns.c: Move coding.h.
19499 (Qcodeset, Qdays, Qmonths): New.
19500 (concat): Use CHARACTERP instead of INTEGERP.
19501 (Flocale_codeset): Delete.
19502 (Flanginfo): New function.
19503 (syms_of_fns): Change accordingly.
19505 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19507 2008-02-01 Dave Love <fx@gnu.org>
19509 * casetab.c (init_casetab_once, init_casetab_once): Fix
19510 CHAR_TABLE_SET call.
19512 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19514 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19516 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19517 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19518 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19520 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19522 * coding.c (ENCODE_DESIGNATION, decode_eol)
19523 (make_conversion_work_buffer, code_conversion_restore)
19524 (Fdefine_coding_system_internal): Convert Lisp types.
19525 (code_conversion_restore): Use EQ, not ==.
19526 (Fencode_coding_string): Fix code_convert_string call.
19528 * coding.h (code_convert_region): Fix prototype.
19530 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19532 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19533 (Ffontset_info): Convert Lisp types.
19535 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19537 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19539 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19541 * chartab.c: Include "...h", not <...h> in some cases.
19543 * callproc.c (Fcall_process): Remove unused variables.
19545 2008-02-01 Dave Love <fx@gnu.org>
19547 * coding.c (Fset_coding_system_priority): Allow null arg list.
19549 2008-02-01 Dave Love <fx@gnu.org>
19551 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19552 (Fself_insert_and_exit): Use CHARACTERP.
19554 * callproc.c (Fcall_process): Remove unused vars.
19556 * xterm.c (XTread_socket): Add extra dead keysyms.
19558 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19560 * dispextern.h: Remove prototypes for redraw_frame,
19561 redraw_garbaged_frames.
19563 * cmds.c (Fself_insert_command): Use CHARACTERP.
19565 * chartab.c (make_sub_char_table): Remove unused var.
19566 (Fset_char_table_default, Fmap_char_table): Doc fix.
19568 * keymap.c (access_keymap): Remove generic char code.
19569 (push_key_description): Use CHARACTERP.
19571 2008-02-01 Dave Love <fx@gnu.org>
19573 * charset.c: Doc fixes.
19574 (Funify_charset): Extra checking.
19576 2008-02-01 Dave Love <fx@gnu.org>
19578 * lread.c: Remove some unused variables.
19579 (safe_to_load_p): If safe, return the magic number version byte.
19580 (Fload): Maybe use load-with-code-conversion.
19582 2008-02-01 Kenichi Handa <handa@m17n.org>
19584 * category.c (Fmodify_category_entry): Don't modify the contents
19585 of category_set for characters out of the range. Avoid
19586 unnecessary modification.
19588 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19589 Vchar_unify_table. The default value of the table is now nil.
19591 * character.c (syms_of_character): Setup Vchar_width_table for
19592 eight-bit-control and raw-byte chars.
19594 * charset.h (enum define_charset_arg_index): Delete
19595 charset_arg_parents and add charset_arg_subset and
19596 charset_arg_superset.
19597 (enum charset_attr_index): Delete charset_parents and add
19598 charset_subset and charset_superset.
19599 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19600 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19601 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19602 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19603 (CHARSET_SUPERSET): New macros.
19604 (charset_work): Extern it.
19605 (ENCODE_CHAR): Use charset_work.
19606 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19607 (map_charset_chars): Extern it.
19609 * charset.c (load_charset_map): Set the default value of encoder
19610 and deunifier char-tables to nil.
19611 (map_charset_chars): Change argument. Change callers. Use
19612 map_char_table_for_charset instead of map_char_table.
19613 (Fmap_charset_chars): New optional args from_code and to_code.
19614 (Fdefine_charset_internal): Adjust for the change of
19615 `define-charset' (:parents -> :subset or :superset).
19616 (charset_work): New variable.
19617 (encode_char, syms_of_charset): Adjust for the change of
19618 Fdefine_charset_internal.
19619 (Ffind_charset_string): Setup the vector `charsets' correctly.
19621 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19622 the previous change.
19623 (char_table_ref_and_range): Adjust for the above change.
19624 (map_sub_char_table_for_charset): New function.
19625 (map_char_table_for_charset): New function.
19627 * keymap.c (describe_vector): Handle a char-table directly here.
19628 (describe_char_table): Delete.
19630 * lisp.h (map_charset_chars): Delete.
19632 2008-02-01 Dave Love <fx@gnu.org>
19634 * fns.c (count_combining): Comment out (unused).
19635 (Flocale_codeset): New.
19636 (syms_of_fns): Defsubr it.
19638 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19641 2008-02-01 Dave Love <fx@gnu.org>
19643 * Makefile.in (chartab.o): Depend on charset.h.
19645 2008-02-01 Kenichi Handa <handa@m17n.org>
19647 * character.c (syms_of_character): Set the default value of
19648 Vprintable_chars to Qnil.
19650 2008-02-01 Dave Love <fx@gnu.org>
19652 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19654 2008-02-01 Kenichi Handa <handa@m17n.org>
19656 * charset.c (load_charset_map): Handle the case that from < to
19659 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19660 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19661 Pay attention to raw-8-bit chars.
19663 2008-02-01 Kenichi Handa <handa@m17n.org>
19665 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19666 It is not bytecompiled now.
19668 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19669 (charset_jisx0208): New variables.
19670 (Fdefine_charset_internal): Setup them if appropriate.
19671 (init_charset_once): Initialize them to -1.
19673 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19674 (charset_jisx0208): Extern them.
19676 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19677 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19678 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19679 (setup_iso_safe_charsets): Fix arguments to Fassq.
19680 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19681 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19682 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19683 (encode_coding_iso_2022): Change the 1st arg to
19684 ENCODE_ISO_CHARACTER to a variable.
19686 2008-02-01 Kenichi Handa <handa@m17n.org>
19688 * charset.h (enum define_charset_arg_index): New enums
19689 charset_arg_min_code and charset_arg_max_code.
19690 (struct charset): New member char_index_offset.
19692 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19693 Take charset->char_index_offset into account.
19694 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19695 args[charset_arg_max_code]. Setup charset.char_index_offset.
19696 (syms_of_charset): Fix args to Fdefine_charset_internal.
19698 2008-02-01 Dave Love <fx@gnu.org>
19700 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19702 2008-02-01 Dave Love <fx@gnu.org>
19704 * coding.c: Doc fixes.
19705 (Fcoding_system_aliases): Fix return value.
19706 (Qmac): Remove (duplicated) definition.
19708 2008-02-01 Dave Love <fx@gnu.org>
19710 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19713 * character.c (Fstring): Doc fix.
19715 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19717 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
19718 (font-encoding-alist): Doc fix.
19720 2008-02-01 Dave Love <fx@gnu.org>
19722 * term.c (costs_set): Declare static, non-initialized for pcc.
19723 (encode_terminal_code): Remove unused var.
19725 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19728 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19730 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19731 (suffixes): Move out of make_subsidiaries for K&R.
19733 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19735 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19737 2008-02-01 Dave Love <fx@gnu.org>
19739 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19741 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19743 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19745 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19747 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19749 2008-02-01 Kenichi Handa <handa@m17n.org>
19751 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19752 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19754 2008-02-01 Kenichi Handa <handa@m17n.org>
19756 * coding.c (decode_coding_charset): Adjust for the change of
19757 Fdefine_coding_system_internal.
19758 (Fdefine_coding_system_internal): For a coding system of
19759 `charset' type, store a list of charset IDs in
19760 `charset_attr_charset_valids' element of coding attributes.
19762 2008-02-01 Kenichi Handa <handa@m17n.org>
19764 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19765 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19766 caller. Handle 2-byte and 3-byte charsets correctly.
19767 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19768 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19769 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19770 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19771 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19773 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19774 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19775 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19776 and alt&rule composition.
19777 (decode_coding_iso_2022): Handle composition correctly.
19778 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19780 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19781 re-defining a charset. If the charset has :emacs-mule-id, setup
19783 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19785 2008-02-01 Kenichi Handa <handa@m17n.org>
19787 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19788 (encode_coding_big5, encode_coding_charset): If coding requires safe
19789 encoding, produce a character specified by
19790 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19792 2008-02-01 Dave Love <fx@gnu.org>
19794 * xterm.c (XSetIMValues): Declare.
19796 * process.c: Conditionally include sys/wait.h, pty.h.
19798 * print.c (print_object): Fix print format for 64-bit systems.
19800 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19802 * buffer.c (emacs_strerror): Declare.
19804 * fontset.c (Fclear_face_cache): Declare.
19805 (accumulate_font_info): Comment-out (unused).
19806 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19809 * character.h (string_escape_byte8): Declare.
19811 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19813 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19814 (Fmap_charset_chars): Doc fix.
19816 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19817 (Fset_coding_system_priority, Fset_coding_system_priority)
19818 (Fdefine_coding_system_internal): Doc fix.
19820 2008-02-01 Dave Love <fx@gnu.org>
19822 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19824 2008-02-01 Kenichi Handa <handa@m17n.org>
19826 * character.c (string_escape_byte8): Make multibyte string with
19829 * charset.c (Fmake_char): Delete unnecessary code.
19831 2008-02-01 Kenichi Handa <handa@m17n.org>
19833 * xfns.c (x_encode_text): Allocate coding.destination here, and
19834 call encode_coding_object with dst_object Qnil.
19836 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19837 multibyte form correctly.
19839 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19840 against Vfont_encoding_alist.
19842 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19843 handling of charset list.
19844 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19845 (decode_coding_object): Move point to coding->dst_pos before
19846 calling post-read-conversion function.
19847 (encode_coding_object): Give correct arguments to
19848 pre-write-conversion. Ignore the return value of
19849 pre-write-conversion function. Pay attention to the case that
19850 pre-write-conversion changes the current buffer. If dst_object is
19851 Qt, even if coding->src_bytes is zero, allocate at least one byte
19852 to coding->destination.
19854 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19856 * charset.c (Fmake_char): Make it more backward compatible.
19857 (Fmap_charset_chars): Fix docstring.
19859 2008-02-01 Dave Love <fx@gnu.org>
19861 * coding.c: Doc fixes.
19862 (Fdefine_coding_system_alias): Use names, not symbols, in
19863 coding-system-alist.
19865 2008-02-01 Kenichi Handa <handa@m17n.org>
19867 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19868 of calling free_realized_face.
19870 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19872 * charset.c (read_hex): Don't treat SPC as a comment starter.
19873 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19874 (Fdecode_char): Fix typo.
19876 2008-02-01 Kenichi Handa <handa@m17n.org>
19878 * charset.h (struct charset): New member `code_space_mask'.
19880 * coding.c (coding_set_source): Delete the local variable beg_byte.
19881 (encode_coding_charset, Fdefine_coding_system_internal):
19882 Delete the local variable charset.
19883 (Fdefine_coding_system_internal): Setup
19884 attrs[coding_attr_charset_valids] correctly.
19886 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19887 member to check if CODE is valid or not.
19888 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19889 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19890 is within the range of charset->min_code and carset->max_code.
19892 2008-02-01 Dave Love <fx@gnu.org>
19894 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19896 * dispextern.h (generate_ascii_font): Fix return type.
19898 * xfaces.c (generate_ascii_font): Fix arg declaration.
19900 * coding.c (coding_inherit_eol_type)
19901 (Fset_terminal_coding_system_internal)
19902 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19904 2008-02-01 Kenichi Handa <handa@m17n.org>
19906 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19907 multiple charsets correctly.
19909 2008-02-01 Kenichi Handa <handa@m17n.org>
19911 * search.c (boyer_moore): Fix handling of multibyte character
19914 * xdisp.c (display_mode_element): When the variable `elt' is
19915 changed, update `this' and `lisp_string'.
19917 2008-02-01 Kenichi Handa <handa@m17n.org>
19919 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19921 * callproc.c (Fcall_process): Be sure to give the current buffer
19922 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19924 * charset.c (struct charset_map_entries): New struct.
19925 (load_charset_map): Rename from parse_charset_map. New args
19926 entries and n_entries. Change caller.
19927 (load_charset_map_from_file): Rename from load_charset_map.
19928 Change caller. New arg control_flag. Call load_charset_map at
19930 (load_charset_map_from_vector): New function.
19931 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19932 (encode_char): If the charset is compact, change a character index
19935 * coding.c (coding_alloc_by_making_gap): Check the case that the
19936 source and destination are the same correctly.
19937 (decode_coding_raw_text): Set coding->consumed_char and
19938 coding->consumed to 0.
19939 (produce_chars): If coding->chars_at_source is nonzero, update
19940 coding->consumed_char and coding->consumed before calling
19942 (Fdefine_coding_system_alias): Register ALIAS in
19943 Vcoding_system_alist.
19944 (syms_of_coding): Define `no-conversion' coding system at the tail.
19946 * fileio.c (Finsert_file_contents): Set coding_system instead of
19947 val. If the current buffer is multibyte, always call
19950 * xfaces.c (try_font_list): Give higher priority to fontset's
19951 family than face's family.
19953 2008-02-01 Kenichi Handa <handa@m17n.org>
19955 * callproc.c (Fcall_process): Be sure to give the current buffer
19956 to decode_coding_c_string.
19958 * xfaces.c (try_font_list): Give a family specified in a fontset
19959 higher priority than a family specified in a face.
19961 2008-02-01 Kenichi Handa <handa@m17n.org>
19963 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19964 Fix arguments to insert_from_buffer.
19966 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19968 2008-02-01 Kenichi Handa <handa@m17n.org>
19970 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19971 (decode_coding_gap): Set coding->dst_multibyte correctly.
19973 2008-02-01 Kenichi Handa <handa@m17n.org>
19975 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19976 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19977 (encode_coding_utf_16): Substitute coding->default_char for
19978 non-Unicode characters.
19979 (decode_coding): Don't call record_insert here.
19980 (setup_coding_system): Initialize `surrogate' of
19981 coding->spec.utf_16 to 0.
19982 (EMIT_ONE_BYTE): Fix for multibyte case.
19984 * insdel.c (insert_from_gap): Call record_insert.
19986 2008-02-01 Kenichi Handa <handa@m17n.org>
19988 * casefiddle.c (casify_region): Fix multibyte case.
19990 * character.c (c_string_width): Add return type `int'.
19991 (char_string_with_unification): Delete arg ADVANCED.
19993 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19994 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19995 (CHAR_STRING_ADVANCE): Make it do-while statement.
19997 * chartab.c (sub_char_table_set_range): Optimize for the case
19998 DEPTH == 3. Add workaround code for a GCC optimization bug.
20000 * charset.c (parse_charset_map): Remove an unused variable.
20002 * coding.c: Delete unused variables.
20004 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20005 earlier. If inserted is zero and the coding system doesn't
20006 require flushing, don't call decode_coding_gap.
20008 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20010 2008-02-01 Kenichi Handa <handa@m17n.org>
20012 The following changes are for using Unicode as an internal
20013 character model, and use UTF-8 format for buffer/string
20016 * .gdbinit (xchartable): Adjust for the change of char table structure.
20017 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20019 * Makefile.in (obj): Add character.o and chartab.o.
20020 (lisp, shortlisp): Remove utf-8.elc.
20021 (*.o): For many files, change dependency on charset.h to
20022 character.h, and add dependency on character.h.
20023 (character.o, chartab.o): New targets.
20025 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20026 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20027 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20030 * dired.c, filelock.c: Include "character.h".
20032 * alloc.c: Include "character.h" instead of "charset.h".
20033 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20034 (syms_of_alloc): Remove defsubr for Smake_char_table.
20036 * buffer.c: Include "character.h" instead of "charset.h", don't
20037 include "coding.h".
20038 (Fset_buffer_multibyte): Adjust for UTF-8.
20040 * buffer.h: EXFUN Fbuffer_live_p.
20042 * callproc.c: Include "character.h" instead of "charset.h".
20043 (Fcall_process): Big change for the new code-conversion APIs.
20045 * casetab.c: Include "character.h" instead of "charset.h".
20046 (set_canon, set_identity, shuffle): Adjust for the new
20047 map_char_table spec.
20048 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20049 accessing the char table structure.
20051 * chartab.c: New file that implements char table.
20053 * category.c: Include "character.h".
20054 (copy_category_entry): New function.
20055 (copy_category_table): Call map_char_table and copy_category_entry.
20056 (Fmake_category_table): Initialize all top-level slots.
20057 (char_category_set): New function.
20058 (modify_lower_category_set): Delete.
20059 (Fmodify_category_entry): Call char_table_ref_and_range.
20061 * category.h (CATEGORY_SET): Just call char_category_set.
20063 * ccl.c: Include "character.h".
20064 (Qccl, Qcclp): New variables.
20065 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20066 it's less than 256.
20067 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20068 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20070 (ccl_driver): Change types of argument, adjust code accordingly.
20071 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20073 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20075 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20076 New members src_multibyte, dst_multibyte, consumed, and produced.
20077 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20078 (CODING_SPEC_CCL_PROGRAM): New macro.
20079 (ccl_driver): Update prototype.
20080 (Qccl, Qcclp, Fccl_program_p): Extern them.
20081 (CHECK_CCL_PROGRAM): New macro.
20083 * character.c, character.h, chartab.c: New files.
20085 * charset.c: Mostly re-written. Move character and multibyte sequence
20086 handling codes to character.c.
20088 * charset.h: Mostly re-written. Move character and multibyte sequence
20089 handling codes to character.h.
20091 * coding.c, coding.h: Mostly re-written.
20093 * composite.c: Include "character.h" instead of "charset.h".
20094 (CHAR_WIDTH): Move to character.h.
20095 (HASH_KEY, HASH_VALUE): Delete.
20097 * composite.h (enum composition_method): Change order of enumeration
20100 * data.c: Include "character.h" instead of "charset.h".
20101 (Faref): Call CHAR_TABLE_REF for a char table.
20102 (Faset): Call CHAR_TABLE_SET for a char table.
20104 * dispextern.h (free_realized_face, check_face_attribytes)
20105 (generate_ascii_font): Extern them.
20106 (free_realized_multibyte_face): Delete extern.
20108 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20111 * editfns.c: Include "character.h" instead of "charset.h".
20112 (Fchar_to_string): Always call CHAR_STRING.
20114 * emacs.c (main): Call init_charset_once, init_charset,
20115 syms_of_chartab, and syms_of_character.
20117 * fileio.c: Include "character.h" instead of "charset.h".
20118 (Finsert_file_contents): Big change for the new code-conversion API.
20119 (choose_write_coding_system, Fwrite_region): Likewise.
20120 (build_annotations_2): Delete.
20121 (e_write): Big change for the new code-conversion API.
20123 * fns.c: Include "character.h" instead of "charset.h".
20124 (copy_sub_char_table): Move to chartab.c.
20125 (Fcopy_sequence): Call copy_char_table for a char table.
20126 (concat): Delete codes calling count_multibyte.
20127 (string_char_to_byte, string_byte_to_char): Adjust for the new
20129 (internal_equal): Adjust for the change of char table structure.
20130 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20131 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20132 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20133 (char_table_translate, optimize_sub_char_table)
20134 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20136 (char_table_ref_and_index): Delete.
20137 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20138 (Fmd5): Call preferred_coding_system instead of accessing
20139 Vcoding_category_list. Adjust for the new code-conversion API.
20140 (syms_of_fns): Move defsubr for char table related functions to
20143 * fontset.c: Mostly re-written.
20145 * fontset.h (struct font_info): Change type of the member encoding_type.
20146 (enum FONT_SPEC_INDEX): New enum.
20147 (fontset_font_pattern, fs_load_font): Update prototype.
20148 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20150 * indent.c: Include "character.h" instead of "charset.h".
20151 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20153 * insdel.c: Include "character.h" instead of "charset.h".
20154 (copy_text): Don't refer to Vnonascii_translation_table.
20155 (insert_from_gap): New function.
20157 * keyboard.c: Include "character.h" instead of "charset.h".
20158 (command_loop_1): Never call direct_output_forward_char before
20159 a non-ASCII character.
20160 (read_char): If Vkeyboard_translate_table is a char table, always
20161 translate a character.
20163 * keymap.c: Include "character.h".
20164 (store_in_keymap): Handle the case that IDX is a cons.
20165 (Fdefine_key): Handle the case that KEY is a cons and the car part
20166 is also a cons (range).
20167 (push_key_description): Adjust for the new character code.
20168 (describe_vector): Call describe_char_table for a char table.
20169 (describe_char_table): New function.
20171 * keymap.h (describe_char_table): Extern it.
20173 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20174 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20175 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20176 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20178 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20180 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20181 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20182 (CHARTAB_SIZE_BITS_3): New macros.
20183 (chartab_size): Extern it.
20184 (struct Lisp_Char_Table): Re-design.
20185 (struct Lisp_Sub_Char_Table): New structure.
20186 (HASH_KEY, HASH_VALUE): Move from fns.c.
20187 (CHARACTERBITS): Define as 22.
20188 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20189 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20190 (GC_SUB_CHAR_TABLE_P): New macro.
20191 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20192 (code_convert_string_norecord): Deleted extern.
20193 (init_character_once, syms_of_character, init_charset)
20194 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20196 * lread.c: Include "character.h".
20197 (read_multibyte): New arg NBYTES.
20198 (read_escape): Change the meaning of returned *BYTEREP.
20199 (to_multibyte): Delete.
20200 (read1): Adjust the handling of char table and string.
20202 * print.c: Include "character.h" instead of "charset.h".
20203 (print_string): Convert 8-bit raw bytes to octal form by
20204 string_escape_byte8.
20205 (print_object): Adjust for the new multibyte form. Print 8-bit
20206 raw bytes always in octal form. Handle sub char table correctly.
20208 * process.c: Include "character.h" instead of "charset.h".
20209 (read_process_output, send_process): Adjust for the new
20210 code-conversion API.
20212 * puresize.h (BASE_PURESIZE): Increase.
20214 * regex.c: Include "character.h" instead of "charset.h".
20215 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20216 (regex_compile): Accept a range whose starting and ending
20217 character have different leading bytes.
20218 (analyse_first): Adjust for the above change.
20220 * search.c: Include "character.h" instead of "charset.h".
20221 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20222 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20224 * syntax.c: Include "character.h" instead of "charset.h".
20225 (syntax_parent_lookup): Delete.
20226 (Fmodify_syntax_entry): Accept a cons as CHAR.
20227 (skip_chars): Adjust for the new multibyte form.
20228 (init_syntax_once): Call char_table_set_range instead of directly
20229 accessing the structure of a char table.
20231 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20232 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20233 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20234 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20236 * term.c: Include "buffer.h" and "character.h".
20237 (encode_terminal_code, write_glyphs): Adjust for the new
20238 code-conversion API.
20239 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20241 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20243 * xdisp.c: Include "character.h".
20244 (get_next_display_element): Adjust for the new multibyte form.
20245 (disp_char_vector): Adjust for the new char table structure.
20246 (decode_mode_spec_coding): Adjust for the new structure of
20248 (decode_mode_spec): Adjust for the new code-conversion API.
20250 * xfaces.c: Include "character.h" instead of "charset.h".
20251 (load_face_font): Adjust for the change of choose_face_font and
20253 (generate_ascii_font): New function.
20254 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20255 (set_font_frame_param): Adjust for the change of choose_face_font.
20256 (free_realized_face): Make it public.
20257 (free_realized_faces_for_fontset): Rename from
20258 free_realized_multibyte_face. Free also faces realized for ASCII.
20259 (choose_face_font): Change arguments. Adjust for the change of
20260 fontset_font_pattern and FS_LOAD_FONT.
20262 * xfns.c: Include "character.h".
20263 (x_encode_text): Adjust for the new code-conversion API.
20265 * xselect.c: Don't include "charset.h".
20266 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20268 * xterm.c: Include "character.h".
20269 (x_encode_char): New argument CHARSET. Change caller.
20270 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20271 Call ENCODE_CHAR instead of SPLIT_CHAR.
20272 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20273 CHAR_WIDTH instead of CHARSET_WIDTH.
20274 (XTread_socket): Adjust for the new code-conversion API.
20275 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20276 (x_load_font): Adjust for the change of struct font.
20278 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20280 * xfaces.c (face_at_buffer_position): Remove unused vars.
20282 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20284 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20285 Fix overflow checking.
20287 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20289 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20290 Cancel previous change.
20292 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20294 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20295 ccl->eight_bit_control. Fix check for buffer overflow.
20296 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20297 (ccl_driver): Initialize extra_bytes to 0.
20299 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20301 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20302 return it ORed with ctrl_modifier.
20304 2008-01-29 Miles Bader <miles@gnu.org>
20306 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20308 2008-01-28 Jason Rumney <jasonr@gnu.org>
20310 * w32.c (stat): Don't double check for networked drive.
20312 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20314 * window.c (run_window_configuration_change_hook): New function.
20315 Code extracted from set_window_buffer. Set the selected frame.
20316 (set_window_buffer): Use it.
20317 * window.h (run_window_configuration_change_hook): Declare.
20318 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20320 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20322 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20324 * Makefile.in: Remove references to unused macros.
20326 2008-01-26 Eli Zaretskii <eliz@gnu.org>
20328 * w32.c (g_b_init_get_sid_sub_authority)
20329 (g_b_init_get_sid_sub_authority_count): New static variables.
20330 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20331 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20332 (init_user_info): Use them to retrieve uid and gid.
20333 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20334 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20335 st_uid and st_gid of the file.
20337 2008-01-26 Jason Rumney <jasonr@gnu.org>
20339 * w32.c (logon_network_drive): New function.
20342 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
20344 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20345 invisible text covered with an ellipsis.
20347 2008-01-25 Richard Stallman <rms@gnu.org>
20349 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20350 jump back to beginning. Move some other initializations after that.
20351 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20353 (syms_of_xdisp): Init them.
20355 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20357 * buffer.c (reset_buffer_local_variables):
20358 Implement `permanent-local-hook'.
20359 (Qpermanent_local_hook): New variable.
20360 (syms_of_buffer): Init and staticpro it.
20362 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
20364 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20366 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20368 * fns.c (Fclrhash): Return TABLE.
20370 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20372 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20373 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20374 is set even without positional changes.
20375 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20377 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20379 2008-01-23 Jason Rumney <jasonr@gnu.org>
20381 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20383 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20384 the unicode range available in MULE by locale-coding-system.
20385 Improve dbcs lead byte detection. Set event timestamp and modifiers
20388 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20390 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20391 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20392 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20393 when used on child processes.
20395 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
20397 * dbusbind.c (Fdbus_method_return_internal): Rename from
20398 Fdbus_method_return.
20399 (Fdbus_unregister_object): Move to dbus.el.
20400 (Fdbus_call_method, Fdbus_method_return_internal)
20401 (Fdbus_send_signal): Improve debug messages.
20403 2008-01-20 Martin Rudalics <rudalics@gmx.at>
20405 * undo.c (undo_inhibit_record_point): New variable.
20406 (syms_of_undo): Initialize it.
20407 (record_point): Don't record point when undo_inhibit_record_point
20410 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20412 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20414 * xdisp.c (Qauto_hscroll_mode): New var.
20415 (syms_of_xdisp): Initialize it.
20416 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20418 (hscroll_windows): Don't check automatic_hscrolling_p here.
20420 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20421 vscroll if we're setting window-buffer to the value it already has.
20423 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20425 * m/intel386.h: Remove references to XENIX.
20427 2008-01-17 Andreas Schwab <schwab@suse.de>
20429 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20430 instead of HAVE_X86_64_LIB64_DIR.
20431 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20433 2008-01-17 Glenn Morris <rgm@gnu.org>
20435 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20436 to HAVE_X86_64_LIB64_DIR.
20438 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20445 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20447 * sysdep.c: Remove code containing references to symbols defined
20448 by unsupported systems.
20450 2008-01-16 Glenn Morris <rgm@gnu.org>
20452 * coding.c (select-safe-coding-system-function): Doc fix.
20454 2008-01-15 Glenn Morris <rgm@gnu.org>
20456 * config.in: Revert 2008-01-13 change: this is a generated file.
20458 2008-01-13 Tom Tromey <tromey@redhat.com>
20460 * lisp.h: Fix typo.
20462 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20468 * s/ptx4.h: Remove files for systems no longer supported.
20470 * callproc.c (Fcall_process): Fix previous change.
20472 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20474 * unexsunos4.c: Remove file, system not supported anymore.
20494 * alloc.c: Remove code containing references to symbols defined by
20495 unsupported systems.
20497 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20499 * coding.c (detect_coding_mask): Fix previous change.
20501 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20503 * coding.c (detect_coding_iso2022): New arg
20504 latin_extra_code_state. Allow Latin extra codes only
20505 when *latin_extra_code_state is nonzero.
20506 (detect_coding_mask): If there is a NULL byte, detect the encoding
20507 as UTF-16 or binary. If Latin extra codes exist, detect the
20508 encoding as ISO-2022 only when there's no other proper encoding is
20511 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20513 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20516 2008-01-08 Richard Stallman <rms@gnu.org>
20518 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20520 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
20522 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20523 menu bar in parentheses.
20525 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20529 * m/alliant-2800.h:
20537 * m/aviion-intel.h:
20632 * unexsni.c: Remove files for systems no longer supported.
20634 * m/intel386.h: Remove references to unsupported systems.
20636 * w32.c (get_emacs_configuration): Remove reference to i860.
20638 * sysdep.c: Remove dead code.
20640 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20643 * m/masscomp.h: Remove files. Platform is obsolete.
20645 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
20647 * dbusbind.c (Fdbus_method_return): New function.
20648 (xd_read_message): Add the serial number to the event.
20649 (Fdbus_register_method): Activate the function.
20651 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20653 * keyboard.c (read_key_sequence): Fix typo.
20655 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
20657 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20658 (xd_signature, xd_append_arg): Handle element type detection for
20660 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20661 SDATA () calls; this must be solved more general.
20662 (Fdbus_register_signal): Use SBYTES instead of strlen.
20664 2008-01-03 Magnus Henoch <magnus@zemdatav>
20666 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20667 unsigned int for byte values (necessary for big-endian platform).
20668 (Fdbus_call_method): Handle the case of no returned arguments.
20670 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20672 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20674 2007-12-31 Magnus Henoch <mange@freemail.hu>
20676 * dbusbind.c (xd_signature): Signature of variant is just "v".
20678 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
20680 * dbusbind.c: Fix several errors and compiler warnings.
20681 Reported by Tom Tromey <tromey@redhat.com>.
20682 (XD_ERROR, XD_DEBUG_MESSAGE)
20683 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20684 (xd_append_arg): Part for basic D-Bus types rewritten.
20685 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20686 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20688 (xd_read_message): Return Qnil. Don't signal an error; it is not
20689 useful during event reading.
20690 (Fdbus_register_signal): Signal an error if the check for
20692 (Fdbus_register_method): New function. The implementation is not
20693 complete, the call of the function signals an error therefore.
20694 (Fdbus_unregister_object): New function, renamed from
20695 Fdbus_unregister_signal. The initial check signals an error, if
20696 the object is not well formed.
20698 2007-12-30 Richard Stallman <rms@gnu.org>
20700 * textprop.c (get_char_property_and_overlay):
20701 Signal error if POSITION is out of range in a buffer.
20703 2007-12-29 Martin Rudalics <rudalics@gmx.at>
20705 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20706 because the original parameters are in pure storage now.
20708 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20710 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20712 2007-12-22 Eli Zaretskii <eliz@gnu.org>
20714 * callint.c (syms_of_callint) <command-history>: Add reference to
20715 history-length in the doc string.
20717 2007-12-17 Jason Rumney <jasonr@gnu.org>
20719 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20720 before passing as wParam.
20722 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
20724 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20725 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20726 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20727 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20729 (Fdbus_call_method): Fix docstring.
20731 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
20733 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20735 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20736 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20738 (xd_signature): New function.
20739 (xd_append_arg): Compute also signatures. Major rewrite.
20740 (xd_retrieve_arg): Make debug messages friendly.
20741 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20742 Check for signatures of arguments.
20744 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
20746 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20747 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20748 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20749 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20750 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20751 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20752 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20753 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20754 (xd_retrieve_value): Remove. Functionality included in ...
20755 (xd_append_arg): New function.
20756 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20758 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
20760 * dbusbind.c (top): Include <stdio.h>.
20761 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20762 dbus_message_new_method_call and dbus_message_new_signal.
20763 (Fdbus_register_signal): Rename unique_name to uname.
20764 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20765 non-existing unique name. Fix typos in matching rule. Return an
20766 object which is useful in Fdbus_unregister_signal.
20767 (Fdbus_unregister_signal): Reimplementation, in order to remove
20768 only the corresponding entry.
20769 (Vdbus_registered_functions_table): Change the order of entries.
20770 Apply these changes in xd_read_message and Fdbus_register_signal.
20772 2007-12-16 Andreas Schwab <schwab@suse.de>
20774 * fileio.c (Finsert_file_contents): Fix overflow check to not
20775 depend on undefined integer overflow.
20777 2007-12-14 Jason Rumney <jasonr@gnu.org>
20779 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20780 for characters above 127.
20782 2007-12-13 Jason Rumney <jasonr@gnu.org>
20784 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20785 before dereferencing array.
20786 (lookup_vk_code): Remove zero comparison.
20788 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
20790 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20791 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20792 Use `unsigned int' instead of `uint'.
20793 (xd_read_message, Fdbus_register_signal): Split expressions into
20794 multiple lines before operators "&&" and "||", according to the
20795 GNU Coding Standards.
20797 2007-12-14 Eli Zaretskii <eliz@gnu.org>
20799 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20801 2007-12-12 Juri Linkov <juri@jurta.org>
20803 * buffer.c (Frename_buffer): In interactive spec replace
20804 `read-buffer' with `read-string' that uses `buffer-name-history'
20805 as history, and the current buffer's name as default.
20807 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20809 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20810 manipulating the backtrace manually.
20811 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20812 (struct backtrace, backtrace_list): Remove.
20813 (command_loop_1): Remove dead var `no_direct'.
20815 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20816 preserve non-built-in buffer-local variables.
20817 (Fkill_all_local_variables): Don't re-create&re-set permanent
20818 buffer-local variables.
20820 2007-12-09 Juri Linkov <juri@jurta.org>
20822 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20823 Lisp code that uses `read-buffer' with current buffer as default.
20825 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
20827 * dbusbind.c (xd_read_message): Generate an event for every
20828 registered handler. There might be several handlers registered
20829 for the same signal.
20830 (Fdbus_register_signal): Don't overwrite a registration for the
20831 same signal. Add a new registration if handlers are different.
20832 (Vdbus_registered_functions_table): Rework doc string.
20834 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
20836 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20837 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20838 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20839 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20840 Unify argument lists.
20841 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20842 arguments and hash table keys. Use unique name for service.
20843 (Fdbus_unregister_signal): Remove checks.
20844 (Vdbus_registered_functions_table): Fix doc string.
20846 2007-12-05 Magnus Henoch <mange@freemail.hu>
20848 * process.c (make_process): Initialize pty_flag to 0.
20850 2007-12-05 Jason Rumney <jasonr@gnu.org>
20852 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20855 2007-12-05 Richard Stallman <rms@gnu.org>
20857 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20859 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20861 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20863 (mac_try_close_socket) [MAC_OSX]: New function.
20864 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20865 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20867 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20868 Use mac_try_close_socket.
20870 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20872 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20874 (copy_dysymtab): Compute relocation base here.
20875 (rebase_reloc_address) [__ppc64__]: New function.
20876 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20879 2007-12-05 Jason Rumney <jasonr@gnu.org>
20881 * w32proc.c (sys_spawnve): Quote args with wildcards.
20883 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20885 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20887 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20889 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
20891 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20892 Move check for Vdbus_registered_functions_table to
20893 xd_read_queued_messages.
20894 (xd_read_queued_messages): Protect xd_read_message calls by
20895 internal_condition_case_1.
20897 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
20899 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20900 Qdbus_system_bus and Qdbus_session_bus, respectively.
20901 (Vdbus_intern_symbols): Remove.
20902 (Vdbus_registered_functions_table): New hash table.
20903 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20904 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20905 Rewrite in order to manage registered functions by hash table
20906 Vdbus_registered_functions_table.
20908 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20910 * xterm.c: Update URL to Window Manager Specification in comment.
20912 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
20914 * config.in (HAVE_DBUS): Add.
20916 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20917 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20918 (obj): Add $(DBUS_OBJ).
20919 (LIBES): Add $(DBUS_LIBS).
20920 (dbusbind.o): New target.
20922 * dbusbind.c: New file.
20924 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20926 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20927 (Qdbus_event): New Lisp symbol.
20928 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20929 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
20930 (keys_of_keyboard): Define dbus-event.
20932 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20934 2007-12-01 Richard Stallman <rms@gnu.org>
20936 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20938 2007-11-30 Jason Rumney <jasonr@gnu.org>
20940 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20941 (w32con_reset_terminal_modes): Clear screen buffer.
20942 (w32_face_attributes): Don't use color indexes that are out of range.
20943 Only reverse the default colors.
20945 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20948 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20950 2007-11-29 Jason Rumney <jasonr@gnu.org>
20952 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20953 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20954 if the terminal colors are initialized.
20955 (unspecified_fg, unspecified_bg): Remove unused declarations.
20957 2007-11-29 Andreas Schwab <schwab@suse.de>
20959 * keyboard.c (apply_modifiers): Fix typo.
20961 2007-11-29 Richard Stallman <rms@gnu.org>
20963 * keymap.c (Fcurrent_local_map): Doc fix.
20965 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20967 * s/gnu-kfreebsd.h: New file.
20969 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20971 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20972 Don't cast redundantly.
20974 * keyboard.c (KEY_TO_CHAR): New macro.
20975 (parse_modifiers, apply_modifiers): Accept integer arguments.
20976 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20977 for chars and symbol keys.
20978 After doing such remapping, apply function-key-map again.
20980 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20982 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20985 2007-11-26 Andreas Schwab <schwab@suse.de>
20987 * process.c (list_processes_1): Fix indentation level of the
20990 2007-11-23 Andreas Schwab <schwab@suse.de>
20992 * editfns.c (Fformat): Handle %c specially since it requires the
20993 argument to be of type int.
20995 2007-11-23 Markus Triska <markus.triska@gmx.at>
20997 * emacs.c (main): Call init_editfns before init_process, since
20998 init_process sets Vprocess_connection_type depending on OS release.
21000 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21002 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21003 (find_symbol_value): Use do_symval_forwarding.
21005 * data.c (set_internal): Set the value in the `cons-cell' (for
21006 Buffer_Local_values) not only for frame-local variables.
21008 2007-11-22 Andreas Schwab <schwab@suse.de>
21010 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21012 * keymap.c (Fsingle_key_description): Likewise.
21013 * print.c (print_object): Likewise.
21015 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21017 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21018 file for image is nil.
21020 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21022 * term.c: Include stdarg.h.
21023 (fatal): Implement using varargs.
21024 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21026 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21028 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21029 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21030 Update call to buffer_slot_type_mismatch.
21031 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21032 (buffer_slot_type_mismatch): Update.
21033 * buffer.c (buffer_local_types): Remove.
21034 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21035 (defvar_per_buffer): Set the type in the buffer_objfwd.
21037 2007-11-21 Jason Rumney <jasonr@gnu.org>
21039 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21040 CreateFileMapping returns NULL on failure.
21042 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21044 * search.c (Fset_match_data): Remove the `evaporate' feature.
21045 (unwind_set_match_data): Don't use the `evaporate' feature.
21047 2007-11-21 Jason Rumney <jasonr@gnu.org>
21049 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21051 * w32console.c (w32con_write_glyphs): Remove unused variables.
21053 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21055 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21057 * s/darwin.h (MULTI_KBOARD): Remove.
21059 * macfns.c (x_create_tip_frame, Fx_create_frame)
21060 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21062 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21064 * buffer.c (Fbuffer_local_value): Remove redundant test.
21065 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21066 than in `current-buffer' to match the comment.
21067 Do the swap using swap_in_global_binding.
21069 * data.c (store_symval_forwarding, set_internal):
21070 * eval.c (specbind): Remove dead code.
21072 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21073 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21074 Since we do not want to see internal Lisp_*fwd objects here.
21076 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21078 * sysdep.c (init_system_name): Use getaddrinfo if available.
21080 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21081 (x_scroll_bar_note_movement): start, end, with, height in struct
21082 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21084 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21086 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21088 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21090 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21091 This undoes Richard's change of 14-Oct-2002.
21093 * alloc.c (allocate_other_vector):
21094 * lisp.h (allocate_other_vector): Remove.
21096 * window.c (struct save_window_data): Move non-lisp data to the end
21097 and make it `int' rather than Lisp_Object.
21098 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21099 Done wrap/unwrap integer values.
21100 (Fset_window_configuration, compare_window_configurations):
21101 Update use of fields to their new types.
21103 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21104 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21105 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21106 (SET_SCROLL_BAR_X_WINDOW): Remove.
21107 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21108 Access the new x_window field directly.
21109 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21110 Don't wrap/unwrap integers into Lisp_Objects.
21111 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21112 (x_scroll_bar_report_motion):
21113 Don't wrap/unwrap integers into Lisp_Objects.
21114 (x_term_init): Use SDATA.
21115 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21116 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21117 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21118 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21119 * xfns.c (x_set_background_color):
21120 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21121 Access the new x_window field directly.
21123 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21124 (allocate_pseudovector): Make non-static.
21126 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21127 (allocate_pseudovector): Declare.
21128 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21130 2007-11-15 Andreas Schwab <schwab@suse.de>
21132 * editfns.c (Fformat): Correctly format EMACS_INT values.
21133 Also take precision into account when formatting an integer.
21135 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21137 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21139 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21140 (syms_of_keyboard): Defsubr it.
21142 * data.c (swap_in_global_binding): Fix longstanding bug where
21143 store_symval_forwarding was not called with the right second argument,
21144 thus causing objfwd-ing from being dropped.
21146 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21148 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21149 (Fx_display_pixel_height, Fx_display_planes)
21150 (Fx_display_color_cells, Fx_server_max_request_size)
21151 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21152 (Fx_display_visual_class, Fx_display_save_under):
21153 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21154 (Fx_display_pixel_height, Fx_display_planes)
21155 (Fx_display_color_cells, Fx_server_max_request_size)
21156 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21157 (Fx_display_mm_height, Fx_display_mm_width)
21158 (Fx_display_backing_store, Fx_display_visual_class)
21159 (Fw32_select_font, Fx_display_save_under):
21160 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21161 (Fx_display_pixel_height, Fx_display_planes)
21162 (Fx_display_color_cells, Fx_server_max_request_size)
21163 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21164 (Fx_display_save_under): Fix typos in docstrings.
21166 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21168 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21169 corresponding to deleted entries; they are an implementation detail.
21170 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21172 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21173 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21174 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21175 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21176 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21177 (Fw32_define_rgb_color, Fw32_load_color_file)
21178 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21179 Fix typos in docstrings.
21180 (Fx_server_version): Reflow docstring.
21181 (Fw32_shell_execute): Doc fixes.
21183 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
21185 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21186 if w32_parse_hot_key returned nil.
21188 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21190 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21192 2007-11-09 Jason Rumney <jasonr@gnu.org>
21194 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21196 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21198 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21199 Remove W32_SCROLL_BAR_CLICK_EVENT.
21201 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21202 Add MULTIMEDIA_KEY_EVENT.
21204 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21205 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21206 (make_lispy_event) [WINDOWSNT]: Use it to translate
21207 MULTIMEDIA_KEY_EVENT.
21209 * w32term.h (WM_APPCOMMAND): Define if not already.
21210 (GET_APPCOMMAND_LPARAM): Likewise.
21212 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21215 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21216 (syms_of_w32fns): Export and initialize it.
21217 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21219 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
21221 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21224 * xdisp.c (handle_face_prop): Fix last change.
21226 2007-11-09 Richard Stallman <rms@gnu.org>
21228 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21229 not just for after-strings and before-strings.
21230 Call face_for_overlay_string and pass the overlay to it.
21231 (handle_display_prop): Determine whether property came from an overlay.
21232 Pass OVERLAY arg to handle_single_display_spec.
21233 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21234 (load_overlay_strings): Fill in it->string_overlays.
21235 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21237 * xfaces.c (face_for_overlay_string): Function renamed from
21238 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21240 * dispextern.h (struct it): New elt string_overlays.
21241 New elt from_overlay, also in stack.
21242 Rearrange a few elements.
21243 (face_for_overlay_string): Decl renamed from
21244 face_at_buffer_position_no_overlays, and add argument.
21246 2007-11-09 Richard Stallman <rms@gnu.org>
21248 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21249 to get the base face for an overlay string.
21251 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21253 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21255 * xdisp.c (handle_stop): Move some code out of loop.
21257 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21259 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21260 Fix conversion from Lisp object to ATSUFontID.
21262 2007-11-09 Jason Rumney <jasonr@gnu.org>
21264 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21266 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21268 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21269 Don't assume regions are aligned to page boundary.
21270 (print_load_command_name): Add LC_UUID if defined.
21272 2007-11-09 Richard Stallman <rms@gnu.org>
21274 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21276 2007-11-07 Jason Rumney <jasonr@gnu.org>
21278 * s/windows95.h: Remove.
21280 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21282 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21283 abort with a message on unhandled store_type values.
21285 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21287 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21288 Remove HAVE_X11R5 and HAVE_X11R4.
21290 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21292 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21294 2007-11-01 Johan Bockgård <bojohan@gnu.org>
21296 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21297 Don't set s->stippled_p here, since it has already been set by
21298 x_set_glyph_string_gc from x_draw_glyph_string.
21300 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21302 * sunfns.c: Remove file.
21306 * m/sparc.h: Remove Sun windows code.
21308 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21310 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21311 (init_keyboard): Set current_kboard's window-system to nil.
21312 (tty_read_avail_input): Typo.
21313 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21315 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21322 * Makefile.in: Remove all mentions of X10.
21324 * dispnew.c (syms_of_display): Don't mention version 10.
21326 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
21328 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21329 ($(BLD)/abbrev.$(O)): Remove.
21331 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21333 Rewrite abbrev.c in Elisp.
21334 * image.c (Qcount): Don't declare as extern.
21335 (syms_of_image): Initialize and staticpro `Qcount'.
21336 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21337 * emacs.c (main): Don't call syms_of_abbrev.
21338 * Makefile.in (obj): Remove abbrev.o.
21339 (abbrev.o): Remove.
21340 * abbrev.c: Remove.
21342 2007-10-26 Martin Rudalics <rudalics@gmx.at>
21344 * window.c (window_min_size_2): Don't count header-line.
21346 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21348 * frame.h (struct frame): Move all bit fields after the first bit
21349 field to take advantage of the available space. Group all the
21350 chars together to reduce wasted space due to padding.
21352 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
21354 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21356 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21357 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21358 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21359 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21360 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21361 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21362 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21363 (last_marked, mark_object_loop_halt): Make static.
21365 * frame.c (syms_of_frame) <delete-frame-functions>:
21366 Fix typo in docstring.
21368 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
21370 * w32.c (init_environment): Fix tiny memory leak.
21371 (w32_get_resource): Remove unused variable `ok'.
21373 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21375 Make `window-system' into a keyboard-local variable (rather than
21376 frame-local as done originally by multi-tty).
21378 * keyboard.h (struct kboard): Add Vwindow_system.
21379 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21380 (mark_kboards): Mark Vwindow_system.
21382 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21383 (init_display): Don't set the obsolete `window-system' frame-param.
21385 * xterm.c (x_term_init):
21386 * w32term.c (w32_create_terminal):
21387 * term.c (init_tty): Set Vwindow_system.
21388 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21389 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21391 * xfns.c (Fx_create_frame, x_create_tip_frame):
21392 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21393 * macfns.c (Fx_create_frame):
21394 Don't set the obsolete `window-system' frame-param.
21396 * frame.h (Qwindow_system): Remove.
21397 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21398 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21400 2007-10-24 Richard Stallman <rms@gnu.org>
21402 * frame.c (x_figure_window_size): For fullscreen case,
21403 set USPosition | PPosition without clobbering rest of window_prompting.
21405 * keyboard.c (Fcurrent_idle_time): Doc fix.
21407 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21409 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21411 * process.c (unwind_request_sigio): Only define if __ultrix__.
21413 * callproc.c (child_setup): Remove spurious *.
21415 * lisp.h (Fget_text_property): Declare.
21416 (have_menus_p): Declare it here rather than in sys-dep header files.
21417 * macterm.h (have_menus_p):
21418 * msdos.h (have_menus_p):
21419 * xterm.h (have_menus_p): Remove.
21421 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21422 (Fmake_variable_frame_local): Just check the variable's const-ness
21423 rather than checking nil or t.
21425 2007-10-22 Jason Rumney <jasonr@gnu.org>
21427 * w32fns.c: Include math.h.
21428 (w32_abort): Declaration moved to nt/config.nt.
21430 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21431 (abort): Redefinition moved to nt/config.nt.
21433 * m/windowsnt.h: Remove.
21435 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
21437 * emacs.c (Fdump_emacs): Fix typo in message.
21438 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21439 <installation-directory>: Reflow docstring.
21441 2007-10-22 Juri Linkov <juri@jurta.org>
21443 * minibuf.c: Allow minibuffer default to be a list of default values.
21444 With empty input use the first element of this list as returned default.
21446 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21447 (read_minibuf): If defalt is cons, set histstring to its car.
21448 (Fread_string): If default_value is cons, set val to its car.
21449 (Fread_buffer): If def is cons, use its car.
21450 (Fcompleting_read): If defalt is cons, set val to its car.
21452 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
21454 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21456 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
21458 * doc.c (Fdocumentation): Check for advice in all cases.
21460 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
21462 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21464 2007-10-19 Richard Stallman <rms@gnu.org>
21466 * doc.c (Fdocumentation): Check for and handle an advised function.
21468 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
21470 * process.c (Fset_process_filter): Doc fix.
21472 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21474 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21475 which caused key-translation-map to applied repeatedly (thus breaking
21478 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21480 * xselect.c (x_own_selection, x_handle_selection_clear)
21481 (x_clear_frame_selections):
21482 * w32menu.c (list_of_panes, list_of_items):
21483 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21484 * textprop.c (validate_plist, interval_has_all_properties)
21485 (interval_has_some_properties, interval_has_some_properties_list)
21486 (add_properties, text_property_list):
21487 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21488 * minibuf.c (Fassoc_string):
21489 * macselect.c (x_own_selection, x_clear_frame_selections)
21490 (Fx_disown_selection_internal):
21491 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21492 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21494 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
21496 * process.c: Link to libs for calling res_init() if available.
21497 (Fmake_network_process): Call res_init() before getaddrinfo or
21498 gethostbyname, if possible.
21500 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21502 * lread.c (read1): Set pvectype for char_tables.
21504 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21505 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21507 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21509 * alloc.c (free_misc): Use XMISCTYPE.
21510 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21512 2007-10-17 Glenn Morris <rgm@gnu.org>
21514 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21515 (syms_of_minibuf): Add Qcompletion_ignore_case.
21516 * dired.c (Qcompletion_ignore_case): Change to external.
21517 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21518 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21519 (Fread_file_name): Use it rather than intern'ing.
21521 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21522 (Fread_coding_system): Ignore case of user input.
21524 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21526 * xdisp.c (handle_display_prop): Ignore display specs after
21527 replacing one when string text is being replaced.
21528 (handle_single_display_spec): Pretend as if characters with display
21529 property haven't been consumed only when buffer text is being replaced.
21531 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21533 * xfns.c (Fx_create_frame, Fx_display_list):
21534 * window.c (window_fixed_size_p, enlarge_window)
21535 (shrink_window_lowest_first):
21536 * macterm.c (init_font_name_table):
21537 * macfns.c (Fx_create_frame, Fx_display_list):
21538 * lread.c (close_load_descs):
21539 * keyboard.c (read_char_x_menu_prompt):
21540 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21541 * coding.c (code_convert_region_unwind): Test the type of an object
21542 rather than just !NILP before extracting data from it.
21544 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21546 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21547 (XMISCANY): New macro.
21548 (XMISCTYPE): Use it.
21549 (struct Lisp_Misc_Any): New type.
21550 (union Lisp_Misc): Use it.
21551 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21552 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21553 (find_symbol_value, set_internal, default_value, Fset_default)
21554 (Fmake_variable_buffer_local, Fmake_local_variable)
21555 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21556 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21557 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21558 * alloc.c (allocate_buffer): Set the size and tag.
21559 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21561 (die): Follow the GNU convention for error messages.
21562 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21563 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21565 (set_buffer_internal_1):
21566 * frame.c (store_frame_param):
21567 * eval.c (specbind):
21568 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21570 * doc.c (Fsnarf_documentation): Simplify.
21572 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21574 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21575 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21577 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21579 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21581 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21583 * eval.c (do_autoload): Don't save autoloads.
21585 * data.c (Ffset): Save autoload of the function being set.
21587 2007-10-07 John Paul Wallington <jpw@pobox.com>
21589 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21590 parameter before setting up faces.
21592 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21594 * ccl.c (Fregister_code_conversion_map):
21595 * keyboard.c (append_tool_bar_item): Reformat last change.
21597 * lisp.h (eabs): Rename from `abs'. All callers changed.
21599 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21601 * buffer.c (add_overlay_mod_hooklist):
21602 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21603 * fontset.c (make_fontset):
21604 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21605 (append_tool_bar_item):
21606 * macmenu.c (grow_menu_items):
21607 * w32menu.c (grow_menu_items):
21608 * xmenu.c (grow_menu_items): Use larger_vector.
21610 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21612 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21613 selected frame'' on MSDOS).
21615 2007-10-12 Martin Rudalics <rudalics@gmx.at>
21617 * frame.c (Qexplicit_name): New variable.
21618 (x_report_frame_params): Report it in parameter alist.
21619 (syms_of_frame): Intern and staticpro it.
21621 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21623 * macfns.c (x_create_tip_frame): Set terminal for frame.
21625 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21627 * frame.c (Qenvironment): Remove.
21628 (syms_of_frame) <Qenvironment>: Don't initialize.
21629 (Fdelete_frame): Don't treat the `environment' param specially.
21630 * frame.h (Qenvironment): Don't declare.
21631 * callproc.c (set_initial_environment): Don't set unused frame param.
21633 * frame.c (Fframe_with_environment): Remove.
21634 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21636 * lisp.h (Fframe_with_environment): Don't declare.
21638 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
21640 * indent.c (indent_tabs_mode, last_known_column)
21641 (last_known_column_modified): Make static.
21642 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21644 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21646 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21648 2007-10-09 Jason Rumney <jasonr@gnu.org>
21650 * w32term.c (x_set_window_size): Disable code that attempts to tell
21651 Lisp code about a size change before it actually happens.
21653 2007-10-09 Richard Stallman <rms@gnu.org>
21655 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21656 return HANDLED_RETURN.
21658 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21660 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21661 when there's an unread command event.
21663 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21664 window autoselection act appropriately when leaving selected frame.
21665 (syms_of_frame): Initialize focus_follows_mouse.
21666 * frame.h (focus_follows_mouse): Extern it.
21667 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21668 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21669 * msdos.c (dos_rawgetc): Likewise.
21670 * w32term.c (w32_read_socket): Likewise.
21671 * xterm.c (handle_one_xevent): Likewise.
21672 * xdisp.c (syms_of_xdisp): In doc-string of
21673 mouse-autoselect-window mention focus-follows-mouse.
21675 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21677 * macterm.c (mac_load_query_font): Fix missing return value.
21678 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21681 2007-10-08 Richard Stallman <rms@gnu.org>
21683 * xdisp.c (get_window_cursor_type): Implement documented behavior
21684 for cursor-in-non-selected-windows = t.
21686 2007-10-08 Jason Rumney <jasonr@gnu.org>
21688 * w32.c (w32_get_resource): Always close registry keys.
21690 2007-10-08 Jason Rumney <jasonr@gnu.org>
21692 * makefile.w32-in (LIBS): Add COMCTL32.
21694 * w32fns.c (globals_of_w32fns): Init common controls.
21696 2007-10-08 Richard Stallman <rms@gnu.org>
21698 * image.c (our_memory_buffer): Rename from omfib_buffer.
21700 2007-10-08 Richard Stallman <rms@gnu.org>
21702 * buffer.c (Foverlays_at): Doc fix.
21704 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21706 * fns.c (Fplist_put): Preserve uneven tail data.
21708 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21710 * termhooks.h (enum event_kind): Remove trailing comma.
21712 * frame.h (enum): Remove trailing comma.
21714 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21716 * w32proc.c (delete_child): Don't terminate threads of zombies.
21718 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21720 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21722 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21723 last-repeatable-command.
21724 (init_kboard): Initialize Vlast_repeatable_command.
21725 (command_loop_1): Set it to real_this_command unless that was
21726 bound to an input event.
21727 (mark_kboards): Mark it.
21729 2007-10-08 Richard Stallman <rms@gnu.org>
21731 * eval.c (condition-case): Doc fix.
21733 2007-10-08 Masatake YAMATO <jet@gyve.org>
21735 * xfaces.c (tty_supports_face_attributes_p): Fix code
21736 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21737 was copied and not edited.
21739 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21741 Add new `input-decode-map' keymap and use it for terminal
21743 * keyboard.h (struct kboard): Add Vinput_decode_map.
21744 Remove Vlocal_key_translation_map.
21745 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21746 (init_kboard): Init input-decode-map.
21747 Replace local-key-translation-map back with key-translation-map.
21748 (syms_of_keyboard): Declare input-decode-map.
21749 Remove local-key-translation-map. Update docstrings.
21750 (mark_kboards): Mark Vinput_decode_map.
21751 Don't mark Vlocal_key_translation_map.
21752 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21753 Replace local-key-translation-map back with key-translation-map.
21754 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21755 Bind in input-decode-map rather than function-key-map.
21757 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21758 This was made redundant by the previous introduction of XSETPVECTYPE.
21760 2007-10-09 Richard Stallman <rms@gnu.org>
21762 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21764 2007-09-29 Richard Stallman <rms@gnu.org>
21766 * eval.c (internal_condition_case_2, internal_condition_case_1)
21767 (internal_condition_case): Reenable abort if x_catching_errors ()
21768 to see if that really happens and why.
21770 2007-10-06 Andreas Schwab <schwab@suse.de>
21772 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21774 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
21776 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21778 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21780 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21782 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21784 * window.h (struct window):
21785 * window.c (struct save_window_data, struct saved_window):
21786 * termhooks.h (struct terminal):
21787 * process.h (struct Lisp_Process):
21788 * frame.h (struct frame):
21789 * buffer.h (struct buffer):
21790 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21791 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21792 The size field of (pseudo)vectors is now unsigned.
21793 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21795 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21796 Turn `count' into an integer.
21798 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21799 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21800 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21801 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21802 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21804 * alloc.c (allocate_pseudovector): New fun.
21805 (ALLOCATE_PSEUDOVECTOR): New macro.
21806 (allocate_window, allocate_terminal, allocate_frame)
21807 (allocate_process): Use it.
21808 (mark_vectorlike): New function.
21809 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21810 (mark_terminals): Use it.
21811 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21812 (Fmake_byte_code): Use XSETPVECTYPE.
21814 * frame.c (Fframe_parameters): Minor simplification.
21816 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21818 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21820 * buffer.c (Fget_buffer_create, init_buffer_once):
21821 * lread.c (defsubr):
21822 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21824 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21825 defined differently in the m/*.h files.
21826 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21827 (XSETPVECTYPE): New macro.
21828 (XSETPSEUDOVECTOR): Use it.
21830 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21831 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21833 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21834 * lread.c (defvar_per_buffer):
21835 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21837 * window.c (candidate_window_p): Only consider as visible frames that
21838 are on the same terminal.
21840 * m/ibms390x.h (MARKBIT): Remove unused macro.
21842 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
21844 * lread.c (Fload): Fix typo in docstring.
21846 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21848 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21849 of a non-zero value can't yield zero.
21851 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21853 * term.c (term_clear_mouse_face, term_mouse_highlight)
21854 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21856 * print.c (safe_debug_print): Use XHASH.
21858 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21859 Lisp elements such as tags.
21860 (XHASH): New macro.
21862 (SREF, SSET, STRING_COPYIN): Use SDATA.
21863 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21865 * alloc.c (mark_terminal): Remove left-over declaration.
21866 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21867 (allocate_vectorlike): Remove type argument. Adjust callers.
21868 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21869 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21871 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21872 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21873 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21874 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21875 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21878 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21879 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21880 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21882 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21884 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21887 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21889 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21891 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21893 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21895 (handle_one_term_event): Use Gpm_DrawPointer.
21896 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21897 Signal errors instead of returning nil. Always return nil.
21898 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21899 Make it a noop if gpm-mouse was not activated.
21900 (syms_of_term): Update names.
21902 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21904 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21905 (init_sys_modes): Check that gpm_tty is the current tty.
21907 * alloc.c (allocate_terminal): Set the vector size to only count the
21908 lisp fields. Initialize those to nil.
21909 (mark_object): Don't treat terminals specially.
21910 (mark_terminal): Remove.
21911 (mark_terminals): Use mark_object instead.
21913 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21914 the GC to the beginning.
21917 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21919 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21921 2007-09-25 Jason Rumney <jasonr@gnu.org>
21923 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21925 * w32console.c (create_w32cons_output): Remove.
21927 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21929 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21930 (reset_sys_modes): Use reset_terminal_modes_hook.
21932 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21934 * eval.c (do_autoload): Don't output any message.
21936 2007-09-24 Juri Linkov <juri@jurta.org>
21938 * emacs.c (standard_args): Change priority of "--no-splash"
21939 from 40 to 3. Add "--no-desktop" with the same priority.
21941 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21943 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21944 and optimize the case where they are all 1.
21946 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
21948 * lisp.h (abs): Define if not defined.
21949 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21950 Don't define `abs', since it's defined in lisp.h.
21952 2007-09-22 Eli Zaretskii <eliz@gnu.org>
21954 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21955 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21956 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21957 (init_tty): Use DEV_TTY instead of "/dev/tty".
21958 [WINDOWSNT]: No need to protect from NAME arg being null.
21960 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21962 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21965 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21967 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21968 (gpm_tty): Change its type.
21969 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21970 (gpm_tty): Change its type and initialize it.
21971 (Fterm_open_connection): Check the frame is indeed a tty.
21972 Use the new gpm_tty.
21973 (Fterm_close_connection): Use the new gpm_tty.
21974 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21975 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21977 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
21979 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21980 underline_color, to draw strike-through.
21982 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21984 * lisp.h (allocate_terminal): Declare.
21986 * window.c (candidate_window_p): Consider frames that are being placed
21987 by the user as somewhere between visible and iconified.
21988 (window_loop): Prefer windows on the current frame.
21989 (Fselect_window): Move the use of select-frame to the beginning so we
21990 can just delegate all the work (it'll call us back anyway).
21992 * frame.c (Qdisplay_environment_variable):
21993 * frame.h (Qdisplay_environment_variable): Delete.
21995 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21996 of the first arg, since that value may be a union.
21998 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21999 parameter rather than Qdisplay_environment_variable. If all else
22000 fails, look for DISPLAY in initial-environment.
22002 2007-09-21 Glenn Morris <rgm@gnu.org>
22004 * Makefile.in (emacstool): Remove target.
22005 (lisp, shortlisp): Remove termdev.elc.
22007 2007-09-21 Markus Triska <markus.triska@gmx.at>
22009 * xterm.c (x_delete_display): Compile session management conditionally.
22011 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22013 * callproc.c (getenv_internal_1): New function.
22014 (getenv_internal): Use it.
22015 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22017 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22018 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22019 (Fset_terminal_parameter): Work with dead terminals as well.
22020 (Fmodify_terminal_parameters): Remove.
22022 * terminal.c (get_terminal): Handle terminals.
22023 Make sure the terminal returned is live.
22024 (create_terminal): Use allocate_terminal.
22025 (mark_terminals): Move to alloc.c.
22026 (delete_terminal): Use terminal->name as liveness status.
22027 NULL out fields after freeing their contents.
22028 Don't deallocate the object.
22029 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22030 rather than an int.
22031 (Fterminal_live_p): Accept non-integer arguments.
22032 (Fterminal_list): Return terminal objects rather than an ints.
22034 * alloc.c (enum mem_type): New member for `terminal' objects.
22035 (allocate_terminal): New function.
22036 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22038 (mark_terminal): New fun.
22039 (mark_terminals): Move from terminal.c.
22041 * term.c (get_tty_terminal): Don't treat output_initial specially.
22042 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22043 (delete_tty): Use terminal->name as liveness status.
22045 * termhooks.h (struct terminal): Make it into a pseudovector.
22046 Remove `deleted' replaced by checking `name's nullness.
22048 * print.c (print_object): Handle terminals.
22050 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22051 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22053 * frame.c (make_terminal_frame):
22054 * keyboard.c (tty_read_avail_input):
22055 * w32term.c (x_delete_terminal):
22056 * xfns.c (Fx_create_frame, x_create_tip_frame):
22057 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22059 2007-09-20 Glenn Morris <rgm@gnu.org>
22061 * process.c (Fmake_network_process): Doc fix.
22063 2007-09-19 Jason Rumney <jasonr@gnu.org>
22065 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22067 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22069 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22070 Fix a C warning regarding variable constness.
22072 * xterm.c (handle_one_xevent): Fix a C warning.
22074 2007-09-18 Jason Rumney <jasonr@gnu.org>
22076 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22078 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22080 * gtkutil.c (gdpy_def): New variable.
22081 (xg_initialize): Initialize gdpy_def.
22082 (xg_display_close): If no other display exists, set gdpy_def to a
22085 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22087 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22088 when we have no file name for the icon.
22089 (xg_tool_bar_expose_callback): Remove.
22090 (xg_create_tool_bar): Don't connect expose signal to
22091 xg_tool_bar_expose_callback.
22092 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22094 2007-09-16 Andreas Schwab <schwab@suse.de>
22096 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22097 values instead of zapping them.
22099 2007-09-14 Glenn Morris <rgm@gnu.org>
22101 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22102 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22103 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22104 scope and rename to omfib_buffer for clarity.
22105 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22107 2007-09-14 Kenichi Handa <handa@m17n.org>
22109 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22111 2007-09-13 Jason Rumney <jasonr@gnu.org>
22113 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22115 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22117 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22118 (mac_term_init): Call here instead, passing rif.
22120 2007-09-13 Glenn Morris <rgm@gnu.org>
22122 * s/hpux.h: No longer define `static' as nothing.
22124 2007-09-13 Johan Bockgård <bojohan@gnu.org>
22126 * callint.c (Fcall_interactively): Remove unused var `fun'.
22128 2007-09-12 Romain Francoise <romain@orebokech.com>
22130 * window.c (prefer_window_split_horizontally, display_buffer):
22131 Revert 2007-09-08 change.
22133 2007-09-12 Glenn Morris <rgm@gnu.org>
22135 * alloca.c: Remove file.
22136 * Makefile.in (alloca): Do not undef.
22137 (allocaobj, alloca.o): Remove.
22138 (otherobj): Remove allocaobj.
22139 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22140 * regex.c (C_ALLOCA): Remove all references and code that was only
22141 used when this was defined.
22142 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22143 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22144 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22146 * Makefile.in (SOURCES, unlock, relock): Delete.
22148 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22149 (menu_grab_callback): All uses changed.
22151 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22152 (x_reply_selection_request): All uses changed.
22154 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22156 * lread.c (load_warn_old_style_backquotes): Change message to look
22157 better when it appears in the middle of byte-compiler messages.
22159 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22161 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22163 * xterm.c (x_create_terminal): Add comment.
22165 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22167 2007-09-10 Richard Stallman <rms@gnu.org>
22169 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22171 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22173 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22174 (DEFUN): Document `intspec', use it instead of `prompt'.
22176 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22178 * data.c (Finteractive_form): If the interactive specification starts
22179 with a `(', use it as a Lisp form.
22181 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22182 name and file modes.
22184 * callint.c (Fcall_interactively): Comment fixes.
22186 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22188 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22189 and compiled functions.
22191 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22193 * window.c (prefer_window_split_horizontally): New variable.
22194 (display_buffer): Consider splitting window horizontally depending
22195 on prefer_window_split_horizontally.
22197 2007-09-08 Eli Zaretskii <eliz@gnu.org>
22199 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22201 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22203 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22205 * frame.c (x_set_frame_parameters): Check number is positive before
22208 * window.c (freeze_window_start): Don't presume selected_window holds
22210 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22212 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22214 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22216 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22218 * window.c (Vsplit_window_preferred_function): New var.
22219 (Fdisplay_buffer): Use it.
22220 (syms_of_window): Export, and initialize it.
22222 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22224 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22226 2007-09-06 Glenn Morris <rgm@gnu.org>
22228 * gtkutil.c (menu_grab_callback) <cnt>:
22229 * xselect.c (x_reply_selection_request) <cnt>: Move static
22230 variable to file scope.
22232 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22234 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22235 consistent values of selected_frame and selected_window.
22237 2007-09-04 Jason Rumney <jasonr@gnu.org>
22239 * w32console.c (initialize_w32_display): Zero unused hooks.
22241 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22243 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22244 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22246 2007-09-04 Jason Rumney <jasonr@gnu.org>
22248 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22249 in w32console.c. Set up input. Remove XXX comments that have been
22250 confirmed as correct.
22252 * s/ms-w32.h (MULTI_KBOARD): Define.
22254 * w32console.c (one_and_only_w32cons): Remove.
22255 (initialize_w32_display): Take terminal argument.
22257 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22258 initialize_w32_display.
22259 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22261 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22263 * keyboard.c (discard_mouse_events): Discard it.
22264 (make_lispy_event): Translate it to a lisp event.
22265 (lispy_wheel_names): Add wheel-left and right events.
22266 (syms_of_keyboard): Enlarge wheel_syms.
22268 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22269 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22271 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22273 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22274 from WM_MOUSEHWHEEL.
22275 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22277 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22280 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22281 keyboard for the terminal.
22283 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22285 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22286 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22287 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22288 and resume-tty-function to resume-tty-hook.
22289 (Fsuspend_tty, Fresume_tty): Use new names.
22291 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22293 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22294 if it starts with "n:".
22296 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22298 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22300 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22303 * frame.c (Qterm_environment_variable): Remove.
22304 (syms_of_frame): Don't init and staticpro it.
22306 * callproc.c (getenv_internal): Remove special case for $TERM.
22308 * callproc.c (Vinitial_environment): New variable.
22309 (set_initial_environment): Initialize it.
22310 (syms_of_callproc): Declare it.
22311 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22312 TERM under which a process runs is never related to the TERM in which
22315 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22317 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22318 * s/darwin.h: ... do it here.
22320 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22322 * lisp.h (set_initial_environment): Rename from set_global_environment.
22324 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22325 removed by mistake on the multi-tty branch.
22327 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22328 (Fmodify_frame_parameters): Return a value.
22330 * image.c (png_load): Comment-out var only used in commented-out code.
22332 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22333 before passing it to mark_object.
22335 * xfaces.c (internal_resolve_face_name): Return a value.
22336 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22338 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22339 (x_icon): Comment-out var only used in commented-out code.
22341 2007-08-29 Romain Francoise <romain@orebokech.com>
22343 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22344 QUIT hasn't been provided.
22346 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22348 * callproc.c (child_setup, getenv_internal): Use the
22349 display-environment-variable and term-environment-variable frame params.
22350 (set_initial_environment): Initialise Vprocess_environment.
22352 * config.in: Disable multi-keyboard support on a mac.
22354 * frame.c (Qterm_environment_variable)
22355 (Qdisplay_environment_variable): New variables.
22356 (syms_of_frame): Intern and staticpro them.
22357 (Fmake_terminal_frame): Disable output method test.
22359 * frame.h: Declare them here.
22361 * macfns.c (x_set_mouse_color): Get rif from the frame.
22362 (x_set_tool_bar_lines): Don't use updating_frame.
22363 (mac_window): Add 2 new parameters for consistency with other systems.
22364 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22365 frame parameters following what is done in X11 and w32. Don't use
22366 FRAME_MAC_DISPLAY_INFO.
22367 (Fx_open_connection, start_hourglass): Remove window-system check.
22368 (x_create_tip_frame): Get the keyboard from the terminal.
22370 * macmenu.c: Reorder includes.
22371 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22373 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22374 terminal parameter.
22375 (x_clear_frame): Add a frame parameter.
22376 (note_mouse_movement): Get rif from the frame.
22377 (mac_term_init): Initialize the terminal.
22378 (mac_initialize): Make static and move terminal initialization ...
22379 (mac_create_terminal): ... to this new function.
22381 * macterm.h (struct mac_display_info): Add terminal.
22382 (mac_initialize): Delete declaration.
22384 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22386 * sysdep.c: Comment out text after #endif.
22388 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22389 is defined. Better initialize ttys in windows. Use terminal
22390 specific mouse_position_hook.
22392 * termhooks.h (union display_info): Add mac_display_info.
22394 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22395 Set the default minibuffer frame, window_system and the rest of the
22396 frame parameters following what is done in X11.
22398 * w32term.c (w32_initialize): Make static.
22400 * xselect.c (x_handle_selection_clear): Only access
22401 terminal->kboard when MULTI_KBOARD is defined.
22403 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22404 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22406 2007-08-29 Jason Rumney <jasonr@gnu.org>
22408 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22409 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22411 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22412 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22414 * keyboard.c (restore_kboard_configuration): Only define when
22415 MULTI_KBOARD defined.
22417 * makefile.w32-in: Update dependancies from Makefile.in.
22418 (OBJ1): Add terminal.$(O)
22420 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22421 Don't define function body.
22422 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22424 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22426 * w32.c (request_sigio, unrequest_sigio): Remove.
22428 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22429 (w32con_clear_frame, w32con_clear_end_of_line)
22430 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22431 (w32con_delete_glyphs, w32con_set_terminal_window)
22432 (scroll_line, w32_sys_ring_bell): Add frame arg.
22433 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22435 (PICK_FRAME): Remove.
22436 (w32con_write_glyphs): Use frame specific terminal coding.
22437 (one_and_only_w32cons): New global variable.
22438 (initialize_w32_display): Use it for storing hooks.
22439 (create_w32cons_output): New function.
22441 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22444 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22446 (x_set_tool_bar_lines): Don't use updating_frame.
22447 (Fx_create_frame): Set terminal and ref count.
22448 (Fx_open_connection): Remove window-system check.
22450 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22452 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22453 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22454 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22456 (x_delete_terminal, w32_create_terminal): New functions.
22457 (w32_term_init): Create a terminal.
22458 (w32_initialize): Move terminal specific initialization to
22459 w32_create_terminal.
22461 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22462 (w32_clear_rect, w32_clear_area): Use background from frame.
22463 (w32_display_info): Add terminal.
22464 (w32_sys_ring_bell, x_delete_display): Declare here.
22466 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22468 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22470 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22472 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22473 Fix get_named_tty calls for the controlling tty.
22475 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22477 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
22479 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22481 * term.c (tty_insert_glyphs): Add missing first parameter.
22483 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22485 * buffer.c (Fbuffer_list, Fbury_buffer):
22486 Take frame->buried_buffer_list into account.
22488 * cm.c (current_tty): New variable, for cmputc().
22490 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22491 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22492 (cmgoto): Add tty parameter. Pass it on to calccost().
22493 Use emacs_tputs() instead of tputs().
22495 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22497 (current_tty): New variable, for cmputc().
22498 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22500 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22501 (internal_condition_case, internal_condition_case_1)
22502 (internal_condition_case_2): Don't abort when x_catching_errors.
22504 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22505 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22506 prevent crashes caused by bogus longjmps in read_char.
22508 * keymap.h (Fset_keymap_parent): Add EXFUN.
22510 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22511 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22512 Remove redundant definition.
22514 * macfns.c (x_set_mouse_color, x_make_gc):
22515 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22517 * w32term.c (x_free_frame_resources):
22518 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22519 (w32_initialize): Use the accessor macros for terminal characteristics.
22521 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22522 Use the accessor macros for terminal characteristics.
22523 * msdos.c (internal_terminal_init): Use the accessor macros for
22524 terminal characteristics.
22525 (ScreenVisualBell, internal_terminal_init):
22526 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22528 * termopts.h (no_redraw_on_reenter): Declare.
22530 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22531 (mark_terminals, mark_ttys): Declare.
22532 (Fgarbage_collect): Call them.
22533 (mark_object): Mark buried_buffer_list.
22535 * prefix-args.c: Include stdlib.h for exit.
22537 * syssignal.h: Add comment.
22539 * indent.c: Include stdio.h.
22541 * window.h (Vinitial_window_system): Declare.
22542 (Vwindow_system): Delete declaration.
22544 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22546 * image.c (lookup_image): Don't initialize `c' until the xasserts
22549 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22550 FRAME_FOREGROUND_PIXEL.
22552 * print.c (print_preprocess): Don't lose print_depth levels while
22555 * widget.c (update_from_various_frame_slots):
22556 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22558 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22560 (window_internal_height): Remove bogus make_number call.
22561 (init_window_once): Call make_terminal_frame with two zero parameters.
22563 * fileio.c (Fread_file_name): Update comment.
22565 * callint.c (Fcall_interactively):
22566 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22567 Make sure it is correctly unwound.
22569 * xsmfns.c (x_session_close): New function.
22571 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22572 Delete declarations.
22574 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22575 (x_output): Remove background_pixel and foreground_pixel fields.
22576 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22577 (x_delete_device, x_session_close): Declare.
22579 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22580 (read_filtered_event): Call `read_char' with a local
22581 `wrong_kboard_jmpbuf'.
22583 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22584 Don't call single_kboard_state. Use FRAME_RIF.
22586 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22589 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22590 (Fframe_with_environment, Fset_input_meta_mode)
22591 (Fset_quit_char): EXFUN.
22592 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22593 (init_sys_modes, reset_sys_modes): Update prototypes.
22594 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22596 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22597 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22598 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22599 Delete declarations.
22600 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22601 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22604 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22605 already does that during init_display(). Call syms_of_keymap
22606 before syms_of_keyboard. Call `syms_of_terminal'.
22607 Call set_initial_environment, not set_process_environment.
22608 (shut_down_emacs): Call reset_all_sys_modes() instead of
22611 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22612 (internal_resolve_face_name, resolve_face_name_error): New functions.
22613 (resolve_face_name): Protect against loops and errors thrown by Fget.
22614 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22615 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22617 * scroll.c: Replace CURTTY() with local variables throughout the
22618 file (where applicable).
22619 (calculate_scrolling, calculate_direct_scrolling)
22620 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22623 * keymap.c (Vfunction_key_map): Remove.
22624 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22625 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22626 (Vkey_translation_map): Remove.
22627 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22628 (Fdescribe_buffer_bindings)
22629 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22630 Update for terminal-local key-translation-map.
22632 * Makefile.in (callproc.o): Update dependencies.
22633 (lisp, shortlisp): Add termdev.elc.
22634 (obj): Add terminal.o.
22635 (terminal.o): Add dependencies.
22636 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22637 (data.o, fns.o): Add termhooks.h dependency.
22638 (SOME_MACHINE_LISP): Add dnd.elc.
22639 (minibuf.o): Fix typo.
22640 Update dependencies.
22642 * data.c (do_symval_forwarding, store_symval_forwarding)
22643 (find_symbol_value): Use the selected frame's keyboard, not
22646 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22649 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22651 (syms_of_xmenu): Update defsubr.
22652 (mouse_position_for_popup, Fx_popup_menu)
22653 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22654 (set_frame_menubar, free_frame_menubar)
22655 (create_and_show_popup_menu, xmenu_show)
22656 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22659 * xselect.c (x_own_selection): Abort if not an X frame.
22660 (some_frame_on_display): Check if it is an X frame.
22661 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22663 * coding.c: Include frame.h and termhooks.h.
22664 (terminal_coding, keyboard_coding): Delete.
22665 (Fset_terminal_coding_system_internal)
22666 (Fset_keyboard_coding_system_internal)
22667 (Fkeyboard_coding_system)
22668 (Fterminal_coding_system): Add a terminal parameter.
22669 Get terminal_coding from the terminal.
22670 (init_coding_once): Don't call setup_coding_system here.
22672 * dispextern.h (set_scroll_region, turn_off_insert)
22673 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22674 (tty_clear_end_of_line, tty_setup_colors)
22675 (delete_tty, updating_frame)
22676 (produce_special_glyphs, produce_glyphs, write_glyphs)
22677 (insert_glyphs): Remove.
22678 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22679 (tty_turn_off_highlight, get_tty_size): Add declaration.
22680 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22682 * frame.h (enum output_method): Add output_initial.
22683 (struct x_output): Delete.
22684 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22685 Access foreground_pixel and background_pixel directly from the frame.
22686 (tty_display): Delete.
22687 (struct frame): Add buried_buffer_list, foreground_pixel,
22688 background_pixel and terminal. Delete kboard.
22689 (union output_data): Add tty.
22690 (FRAME_KBOARD): Get the kboard from the terminal.
22691 (FRAME_INITIAL_P): New macro.
22692 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22693 (Qterm_environment_variable, Qdisplay_environment_variable)
22694 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22697 * termchar.h (tty_output, tty_display_info): New structures.
22698 (tty_list): Declare.
22699 (FRAME_TTY, CURTTY): New macros.
22700 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22701 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22702 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22703 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22705 * callproc.c: Include frame.h and termhooks.h, for terminal
22707 (add_env): New function.
22708 (child_setup): Use it.
22709 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22710 (getenv_internal): Fix get_terminal_param call.
22711 (Fgetenv_internal, egetenv): Update doc.
22712 (syms_of_callproc): Initialize Vprocess_environment to nil.
22713 Register and initialize them. Remove obsolete defvars. Update doc
22715 (child_setup): Handle Vlocal_environment_variables.
22716 (getenv_internal): Add terminal parameter.
22717 Handle Vlocal_environment_variables.
22718 (Fgetenv_internal): Add terminal parameter.
22719 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22720 environment in a frame (not terminal) parameter. Update doc strings.
22721 (set_initial_environment): Rename from set_global_environment.
22722 Store Emacs environment in initial frame parameter.
22724 * xdisp.c (redisplay_internal): Update references to
22725 `previous_terminal_frame'.
22726 (display_mode_line, Fformat_mode_line): Replace calls to
22727 `push_frame_kboard' with `push_kboard'.
22728 (get_glyph_string_clip_rects): Add extra parentheses and
22729 braces to prevent compiler warnings.
22730 (calc_pixel_width_or_height): Add xassert to check that the
22731 frame is alive. Don't call `lookup_image' on a termcap frame.
22732 (message2_nolog, message3_nolog, redisplay_internal)
22733 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22734 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22735 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22736 (Fx_display_pixel_width, Fx_display_pixel_height)
22737 (Fx_display_planes, Fx_display_color_cells)
22738 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22739 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22740 (Fx_display_backing_store, Fx_display_visual_class)
22741 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22742 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22744 * xfns.c (x_set_foreground_color x_set_background_color)
22745 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22746 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22747 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22748 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22749 terminal that is being deleted.
22750 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22751 frame parameter, and make sure it overrides any user-supplied setting.
22752 (Fx_close_connection, Fx_synchronize): Unify argument names with
22753 the rest of the DEFUNs.
22755 * dispnew.c (Fsend_string_to_terminal): Update call to
22756 `get_tty_terminal'.
22757 (Fredraw_frame, Fsend_string_to_terminal)
22758 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22759 FRAME_TERMCAP_P and FRAME_TTY.
22760 (window_change_signal): Don't believe width/height values that are
22762 (Vinitial_window_system): Rename from Vwindow_system.
22763 (termscript, Wcm, rif): Delete.
22765 * termhooks.h (struct terminal): New struct containing the
22766 previously global text display hooks and new members NAME,
22767 DELETED and PARAM_ALIST.
22768 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22769 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22770 (FRAME_RIF): New macros.
22771 (get_terminal_param, get_device): New declarations.
22772 (termscript): Delete declaration.
22774 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22775 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22776 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22777 FRAME_FOREGROUND_PIXEL.
22778 (x_fully_uncatch_errors): Disable definition.
22779 (x_scroll_bar_expose): Fix reference to foreground pixel.
22780 (XTread_socket): Disable loop on all X displays.
22781 (x_delete_terminal): Don't set terminal->deleted and let
22782 delete_terminal delete the frames on the terminal.
22783 (x_delete_display): Doc update to reflect changes in
22785 (x_display_info) <terminal>: Move member earlier in the struct.
22786 (deleting_tty): Remove old variable.
22787 (Fsuspend_tty): Call clear_tty_hooks.
22788 (Fresume_tty, init_tty): Call set_tty_hooks.
22789 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22790 errors on X frames.
22791 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22792 (handle_one_xevent): Initialize `f' to NULL.
22793 (x_delete_terminal, x_create_terminal): New functions.
22794 (XTset_terminal_modes, XTreset_terminal_modes)
22795 (XTread_socket, x_connection_closed, x_term_init)
22796 (x_term_init, x_delete_display): Add terminal parameter.
22797 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22800 * frame.c: Include termchar.h.
22801 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22802 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22803 (Qdisplay_environment_variable): New vars.
22804 (Fframep): Deal with output_initial.
22805 (Fframe-live-p): Doc fix.
22806 (Fwindow-system): New function.
22807 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22808 (make_terminal_frame): Don't create frames on a terminal that is
22809 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22810 (store_frame_param): Check for found_for_frame before calling XFRAME.
22811 (Fmake_terminal_frame): Handle NULL tty names correctly.
22812 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22813 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22814 frames to refer to a deleted frame in their 'environment parameter.
22815 (Fframe_with_environment): New function.
22816 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22817 (get_future_frame_param): New function.
22818 (Fmake_terminal_frame): Use it.
22819 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22821 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22822 * sysdep.c (reset_sys_modes): Update for renames.
22824 * keyboard.c (tty_read_avail_input): New function.
22825 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22826 (syms_of_keyboard): Defsubr them.
22827 (Fset_input_meta_mode, Fset_quit_char): New functions.
22828 (Fset_input_mode): Split to above functions.
22829 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22830 parameter. Use it in call to `read_char'.
22831 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22832 Set wrong_kboard_jmpbuf correctly in recursive calls.
22833 Use current_kboard to access Vkeyboard_translate_table.
22834 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22835 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22836 Update longjmp invocations. Remember the original current_kboard,
22837 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22838 changes it. Comment out unnecessary calls to
22839 `record_single_kboard_state' and `any_kboard_state'.
22840 Update recursive calls.
22841 (wrong_kboard_jmpbuf): Remove global variable.
22842 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22843 Handle deleted interrupted_kboards correctly; that is a legal
22844 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22845 and read_char calls. Abort if interrupted_kboard died in read_char.
22846 (any_kboard_state, single_kboard_state)
22847 (push_frame_kboard): Remove function.
22848 (pop_kboard): Switch out of single_kboard mode if the kboard has
22849 been deleted. Remove unused variable. Help debugging by not
22850 changing current_kboard unnecessarily. Set current_kboard to the
22851 kboard of the selected frame when the stored kboard object has
22852 been deleted before pop_kboard.
22853 (temporarily_switch_to_single_kboard): Change first parameter to a
22854 frame pointer. Throw an error when caller wants to change kboards
22855 while in single_kboard mode. Don't push_kboard if we weren't in
22856 single kboard state. Don't pop_kboard if we popped into any
22858 (restore_kboard_configuration): Abort if pop_kboard changed the
22859 kboard in single_kboard mode. Call pop_kboard only after setting
22860 up single_kboard mode.
22861 (Frecursive_edit): Switch to single_kboard mode only in nested
22863 (cmd_error, command_loop, command_loop_1, timer_check):
22864 Comment out unnecessary call to `any_kboard_state' and
22865 `record_single_kboard_state'.
22866 (delete_kboard): Exit single_kboard mode if we have just deleted
22867 that kboard. Use FRAME_KBOARD.
22868 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22869 `fatal_error_signal'.
22870 (record_single_kboard_state): Don't push_kboard if we weren't in
22871 single kboard state. Don't pop_kboard if we popped into any
22873 (push_frame_kboard): Rename to push_kboard.
22874 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22875 (read_avail_input): Read input from all terminals.
22876 (mark_kboards): Also mark Vkeyboard_translate_table.
22877 (kbd_buffer_store_event_hold): Simplify condition.
22878 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22879 (Vkeyboard_translate_table): Move to struct kboard.
22880 (init_kboard): Initialize Vkeyboard_translate_table.
22881 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22882 Vkeyboard_translate_table. Update doc strings. Update docs of
22883 local-function-key-map and function-key-map.
22885 * terminal.c: New file.
22887 * term.c: Include errno.h.
22888 (Vring_bell_function, device_list, initial_device)
22889 (next_device_id, ring_bell, update_begin, update_end)
22890 (set_terminal_window, cursor_to, raw_cursor_to)
22891 (clear_to_end, clear_frame, clear_end_of_line)
22892 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22893 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22894 (syms_of_term): Move their initialization to terminal.c.
22895 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22896 (Ftty_display_color_cells)
22897 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22898 (clear_tty_hooks, set_tty_hooks)
22899 (init_tty, maybe_fatal): New functions.
22900 (Ftty_type): Return nil if terminal is not on a tty instead of
22901 throwing an error. Doc update.
22902 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22903 Doc update. Initialize new subrs and variables.
22904 (delete_tty): Use terminal->deleted.
22905 (tty_set_terminal_modes): Rename from set_terminal_modes.
22906 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22907 (set_scroll_region): Rename to `tty_set_scroll_region'.
22908 (turn_on_insert): Rename to `tty_turn_on_insert'.
22909 (turn_off_insert): Rename to `tty_turn_off_insert'.
22910 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22911 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22912 (toggle_highligh): Rename to `tty_toggle_highlight'.
22913 (background_highlight): Rename to `tty_background_highlight'.
22914 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22915 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22916 (tty_set_scroll_region, tty_background_highlight)
22917 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22918 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22919 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22920 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22921 Add static modifier.
22922 (tty_reset_terminal_modes, tty_set_terminal_window)
22923 (tty_set_scroll_region, tty_background_highlight)
22924 (tty_highlight_if_desired, tty_cursor_to)
22925 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22926 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22927 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22930 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22932 * keyboard.c: Qrtl is new.
22933 (parse_tool_bar_item): Handle :rtl keyword.
22934 (syms_of_keyboard): Intern :rtl keyword.
22936 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22938 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22939 so no Lisp code is executed.
22940 (file_for_image, find_rtl_image): New functions.
22941 (xg_get_image_for_pixmap): Use file_for_image.
22942 (update_frame_tool_bar): If direction is RTL, use RTL image if
22943 defined. Use Gtk stock images if defined.
22945 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22947 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22948 for nonexistent or zero-width glyph in composition glyph.
22950 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22952 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22954 * xdisp.c (Finvisible_p): New function.
22955 (syms_of_xdisp): defsubr it.
22957 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
22959 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22962 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22964 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22966 2007-08-24 Martin Rudalics <rudalics@gmx.at>
22968 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22969 whether decoding has modified buffer contents.
22971 2007-08-24 Jason Rumney <jasonr@gnu.org>
22973 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22974 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22975 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22976 (init_svg_functions) [HAVE_NTGUI]: New function.
22977 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22978 (svg_load_image): Use them.
22979 (svg_load_image) [HAVE_NTGUI]: Implement background.
22981 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22983 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22984 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22985 (LIBX): Remove @RSVG_LIBS@.
22986 (LIBES): Add $(RSVG_LIBS).
22988 * image.c (svg_load_image): Blend with specified background if exists.
22989 Use IMAGE_BACKGROUND. Add Mac OS Support.
22991 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22992 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22994 [MAC_OSX] (socket_callback): Do nothing.
22995 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22997 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22999 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23001 2007-08-22 Glenn Morris <rgm@gnu.org>
23003 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23005 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23007 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23009 * image.c: Add support for SVG images. Some additional comments
23010 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23011 (svg_image_p): New function to test for SVG image.
23012 (svg_load): New function to load SVG image.
23013 (svg_load_image): New function, helper for svg_load.
23014 (Qsvg): New Lisp_object.
23015 (svg_keyword_index): New enum.
23016 (svg_format): New static `image_keyword' struct.
23017 (svg_type): New static `image_type' struct.
23018 (librsvg/rsvg.h): Include it.
23020 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23022 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23024 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23026 * lread.c (Qold_style_backquotes): New var.
23027 (syms_of_lread): Init and staticpro it.
23028 (load_warn_old_style_backquotes): New fun.
23029 (Fload): Use them to warn about old style backquotes.
23030 (end_of_file_error, Fload): Remove unused vars.
23032 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23034 * lread.c (Vold_style_backquotes): New var.
23035 (syms_of_lread): Init and export it to Elisp.
23036 (read1): Set it when we find an old-style (back)quote.
23038 2007-08-22 Jason Rumney <jasonr@gnu.org>
23040 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23042 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23044 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23046 2007-08-19 Richard Stallman <rms@gnu.org>
23048 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23050 2007-08-19 Andreas Schwab <schwab@suse.de>
23052 * alloc.c (pure): Round PURESIZE up.
23054 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23056 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23059 2007-08-16 Richard Stallman <rms@gnu.org>
23061 * eval.c (Fcommandp): Add parens to clarify.
23063 * minibuf.c (Fall_completions): Use enum for type of table.
23065 * emacs.c (USAGE2): Improve text.
23067 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23069 * term.c (tty_default_color_capabilities): Declare static
23070 variables in file scope, to avoid HPUX compiler problem.
23072 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23074 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23075 to gtk_toolbar_insert.
23077 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23079 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23081 * insdel.c (reset_var_on_error): New fun.
23082 (signal_before_change, signal_after_change):
23083 Use it to reset (after|before)-change-functions to nil in case of error.
23084 Bind inhibit-modification-hooks to t.
23085 Don't bind (after|before)-change-functions to nil while they run.
23087 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23089 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23090 filling pixmap with stippled background.
23092 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23094 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23095 Don't use invisible frame as parent window for repositioning.
23097 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23099 * print.c (new_backquote_output): Rename from old_backquote_output.
23100 (print): Inverse its logic (according to its name) so as to match the
23101 behavior of new_backquote_flag in lread.c.
23103 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23105 * gmalloc.c (posix_memalign): New function.
23107 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23108 ActivateControl/DeactivateControl here.
23109 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23110 frame-notice-user-settings is non-nil.
23111 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23112 for kEventParamFMFontStyle.
23113 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23114 mac_pass_command_to_system and mac_pass_control_to_system here.
23115 (XTread_socket): Call ActivateControl/DeactivateControl here.
23116 (XTread_socket) [TARGET_API_MAC_CARBON]:
23117 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23118 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23119 for window repositioning.
23121 2007-08-08 Glenn Morris <rgm@gnu.org>
23123 * Replace `iff' in doc-strings and comments.
23125 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
23127 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23129 2007-08-07 Martin Rudalics <rudalics@gmx.at>
23131 * fileio.c (Finsert_file_contents): Run format-decode and
23132 after_insert_file_functions on entire buffer when REPLACE is
23133 non-nil and inhibit modification_hooks and point_motion_hooks.
23134 For consistency, run after_insert_file_functions iff something
23135 got inserted. Move signal_after_change and update_compositions
23136 after code running after_insert_file_functions. Make sure that
23137 undo_list doesn't record intermediate steps of the decoding process.
23139 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23142 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23143 Call malloc_enable_thread on interactive startup.
23145 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23146 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23147 [USE_PTHREAD]: Conditionalize with it.
23148 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23149 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23152 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
23154 * xdisp.c (redisplay_window): When restoring original buffer
23155 position, make sure it is still valid.
23157 * image.c (png_load): Ignore png-supplied background color.
23159 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23161 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23162 Use kCFAbsoluteTimeIntervalSince1970.
23164 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23166 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23167 event loop should be quit.
23168 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23169 Quit dialog event loop if quit_dialog_event_loop is set.
23171 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23172 (Selection): New typedef. Use instead of ScrapRef.
23173 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23174 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23175 (mac_clear_selection): Rename from clear_scrap.
23176 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23177 scrap_has_target_type. All uses changed.
23178 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23179 (mac_selection_has_target_p): New functions.
23180 (mac_put_selection_value): Rename from put_scrap_string.
23181 (mac_get_selection_value): Rename from get_scrap_string.
23182 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23183 (put_scrap_private_timestamp, scrap_has_target_type)
23184 (get_scrap_private_timestamp): Remove functions.
23185 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23186 (x_own_selection, x_get_local_selection):
23187 Use mac_valid_selection_value_p.
23188 (x_own_selection): Don't use put_scrap_private_timestamp.
23189 Record OWNERSHIP-INFO into Vselection_alist instead.
23190 (x_get_local_selection): Don't check type if request is local.
23191 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23192 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23194 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23196 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23197 add comment explaining why.
23199 2007-08-03 Richard Stallman <rms@gnu.org>
23201 * fileio.c (Fvisited_file_modtime): Use make_time.
23203 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23205 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23208 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23210 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23212 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23214 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23216 2007-07-30 Richard Stallman <rms@gnu.org>
23218 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23220 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23222 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23224 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
23226 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23227 remote default-directory.
23229 * buffer.c (mode-line-format): Update doc string.
23231 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23233 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23235 (x_scroll_bar_create): Set bar->fringe_extended_p.
23236 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23237 on frame edge. Check fringe background extension. Don't clear
23238 extended fringe background area.
23240 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23241 (w32_fill_area): Enclose multiple statements with do ... while (0).
23243 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23244 Extend fringe background to scroll bar gap.
23245 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23246 Set bar->fringe_extended_p.
23247 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23248 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23249 background extension. Don't clear extended fringe background area.
23251 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23252 New member fringe_extended_p.
23254 2007-07-25 Glenn Morris <rgm@gnu.org>
23256 * Relicense all FSF files to GPLv3 or later.
23258 * COPYING: Switch to GPLv3.
23260 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23262 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23264 * data.c (Finteractive_form): Check for the presence of an
23265 `interactive-form' symbol property more thoroughly.
23267 * data.c (Finteractive_form): Use an `interactive-form' property if
23268 present, analogous to the function-documentation property.
23270 2007-07-24 Jason Rumney <jasonr@gnu.org>
23272 * w32fns.c (x_real_positions): Get real position from OS instead of
23275 2007-07-23 Jason Rumney <jasonr@gnu.org>
23277 * filelock.c (current_lock_owner): Allow for @ sign in username.
23279 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
23281 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23282 remote default-directory.
23284 * buffer.c (mode-line-format): Describe above case in doc string.
23286 2007-07-20 Eli Zaretskii <eliz@gnu.org>
23288 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23289 Define if not defined.
23291 2007-07-18 Jason Rumney <jasonr@gnu.org>
23293 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23295 2007-07-18 Richard Stallman <rms@gnu.org>
23297 * data.c (Fsetq_default): Doc fix.
23299 * eval.c (Fsetq): Doc fix.
23301 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
23303 * coding.c (Ffind_operation_coding_system):
23304 * eval.c (For, Fand): Doc fixes.
23305 Reported by Johan Bockgård.
23307 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23309 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23311 * xterm.h: Declare x_ewmh_activate_frame.
23313 * xterm.c (x_ewmh_activate_frame): New function.
23314 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23316 2007-07-17 Martin Rudalics <rudalics@gmx.at>
23318 * window.c (Fdisplay_buffer): If largest or LRU window is the
23319 only window, split it even if it is not eligible for splitting.
23320 This restores the original behavior broken by the 2007-07-15
23323 2007-07-17 Glenn Morris <rgm@gnu.org>
23325 * abbrev.c (abbrev_check_chars): New function.
23326 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23327 Call abbrev_check_chars to check abbrev characters are word
23328 constituents. Doc fix.
23330 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23332 * process.c (Fstart_process, Fmake_network_process)
23333 (read_process_output): Fix up last changes.
23335 2007-07-16 Eli Zaretskii <eliz@gnu.org>
23337 * makefile.w32-in (clean): Don't delete *~.
23339 2007-07-16 Andreas Schwab <schwab@suse.de>
23341 * window.c (Fdisplay_buffer): Use NILP.
23342 (Fset_window_scroll_bars): Likewise.
23344 2007-07-15 Martin Rudalics <rudalics@gmx.at>
23346 * window.c (window_min_size_2): New function.
23347 (window_min_size_1, size_window, Fdisplay_buffer)
23348 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23349 windows without mode- or header-lines when window-min-height is
23351 (size_window): Reset nodelete_p after testing it, following an
23352 earlier note by Kim F. Storm.
23353 (display_buffer): Do not set split_height_threshold to twice the
23354 value of window_min_height to avoid changing the value of a
23355 customizable variable. Rather explicitly check whether the
23356 height of the window that shall be splitted is at least as large
23357 as split_height_threshold.
23358 (Fwindow_full_width_p): New defun.
23359 (syms_of_window): Defsubr it.
23361 * window.h: Add EXFUN for Fwindow_full_width_p.
23363 2007-07-14 Jason Rumney <jasonr@gnu.org>
23365 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23367 2007-07-14 Richard Stallman <rms@gnu.org>
23369 * eval.c (maybe_call_debugger): New function.
23370 (find_handler_clause): Use maybe_call_debugger.
23371 Call it when the handler says `debug'.
23372 Eliminate DEBUGGER_VALUE_PTR.
23373 (Fsignal): Eliminate debugger_value.
23374 (Qdebug): New variable.
23375 (syms_of_eval): Initialize it.
23377 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
23380 * keyboard.c (Ftrack_mouse):
23381 * print.c (Fwith_output_to_temp_buffer):
23382 * window.c (Fsave_window_excursion): Doc fix.
23384 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23386 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23388 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23390 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23391 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23392 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23393 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23394 Remove unused encoding_carryover.
23395 * process.c: Adjust all functions accordingly.
23397 2007-07-12 Richard Stallman <rms@gnu.org>
23399 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23401 2007-07-11 Jason Rumney <jasonr@gnu.org>
23403 * makefile.w32-in (LIBS): Include OLE32.
23405 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23406 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23408 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23410 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23411 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23412 from a Lisp_Object into a bare pointer.
23413 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23414 Adjust the code correspondingly.
23416 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23418 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23419 (term_show_mouse_face): Remove unused var `j'.
23420 (handle_one_term_event): Remove unused vars `i' and `j'.
23421 Don't cast return value of ttyname since it's not necessary.
23423 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23425 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23426 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23428 * fns.c (map_char_table): Use an array of int for `indices' rather than
23429 an array of Lisp_Objects (which are only ever integers anyway).
23430 (Fmap_char_table): Update caller.
23431 * lisp.h: Update prototype.
23432 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23433 * fontset.c (Ffontset_info):
23434 * casetab.c (set_case_table): Update callers.
23436 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23438 * keymap.c (struct accessible_keymaps_data)
23439 (struct where_is_internal_data): New structures.
23440 (accessible_keymaps_1, where_is_internal_1): Use them to change
23441 interface to adhere to the one used by map_keymap.
23442 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23443 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23445 * keymap.h (map_keymap_function_t): More informative prototype.
23447 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23449 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23450 (looking_at_1): Don't change search_regs and last_thing_searched
23451 if `inhibit-changing-match-data' is non-nil.
23452 (string_match_1, search_buffer, set_search_regs): Likewise.
23453 (syms_of_search): Add Lisp level definition for
23454 `inhibit-changing-match-data' and set it to nil.
23455 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23456 start and end of the match, instead of using values in search_regs.
23458 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23460 * minibuf.c (Fcompleting_read): New value `confirm-only'
23461 for `require-match'.
23463 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23465 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23466 part of the 2007-06-27 change to syms_of_fileio.
23468 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23470 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23471 Check WINDOWP before using XWINDOW. Consolidate return statements.
23473 2007-06-27 Richard Stallman <rms@gnu.org>
23475 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23477 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
23479 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23481 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23483 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23484 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23485 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23486 (_free_internal, memalign): Use them.
23487 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23488 Initialize to PTHREAD_MUTEX_INITIALIZER.
23489 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23490 (morecore_nolock): Rename from morecore. All uses changed.
23491 Use only nolock versions of internal allocation functions.
23492 (_malloc_internal_nolock, _realloc_internal_nolock)
23493 (_free_internal_nolock): New functions created from
23494 _malloc_internal, _realloc_internal, and _free_internal.
23495 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23496 Copy hook value to automatic variable before its use.
23497 (memalign): Copy hook value to automatic variable before its use.
23499 2007-06-26 Kenichi Handa <handa@m17n.org>
23501 * coding.c (Ffind_operation_coding_system): Docstring improved.
23502 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23504 2007-06-25 David Kastrup <dak@gnu.org>
23506 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23507 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23508 cater for additional parameter.
23510 * keymap.h: Adjust number of parameters to `current-active-maps'.
23512 * doc.c (Fsubstitute_command_keys): Adjust call of
23513 `current-active-maps'.
23515 2007-06-25 David Kastrup <dak@gnu.org>
23517 * callint.c (Fcall_interactively): Make the parsing of interactive
23518 specs somewhat more readable.
23520 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23522 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23523 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23524 if extended background has already been filled.
23526 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23528 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23529 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23531 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23532 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23533 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23534 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23535 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23536 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23537 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23538 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23539 Run timers during dialog popup.
23540 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23542 2007-06-21 Jason Rumney <jasonr@gnu.org>
23544 * image.c (convert_mono_to_color_image): Swap fore and background.
23546 2007-06-20 Jason Rumney <jasonr@gnu.org>
23548 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23549 (w32_free_bdf_font): Unmap memory not handle.
23551 2007-06-20 Sam Steingold <sds@gnu.org>
23553 * gmalloc.c (__morecore): Fix the declaration to comply with the
23556 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
23558 * w32term.c (w32_delete_display): Remove leftover declaration.
23559 (w32_define_cursor, w32_initialize): Make static.
23561 * w32.c (_wsa_errlist): Fix typo in error message.
23562 (init_environment): Ignore any environment variable from the
23563 registry having a null value.
23565 2007-06-20 Glenn Morris <rgm@gnu.org>
23567 * Makefile.in (LIBGIF): Default to -lgif.
23569 2007-06-17 Jason Rumney <jasonr@gnu.org>
23571 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23574 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
23576 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23577 Fix typo in docstring.
23579 2007-06-16 Eli Zaretskii <eliz@gnu.org>
23581 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23582 and their keybindings.
23584 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
23586 * composite.c (update_compositions): Fix last fix.
23588 2007-06-14 Jason Rumney <jasonr@gnu.org>
23590 * w32.c (get_process_times_fn): New function pointer.
23591 (globals_of_w32): Intialize it if present in kernel32.dll.
23592 (w32_get_internal_run_time): New function.
23594 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23596 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23598 * composite.c (update_compositions): Check the validness of
23601 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23603 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23604 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23606 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23607 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23609 * macgui.h (USE_MAC_TOOLBAR): New define.
23611 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23612 Return immediately unless popup is activated.
23614 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23615 background to scroll bar gap.
23616 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23617 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23618 scroll bars on frame edge. Check fringe background extension.
23619 Don't clear extended fringe background area.
23620 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23621 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23622 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23623 [USE_MAC_TOOLBAR]: New macros.
23624 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23625 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23626 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23627 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23628 [USE_MAC_TOOLBAR]: New functions.
23629 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23630 manually if previous repositioning has failed.
23631 (mac_handle_keyboard_event): Use precomputed event kind.
23632 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23633 as tool bar item click. Handle mouse movement over tool bar items.
23635 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23636 toolbar_win_gravity.
23637 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23638 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23641 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23642 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23644 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
23646 * image.c (search_image_cache): Remove unused variable.
23648 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
23650 * xfns.c, xmenu.c: Link to xaw3d if available.
23652 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23654 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23655 frame_foreground and frame_background.
23657 * image.c (lookup_image): Save frame foreground and background colors.
23658 (search_image_cache): Check if saved and current frame colors match.
23660 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23662 * regex.c (regex_compile): Remove the `regnum' counter.
23663 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23665 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23667 * term.c: Include intervals.h to declare Fget_text_property.
23669 2007-06-10 Jason Rumney <jasonr@gnu.org>
23671 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23673 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
23675 * callint.c (Fcall_interactively):
23676 * editfns.c (Fdelete_and_extract_region):
23677 * fileio.c (Fread_file_name):
23678 * fns.c (Fmapconcat):
23679 * keyboard.c (cmd_error_internal):
23680 * keymap.c (Fkey_description):
23682 * minibuf.c (read_minibuf):
23683 * search.c (wordify):
23684 * sunfns.c (sel_read):
23685 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23686 * xfns.c (x_default_scroll_bar_color_parameter):
23687 * xmenu.c (menu_help_callback):
23688 * xselect.c (Fx_get_atom_name):
23689 * xterm.c (x_term_init): Use empty_unibyte_string.
23691 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23693 * alloc.c (init_strings): Initialize canonical empty strings.
23694 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23695 canonical empty string when the requested size is 0.
23697 * emacs.c (empty_unibyte_string): Rename from empty_string.
23698 (empty_multibyte_string): New canonical empty string.
23699 (syms_of_emacs): Don't initialize empty_string.
23701 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23702 string, if appropriate.
23703 (empty_unibyte_string, empty_multibyte_string): New externs.
23704 (empty_string): Remove extern.
23706 * lread.c (syms_of_lread): Use empty_unibyte_string.
23708 2007-06-07 Jason Rumney <jasonr@gnu.org>
23710 * s/ms-w32.h: Don't define HAVE_TZNAME.
23712 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23714 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23716 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23718 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23719 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23721 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23722 Don't call next handler.
23723 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23724 Remove argument. Install handler to application.
23725 (set_frame_menubar): Don't change deep_p.
23726 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23727 FRAME_OUTER_TO_INNER_DIFF_Y.
23728 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23729 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23730 [HAVE_DIALOGS]: New macros.
23731 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23733 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23735 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23736 init_service_handler. All callers changed. Return OSStatus value.
23738 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23739 All callers changed so as not to call SetPortWindowPort.
23740 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23741 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23742 mac_draw_string_common.
23743 (mac_draw_image_string_qd): Likewise.
23744 (mac_draw_string_common): Use them. Add INLINE.
23745 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23746 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23748 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23749 and FRAME_OUTER_TO_INNER_DIFF_Y.
23750 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23751 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23752 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23753 repositioning window to mac_handle_window_event.
23754 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23755 saving window location to mac_handle_window_event
23756 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23757 (install_menu_target_item_handler): Remove argument in extern.
23758 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23759 Also accept command events.
23760 (do_keystroke): New function created from XTread_socket.
23761 (init_command_handler): Remove functions.
23762 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23763 and save window location by kEventWindowShowing and kEventWindowHiding
23764 handlers here. Don't call next handler for window state change and
23766 (mac_handle_application_event, mac_handle_keyboard_event)
23767 [TARGET_API_MAC_CARBON]: New functions.
23768 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23769 kEventWindowShowing and kEventWindowHiding events. Move installation
23770 of mouse, font, text input and menu target item handlers to
23771 install_application_handler.
23772 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23773 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23775 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23777 (XTread_socket) [TARGET_API_MAC_CARBON]:
23778 Consolidate SendEventToEventTarget calls.
23779 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23780 Move application activation handler to mac_handle_application_event.
23781 Move keyboard handler to mac_handle_keyboard_event.
23782 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23783 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23784 init_command_handler. Call install_application_handler.
23786 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23787 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23789 2007-06-07 Glenn Morris <rgm@gnu.org>
23791 * emacs.c (main): Use `emacs-copyright' in --version output.
23793 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
23795 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23797 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23799 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23801 * macgui.h: Replace WindowPtr with WindowRef.
23803 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23804 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23805 Replace ControlHandle with ControlRef.
23806 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23808 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23809 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23810 Replace ControlHandle with ControlRef.
23811 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23812 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23814 * macterm.h (struct scroll_bar): Rename member control_handle_low
23815 and control_handle_high to control_ref_low and control_ref_high.
23817 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23818 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23819 respectively. All uses changed.
23820 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23821 (install_window_handler, remove_window_handler): Replace WindowPtr
23822 with WindowRef in externs.
23824 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
23826 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23828 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
23830 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23832 * frame.c (Fmouse_position, Fmouse_pixel_position):
23833 Condition on HAVE_GPM too.
23835 * term.c (term_mouse_highlight): Remove unused variables.
23836 (Fterm_open_connection): Set gpm_zerobased to 1.
23837 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23838 Use zero based co-ordinates.
23839 (handle_one_term_event): Report a drag as mouse movement too.
23841 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23843 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
23845 * image.c (search_image_cache): New function. Require background
23846 color match if background color is unspecified in the image spec.
23847 (uncache_image, lookup_image): Use it.
23849 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
23851 * window.c (Fshrink_window): Reflow docstring.
23853 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
23855 * Version 22.1 released.
23857 2007-06-01 Richard Stallman <rms@gnu.org>
23859 * xfns.c (x_encode_text): Add GCPRO.
23861 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23863 * xfns.c (x_set_name_internal): Save encoded name before
23864 x_encode_text in case string data is relocated.
23866 2007-05-31 Richard Stallman <rms@gnu.org>
23868 * buffer.c (syms_of_buffer): Doc fix.
23870 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
23872 * sysdep.c (init_sys_modes): Add rather than replace with
23875 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23878 * termhooks.h (term_mouse_moveto): New extern.
23880 * term.c (mouse_face_window): Rename...
23881 (Qmouse_face_window): ...to this.
23882 (term_show_mouse_face, term_clear_mouse_face)
23883 (term_mouse_highlight): Use Qmouse_face_window.
23884 (term_mouse_moveto): New function.
23885 (term_mouse_position): Make it work.
23886 (syms_of_term): Uncomment assignment to mouse_position_hook.
23887 Staticpro Qmouse_face_window.
23889 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23891 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23892 around current_column call.
23894 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23896 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23897 * xdisp.c (next_element_from_buffer):
23898 * window.c (delete_window):
23899 * term.c (term_mouse_highlight):
23900 * msdos.c (getdefdir):
23901 * macterm.c (mac_create_bitmap_from_bitmap_data)
23902 (init_font_name_table):
23904 * data.c (Fmake_local_variable):
23905 * ccl.c (ccl_driver): Likewise.
23907 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23909 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23910 Call mac_wakeup_from_rne on window size change.
23912 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
23914 * image.c (uncache_image): Fix typo.
23916 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23918 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23920 2007-05-22 Richard Stallman <rms@gnu.org>
23922 * xterm.c (x_connection_closed): Remove NO_RETURN.
23924 2007-05-22 Martin Rudalics <rudalics@gmx.at>
23926 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23928 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
23930 * image.c (uncache_image): New function.
23931 (Fimage_refresh): New function.
23933 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23935 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23937 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23939 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23940 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23942 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23944 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23945 conditional on [HAVE_GPM_H].
23947 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23949 * syntax.c (skip_chars): Update syntax-table only after we checked that
23950 the new location is valid.
23952 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23954 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23955 mac_get_window_bounds.
23957 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23959 * Makefile.in (LIBGPM): Allow it to be set from configure.
23960 If set then link Emacs with it.
23962 * config.in: Regenerate.
23964 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23967 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23969 (handle_one_term_event, term_gpm): New externs.
23971 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23972 and allow it to be interrupted by SIGIO.
23974 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23975 (wait_reading_process_output): Wait on gpm_fd too.
23976 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23977 (add_gpm_wait_descriptor_called_flag): New variable.
23978 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23980 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23981 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23982 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23983 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23984 (make_lispy_event): Add case GPM_CLICK_EVENT.
23985 (read_avail_input): Handle mouse input.
23987 * term.c (write_glyphs_with_face): New function.
23988 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23989 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23990 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23991 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23992 (last_mouse_x, last_mouse_y): New variables.
23993 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23994 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23995 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23996 (Fterm_close_connection): New functions.
23997 (term_init): Initialise mouse_face_window.
23999 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
24001 * xdisp.c (redisplay_window): If first window line is a
24002 continuation line, recompute the new window start instead of
24005 2007-05-18 Glenn Morris <rgm@gnu.org>
24007 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24008 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24010 2007-05-17 Glenn Morris <rgm@gnu.org>
24012 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24014 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24016 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24017 dead key repeat and up events.
24019 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
24021 * image.c (pbm_load): Check image size for monochrome pbm.
24023 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
24025 * xterm.c (XTread_socket): Revert last change.
24027 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
24029 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24031 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24033 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24035 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24038 2007-05-07 Andreas Schwab <schwab@suse.de>
24040 * keymap.c (Flookup_key): Fix typo in last change.
24042 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24044 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24045 mapping for unibyte strings.
24047 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24049 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24050 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24052 2007-04-29 Richard Stallman <rms@gnu.org>
24054 * insdel.c (replace_range): For undo, record insertion first.
24056 2007-04-29 Andreas Schwab <schwab@suse.de>
24058 * lisp.h (VECSIZE): Use OFFSETOF.
24060 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24062 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24065 2007-04-28 Richard Stallman <rms@gnu.org>
24067 * lread.c (read_escape): In a string, \s is always space.
24069 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24071 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24073 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24074 submenu for menu bar items.
24076 See ChangeLog.10 for earlier changes.
24078 ;; Local Variables:
24080 ;; add-log-time-zone-rule: t
24083 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
24085 This file is part of GNU Emacs.
24087 GNU Emacs is free software: you can redistribute it and/or modify
24088 it under the terms of the GNU General Public License as published by
24089 the Free Software Foundation, either version 3 of the License, or
24090 (at your option) any later version.
24092 GNU Emacs is distributed in the hope that it will be useful,
24093 but WITHOUT ANY WARRANTY; without even the implied warranty of
24094 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24095 GNU General Public License for more details.
24097 You should have received a copy of the GNU General Public License
24098 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24100 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40