1 2010-05-30 Eli Zaretskii <eliz@gnu.org>
3 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4 state is always cached (bug#6306).
6 2010-05-29 Eli Zaretskii <eliz@gnu.org>
8 Fix cursor motion in bidi-reordered continued lines.
9 * xdisp.c (try_cursor_movement): Backup to non-continuation line
10 only after finding point's row. Fix the logic. Rewrite the loop
11 over continuation lines in bidi-reordered buffers. Return
12 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
13 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
15 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
17 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
19 2010-05-28 Kenichi Handa <handa@m17n.org>
21 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
22 Don't sheck SPEC if it is nil.
23 (font_list_entities): Call font_delete_unmatched if
24 Vface_ignored_fonts is non-nil.
26 2010-05-28 Glenn Morris <rgm@gnu.org>
28 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
30 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
32 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
34 (internal_delete_file, Frename_file): Callers changed.
35 (delete_by_moving_to_trash): Doc fix.
36 (Fdelete_directory_internal): Don't move to trash.
38 * callproc.c (delete_temp_file):
39 * buffer.c (Fkill_buffer): Callers changed.
41 * lisp.h: Update prototype.
43 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
45 * xdisp.c (redisplay_window): After redisplay, check if point is
46 still valid before setting it (Bug#6177).
48 2010-05-27 Glenn Morris <rgm@gnu.org>
50 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
51 Convert comments to Makefile format.
53 * Makefile.in (bootstrap-clean): No more Makefile.c.
55 2010-05-26 Glenn Morris <rgm@gnu.org>
57 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
58 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
60 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
62 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
64 2010-05-26 Kenichi Handa <handa@m17n.org>
66 * composite.c (composition_compute_stop_pos): Fix condition for
69 2010-05-25 Glenn Morris <rgm@gnu.org>
71 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
72 Move before TEMACS_LDFLAGS.
73 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
74 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
76 * Makefile.in (NOT_C_CODE): No longer define.
77 (config.h): No longer include.
79 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
80 variables it may reference.
82 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
83 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
85 2010-05-25 Kenichi Handa <handa@m17n.org>
87 * dispextern.h (struct composition_it): New members rule_idx and
90 * xdisp.c (set_iterator_to_next): While scanning backward, assume
91 that the character positions of IT point the last character of the
92 current grapheme cluster.
93 (next_element_from_composition): Don't change character positions
95 (append_composite_glyph): Set glyph->charpos to
98 * composite.c (autocmp_chars): Change the first argument to RULE,
99 and try composition with RULE only.
100 (composition_compute_stop_pos): Record the index number of the
101 composition rule in CMP_IT->rule_idx.
102 (composition_reseat_it): Call autocmp_chars repeatedly until the
103 correct rule of the composition is found.
104 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
105 is at the last character of the current grapheme cluster when
106 CMP_IT->reversed_p is nonzero.
108 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
110 * editfns.c (Fbyte_to_string): New function.
112 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
114 * process.c (Fmake_network_process): Set :host to nil if it's not used.
115 Suggested by Masatake YAMATO <yamato@redhat.com>.
117 2010-05-23 Eli Zaretskii <eliz@gnu.org>
119 * dispextern.h (init_iterator): Sync prototype with changed definition.
121 2010-05-19 Eli Zaretskii <eliz@gnu.org>
123 Redesign and reimplement bidi-aware edge positions of glyph rows.
125 * dispextern.h (struct glyph_row): New members minpos and maxpos.
126 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
127 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
128 and maxpos members instead of start.pos and end.pos, respectively.
130 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
131 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
132 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
133 (try_window_reusing_current_matrix, try_window_id):
134 Use ROW->minpos rather than ROW->start.pos.
135 (init_from_display_pos, init_iterator): Use EMACS_INT for
136 character and byte positions.
137 (find_row_edges): Rename from find_row_end. Accept additional
138 arguments for minimum and maximum buffer positions seen by
139 display_line for this row. Don't use iterator to find the
140 position following the maximum one; instead, increment the
141 position found by display_line directly. Fix logic; eol_pos
142 should be tested before the rest. Handle the case of characters
143 delivered from display vector (bug#6036). Fix tests related to
144 it->method. Handle the truncated_on_right_p rows.
145 (RECORD_MAX_MIN_POS): New macro.
146 (display_line): Use it to record the minimum and maximum buffer
147 positions for glyphs in the row being assembled. Record the
148 position of the newline that terminates the line. If word wrap is
149 in effect, restore minimum and maximum positions seen up to the
150 wrap point, when iterator returns to it.
151 (try_window_reusing_current_matrix): Give up if in bidi-reordered
152 row and cursor not already at point. Restore original pre-bidi
153 code for unidirectional buffers.
155 * dispnew.c (increment_row_positions, check_matrix_invariants):
156 Increment and check row->start.pos and row->end.pos, in addition
157 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
159 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
160 Display truncated_on_left_p and truncated_on_right_p flags.
162 (pmtxrows): Display the ordinal number of each row. Don't display
163 rows beyond the last one.
165 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
166 it is not copied by bidi_copy_it.
168 2010-05-22 Eli Zaretskii <eliz@gnu.org>
170 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
173 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
175 * image.c (Fimage_flush): Rename from image-refresh.
177 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
179 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
182 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
183 (clear_image_cache): If the number of cached images is unusually
184 large, decrease the cache eviction delay (Bug#6230).
186 2010-05-21 Glenn Morris <rgm@gnu.org>
188 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
189 Move these rules to ns.mk.
192 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
194 * Makefile.in (CANNOT_DUMP): New, set by configure.
195 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
197 2010-05-20 Juri Linkov <juri@jurta.org>
199 * fileio.c (Fdelete_file): Change interative spec to use
200 `read-file-name' like in `find-file-read-args' where the default
201 value is `default-directory' instead of `buffer-file-name'.
202 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
204 2010-05-20 Kevin Ryde <user42@zip.com.au>
206 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
207 (Voverriding_terminal_local_map, Vsystem_key_alist)
208 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
210 2010-05-20 Glenn Morris <rgm@gnu.org>
212 * Makefile.in (DEPDIR): New constant.
213 (DEPFLAGS): Set with configure, not cpp.
214 (MKDEPDIR): New, set by configure.
215 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
216 (clean): Use $DEPDIR.
217 (deps_frag): Include from configure.
218 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
219 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
221 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
222 reallocation of the cache. (Bug#6210)
224 2010-05-19 Glenn Morris <rgm@gnu.org>
226 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
228 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
229 (GNULIB_VAR): Remove.
230 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
232 * m/ibms390x.h (LINKER):
233 * m/macppc.h (LINKER) [GNU_LINUX]:
234 * s/aix4-2.h (ORDINARY_LINK):
235 * s/cygwin.h (LINKER):
236 * s/darwin.h (ORDINARY_LINK):
237 * s/gnu.h (ORDINARY_LINK):
238 * s/netbsd.h (LINKER):
239 * s/usg5-4.h (ORDINARY_LINK):
242 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
244 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
246 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
247 prevent stack overflow if number of arguments is too large
250 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
252 * charset.c (load_charset_map_from_file): Don't call close after fclose.
254 2010-05-18 Glenn Morris <rgm@gnu.org>
256 * s/gnu-linux.h: Combine two conditionals.
258 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
261 * Makefile.in (RALLOC_OBJ): New, set by configure.
262 (rallocobj): Replace with the previous variable.
263 (otherobj): Use $RALLOC_OBJ.
265 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
266 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
268 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
269 (gmallocobj, vmlimitobj): Replace with previous two variables.
270 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
272 2010-05-17 Glenn Morris <rgm@gnu.org>
274 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
275 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
277 2010-05-16 Glenn Morris <rgm@gnu.org>
279 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
281 * Makefile.in (clean): Get rid of HAVE_NS conditional.
283 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
286 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
287 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
289 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
290 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
291 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
292 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
293 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
295 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
296 Remove ${STARTFLAGS}, nothing ever sets it.
298 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
300 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
302 2010-05-16 Glenn Morris <rgm@gnu.org>
304 * Makefile.in (LIBX_BASE): Always define.
306 * Makefile.in (LIBX_OTHER): Move out of cpp section.
308 * Makefile.in (LIBXT): Always define.
310 2010-05-15 Glenn Morris <rgm@gnu.org>
312 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
314 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
315 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
317 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
319 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
320 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
322 * emacs.c (main): Initialize initial-environment and
323 process-environment before generating from env, not after.
325 Handle --version reasonably in CANNOT_DUMP configuration.
326 * emacs.c (emacs_version, emacs_copyright): New string variables.
327 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
328 (syms_of_emacs): Defvar them, and initialize them from the C
330 (main): If initialization hasn't been done, print initial version
331 info from the C strings, instead of starting an interactive session.
333 2010-05-15 Eli Zaretskii <eliz@gnu.org>
335 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
336 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
337 (bidi_paragraph_init): Remove redundant assertion that we are at
338 the beginning of a line after call to bidi_find_paragraph_start.
340 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
341 (syms_of_xdisp): Defsubr it.
343 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
345 * Makefile.in: Fix MSDOS-related comments.
347 2010-05-15 Glenn Morris <rgm@gnu.org>
349 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
350 (really-lwlib, really-oldXMenu): Always define.
351 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
353 * Makefile.in: Simplify cpp conditional.
355 * Makefile.in (${ns_appdir}): Simplify using umask.
357 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
359 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
361 * eval.c (specbind): Remove left-over duplicate test.
362 Disallow let-binding frame-local vars. Add comment.
364 2010-05-14 Eli Zaretskii <eliz@gnu.org>
366 Make the cache of bidi iterator states dynamically allocated.
367 * bidi.c (bidi_cache_shrink): New function.
368 (bidi_init_it): Call it.
369 (bidi_cache_iterator_state): Enlarge the cache if needed.
371 * bidi.c (bidi_move_to_visually_next): Rename from
372 bidi_get_next_char_visually. All callers changed.
374 2010-05-14 Kenichi Handa <handa@m17n.org>
376 * dispextern.h (struct composition_it): New member reversed_p.
378 * composite.c (composition_compute_stop_pos): Search backward if
380 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
381 Set CMP_IT->reversed_p.
382 (composition_update_it): Pay attention to CMP_IT->reversed_p.
384 * xdisp.c (set_iterator_to_next):
385 Call composition_compute_stop_pos with negative ENDPOS if we are
386 scanning backward. Call composition_compute_stop_pos if scan
387 direction is changed.
388 (next_element_from_buffer): Call composition_compute_stop_pos with
389 negative ENDPOS if we are scanning backward.
390 (next_element_from_composition): Pay attention to
391 IT->cmp_it.reversed_p.
393 2010-05-14 Kenichi Handa <handa@m17n.org>
395 * font.c (font_range): Return the range for the font found at first.
397 2010-05-14 Glenn Morris <rgm@gnu.org>
399 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
401 * Makefile.in (mktime, X11, register): Move undefs to configure.
403 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
404 (MSDOS_X_OBJ): New variable.
405 (MSDOS_SUPPORT_REAL): New constant.
406 (MSDOS_SUPPORT): Set as a variable, not with cpp.
407 (obj): Use MSDOS_X_OBJ.
408 (lisp): Use MSDOS_SUPPORT as a variable.
410 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
411 (GPM_MOUSE_SUPPORT): Now it's a constant.
412 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
415 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
416 (ns_appresdir): Remove, unused.
418 * Makefile.in (SHELL): Move outside cpp section.
420 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
422 2010-05-13 Glenn Morris <rgm@gnu.org>
424 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
425 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
427 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
428 HAVE_WINDOW_SYSTEM must be too.
430 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
431 (lisp): Remove WINNT_SUPPORT.
433 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
434 Let configure set these variables (to empty) in this case as well.
436 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
437 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
439 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
440 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
441 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
442 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
443 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
444 the values output by configure.
445 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
447 2010-05-12 Glenn Morris <rgm@gnu.org>
449 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
450 (LINKER_WAS_SPECIFIED): Remove.
452 * Makefile.in (LIB_GCC): Set using configure, not cpp.
453 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
454 * m/arm.h (LIB_GCC) [GNU_LINUX]:
455 * s/cygwin.h (LIB_GCC):
456 * s/freebsd.h (LIB_GCC):
457 * s/gnu-linux.h (LIB_GCC):
458 * s/msdos.h (LIB_GCC):
459 * s/netbsd.h (LIB_GCC):
462 2010-05-11 Karel Klic <kklic@redhat.com>
464 * ftfont.c: Fix incorrect parentheses of #if condition for
465 definining M17N_FLT_USE_NEW_FEATURE.
467 2010-05-11 Glenn Morris <rgm@gnu.org>
469 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
470 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
472 2010-05-10 Eli Zaretskii <eliz@gnu.org>
474 * xdisp.c (init_iterator): Don't turn on bidi reordering in
476 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
478 2010-05-10 Glenn Morris <rgm@gnu.org>
480 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
481 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
482 (LIBES): Use LIBS_SYSTEM as a variable.
483 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
484 * s/aix4-2.h (LIBS_SYSTEM):
485 * s/freebsd.h (LIBS_SYSTEM):
486 * s/hpux10-20.h (LIBS_SYSTEM):
487 * s/sol2-6.h (LIBS_SYSTEM):
488 * s/unixware.h (LIBS_SYSTEM):
491 * s/aix4-2.h (MAIL_USE_LOCKF):
492 * s/bsd-common.h (MAIL_USE_FLOCK):
493 * s/darwin.h (MAIL_USE_FLOCK):
494 * s/gnu-linux.h (MAIL_USE_FLOCK):
495 * s/irix6-5.h (MAIL_USE_FLOCK):
496 * s/template.h (MAIL_USE_FLOCK):
499 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
501 * Version 23.2 released.
503 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
505 * composite.c (autocmp_chars): Save point as marker before calling
506 auto-composition-function (Bug#5984).
508 * lisp.h (restore_point_unwind): Add prototype.
510 * fileio.c (restore_point_unwind): Remove static attribute.
512 2010-05-08 Kenichi Handa <handa@m17n.org>
514 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
515 new feature of libotf and m17n-flt.
516 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
517 Call OTF_check_features even if no specific feature is given.
518 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
519 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
520 that OUT is NULL. Use OTF_drive_gsub_with_log and
521 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
523 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
524 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
525 Setup mflt_enable_new_feature and mflt_try_otf.
527 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
529 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
531 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
532 box and toolbar (Bug #6139).
533 (xg_create_tool_bar): Remove comment (Bug #6139).
534 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
535 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
537 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
539 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
542 2010-05-08 Eli Zaretskii <eliz@gnu.org>
544 * fringe.c (update_window_fringes): Set up truncation bitmaps for
547 2010-05-08 Glenn Morris <rgm@gnu.org>
549 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
551 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
552 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
553 (termcapobj): Replace with TERMCAP_OBJ.
554 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
555 (LIBES): Use LIBS_TERMCAP as a variable.
557 * s/freebsd.h (osreldate.h): No longer include, since this file
558 does not use __FreeBSD_version any more.
560 * s/aix4-2.h (TERMINFO):
561 * s/cygwin.h (TERMINFO):
562 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
563 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
564 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
565 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
566 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
567 * s/irix6-5.h (TERMINFO):
568 * s/netbsd.h (LIBS_TERMCAP):
569 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
570 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
571 * s/usg5-4.h (TERMINFO):
574 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
576 * eval.c (unbind_to): Don't unbind a local binding into the global
577 binding when the local binding disappeared. Inversely, don't unbind
578 a global binding into a newly created local binding.
579 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
580 can specify the frame to use, when applicable. Adjust callers.
582 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
583 Stefan Monnier <monnier@iro.umontreal.ca>
585 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
587 2010-05-07 Eli Zaretskii <eliz@gnu.org>
589 * w32fns.c: Include w32.h.
590 (Fw32_shell_execute): Decode the error message before passing it
591 to `error'. (Bug#6126)
593 * msdos.c (dos_set_window_size):
594 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
595 instead of `XSYMBOL (foo)->value'.
597 2010-05-07 Eli Zaretskii <eliz@gnu.org>
599 Fix the MS-DOS build, broken by autoconfiscation.
601 * Makefile.in: Don't use Make-style comments past the "start of
603 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
605 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
606 edited directly by msdos/sed1v2.inp).
608 2010-05-07 Glenn Morris <rgm@gnu.org>
610 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
611 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
612 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
613 move out of cpp section.
614 * s/freebsd.h (LD_SWITCH_SYSTEM):
615 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
616 * s/netbsd.h (LD_SWITCH_SYSTEM):
617 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
619 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
621 Define LIB_STANDARD and START_FILES using autoconf.
622 * s/usg5-4.h (LIB_STANDARD):
623 * s/netbsd.h (START_FILES):
624 * s/irix6-5.h (LIB_STANDARD):
625 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
626 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
627 * s/freebsd.h (START_FILES):
628 * s/darwin.h (START_FILES):
629 * s/cygwin.h (START_FILES):
630 * s/aix4-2.h (LIB_STANDARD):
631 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
632 * Makefile.in (STARTFILES): Rename to START_FILES, define using
635 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
637 Remove NEED_BSDTTY and NEED_UNISTD_H.
638 * s/hpux10-20.h (NEED_BSDTTY): Remove.
639 * s/aix4-2.h (NEED_UNISTD_H): Remove.
640 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
641 <sys/ptyio.h> and <unistd.h>.
643 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
645 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
646 * s/gnu.h (START_FILES): Remove empty definition.
648 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
650 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
652 2010-05-06 Glenn Morris <rgm@gnu.org>
654 * Makefile.in (CPP, LN_S): Remove unused variables.
656 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
658 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
660 2010-05-05 Lawrence Mitchell <wence@gmx.li>
662 * m/sparc.h: Fix typo in earlier change.
664 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
667 * eval.c (Fdefvaralias): Remove unintended nested if.
668 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
670 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
672 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
674 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
677 * s/bsd-common.h (BSD_PGRPS): Remove undef.
678 * s/gnu-linux.h (BSD_PGRPS): Remove.
679 * term.c (dissociate_if_controlling_tty):
680 * sysdep.c (narrow_foreground_group, widen_foreground_group)
681 (init_sys_modes, reset_sys_modes):
683 * callproc.c (Fcall_process, child_setup): Remove code depending
686 Remove POSIX_SIGNALS.
687 * s/usg5-4.h (POSIX_SIGNALS):
688 * s/netbsd.h (POSIX_SIGNALS):
689 * s/msdos.h (POSIX_SIGNALS):
690 * s/ms-w32.h (POSIX_SIGNALS):
691 * s/hpux11.h (POSIX_SIGNALS):
692 * s/gnu.h (POSIX_SIGNALS):
693 * s/gnu-linux.h (POSIX_SIGNALS):
694 * s/freebsd.h (POSIX_SIGNALS):
695 * s/darwin.h (POSIX_SIGNALS):
696 * s/cygwin.h (POSIX_SIGNALS):
697 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
699 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
700 * process.c (create_process):
702 * sysdep.c (wait_for_termination, init_signals):
703 * process.c (create_process):
704 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
705 remove all code that assumes the contrary.
707 2010-05-04 Glenn Morris <rgm@gnu.org>
709 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
711 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
712 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
713 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
714 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
715 LD_SWITCH_SYSTEM_tmp.
716 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
717 New variables, set by configure.
719 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
720 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
721 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
722 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
723 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
725 * s/aix4-2.h (C_SWITCH_SYSTEM):
726 * m/alpha.h (C_SWITCH_MACHINE):
727 Move to configure.in.
728 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
729 New variables, set by configure.
730 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
731 $c_switch_machine and $c_switch_system.
733 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
735 * s/hpux10-20.h (LIB_STANDARD): New definition.
736 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
737 on it, not used anymore.
739 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
741 * eval.c (internal_condition_case_n): Rename from
742 internal_condition_case_2.
743 (internal_condition_case_2): New function.
745 * xdisp.c (safe_call): Use internal_condition_case_n.
747 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
748 (internal_delete_file, Frename_file): Callers changed.
750 * buffer.c (Fkill_buffer):
751 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
753 * lisp.h: Update prototypes.
755 2010-05-03 Glenn Morris <rgm@gnu.org>
757 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
758 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
759 (LIBXT): Set with configure, not cpp.
761 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
763 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
765 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
766 The FreeBSD is not needed, the default works, Solaris version is
767 not needed, and the remaining case is not supported by configure.
769 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
771 * xsmfns.c (CHDIR_OPT): New define.
772 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
775 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
778 * emacs.c (USAGE1): Mention --chdir.
779 (main): Handle --chdir.
780 (standard_args): Add --chdir.
781 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
784 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
786 Remove LD_SWITCH_MACHINE.
787 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
788 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
791 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
792 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
795 * m/ibmrs6000.inp: Remove file, unused.
796 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
797 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
799 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
801 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
804 2010-05-01 Eli Zaretskii <eliz@gnu.org>
806 Emulate POSIX_SIGNALS on MS-Windows.
808 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
809 (SIG_SETMASK, SIG_UNBLOCK): Define.
811 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
812 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
813 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
815 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
818 Miscellaneous fixes of bidi display.
820 * xdisp.c (find_row_end): New function, refactored from display_line.
821 (display_line): Use it.
822 (extend_face_to_end_of_line): In almost-filled rows, extend only
823 if the row is R2L and not continued.
824 (display_line): Fix prepending of truncation glyphs to R2L rows.
825 Preserve overlay and string info in row->end.
826 (insert_left_trunc_glyphs): Support addition of left truncation
828 (set_cursor_from_row): Don't place cursor on the vertical border
829 glyph between adjacent windows. Fix a crash when a display string
830 is continued to the next line. Don't return zero if cursor was
831 found by `cursor' property of a display string.
832 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
833 test for that explicitly.
835 2010-05-01 Glenn Morris <rgm@gnu.org>
837 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
840 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
841 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
843 2010-05-01 Karel Klíč <kklic@redhat.com>
845 * fileio.c (Ffile_selinux_context): Context functions may return null.
847 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
849 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
851 2010-04-30 Glenn Morris <rgm@gnu.org>
853 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
854 (OTHER_OBJ): Define as a separate variable, for clarity.
856 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
858 * xsettings.c: include limits.h and update file comment.
860 2010-04-30 Glenn Morris <rgm@gnu.org>
862 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
863 Set with configure, not cpp.
864 (LIBW): Remove, replace with $TOOLKIT_LIBW.
866 * Makefile.in (mallocobj): Remove.
867 (otherobj): Simplify using @OTHER_OBJ@.
869 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
870 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
871 Don't bother making nsgui.h dependency platform-specific.
873 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
875 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
877 * process.c (read_process_output, exec_sentinel): Don't burp if the
878 sentinel/filter kills the current buffer (bug#6060).
880 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
881 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
882 Remove unused var `args'.
883 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
884 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
885 * doc.c (store_function_docstring): Use XSETCAR.
887 2010-04-28 Glenn Morris <rgm@gnu.org>
889 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
890 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
892 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
894 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
895 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
897 * Makefile.in (FONT_OBJ): New, set by configure.
898 (FONT_DRIVERS): Use $FONT_OBJ.
900 * Makefile.in (LIBXMU): Set with configure, not cpp.
901 * s/aix4-2.h (LIBXMU):
902 * s/hpux10-20.h (LIBXMU):
903 Remove definition, now set in configure.
905 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
907 * m/amdx86-64.h [i386]: Move this test to configure.in.
909 2010-04-27 Glenn Morris <rgm@gnu.org>
911 * Makefile.in (LIBXTR6): Set with configure, not cpp.
912 * s/unixware.h (NEED_LIBW): Remove definition.
914 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
915 (TOOLKIT_LIBW): New, set by configure.
916 (@X_TOOLKIT_TYPE@): No longer define it.
918 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
919 (MOTIF_LIBW): Set with configure, not cpp.
920 * s/aix4-2.h (LIB_MOTIF):
921 * s/gnu-linux.h (LIB_MOTIF):
922 * s/unixware.h (LIB_MOTIF): Move to configure.in.
924 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
927 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
928 (obj): Use autoconf for unexec instead of cpp.
929 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
930 definitions and undefs. Inline definitions in the only user.
931 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
933 2010-04-27 Glenn Morris <rgm@gnu.org>
935 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
936 since the defaults (set by the system file) are fine in most cases.
937 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
938 * m/ibms390x.h (START_FILES, LIB_STANDARD):
939 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
940 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
941 Remove definitions, since they are set correctly in s/gnu-linux.h.
942 * s/freebsd.h (START_FILES, LIB_STANDARD):
943 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
944 * s/hpux10-20.h (START_FILES):
945 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
946 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
948 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
949 (MOTIF_LIBW): Use $LIBXP.
950 (otherobj): Use $WIDGET_OBJ.
952 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
954 * Makefile.in (LIBS_MACHINE): Remove, unused.
956 Use autoconf instead of cpp for LIB_MATH.
957 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
958 * s/cygwin.h (LIB_MATH): Likewise.
959 * Makefile.in (LIB_MATH): Do not define with cpp.
960 (LIBES): Use autoconf for LIB_MATH.
962 2010-04-26 Kenichi Handa <handa@m17n.org>
964 * composite.c (Ffind_composition_internal): Fix the return value
965 for an automatic composition.
967 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
969 Remove all NO_ARG_ARRAY uses.
970 * fns.c (concat2, concat3, nconc2):
971 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
972 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
973 * m/xtensa.h (NO_ARG_ARRAY):
974 * m/template.h (NO_ARG_ARRAY):
975 * m/sparc.h (NO_ARG_ARRAY):
976 * m/sh3.h (NO_ARG_ARRAY):
977 * m/mips.h (NO_ARG_ARRAY):
978 * m/macppc.h (NO_ARG_ARRAY):
979 * m/iris4d.h (NO_ARG_ARRAY):
980 * m/intel386.h (NO_ARG_ARRAY):
981 * m/ibms390x.h (NO_ARG_ARRAY):
982 * m/ibms390.h (NO_ARG_ARRAY):
983 * m/ibmrs6000.h (NO_ARG_ARRAY):
984 * m/ia64.h (NO_ARG_ARRAY):
985 * m/hp800.h (NO_ARG_ARRAY):
986 * m/arm.h (NO_ARG_ARRAY):
987 * m/amdx86-64.h (NO_ARG_ARRAY):
988 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
990 2010-04-25 Eli Zaretskii <eliz@gnu.org>
992 * xdisp.c (display_line): Don't assume 2nd call to
993 get_next_display_element cannot return zero. (Bug#6030)
994 (iterate_out_of_display_property): New function, body from pop_it.
997 2010-04-24 Glenn Morris <rgm@gnu.org>
999 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1000 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1001 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1002 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1004 2010-04-24 Eli Zaretskii <eliz@gnu.org>
1006 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1007 use `get_next_display_element' and `set_iterator_to_next' to
1008 advance to the next character, when looking for the character that
1009 begins the next row.
1011 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
1012 definition of "struct Lisp_Symbol".
1014 2010-04-24 Glenn Morris <rgm@gnu.org>
1016 * Makefile.in (CRT_DIR): New variable, set by configure.
1017 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1018 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1020 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1022 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1024 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1026 Remove redundant flags.
1027 * s/freebsd.h (C_SWITCH_SYSTEM):
1028 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1029 * s/netbsd.h (C_SWITCH_SYSTEM):
1030 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1033 Simplify m/intel386.h.
1034 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1036 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1037 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1038 the only user: s/unixware.h.
1039 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1041 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1042 moved here from m/intel386.h.
1044 * m/mips.h: Remove #if 0 code.
1046 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1048 Fix display of composed characters from L2R scripts in bidi buffers.
1049 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1050 After advancing IT past the composition, resync the bidi iterator
1051 with IT's position. (Bug#5977)
1053 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1055 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1056 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1058 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1060 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1062 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1064 Support `display' text properties and overlay strings in bidi buffers.
1065 * xdisp.c (pop_it): When the stack is popped after displaying
1066 from a string, bidi-iterate to exit from the text portion covered
1067 by the `display' property or overlay. (Bug#5988, bug#5920)
1069 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1071 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1072 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1074 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1075 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1077 Simplify STARTFILES definition.
1078 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1079 relying on Makefile.in to define it.
1080 * s/cygwin.h (START_FILES): Likewise.
1081 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1083 Clean up Solaris code.
1084 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1085 (LIB_MOTIF): Remove, configure takes care of this.
1086 (NOT_USING_MOTIF): Remove, unused.
1087 * xrdb.c: Remove #if 0-ed #include.
1088 (SYSV): Remove conditional for old SysV.
1089 * sysdep.c (closedir): Remove conditional code for Solaris,
1090 Solaris has closedir.
1092 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1094 * xsettings.c (read_and_apply_settings): Check if current_font is
1095 NULL before strcmp (Bug#6001).
1097 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1099 Clean up HP-UX files.
1100 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1101 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1102 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1103 * s/hpux10-20.h: ... to the only user, here.
1105 2010-04-21 Eli Zaretskii <eliz@gnu.org>
1107 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1108 use buffer-local values of paragraph-start and paragraph-separate.
1109 <paragraph_start_re, paragraph_separate_re>: Rename from
1110 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1113 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1115 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1116 current_tool_bar_style are new.
1117 (store_config_changed_event): Rename from store_font_changed_event.
1118 (XSETTINGS_TOOL_BAR_STYLE): New define.
1119 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1120 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1122 (something_changedCB): store_font_changed_event is now
1123 store_config_changed_event
1124 (parse_settings): Rename from parse_xft_settings. Read
1125 non-xft xsettings outside #ifdef HAVE_XFT.
1126 (read_settings): Renamed from read_xft_settings.
1127 (apply_xft_settings): Take current settings as parameter. Do not
1128 call read_(xft)_settings.
1129 (read_and_apply_settings): New function.
1130 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1131 read_and_apply_settings if there are settings to be read.
1132 (init_xsettings): Renamed from init_xfd_settings.
1133 Call read_and_apply_settings unconditionally.
1134 (xsettings_initialize): Call init_xsettings.
1135 (Ftool_bar_get_system_style): New function.
1136 (syms_of_xsettings): Define Qmonospace_font_name and
1137 Qtool_bar_style. Initialize current_tool_bar_style to nil.
1138 defsubr Stool_bar_get_system_style. Fprovide on
1140 Move misplaced HAVE_GCONF
1142 * xsettings.h (Ftool_bar_get_system_style): Declare.
1144 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1145 Qtext, Qboth, Qboth_horiz are new.
1146 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1147 Vtool_bar_style, tool_bar_max_label_size.
1149 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1151 * keyboard.c: QClabel is new.
1152 (parse_tool_bar_item): Take out QClabel from tool bar items.
1153 Try to construct a label if ther is no QClabel.
1154 (syms_of_keyboard): Intern :label as QClabel.
1156 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1157 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1160 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1163 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1164 (xg_make_tool_item, xg_show_toolbar_item): New function.
1165 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1166 Call xg_make_tool_item to make a tool bar item.
1167 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1169 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1170 into account for toolbars.
1172 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1174 * data.c (make_blv): Declarations before code (Bug#5993).
1176 2010-04-21 Glenn Morris <rgm@gnu.org>
1178 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1179 Define using autoconf, not cpp.
1180 (LIBXSM): New variable, set by autoconf.
1181 (LIBXT): Use $LIBXSM.
1183 2010-04-21 Dan Nicolaescu <local_user@dannlt>
1185 Remove NOMULTIPLEJOBS, unused.
1186 * s/template.h (NOMULTIPLEJOBS):
1187 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1189 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1190 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1191 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1192 detects -znocombreloc and passes it to the linker
1193 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1195 2010-04-21 Glenn Morris <rgm@gnu.org>
1197 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1199 2010-04-21 Karel Klíč <kklic@redhat.com>
1201 * Makefile.in (LIBSELINUX_LIBS): New.
1202 (LIBES): Add $LIBSELINUX_LIBS.
1203 * eval.c, lisp.h (call7): New function.
1204 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1205 (Ffile_selinux_context, Fset_file_selinux_context):
1207 (Fcopy_file): New parameter preserve-selinux-context.
1208 (Frename_file): Preserve selinux context when renaming by copy-file.
1210 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
1211 Eli Zaretskii <eliz@gnu.org>
1213 Don't depend on cm.c or termcap.c on Windows, use stubs.
1214 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1215 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1216 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1217 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1218 (sys_tputs, sys_tgetstr): New stubs.
1219 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1220 (tputs, tgetstr): New; define to sys_*.
1222 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
1224 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1226 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1228 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1229 Just signal a warning rather than an error when inside a let.
1230 (Fmake_variable_frame_local): Add the same test.
1232 * font.c (syms_of_font): Make the style table vars read-only.
1234 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1235 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1237 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1239 2010-04-20 Eli Zaretskii <eliz@gnu.org>
1241 Fix R2L paragraph display on TTY.
1243 * xdisp.c (unproduce_glyphs): New function.
1244 (display_line): Use it when produced glyphs are discarded from R2L
1246 (append_composite_glyph): In R2L rows, prepend the glyph rather
1249 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1250 rather than append it. Set up the resolved_level and bidi_type
1251 attributes of the appended glyph.
1252 (produce_special_glyphs): Mirror the backslash continuation
1253 character in R2L lines.
1255 Implement display of R2L paragraphs in GUI sessions.
1257 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1258 append_stretch_glyph.
1259 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1260 off-by-one error in computing x at end of text in the row.
1261 (append_stretch_glyph): In reversed row, prepend the glyph rather
1262 than append it. Set resolved_level and bidi_type of the glyph.
1263 (extend_face_to_end_of_line): If the row is reversed, prepend a
1264 stretch glyph whose width is such that the rightmost glyph will be
1265 drawn at the right margin of the window. Fix off-by-one error on
1266 TTY frames in testing whether a line needs face extension. Fix
1267 face extension at ZV. If this is the last glyph row, use
1268 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1270 (set_cursor_from_row, display_line): Use
1271 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1272 row->continuation_lines_width.
1273 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1274 are at ZV. Fixes a crash when reseated to ZV by
1275 try_window_reusing_current_matrix.
1276 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1277 which happens with R2L glyph rows. Fixes a crash when inserting a
1278 character at end of an R2L line.
1279 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1280 treat them as having zero-width characters. Improve comments.
1281 Don't reverse pos_before and pos_after for reversed glyph rows.
1282 Set cursor.x to negative value when the cursor might be on the
1284 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1285 left fringe, not the right one.
1286 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1287 (erase_phys_cursor): For reversed cursor_row, support cursor on
1290 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1291 of continuation indicators on the fringes.
1292 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1295 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1296 draw cursor on the left fringe.
1298 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1299 cursor on the left fringe.
1301 * dispnew.c (update_text_area): Handle reversed desired rows when
1302 the cursor is on the left fringe.
1303 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1304 below, not by 0, for when the cursor is on the left fringe.
1306 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1308 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1309 widget is a scrollbar.
1311 2010-04-20 Kenichi Handa <handa@m17n.org>
1313 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1314 only when the arg CHARSET_LIST is nil.
1316 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1318 Make variable forwarding explicit rather the using special values.
1319 Basically, this makes the structure of buffer-local values and object
1320 forwarding explicit in the type of Lisp_Symbols rather than use
1321 special Lisp_Objects for that. This tends to lead to slightly more
1322 verbose code, but is more C-like, simpler, and makes it easier to make
1323 sure we handled all cases, among other things by letting the compiler
1325 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1326 Removing forwarding objects.
1327 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1328 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1329 explicit rather than hiding them inside Lisp_Object "values".
1330 (XFWDTYPE): New macro.
1331 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1332 (XBUFFER_LOCAL_VALUE): Remove.
1333 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1334 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1335 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1336 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1337 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1338 Remove the Lisp_Misc_* header.
1339 (struct Lisp_Buffer_Local_Value): Redefine.
1340 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1341 (struct Lisp_Misc_Any): Add filler to get the right size.
1342 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1344 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1345 (DEFVAR_KBOARD): Allocate a forwarding object.
1346 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1347 (let_shadows_global_binding_p): New function.
1348 (union Lisp_Val_Fwd): New type.
1349 (make_blv): New function.
1350 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1351 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1352 (swap_in_symval_forwarding, find_symbol_value, Fset)
1353 (let_shadows_buffer_binding_p, set_internal, default_value)
1354 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1355 (Fkill_local_variable, Fmake_variable_frame_local)
1356 (Flocal_variable_p, Flocal_variable_if_set_p)
1357 (Fvariable_binding_locus):
1358 * xdisp.c (select_frame_for_redisplay):
1359 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1360 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1361 * frame.c (store_frame_param):
1362 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1363 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1365 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1366 (clone_per_buffer_values): Only adjust markers into the current buffer.
1367 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1368 (Fbuffer_local_value, set_buffer_internal_1)
1369 (swap_out_buffer_local_variables):
1370 Adapt to the new symbol value structure.
1371 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1372 (defvar_per_buffer): Take a new arg for the fwd object.
1373 (buffer_lisp_local_variables): Return a proper alist (different fix
1375 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1376 (Fgarbage_collect): Don't handle buffer_defaults specially.
1377 (mark_object): Handle new symbol value structure rather than the old
1378 special Lisp_Misc_* objects.
1379 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1380 * term.c (set_tty_color_mode):
1381 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1382 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1383 a buffer_local_flags.
1384 * print.c (print_object): Get rid of impossible forwarding objects.
1386 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1388 * bidi.c (bidi_get_type, bidi_get_category)
1389 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
1390 (bidi_type_of_next_char, bidi_level_of_next_char):
1391 Declare static. Use `INLINE' rather than `inline'.
1393 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
1395 * dired.c (Ffile_attributes): Fix typo in docstring.
1397 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1399 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1400 NSInteger (Bug#5811).
1402 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1404 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1405 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1407 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1409 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1411 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
1413 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1414 terminal frames (Bug#5837).
1416 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1418 * .gdbinit (xsubchartable): New command.
1420 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1422 * xdisp.c (display_line): Don't write beyond the last glyph row in
1423 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
1424 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1426 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1428 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1430 * alloc.c (Fpurecopy): Hash-cons if requested.
1431 (syms_of_alloc): Update purify-flag docstring.
1433 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1435 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1436 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1438 2010-04-17 Eli Zaretskii <eliz@gnu.org>
1440 Fix a crash when an NSM character is inserted at BEGV.
1442 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1443 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1444 NEUTRAL_B or UNKNOWN_BT.
1446 2010-04-16 Eli Zaretskii <eliz@gnu.org>
1448 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1449 other rows with cursor unless they are different from this row and
1450 this row is part of a continued line. (Bug#5943)
1452 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1454 * s/freebsd.h: Restore osreldate.h include.
1455 Suggested by Naohiro Aota.
1457 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1459 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1461 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1463 * s/cygwin.h: Avoid linking against static libgcc.
1465 2010-04-15 Juri Linkov <juri@jurta.org>
1467 * window.c: Add Qscroll_command.
1468 Remove Vscroll_preserve_screen_position_commands.
1469 (window_scroll_pixel_based, window_scroll_line_based): Check the
1470 `scroll-command' property on the last command instead of searching
1471 the last command in Vscroll_preserve_screen_position_commands.
1472 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1473 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1474 (scroll-preserve-screen-position): Doc fix.
1475 (Vscroll_preserve_screen_position_commands): Remove variable.
1477 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1479 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1481 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1483 Reduce cpp use in Makefile.in.
1484 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1485 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1486 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1487 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1488 (CRT0_COMPILE): Remove, inline it in the only user.
1490 2010-04-14 Juri Linkov <juri@jurta.org>
1492 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1493 `scroll-up-command' and `M-v' from `scroll-down' to
1494 `scroll-down-command'.
1496 2010-04-14 Juri Linkov <juri@jurta.org>
1498 * window.c (Vscroll_preserve_screen_position_commands): New variable
1499 with the default value as the list of Qscroll_down and Qscroll_up.
1500 (window_scroll_pixel_based, window_scroll_line_based): Search the
1501 last command in the list Vscroll_preserve_screen_position_commands
1502 instead of comparing with Qscroll_up and Qscroll_down.
1504 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1506 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1507 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1510 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1513 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1515 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1517 Try to solve the problem of spurious EOF chars in long lines of text
1518 sent to interactive subprocesses.
1519 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1520 (system_process_attributes): Remove unused var `ttotal'.
1521 * process.c (send_process): Don't bother breaking long line with EOF
1522 chars when talking to ttys any more.
1523 (wait_reading_process_output): Output a warning when called in such
1524 a way that it could block without being interruptible.
1526 Try to detect file modification within the same second.
1527 * buffer.h (struct buffer): New field modtime_size.
1528 * buffer.c (reset_buffer): Initialize it.
1529 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1530 (Fverify_visited_file_modtime): Check it.
1531 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1532 (Fset_visited_file_modtime): Set (or clear) it.
1534 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1536 * process.c (status_notify): Remove unused var `ro'.
1538 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1540 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1541 more than one visual (Bug#5938).
1543 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1545 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1548 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1550 Remove C_SWITCH_SYSTEM_TEMACS.
1551 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1552 (malloc, realloc, free): Use emacs, not temacs for conditional
1555 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1556 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1558 Use autoconf, not cpp for some variables.
1559 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1560 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1561 (ALL_CFLAGS): Use them as make variables.
1562 (really-lwlib, really-oldXMenu): Do not pass them.
1564 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1566 * xmenu.c (apply_systemfont_to_dialog): New.
1567 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1569 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1571 * process.c (exec_sentinel): Preserve current-buffer.
1573 * process.c (read_process_output): Move the save-current-buffer to
1574 apply to both the filter and the non-filter branches.
1576 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1578 * s/msdos.h (UNEXEC): New definition.
1580 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1582 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1583 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1585 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1586 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1587 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1588 TRY_WINDOW_CHECK_MARGINS.
1590 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
1591 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1592 width only when it is for padding.
1594 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1596 * xfns.c (Fx_show_tip): Call try_window in a loop until
1597 fonts_changed_p is zero (Bug#2423).
1599 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1601 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1602 the end of TEXT_AREA. (Bug#5856)
1604 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1606 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1609 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1611 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1612 prev.orig_type, for resolving type of NSM. (Bug#5858)
1614 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1616 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1617 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1619 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
1620 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1622 (syms_of_xsettings): Initialize current_font.
1623 defsubr Sfont_get_system_normal_font.
1625 * xsettings.h (Ffont_get_system_normal_font,
1626 xsettings_get_system_normal_font): Declare.
1628 * xfns.c (extern xlwmenu_default_font): Remove.
1629 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1632 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1633 menu items in UTF-8.
1635 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1636 (apply_systemfont_to_menu): New function.
1637 (set_frame_menubar, create_and_show_popup_menu): Call
1638 apply_systemfont_to_menu.
1640 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1642 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1643 FRAME_LINE_TO_PIXEL_Y.
1645 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1648 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1650 Simplify code for HP machines.
1651 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1652 for GNU_LINUX, not needed.
1653 (UNEXEC, NEED_BSDTTY): Move definitions...
1654 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1656 * m/iris4d.h (UNEXEC): Move definition ...
1657 * s/irix6-5.h (UNEXEC): ... here.
1659 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1661 * xfns.c (set_machine_and_pid_properties): New function.
1662 (Fx_create_frame): Call set_machine_and_pid_properties.
1664 2010-04-03 Eli Zaretskii <eliz@gnu.org>
1666 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1667 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1668 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1670 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1671 in this function. (Bug#5703)
1673 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
1675 * nsterm.h: Fix last change.
1677 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1679 * m/intel386.h (NO_REMAP): Move definition ...
1680 * s/msdos.h (NO_REMAP): ... here.
1682 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1684 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1685 used on those platforms.
1687 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1689 Remove extern errno declarations.
1706 * buffer.c: Remove errno extern declarations.
1707 * s/netbsd.h (NEED_ERRNO): Remove.
1709 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1711 Remove all uses of LIBX11_SYSTEM.
1712 * Makefile.in (LIBX11_SYSTEM): Remove.
1713 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1716 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1718 Remove support for DJGPP v1.x (bug#5813).
1720 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
1722 * unexec.c (make_hdr, copy_text_and_data):
1723 * sysdep.c (wait_for_termination, sys_subshell):
1724 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
1725 (IT_set_terminal_modes, __write, _rename, gethostname)
1726 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1727 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1728 the value of __DJGPP__.
1729 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1732 * gmalloc.c (memalign):
1733 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1735 * dosfns.c (init_dosfns):
1736 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1738 2010-04-01 Eli Zaretskii <eliz@gnu.org>
1740 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1741 string with `cursor' property comes from an `after-string'
1744 2010-04-01 Glenn Morris <rgm@gnu.org>
1746 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1747 Define as Makefile variables.
1748 (LIBX): Use above variables rather than directly using autoconf.
1750 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1752 Clean up BSD_SYSTEM use.
1755 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1756 for including <sys/ioctl.h>.
1757 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1758 code is only used for MSDOS.
1760 2010-03-31 Juri Linkov <juri@jurta.org>
1762 * image.c: Add `Qextension_data'.
1763 (syms_of_image): Initialize and staticpro `Qextension_data'.
1764 (Fimage_metadata): Rename from `Fimage_extension_data'.
1765 (gif_load): Put GIF extension data to the property
1768 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
1770 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1771 terminal frames (Bug#5837).
1773 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1775 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1776 * nsterm.h: Fix prototype.
1778 2010-03-31 Eli Zaretskii <eliz@gnu.org>
1780 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1781 trailing whitespace in right-to-left rows.
1783 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1785 Get rid of the direct_output optimizations.
1786 * keyboard.c (nonundocount): Remove extern declaration.
1787 (command_loop_1): Remove brittle optimisation for cheap and
1789 * xdisp.c (redisplay_internal): Don't bother checking
1790 redisplay_performed_directly_p any more.
1791 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1793 * dispnew.c (redisplay_performed_directly_p)
1794 (direct_output_for_insert, direct_output_forward_char):
1795 * dispextern.h (redisplay_performed_directly_p)
1796 (direct_output_for_insert, direct_output_forward_char): Remove.
1797 * cmds.c (nonundocount): Make it static.
1799 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
1801 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1803 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
1805 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1806 invisible (Bug#5766).
1808 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
1810 * xdisp.c (x_consider_frame_title, update_window_cursor):
1811 Remove HAVE_NS conditionals.
1812 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
1814 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1815 filename for the title.
1816 (ns_set_doc_edited): Do nothing if the selected window is a
1819 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1822 * nsterm.m: Remove unneeded prototype.
1824 2010-03-31 Glenn Morris <rgm@gnu.org>
1826 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1827 in the DOC file. (Bug#5336)
1829 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
1831 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1833 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1835 * window.c (keys_of_window): Remove redundant/overridden bindings.
1837 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1839 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1840 Restore original behavior when the iterator is not bidi_p.
1842 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1844 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1846 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1848 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1849 are outside the range of cached character positions.
1851 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
1853 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1855 2010-03-30 Eli Zaretskii <eliz@gnu.org>
1857 Initial support for bidirectional editing.
1859 * Makefile.in (obj): Include bidi.o.
1860 (bidi.o): New target.
1862 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1863 ($(BLD)/bidi.$(O)): New target.
1867 * buffer.h (struct buffer): New members bidi_display_reordering
1868 and bidi_paragraph_direction.
1870 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1871 and bidi_paragraph_direction.
1872 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1873 and bidi-paragraph-direction.
1874 (Fbuffer_swap_text): Swap the values of
1875 bidi_display_reordering and bidi_paragraph_direction.
1877 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1878 (bidi_type_t, bidi_dir_t): New types.
1879 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1880 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1881 prev_stop, base_level_stop, and eol_pos.
1882 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1883 (IT_STACK_SIZE): Enlarge to 5.
1884 (struct glyph_row): New member reversed_p.
1885 <string_buffer_position>: Update prototype.
1886 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1887 glyph_row if bidi_it.paragraph_dir == R2L.
1888 (struct glyph): New members resolved_level and bidi_type.
1890 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1891 processing or buffer's direction is right-to-left.
1892 (prepare_desired_row): Preserve the reversed_p flag.
1893 (row_equal_p): Compare the reversed_p attributes as well.
1895 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1896 bidi_init_it and set it->paragraph_embedding from the current
1897 buffer's value of bidi_paragraph_direction.
1898 (reseat_1): Initialize bidi_it.first_elt.
1899 (set_iterator_to_next, next_element_from_buffer): Use the value of
1900 paragraph_embedding to determine the paragraph direction.
1901 (set_iterator_to_next): Under bidi reordering, call
1902 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1903 new_paragraph flag is set in the bidi iterator.
1904 (next_element_from_buffer): If bidi_it.first_elt is set,
1905 initialize paragraph direction and find the first character to
1906 display in the visual order. If reseated to a middle of a line,
1907 prime the bidi iterator starting at the line's beginning. Handle
1908 the situation where we overstepped stop_charpos due to
1909 non-linearity of the bidi iteration. Likewise for when we back up
1910 beyond the previous stop_charpos. When moving across stop_charpos,
1911 record it in prev_stop.
1912 (display_line): Set row->end and it->start for the next row to the
1913 next character in logical order. Always extend reversed_p rows to
1914 the end of line, even if they end at ZV. Copy the reversed_p flag
1915 to the next glyph row. Keep calling set_cursor_from_row for
1916 bidi-reordered rows even if we already have a possible candidate
1917 for cursor position. Set row_end after all the row's glyphs have
1918 been produced, by looping over the glyphs. Record the position
1919 after EOL in it->eol_pos, and use it to set end_pos of the last
1920 row produced for a continued line.
1921 <Qright_to_left, Qleft_to_right>: New variables.
1922 (syms_of_xdisp): Initialize and staticpro them.
1923 (string_buffer_position_lim): New function.
1924 (string_buffer_position): Most of code moved to
1925 string_buffer_position_lim. Last argument and return value are
1926 now EMACS_INT; all callers changed.
1927 (set_cursor_from_row): Rewritten to support bidirectional text and
1928 reversed glyph rows.
1929 (text_outside_line_unchanged_p, try_window_id): Disable
1930 optimizations if we are reordering bidirectional text and the
1931 paragraph direction can be affected by the change.
1932 (append_glyph, append_composite_glyph)
1933 (produce_image_glyph, append_stretch_glyph): Set the
1934 resolved_level and bidi_type members of each glyph.
1935 (append_glyph): If the glyph row is reversed, prepend the glyph
1936 rather than appending it.
1937 (handle_stop_backwards): New function.
1938 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1939 (reseat): call handle_stop_backwards to recompute prev_stop and
1940 base_level_stop for the new position.
1941 (handle_invisible_prop): Under bidi iteration, skip invisible text
1942 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1943 paragraph direction. Update IT->prev_stop after skipping
1945 (move_it_in_display_line_to): New variables prev_method
1946 and prev_pos. Compare for strict equality in
1947 BUFFER_POS_REACHED_P.
1948 (try_cursor_movement): Examine all the candidate rows that occlude
1949 point, to return the best match. If rows are bidi-reordered
1950 and point moved backwards, back up to the row that is not a
1951 continuation line, and start looking for a suitable row from
1954 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1955 rather than appending, if the glyph_row's reversed_p flag is set.
1956 Set the resolved_level and bidi_type members of each glyph.
1958 * .gdbinit (pbiditype): New command.
1959 (pgx): Use it to display bidi level and type of the glyph.
1960 (pitx): Display some bidi information about the iterator.
1961 (prowlims, pmtxrows): New commands.
1963 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1965 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1966 * s/usg5-4.h (LIBS_DEBUG):
1967 * s/irix6-5.h (C_DEBUG_SWITCH):
1968 * s/gnu-linux.h (LIBS_DEBUG):
1969 * s/darwin.h (LIBS_DEBUG):
1970 * s/bsd-common.h (LIBS_DEBUG):
1971 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1972 * m/iris4d.h (LIBS_DEBUG):
1973 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1975 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1976 (LIBS_DEBUG): Remove definition.
1978 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
1980 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1983 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1985 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1986 `connect' (Bug#5723).
1988 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
1990 * process.c (Fmake_network_process): Call `select' for interrupted
1991 `connect' rather than creating new socket (Bug#5173).
1993 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
1995 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1997 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1999 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2001 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2003 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2006 2010-03-24 Kenichi Handa <handa@m17n.org>
2008 * coding.c (decode_coding_ccl): Fix previous change for the
2010 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2011 case that the output buffer is fullfilled.
2012 (encode_coding): Setup ccl program here.
2014 2010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
2016 * editfns.c (Fformat): Account for string precision when computing
2017 field width (Bug#5710).
2019 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2021 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2023 Simplify LIBS_MACHINE definitions.
2024 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2025 * m/iris4d.h (LIBS_MACHINE): Likewise.
2026 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2027 * s/aix4-2.h (LIBS_SYSTEM): ... here.
2028 * s/netbsd.h: Remove commented out code.
2030 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2032 Remove dead code dealing with POSIX_SIGNALS.
2033 * atimer.c (set_alarm): Remove dead code, all USG systems define
2035 * data.c (arith_error): Likewise.
2036 * keyboard.c (input_available_signal, handle_user_signal)
2037 (interrupt_signal): Likewise.
2038 * process.c (sigchld_handler): Likewise.
2039 (create_process): Remove if 0 code. Remove HPUX conditional when
2040 !defined (POSIX_SIGNALS), it cannot be true.
2041 * syssignal.h: Remove USG5_4 and USG conditionals when
2042 !POSIX_SIGNALS, they cannot be true.
2044 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2045 NO_SOCK_SIGIO, not used anymore.
2047 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2049 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2050 support vax on BSDs.
2052 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2053 * s/aix4-2.h (ORDINARY_LINK): ... here.
2055 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2057 * Makefile.in (abs_builddir): Define.
2058 (bootstrap_exe): Use it.
2059 (VPATH): Use $(srcdir) instead of @srcdir@.
2061 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2063 * Makefile.in (bootstrap_exe): Use an absolute name.
2065 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2067 Remove support for old GNU/Linux using libc version 5.
2068 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2069 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2071 Consolidate redundant definitions in s/bsd-common.h.
2072 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2073 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2074 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2075 doing it in all files that include this one.
2076 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2077 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2078 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2079 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2080 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2081 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2082 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2083 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2084 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2086 Consolidate redundant definitions.
2087 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2088 it's undefined in all files that include this one.
2089 (POSIX_SIGNALS): Define here instead of doing it in all files that
2091 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2092 (POSIX_SIGNALS): Do not define.
2093 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2094 (POSIX_SIGNALS): Do not define.
2095 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2096 (POSIX_SIGNALS): Do not define.
2098 Remove support for old UNIX System V systems.
2099 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2100 * s/usg-5-4-2.h: Remove.
2102 Remove support for Solaris on PPC and for old versions.
2103 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2104 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2105 that cancel each other.
2108 * s/sol2-5.h: Remove.
2109 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2110 (NO_REMAP): Remove, unused.
2111 (UNEXEC): Move definition ...
2112 * s/aix4-2.h (UNEXEC): ... here.
2114 * s/openbsd.h: Remove support for non-ELF and for systems that do
2115 not support shared libraries.
2117 * s/freebsd.h: Likewise.
2119 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2121 Remove non-working support for lynxos 3.0.
2122 * s/lynxos.h: Remove file.
2124 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2125 COFF_BSD_SYMBOLS, nothing defines it anymore.
2127 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2129 Remove obsolete uses of HAVE_SHM.
2130 * emacs.c (standard_args):
2132 (syms_of_emacs): Remove code depending on HAVE_SHM.
2134 * alloc.c: Remove HAVE_SHM dependent definition.
2136 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2138 2010-03-18 Glenn Morris <rgm@gnu.org>
2140 * emacs.c (USAGE4): Hard-code bug address.
2141 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2142 (bug_reporting_address): Remove.
2143 (main): Don't call bug_reporting_address.
2145 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2146 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2148 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
2150 * xfns.c (Fx_create_frame):
2151 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2154 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2156 * editfns.c (Fformat): Account for string precision when computing
2157 field width (Bug#5710).
2159 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
2161 * xfns.c (Fx_create_frame): Set default to Qright.
2163 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2166 2010-03-12 Eli Zaretskii <eliz@gnu.org>
2168 These changes remove termcap.c from the build on Posix platforms.
2169 * Makefile.in (termcapobj): Move termcap.o from here...
2170 (MSDOS_OBJ): ...to here.
2171 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2172 now identical to when LIBS_TERMCAP is defined.
2174 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2176 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2178 * config.in: Regenerated. (See top-level ChangeLog.)
2180 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
2184 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2186 Cleanup setup of gl_state in various parts of the code.
2187 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2188 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2189 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2191 * regex.c (regex_compile): Use it.
2192 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2193 it's now set in regex_compile when/if we need it.
2195 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2197 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2198 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2199 (QUIT): Use it to consolidate code and remove redundancy.
2200 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2202 * regex.c (regex_compile): Setup gl_state as well.
2204 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2205 (in_classes): Use CONSP before XCAR/XCDR.
2207 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
2209 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2210 definitions, so that keyboard macros are correctly handled
2213 2010-03-02 Eli Zaretskii <eliz@gnu.org>
2215 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2216 text that could be relocated inside the call to emacs_mule_char.
2217 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2218 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2220 2010-03-02 Kenichi Handa <handa@m17n.org>
2222 * character.c (parse_str_as_multibyte): Fix handling of the
2223 multibyte form of raw-bytes.
2224 (str_as_multibyte): Likewise.
2226 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2229 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
2231 * charset.c (load_charset_map_from_file)
2232 (load_charset_map_from_vector): Zero out allocated
2233 charset_map_entries before using them.
2235 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2237 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2239 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
2241 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2242 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
2244 2010-02-26 Kenichi Handa <handa@m17n.org>
2246 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2248 * xdisp.c (reseat_to_string): Fix previous change.
2250 2010-02-26 David Reitter <david.reitter@gmail.com>
2252 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2253 Lisp_Object (Bug#4736).
2255 2010-02-25 Kenichi Handa <handa@m17n.org>
2257 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2259 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2261 * xterm.c (XTflash): Move declarations before statements.
2263 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2264 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2265 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2266 (xg_create_tool_bar): Remove unused variables.
2267 (x_wm_set_size_hint): Move declarations before statements.
2268 (xg_create_frame_widgets): Remove variable grav,
2270 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
2272 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2274 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2276 * term.c (fatal): Add a final \n if needed (bug#5596).
2278 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
2280 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2282 2010-02-18 Glenn Morris <rgm@gnu.org>
2284 * callint.c (Finteractive): Doc fix.
2286 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2288 * coding.c (record_conversion_result):
2289 Handle CODING_RESULT_INSUFFICIENT_DST.
2290 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2291 memory allocation error.
2293 2010-02-17 Kenichi Handa <handa@m17n.org>
2295 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2296 Fix for the case that the output buffer is fullfilled.
2297 (decode_coding): Setup ccl program here. Keep looping when the
2298 decoder stopped because the output buffer is
2299 fullfilled (bug#5534).
2301 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2303 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2305 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
2307 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
2310 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2312 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2313 doing_interact here.
2314 (ice_connection_closed): New function.
2315 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2316 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2317 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2319 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2322 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
2324 * nsfont.m (nsfont_open): The system's value for the font descent
2325 is negative, so round it down to avoid clipping.
2327 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
2329 * charset.c (load_charset_map_from_file)
2330 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
2331 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
2333 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
2335 * charset.c (load_charset_map_from_file): Allocate large
2336 charset_map_entries structure on the heap rather than the stack.
2339 2010-01-31 Kenichi Handa <handa@m17n.org>
2341 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
2342 size in NAME is invalid, return -1 (Bug#5396).
2344 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
2346 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2347 <deactivated@gmail.com> (Bug#3605).
2349 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
2351 * fileio.c (Frename_file): Correctly rename symlinks to
2352 directories (Bug#5496).
2354 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2356 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2358 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2360 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2362 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
2364 * frame.c (DEFAULT_ROWS): Change default to 35.
2366 * xfns.c (x_default_font_parameter): Change default XFT font to
2367 monospace-10 (Bug#3643).
2369 2010-01-29 Eli Zaretskii <eliz@gnu.org>
2371 * w32inevt.c (key_event): Remove unnecessary comparison of
2372 event->uChar.AsciiChar with 128.
2374 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
2376 * fileio.c (Frename_file): Fix last change (Bug#5487).
2378 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2380 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2382 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2384 * xfns.c (Fx_create_frame): Remove window size matching code from
2386 (x_get_current_desktop, x_get_desktop_workarea): Remove
2388 2010-01-27 Jason Rumney <jasonr@gnu.org>
2390 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
2391 (key_event): Use unicode for characters 128 and higher (Bug#4567).
2393 2010-01-27 Kenichi Handa <handa@m17n.org>
2395 * regex.c (analyse_first): Fix setting of fastmap for unibyte
2396 pattern string (Bug#4209).
2398 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
2400 * fileio.c (Frename_file): Call copy-directory and
2401 delete-directory for directories, in order to handle cross-device
2402 renaming (Bug#3353).
2404 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2406 * xfns.c (Fx_create_frame): If frame height is too big, try
2407 sizes 24 and 10. Bug #3643.
2409 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2411 Try and fix bug#788, hopefully for real this time.
2412 * keymap.c (shadow_lookup): Add `remap' arg.
2413 (describe_map, describe_vector): Update calls to shadow_lookup.
2414 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2415 `remapped' so this flag is applicable to `sequence'. Be careful to
2416 perform remapping during shadow_lookup check of remapped_sequences.
2418 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2420 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2421 png_check_sig, which has been removed in libpng 1.4.
2423 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2425 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2426 lacks this header file).
2428 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2430 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2433 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2435 * lisp.h (make_pure_string): String pointer arg now points to const.
2437 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2438 args now point to const.
2440 2010-01-22 Eli Zaretskii <eliz@gnu.org>
2442 * lread.c (Fload): Don't treat files without .elc extension as
2443 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2446 2010-01-20 Kenichi Handa <handa@m17n.org>
2448 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2449 treat the source as actual byte sequence.
2451 2010-01-19 Alan Mackenzie <acm@muc.de>
2453 Fix spurious before-change-functions invocation from (insert ?\n).
2454 * textprop.c (set_text_properties): Rename parameter
2455 `signal_after_change_p' to `coherent_change_p', and make the
2456 invocation of `modify_region' conditional on it.
2458 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2460 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2462 (syms_of_xsettings): Declare xft-settings.
2464 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
2466 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2468 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2470 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2472 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
2474 * emacs.c (standard_args): Adjust arg priorities to reflect how
2475 they are processed in startup.el.
2477 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2479 * Makefile.in (lisp, shortlisp): Update.
2481 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2483 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2484 code, link the new kboard into all_kboard before running Lisp code,
2485 and protect the new terminal with GCPRO (Bug#5365).
2486 (x_term_init): Remove unused var `atom'.
2487 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2489 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2491 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2492 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2493 to find out usable size of the desktop. Don't make frames larger than
2496 2010-01-15 Kenichi Handa <handa@m17n.org>
2498 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2500 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
2502 * nsterm.m (Qnone): Define.
2504 * nsfns.m (Qnone): Move definition to nsterm.m.
2506 2010-01-14 Kenichi Handa <handa@m17n.org>
2508 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2511 2010-01-14 Kenichi Handa <handa@m17n.org>
2513 Make auto-composition work on all buffers even if they are
2516 * composite.c (Vauto_composition_mode): New variable.
2517 (composition_compute_stop_pos): Check Vauto_composition_mode
2518 instead of Vauto_composition_function.
2519 (composition_adjust_point, Ffind_composition_internal): Likewise.
2520 (syms_of_composite): Declare Lisp variable
2521 "auto-composition-mode" here.
2523 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
2525 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2526 during call to vendor-specific-keysyms (Bug#5365).
2528 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2530 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2531 Call SIGNAL_THREAD_CHECK (Bug#5333).
2533 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2534 Call SIGNAL_THREAD_CHECK.
2536 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2538 Try to fix bug#5314. This is probably not the final word, tho.
2539 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2540 recent-auto-save-p as a side-effect.
2541 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2542 * buffer.c (Fkill_buffer, reset_buffer):
2543 * editfns.c (Fsubst_char_in_region):
2544 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2545 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2547 2010-01-13 Kenichi Handa <handa@m17n.org>
2549 Display buffer name, etc. in mode line by composing correctly.
2551 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2553 (display_mode_element): Adjust for the change of
2554 decode_mode_spec and display_line.
2555 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2556 (display_string): Handle the case that STRING is non-null and
2557 LISP_STRING is not nil.
2559 * xterm.c (x_draw_composite_glyph_string_foreground):
2560 Pay attention to s->face->overstrike.
2562 * composite.c (composition_reseat_it): Don't check PT if STRING is
2565 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2567 * keyboard.c (read_char): Don't apply previous change when current
2568 buffer is unchanged by command execution.
2570 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2572 * keyboard.c (read_char): Return after executing from special map.
2574 2010-01-12 Glenn Morris <rgm@gnu.org>
2576 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2577 bug-gnu-emacs rather than emacs-pretest-bug.
2579 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
2581 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2582 initializing the Lisp variables that depend on them.
2584 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2586 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2587 Clear areas that will not be updated after change of menu bar lines.
2588 Clear the menu bar window's current matrix when the window gets empty.
2590 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
2592 * intervals.h, textprop.c (extend_property_ranges): Return value
2593 and args changed. Discard properties that begin at or after the
2596 * editfns.c (Fformat): Caller changed.
2598 * nsterm.m (ns_set_default_prefs): Delete function.
2599 (syms_of_nsterm): Initialize ns_command_modifier,
2600 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2601 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2603 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2604 position (Bug#4040).
2606 2010-01-09 Eli Zaretskii <eliz@gnu.org>
2608 * editfns.c (Ffloat_time): Doc fix.
2610 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2612 * xfns.c (Fx_create_frame): Don't create frame larger than display
2613 by default bug#3643.
2615 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2617 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2618 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2619 windows above internal border.
2621 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2622 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2623 windows above internal border.
2625 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2626 tool bar windows specially.
2628 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2630 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2632 (XTflash): Take account of menu bar height.
2634 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2637 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2639 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
2640 also be true before we can return early (bug #5339).
2642 2010-01-06 David Reitter <david.reitter@gmail.com>
2644 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2645 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2648 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2650 * font.c (font_open_entity): Enable chache and call cached_font_ok
2651 for the driver if defined.
2652 (QCuser_spec): New symbol.
2653 (font_spec_from_name): Save name as user-spec.
2654 (font_load_for_lface): Keep user-spec instead of name.
2655 (font_open_by_name): Save name as user-spec.
2656 (syms_of_font): Initialize QCuser_spec.
2657 (font_clear_prop): Clear name if it exists in font (bug#5157).
2659 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2660 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2661 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2663 * font.h (struct font_driver): Add cached_font_ok.
2665 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2667 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2669 * xterm.c (x_new_font): Move code for setting rows/cols before
2671 (x_set_window_size): ... to here. Bug #2568.
2673 * gtkutil.c (xg_clear_under_internal_border): New function.
2674 (xg_frame_resized, xg_frame_set_char_size):
2675 Call xg_clear_under_internal_border.
2676 (xg_update_scrollbar_pos): Clear under old scroll bar position.
2678 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
2680 * keyboard.c (read_key_sequence): Catch keyboard switch after
2681 making a new tty frame (Bug#5095).
2683 2010-01-05 Kenichi Handa <handa@m17n.org>
2685 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2687 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2689 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2690 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2691 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2693 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
2695 * dbusbind.c (xd_add_watch): Improve debug message.
2696 (xd_remove_watch): Improve debug message. If DATA is the session
2697 bus, unset D-Bus session environment.
2698 (Fdbus_init_bus): Pass the bus as argument to
2699 dbus_connection_set_watch_functions. (Bug#5283)
2701 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
2703 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2705 * lread.c (syms_of_lread): Make it clearer that these are the
2706 names of loaded files (Bug#5068).
2708 * eval.c (run_hook_with_args): Handle the case where the global
2709 value has the obsolete single-function form (Bug#5026).
2711 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
2713 * minibuf.c (Fall_completions): Minor optimization.
2715 2009-12-26 Eli Zaretskii <eliz@gnu.org>
2717 * .gdbinit (pgx): Fix display of composite glyphs.
2718 Display cmp.from and cmp.to as well.
2719 (pitx): Fix last change.
2721 2009-12-25 Kenichi Handa <handa@m17n.org>
2723 * composite.h (composition_adjust_point): Update prototype.
2725 * composite.c (composition_reseat_it): Don't make a composition
2726 spanning over point.
2727 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2728 composable characters.
2729 (composition_adjust_point): New arg NEW_PT. Callers changed.
2731 * keyboard.c (command_loop_1): Force redisplay if the last point
2732 was within a composition.
2733 (adjust_point_for_property): Don't adjust point for automatic
2734 composition when called after buffer modification.
2736 2009-12-19 Eli Zaretskii <eliz@gnu.org>
2738 * .gdbinit (pitx): Don't use enum names, use their values.
2739 Remove reference to non-existing value GET_FROM_COMPOSITION.
2740 (pgx): Don't use enum names, use their values.
2741 (pitmethod): New helper command.
2742 (pitx): Use it to display iteration method.
2743 (pgrowit): New command.
2745 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2747 Update dependencies in Makefile.in.
2749 * Makefile.in (alloc.o): Depend on termhooks.h.
2750 (atimer.o): Depend on blockinput.h.
2751 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2753 (callint.o): Depend on systime.h, coding.h, and composite.h.
2754 (callproc.o): Depend on buffer.h.
2755 (casefiddle.o): Don't depend on charset.h.
2756 (casetab.o): Depend on character.h.
2757 (ccl.o): Depend on composite.h.
2758 (chartab.o): Depend on ccl.h.
2759 (cm.o): Depend on dispextern.h.
2760 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2761 (coding.o): Don't depend on $(INTERVALS_H).
2762 (composite.o): Don't depend on dispextern.h explicitly (it's in
2763 $(INTERVALS_H)). Depend on ccl.h.
2764 (data.o): Depend on systime.h, coding.h, composite.h,
2765 dispextern.h, font.h, and ccl.h.
2766 (dired.o): Depend on composite.h.
2767 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2768 composite.h (it's in $(INTERVALS_H)).
2769 (doc.o): Depend on systime.h, coding.h, and composite.h.
2770 (editfns.o): Don't depend explicitly on dispextern.h.
2771 (emacs.o): Depend on frame.h and coding.h.
2772 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2773 (fileio.o): Depend on frame.h and commands.h. Don't depend
2774 explicitly on dispextern.h.
2775 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2777 (fns.o): Don't depend on termhooks.h.
2778 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2779 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2780 coding.h, $(INTERVALS_H), window.h, xterm.h.
2781 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2782 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2783 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2784 fontset.h, ccl.h, and ftfont.h.
2785 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2786 (gtkutil.o): Depend on dispextern.h and composite.h.
2787 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2788 termhooks.h, and ccl.h.
2789 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2790 (intervals.o): Depend on systime.h and coding.h.
2791 (keyboard.o): Depend on composite.h and coding.h.
2792 (keymap.o): Depend on coding.h and frame.h.
2793 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2794 (macros.o): Depend on systime.h, coding.h, and composite.h.
2795 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2797 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2798 dispextern.h explicitly.
2799 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2800 Don't depend explicitly on dispextern.h and composite.h.
2801 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2802 (regex.o): Don't depend on charset.h.
2803 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2804 (search.o): Don't depend explicitly on composite.h.
2805 (sound.o): Depend on atimer.h and systime.h.
2806 (syntax.o): Don't depend explicitly on composite.h.
2807 (sysdep.o): Depend on coding.h and composite.h.
2808 (term.o): Depend on xterm.h and buffer.h.
2809 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2810 (textprop.o): Don't depend on dispextern.h explicitly.
2811 (undo.o): Depend on dispextern.h.
2812 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2813 dispextern.h and composite.h explicitly.
2814 (xdisp.o): Depend on ccl.h.
2815 (xfaces.o): Depend on coding.h and ccl.h.
2816 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2817 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2818 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2820 (xgselect.o): New dependency.
2821 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2822 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2823 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2824 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2825 (xsmfns.o): Depend on frame.h and dispextern.h.
2826 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2829 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2831 * font.c (Fclear_font_cache): Pass correct cache argument to
2834 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2836 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2839 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
2841 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2842 calling file-remote-p. Reported by Jim Meyering.
2844 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
2846 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
2847 avoid compiler warnings. (Bug #5217)
2849 2009-12-14 Kenichi Handa <handa@m17n.org>
2851 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2854 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
2856 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2859 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2861 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2862 Xatom_net_window_type.
2864 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2865 Xatom_net_window_type.
2867 * xterm.c (my_log_handler): New function.
2868 (x_term_init): Set my_log_handler as log handler during gtk_init
2869 so we can filter out buggy messages. (Bug #5120).
2871 * xterm.c (xg_scroll_callback): Parameter list changed,
2872 use parameter GtkScrollType to determine scroll/line/page.
2873 Only allow dragging if a button < 4 is grabbed (bug #5177).
2874 (xg_end_scroll_callback): New function.
2875 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2876 xg_create_scroll_bar.
2878 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2879 (scroll_end_callback): Remove.
2880 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2881 button-release-event. Replace value-changed event with change-value,
2883 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2886 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2887 (xg_create_scroll_bar): Add GCallback end_callback.
2889 * xftfont.c (QClcdfilter): New variable.
2890 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2891 (syms_of_xftfont): Initialize QClcdfilter.
2893 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2895 * xsettings.c (struct xsettings): Add member seen.
2896 (parse_xft_settings): Update member seen with what we have read.
2897 Return non-zero if Xft-settings have been parsed, 0 otherwise.
2898 (apply_xft_settings): Only update Xft settings with what member seen
2901 2009-12-12 Eli Zaretskii <eliz@gnu.org>
2903 * dispextern.h (struct text_pos): Use EMACS_INT;
2904 (struct glyph): Use EMACS_INT for charpos.
2905 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2906 region_beg_charpos, region_end_charpos,
2907 redisplay_end_trigger_charpos, and also for
2908 iterator_stack_entry.end_charpos and
2909 iterator_stack_entry.stop_charpos.
2911 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2913 * gtkutil.c (scroll_end_callback): New function (bug #5177).
2914 (xg_create_scroll_bar): Call scroll_end_callback on button release
2916 (xg_event_is_for_scrollbar): != replaced with ==.
2918 2009-12-12 Kenichi Handa <handa@m17n.org>
2920 * ftfont.c (struct ftfont_info): New member matrix.
2921 (ftfont_open): Setup xftfont_info->matrix.
2922 (MFLTFontFT): New member matrix.
2923 (FLOOR, CEIL, ROUND): New macros.
2924 (ftfont_get_metrics): Handle matrix transformation.
2925 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2927 * xftfont.c (struct xftfont_info): New member matrix.
2928 (xftfont_open): Setup xftfont_info->matrix.
2930 2009-12-10 Kenichi Handa <handa@m17n.org>
2932 * xdisp.c (append_space_for_newline): Consider face-remapping.
2934 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2936 * xsettings.c: Include "keyboard.h".
2938 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2940 Fix implicit function declarations.
2941 * cmds.c: Include "frame.h".
2942 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2943 * frame.h: Move declaration of delete_frame outside of
2946 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2948 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2950 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2953 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2955 * unexelf.c (unexec): Don't search for .data twice.
2957 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
2959 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2961 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2962 of push_display_prop (Bug#5000).
2964 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2965 value of font_list_entities (Bug#5085).
2967 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
2969 Fix `string-to-number' to deal consistently with integers and floats.
2970 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2971 trailing characters, not just whitespace.
2972 (read1): Pass new arg 0 to keep old behavior.
2973 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2974 trailing chars, as it is already done for integers. Doc fixes.
2975 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2977 2009-12-04 Eli Zaretskii <eliz@gnu.org>
2979 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2980 Delete unused enumeration value.
2982 2009-12-03 Eli Zaretskii <eliz@gnu.org>
2984 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2986 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2988 * process.c (Fmake_network_process): Fix up the tests for
2989 "connectionless socket", so they DTRT for seqpacket sockets as well.
2991 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2993 * process.c (Qseqpacket): New symbol.
2994 (HAVE_SEQPACKET): New macro.
2995 (Fmake_network_process): Accept new :type `seqpacket'.
2996 (init_process): Add `seqpacket' feature when applicable.
2997 (syms_of_process): Initialize Qseqpacket.
2999 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3001 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3004 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3006 * print.c (print_preprocess): Preprocess the key_and_value table of
3007 hashtables, even tho they're "hidden" (bug#5082).
3009 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3011 * frame.c (frame_make_pointer_invisible)
3012 (frame_make_pointer_visible): Declare f before statements.
3014 2009-11-28 Eli Zaretskii <eliz@gnu.org>
3016 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3017 omitted dependencies on lisp.h.
3019 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3021 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3024 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3026 * frame.c (frame_make_pointer_invisible)
3027 (frame_make_pointer_visible): Just return if there isn't any selected
3030 * search.c (simple_search): Remove warning by making *p const.
3032 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3034 * xdisp.c (power_letter): Remove duplicate const.
3036 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3038 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3040 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
3041 defaults (bug #5025).
3043 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3045 * insdel.c (adjust_markers_for_delete): Move it in the
3046 right direction! (bug#4803)
3048 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3050 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3052 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3054 2009-11-24 Glenn Morris <rgm@gnu.org>
3056 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3058 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3060 * Makefile.in: Must create deps for ecrt0.o in its rule.
3062 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3063 because that is what Gtk+ font dialog understands.
3065 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3067 (font_open_by_name): Put name given into QCname for font-object returned.
3069 * frame.c (x_set_font): Save original font name as frame parameter
3072 * xsettings.c (set_default_xft_settings): New function.
3073 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3076 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3078 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3079 searching backwards through multibyte buffer.
3081 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3083 * xterm.c: #include xgselect.h.
3084 (x_initialize): Call xgselect_initialize.
3086 * xsettings.c (something_changedCB): C++ comments => C comments.
3087 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3090 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3091 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3092 (scroll_bar_button_cb): Remove.
3093 (create_menus): C++ comments => C comments. Don't bind grab-notify
3095 (xg_create_scroll_bar): Don't bind button-press-event and
3096 button-release-event.
3098 * process.c: Include xgselect.h if defined (USE_GTK) ||
3099 defined (HAVE_GCONF).
3100 (wait_reading_process_output): Call xg_select for the same condition.
3102 * xgselect.c (xg_select): New function to better integrate with
3103 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3105 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3107 * Makefile.in (XOBJ): Add xgselect.o.
3109 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3111 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3112 Remove ignored second argument. All callers changed.
3113 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3114 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3115 * xdisp.c (string_char_and_length): Likewise.
3117 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3119 * xterm.c (x_new_font):
3120 * print.c (print_object):
3121 * cmds.c (Fself_insert_command): Move declarations before statements.
3123 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3125 * s/cygwin.h: Remove unneeded linker flags.
3127 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3129 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3131 * xsettings.h: Declare xsettings_get_system_font.
3133 * xsettings.c (xsettings_get_system_font): New function.
3134 (init_gconf): No use initiating gconf unless we have Xft also.
3135 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3138 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3139 add a blank entry so it doesn't collapse into nothing.
3141 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3143 * lread.c (Funintern): Comment out last change.
3145 2009-11-19 Richard Stallman <rms@gnu.org>
3147 * lread.c (Funintern): Error if symbol is t or nil.
3149 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3151 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3152 representation of Lisp integers.
3153 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3155 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3157 * lisp.h: Remove declaration of Ffont_get_system_font.
3158 * xfns.c: Move include of "xsettings.h".
3159 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3161 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3163 * xsettings.c (something_changedCB, Ffont_get_system_font):
3164 Check use_system_font.
3165 (syms_of_xsettings): DEFVAR font-use-system-font.
3167 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3169 * xfns.c (x_default_font_parameter): Remove dead assignment.
3171 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3173 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3175 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
3176 not have FC_LCD_*. #define them if not there.
3178 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
3180 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3182 * xterm.c (handle_one_xevent): Call xft_settings_event for
3183 ClientMessage, PropertyNotify and DestroyNotify.
3184 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3185 Call xsettings_initialize.
3187 * xftfont.c (xftfont_fix_match): New function.
3188 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3189 Call xftfont_fix_match after XftFontMatch.
3191 * xfont.c (xfont_driver): Initialize all members.
3193 * xfns.c (x_default_font_parameter):
3194 Try font from Ffont_get_system_font.
3195 Do not get font from x_default_parameter if we got one from
3196 Ffont_get_system_font.
3197 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
3199 * w32font.c (w32font_driver): Initialize all members.
3201 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3203 * lisp.h: Declare syms_of_xsettings.
3205 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3206 Handle CONFIG_CHANGED_EVENT.
3208 * ftfont.c (ftfont_filter_properties): New function.
3210 * frame.c (x_set_font): Remove unused variable lval.
3212 * font.h (struct font_driver): Add filter_properties.
3214 * font.c (font_put_extra): Don't return if val is nil, it means
3215 boolean option is off.
3216 (font_parse_fcname): Collect all extra properties in extra_props
3217 and call filter_properties for all drivers with extra_props and
3219 (font_open_entity): Do not use cache, it does not pick up new
3220 fontconfig settings like hinting.
3221 (font_load_for_lface): If spec had a name in it, store it in entity.
3223 * emacs.c (main): Call syms_of_xsettings
3225 * config.in: HAVE_GCONF is new.
3227 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3230 2009-11-17 Kenichi Handa <handa@m17n.org>
3232 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3233 back to the default font in case that no suitable font is found.
3235 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3237 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3238 Suggested by Chad Brown <yandros@mit.edu>.
3239 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3241 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3243 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3245 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3247 * Makefile.in: Ignore errors from mkdir when creating deps directory.
3249 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3251 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3254 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
3255 dependency files in deps/. Include those files into Makefile.
3257 * config.in: Generated (AUTO_DEPEND).
3259 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
3261 * dbusbind.c (Vdbus_registered_objects_table): Rename from
3262 Vdbus_registered_functions_table, because it contains also
3263 properties. Fix docstring.
3264 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
3266 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3268 * alloc.c (mark_object): Don't reprocess marked strings.
3269 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3270 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3272 2009-11-13 Kenichi Handa <handa@m17n.org>
3274 * category.c (word_boundary_p): Adjust for the change of the
3275 semantics of Vword_combining_categories.
3276 (Vword_combining_categories): Describe the slight change of the
3279 2009-11-13 Eli Zaretskii <eliz@gnu.org>
3281 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3283 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3285 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3287 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3289 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
3291 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3293 2009-11-11 David Reitter <david.reitter@gmail.com>
3295 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3296 variables to fix 2009-11-09 change.
3298 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3300 * process.c (ifflag_def): Make flag_sym constant.
3301 (Fnetwork_interface_info): Use a constant pointer.
3303 * xfns.c (cursor_bits):
3304 * xdisp.c (power_letter):
3305 * termcap.c (speeds, esctab):
3306 * sysdep.c (baud_convert):
3307 * keyboard.c (lispy_accent_codes, modifier_names):
3308 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3309 (jpeg_format, tiff_format, gif_format, svg_format)
3310 (interlace_start, interlace_increment, gs_format):
3311 * gtkutil.c (separator_names):
3312 * fringe.c (swap_nibble):
3313 * fns.c (base64_value_to_char, base64_char_to_value):
3314 * fileio.c (make_temp_name_tbl):
3315 * coding.c (suffixes): Make constant.
3317 * frame.c (make_initial_frame):
3318 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3320 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3323 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3325 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3326 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3328 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3329 * xterm.c (syms_of_xterm):
3330 * xfaces.c (syms_of_xfaces):
3331 * xdisp.c (syms_of_xdisp):
3332 * lread.c (syms_of_lread):
3333 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3336 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3338 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3340 * fns.c (Fplist_get): Merge the active and the commented out code.
3342 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3344 * keyboard.h: Declare timer_check.
3346 * keyboard.c (timer_check_2): New function that does what the old
3348 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3349 returned, i.e. don't return -1 with timers pending.
3351 * process.c: Remove extern declaration of timer_check.
3353 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3354 even if timer_check returned -1.
3356 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3358 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3360 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3361 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3362 Destroy the dialog after xg_dialog_run.
3364 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3366 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3368 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3370 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3372 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
3374 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3376 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3378 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3379 w32menu.c, and nsmenu.m.
3380 Simplify the obsolete case where position is nil.
3381 (cleanup_popup_menu): New function, moved from nsmenu.m.
3382 (struct skp): Remove slot `notreal'.
3383 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3385 (single_menu_item): Adjust call to parse_menu_item.
3386 (syms_of_menu): Defsubr x-popup-menu.
3387 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3388 (keymap_panes): Don't export any more.
3389 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3390 (xmenu_show): Declare.
3391 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3392 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3393 * keyboard.h (parse_menu_item): Update declaration.
3394 * xmenu.c (Fx_popup_menu): Remove.
3395 (syms_of_xmenu): Don't defsubr x-popup-menu.
3396 * w32menu.c (Fx_popup_menu): Remove.
3397 (syms_of_w32menu): Don't defsubr x-popup-menu.
3398 * nsmenu.m (cleanup_popup_menu): Remove.
3399 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3400 moved to menu.c's Fx_popup_menu.
3401 (Fx_popup_menu): Remove.
3402 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3403 menu_items (it's done in menu.c already).
3405 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3407 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3408 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3410 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
3412 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
3413 xmenu_show. Hide any tooltip before opening a menu.
3414 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3415 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3417 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3419 Let integers use up 2 tags to give them one extra bit and thus double
3421 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3422 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3424 (enum Lisp_Type): Use them. Give explicit values.
3425 (Lisp_Type_Limit): Remove.
3426 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3427 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3428 Pay attention to USE_2_TAGS_FOR_INTS.
3429 (INTEGERP): Use LISP_INT_TAG_P.
3430 * fns.c (internal_equal): Simplify the default case.
3431 (sxhash): Use case_Lisp_Int.
3432 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3434 (Ftype_of): Use case_Lisp_Int.
3435 (store_symval_forwarding): Take into account the fact that Ints can
3436 now have more than one tag.
3437 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3438 buffer_slot_type_mismatch):
3439 * xfaces.c (face_attr_equal_p):
3440 * print.c (print_object):
3441 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3444 2009-11-06 Eli Zaretskii <eliz@gnu.org>
3446 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3448 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3451 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3453 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3455 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3457 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3458 ButtonPressRelease and MotionNotify (bug#4870).
3460 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3462 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3464 * xterm.c (syms_of_xterm):
3465 * xselect.c (syms_of_xselect):
3466 * xmenu.c (syms_of_xmenu):
3467 * xfns.c (syms_of_xfns):
3468 * xfaces.c (syms_of_xfaces):
3469 * xdisp.c (syms_of_xdisp):
3470 * window.c (syms_of_window):
3471 * w32fns.c (syms_of_w32fns):
3472 * undo.c (syms_of_undo):
3473 * textprop.c (syms_of_textprop):
3474 * terminal.c (syms_of_terminal):
3475 * syntax.c (syms_of_syntax):
3476 * sound.c (syms_of_sound):
3477 * search.c (syms_of_search):
3478 * print.c (syms_of_print):
3479 * minibuf.c (syms_of_minibuf):
3480 * macros.c (syms_of_macros):
3481 * keymap.c (syms_of_keymap, initial_define_key)
3482 (initial_define_lispy_key):
3483 * keyboard.c (syms_of_keyboard):
3484 * insdel.c (syms_of_insdel):
3485 * image.c (syms_of_image):
3486 * fringe.c (syms_of_fringe):
3487 * frame.c (syms_of_frame):
3488 * fontset.c (syms_of_fontset):
3489 * fns.c (syms_of_fns):
3490 * fns.c (syms_of_fns):
3491 * fileio.c (syms_of_fileio):
3492 * fileio.c (syms_of_fileio):
3493 * eval.c (syms_of_eval):
3494 * doc.c (syms_of_doc):
3495 * dispnew.c (syms_of_display):
3496 * dired.c (syms_of_dired):
3497 * dbusbind.c (syms_of_dbusbind):
3498 * data.c (syms_of_data):
3499 * composite.c (syms_of_composite):
3500 * coding.c (syms_of_coding):
3501 * cmds.c (syms_of_cmds):
3502 * charset.c (define_charset_internal, syms_of_character):
3503 * ccl.c (syms_of_ccl):
3504 * category.c (syms_of_category, init_category_once):
3505 * casetab.c (syms_of_casetab):
3506 * casefiddle.c (syms_of_casefiddle):
3507 * callint.c (syms_of_callint):
3508 * bytecode.c (syms_of_bytecode):
3509 * buffer.c (keys_of_buffer, syms_of_buffer):
3510 * alloc.c (syms_of_alloc):
3511 * process.c (syms_of_process, init_process):
3512 * lread.c (syms_of_lread, init_obarray):
3513 * font.c (build_style_table):
3514 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3515 intern_c_string, calls to make_pure_string with
3516 make_pure_c_string. Use pure_cons instead of Fcons.
3518 * process.c (socket_options): Make it const.
3519 (set_socket_option, init_process): Use a const pointer.
3521 * lread.c (intern_c_string): New function.
3522 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3523 (defvar_int): Uset it. Make the name const char*.
3525 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3526 (defvar_int): Update prototypes.
3527 (DEFUN, EXFUN): Support for prototypes is now required.
3528 (intern_c_string): New prototype.
3529 (struct Lisp_Subr): Make symbol_name constant.
3531 * font.c (struct table_entry): Remove unused member. Make NAMES
3533 (weight_table, slant_table, width_table): Make constant.
3535 * emacs.c (struct standard_args): Make name and longname constant.
3537 * character.h (DEFSYM): Use intern_c_string.
3539 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3541 * alloc.c (make_pure_c_string): New function.
3543 * eval.c (Fautoload): Purecopy all arguments.
3545 2009-11-05 Kenichi Handa <handa@m17n.org>
3547 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3548 the buffer in case of replace.
3550 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3552 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3554 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3556 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3557 when applicable (bug#4851).
3559 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3560 (P_): Support for prototypes is now required.
3562 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
3564 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3567 2009-10-30 Eli Zaretskii <eliz@gnu.org>
3569 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
3571 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3573 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3575 * lread.c (Fload): Purecopy the file name when building
3576 Vpreloaded_file_list.
3578 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3580 * w32fns.c (syms_of_w32fns): Change default value of
3581 w32-scroll-lock-modifier to nil. (Bug#2827)
3583 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3585 * minibuf.c (Fall_completions): Fix typos in docstring.
3587 2009-10-26 Andreas Schwab <schwab@redhat.com>
3589 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3591 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3593 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3594 For delta < 0, skip check that only makes sense when the mini-window
3595 is going to be enlarged. (Bug#4534)
3597 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
3599 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3600 string in menu maps (Bug#4471).
3602 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
3604 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3605 FRAME_NS_VIEW on terminal frames (Bug#4765).
3607 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3609 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3610 DBUS_TYPE_UINTnn separately to get proper sign extension.
3612 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3613 can properly handle unsigned types.
3614 (make_uid, make_gid): Remove.
3616 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3619 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
3620 (system_process_attributes): Likewise.
3622 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3624 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3626 * eval.c (Fautoload): Purecopy the filename. Simplify.
3628 * category.c (Fdefine_category): Purecopy docstring.
3630 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3632 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3634 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3636 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
3638 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3639 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3642 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3644 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3646 * lisp.h (init_fileio_once): Remove.
3647 * emacs.c (main): Don't call init_fileio_once.
3649 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3651 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3653 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3655 * doprnt.c (doprnt): Fix overflow check.
3657 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3659 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3661 * xterm.h (x_wait_for_event): Declare it.
3663 * xterm.c (pending_event_wait): New variable.
3664 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3665 see pending_event_wait.eventtype.
3666 (handle_one_xevent): Don't change gravity when parent changes.
3667 (x_new_font): Call change_frame_size with new rows/columns before we
3668 try to resize the frame.
3669 (x_wait_for_event): New function.
3670 (x_set_window_size_1): Don't change gravity unless change_gravity
3672 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3673 don't change frame size, instead wait for the ConfigureNotify.
3674 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3675 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3676 (x_initialize): Initialize pending_event_wait.
3678 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3681 * widget.c (EmacsFrameSetValues): Add comment.
3682 (EmacsFrameSetCharSize): Just call x_set_window_size.
3684 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3686 (flush_and_sync): Remove again.
3687 (xg_get_font_name): Suggest monospace if no previous font is known.
3689 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3691 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
3692 8th bit, since that only made sense in the ASCII world (bug#4751).
3694 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3696 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3697 processing pending events when event is filtered for input method.
3700 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
3702 * fns.c: Add #endif accidentally removed in previous change.
3704 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3706 * fns.c: Remove code for unsupported system: MAC_OS.
3707 * image.c: Likewise. Include setjmp.h.
3709 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3711 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3712 pixel -1 (bug #4742).
3714 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3716 * process.c (create_pty): Remove conditionals for no longer
3717 supported systems: UNIPLUS and RTU.
3720 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3722 * alloc.c: Do not define struct catchtag.
3723 * eval.c: Move struct catchtag definition ...
3726 * image.c: Move png.h #include earlier to avoid warnings.
3827 * atimer.c: Include setjmp.h. (Bug#4643)
3829 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3831 Remove leftover table unibyte_to_multibyte_table.
3832 * character.c (unibyte_to_multibyte_table): Remove.
3833 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3834 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3835 * character.h (UNIBYTE_TO_CHAR): New macro.
3836 (MAKE_CHAR_MULTIBYTE): Use it.
3837 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3838 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3839 (message_dolog, set_message_1):
3840 * search.c (Freplace_match):
3841 * editfns.c (Fcompare_buffer_substrings):
3842 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3844 * insdel.c (copy_text, count_size_as_multibyte):
3845 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3846 * term.c (produce_glyphs):
3847 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3848 * regex.c (RE_CHAR_TO_MULTIBYTE):
3849 * cmds.c (internal_self_insert):
3850 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3852 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3854 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3856 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3858 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
3860 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3862 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3864 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3865 still needed under Tiger.
3867 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3869 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3872 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3874 2009-10-15 Kenichi Handa <handa@m17n.org>
3876 * print.c (print_object): Escape a symbol like "2E10" too.
3878 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
3880 Cleanups and changes for 64-bit compile under Snow Leopard.
3881 Based on suggestions by Erik Charlebois.
3883 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3885 * nsfont.m (ns_char_width): Replace deprecated call.
3886 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3888 (nsfont_open): Use ns_char_width() everywhere.
3889 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
3891 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3893 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3896 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3898 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3899 Use stringWithUTF8String.
3900 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3902 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3903 Add formal protocol mention to inheritance.
3904 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3906 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3908 (ns_query_color): Use CGFloat where appropriate.
3909 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
3910 (EmacsScroller-mouseDown:): Use long format in printf, and cast
3913 * config.in (NS_HAVE_NSINTEGER): Drop.
3915 * dbusbind.c (dbus-method-return-internal)
3916 (dbus-method-error-internal): Use long format in printf, and cast
3919 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3920 in printf, and cast argument.
3922 * process.c (list_processes_1): Use long format in printf, and
3925 2009-10-11 Glenn Morris <rgm@gnu.org>
3927 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3929 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3931 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3932 menu bar with a small width so it doesn't enlarge the frame.
3934 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
3936 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3938 2009-10-06 Glenn Morris <rgm@gnu.org>
3940 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3941 SOME_MACHINE_LISP (this enters indirectly via DOC).
3943 2009-10-05 Eli Zaretskii <eliz@gnu.org>
3945 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3947 2009-10-04 Eli Zaretskii <eliz@gnu.org>
3949 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3952 2009-10-03 Martin Rudalics <rudalics@gmx.at>
3954 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3956 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
3958 * lisp.h (Qdelete_directory_internal): Remove, because it is not
3959 used anymore outside fileio.c.
3961 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3963 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
3965 * lisp.h (Qdelete_directory_internal):
3966 Declare, instead of Qdelete_directory.
3968 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3970 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3972 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3974 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
3976 * fileio.c (Fdelete_directory_internal): Rename from
3977 Fdelete_directory. It is not a command anymore. It has no file
3980 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3982 * xdisp.c (get_next_display_element): Use an enum in last change.
3984 2009-09-28 Kenichi Handa <handa@m17n.org>
3986 * xdisp.c (get_next_display_element): Pay attention to
3987 unibyte_display_via_language_environment in handling
3988 Vnobreak_char_display.
3990 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3992 * nsterm.h (ns_app_name): New extern variable.
3994 * nsterm.m (ns_app_name): New variable.
3995 (ns_term_init): Set and use it.
3996 (ns_term_shutdown): Use it.
3998 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3999 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4001 * nsfns.m (ns_set_name_iconic, ns_set_name)
4002 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4003 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4005 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4006 Remove double-casting in client_data comparison.
4008 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4010 * keyboard.c (make_lispy_event): Remember last wheel direction.
4011 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4013 2009-09-26 Glenn Morris <rgm@gnu.org>
4015 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4016 internal.elc. Add term/pc-win.elc.
4017 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4019 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4022 (lisp): Add NS_SUPPORT.
4023 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4025 2009-09-25 David Reitter <david.reitter@gmail.com>
4027 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4028 on Mac OS X 10.6+ (bug#4513).
4030 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4032 * frame.c (xrdb_get_resource): Return nil for empty string resources;
4033 some parts of Emacs code (like font selection) don't grok them.
4034 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
4036 2009-09-24 Andreas Schwab <schwab@redhat.com>
4038 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4040 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4042 * dired.c (Fdirectory_files): Fix typo in docstring.
4044 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4046 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4047 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4048 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4050 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4052 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4055 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4057 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
4058 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
4060 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4061 deleted (bug #4492).
4063 * nsfont.m (Vns_reg_to_script): New lisp variable.
4064 (syms_of_nsfont): Declare it.
4065 (ns_registry_to_script): New function.
4066 (ns_get_req_script): Call it.
4067 (ns_findfonts): Don't give up on non-unicode registry.
4069 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4071 2009-09-20 Tom Tromey <tromey@redhat.com>
4073 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4074 batch mode (bug#4228).
4076 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
4078 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
4079 carefully. (Bug #4339)
4081 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
4083 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
4085 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4087 * emacs.c (inhibit_x_resources): Update doc string for NS.
4088 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
4089 legacy code for -NXHost. Fix error printf in daemon case.
4091 * nsterm.h (ns_no_defaults): Remove.
4093 * nsterm.m (ns_no_defaults): Remove.
4094 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4095 (ns_use_qd_smoothing): Remove legacy variable.
4096 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4097 don't update the NSWindow itself.
4098 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
4099 state detection and store user rect ourselves. (Bug #3581)
4101 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4102 ns_use_qd_smoothing.
4104 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4105 platform versions. Drop support for emacs-20-style face specs.
4106 (x-close-connection): Drop PSFlush() under OS X.
4107 (x-focus-frame): Activate the app first. (Bug #4180)
4109 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
4111 * emacs.c (inhibit_x_resources): New variable.
4112 (main) [HAVE_NS]: Don't process --quick command line option.
4113 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4115 * lisp.h (inhibit_x_resources): Declare it extern.
4117 * w32reg.c (x_get_string_resource):
4118 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4120 2009-09-17 Eli Zaretskii <eliz@gnu.org>
4122 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4123 Add lisp/term/internal.elc.
4125 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4127 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4130 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4132 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4134 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4135 (OBJECTS_MACHINE): Remove, unused.
4137 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4139 * frame.c (x_get_resource_string): Remove unused.
4141 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4143 * xterm.c (x_new_font): Call change_frame_size before calling
4144 x_set_window_size, in case frame size won't change.
4146 * frame.c (x_set_font): Remove dead code.
4148 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4150 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4152 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4154 * lread.c (Fload): Don't output a message after loading an obsolete
4155 package any more (done in Lisp now).
4157 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
4159 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4161 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4163 * keymap.c (Fwhere_is_internal): Use nconc2.
4165 2009-09-11 Alan Mackenzie <acm@muc.de>
4167 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4170 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4172 * xdisp.c (display_mode_element): Detect cycles.
4174 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4176 * keymap.c (where_is_internal): Don't erroneously return nil right after
4178 (where_is_internal_1): Fix up typo.
4180 2009-09-11 Glenn Morris <rgm@gnu.org>
4182 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4183 share a common doc-string.
4185 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4187 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4188 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4190 * keymap.c (QCadvertised_binding): New constant.
4191 (syms_of_keymap): Initialize it.
4192 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4195 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4197 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4198 (parse_menu_item): Streamline since bindings are recomputed all the
4199 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4200 more and don't support lmenu's menu-alias any more either.
4202 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4203 (where_is_internal): Strip it down to only traverse the keymaps.
4204 Move the cache handling from Fwhere_is_internal to here.
4205 (Fwhere_is_internal): Move the handling of remapping and the choice of
4206 the best binding from where_is_internal to here.
4207 Unify the cached/noncached paths, so remapping is also handled
4208 correctly when the cache is used, and so the cache can be used to
4209 speed up remap-handling when applicable.
4210 Give preference to non-remapped bindings.
4211 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4212 non-remapped bindings.
4213 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4216 * xdisp.c (display_mode_element): Move list length limit from 50 to
4217 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4219 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
4221 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4223 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4225 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4228 * keymap.c (where_is_internal): Filter out shadowed remappings.
4229 Assume that where_is_internal returns unshadowed bindings to simplify
4230 the code and get rid of the gotos. Use ASIZE.
4232 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4234 * xterm.c (x_focus_changed): If we get a focusout and pointer
4235 is invisible, make it visible.
4237 * xterm.h: Remove condition for declaration of
4238 x_*_window_to_frame.
4240 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4242 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4243 initial terminal as well.
4245 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4247 * xterm.h: Rename x_non_menubar_window_to_frame to
4248 x_menubar_window_to_frame.
4250 * xterm.c: Remove declarations also in xterm.h.
4251 (XTmouse_position): Do not return valid positions
4252 for clicks in the menubar and the toolbar for Gtk+.
4254 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4255 if the widget for the event has the same top level as a frame,
4257 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4258 internal windows, bug #4122.
4259 (x_non_menubar_window_to_frame): Remove.
4261 2009-09-02 Glenn Morris <rgm@gnu.org>
4263 * buffer.c (default-major-mode): Move most of the doc from here...
4264 (major-mode): ... to here.
4266 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
4268 * process.c (wait_reading_process_output): Keep the descriptor
4269 when pty is used by a non-child process, e.g., in I/O buffer of
4270 GDB this allows inferior to be restarted.
4272 2009-08-29 Eli Zaretskii <eliz@gnu.org>
4274 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4275 both branches into one.
4277 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4279 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4280 (main): Use enable-multibyte-characters rather than
4281 default-enable-multibyte-characters. Output a warning message when
4282 running a unibyte session.
4284 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4286 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4287 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4288 (copy_data_segment): Also copy __program_vars section.
4289 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4290 (dump_it) [LC_DYLD_INFO]: Use it.
4292 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4294 2009-08-28 Eli Zaretskii <eliz@gnu.org>
4296 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4298 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4299 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4301 (clean): Add buildobj.h.
4303 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4305 * print.c (print_object): Set escapeflag to 1 when printing
4306 hashtable keys and values.
4308 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4310 * lread.c (read_integer): Use doubles (and potentially return a float
4311 number) as we do in string-to-number.
4312 (read1): Use strtol to read integers, signal errors on strtol's
4313 overflow and use floats if strtol's output is too large for
4316 2009-08-27 Eli Zaretskii <eliz@gnu.org>
4318 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4319 (make-buildobj-SH): Fix last change.
4320 (SRC): Move to before where it's first used.
4322 2009-08-27 Kenichi Handa <handa@m17n.org>
4324 * process.c (send_process): Use encode_coding_object instead of
4325 encode_coding_string to perform eol-conversion even if the string
4328 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4331 * cmds.c (Fself_insert_command): Avoid unnecessay
4332 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
4334 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4336 * callproc.c (Fcall_process): Remove always true #if.
4338 * lisp.h: Replace #if 0 code for checking with text pointing to
4339 the --enable-checking configure flag.
4341 * emacs.c (main): Mention the --enable-profiling configure flag
4342 instead of using CFLAGS.
4344 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
4346 * Makefile.in (buildobj.h): New target.
4347 (doc.o): Depend on it.
4348 (temacs${EXEEXT}): Don't generate buildobj.lst.
4349 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4350 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4351 ($(BLD)/doc.$(O)): Depend on it.
4352 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4353 provided by Eli Zaretskii.)
4354 ($(TEMACS)): Don't generate buildobj.lst.
4355 * doc.c: Include buildobj.h.
4356 (buildobj): New static variable.
4357 (Fsnarf_documentation): Use it, instead of opening and reading
4360 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
4362 * dbusbind.c (Fdbus_call_method)
4363 (Fdbus_call_method_asynchronously): Use English numeric format for
4364 timeout values in doc string.
4366 2009-08-25 Kenichi Handa <handa@m17n.org>
4368 * alloc.c (mark_char_table): New function.
4369 (mark_object): Use mark_char_table for a char-table.
4371 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4372 (CHAR_TABLE_REF): Use it.
4374 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
4376 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4377 before invoking the newly build emacs to check for load-path
4380 2009-08-22 Glenn Morris <rgm@gnu.org>
4382 * Makefile.in (bootstrap_exe): New variable.
4383 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4384 Use ${bootstrap_exe}.
4386 2009-08-22 Eli Zaretskii <eliz@gnu.org>
4388 * coding.h (encode_coding_string): Don't encode unibyte strings.
4391 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
4393 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4395 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4396 intended as hotfix only.
4397 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4399 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4401 * nsterm.m (ns_get_color): Update documentation properly for last
4402 change, and clean up loose ends in the code left by it. Fix
4403 longstanding bug with 16-bit hex parsing, and add support for
4404 yet another X11 format (rgb:r/g/b) for compatibility.
4405 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4406 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4408 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4410 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4412 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
4414 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4415 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4416 (xd_initialize, xd_pending_messages): Check, whether
4417 $DBUS_SESSION_BUS_ADDRESS is set.
4419 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4421 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4423 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4425 2009-08-20 Glenn Morris <rgm@gnu.org>
4427 * emacs.c (system-type): Doc fix.
4429 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4431 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4432 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4434 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
4436 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4438 (xd_initialize): Revert change from 2009-08-16.
4440 2009-08-18 Kenichi Handa <handa@m17n.org>
4442 * fontset.c (Ffontset_font): If a nil element is found in a
4443 font-group vector, return nil.
4445 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
4447 * process.c (status_notify): Don't perform redisplay.
4448 (Fdelete_process, list_processes_1, process_send_signal):
4449 Expliticly perform redisplay.
4450 (wait_reading_process_output): Always check process status, but
4451 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4453 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
4455 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
4456 (XFLOAT_INIT): New macro for storing a float value.
4457 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4458 * fns.c (sxhash): Copy out the value of a float in order to
4460 * dbusbind.c (xd_append_arg): Likewise.
4462 * emacs.c (main): Don't call syms_of_data twice.
4464 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
4466 * dbusbind.c (xd_initialize): Add connection file descriptor to
4467 input_wait_mask, in order to let select() detect, whether a new
4468 message has been arrived.
4469 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
4471 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
4473 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4476 * lisp.h (xd_pending_messages): Declare.
4478 * keyboard.c (readable_events): Call xd_pending_messages.
4480 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
4482 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
4484 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4486 * buffer.c (set_buffer_internal_1)
4487 (swap_out_buffer_local_variables): Check for unbound local
4488 variables (Bug#4138).
4490 2009-08-14 Eli Zaretskii <eliz@gnu.org>
4492 * process.c (create_pty): Fix last change.
4494 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
4496 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4497 (xbm_load_image): Caller changed.
4498 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
4500 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
4502 * process.c (create_pty): New function.
4503 (Fstart_process): Use it to allow Emacs to just associate a pty
4504 with the buffer. See associated change in gdb-mi.el.
4505 (list_processes_1): Deal with no program name.
4506 (start_process_unwind): Use pid == -2 to mean no process.
4508 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4510 * cmds.c (nonundocount): New global variable.
4511 (keys_of_cmds): Initialize it.
4512 (Fself_insert_command): Use it to combine upto 20 sequential chars
4513 into a single undo entry, just like the Qself_insert_command code in
4515 Call frame_make_pointer_invisible, also like the Qself_insert_command
4516 code in keyboard.c does.
4517 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4518 than its own local replacement for it.
4520 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
4522 * fns.c (concat): Don't re-set string length to its current value.
4524 * coding.h (decode_coding_string, encode_coding_string):
4527 * doprnt.c (doprnt_lisp): Delete unused function.
4528 (doprnt): Merge with doprnt1, discarding lispstrings code.
4529 * lisp.h (doprnt_lisp): Don't declare.
4531 2009-08-07 Juri Linkov <juri@jurta.org>
4533 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4535 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4537 * print.c (syms_of_print): Undo previous change.
4539 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4541 * lread.c (read1, syms_of_lread): Read hashtables back from the
4544 * print.c (print_preprocess, print_object): Print hashtables fully
4546 (syms_of_print): Provide 'hashtable-print-readable.
4548 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4550 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4552 (nsfont_open): Handle case when entity has no family.
4554 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4556 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4557 element, not a list, for match case.
4559 2009-07-28 Kenichi Handa <handa@m17n.org>
4561 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4564 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4565 font_parse_xlfd. Check font properties more rigidly.
4567 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4569 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4572 2009-07-27 Kenichi Handa <handa@m17n.org>
4574 * xfaces.c (face_with_height): Call font_clear_prop.
4576 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
4578 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4580 * xterm.c (x_term_init): Use Qx.
4582 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4584 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4585 (ns_get_color): Revert 2009-07-16 change.
4587 2009-07-25 Eli Zaretskii <eliz@gnu.org>
4589 * lread.c (syms_of_lread) <force_load_messages>: New variable.
4590 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
4592 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
4594 * coding.h (decode_coding_string, encode_coding_string):
4597 * lread.c: Rewrite 2009-07-21 changes.
4598 (load_depth): Delete.
4599 (Qload_in_progress): New variable.
4600 (load_unwind): Don't reference load_depth or load_in_progress.
4601 (Fload): Likewise; specbind Qload_in_progress instead.
4602 (init_lread): Don't initialize load_depth.
4603 (syms_of_lread): Initialize and protect Qload_in_progress.
4605 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4607 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4609 2009-07-23 Yavor Doganov <yavor@gnu.org>
4611 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4613 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4615 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
4616 Bugs 3792, 3720, 2402.
4617 (ns_lookup_indexed_color): Check for bad index.
4618 (ns_index_color): Init unused slot to 0.
4619 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4620 Bug 3714, possibly 3082.
4622 2009-07-22 Jason Rumney <jasonr@gnu.org>
4624 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4625 Position IME window at cursor (Bug#2570).
4626 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4627 (globals_of_w32fns): Dynamically load functions required above.
4629 * w32term.c (w32_draw_window_cursor): Send message to reposition
4632 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4634 * fileio.c: Revert 2009-07-16 changes.
4635 (Vauto_save_include_big_deletions): New variable.
4636 (Fdo_auto_save): Disable auto-save only if
4637 auto-save-include-big-deletions is nil.
4639 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4641 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4642 the overflowed pixels into account (Bug#3879).
4644 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
4646 * lread.c (load_depth): New variable.
4647 (Fload, load_unwind, init_lread): Set it to the load recursion
4648 depth; set load_in_progress as a simple boolean based on the
4649 current load_depth. (Bug#3892)
4651 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4653 * nsfont.m (ns_has_attribute): Remove.
4654 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4656 2009-07-18 Juri Linkov <juri@jurta.org>
4658 * process.c (Fset_process_query_on_exit_flag): Mention killing
4659 a buffer in docstring.
4661 2009-07-17 Kenichi Handa <handa@m17n.org>
4663 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4665 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4667 * nsfns.m (Fns_set_alpha): Remove function.
4668 (syms_of_nsfns): Don't defsubr it.
4670 * nsterm.m (ns_get_color): Remove incompatible color formats.
4671 (ns_color_to_lisp): Generate #rrggbb color format string.
4673 2009-07-16 Richard Stallman <rms@gnu.org>
4675 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4676 (Fset_buffer_auto_saved): Handle save_length = -2.
4678 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
4680 * xterm.c (Qx_gtk_map_stock): New var.
4682 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4683 of calling intern each time.
4685 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4687 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4690 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4692 2009-07-14 Kenichi Handa <handa@m17n.org>
4694 * font.c (font_vconcat_entity_vectors): New function.
4695 (struct font_sort_data): New member font_driver_preference.
4696 (font_compare): Check font_driver_preference.
4697 (font_sort_entities): The format of the first argument changed.
4698 (font_delete_unmatched): Likewise.
4699 (font_list_entities): The return type changed.
4700 (font_select_entity): The format of the second argument changed.
4701 (font_find_for_lface): Adjuste for the above changes.
4702 Don't suppress the checking of C even if the repertory supports it.
4703 (Flist_fonts): Adjust for the above changes.
4705 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4706 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
4707 Reject a font who has adstyle property that is different from a
4708 langname derived from registry property.
4709 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
4711 2009-07-13 Eli Zaretskii <eliz@gnu.org>
4713 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4714 local copy of dirfilename.
4716 2009-07-13 Kenichi Handa <handa@m17n.org>
4718 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4721 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4722 calling XSYMBOL (sym).
4724 2009-07-11 Eli Zaretskii <eliz@gnu.org>
4726 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4728 (directory_files_internal) [WINDOWSNT]:
4729 Bind w32-get-true-file-attributes to either t or nil, depending whether
4730 the filesystem of the directory is fast or slow.
4732 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4734 (is_slow_fs): New function.
4735 (stat): Use it to determine whether to issue more system calls to
4736 get accurate file attributes, when w32-get-true-file-attributes is
4739 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4741 * xfns.c (Fx_select_font): Remember last font selected in
4742 x_last_font_name and use that the next time. Also try the frame
4743 parameter font-parameter as default to the font dialog.
4745 2009-07-10 Kenichi Handa <handa@m17n.org>
4747 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4749 2009-07-09 Eli Zaretskii <eliz@gnu.org>
4751 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
4753 * w32.c (stat): Treat UNC file names as residing on remote
4756 2009-07-09 Kenichi Handa <handa@m17n.org>
4758 * fontset.c (fontset_find_font): Fix previous change.
4760 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
4762 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4763 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4766 2009-07-08 Kenichi Handa <handa@m17n.org>
4768 * fontset.c (fontset_find_font): Fix the logic of handling
4770 (font_for_char): Delete unused var.
4771 (generate_ascii_font_name): Delete it.
4773 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4775 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4776 (encode_coding_sjis): Fix the code range check.
4778 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
4780 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4781 (Fexpand_file_name): Copy string data properly (Bug#3772).
4783 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4785 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4788 2009-07-07 Kenichi Handa <handa@m17n.org>
4790 * character.h (unibyte_has_multibyte_table): Delete extern.
4791 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4793 * charset.c (Fset_charset_priority): Update charset_unibyte.
4794 (syms_of_charset): Initialize charset_unibyte.
4796 * character.c (unibyte_has_multibyte_table): Delete it.
4797 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4799 (multibyte_char_to_unibyte_safe): Likewise.
4800 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4802 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
4803 (x_produce_glyphs): Likewise.
4805 * .gdbinit (xcharset): Fix the treating $arg0.
4807 2009-07-04 Eli Zaretskii <eliz@gnu.org>
4809 Emulation of `getloadavg' on MS-Windows.
4810 * w32.c: Include float.h.
4811 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4812 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4813 (get_native_system_info, get_system_times): New functions.
4814 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4815 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4816 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4817 g_b_init_get_system_times, and num_of_processors.
4819 2009-07-03 Jason Rumney <jasonr@gnu.org>
4821 * w32term.c (w32_initialize): Use standard types.
4823 2009-07-03 Eli Zaretskii <eliz@gnu.org>
4825 * dired.c (Ffile_attributes): Decode user and group names by the
4826 locale's encoding. (Bug#3443)
4828 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4830 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4831 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4833 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4835 * term.c (init_tty): Remove spurious #ifdef.
4837 * m/mips.h: Mention this file is also used for netbsd.
4838 * m/pmax.h: Remove file.
4840 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4842 * xterm.h (struct x_display_info): Add invisible_cursor.
4843 (struct x_output): Add current_cursor.
4845 * xterm.c (XTtoggle_invisible_pointer): New function.
4846 (x_define_frame_cursor): Don't define cursor if invisible or the
4847 same as before. Set current_cursor.
4848 (x_create_terminal): Set toggle_invisible_pointer_hook.
4850 * xfns.c (make_invisible_cursor): New function.
4851 (x_set_mouse_color): Call make_invisible_cursor.
4853 (x_window): Set current_cursor.
4855 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4857 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4858 inserting a character.
4859 (read_avail_input): Call frame_make_pointer_visible.
4861 * frame.c (Vmake_pointer_invisible): New variable.
4862 (frame_make_pointer_invisible, frame_make_pointer_visible):
4864 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4866 * frame.h: Declare frame_make_pointer_invisible and
4867 frame_make_pointer_visible.
4868 (struct frame): Add pointer_invisible.
4870 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4872 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4873 frame isn't visible.
4874 (xg_frame_resized): If width/height is -1, get size of window
4877 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4880 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
4881 here or call change_frame_size. Just call flush_and_sync.
4882 (flush_and_sync): Reintroduce.
4884 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
4886 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
4888 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4889 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4891 * frame.h: Declare Qsticky.
4893 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4895 * nsfns.m (ns_frame_parm_handlers): Ditto.
4897 * frame.c: Declare Qsticky.
4898 (frame_parms): Add sticky.
4900 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4902 * xterm.h: Declare x_set_sticky.
4904 * xterm.c (x_set_sticky): New function.
4906 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4907 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4908 xg_tool_bar_proxy_help_callback.
4910 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4912 * frame.c: Qmaximized is new.
4913 (x_set_frame_parameters): Do not handle fullscreen specially.
4914 Only set width and height if explicitly set.
4915 (x_set_fullscreen): Handle Qmaximized.
4916 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4917 (syms_of_frame): Initialize Qmaximized.
4919 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4920 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
4922 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
4923 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4924 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
4925 set gravity to NorthWestGravity when USE_GTK.
4926 (set_wm_state): New function.
4927 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
4928 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4929 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
4930 or the case when no window manager is running. That means remove calls
4931 to x_real_positions and x_fullscreen_adjust.
4933 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4934 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4936 (xg_height_changed): New function.
4937 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
4938 and gtk_window_set_policy. Set frame gravity after parsing the
4940 (xg_update_frame_menubar, free_frame_menubar)
4941 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4942 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4943 Remove calls to xg_frame_set_char_size.
4945 2009-07-01 Kenichi Handa <handa@m17n.org>
4947 * keyboard.c (decode_keyboard_code): New function.
4948 (tty_read_avail_input): Decode the input bytes if necessary.
4950 * coding.c (setup_coding_system):
4951 Initialize coding->carryover_bytes to 0.
4952 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4955 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4957 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4959 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
4961 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
4963 2009-06-30 Jason Rumney <jasonr@gnu.org>
4965 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4967 Set user model ID if supported (bug#1849).
4969 2009-06-29 Jim Meyering <meyering@redhat.com>
4971 Remove useless if-before-xfree test.
4972 * nsfont.m (nsfont_close): Remove useless test.
4973 * term.c (delete_tty): Likewise.
4974 * w32.c (system_process_attributes): Likewise.
4975 * w32font.c (w32font_close): Likewise.
4976 * xfaces.c (x_free_gc): Likewise.
4977 * xselect.c (buffer): Likewise.
4979 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4981 * process.c (send_process): Keep decoded string in a local
4982 variable and protect it from GC. (Bug#3521)
4984 2009-06-28 Eli Zaretskii <eliz@gnu.org>
4986 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4987 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4989 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
4991 * xdisp.c (start_display, handle_face_prop)
4992 (move_it_vertically_backward, cursor_row_fully_visible_p)
4993 (redisplay_window, try_window_id, produce_image_glyph):
4994 Delete some #ifdef-ed out code chunks that are now obsolete.
4996 * xterm.c (x_update_window_begin, x_new_focus_frame)
4997 (x_scroll_bar_handle_click, handle_one_xevent)
4998 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4999 (x_make_frame_visible, x_make_frame_invisible)
5000 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5001 code chunks that are now obsolete.
5003 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
5005 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5006 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5007 for hours, when optimzation is enabled.
5008 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5009 (xd_read_message): Make them static.
5011 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5013 * term.c (turn_on_face): Allow simultaneously bold and dim
5014 terminal faces (Bug#3530).
5016 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
5018 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5020 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5021 truncation glyphs (Bug#3686).
5023 2009-06-27 Glenn Morris <rgm@gnu.org>
5025 * m/pmax.h: Restore file, with only netbsd portions.
5027 2009-06-26 David Reitter <david.reitter@gmail.com>
5029 * nsterm.m (keydown): Avoid infinite loop.
5031 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5033 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5034 the arg FORCE_SYMBOL.
5036 2009-06-25 Kenichi Handa <handa@m17n.org>
5038 * fontset.c (fontset_find_font): When a usable rfont_def is found
5039 in a fallback font-group, make it the first element of the group.
5041 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
5043 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5045 2009-06-24 Kenichi Handa <handa@m17n.org>
5047 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5049 (fontset_font): Record the availability of a font for C both in
5050 the realized fontsets of the current one and the default one.
5052 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5054 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5055 conditional, it is always defined on AIX.
5057 2009-06-23 Miles Bader <miles@gnu.org>
5059 * window.c (Vrecenter_redisplay): New variable.
5060 (syms_of_window): Initialize it.
5061 (Qtty): New extern declaration.
5062 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5064 2009-06-23 Jim Meyering <meyering@redhat.com>
5066 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5067 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
5068 pointer dereferences are guaranteed to be valid.
5070 2009-06-23 Kenichi Handa <handa@m17n.org>
5072 * emacs.c (main): Call init_font ().
5074 * font.h (Vfont_log): Extern it.
5075 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5077 * font.c (font_sort_entities, font_list_entities)
5078 (font_matching_entity, font_open_entity)
5079 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5080 (Vfont_log): Delete static.
5081 (font_log_env_checked): Delete this variable.
5082 (font_add_log): Don't check font_log_env_checked.
5083 (font_deferred_log): Check Vfont_log.
5084 (init_font): New function.
5086 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5088 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5090 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5092 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5094 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5095 (face_for_char): Don't call font_deferred_log here.
5096 (font_for_char): Likewise.
5098 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
5100 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5101 rather than its background_width for drawing the overline and
5102 underline (Bug#489).
5104 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5105 rather than its background_width for drawing the overline and
5106 underline (Bug#489).
5107 (xg_default_icon_file): New variable.
5108 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5109 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
5111 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5112 (load_overlay_strings): Remove externs.
5113 (fast_find_position): Function deleted.
5114 (mouse_face_from_buffer_pos): New function, based on
5115 fast_find_position. Correctly handle before-strings,
5116 display-strings, and after-strings (Bug#1220).
5117 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5119 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5121 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
5122 (move_it_in_display_line_to, move_it_in_display_line_to)
5123 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5125 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5129 2009-06-21 Jason Rumney <jasonr@gnu.org>
5131 * w32term.c (keyboard_codepage): New static variable.
5132 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5133 (w32_read_socket) [WM_CHAR]: Use it to decode character
5135 (w32_initialize): Initialize it.
5136 (codepage_for_locale): New function.
5138 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
5140 * process.c (status_message): Pass Faset index argument as a lisp
5141 object, so as to work with USE_LISP_UNION_TYPE.
5143 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5145 * coding.c (Ffind_coding_systems_region_internal):
5146 Cache checked characters.
5148 2009-06-18 Kenichi Handa <handa@m17n.org>
5150 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
5152 2009-06-18 Andreas Schwab <aschwab@redhat.com>
5154 * xdisp.c (redisplay_internal): Check that the frame is still
5155 live after redisplay of its windows.
5156 (redisplay_windows): Check that the window is still live.
5158 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5160 * coding.c (detect_coding_utf_16): Fix previous change.
5162 2009-06-16 Kenichi Handa <handa@m17n.org>
5164 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5165 UTF-16 by checking the dispersion of Eth and Oth bytes.
5167 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5169 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5171 2009-06-15 Kenichi Handa <handa@m17n.org>
5173 * process.c (status_message): Fix previous change. Be sure to
5174 decode a localized string.
5176 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5178 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5179 add comment explaining why.
5181 2009-06-14 Sidney Markowitz <sidney@sidney.com>
5183 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5185 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5187 * nsfont.m (ns_attribute_value): Remove.
5188 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5189 (ns_has_attribute): Shrink the normal range.
5190 (ns_findfonts): Don't worry about requested spec in determining
5192 (ns_get_covering_families): Retain scriptToFamilies.
5194 2009-06-14 Seiji Zenitani <zenitani@mac.com>
5196 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5198 2009-06-11 Kenichi Handa <handa@m17n.org>
5200 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5201 overhang for the static composition case.
5203 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5205 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5206 overhang for the automatic composition case.
5208 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5211 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
5213 * xdisp.c (get_next_display_element): When handling wrap-prefix
5214 and line-prefix, treat \n as a control character (bug#3502).
5216 2009-06-10 Kenichi Handa <handa@m17n.org>
5218 * font.c (font_parse_family_registry): Fix for one-char foundry.
5219 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5221 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5223 * process.c (status_message): Fix handling of multibyte signal
5226 2009-06-09 Jim Meyering <meyering@redhat.com>
5228 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5229 color name is missing.
5231 2009-06-09 Kenichi Handa <handa@m17n.org>
5233 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5234 FROM-CODE and TO-CODE are codepoints of CHARSET.
5236 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5238 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5240 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5242 Changes to support :script/:lang/:otf in NS font driver.
5243 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5244 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5245 indicate not part of font driver interface, and change callers.
5246 (ns_get_family): Remove pointless null check.
5247 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5248 ns_spec_to_descriptor, ns_descriptor_to_entity.
5249 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5250 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5251 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5252 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5253 (ns_get_req_script, ns_accumulate_script_ranges)
5254 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5256 (nsfont_list, nsfont_match): Use ns_findfonts.
5257 (nsfont_open): Use font descriptor instead of traits.
5258 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5259 (dump_glyphstring): Rename to ns_dump_glyphstring.
5261 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5263 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5265 * fontset.c (fontset_from_font): Remove NS-specific code.
5267 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
5269 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5272 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
5274 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
5276 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5278 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5280 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
5282 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5283 account for the overflowing of newlines into the last glyph on the
5284 display line (Bug#3482).
5286 2009-06-05 David Reitter <david.reitter@gmail.com>
5288 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5289 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
5290 Fns_selection_exists_p, Fns_selection_owner_p.
5292 2009-06-03 Jason Rumney <jasonr@gnu.org>
5294 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5295 available. (Bug#3379)
5297 2009-05-29 Kenichi Handa <handa@m17n.org>
5299 * coding.c (get_translation_table):
5300 Check Venable_character_translation.
5302 2009-05-26 David Reitter <david.reitter@gmail.com>
5304 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5305 (x_make_frame_visible): Move frame to front rather than calling
5307 (keyDown:): Do not swallow events that aren't re-sent if frame
5309 (drawRect:): Do not set visibility/iconified flags because
5310 drawRect may be called by NSView even if the frame is hidden.
5312 * nsfns.m (Fx_create_frame): Follow other ports in
5313 determining visibility; default to t. Ensure async_visible is set.
5315 2009-05-23 Eli Zaretskii <eliz@gnu.org>
5317 * dired.c (Ffile_attributes): Doc fix.
5319 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
5321 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5323 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5325 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5326 and xfont_scratch_props.
5327 (syms_of_xfont): Do it here instead.
5328 (xfont_find_ccl_program): Delete, unused.
5329 (xfont_open): Delete unused var `i'.
5331 2009-05-21 Kenichi Handa <handa@m17n.org>
5333 * fontset.c (Qlatin): Don't make it static.
5335 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5337 (xfont_scripts_cache, xfont_scratch_props): New variables.
5338 (Qlatin, Vscalable_fonts_allowed): Extern it.
5339 (xfont_list_pattern): Argument changed. Callers changed.
5340 Check Vscalable_fonts_allowed. Check the support of a script.
5341 (xfont_list): Don't reject a font spec with :script property.
5342 (xfont_has_char): Fix setting of encoding.
5343 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5344 xfont_scratch_props.
5346 2009-05-19 Kenichi Handa <handa@m17n.org>
5348 * font.c (font_sort_entities): Rename from font_sort_entites.
5351 2009-05-18 Kenichi Handa <handa@m17n.org>
5353 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5355 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5357 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5358 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5360 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5362 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5363 (x_delete_terminal): Dissociate resource database from display and
5364 then call XrmDestroyDatabase before closing display.
5366 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5368 * nsterm.m (ns_read_socket): Remove unused variable.
5369 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5370 whether selected frame is viable before raising it (based on patch
5371 by David Reitter), and improve commentary.
5372 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
5374 2009-05-15 Kenichi Handa <handa@m17n.org>
5376 * font.c (Ffont_spec): Check arguments.
5378 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
5380 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5381 weight when testing attributes (Bug#3282).
5383 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5385 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5386 what we expect to get in the next ConfigureNotify event.
5388 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5389 before Xft one (Bug#1696).
5391 2009-05-07 David Reitter <david.reitter@gmail.com>
5393 * nsfns.m (Fx_display_planes): Compute bitplanes using
5394 NSBitsPerPixelFromDepth (Bug#3207).
5396 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
5398 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5400 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
5402 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5404 2009-05-07 David Reitter <david.reitter@gmail.com>
5406 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5407 Respect mouse face background.
5409 2009-05-07 David Reitter <david.reitter@gmail.com>
5411 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5412 Mouse movement/highlight: bracket drawing operations
5413 in ns_update_begin and ns_update_end.
5415 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5417 * nsfns.m (ns_get_screen): Rewrite.
5418 Don't presume selected-frame is of type `ns'.
5420 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5423 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5425 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5427 * keyboard.h (add_user_signal): Fix typo in extern.
5429 * lisp.h (add_user_signal): Remove extern.
5431 * unexelf.c (unexec): Consider a section to precede the .bss section
5432 if its addresses overlap that of .bss.
5433 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5434 instead of dumping process.
5436 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5438 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5440 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5442 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5444 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5446 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5449 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5451 * process.c (read_process_output): Make sure the current buffer is
5454 * coding.c (record_conversion_result): Don't modify
5455 Vlast_code_conversion_error for successful result.
5456 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5458 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5460 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
5461 (load_charset_map): Remove unnecessary code.
5463 2009-04-30 David Reitter <david.reitter@gmail.com>
5465 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
5468 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
5470 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5472 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5473 face_at_buffer_position.
5474 (face_before_or_after_it_pos, get_next_display_element)
5475 (note_mouse_highlight): Update face_at_buffer_position call.
5477 * term.c (term_mouse_highlight):
5478 * msdos.c (IT_note_mouse_highlight):
5479 * fontset.c (Finternal_char_font):
5480 * font.c (font_at, font_range): Update face_at_buffer_position call.
5482 * dispextern.h (face_at_buffer_position): Update prototype.
5484 2009-04-30 Kenichi Handa <handa@m17n.org>
5486 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
5488 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5490 * callproc.c (Fcall_process): Fix GC protection. Make sure
5491 current buffer is always restored.
5493 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5495 * atimer.c (init_atimer): Also clear stopped_atimers.
5497 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5499 * process.c (create_process): Clean up merger residues of
5502 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
5504 * lread.c (Vread_circle): New variable.
5505 (read1): Disable recursive read if Vread_circle is nil.
5507 2009-04-29 Kenichi Handa <handa@m17n.org>
5509 * fontset.h (set_default_ascii_font): Delete extern.
5511 * fontset.c (set_default_ascii_font): Delete this unused function.
5513 * frame.c (x_set_font): When ARG is a font-object, check if the
5514 font-object matches with the ASCII font-spec of the frame's
5515 fontset. If not, create a new fontset for the frame. (Bug #3075)
5517 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5519 * fns.c (Flocale_info): Protect vector from GC during decoding.
5521 * process.c (Fstart_process): Protect argv strings from GC during
5524 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5526 * sysdep.c: Include <ctype.h>.
5528 2009-04-27 David Reitter <david.reitter@gmail.com>
5530 * nsfont.m (nsfont_open): Remove unused variable shrink.
5531 Remove commented-out code.
5533 2009-04-26 Johan Bockgård <bojohan@gnu.org>
5535 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5537 2009-04-25 Jason Rumney <jasonr@gnu.org>
5539 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5541 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5543 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5544 Swap bytes in short integer if fringe bitmap width > 8.
5546 2009-04-23 Kenichi Handa <handa@m17n.org>
5548 * xfaces.c (Fx_list_fonts): If a font size is specified in
5549 PATTERN, set it in returned scalable fonts.
5551 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
5553 * keyboard.c (Fset_input_meta_mode): Doc fix.
5555 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5557 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
5559 * coding.c (Fterminal_coding_system): Doc fix.
5561 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5562 (Fx_display_pixel_height, Fx_display_planes)
5563 (Fx_display_color_cells, Fx_server_max_request_size)
5564 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5565 (Fx_display_mm_height, Fx_display_mm_width)
5566 (Fx_display_backing_store, Fx_display_visual_class)
5567 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5568 Doc fixes, replacing "terminal id" with "terminal object".
5569 (check_x_display_info): Handle terminal objects instead of
5572 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5573 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
5574 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5575 Doc fixes, replacing "terminal id" with "terminal object".
5577 2009-04-21 Kenichi Handa <handa@m17n.org>
5579 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
5580 (font_score): Check AVGWIDTH too.
5582 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5584 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5585 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
5587 2009-04-19 Jason Rumney <jasonr@gnu.org>
5589 The following changes fix Bug#3005 for wide glyphs on each platform,
5590 without reintroducing Bug#1258 for stretch glyphs.
5592 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5593 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5594 get_phys_cursor_geometry.
5596 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
5597 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5598 using get_phys_cursor_geometry.
5600 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5601 correctly calculated.
5603 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5605 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5606 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
5607 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5610 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5612 * font.c (font_put_frame_data): Use xfree instead of free.
5614 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
5616 * w32font.c (Qja, Qko): Remove declarations.
5617 (syms_of_w32font): Don't DEFSYM them.
5619 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
5621 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5623 * font.h (Qja, Qko): Extern them.
5625 * ftfont.c (Qja, Qko): Remove declarations.
5627 * xfont.c (Qja, Qko): Remove declarations.
5629 2009-04-17 Kenichi Handa <handa@m17n.org>
5631 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5632 string from a vector to handle Latin-1 characters correctly.
5634 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5635 entity even if the cache hits.
5637 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5639 * search.c (boyer_moore): Use zero as marker value for a possible
5640 match instead of depending on overflow behavior. (Bug#2844)
5642 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5643 * lisp.h: Adjust prototypes.
5645 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
5647 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5650 2009-04-16 Kenichi Handa <handa@m17n.org>
5652 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
5654 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5657 * ftfont.c (Qja, Qko): Don't make them static.
5658 (enum ftfont_cache_for): New enum.
5659 (fc_charset_table): Undo the previous change.
5660 (ftfont_get_latin1_charset): Delete it.
5661 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5662 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
5663 non-scarable font, try to get AVERAGE_WIDTH.
5664 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5665 Change ft_face_cache from a list of a hash-table. Don't check
5666 `ja' and `ko' adstyle here.
5667 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5668 FTFONT_CACHE_FOR_CHARET.
5669 (ftfont_get_charset): Undo the previous change.
5670 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
5671 (ftfont_close): Likewise.
5672 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5674 * font.c (font_sort_entites): Change the meaning of the arg
5675 BEST-ONLY. Don't optimize for VEC of lenght 1.
5676 (font_select_entity): Just return the value of font_sort_entites.
5678 * xfaces.c (merge_face_vectors): Reflect font properties in
5679 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5680 font_clear_prop if a face attribute doesn't change.
5682 * charset.h (charset_ksc5601): Extern it.
5684 * charset.c (charset_ksc5601): New variable.
5685 (Fdefine_charset_internal): Set charset_ksc5601.
5686 (init_charset_once): Initialize charset_ksc5601 to -1.
5688 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5690 * fileio.c (history_delete_duplicates): Remove unused declaration.
5692 * callint.c (history_delete_duplicates): New declaration.
5693 (Fcall_interactively): Remove command history duplicates when
5694 history_delete_duplicates is true.
5696 2009-04-14 Eli Zaretskii <eliz@gnu.org>
5698 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5700 2009-04-14 Kenichi Handa <handa@m17n.org>
5702 * font.c (Ffont_info): Fix docstring. Fix the second element of
5703 the returned value (bug#2949).
5705 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
5707 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5709 2009-04-14 Kenichi Handa <handa@m17n.org>
5711 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5712 encoding charset is ascii_compatible.
5714 * charset.c (Fdefine_charset_internal): Make charset
5715 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5716 code_offset is 0, and covers all ASCII characters.
5718 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5720 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5721 (ns_string_to_pasteboard_internal):
5722 * nsmenu.m (process_dialog):
5723 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5724 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5725 * lisp.h (Fx_load_color_file): Declare.
5727 2009-04-13 Kenichi Handa <handa@m17n.org>
5729 * font.c (font_delete_unmatched): Preserve the order of list elements.
5730 (font_select_entity): Suppress the code to optimize for the same
5732 (font_load_for_lface): Get a font that supports at least ASCII
5735 * ftfont.c (Qja, Qko): New variables.
5736 (fc_charset_table): Delete uniquifier data for iso8859-1.
5737 (ftfont_get_latin1_charset): New function.
5738 (get_adstyle_property): New function.
5739 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5741 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5742 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5744 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
5745 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
5746 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5748 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5749 (syms_of_ftfont): DEFSYM Qja and Qko.
5751 2009-04-09 Kenichi Handa <handa@m17n.org>
5753 * charset.c (map_charset_chars): For a charset of `superset'
5754 method, fix calculation of code range.
5756 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5757 from the list of extra properties.
5758 (font_clear_prop): Be sure to delete `:name' font property.
5760 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5762 * dispnew.c (redraw_overlapping_rows): Fix detection of
5763 overlapping for topmost and bottommost rows.
5765 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
5767 2009-04-06 Jason Rumney <jasonr@gnu.org>
5769 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5771 2009-04-06 Kenichi Handa <handa@m17n.org>
5773 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5775 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5777 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5779 * ftfont.c (ftfont_open): Fix checking of the return value of
5780 FT_Load_Char. Fix setting font->underline_thickness.
5782 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
5784 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5785 (Fterminal_parameters, Fterminal_parameter)
5786 (Fset_terminal_parameter): In doc string, refer to terminal
5787 objects rather than terminal ids.
5789 2009-04-04 Eli Zaretskii <eliz@gnu.org>
5791 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5792 ret_lim_data. (Bug#2867)
5794 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
5796 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5797 so they don't get wider than the window, matching 2006-01-23
5798 change to the partner function in xdisp.c (Bug#2800).
5800 2009-04-03 Kenichi Handa <handa@m17n.org>
5802 * print.c (print_object): Make each lowest sub_char_table start a
5803 new line (Bug#2866).
5805 2009-04-02 Kenichi Handa <handa@m17n.org>
5807 * fontset.c (fontset_font): Record no-font when a fontset
5808 explicitly tells not to try another font-specs.
5810 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5812 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5814 2009-03-30 Kenichi Handa <handa@m17n.org>
5816 * fontset.c (fontset_from_font): Specify only registry in a
5817 font-spec for all characters supported by that registry.
5819 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5820 even if HAVE_M17N_FLT is not defined.
5822 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5824 * ftfont.c: Conditionalize prototyping and use of
5825 ftfont_variation_glyphs.
5827 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5829 * frame.c (delete_frame): Work around compiler bug.
5831 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5832 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5833 Some more EMACS_INT.
5834 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5836 * xdisp.c (dump_glyph): Fix typo.
5838 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5839 (adjust_markers_gap_motion, adjust_markers_for_delete)
5840 (adjust_markers_for_insert, adjust_point)
5841 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5842 (make_gap, copy_text, count_size_as_multibyte, insert)
5843 (insert_and_inherit, insert_before_markers)
5844 (insert_before_markers_and_inherit, insert_1)
5845 (count_combining_before, count_combining_after, insert_1_both)
5846 (insert_from_string, insert_from_string_before_markers)
5847 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5848 (insert_from_buffer_1, adjust_after_replace)
5849 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5850 (replace_range_2, del_range, del_range_1, del_range_byte)
5851 (del_range_both, del_range_2, modify_region)
5852 (prepare_to_modify_buffer, signal_before_change)
5853 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5854 for buffer positions and sizes.
5855 * lisp.h: Adjust prototypes accordingly.
5857 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5858 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5859 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5861 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5863 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5865 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5866 lines and columns so we keep the same pixel height and width.
5868 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5869 the property _NET_WM_STATE has changed.
5870 (x_handle_net_wm_state): New function to update frame parameter
5872 (x_term_init): Initialize atoms for _NET_WM_STATE.
5874 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5876 2009-03-27 Kevin Ryde <user42@zip.com.au>
5878 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5879 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5880 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5881 (Fgpm_mouse_stop): Pass that new parameter.
5882 * termhooks.h (close_gpm): Adjust prototype.
5884 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5886 * lisp.h (Fx_focus_frame): Declare.
5888 * callint.c (Fcall_interactively): For '^' just delegate the work to
5889 handle-shift-selection.
5890 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5892 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
5894 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5896 * data.c (Qinteractive_form): New variable.
5897 (Finteractive_form): Use it.
5899 * eval.c (Fcommandp): Use Qinteractive_form.
5901 2009-03-24 Jason Rumney <jasonr@gnu.org>
5903 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5904 Calculate total size precisely. Decode environment variables
5905 before substituting. (Bug#38)
5907 2009-03-24 Kenichi Handa <handa@m17n.org>
5909 * font.c (find_font_encoding): Return Qnil for unsupported
5910 encoding (Bug#2722).
5912 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5914 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5917 2009-03-22 Alan Mackenzie <acm@muc.de>
5919 * callint.c (Finteractive): Clarify the doc string - even
5920 promptless elements need \n separators.
5922 2009-03-22 Jason Rumney <jasonr@gnu.org>
5924 * w32term.c (syms_of_w32term): Doc fix for
5925 x-use-underline-position-properties.
5927 2009-03-21 Eli Zaretskii <eliz@gnu.org>
5929 * w32.c (getpwuid): Change argument type to unsigned.
5930 (struct w32_id): Change type of `rid' member to unsigned.
5931 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5932 argument ID to unsigned. All callers changed.
5933 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5935 2009-03-20 Eli Zaretskii <eliz@gnu.org>
5937 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5938 negative, produce a float value.
5940 * dired.c (make_uid, make_gid): New functions.
5941 (Ffile_attributes): Use them to avoid negative UID and GID.
5943 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
5945 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5946 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5947 Fix typos in docstrings.
5949 2009-03-19 Kenichi Handa <handa@m17n.org>
5951 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
5952 changed, use font_load_for_lface to get a new font object.
5953 Call free_realized_fontset after handling ASCII font change.
5955 * frame.c (x_set_font): Handle the case that ARG is a cons.
5957 2009-03-19 Glenn Morris <rgm@gnu.org>
5959 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5961 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
5963 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5965 2009-03-19 Kenichi Handa <handa@m17n.org>
5967 * charset.c (load_charset_map_from_file): When a mapfile can't be
5968 loaded, signal an error.
5970 2009-03-18 Eli Zaretskii <eliz@gnu.org>
5972 * dired.c (Ffile_attributes): Make sure UID and GID are always
5973 positive, even if the value is too large for a positive EMACS_INT.
5976 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5978 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5980 * xmenu.c (xdialog_show): Move Fredisplay call ...
5981 (Fx_popup_dialog): ... here.
5983 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5985 * dired.c (file_name_completion): Disable the first optimization just
5986 installed, since it is not implemented correctly.
5988 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5990 * dired.c (file_name_completion): Check completion-ignored-extensions
5991 only if the entry can affect bestmatch.
5992 Stop the search early, as Ftry_completion already does.
5994 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
5996 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
5998 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
6000 * keyboard.c (parse_menu_item): Don't display remappings as menu
6001 equivalent bindings (Bug#788).
6003 2009-03-15 Jason Rumney <jasonr@gnu.org>
6005 * w32term.h (WM_EMACS_PAINT): New message.
6006 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6007 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6008 before passing to lisp thread. (Bug#950)
6010 2009-03-14 David Reitter <david.reitter@gmail.com>
6012 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6013 variable as it was never reset.
6014 (ns_term_init): Remove initialization of Lisp-settable defaults
6015 and ns_expand_space.
6016 (-setPanelFromDefaultValues): Remove ns_expand_space.
6017 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6018 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
6019 i.e. no additional spacing, similar to Carbon port.
6021 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6022 * nsfns.m (ns-popup-prefs-panel): Remove.
6024 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6026 * sound.c (alsa_configure): Remove call to deprecated
6027 snd_pcm_sw_params_set_xfer_align.
6029 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
6031 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6032 after clicking in a detached tool bar.
6033 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6035 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6037 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6038 int/Lisp_Object mixup).
6040 2009-03-13 Kenichi Handa <handa@m17n.org>
6042 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
6043 Handle NAME nil and t correctly. Callers changed.
6044 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6045 (set_fontset_font): Change ARG to a vector. Handle range_list in
6047 (Fset_fontset_font): Fix the case that TARGET is both a script
6048 name and charset name. Adjust the arg to set_fontset_font for
6050 (fontset_from_font): Fix previous change.
6051 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
6052 entry. If FONTSET is the default fontset, don't set the extra
6053 slot of the returning char-table.
6055 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
6057 * nsfns.m (Fx_close_connection): Doc fix.
6058 (Fns_do_applescript): Reflow docstring.
6059 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6060 (Fx_display_pixel_width, Fx_display_pixel_height)
6061 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6062 Fix typos in docstrings.
6063 (Fns_set_alpha): Fix typos in error messages.
6065 2009-03-12 David Reitter <david.reitter@gmail.com>
6067 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
6068 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6069 were used for such events.
6071 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6072 (toggleToolbar, performDragOperation, runHelp): Use it.
6074 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
6075 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6077 2009-03-11 Kenichi Handa <handa@m17n.org>
6079 * font.h (font_open_by_spec): Extern it.
6081 * font.c (font_open_by_spec): New function.
6082 (font_open_by_name): Use font_open_by_spec.
6084 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6085 fontset of the frame.
6087 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6088 modify the default font of frames that use this fontset.
6089 (num_auto_fontsets): New variable.
6090 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6091 name. Be sure to set FONTSET_ASCII to the correct font name.
6092 (update_auto_fontset_alist): New function.
6094 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
6096 * makefile.w32-in: Update dependencies.
6098 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6100 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6102 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6104 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6106 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
6108 * lread.c (Feval_buffer): Doc fix.
6110 2009-03-09 Kenichi Handa <handa@m17n.org>
6112 * charset.c (Qfile_name_handler_alist): Extern it.
6113 (load_charset_map_from_file): Temporarily bind
6114 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6116 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
6118 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6119 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
6121 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6123 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6124 (x_set_window_size): Change back to calculated method of setting
6125 toolbar height under Cocoa. (Bug#2546)
6126 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6127 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6129 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6131 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6132 accelerator in parens under GNUstep.
6134 2009-03-06 Kenichi Handa <handa@m17n.org>
6136 These changes are to detect incorrect composition sequence without
6137 looking ahead the source. (Bug#2370)
6139 * coding.h: Include "composite.h".
6140 (enum compisition_state): New enum.
6141 (struct compisition_status): New struct.
6142 (struct iso_2022_spec): New member cmp_status.
6143 (struct emacs_mule_spec): New struct.
6144 (struct coding_system): New members ctext_extended_segment_len and
6145 embedded_utf_8. Change the union member
6146 spec.emacs_mule_full_support to spec.emacs_mule.
6148 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6149 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
6150 (MAX_ANNOTATION_LENGTH): Define to 5.
6151 (ADD_COMPOSITION_DATA): New arg nbytes.
6152 (emacs_mule_char): New arg cmp_status.
6153 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6154 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6155 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6156 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6157 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6158 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6159 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6160 (EMACS_MULE_COMPOSITION_END): New macro.
6161 (emacs_mule_finish_composition): New function.
6162 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6163 (decode_coding_emacs_mule): Avoid long looking ahead while
6164 handling composition.
6165 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6166 (ENCODE_COMPOSITION_RULE): New macro.
6167 (finish_composition): New function.
6168 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6169 (DECODE_COMPOSITION_START): New implementation.
6170 (DECODE_COMPOSITION_END): Likewise.
6171 (STORE_COMPOSITION_RULE): New macro.
6172 (decode_coding_iso_2022): Avoid long looking ahead while handling
6173 composition, CTEXT extended segment, and embedded UTF-8.
6174 (setup_coding_system): For a coding of type iso-2022, reset
6175 CODING_ISO_EXTSEGMENT_LEN (coding) and
6176 CODING_ISO_EMBEDDED_UTF_8 (coding).
6177 (get_translation): Delete arguments last_block, from_nchars,
6178 to_nchars. Callers changed.
6179 (produce_chars): Don't modify charbuf. Adjusted for the change of
6181 (produce_composition): Adjust for the new annotation sequence.
6182 (handle_composition_annotation): Likewise.
6183 (consume_chars): Adjust for the change of get_translation.
6185 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6187 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
6189 2009-03-05 Kenichi Handa <handa@m17n.org>
6191 * font.c (font_select_entity): New function.
6192 (font_find_for_lface): Use font_select_entity to select a font.
6194 * fontset.c (fontset_find_font): If a font found without
6195 restricting to the characters C doesn't support C, try to find a
6196 font with C restriction.
6198 2009-03-04 Nikolaj Schumacher <me@nschum.de>
6200 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
6202 2009-03-04 Jason Rumney <jasonr@gnu.org>
6204 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
6205 characters that have already been read. (Bug#2569)
6207 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6208 Log an error message if check_image_size failed.
6209 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
6210 (gs_load): Mention max-image-size in size error message. (Bug#2560)
6212 2009-03-02 Eli Zaretskii <eliz@gnu.org>
6214 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6215 when decoding process output.
6217 2009-03-01 Richard M Stallman <rms@gnu.org>
6219 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6221 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6223 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6225 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6226 (decode_coding_emacs_mule, decode_coding_iso_2022)
6227 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6228 (decode_coding_raw_text, decode_coding_charset)
6229 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6230 Honor inhibit-eol-conversion. (Bug #2186)
6232 2009-02-28 Jason Rumney <jasonr@gnu.org>
6234 * coding.c (detect_coding_charset): If not checking latin extra,
6235 fail on characters between 0x80 and 0xA0. (Bug#2354)
6237 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6239 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
6240 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
6242 2009-02-27 Glenn Morris <rgm@gnu.org>
6244 * callint.c (Finteractive): Doc fix.
6246 2009-02-27 Kenichi Handa <handa@m17n.org>
6248 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6250 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
6252 * font.c (font_style_to_value): Set value for unknown symbols to
6254 (weight_table, slant_table, width_table): Treat "unspecified" as
6257 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
6259 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6261 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
6263 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6264 error as soon as a recursive load is detected.
6266 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6268 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6271 2009-02-24 Kenichi Handa <handa@m17n.org>
6273 * fontset.c (fontset_find_font): Fix the condition for checking
6276 2009-02-24 Glenn Morris <rgm@gnu.org>
6278 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6279 whitespace that confuses documentation.
6281 2009-02-23 Miles Bader <miles@gnu.org>
6283 * process.c (Flist_system_processes, Fprocess_attributes)
6284 (syms_of_process): Rename `system-process-attributes' to
6285 `process-attributes'.
6287 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6289 * coding.h (struct coding_system): Make safe_charsets a pointer to
6291 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6293 (SAFE_CHARSET_P): Likewise.
6294 (setup_iso_safe_charsets): Properly setup safe_charsets.
6295 (Fdefine_coding_system_internal): Likewise.
6296 (setup_coding_system): Likewise. Remove unneeded casts.
6297 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6298 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6301 * insdel.c (del_range_2): Don't modify gap contents when called
6302 from decode_coding_object. (Bug#1809)
6304 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
6306 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6308 (Ftype_of): Recognize font objects.
6310 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6312 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6315 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6317 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6318 async_iconified. Based on a patch by Christian Lynbech
6319 <christian.lynbech@tieto.com>.
6320 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6322 2009-02-20 Glenn Morris <rgm@gnu.org>
6324 * syntax.c (Fskip_chars_forward): Fix doc typo.
6326 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
6328 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6330 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
6332 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6334 2009-02-19 Kenichi Handa <handa@m17n.org>
6336 * coding.c (detect_coding): Preserve coding->mode.
6337 Don't overflow coding->carryover. (Bug#2370)
6339 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6341 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6343 2009-02-18 Kenichi Handa <handa@m17n.org>
6345 * font.c (font_check_otf_features): Fix handling of `nil' element.
6346 (Ffont_spec): Describe :lang and :otf in the docstring.
6348 2009-02-16 Andreas Schwab <schwab@suse.de>
6350 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6353 2009-02-16 Kenichi Handa <handa@m17n.org>
6355 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
6358 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
6360 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
6362 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6363 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6365 2009-02-14 Eli Zaretskii <eliz@gnu.org>
6367 * msdos.c (MAX_SCREEN_BUF): New macro.
6368 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6369 Encode the entire run of glyphs sharing the same face, instead of
6370 doing that one glyph at a time (fixes a bug with displaying
6371 double-size characters).
6373 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6375 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6377 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6378 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
6379 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
6381 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
6382 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
6384 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6386 * keyboard.c (adjust_point_for_property): Allow stopping between two
6389 2009-02-12 Jason Rumney <jasonr@gnu.org>
6391 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6392 (add_font_entity_to_list): Call check_face_name even when family
6395 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6396 Release DC when finished. Use NULL window to refer to desktop.
6397 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
6399 * w32font.c (add_font_entity_to_list): Fix check for substituted
6400 raster fonts. (Bug#2219)
6402 2009-02-12 Kenichi Handa <handa@m17n.org>
6404 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6405 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6406 (autocmp_chars): Use fast_looking_at. Don't compose more
6407 characters than MAX_COMPOSITION_COMPONENTS.
6408 (find_automatic_composition): While looking forward and backward,
6409 check static composition. Fix where to stop looking forward.
6410 (composition_adjust_point): Fix checking of static composition.
6411 (Fcomposition_get_gstring): Pay attention to
6412 MAX_COMPOSITION_COMPONENTS.
6414 * lisp.h (fast_looking_at): Extern it.
6416 * search.c (fast_looking_at): New function.
6418 * term.c (encode_terminal_code): Adjust for the change of
6419 <struct glyph>.u.cmp.to.
6420 (append_composite_glyph): Likewise.
6422 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
6423 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6425 (append_composite_glyph): Adjust for the change of
6426 <strcut glyph>.u.cmp.to.
6428 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
6430 * casetab.c (init_casetab_once):
6431 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6432 * font.c (font_update_lface):
6433 * fontset.c (Fnew_fontset):
6434 * ftfont.c (ftfont_drive_otf):
6435 * xfont.c (xfont_open):
6436 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6438 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6440 * fileio.c (Fwrite_region): !NILP -> CONSP.
6442 2009-02-10 Andreas Schwab <schwab@suse.de>
6444 * process.c (send_process): Properly relocate pointer into data
6445 when using encoded data. (Bug#2272)
6447 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6449 * coding.c (detect_coding_charset): Fix previous change.
6451 2009-02-08 Jason Rumney <jasonr@gnu.org>
6453 * w32fns.c (w32_hide_hourglass): Handle case where frame
6454 disappeared while hourglass was displayed. (Bug #2193)
6456 2009-02-07 Andreas Schwab <schwab@suse.de>
6458 * unexelf.c (unexec): Fix error message.
6460 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6462 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
6463 when modal window is active. (Bug #2152)
6464 (applicationShouldTerminate:): Remove now-unneeded while loop
6465 around NSRunAlertPanel.
6467 * nsmenu.m (popupSession): New file-global variable.
6468 (pop_down_menu): End the popupSession before closing dialog.
6469 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6470 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6471 don't query NSApp for events (just sleep instead).
6473 2009-02-07 Eli Zaretskii <eliz@gnu.org>
6475 * coding.c (syms_of_coding) <translation-table-for-input>:
6476 Modify doc string to discourage use for character code unification.
6478 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6480 * atimer.c (run_timers): Update pending_atimers.
6482 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
6484 * image.c (svg_load_image): Fix last change.
6486 * xfns.c (Fx_create_frame): Signal an error if no font is
6489 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
6491 * character.c (syms_of_character) <script-representative-chars>:
6492 Fix typo in docstring.
6494 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6496 * nsmenu.m (pop_down_menu): New function.
6497 (ns_popup_dialog): Call it on unwind.
6498 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6499 call timer_check() (Bug#2154).
6500 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6501 handling_signal is set.
6502 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6504 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
6506 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6508 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6510 * keyboard.c (poll_for_input_1, handle_async_input):
6511 Set handling_signal under HAVE_NS.
6513 2009-02-04 Glenn Morris <rgm@gnu.org>
6515 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6517 2009-02-04 Kenichi Handa <handa@m17n.org>
6519 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6521 * charset.c (Fchar_charset): New optional arg restriction.
6523 * coding.h (coding_system_charset_list): Extern it.
6525 * coding.c (coding_system_charset_list): New function.
6527 * composite.c: Include coding.h and termhooks.h.
6528 (composition_gstring_p): Fix for the terminal case.
6529 (composition_gstring_width): Likewise.
6530 (fill_gstring_body): Likewise.
6531 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6533 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6534 is within a composition.
6535 (Fcomposition_get_gstring): Fix the terminal case.
6537 * term.c (encode_terminal_code): Fix handling of composition.
6538 (produce_composite_glyph): For static composition, get pixel_width
6539 from struct composition.
6541 2009-02-02 Andreas Schwab <schwab@suse.de>
6543 * unexelf.c (unexec): Handle unaligned bss offset.
6545 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6547 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6548 XT,w32read_socket changes to ns_read_socket.
6550 * keyboard.c (handle_interrupt): Don't call
6551 quit_throw_to_read_char() under NS.
6553 * blockinput.h: Remove NS-specific code.
6555 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6557 * dispnew.c (window_change_signal): Don't try to get the size of a
6558 suspended tty frame.
6559 * term.c (Fresume_tty): Resize if the size has changed while the
6562 * alloc.c (mark_stack): Properly conditionalize previous change.
6564 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6566 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6567 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6568 Remove; this code is not used on Windows.
6570 2009-01-30 Eli Zaretskii <eliz@gnu.org>
6572 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6573 EOLs that also has stray ^M characters.
6575 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6577 * atimer.c (run_timers, alarm_signal_handler):
6578 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6579 * w32inevt.c (w32_console_read_socket):
6580 * w32term.c (w32_read_socket):
6581 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6583 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
6585 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6586 Initialize it as a relative filename pattern.
6587 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6588 (Fcall_process_region): Simplify temp file creation using
6589 temporary-file-directory.
6591 2009-01-29 Eli Zaretskii <eliz@gnu.org>
6593 * msdos.c: Rename pending_signals to msdos_pending_signals.
6594 (sig_suspender, sigprocmask): Adjust.
6596 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
6598 * keyboard.c (pending_signals): New var.
6599 (poll_for_input, input_available_signal, init_keyboard): Set it.
6600 (process_pending_signals): New function.
6602 * lisp.h (QUIT): Check pending_signals instead of
6603 interrupt_input_pending. Use process_pending_signals.
6605 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
6607 * process.c (wait_reading_process_output): Use process_pending_signals.
6609 * sysdep.c (emacs_write): Use process_pending_signals.
6611 * xterm.c (XTread_socket): Update pending_signals.
6613 * w32term.c (w32_read_socket): Update pending_signals.
6615 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6617 2009-01-29 Kenichi Handa <handa@m17n.org>
6619 * xftfont.c (xftfont_has_char): New function.
6620 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6622 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6624 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6626 (ns_query_color): New declaration.
6628 * nsterm.m (ns_confirm_quit): New variable.
6629 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6630 (EmacsApp-applicationShouldTerminate:): Use it.
6631 (EmacsPrefsController): Let user set it.
6632 (ns_query_color): New function.
6633 (ns_defined_color): Use it.
6634 (ns_initialize): Drop.
6635 (ns_term_init): Add two lines from ns_initialize(), and set
6636 input_interrupt_mode to nil.
6638 * image.c (svg_load_image): Don't right-shift background RGB when
6639 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
6641 2009-01-28 Kenichi Handa <handa@m17n.org>
6643 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6644 (fontset_get_font_group): Remember that no font-group is specified
6647 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
6649 * fns.c (concat): Check for string overflow (bug#1787).
6651 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6652 Quadruple undo limits (bug#1501).
6654 2009-01-27 Kenichi Handa <handa@m17n.org>
6656 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6657 directly use GT_Get_Char_index.
6659 * xftfont.c (struct xftfont_info): New member `index'.
6661 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
6662 (Ffontset_font): Adjust for the change of fontset entry.
6664 2009-01-26 Kenichi Handa <handa@m17n.org>
6666 * fontset.c (fontset_find_font): Fix handling of non-cons return
6667 value of fontset_get_font_group.
6668 (fontset_font): Revert last change.
6670 2009-01-26 Jason Rumney <jasonr@gnu.org>
6672 * w32font.c (w32font_list_internal): Return quickly if registry is
6673 unknown. Simplify final return.
6674 (add_font_entity_to_list): Break complex logic down into more
6675 manageable chunks. Move unknown registry check to
6676 w32font_list_internal.
6678 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6680 Changes to remove Feval calls from GUI under NS.
6682 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6683 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
6684 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6686 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6687 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6688 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6689 instead of NON_ASCII_KEYSTROKE_EVENT.
6690 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6691 (EmacsApp-applicationShouldTerminate:): Query user.
6692 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6695 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6697 * keyboard.c (kbd_buffer_get_event): Check for it.
6698 (keys_of_keyboard): Define lispy keys for
6699 ns-put/unput-working-text.
6701 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6703 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6705 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
6707 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
6708 setting current_buffer directly. (Bug#2044)
6710 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
6712 * fontset.c (fontset_font): If we know there is no font, don't do
6713 any work. (Bug#1952, bug#1990).
6715 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
6717 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6719 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
6720 (ns_no_defaults): New declaration.
6723 * nsterm.h (ns_no_defaults): New declaration.
6725 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
6727 * nsterm.m (ns_no_defaults): New variable.
6728 (ns_initialize): Don't read defaults when ns_no_defaults.
6729 (EmacsView-readSelectionFromPasteboard:)
6730 (writeSelectionToPasteboard:types:): New stubbed-out methods for
6731 NSServicesRequests protocol. (Bug#1435)
6732 (ns_dumpglyphs_stretch): New function.
6733 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
6734 of 2008-11-15 to other terms. (Bug#615)
6736 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6738 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6740 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6743 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6750 * nsterm.m: Remove '23' comments that indicated code added during
6751 update from emacs-20 -> emacs-23.
6753 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6755 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
6756 ns_alternate_modifier. (Bug#1217)
6758 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6759 Display all shortcuts, including those w/o super modifier.
6761 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6763 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
6765 * fileio.c (Vwrite_region_post_annotation_function)
6766 (Vwrite_region_annotation_buffers): New vars.
6767 (build_annotations_unwind): Just reset
6768 Vwrite_region_annotation_buffers.
6769 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6770 Call write-region-post-annotation-function.
6771 (build_annotations): Add to Vwrite_region_annotation_buffers if
6774 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6776 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6778 * nsfns.m (ns_do_applescript):
6779 Conditionalize typeUTF16ExternalRepresentation on Tiger.
6781 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6783 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6785 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6787 * nsmenu.m (NSMENUPROFILE): Change #if style.
6789 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6791 * nsterm.m (x_set_frame_alpha): Add prototype.
6792 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6793 handle Ctrl-tab. (Bug#1841)
6794 (ns_get_color): Use unsigned long long for scanned hex string value.
6795 (ns_term_shutdown): Abort on non SIGTERM signals.
6796 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6797 (EmacsPrefsController-setPanelFromDefaultValues): New function.
6798 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
6799 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
6800 (ns_defined_color): Fix settings of the XColor variable fields:
6801 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
6803 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
6805 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6806 values in onTiger section.
6808 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
6810 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6811 Check return value of font_spec_from_name.
6812 (Fx_list_fonts): Doc fix. (Bug#1951)
6814 * font.c (font_spec_from_name): Return Qnil if font name could not
6816 (font_parse_name): Treat a `?' character as part of an XLFD.
6818 * fns.c (Fsubstring): Doc fix.
6820 2009-01-19 Kenichi Handa <handa@m17n.org>
6822 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
6823 (ftfont_list): Likewise.
6825 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
6827 * dbusbind.c (Fdbus_register_signal):
6828 * process.c (conv_sockaddr_to_lisp):
6829 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6831 * callproc.c (Fgetenv_internal): Doc fix.
6833 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
6835 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6836 it is not even used.
6838 2009-01-16 Glenn Morris <rgm@gnu.org>
6840 * font.c (Ffont_variation_glyphs): Silence compiler.
6842 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
6844 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6845 Reported by David Robinow <drobinow@gmail.com>.
6847 2009-01-15 Kenichi Handa <handa@m17n.org>
6849 * coding.c (detect_coding_system): Fix handling of null_byte_found.
6851 2009-01-14 Jason Rumney <jasonr@gnu.org>
6853 * frame.c (x_set_font): Always store a font to the font parameter,
6854 never a fontset. (Bug#1562)
6856 2009-01-14 Kenichi Handa <handa@m17n.org>
6858 * coding.c (TWO_MORE_BYTES): New macro.
6859 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
6861 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
6863 * font.c (font_clear_prop): If clearing the family, clear the font
6866 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
6868 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
6870 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6871 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6872 functions, use sizeof.
6874 2009-01-12 Martin Rudalics <rudalics@gmx.at>
6876 * keyboard.c (read_char): Fix case where last_nonmenu_event
6877 returned a bad value with submenus. (Bug#447)
6879 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
6881 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6882 family, clear the font width index too.
6884 2009-01-11 Jason Rumney <jasonr@gnu.org>
6886 * keyboard.c (cmd_error_internal): Exit when errors occur before
6887 frame creation and not in daemon mode. (Bug#1836)
6889 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
6891 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6892 of a display vector, backtrack.
6893 (try_window_reusing_current_matrix): Check glyph type before
6894 referencing charpos member.
6896 2009-01-10 Eli Zaretskii <eliz@gnu.org>
6900 * coding.c (inhibit_null_byte_detection): New variable.
6901 (detect_coding, detect_coding_system): Don't pay attention to null
6902 bytes if inhibit_null_byte_detection is non-zero.
6903 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
6904 <inhibit-iso-escape-detection>: Doc fix.
6906 2009-01-09 Jason Rumney <jasonr@gnu.org>
6908 * w32font.c (add_font_entity_to_list): Don't report unknown
6909 Windows charset as any unrecognized registry. (Bug#1548)
6910 Only report Unicode Plane 2 fonts as unicode-sip.
6912 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
6914 * xfaces.c (Fx_font_family_list): Delete function.
6915 Move compatibility version to faces.el.
6917 * font.c (Ffont_family_list): Return a list of strings, not symbols.
6919 2009-01-09 Martin Rudalics <rudalics@gmx.at>
6921 * frame.c (x_set_frame_parameters): Remember requested value for
6922 fullscreen before it's reset by the parameter handler.
6924 2009-01-09 Glenn Morris <rgm@gnu.org>
6926 * keyboard.c (last_command_char): For clarity, rename to...
6927 (last_command_event): ... and update all users.
6928 (last_input_char): For clarity, rename to...
6929 (last_input_event): ... and update all users.
6930 (last-command-char, last-input-char): Move to subr.el as aliases.
6931 * cmds.c, commands.h: Update for last_command_char rename.
6933 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
6935 * font.c (font_open_for_lface): Handle unspecified height attribute.
6937 2009-01-08 Jason Rumney <jasonr@gnu.org>
6939 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6940 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6941 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6943 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
6944 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6946 2009-01-07 Kenichi Handa <handa@m17n.org>
6948 * fileio.c (Finsert_file_contents): In the case of replace,
6949 remember the coding system used for decoding in
6950 coding_system (Bug#1039).
6952 * coding.c (decode_coding_utf_8): Check byte_after_cr before
6953 breaking the loop. (Bug#870)
6954 (decode_coding_utf_16, decode_coding_emacs_mule)
6955 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6956 (decode_coding_charset): Likewise.
6958 2009-01-05 Martin Rudalics <rudalics@gmx.at>
6960 * frame.c (x_set_frame_parameters): Make sure height (width) get
6961 applied when fullwidth (fullheight) is set. (Bug#1522)
6963 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
6965 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6966 (utc_base): Declare as ULONGLONG, not long double.
6967 (convert_time_raw): Delete.
6968 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6969 (initialize_utc_base): New function.
6970 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6971 (convert_from_time_t): Use initialize_utc_base; compute result with
6973 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6975 2009-01-03 Eli Zaretskii <eliz@gnu.org>
6977 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
6978 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6979 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6980 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6981 [!subprocesses]: Define.
6982 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6983 (Flist_system_processes, Fsystem_process_attributes)
6984 [!subprocesses]: Call list_system_processes and
6985 system_process_attributes instead of returning Qnil.
6987 * dosfns.c (system_process_attributes, list_system_processes):
6990 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6992 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6993 Don't use the default (no-op) implementation.
6995 2009-01-03 Jason Rumney <jasonr@gnu.org>
6997 * keyboard.c (parse_modifiers_uncached): Wheel events are
7000 * w32term.c (x_query_colors, x_query_color): New functions.
7002 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7003 (svg_load_image): Cast returned pointers from dynamically loaded
7004 functions. Eliminate W32 specific code.
7006 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7008 * nsfns.m (x_set_foreground_color, x_set_background_color)
7009 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7010 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7011 x_ prefix instead of ns_. Update references.
7012 (syms_of_nsfns): Add a FIXME comment.
7014 * nsterm.m (x_set_cursor_type): New prototype.
7015 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7017 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7018 for Solaris instead of incorrectly providing Qutime and Qcutime.
7020 2009-01-02 Eli Zaretskii <eliz@gnu.org>
7022 * w32.c (process_times): Compute sum of utime and stime.
7023 (system_process_attributes): Add Qtime to the alist.
7025 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7026 and add them to the alist.
7028 * process.c (top level) <Qtime, Qctime>: New variables.
7029 (syms_of_process): staticpro them.
7030 (Fsystem_process_attributes): Add their documentation to the doc
7033 * process.h: Declare Qtime and Qctime.
7035 2009-01-02 Jason Rumney <jasonr@gnu.org>
7037 * image.c (Qgobject): New symbol.
7038 (syms_of_image): Initialize it.
7039 (init_svg_functions): Load some functions from gobject library.
7041 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7043 * frame.c (make_terminal_frame): Remove redundant code and useless
7046 2009-01-01 Andreas Schwab <schwab@suse.de>
7048 * process.c (conv_sockaddr_to_lisp): Add workaround for
7049 getsockname bug on BSD.
7051 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
7053 * xfns.c (x_create_tip_frame): Set border width of the X window.
7055 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
7057 2009-01-01 Jason Rumney <jasonr@gnu.org>
7059 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
7060 Don't block input, as per earlier xterm.c changes.
7062 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7064 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7065 (ns_appkit_version_int): New function.
7066 (x-server-version): Use ns_appkit_version_int and follow 21+
7067 convention of returning 3 integers.
7069 2008-12-30 Kenichi Handa <handa@m17n.org>
7071 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7072 (CHAR_SURROGATE_PAIR_P): New macro.
7074 * font.h (struct font_driver): New member get_variation_glyphs.
7076 * font.c (font_range): Don't require a font for a variation selector.
7077 (Ffont_variation_glyphs): New function.
7078 (syms_of_font): Defsubr it.
7080 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7081 ftfont_variation_glyphs.
7082 (setup_otf_gstring): New function.
7083 (ftfont_drive_otf): Use it.
7084 (ftfont_shape_by_flt): Handle variation selector.
7085 (ftfont_variation_glyphs): New function.
7087 2008-12-30 Martin Rudalics <rudalics@gmx.at>
7089 * frame.c (Vemacs_iconified): Remove.
7091 2008-12-30 Jason Rumney <jasonr@gnu.org>
7093 * frame.c (store_frame_param, x_get_arg): Enable newer code on
7094 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7096 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
7098 * indent.c (Fvertical_motion): Don't advance iterator if we have
7099 reseated to the desired position.
7101 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7102 checking for pos match.
7104 2008-12-30 Kenichi Handa <handa@m17n.org>
7106 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7107 just get the low 8-bit of the code.
7109 * font.c (font_intern_prop): Validate str as multibyte.
7111 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7113 * dispextern.h (struct face): Move lface and hash from the middle
7116 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7118 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7120 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7121 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7122 instead of intervals.h.
7124 2008-12-26 Andreas Schwab <schwab@suse.de>
7126 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7129 2008-12-26 Martin Rudalics <rudalics@gmx.at>
7131 * textprop.c (Qminibuffer_prompt): New variable.
7132 (syms_of_textprop): Initialize it.
7133 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7134 in minibuffer-prompt face. (Bug#1662)
7136 2008-12-25 Jason Rumney <jasonr@gnu.org>
7138 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7140 2008-12-24 Jason Rumney <jasonr@gnu.org>
7142 * ralloc.c (r_alloc_reset_variable): New function.
7144 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
7145 record of what points where. (Bug#716)
7147 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7149 * minibuf.c (read_minibuf): Follow the non-interactive case when
7150 running as a daemon, before detaching.
7152 2008-12-22 Andreas Schwab <schwab@suse.de>
7154 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7155 * gtkutil.c (free_widget_value): Use xfree instead of free.
7157 2008-12-22 Martin Rudalics <rudalics@gmx.at>
7159 * frame.c (delete_frame): New function derived from
7160 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7161 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7162 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7163 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7164 * frame.h: Extern delete_frame.
7165 * window.c (window_loop):
7166 * terminal.c (delete_terminal):
7167 * xterm.c (x_connection_closed):
7168 * xfns.c (Fx_hide_tip):
7169 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
7171 2008-12-21 Jason Rumney <jasonr@gnu.org>
7173 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7174 when character maps to .notdef character.
7176 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7178 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7180 2008-12-20 Jason Rumney <jasonr@gnu.org>
7182 * frame.c (Fmake_terminal_frame): Raise an error when called from
7183 a graphical frame on Windows. (Bug#1325)
7185 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7187 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7189 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
7191 * minibuf.c (Fread_buffer): Doc fix.
7193 2008-12-20 Jason Rumney <jasonr@gnu.org>
7195 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
7196 server name in UNC paths. (Bug#719)
7198 * coding.c (decode_coding): Clear chars_at_source flag when using
7201 2008-12-19 Daniel Engeler <engeler@gmail.com>
7203 * sysdep.c (serial_configure): Fix typo.
7205 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7207 * sysdep.c: Include alloca.h.
7208 (system_process_attributes): Add implementation for Solaris.
7210 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
7212 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7214 Reorganize implementation of Flist_system_processes and
7215 Fsystem_process_attributes. No functional changes.
7216 * process.c: Don't #include pwd.h, grp.h and limits.h.
7217 (Flist_system_processes): Just call list_system_processes.
7218 (Fsystem_process_attributes): Just call system_process_attributes.
7219 (procfs_list_system_processes, time_from_jiffies)
7220 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7221 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7223 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7224 (list_system_processes): Rename from
7225 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7226 Provide a do nothing implementation.
7227 (system_process_attributes): Rename from
7228 procfs_list_system_processes.
7229 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7230 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
7232 * w32.c (list_system_processes): Rename from
7233 w32_list_system_processes.
7234 (system_process_attributes): Rename from
7235 w32_system_process_attributes.
7237 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7239 * process.h (w32_list_system_processes)
7240 (w32_system_process_attributes): Remove.
7241 (list_system_processes, system_process_attributes):
7244 2008-12-19 Kenichi Handa <handa@m17n.org>
7246 * xfont.c (xfont_decode_coding_xlfd): New function.
7247 (xfont_encode_coding_xlfd): New function.
7248 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7249 (xfont_list): Decode and encode XLFD by iso-8859-1.
7250 (xfont_match): Likewise.
7251 (xfont_list_family): Likewise.
7252 (xfont_open): Likewise.
7254 * ftfont.c (ftfont_open): Generate a multibyte string if given
7257 * xftfont.c (xftfont_open): Generate a multibyte string if given
7260 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7262 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7264 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7265 clicked on a detached tool bar button.
7267 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7269 * emacs.c (main): Print and error and exit when no data is read
7272 2008-12-17 Jason Rumney <jasonr@gnu.org>
7274 * w32font.c (w32font_has_char): Always return -1.
7276 2008-12-16 Kenichi Handa <handa@m17n.org>
7278 * font.c (font_open_entity): Fix previous change.
7280 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7282 * process.c: Include <limits.h>.
7284 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
7286 * font.c (font_update_drivers): Fix mistake in reconstructing the
7289 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
7291 * font.c (font_clear_cache): Fix format of font cache data.
7293 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
7295 * xftfont.c (xftfont_open): Free Xft font pattern if
7296 XftFontOpenPattern fails.
7298 * xterm.c (x_free_frame_resources): Remove extraneous call to
7301 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7303 * xterm.c (x_delete_display): Move xim_close_dpy call to
7305 (x_delete_terminal): Call xim_close_dpy.
7307 2008-12-13 Jason Rumney <jasonr@gnu.org>
7309 * w32font.c (intern_font_name): New function.
7310 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7311 (w32font_open_internal, Fx_select_font): Decode font name.
7312 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7314 * w32font.h (intern_font_name): Declare new function.
7316 * w32uniscribe.c (add_opentype_font_name_to_list):
7317 Use intern_font_name.
7319 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7321 * frame.c (Fdelete_frame): Call free_font_driver_list.
7323 * font.c (free_font_driver_list): Implement missing function.
7325 * w32term.c (w32_term_init): Don't initialize the image cache
7326 here; it will be done in init_frame_faces.
7328 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7329 (struct x_display_info): Remove unused member null_pixel. New
7330 member xim_callback_data.
7332 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7333 (xim_initialize): Save pointer to callback function data.
7334 (xim_close_dpy): Free callback function data. Call XCloseIM,
7335 reverting 2008-11-04 change by David Smith.
7336 (x_term_init): Don't initialize the image cache here; it will be
7337 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7338 (x_delete_display): Free x_dnd_atoms member.
7340 2008-12-13 Kenichi Handa <handa@m17n.org>
7342 * font.c (font_rescale_ratio): Moved from xfaces.c.
7343 Argument type changed. Handle a font-spec too.
7344 (font_score): Check Vface_font_rescale_alist.
7345 (font_open_entity): Likewise. (Bug#1547)
7347 * xfaces.c (font_rescale_ratio): Moved to font.c.
7349 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7351 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7353 2008-12-12 Jason Rumney <jasonr@gnu.org>
7355 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7356 Vwindow_system_version to the real w32 major version.
7358 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7360 * term.c (init_tty): Move setting the terminal name before the
7361 potential user: maybe_fatal.
7363 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
7365 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7366 all callers changed. Call free_frame_faces to free the face cache.
7368 2008-12-11 Jason Rumney <jasonr@gnu.org>
7370 * w32font.c (fill_in_logfont): Don't assume symbol script means
7371 SYMBOL_CHARSET. (Bug#547)
7373 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
7374 size for surrogates. (Bug#1096, bug#872)
7376 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7378 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7380 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7382 * process.c (Fsystem_process_attributes, syms_of_process):
7383 Fix typo in name of Ssystem_process_attributes.
7384 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7386 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7388 * syntax.c (Fmodify_syntax_entry): Doc fix.
7390 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7392 * font.c (Ffont_spec): Move usage to end of docstring.
7394 2008-12-10 Jason Rumney <jasonr@gnu.org>
7396 * w32font.c (Qcham): New symbol.
7397 (font_supported_scripts): Add cham, and comments for other new
7398 scripts in bitfield from OpenType spec.
7399 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7400 contain characters beyond the bmp.
7402 2008-12-10 Kenichi Handa <handa@m17n.org>
7404 * ftfont.c (fc_charset_table): Add "unicode-sip".
7405 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7408 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7410 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7411 (Fcoding_system_put): Use QCdefault_char.
7412 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7414 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
7416 * xftfont.c (syms_of_xftfont): Fix typo.
7418 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
7420 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7422 * emacs.c (main): Close daemon_pipe on exec.
7424 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
7426 * termchar.h (struct tty): New members termcap_term_buffer and
7427 termcap_strings_buffer.
7429 * term.c (encode_terminal_code): Free any previous memory blocks
7430 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
7431 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7432 All callers changed.
7433 (init_tty): Store termcap data and string buffers in new struct
7434 tty members termcap_term_buffer and termcap_strings_buffer.
7435 (delete_tty): Free them.
7436 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
7438 2008-12-07 Seiji Zenitani <zenitani@mac.com>
7440 * nsfns.m (ns_set_background_color): Remove code duplication.
7441 It was a substitute for face-transparency on OS X 10.3.
7443 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
7445 * coding.c (make_conversion_work_buffer): Disable buffer
7446 modification hooks in the work buffer.
7448 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7450 * process.c (procfs_system_process_attributes): If `nread' has a
7451 negative value, assign zero to it.
7453 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
7455 * eval.c (Vdebug_on_error): Doc fix.
7457 2008-12-05 Kenichi Handa <handa@m17n.org>
7459 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7460 second character is a combining character.
7462 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7464 * process.c (procfs_system_process_attributes): Don't use cmd,
7465 cmdsize, and q without initializing them first.
7467 2008-12-04 Jason Rumney <jasonr@gnu.org>
7469 * w32font.c (w32font_draw): Initialize orig_clip before getting
7470 it, and delete it when finished.
7472 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7474 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7475 case when running as a daemon before detaching.
7477 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
7479 * w32.c (init_environment): Don't unload library shell32.dll.
7481 2008-12-03 Kenichi Handa <handa@m17n.org>
7483 * font.c (font_at): Set `multibyte' at first.
7485 * coding.c (decode_coding_charset): Check type of an element of
7487 (encode_coding_emacs_mule): Be sure to set `code'.
7489 * fontset.c (face_for_char): Handle invalid charset property correctly.
7490 (font_for_char): Likewise.
7492 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
7494 * font.c (Fopen_font): Compute pixel size correctly.
7495 (font_update_lface): Handle fonts with corrupted size specs,
7496 i.e. non-int and non-float.
7498 * ftfont.c (ftfont_match): Initialize entity variable.
7499 (ftfont_resolve_generic_family): Avoid using uninitialized var.
7500 (ftfont_list_family): Initialize list var earlier.
7502 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7504 * xterm.c (x_draw_glyph_string): Fall back on
7505 underline_minimum_offset for underline position.
7507 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7509 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7511 * character.c (c_string_width): Specify the type for LEN.
7513 2008-12-03 Kenichi Handa <handa@m17n.org>
7515 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
7516 (decode_coding_utf_8): Likewise.
7517 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
7518 (produce_chars): Initialize consumed_chars to 0.
7520 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7522 * keyboard.c (make_lispy_position): Only use PT if the selected
7525 2008-12-02 Andreas Schwab <schwab@suse.de>
7527 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7529 * doprnt.c (doprnt1): Fix size of charbuf.
7531 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7533 * keyboard.c (timer_check): Revert last change.
7535 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
7537 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7539 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
7541 * makefile.w32-in: Update dependencies.
7542 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7544 2008-12-01 Andreas Schwab <schwab@suse.de>
7546 * font.c (register_font_driver): Use xmalloc.
7547 (font_put_frame_data): Likewise.
7549 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
7551 * xfaces.c (realize_x_face): Make abort condition clearer.
7553 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7555 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
7557 * keyboard.c (timer_check): After a timer runs, ensure that the
7558 selected window's buffer is current.
7560 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
7562 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7563 It was accidentally restored by the Unicode merge.
7565 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7567 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
7569 * w32proc.c: Include "coding.h".
7570 (Fw32_short_file_name): Encode filename passed to Windows API.
7571 (Fw32_long_file_name): Encode filename passed to Windows API and
7572 decode back the result. (Bug#1433)
7574 2008-11-29 Kenichi Handa <handa@m17n.org>
7576 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7577 not before accessing it.
7579 * charset.c (Fdefine_charset_internal): After calculating
7580 min_char, max_char, and fastmap, copy the charset structure again.
7581 (encode_char): Fix the previous change.
7583 2008-11-28 Seiji Zenitani <zenitani@mac.com>
7585 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7587 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7589 * nsterm.m (x_set_frame_alpha): New function.
7591 2008-11-27 Eli Zaretskii <eliz@gnu.org>
7593 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7595 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
7597 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7598 pointer to check_face_name.
7600 2008-11-27 Kenichi Handa <handa@m17n.org>
7602 * category.h (SET_CATEGORY_SET): Call set_category_set.
7603 (set_category_set): Extern it.
7605 * category.c (hash_get_category_set): New function.
7606 (Fmodify_category_entry): Adjusted for the change of
7607 char_table_ref_and_range. Call hash_get_category_set to get a
7608 category set to store in the table.
7610 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7613 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
7614 (DECODE_CHAR): Check if the decoder vector is ready.
7615 (ENCODE_CHAR): Check if the encoder char-table is ready.
7616 (maybe_unify_char): Extern it.
7618 * charset.c (Vchar_unified_charset_table): Delete it.
7619 (inhibit_load_charset_map): New variable.
7620 (temp_charset_work): New variable.
7621 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7622 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7624 (load_charset_map): Meaning of control_flag changed. If
7625 inhibit_load_charset_map is nonzero, setup a table in
7627 (load_charset): New argument control_flag.
7628 (map_charset_for_dump): New function.
7629 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7630 map_charset_for_dump.
7631 (Fdefine_charset_internal): If the charset method is MAP, load
7632 mapping tables by calling load_charset.
7633 (Funify_charset): Don't load a mapping table but directly set
7635 (maybe_unify_char): New function.
7636 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7637 Handle the case of inhibit_load_charset_map being nonzero.
7638 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7639 Handle the case of inhibit_load_charset_map being nonzero.
7640 (Fclear_charset_maps): Just free temp_charset_work.
7641 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7644 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7645 change of char_table_ref_and_range.
7646 (char_table_ref_and_range): Change the meaning of argument FROM
7647 and TO. Now the caller must provide initial values for *FROM
7650 * fontset.c (fontset_add): Adjusted for the change of
7651 char_table_ref_and_range.
7652 (fontset_get_font_group): Likewise.
7653 (Ffontset_info): Likewise.
7655 * keymap.c (describe_vector): Adjusted for the change of
7656 char_table_ref_and_range. For char-table, put boundary between
7657 non-ASCII and 8-bit characters.
7659 * print.c (print_object): For bool-vector, delete unnecessary
7660 check of ASCII_BYTE_P.
7662 2008-11-26 Jason Rumney <jasonr@gnu.org>
7664 * w32font.c (w32font_open_internal): Don't include external
7665 leading in font height. (Bug#879)
7667 2008-11-26 Glenn Morris <rgm@gnu.org>
7669 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7670 redefinition with ifdef. (Bug#1383)
7672 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7674 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7676 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7678 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7679 New EmacsView methods.
7680 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7681 Fixes bug #1048,1357,1414.
7683 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7686 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7687 is not an indexed color.
7688 * nsterm.m (free_indexed_color): Add argument checking.
7689 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7691 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
7693 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7694 Document confirm-after-completion value for
7695 minibuffer-completion-confirm.
7697 2008-11-24 Jason Rumney <jasonr@gnu.org>
7699 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7702 2008-11-23 Jason Rumney <jasonr@gnu.org>
7704 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7705 restored before returning.
7707 * w32font.c (check_face_name): New function.
7708 (add_font_entity_to_list): Use it to filter out common substituted
7711 2008-11-22 Martin Rudalics <rudalics@gmx.at>
7713 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7714 confirm-nonexistent-file-or-buffer in doc-string.
7716 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7718 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7719 Fix copy/paste typo. Add checks.
7721 2008-11-21 Kenichi Handa <handa@m17n.org>
7723 * coding.c (detect_coding_iso_2022): Reject invalid composition
7725 (DECODE_COMPOSITION_START): If the current source is the last
7726 block, and the current composition doesn't end, regard this
7727 sequence as invalid.
7728 (decode_coding_iso_2022): Handle invalid composition sequence.
7730 2008-11-20 Martin Rudalics <rudalics@gmx.at>
7732 * window.c (coordinates_in_window): Don't return
7733 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7734 line when the window is not the rightmost one. (Bug#1372)
7736 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7738 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7740 2008-11-15 Eli Zaretskii <eliz@gnu.org>
7742 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7743 and bright_bg if noninteractive is non-zero.
7745 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7747 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7748 x_draw_glyph_string_background.
7750 * w32term.c (x_draw_glyph_string): Likewise.
7752 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
7754 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7755 the next glyph string once past the overhang width.
7757 * nsterm.m (ns_draw_glyph_string): Likewise.
7759 * w32term.c (x_draw_glyph_string): Likewise.
7761 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7763 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7766 2008-11-14 Martin Rudalics <rudalics@gmx.at>
7768 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7769 dedicated status of window before attempting to display another
7772 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
7774 * msdos.c (Fmsdos_long_file_names):
7775 (syms_of_msdos) <dos-unsupported-char-glyph>:
7776 * dosfns.c (Fint86): Fix typos in docstrings.
7778 2008-11-14 Eli Zaretskii <eliz@gnu.org>
7780 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7782 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7784 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7786 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7788 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7790 * frame.h: Negative alpha means "don't touch".
7792 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7794 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7796 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7800 * acldef.h: Remove files used only for systems no longer supported.
7802 * Makefile.in: Fix .o alphabetical ordering.
7803 (hftctl.o): Remove dependency, file removed.
7804 (keymap.o, print.o): Depend on charset.h.
7806 2008-11-10 Kenichi Handa <handa@m17n.org>
7808 * character.c (Fget_byte): Fix and make it faster for unibyte target.
7810 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
7812 * dired.c (file_name_completion): If completion_ignore_case is
7813 enabled, ignore case when checking completion-regexp-list.
7815 2008-11-08 Eli Zaretskii <eliz@gnu.org>
7817 * vm-limit.c (get_lim_data): Fix last change.
7819 2008-11-08 Kenichi Handa <handa@m17n.org>
7821 * character.c (Fget_byte): New function.
7822 (syms_of_character): Defsubr Fget_byte.
7824 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
7826 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7827 cursor position is valid after scrolling.
7829 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
7831 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7833 2008-11-06 Glenn Morris <rgm@gnu.org>
7835 * xterm.c (handle_one_xevent): Don't let popup menus cause
7836 mouse-autoselect-window related window switching. (Bug#1261)
7838 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7840 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7842 2008-11-04 Andreas Schwab <schwab@suse.de>
7844 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7846 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
7848 * xfns.c (Fx_wm_set_size_hint): New function.
7850 2008-11-03 Martin Rudalics <rudalics@gmx.at>
7852 * textprop.c (Fprevious_single_char_property_change): Return 0
7853 when there's no change in a string. (Bug#1301)
7855 2008-11-02 Martin Rudalics <rudalics@gmx.at>
7857 * frame.c (do_switch_frame): New argument NORECORD passed to
7859 (Fselect_frame): New argument NORECORD passed to
7861 (Fset_frame_selected_window): New argument NORECORD passed to
7863 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7864 in call of do_switch_frame.
7865 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7866 Handle NORECORD argument in call of Fselect_frame.
7867 * lisp.h (do_switch_frame, Fselect_frame)
7868 (Fset_frame_selected_window): Adjust declarations.
7869 * window.c (select_frame_norecord): New function.
7870 (run_window_configuration_change_hook): Use it and call
7871 Fselect_frame with NORECORD set.
7872 (Fselect_window): Pass NORECORD to Fselect_frame.
7873 (Fset_window_configuration): Handle NORECORD argument in call of
7875 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7876 Fset_frame_selected_window.
7877 * keyboard.c (command_loop_1): Handle NORECORD in call of
7878 Fselect_frame (currently ifdefd).
7880 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7882 * emacs.c (USAGE2): Untabify.
7884 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7886 * composite.c (fill_gstring_header): Fix copy/paste typo.
7888 2008-10-31 Martin Rudalics <rudalics@gmx.at>
7890 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7891 (Fother_window): Rename argument and rewrite doc-string.
7892 (select_window_norecord): Fix return value. (Bug#1276)
7894 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
7896 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7897 new frames overriding foreground for tooltips. Based on similar patch
7898 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7900 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
7902 * emacs.c (Fdaemon_initialized): Initialize nfd.
7904 2008-10-29 Martin Rudalics <rudalics@gmx.at>
7906 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7907 (Fwindow_text_height): Clarify doc-strings.
7908 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7909 doc-string of window-scroll-functions.
7911 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7913 * category.c (syms_of_category): Fix typo in docstring.
7915 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
7917 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7918 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7919 Fix typos in docstrings.
7921 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7923 * emacs.c (daemon_pipe): Make non-static.
7924 (IS_DAEMON): Move definition ...
7925 * lisp.h (IS_DAEMON): ... here.
7926 (daemon_pipe): Declare.
7927 (is_daemon): Remove.
7928 * dispnew.c (init_display): Use IS_DAEMON.
7930 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7932 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7933 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7935 * emacs.c (is_daemon): Remove.
7936 (main): Don't set is_daemon.
7937 (IS_DAEMON): New macro.
7938 (Fdaemonp, Fdaemon_initialized): Use it.
7939 (Fdaemon_initialized): Write a char into the pipe to make sure the
7941 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7943 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
7945 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7946 over-sized glyph, draw it with the default glyph width.
7948 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7949 glyph, draw it with the default glyph width.
7951 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7952 glyph, draw it with the default glyph width.
7954 * xdisp.c (try_scrolling): When computing the distance from the
7955 scroll margin to PT, try moving some distance past the window
7956 bottom before giving up.
7958 2008-10-27 Martin Rudalics <rudalics@gmx.at>
7960 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7961 (Fset_window_buffer): Explain in doc-string that a window can be
7962 "strongly" dedicated to its buffer.
7964 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7966 * emacs.c (daemon_name): New variable.
7967 (main): Deal with --daemon=SERVER_NAME.
7968 (Fdaemonp): Return a name if one was passed to --daemon.
7970 2008-10-26 Romain Francoise <romain@orebokech.com>
7972 * emacs.c (daemon_pipe): New variable.
7973 (main): Create a pipe before forking, make the parent exit only after
7974 the child has closed its end of the pipe. Move closing the
7976 (Fdaemon_initialized): ... here. New function.
7978 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7980 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7981 the previous unoptimized table.
7983 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7984 the distinction between non-nil and non-t value of `dedicated'.
7986 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
7988 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
7989 read_char_minibuf_menu_text is large enough to hold the menu string.
7991 2008-10-25 Martin Rudalics <rudalics@gmx.at>
7993 * window.c (Fget_buffer_window, Fdelete_windows_on)
7994 (Freplace_buffer_in_windows): Make buffer argument optional and
7995 rename to buffer_or_name.
7997 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
7999 * xdisp.c (handle_single_display_spec, handle_display_prop):
8000 Undo 2005-05-16 change.
8001 (handle_stop): Pop iterator if it's loaded with an empty string.
8002 (get_overlay_strings_1): Don't save iterator if it's loaded with
8003 an empty string (bug#1201).
8005 2008-10-24 Kenichi Handa <handa@m17n.org>
8007 * ftfont.c (ftfont_otf_features): Fix previous change.
8008 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8009 calling ftfont_otf_features.
8011 2008-10-24 Kenichi Handa <handa@m17n.org>
8013 * font.c (font_match_p): Fix for the case that a vector of
8014 characters is in script-representative-chars.
8016 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
8018 * dbusbind.c (xd_in_read_queued_messages): New variable.
8019 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
8020 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8021 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
8024 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
8026 * s/sol2-10.h: New file.
8028 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8030 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8031 poor beast has survived 9+ years and the jump from xterm.c!).
8033 2008-10-23 Martin Rudalics <rudalics@gmx.at>
8035 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8037 (Fbury_buffer): In doc-string say what happens to the buffer's window.
8039 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8041 * character.c (syms_of_character) <script-representative-chars>:
8042 <unicode-category-table>: Doc fixes.
8044 2008-10-23 Noah Friedman <friedman@splode.com>
8046 * coding.c (make_conversion_work_buffer): Check that
8047 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8050 2008-10-23 Kenichi Handa <handa@m17n.org>
8052 * font.c (font_add_log): Check the values of extra properties.
8054 2008-10-22 Martin Rudalics <rudalics@gmx.at>
8056 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8058 (Fset_window_parameter): Use NILP.
8059 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
8060 (Frecenter): Use "selected" instead of "current" window in doc-strings.
8062 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8064 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8066 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8068 * nsfns.m (ns_appkit_version): New function.
8069 (x-server-version): Use it.
8070 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8071 (x-server-vendor): Don't check_ns().
8073 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8075 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8077 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8078 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8080 2008-10-22 Kenichi Handa <handa@m17n.org>
8082 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8085 * category.c (word_boundary_p): Check scripts instead of charset.
8086 Handle nil value in word-separating-categories and
8087 word-combining-categories.
8088 (syms_of_category): Fix docstrings of word-separating-categories
8089 and word-combining-categories.
8091 2008-10-21 Eli Zaretskii <eliz@gnu.org>
8093 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8094 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8096 2008-10-21 Martin Rudalics <rudalics@gmx.at>
8098 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8099 Rename arg "buffer" to "buffer_or_name".
8100 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8102 (no_switch_window): Remove since the return value is not used.
8103 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
8104 Consider window as dedicated when Fwindow_dedicated_p returns a
8106 * lisp.h: Remove prototype for no_switch_window.
8108 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8110 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
8111 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
8113 2008-10-21 Kenichi Handa <handa@m17n.org>
8115 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8116 check Vlatin_extra_code_table.
8118 2008-10-20 Eli Zaretskii <eliz@gnu.org>
8120 * fileio.c (Fset_file_modes): Doc fix.
8122 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
8124 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8127 2008-10-19 Martin Rudalics <rudalics@gmx.at>
8129 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8130 Mention kill-buffer in doc-string.
8131 (Fset_window_buffer): Reinsert tem check removed in last commit.
8132 (Fenlarge_window, Fshrink_window): Have argument names and
8133 doc-string follow Elisp manual more closely.
8135 2008-10-18 Eli Zaretskii <eliz@gnu.org>
8137 * fileio.c (Fset_file_modes): Doc fix.
8139 2008-10-18 Martin Rudalics <rudalics@gmx.at>
8141 * window.c (Fwindow_width, Fset_window_start)
8142 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
8143 (Fdelete_windows_on, Freplace_buffer_in_windows):
8144 Make doc-strings follow code and Elisp manual more closely.
8145 (Fwindow_dedicated_p): Make window argument optional.
8146 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8147 (Fset_window_buffer): Respect any non-nil dedicated value for
8148 window. Rename "buffer" argument to "buffer_or_name".
8150 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
8152 * m/sh3.h: New file, machine description for SuperH.
8154 2008-10-17 Martin Rudalics <rudalics@gmx.at>
8156 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8158 2008-10-17 Kenichi Handa <handa@m17n.org>
8160 * ftfont.c (ftfont_otf_features): Fix indexing
8161 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8163 2008-10-16 Magnus Henoch <mange@freemail.hu>
8165 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8166 (Fdbus_call_method_asynchronously): Ditto.
8167 This change makes C-h f display the argument list.
8169 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
8171 * fileio.c (Fexpand_file_name): Doc fix.
8173 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8174 of :foreground and :background equivalent to unspecified (20.x
8177 2008-10-15 Eli Zaretskii <eliz@gnu.org>
8179 * buffer.c (syms_of_buffer): Doc fix.
8181 2008-10-14 Kenichi Handa <handa@m17n.org>
8183 * font.c (font_clear_prop): When clearing font width, clear the
8184 average width field too.
8186 2008-10-12 Andreas Schwab <schwab@suse.de>
8188 * ftfont.c (ftfont_shape_by_flt): Make static.
8189 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8191 * font.c: Don't include <m17n-flt.h>.
8193 2008-10-10 Eli Zaretskii <eliz@gnu.org>
8195 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8197 2008-10-09 Eli Zaretskii <eliz@gnu.org>
8199 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8202 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
8204 * dispnew.c (update_text_area): Avoid looping due to large glyph
8205 overhangs (bug#1070).
8207 2008-10-09 Kenichi Handa <handa@m17n.org>
8209 * fontset.c (face_for_char): If face->fontset is negative, just
8212 * font.c (font_delete_unmatched): Fix previous change.
8213 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
8215 2008-10-09 Martin Rudalics <rudalics@gmx.at>
8217 * frame.c (Fraise_frame): On text-only terminals select frame in
8218 order to make it visible. (Bug#1061)
8220 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
8222 * fontset.c (fontset_find_font): Check frame validity.
8224 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
8226 * gtkutil.c (xg_display_open): Reset default display if none exists.
8227 (xg_display_close): Allow Emacs to close all displays (bug#985).
8229 2008-10-06 Andreas Schwab <schwab@suse.de>
8231 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
8233 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
8235 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
8237 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
8239 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8240 during initialization.
8242 2008-10-04 Eli Zaretskii <eliz@gnu.org>
8244 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8245 whole thing on MSDOS frames as well as on a TTY.
8247 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8249 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8252 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8255 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8257 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8258 MSDOS frames as well.
8260 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8262 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8264 * menu.c (find_and_return_menu_selection): Add cast.
8266 2008-10-03 Glenn Morris <rgm@gnu.org>
8268 * emacs.c (USAGE1): Add --daemon.
8270 2008-10-02 Eli Zaretskii <eliz@gnu.org>
8272 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8273 100, so it's in percents as advertised.
8275 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8277 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8278 (ns_output.current_cursor, ns_output.desired_cursor)
8279 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8280 (FRAME_NEW_CURSOR_COLOR): Remove.
8282 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
8283 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
8284 enumeration (HOLLOW_BOX_CURSOR, etc.).
8286 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8287 (draw_window_cursor): Simplify code.
8288 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8289 Don't change cursor type. In latter, call rehighlight instead of doing
8291 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8292 Use core Emacs cursor types.
8294 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
8296 2008-10-02 Martin Rudalics <rudalics@gmx.at>
8298 * process.c (Faccept_process_output): Fix doc-string.
8300 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8302 * gmalloc.c (__sbrk): Also define for uClibc.
8304 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8307 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8309 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8311 (nsfont_open): Reenable the cache.
8313 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8315 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8316 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8318 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8320 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8321 a suspended terminal.
8323 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
8325 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8327 2008-09-30 Eli Zaretskii <eliz@gnu.org>
8329 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8331 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
8333 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8334 in a continued line coincides with a line beginning.
8336 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8338 * nsfont.m (nsfont_trait_distance): Fix bug.
8339 (nsfont_list): Return a list rather than a vector (syncs with Handa
8340 changes of 2008-05-14).
8341 (nsfont_open): Improve logging.
8343 2008-09-29 Andreas Schwab <schwab@suse.de>
8345 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8347 2008-09-28 Martin Rudalics <rudalics@gmx.at>
8349 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8350 name as char-resolve-modifiers.
8351 Reported by: Markus Triska <markus.triska@gmx.at>
8353 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8355 * dispnew.c (init_display): Return earlier when running as a daemon.
8357 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8359 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8361 2008-09-27 Eli Zaretskii <eliz@gnu.org>
8363 * composite.c (Fcomposition_get_gstring)
8364 (Fcompose_region_internal, Fcompose_string_internal)
8365 (Ffind_composition_internal): Doc fix.
8366 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8367 (syms_of_composite) <auto-composition-function>: Doc fix.
8368 (syms_of_composite) <composition-function-table>: Doc fix.
8370 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
8372 * search.c (wordify): New argument for lax word-ends.
8373 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8375 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8377 * lisp.h (is_daemon): Declare.
8378 * dispnew.c (init_display): Do not try to initialize the terminal
8379 when running as a daemon.
8381 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
8383 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8384 x_display_pixel_height.
8386 2008-09-22 Martin Rudalics <rudalics@gmx.at>
8388 * undo.c (record_point): Don't call Fundo_boundary for first
8391 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
8393 * emacs.c (Fdaemonp): Doc fix.
8395 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8397 * emacs.c (main): Place #ifdef in the proper place.
8399 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8401 * emacs.c (standard_args): Add --daemon.
8402 (main): Disconnect from the terminal when --daemon is passed.
8403 (is_daemon): New variable.
8404 (Fdaemonp): New function.
8405 (syms_of_emacs): Defsubr it.
8407 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
8409 * xdisp.c (get_next_display_element): Handle string display
8410 correctly when checking for the end of a box run.
8412 2008-09-20 Glenn Morris <rgm@gnu.org>
8414 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8415 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8416 (Frename_file): Avoid copying to trash if a rename involves
8417 a delete. (Bug#964).
8419 2008-09-20 Eli Zaretskii <eliz@gnu.org>
8421 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8422 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8423 frames as well as termcap frames.
8424 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8427 2008-09-19 Eli Zaretskii <eliz@gnu.org>
8429 * process.c (procfs_system_process_attributes): Fix cmdline in
8430 case /proc/PID/cmdline is empty.
8432 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8433 x_display_pixel_height.
8435 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
8437 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8439 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8440 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8442 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8444 * dispextern.h (struct it): Move line_wrap away from the middle of
8445 bitfields. Move voffset in struct iterator_stack_entry after the
8446 bitfields. Move tab_width near after another short.
8448 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8450 * frame.h (struct frame): Move alpha from the middle of bitfields.
8452 * window.h (struct window): Move frozen_window_start_p after the
8453 rest of the bitfields to reduce padding.
8455 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
8457 * xterm.h (x_display_info): Remove `height' and `width' members.
8459 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8461 * w32term.h (w32_display_info): Remove `height', `width',
8462 `height_in', and `width_in' members.
8464 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8466 (x_calc_absolute_position): Use them.
8467 (x_term_init): Omit removed `height' and `width' members.
8469 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8471 (w32_read_socket, x_calc_absolute_position): Use them.
8472 (w32_initialize_display_info, w32_term_init): Omit removed members
8473 of w32_display_info.
8475 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8477 (ns_initialize_display_info): Omit removed members of ns_display_info.
8479 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8481 (x_calc_absolute_position): Use them.
8482 (x_term_init): Omit removed `height' and `width' members.
8484 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8486 * frame.c (x_fullscreen_adjust):
8487 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8488 x_display_pixel_width.
8490 2008-09-18 Kenichi Handa <handa@m17n.org>
8492 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8493 (composition_compute_stop_pos): Fix handling of static composition.
8494 (Fcomposition_get_gstring): Check FROM and TO at first.
8496 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8498 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
8501 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
8503 * indent.c (Fvertical_motion): Use position reported by iterator
8504 instead of PT for determining screen motion (bug#943).
8506 2008-09-17 Romain Francoise <romain@orebokech.com>
8508 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8510 2008-09-17 Kenichi Handa <handa@m17n.org>
8512 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8514 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8517 2008-09-16 Kenichi Handa <handa@m17n.org>
8519 * coding.c (make_conversion_work_buffer): Avoid calling
8520 Fget_buffer_create if it is not necessary.
8522 2008-09-15 Martin Rudalics <rudalics@gmx.at>
8524 * window.c (Fselect_window): Don't update window_select_count and
8525 use_time when norecord is not nil.
8527 2008-09-14 Kenichi Handa <handa@m17n.org>
8529 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8532 2008-09-12 Kenichi Handa <handa@m17n.org>
8534 * indent.c (scan_for_column): Don't handle automatic composition
8535 if the current buffer is not associated with a window.
8537 * composite.c (composition_reseat_it): If the current buffer is
8538 not associated with a window, ignore the automatic composition.
8539 (find_automatic_composition): Likewise.
8541 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8543 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8544 (Fgpm_mouse_stop): Use it.
8545 * termhooks.h (close_gpm): Declare.
8546 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8547 connection if Gpm_GetEvent fails.
8549 * window.c (set_window_buffer): Always preserve current-buffer.
8551 2008-09-12 Glenn Morris <rgm@gnu.org>
8553 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8555 2008-09-11 Glenn Morris <rgm@gnu.org>
8557 * charset.c (charset-map-path): Doc fix.
8559 2008-09-10 Kenichi Handa <handa@m17n.org>
8561 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8563 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8564 compose a grapheme cluster with the preceding base glyph.
8566 * composite.c (composition_compute_stop_pos): Fix previous change.
8567 Reset cmp_it->id to -1 at first.
8569 2008-09-10 Glenn Morris <rgm@gnu.org>
8571 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8573 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
8575 * keyboard.c (read_key_sequence): Reapply translation maps when
8576 switching keyboards.
8578 2008-09-09 Kenichi Handa <handa@m17n.org>
8580 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8583 * composite.c (FORWARD_CHAR): Fix calculation
8584 of (POSITION).pos_byte.
8585 (composition_compute_stop_pos): Limit the search of composition to
8586 at most 500 characters ahead. If we reach the limit or find a
8587 newline, set cmp_it->ch to -2 and return 0.
8588 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8590 2008-09-08 Kenichi Handa <handa@m17n.org>
8592 * indent.c (Fvertical_motion): Be sure to set
8593 it_overshoot_expected if it.cmp_it.id is non-negative.
8595 2008-09-07 Andreas Schwab <schwab@suse.de>
8597 * callproc.c (Fcall_process): Don't hold references to string data
8598 across garbage collection. Move initialisation of new_argv down
8599 to avoid compiler bug.
8601 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8603 * process.c (Fsystem_process_attributes): Doc fix.
8605 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
8607 * callproc.c (Fcall_process): Canonicalize current directory name.
8609 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8610 iterator advances to the next line if the current line ends in a
8613 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8615 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8616 member to point to cmp_from.
8618 * xdisp.c: Doc fix for references to gidx data member.
8620 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8622 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8624 2008-09-07 Kenichi Handa <handa@m17n.org>
8626 * composite.c (FORWARD_CHAR): Check STOP after
8627 incrementing (POSITION).pos.
8629 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8631 * process.c (Fsystem_process_attributes): Doc fix.
8633 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
8635 * keyboard.c (Ftop_level): Doc fix.
8637 2008-09-06 Eli Zaretskii <eliz@gnu.org>
8639 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8640 minibuffer, don't let lower part of menu invade the echo area.
8642 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8643 "char *q" to access menu text and advance through it. Revert the
8644 change that displayed ">" instead of ASCII character 0x10.
8646 2008-09-05 Eli Zaretskii <eliz@gnu.org>
8648 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8649 toggle boxes and radio buttons on MS-DOS as well.
8651 2008-09-05 Kenichi Handa <handa@m17n.org>
8653 * composite.c (autocmp_chars): Check lookback count.
8654 (composition_compute_stop_pos): Set cmp_it->lookback.
8655 (composition_reseat_it): Check lookback count.
8656 (struct position_record): New struct.
8657 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8658 (find_automatic_composition): New function.
8659 (composition_adjust_point): Use find_automatic_composition.
8661 * dispextern.h (struct composition_it): New member lookback.
8663 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
8665 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8666 if moving by a single line.
8668 2008-09-02 Andreas Schwab <schwab@suse.de>
8670 * xterm.c (x_delete_display): Fix merge error.
8672 * fileio.c (Fexpand_file_name): Remove unused variables.
8674 2008-09-02 Eli Zaretskii <eliz@gnu.org>
8676 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8677 storage on all platforms, not just on DOS_NT.
8679 2008-09-02 Jason Rumney <jasonr@gnu.org>
8681 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8682 Ensure mouse is not grabbed after menu is finished.
8684 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
8686 * xfaces.c (Finternal_set_alternative_font_family_alist)
8687 (Finternal_set_alternative_font_registry_alist): Properly copy
8688 entire alist structure.
8690 2008-09-01 Kenichi Handa <handa@m17n.org>
8692 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
8693 representative chars of the script is a vector.
8694 (ftfont_list): Handle the case where the representative chars of
8695 the script is a vector.
8697 * character.c (syms_of_character): Docstring of
8698 script-representative-chars fixed.
8700 2008-08-31 Eli Zaretskii <eliz@gnu.org>
8702 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8703 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8704 the menu. Allocate larger buffer for `text', to account for
8705 possible ^C characters.
8707 2008-08-31 Martin Rudalics <rudalics@gmx.at>
8709 * xdisp.c (prepare_menu_bars): Don't call
8710 Vwindow_size_change_functions with arg Qt.
8712 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8714 * font.h (font_range):
8715 * fileio.c (report_file_error):
8716 * composite.c (composition_update_it): Yet another int/Lisp_Object
8719 2008-08-30 Glenn Morris <rgm@gnu.org>
8721 * data.c (Fmake_variable_frame_local): Doc fix.
8723 * frame.c (Fmodify_frame_parameters): Doc fix.
8725 2008-08-30 Eli Zaretskii <eliz@gnu.org>
8727 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8728 needed by GetTokenInformation.
8729 (w32_system_process_attributes): Check return values of all system
8732 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8733 only when the state changes.
8734 (IT_update_begin, IT_update_end): Add termscript trace.
8736 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8737 clipboard is unavailable. Set dst to NULL if it doesn't point to
8739 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8740 passing random values to xfree.
8742 * dispnew.c (init_display): Set `tty's association in frame's
8743 parameters alist to the name of the terminal device, if that is known.
8745 2008-08-29 Jason Rumney <jasonr@gnu.org>
8747 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8749 2008-08-29 Eli Zaretskii <eliz@gnu.org>
8751 * composite.c (fill_gstring_body): Avoid compiler warnings.
8753 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8754 LGLYPH_SET_CODE to avoid compiler warnings.
8756 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
8758 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8760 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8763 2008-08-29 Kenichi Handa <handa@m17n.org>
8765 * fileio.c (report_file_error): Don't downcase the first character
8766 of errstring if it is still unibyte.
8768 2008-08-29 Kenichi Handa <handa@m17n.org>
8770 These changes are to re-implement the automatic composition so
8771 that it doesn't use text properties.
8773 * Makefile.in (ftfont.o): Depend on composite.h.
8774 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8776 * character.h (Vunicode_category_table): Extern it.
8778 * character.c (Vunicode_category_table): New variable.
8779 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8781 * chartab.c (optimize_sub_char_table): Perform more greedy
8784 * composite.h (enum composition_method):
8785 Delete COMPOSITION_WITH_GLYPH_STRING.
8786 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8787 (Vcomposition_function_table): Extern it.
8788 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8789 (composition_gstring_put_cache, composition_gstring_from_id)
8790 (composition_gstring_p, composition_gstring_width)
8791 (composition_compute_stop_pos, composition_reseat_it)
8792 (composition_update_it, composition_adjust_point): Extern them.
8793 (Fcomposition_get_gstring): EXFUN it.
8795 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
8796 (Vcomposition_function_table)
8797 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
8798 (gstring_hash_table, gstring_work, gstring_work_headers):
8800 (gstring_lookup_cache, composition_gstring_put_cache)
8801 (composition_gstring_from_id, composition_gstring_p)
8802 (composition_gstring_width, fill_gstring_header)
8803 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8804 (composition_reseat_it, composition_update_it)
8805 (composition_adjust_point, Fcomposition_get_gstring): New functions.
8806 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8807 and gstring_work_headers. DEFVAR_LISP composition-function-table.
8808 Defsubr compostion_get_gstring.
8810 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8812 (struct glyph_string): Delete the member gidx. New members
8813 cmp_id, cmp_from, and cmp_to.
8814 (enum it_method): Delete GET_FROM_COMPOSITION.
8815 (struct composition_it): New struct.
8816 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8817 Delete c, len, cmp_id, cmp_len in u.comp.
8819 * font.h (enum lgstring_indices): Delete it.
8820 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
8821 (enum lglyph_indices): Likewise.
8822 (font_range): Adjust extern.
8823 (font_fill_lglyph_metrics): Extern it.
8825 * font.c (QCf): New variable.
8826 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8827 (font_prepare_composition): Delete this function.
8828 (font_range): Type and arguments changed.
8829 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8830 (font_fill_lglyph_metrics): New function.
8831 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
8832 (syms_of_font): DEFSYM QCf. Delete defsubr for
8833 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8834 Defsubr Sfont_shape_gstring.
8836 * fontset.h (font_for_char): Extern it.
8838 * fontset.c (font_for_char): New function.
8840 * ftfont.c: Include composite.h.
8841 (ftfont_resolve_generic_family): Add langset "en" to pattern.
8842 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8844 * indent.c: Include composite.h and dispextern.h.
8845 (check_composition): Delete this function.
8846 (scan_for_column): Handle composition by
8847 composition_compute_stop_pos, composition_reseat_it, and
8848 composition_update_it.
8849 (compute_motion): Likewise.
8850 (Fvertical_motion): Fix checking of composition.
8852 * keyboard.c (adjust_point_for_property): Check composition by
8853 composition_adjust_point.
8855 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
8856 struct glyph_string.
8858 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8859 (append_composite_glyph): Adjust for the change of struct it and
8861 (produce_composite_glyph): Likewise.
8863 * w32term.c (x_draw_composite_glyph_string_foreground):
8864 Adjust for the change of struct glyph_string.
8865 (x_draw_glyph_string): Likewise.
8867 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8868 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8870 * xdisp.c: Include font.h.
8871 (it_props): Delete the entry for Qauto_composed.
8872 (init_iterator): Initialize it->cmp_it.id to -1.
8873 (compute_stop_pos): Call composition_compute_stop_pos.
8874 (face_before_or_after_it_pos): Adjust for the change of struct it.
8875 (handle_auto_composed_prop): Delete it.
8876 (handle_composition_prop): Handle only static composition.
8877 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8878 from xassert. Initialize it->cmp_it.stop_pos.
8879 (push_it): Adjust for the change of struct it.
8881 (get_next_element): Delete next_element_from_composition.
8882 (CHAR_COMPOSED_P): New macro.
8883 (get_next_display_element): For automatic composition, get a face
8884 from the font in the glyph-string.
8885 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
8886 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
8887 (next_element_from_string): Check if the character at the current
8888 position is composed by CHAR_COMPOSED_P.
8889 (next_element_from_buffer): Likewise.
8890 (next_element_from_composition): Adjust for the change of struct it.
8892 (dump_glyph): Adjust for the change of struct glyph.
8893 (fill_composite_glyph_string): Adjust for the change of struct
8894 it and struct glyph. Don't handle automatic composition here.
8895 (fill_gstring_glyph_string): New function.
8896 (x_get_glyph_overhangs): Handle automatic composition.
8897 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
8898 (BUILD_GSTRING_GLYPH_STRING): New macro.
8899 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8900 automatic composition.
8901 (append_composite_glyph): Adjust for the change of struct it and
8903 (x_produce_glyphs): Adjust for the change of struct it.
8905 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
8906 the change of struct glyph_string.
8907 (x_draw_glyph_string): Likewise.
8909 2008-08-29 Glenn Morris <rgm@gnu.org>
8911 * buffer.c (word-wrap): Doc fix.
8912 * xdisp.c (truncate-partial-width-windows): Doc fix.
8913 Increase default to 50.
8915 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
8917 * xdisp.c (update_tool_bar_unwind): New function.
8918 (update_tool_bar): Temporarily set selected frame before building
8921 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
8923 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8924 snprintf, respectively.
8925 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8927 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
8929 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8930 LDFLAGS to GNUstep CC invocation.
8932 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
8934 * indent.c (Fvertical_motion): Revert last change. Handle the
8935 general case where we are moving forward, and PT spans multiple
8938 * eval.c (find_handler_clause): Temporarily increase
8939 max-lisp-eval-depth while printing the backtrace buffer, to
8940 guarantee that help-mode code can run.
8942 2008-08-27 Eli Zaretskii <eliz@gnu.org>
8944 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8946 (IT_set_frame_parameters): Don't swap foreground and background
8947 colors if `(reverse . t)' is present in the frame properties.
8948 (internal_terminal_init): Call init_frame_faces only for the
8951 2008-08-27 Andreas Schwab <schwab@suse.de>
8953 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8955 2008-08-27 Andreas Schwab <schwab@suse.de>
8957 * search.c (search_buffer): Set char_base to zero only at the end.
8959 2008-08-27 Kenichi Handa <handa@m17n.org>
8961 * fileio.c (report_file_error): Fix handling of multibyte error string.
8963 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8965 * xterm.c (x_term_init): Temporarily hide the partially
8966 initialized terminal while calling vendor-specific-keysyms.
8968 2008-08-26 Eli Zaretskii <eliz@gnu.org>
8970 * msdos.c (internal_terminal_init): Most initializations done only
8971 once, especially initial_screen_colors[] and termscript open.
8973 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
8975 * eval.c (Fcondition_case): Doc fix.
8977 * widgetprv.h (EmacsFramePart): Change font member to the new font
8980 * widget.c: Include character.h and font.h for XSETFONT.
8981 (setup_frame_gcs): Compute X font id from font struct, just once.
8983 2008-08-26 Eli Zaretskii <eliz@gnu.org>
8985 * term.c (get_named_tty): Fix last change.
8987 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
8989 * indent.c (Fvertical_motion): If moving forward starting from a
8990 multi-line string, move the iterator to the last line of that string.
8992 2008-08-25 Eli Zaretskii <eliz@gnu.org>
8994 * frame.c (do_switch_frame): Mark previously displayed frame as
8995 obscured for FRAME_MSDOS_P frames as well.
8997 2008-08-24 Eli Zaretskii <eliz@gnu.org>
8999 * frame.c (make_terminal_frame): Initialize f->terminal,
9000 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9001 Set the top frame to newly created frame.
9002 (Fmake_terminal_frame): Reuse the_only_display_info.
9004 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9005 estimating available memory.
9007 2008-08-23 David Reitter <david.reitter@gmail.com>
9009 * nsterm.m (ns_draw_window_cursor): Don't call
9010 NSDisableScreenUpdates and NSEnableScreenUpdates on
9011 non-NS_IMPL_COCOA systems.
9013 2008-08-23 Andreas Schwab <schwab@suse.de>
9015 * process.c (procfs_system_process_attributes): Fix use of
9016 uninitialized variables.
9018 2008-08-23 Eli Zaretskii <eliz@gnu.org>
9020 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9022 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9023 calling tty-set-up-initial-frame-faces.
9025 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9026 Allow MSDOS frames along with X frames.
9028 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9029 addition to output_termcap.
9031 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9033 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9034 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9037 * process.c [!subprocesses]: Define QCname.
9038 (syms_of_process): Intern and staticpro it.
9040 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
9041 Adjust for changes in encoding/decoding routines.
9042 Use encode_coding_object and decode_coding_object instead of
9043 encode_coding and decode_coding.
9045 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
9047 * dosfns.c: Include frame.h before termhooks.h.
9048 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9049 variable termscript.
9051 * s/msdos.h (USER_FULL_NAME): Define.
9052 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9054 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9055 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9058 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9059 SELECTED_FRAME as additional (1st) argument.
9060 (tty_read_avail_input): Handle output_msdos_raw in
9061 addition to output_termcap.
9063 * msdos.c: Include frame.h before termhooks.h.
9064 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9065 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9066 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9067 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9068 (IT_set_terminal_modes, IT_reset_terminal_modes)
9069 (IT_set_frame_parameters): Use tty->termscript instead of a global
9070 variable termscript.
9071 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9072 global variable terminal_coding. Don't refer to
9073 Vnonascii_translation_table.
9074 (internal_terminal_init): Set Vwindow_system in current_kboard.
9075 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9076 Announce date and time of session start, if termscript is open.
9077 Don't zero out the_only_display_info (it is done in
9078 term.c:init_tty). Open termscript only of not already open.
9079 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
9080 here instead of dos_ttraw. Don't initialize display if this is an
9081 initial tty. Don't set FRAME_FONT.
9082 (Vwindow_system_version): Bump to 23.
9083 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9084 is available, set up mouse_position_hook.
9085 (dos_ttraw, IT_set_terminal_modes): If called with initial
9086 terminal, do nothing.
9087 (IT_set_frame_parameters): Handle the Qtty_type frame
9088 parameter by calling internal_terminal_init.
9089 (dos_set_window_size, show_mouse_face)
9090 (clear_mouse_face, IT_note_mode_line_highlight)
9091 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9092 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9093 (initialize_msdos_display): New function.
9094 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9095 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9096 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9097 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
9098 Accept additional argument: a pointer to a frame. Update all callers.
9099 (request_sigio, unrequest_sigio): Don't define, now defined on
9101 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9103 * term.c [MSDOS]: Include msdos.h.
9104 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9105 conditional to DOS_NT. Allow only one call to this function in a
9106 session. Don't allocate a new struct tty_display_info; instead,
9107 reuse the_only_display_info. Call get_tty_size to get screen
9108 dimensions. Call init_baud_rate to set bad_rate.
9109 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9110 (Fsuspend_tty) [MSDOS]: Don't close input and output.
9111 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
9112 (get_tty_terminal, get_named_tty, Ftty_type)
9113 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9115 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9116 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
9117 only when subprocesses are supported.
9119 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9121 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9124 * msdos.h: Remove definition of struct x_display_info and struct
9126 (FRAME_FONT): Use output_data.tty.
9127 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
9128 (struct x_display_info): Rename from display_info. Update all users in
9130 (struct x_output): Remove background_pixel and foreground_pixel.
9131 (the_only_display_info): Rename from the_only_x_display.
9132 (dos_ttraw): Update prototype.
9134 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9135 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9137 2008-08-23 Jason Rumney <jasonr@gnu.org>
9139 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9140 (fn_TIFFSetDirectory): New library function used.
9141 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9142 (tiff_load): Use :index to select among multiple images. Set count
9143 property when multiple images exist.
9144 (gif_format): Use :index, not :image.
9146 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
9148 * xdisp.c (try_scrolling): Check INT_MAX instead of
9149 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9152 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9154 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9156 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9158 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9159 GNUstep library location.
9161 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
9163 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9166 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9168 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9170 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9171 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9172 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9173 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9174 (EmacsApp-cursor_blink_handler): Remove declaration.
9175 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9176 match 01 Feb 2008 changes in xterm.c.
9177 (ns_read_socket): Add cast to avoid warning.
9178 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9181 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
9183 * xselect.c (x_get_foreign_selection): Return nil if desired
9184 selection could not be obtained, instead of signalling an error.
9186 2008-08-20 David Reitter <david.reitter@gmail.com>
9188 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9189 * nsterm.m: Remove ns-specific code for cursor blinking.
9190 (ns_draw_window_cursor): Clear cursor properly rather than
9191 redrawing the area. Respect width of bar cursors.
9192 These changes enable the use of generic blink-cursor-mode and
9193 generic cursor types in NS and support smooth cursor movements (do
9194 not blink off after command).
9195 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9198 2008-08-19 Kenichi Handa <handa@m17n.org>
9200 * font.c (Vfont_log_deferred): New variable.
9201 (font_add_log): Check Vfont_log_deferred.
9202 (font_deferred_log): New function.
9204 * font.h (font_deferred_log): Extern it.
9206 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9208 (face_for_char): Use deferred log.
9210 2008-08-18 Kenichi Handa <handa@m17n.org>
9212 * fontset.c (face_for_char): Add font log.
9214 * font.c (font_add_log): Add the font properties :script, :lang,
9215 and :otf in the log.
9217 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
9219 * xdisp.c: Remove dead code.
9220 (handle_invisible_prop, next_overlay_string): Defer call to
9222 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9224 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
9226 * xfaces.c (lookup_derived_face): Properly handle possible zero
9227 return value of get_lface_attributes.
9228 (merge_faces): Don't tell lookup_derived_face to signal an error
9229 if face is not found.
9231 * dired.c (Fdirectory_files): Doc fix.
9233 * process.c (make_process): Initialize kill_without_query struct
9236 2008-08-15 Eli Zaretskii <eliz@gnu.org>
9238 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9239 Alternative calculation of totphys for Visual Studio 6.
9241 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9243 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9244 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9246 (stat): Only root directory passed to GetDriveType. Allow RAM
9247 disk as well as local fixed disk when w32-get-true-file-attributes
9249 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9250 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9251 (w32_cached_id, w32_add_to_cache): New functions.
9252 (get_name_and_id): Look account names in the cache before calling
9254 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9255 New initialization flags.
9256 (globals_of_w32): Initialize them to zero.
9257 (w32_system_process_attributes): Use w32_cached_id and
9260 2008-08-14 Lawrence Mitchell <wence@gmx.li>
9262 * lread.c (Fread_char, Fread_char_exclusive): If no character
9263 event is read before timeout is reached, return nil, rather than
9264 converting to a number.
9266 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
9268 * fns.c (use_dialog_box): Doc fix.
9270 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9273 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
9275 * frame.c (Qns_parse_geometry): New var.
9276 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9278 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
9280 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9281 space character in calculating tabs.
9283 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9285 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9287 2008-08-10 Glenn Morris <rgm@gnu.org>
9289 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9290 silence gcc "limited range of data type" warnings in some
9291 make_fixnum_or_float calls.
9293 2008-08-09 Eli Zaretskii <eliz@gnu.org>
9295 * w32.c (w32_system_process_attributes): If the process does not
9298 * w32.c: Include thelp32.h, psapi.h and coding.h.
9299 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9301 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9302 (Process32Next_Proc): New typedefs.
9303 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9304 (g_b_init_process32_next, g_b_init_open_thread_token)
9305 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9306 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9307 (g_b_init_get_process_working_set_size)
9308 (g_b_init_global_memory_status_ex): New static variables.
9309 (globals_of_w32): Initialize them.
9310 (create_toolhelp32_snapshot, process32_first, process32_next)
9311 (open_thread_token, impersonate_self, revert_to_self)
9312 (get_process_memory_info, get_process_working_set_size)
9313 (global_memory_status, global_memory_status_ex): New wrapper
9315 (w32_list_system_processes, w32_system_process_attributes)
9316 (enable_privilege, restore_privilege, ltime, process_times):
9318 (convert_time_raw): New function.
9319 (convert_time): Remove conversion of FILETIME into time in 100
9320 nsec units, call convert_time_raw instead.
9322 * process.h (w32_list_system_processes, w32_system_process_attributes):
9324 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9325 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9326 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9327 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9329 * process.c (Fsystem_process_attributes): Doc fix.
9331 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
9333 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9334 a continued multi-char glyph; if so, advance to the actual glyph.
9336 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9338 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9340 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9342 * config.in: Regenerate.
9344 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
9346 * xdisp.c (redisplay_window): Revert last change.
9347 (try_window): Check bottom scroll margin too.
9349 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9351 * config.in: Regenerate.
9353 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9354 -list-load-path-shadows'.
9355 (nsgui.h): Reduce number of things depending on it.
9357 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
9359 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9360 instead of window-end which does the wrong thing at eob.
9361 (try_cursor_movement): Minor optimization.
9362 (redisplay_window): If scroll margin is defined, don't assume
9363 window doesn't need scrolling.
9365 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9367 * config.in: Regenerate.
9369 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9370 (mostlyclean): Don't delete *.d under NS.
9372 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9374 2008-08-06 Kenichi Handa <handa@m17n.org>
9376 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9378 2008-08-06 Andreas Schwab <schwab@suse.de>
9380 * config.in: Regenerate.
9382 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
9384 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9385 forcing a window start.
9387 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9388 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9390 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9392 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9395 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
9397 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9398 <scroll-down-aggressively, before-change-functions>:
9399 <after-change-functions>: Reflow docstrings.
9401 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9402 Ken Raeburn <raeburn@gnu.org>
9404 Dock menu customization, based on a patch by Ken Raeburn, plus some
9406 * nsmenu.m (dockMenu): New variable.
9407 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9409 * nsterm.h (dockMenu): Declare.
9411 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9412 (ns_term_init): Initialize dockMenu.
9413 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9414 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9417 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9419 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9421 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9423 * config.in: Regenerate.
9425 2008-08-04 Seiji Zenitani <zenitani@mac.com>
9427 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9429 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9431 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9433 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9435 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9437 * keyboard.h: Comment an #endif.
9439 * lisp.h (have_menus_p): Adjust comment.
9441 * menu.c (find_and_return_menu_selection): Fix comparison with
9444 * nsmenu.m (popup_activated_flag): New variable.
9445 (popup_activated): New function.
9446 (menu-or-popup-active-p): New exported lisp definition.
9447 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9449 (ns_popup_dialog): Set popup_activated_flag.
9451 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9452 version for GNUstep (handled by conditional typedef in nsterm.m).
9453 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9456 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9458 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9460 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9462 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9463 shortcircuit if popup_activated like GTK and X toolkit.
9465 * m/inter386.h: Change DARWIN to DARWIN_OS.
9467 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9468 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9469 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9470 comment on NO_SOCK_SIGIO.
9472 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
9474 * nsterm.m (windowDidResize): Remove stopModal call.
9476 2008-08-03 Andreas Schwab <schwab@suse.de>
9478 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9479 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9481 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
9483 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9484 Don't use uninitialized pointer variable when using getrlimit.
9486 2008-08-02 Jason Rumney <jasonr@gnu.org>
9488 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9490 2008-08-02 Eli Zaretskii <eliz@gnu.org>
9492 * alloc.c (NSTATICS): Bump to 0x640.
9494 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9496 * lisp.h: Add prototype for directory_files_internal.
9498 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9500 (syms_of_process): Defsubr them. Add initializations for various
9501 Q* symbols used in procfs_system_process_attributes.
9502 (procfs_list_system_processes, procfs_system_process_attributes)
9503 [HAVE_PROCFS]: New functions.
9504 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9505 (procfs_get_total_memory): New functions.
9507 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9509 * xfaces.c (Fx_load_color_file): Fix previous change;
9510 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9512 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
9514 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9516 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9518 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9520 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
9522 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9524 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9525 define NSApplicationDelegateReplySuccess.
9526 (EmacsView -converstationIdentifier): Use long instead of
9527 NSInteger for GNUstep, since it doesn't have NSInteger.
9529 * xmenu.c: Revert last change.
9531 * keyboard.h: Fix last change.
9533 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9535 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9538 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9540 Warning clearing and clean-up in NS port.
9541 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9543 * nsgui.h (FACE_DEFAULT): Remove, unused.
9544 (XGCValues): Change colors to unsigned long.
9545 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9547 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9548 (ns_list_fonts): Remove, unused.
9549 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9550 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9551 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9552 (nsfont_draw): Compare face colors to 0, not nil.
9553 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9554 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9555 (-addSubmenuWithTitle:): Use NSMenuItem class.
9556 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9557 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9558 (ns_clip_to_row): Make gc arg a BOOL.
9559 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9560 ns_clip_to_row() call.
9561 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9562 used). Cast FRAME_FONT assignments.
9563 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9564 (ns_string_to_lispmod): Change arg to const char.
9565 (ns_term_init): Use NSMenuItem class.
9566 (EmacsApp -openFile:): Move to different section of file.
9567 (EmacsApp -application:openFiles:): Don't return a value, call
9568 -replyToOpenOrPrint:.
9569 (EmacsView -keyDown:): Fix up cast.
9570 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9571 (EmacsView -menuDown:): Cast tag in call to
9572 find_and_call_menu_selection().
9573 (ns_list_fonts): Remove, unused.
9574 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9575 (ns_fontname_to_xlfd): Make static.
9576 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9577 Remove prototypes (now in keyboard.h).
9578 (next_menubar_widget_id): Remove, unused.
9579 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9580 Remove prototypes (now in keyboard.h).
9581 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9583 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9585 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9586 (floatfns.o): Depend on syssignal.h.
9587 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9589 * systty.h: Fix previous change that removed BSD_TERMIOS.
9590 Add comments to #ifdefs.
9592 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9594 * w32fns.c (w32-load-color-file): Remove.
9595 (x-open-connection): Use renamed Fx_load_color_file.
9596 * xfaces.c (x-load-color-file): Add.
9597 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9599 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9601 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
9603 * dbusbind.c (Fdbus_call_method_asynchronously)
9604 (Fdbus_method_error_internal): New defuns.
9605 (xd_read_message): Handle also reply messages.
9606 (Vdbus_registered_functions_table): Extend docstring.
9608 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
9610 * keyboard.c (gobble_input): Fix previous change.
9612 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9643 * m/vax.h: Remove VMS support.
9649 * ioctl.h: Remove file.
9651 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9653 * s/ms-w32.h (MULTI_KBOARD): Remove.
9668 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9669 * config.in: Regenerate.
9671 2008-07-30 Jason Rumney <jasonr@gnu.org>
9673 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9675 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9676 (w32font_open_internal): Get unicode version of textmetrics.
9677 Don't enable or disable glyph indices here.
9678 (w32font_open): Disable use of glyph indices.
9680 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9682 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
9684 * minibuf.c (Vread_buffer_function): Doc fix.
9686 2008-07-30 John Paul Wallington <jpw@pobox.com>
9688 * minibuf.c (read_buffer_completion_ignore_case): New var.
9689 (Fread_buffer): Use it.
9691 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9693 * systty.h (sensemode): Remove empty #if. Remove reference to
9694 BSD_TERMIOS, unused.
9696 * sysdep.c: Remove reference to DGUX.
9697 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9699 * config.in: Regenerate.
9701 2008-07-30 Jason Rumney <jasonr@gnu.org>
9703 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9705 2008-07-29 Jason Rumney <jasonr@gnu.org>
9707 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9709 (uniscribe_encode_char): Always use uniscribe.
9710 Avoid using context if cache is populated.
9712 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9714 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9717 * gtkutil.c (menu_nav_ended): Remove.
9718 (create_menus): Remove signal connect for menu_nav_ended.
9720 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
9722 * xdisp.c (redisplay_window): Check return value of
9723 compute_window_start_on_continuation_line before forcing a window
9726 2008-07-28 Jason Rumney <jasonr@gnu.org>
9728 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9730 * w32term.c (w32_enable_unicode_output, cleartype_active):
9731 Remove obsolete display options.
9732 (x_draw_glyph_string_background): Don't use old cleartype_active
9734 (w32_initialize): Remove cleartype_active initialization.
9735 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9737 2008-07-28 Andreas Schwab <schwab@suse.de>
9739 * lisp.h (init_weak_hash_tables, syms_of_font)
9740 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9741 (remove_hash_entry): Don't declare.
9742 * eval.c (maybe_call_debugger): Make static and move before use.
9743 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9744 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9745 * xterm.h (x_set_frame_alpha): Declare.
9747 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9749 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9750 (create_menus): Connect selection-done to menu_nav_ended.
9752 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9754 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9755 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9756 parameter with read of 'alpha' one.
9757 (Qns_frame_parameter): Remove.
9758 * nsselect.m (selection-coding-system)
9759 (next-selection-coding-system, Vselection_coding_system)
9760 (Vnext_selection_coding_system): Drop.
9762 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9764 * nsfns.m (do-applescript, do_applescript): Rename to
9765 ns-do-applescript, ns_do_applescript, and move within file.
9767 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9769 Remove support for Mac Carbon.
9777 * mac.c: Remove file.
9808 * Makefile.in: Remove code for Carbon.
9810 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9812 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9814 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9816 * macterm.h (kCGBitmapByteOrder32Host): New define for
9819 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9820 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9822 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9823 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9825 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9827 * w32inevt.c: Include dispextern.h.
9829 2008-07-26 Andreas Schwab <schwab@suse.de>
9831 * print.c (print_object): Fix off-by-one in last change.
9833 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
9835 * term.c (syms_of_term): Don't initialize default_orig_pair,
9836 default_set_foreground and default_set_background on Windows.
9838 2008-07-25 Jason Rumney <jasonr@gnu.org>
9840 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9841 ScriptItemize. Clean up return value checking. Remove unused
9843 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9846 * w32font.c (w32font_has_char): Handle the case where we can't
9847 determine the script for a character.
9849 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
9851 * term.c (syms_of_term): Initialize default_orig_pair,
9852 default_set_foreground, and default_set_background.
9854 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9856 (getloadavg): Callers changed.
9858 * image.c (svg_load_image): Fix last change.
9859 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9860 image size is valid. Use g_object_unref instead of deprecated
9861 rsvg_handle_free to free rsvg handle.
9862 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9864 2008-07-25 Jason Rumney <jasonr@gnu.org>
9866 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9867 surrogates before looking up glyph index.
9868 (w32font_text_extents): Encode as surrogates if falling back to
9869 functions that need UTF-16 wide chars.
9871 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9872 BMP as surrogates before looking up glyph index.
9874 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
9876 * image.c (svg_load_image): Check for failure in return value of
9877 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9879 2008-07-25 Jason Rumney <jasonr@gnu.org>
9881 * w32font.c (Fx_select_font): Reverse sense of second arg.
9883 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9885 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9886 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9888 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9891 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9893 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9894 * m/alpha.h (TEXT_END):
9895 * m/ibmrs6000.h (TEXT_END):
9896 * m/macppc.h (TEXT_END):
9897 * s/darwin.h (TEXT_END):
9898 * s/msdos.h (TEXT_END): Remove, unused.
9899 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9900 * s/cygwin.h: Remove comment.
9902 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9903 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9904 * m/intel386.h (DOT_GLOBAL_START):
9905 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9906 (USG): Remove, file not used on USG platforms.
9908 * Makefile.in (HAVE_X11): Remove empty #else.
9910 2008-07-24 Andreas Schwab <schwab@suse.de>
9912 * fileio.c (Finsert_file_contents): Properly adjust undo list
9913 after format conversion.
9915 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9917 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9918 (menu_nav_ended): Remove.
9919 (create_menus): Remove signal connect for menu_nav_ended.
9920 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9922 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9924 2008-07-23 Jason Rumney <jasonr@gnu.org>
9926 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9928 (w32font_open): Set font type to gdi.
9930 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9932 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9934 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9935 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9937 * unexec.c (ADDR_CORRECT): Define unconditionally.
9939 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9941 * unexec.c: Remove code depending on !COFF and USG, the file is
9942 not used for such systems.
9944 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9945 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9946 (LD_SWITCH_SYSTEM_1): Remove, update users.
9948 * s/darwin.h (DATA_END):
9949 * m/intel386.h (DATA_END):
9950 * m/ibmrs6000.h (DATA_END):
9951 * m/alpha.h (DATA_END): Remove, unused.
9953 * config.in: Regenerate.
9954 * s/ms-w32.h (subprocesses): Define unconditionally.
9955 * s/template.h (subprocesses): Update comment.
9956 * s/vms.h (subprocesses):
9957 * s/usg5-4.h (subprocesses):
9958 * s/hpux10-20.h (subprocesses):
9959 * s/gnu-linux.h (subprocesses):
9960 * s/cygwin.h (subprocesses):
9961 * s/bsd-common.h (subprocesses):
9962 * s/aix4-2.h (subprocesses):
9963 * s/darwin.h (subprocesses): Do not define, defined by default now.
9965 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9966 Remove all references.
9967 (temacs): Add GNUstep specific ld flags.
9969 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9970 similarly to what X does.
9972 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9974 * nsfns.m (x-list-fonts): Remove.
9975 (syms_of_nsfns): Drop the x-list-fonts declaration.
9976 * nsterm.m: Get rid of remaining "//" comments.
9978 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
9980 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9982 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9983 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9984 (Fns_own_selection_internal, Fx_disown_selection_internal)
9985 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9987 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9988 ... */' style of docstrings. Doc fixes.
9990 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9992 * terminfo.c (UP, BC, PC): Undo previous change.
9994 * nsfns.m: Rename ns prefixed functions/variables to the
9995 corresponding x versions. Update references.
9997 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9999 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10001 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10003 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10004 Remove forwarding functions.
10005 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10007 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10009 (ns_frame_parm_handlers): Use the new names.
10010 (syms_of_nsfns): Move to the end of file.
10012 * nsterm.m (syms_of_nsterm): Move to the end of file.
10014 * dispnew.c (init_display): Remove code for X10.
10016 2008-07-22 Jason Rumney <jasonr@gnu.org>
10018 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10021 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10023 * nsterm.m (syms_of_nsterm): Remove debugging println.
10025 2008-07-22 David Reitter <david.reitter@gmail.com>
10027 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10028 Carbon implementation of the same functionality: execute arbitrary
10031 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10033 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10034 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10035 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10036 (Fx_display_mm_height, Fx_display_mm_width)
10037 (Fx_display_backing_store, Fx_display_visual_class)
10038 (Fx_display_save_under, Fx_open_connection)
10039 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10040 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10041 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10042 (Fx_display_pixel_width, Fx_display_pixel_height)
10043 (Fx_display_usable_bounds, Fx_display_planes)
10044 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10045 ... */' style of docstrings.
10047 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10049 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10052 * m/iris4d.h (mips): Do not define.
10053 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10055 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10061 * nsterm.m: Rename ns prefixed functions/variables to the
10062 corresponding x versions. Update references.
10064 * m/ibms390x.h (NO_REMAP): Do not undefine.
10066 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10068 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
10070 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10071 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10072 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10073 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10074 (Fns_display_mm_height, Fns_display_mm_width)
10075 (Fns_display_backing_store, Fns_display_visual_class)
10076 (Fns_display_save_under, Fns_open_connection)
10077 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10078 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10079 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10080 (Fns_display_pixel_width, Fns_display_pixel_height)
10081 (Fns_display_usable_bounds, Fx_display_planes)
10082 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10084 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10086 * print.c (print_object): Check print_depth before searching for
10089 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
10091 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10094 2008-07-21 Kenichi Handa <handa@m17n.org>
10096 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10098 2008-07-20 Andreas Schwab <schwab@suse.de>
10100 * syntax.c (find_start_pos, find_start_value)
10101 (find_start_value_byte, find_start_begv, find_defun_start)
10102 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10104 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10106 * s/sol2-3.h: Insert contents of s/sol2.h.
10107 (LD_SWITCH_SYSTEM): Remove redundant definition.
10108 * s/sol2.h: Remove, unused.
10110 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10112 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10114 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10116 * Makefile.in (ns_appdir): Fix typo in find command.
10118 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10120 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10122 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10123 added not supported anymore.
10125 * s/usg5-4-2.h (LIBS_SYSTEM):
10126 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10128 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10129 * s/lynxos.h (GETPGRP_NO_ARG):
10130 * s/hpux10-20.h (NO_SIOCTL_H):
10131 * s/gnu.h (GETPGRP_NO_ARG):
10132 * s/gnu-linux.h (NO_SIOCTL_H):
10133 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10134 * s/cygwin.h (GETPGRP_NO_ARG):
10135 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10136 (C_DEBUG_SWITCH): Remove duplicate definition.
10138 * m/ibms390.h: Remove boilerplate comments.
10140 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10142 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10143 (wait_reading_process_output): Remove code for SunOS, platform not
10144 supported anymore. Use SOLARIS2 instead of sun.
10146 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10148 * font.c (font_open_by_name): Under NS, default lface height to zero.
10149 (font_open_for_lface): Under NS, set size based on frame fontsize.
10150 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10151 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10153 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10155 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10156 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10157 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10159 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10160 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10161 * Makefile.in (clean): Clear out build destination dir.
10163 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10165 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10167 * lisp.h: Remove declaration of hash_remove.
10168 * nsgui.h: Remove redefinitions of hash_remove.
10169 * fns.c (hash_remove): Rename to hash_remove_from_table.
10171 2008-07-19 Seiji Zenitani <zenitani@mac.com>
10173 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10174 strdup() the family UTF8String before modifying it.
10176 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10178 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10179 NS_FACE_BACKGROUND with 0 instead of nil.
10180 * nsfont.m (nsfont_draw): Same.
10182 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
10184 * nsfns.m (ns_set_background_color): Fix crash.
10186 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
10188 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10190 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10192 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10194 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10196 * gtkutil.c: Include <config.h> instead of "config.h".
10198 * lisp.h (Foverlay_buffer): Add EXFUN.
10200 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10201 child process to complete child_setup. Undo 2005-09-21 change.
10203 * s/darwin.h: Mention setsid after vfork.
10205 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10207 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10208 Depend on macgui.h.
10210 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10211 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10213 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10215 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10217 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10218 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10219 Remove enumerators.
10221 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10222 Check if FACE_FROM_ID returns NULL.
10224 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10226 * w32inevt.c (change_frame_size): Remove extern declaration.
10227 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10230 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10232 * getloadavg.c: Revert last change (2008-07-15).
10234 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10236 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
10237 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
10240 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10243 * s/sol2-4.h: Reorganize conditionals.
10245 * ecrt0.c: Remove code depending on m68000, not used anymore.
10247 * fns.c (hash_remove): Make static.
10248 * lisp.h (hash_remove): Don't prototype.
10252 * m/macppc.h: Remove boilerplate comments.
10254 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10255 Solaris, which does not need them.
10257 * m/vax.h: Remove comments about unsupported systems.
10259 * s/darwin.h: Reorganize ifdefs.
10261 2008-07-17 Andreas Schwab <schwab@suse.de>
10263 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10265 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10267 Use SDATA. Follow coding convention of placing operators at
10268 beginning of next line rather than end of previous line, and placing
10269 spaces around infix operators.
10271 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10272 in case it was defined already.
10273 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10274 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10276 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10278 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10279 (ns_defined_color, ns_color_to_lisp): Declare.
10280 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10281 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10282 it's accepted even with USE_LISP_UNION_TYPE.
10283 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10284 (update_frame_tool_bar): Remove apparently obsolete tests for
10285 non-integerness of f->tool_bar_lines.
10286 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10287 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10288 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10289 (nsfont_open): Don't confuse NULL for Qnil.
10290 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10291 * menu.h (find_and_call_menu_selection):
10292 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10293 (find_and_return_menu_selection): Always return something.
10294 * frame.h: Include dispextern.h for Display_Info.
10295 (display_x_get_resource): Declare.
10297 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10299 * syntax.c: Remove stdio.h include accidentally introduced in
10301 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10303 * keyboard.c (handle_async_input, input_available_signal): Remove
10304 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10306 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10308 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10309 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10310 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10313 * keymap.c: Remove all NS-specific code.
10314 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10315 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10316 where_is_preferred_modifier, return a different value depending on how
10317 preferred is the binding.
10318 (where_is_internal): Adjust accordingly.
10319 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10320 Adjust to new preferred_sequence_p.
10321 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10322 * keyboard.c (parse_solitary_modifier): Not static any more.
10323 * keyboard.h (parse_solitary_modifier): Declare.
10325 2008-07-16 Andreas Schwab <schwab@suse.de>
10327 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10330 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
10332 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10333 that we don't move off the line.
10335 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10337 * keyboard.c (Qsuper): Remove.
10338 (parse_menu_item): Don't call where_is_internal specially for NS.
10340 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10342 * s/gnu-linux.h: Remove boilerplate comments.
10344 * m/alpha.h (__ELF__): Consolidate conditions.
10346 * m/m68k.h (linux): Use GNU_LINUX instead.
10347 Remove boilerplate comments.
10349 * m/intel386.h: Undo refactoring from previous change.
10350 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10351 too, remove dead code.
10352 (linux): Use GNU_LINUX instead.
10354 2008-07-16 Jason Rumney <jasonr@gnu.org>
10356 * w32gui.h: Repeat 26 June changes lost by last change.
10358 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10360 * systty.h: Remove code for Aix on 386, unsupported platform.
10362 * s/ms-w32.h: Remove boilerplate comments.
10363 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10365 * s/gnu-linux.h (TERM): Remove support.
10366 (HAVE_SYSVIPC): Remove, unused.
10367 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10370 * process.c: Remove support for IRIS, unused.
10371 Remove support for TERM, not relevant anymore.
10373 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10374 used with the definition.
10376 * s/aix4-2.h (static): Do not undef.
10378 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10380 (HAVE_SYSVIPC): Remove, unused.
10382 * m/hp800.h (CANNOT_DUMP): Do not undef.
10384 * m/alpha.h: Fix comment.
10386 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10387 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10388 used by this configuration.
10389 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10390 * unexec.c: Remove code depending on HPUX and
10391 USG_SHARED_LIBRARIES, not used with this file. Remove code
10392 depending on IRIS, unused. Remove if 0-ed code.
10394 * s/template.h: Remove comments about static.
10396 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10397 Remove if 0-ed code.
10398 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10399 were the same as the default.
10400 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10401 Remove boilerplate comments.
10402 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10403 (HAVE_SYSVIPC): Remove, unused.
10404 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10406 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10407 Remove boilerplate comments.
10408 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10409 Remove boilerplate comments.
10410 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10411 Remove boilerplate comments.
10412 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10414 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10415 USG systems which do not use DATA_SEG_BITS.
10416 Refactor code. Remove boilerplate comments.
10425 * s/msdos.h: Remove boilerplate comments.
10427 * m/iris4d.h: Remove boilerplate comments and code for systems that
10428 do not use this file.
10429 (IRIS_4D): Remove, unused.
10431 * m/mips.h: Remove boilerplate comments and code for systems that
10432 do not use this file.
10433 (SIGN_EXTEND_CHAR):
10434 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10435 * unexmips.c: Remove file, unused.
10437 * editfns.c (Fuser_full_name): Replace the only use of
10438 USER_FULL_NAME with its value.
10439 * config.in: Regenerate.
10441 2008-07-16 David Reitter <david.reitter@gmail.com>
10443 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10444 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10446 2008-07-16 Glenn Morris <rgm@gnu.org>
10448 * emacs.c (system-type): Doc fix.
10450 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10452 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10453 If the cache doesn't work, let's fix it, rather than work around it.
10455 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10457 * Makefile.in: Correct additions for nsfont.o in last commit.
10458 * nsfont.m: New file (forgot last commit).
10460 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10462 * callproc.c (set_initial_environment): Initialize
10463 Vprocess_environment under CANNOT_DUMP (fixes crash when
10464 batch-compiling for bootstrap).
10466 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10467 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10469 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10470 fix crash due to different init order.
10472 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10474 Changes and additions for NeXTstep windowing system (Cocoa and
10478 * config.in: Support defines and build commands for NS port.
10479 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10480 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10481 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10483 (struct face): Add synth_ital field.
10484 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10485 (init_display): Initialize Vinitial_window_system to "ns" when so
10487 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10488 (display_arg): Use under NS.
10489 (main): Under NS, allocate autorelease pool and handle command line
10490 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10491 (standard_args): Add NS-specific args.
10492 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10493 * font.c (DEFAULT_ENCODING): New variable.
10494 (font_find_for_lface): Use it.
10495 (syms_of_font): Load syms_of_nsfont under NS.
10496 * font.h: Declare nsfont_driver when compiled under NS.
10497 * fontset.c: When compiling under NS, include nsterm.h.
10498 (fontset_from_font): Autoconstruct fontset under NS.
10499 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10500 symbol, document and use it.
10501 (do_switch_frame): When for_deletion under Cocoa, add
10502 Fraise_frame(Qnil).
10503 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10504 (x_get_arg): Allow "yes" and "no" as boolean values.
10505 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10506 Qright under Cocoa.
10507 (focus-follows-mouse): Default to 0 under NS.
10508 * frame.h (enum output_method): Add output_ns.
10509 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10510 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10511 (FRAME_WINDOW_P): NS-specific definition.
10512 * fringe.c (max_used_fringe_bitmap): Make public.
10513 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10514 (getloadavg): Use NeXT code under descendant OS's.
10515 * image.c (includes and header section, x_create_bitmap_from_data)
10516 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10517 (image_background_transparent, x_clear_image_1)
10518 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10519 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10520 (x_to_xcolors, x_from_xcolors, x_disable_image)
10521 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10522 other GUIs, including XPM support using code originally written for
10524 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10526 (image_ascent): Use font metrics macros instead of direct struct field
10528 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10529 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10530 Also, handle NS as GTK for menu bar purposes.
10531 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10532 toolkit where they differ.
10533 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10534 use cachelist, still needed under NS.
10535 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10536 (struct widget_value): Define it here for menu.c.
10537 * keymap.c (includes): Include modifier internals.
10538 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10540 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10541 support for preferring sequences using certain modifiers, specified by
10542 the FIRSTONLY argument.
10543 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10544 under NS GNUstep implementation.
10545 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10546 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10547 * menu.c: Include nsterm.h under NS.
10548 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10549 (free_menubar_widget_tree_value, update_submenu_strings)
10550 (find_and_call_menu_selection): Treat NS as X and NT.
10551 (find_and_return_menu_selection): New function, used for popup menus.
10558 * nsterm.m: New files.
10559 * process.c (wait_reading_process_output): Under NS, call ns_select()
10560 instead of plain select().
10561 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10562 beginning of buffer.
10563 * sysselect.h (init_process): Rename when compiling under Cocoa to
10564 avoid name conflict.
10565 * termhooks.h (display_info): Add ns_display_info to union.
10566 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10567 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10569 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10570 unexec() signature. (Note, this will dump, but the resulting file
10571 crashes; unexosx is used instead; keeping around for reference and
10572 possible aid in getting dump working under GNUstep.)
10573 * w32gui.h (button_type, widget_value): Remove definitions (now in
10575 * window.c: Include nsterm.h when compiling under NS.
10576 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10577 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10578 other GUI windowing systems.
10579 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10581 (x_consider_frame_title): Under NS, set icon type and frame
10582 modified-state indicator; use ns_set_name_as_filename() when using
10584 (update_window_cursor): Make public when compiling under NS.
10585 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10586 (hourglass_atimer, Vhourglass_delay
10587 * xfaces.c (header section, init_frame_faces, clear_font_table)
10588 (defined_color, unload_color, x_face_list_fonts)
10589 (prepare_face_for_display): Add NS support parallel to other GUIs.
10590 Emulate GCs like other non-X GUIs.
10591 (split_font_name): Don't lowercase font name under NS.
10592 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10594 * s/darwin.h: Add support for compilation under NS.
10596 2008-07-15 Jason Rumney <jasonr@gnu.org>
10598 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10599 (w32_show_hourglass): Rename from show_hourglass.
10600 (w32_hide_hourglass): Rename from hide_hourglass.
10601 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10602 (Vhourglass_delay): Declare extern.
10603 (hourglass_started): Remove.
10605 * xdisp.c (Vhourglass_delay): Remove static.
10606 (hourglass_started, start_hourglass, cancel_hourglass):
10607 Don't include these versions on WINDOWSNT.
10609 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10611 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10612 variables (formerly in xfns.c).
10613 (show_hourglass, hide_hourglass): New prototypes (same).
10614 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10615 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10617 (syms_of_xdisp): Declare/initialize display-hourglass,
10618 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10619 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10620 formerly in xfns.c.
10621 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10622 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10623 (start_hourglass, cancel_hourglass): Remove.
10624 (show_hourglass, hide_hourglass): Remove prototypes and static
10626 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10627 hourglass_atimer, hourglass_shown_p declaration/initialization.
10628 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10629 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10630 (start_hourglass, cancel_hourglass): Remove.
10631 (show_hourglass, hide_hourglass): Remove prototypes and static
10633 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10634 hourglass_atimer, hourglass_shown_p declaration/initialization.
10635 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10636 (DEFAULT_HOURGLASS_DELAY): Remove.
10637 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10638 hourglass_shown_p declaration/initialization.
10640 2008-07-14 Jason Rumney <jasonr@gnu.org>
10642 * w32fns.c (w32_get_arg): Remove wrapper function.
10643 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10645 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10647 2008-07-14 Kenichi Handa <handa@m17n.org>
10649 * xfont.c (xfont_open): Add workaround for X's bug.
10651 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10653 * fontset.c: Include <stdio.h> unconditionally.
10655 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
10657 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10660 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10662 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10665 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10667 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10668 (SPECIAL_EMACS_INT):
10669 * m/ia64.h (SPECIAL_EMACS_INT):
10670 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10671 * s/gnu.h (NLIST_STRUCT):
10672 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10673 * s/gnu-linux.h (LINUX):
10674 * s/msdos.h (HAVE_FACES):
10675 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10678 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10681 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10683 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10684 always defined as int.
10686 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10687 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10688 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10689 * s/freebsd.h (HAVE_WAIT_HEADER):
10690 * s/bsd-common.h (HAVE_UNION_WAIT):
10691 * s/aix4-2.h (HAVE_WAIT_HEADER):
10692 * m/mips.h (HAVE_UNION_WAIT):
10693 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10694 (COFF, static): Do not define, they are undefined later in the file.
10696 * process.c (update_status): Don't use a union.
10698 (sigchld_handler): Use int instead of WAITTYPE.
10700 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
10702 * indent.c (Fvertical_motion): Restore hscroll before moving to
10705 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10707 * lisp.h: Remove left over code.
10709 2008-07-11 Andreas Schwab <schwab@suse.de>
10711 * lisp.h: Fix logic in last change.
10713 * menu.h: New file.
10714 * menu.c: Include it.
10715 * xmenu.c: Likewise.
10716 * Makefile.in: Update dependencies.
10718 2008-07-11 Kenichi Handa <handa@m17n.org>
10720 * fontset.c (fontset_from_font): Cancel the previous change.
10722 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10727 * alloc.c: Replace all references of NO_UNION_TYPE with
10728 USE_LISP_UNION_TYPE.
10730 * m/xtensa.h (NO_UNION_TYPE):
10731 * m/vax.h (NO_UNION_TYPE):
10732 * m/template.h (NO_UNION_TYPE):
10733 * m/sparc.h (NO_UNION_TYPE):
10734 * m/mips.h (NO_UNION_TYPE):
10735 * m/macppc.h (NO_UNION_TYPE):
10736 * m/m68k.h (NO_UNION_TYPE):
10737 * m/iris4d.h (NO_UNION_TYPE):
10738 * m/intel386.h (NO_UNION_TYPE):
10739 * m/ibms390x.h (NO_UNION_TYPE):
10740 * m/ibms390.h (NO_UNION_TYPE):
10741 * m/ibmrs6000.h (NO_UNION_TYPE):
10742 * m/ia64.h (NO_UNION_TYPE):
10743 * m/hp800.h (NO_UNION_TYPE):
10744 * m/arm.h (NO_UNION_TYPE):
10745 * m/amdx86-64.h (NO_UNION_TYPE):
10746 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10747 defining it the same.
10749 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
10751 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10753 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10770 * s/vms.h: Remove references to unused variables.
10772 2008-07-10 Andreas Schwab <schwab@suse.de>
10774 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10775 pattern before matching the generic family.
10777 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10784 * s/darwin.h: Remove dead code.
10797 * m/amdx86-64.h: Remove dead code and references to unused
10798 and compiler defined symbols.
10801 * unexelf.c: Remove references to desupported systems.
10803 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10805 * m/powermac.h: Remove boilerplate comments.
10806 (NO_REMAP): Remove unused definition.
10808 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10811 2008-07-10 Kenichi Handa <handa@m17n.org>
10813 * xfont.c (xfont_open): Log the reason of failure.
10815 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10817 * fontset.c (fontset_get_font_group):
10818 * font.c (font_check_otf): Specify argument types.
10820 2008-07-09 Kenichi Handa <handa@m17n.org>
10822 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10823 non-ASCII char is found.
10825 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10826 (reorder_font_vector): Change the arg preferred_family to font.
10827 Prefer the spec matching with font.
10828 (fontset_get_font_group): New function.
10829 (fontset_find_font): Change the format of an element of a realized
10830 fontset. Use fontset_get_font_group.
10831 (fontset_font): Try the current fontset, the default fontset, the
10832 fallbacks of the current fontset, and the fallbacks of the default
10833 fontset in this order.
10834 (face_for_char): Delete the shortcut to use the current font.
10835 (fontset_from_font): Don't set fonts for Latin in the fontset.
10837 * font.h (font_make_object, font_match_p): Adjust prototypes.
10839 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10841 * font.c (font_make_object): New arg entity and pixelsize.
10842 (font_check_otf_features, font_check_otf): New functions.
10843 (font_match_p): Check :lang, :script, and :otf properties.
10845 * xfont.c (xfont_open): Adjust it for the change of
10847 (xfont_text_extents): Fix initial setting of metrics.
10849 * ftfont.c (struct ftfont_info): New member index, delete member
10850 fc_charset_idx. Make the member order compatible with struct
10852 (fc_charset_table): Change charset names to registry names.
10853 (ftfont_pattern_entity): Delete the args registry and
10854 fc_charset_idx. Change the value of :font-entity property
10855 to (FONTNAME . INDEX). Always set :registry property to
10857 (struct ftfont_cache_data): New struct.
10858 (ftfont_lookup_cache): New arg for_face.
10859 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10860 (ftfont_driver): Set the member otf_capability.
10861 (ftfont_get_charset): Adjust it for the change of
10863 (OTF_TAG_SYM): New macro.
10864 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10865 for the change of fc_charset_table.
10866 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10867 ftfont_pattern_entity. Add FC_INDEX to objset.
10868 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10869 and ftfont_pattern_entity.
10870 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10871 font_make_object, struct ftfont_info.
10872 (ftfont_has_char): Use ftfont_get_fc_charset.
10873 (ftfont_otf_features, ftfont_otf_capability): New functions.
10874 (ftfont_shape): Use ftfont_get_otf.
10875 (ftfont_text_extents): Fix initial setting of metrics.
10877 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10878 member order compatible with struct ftfont_info.
10879 (xftfont_open): Add FC_CHARSET to the pattern. Set
10880 xftfont_info->ft_size. Don't unlock the face. Check BDF
10881 properties if appropriate.
10882 (xftfont_close): Unlock the face.
10883 (xftfont_anchor_point, xftfont_shape): Deleted.
10884 (syms_of_xftfont): Don't set members anchor_point and shape of
10887 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10890 * w32font.c (w32font_open): Adjust it for the change of
10892 (w32font_open_internal): Don't set properties of font_object here.
10894 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
10896 * macfns.c (x_create_tip_frame):
10897 * w32fns.c (x_create_tip_frame):
10898 * xfns.c (x_create_tip_frame): Pass parameter argument to
10899 face-set-after-frame-default.
10901 * xfaces.c (Finternal_merge_in_global_face): Save merged
10902 attributes for the default face back into the face vector.
10904 2008-07-08 Andreas Schwab <schwab@suse.de>
10906 * fontset.h: Declare fontset_from_font. Don't declare
10907 new_fontset_from_font and fontset_from_font_name.
10908 * xterm.c: Include "fontset.h".
10909 * Makefile.in (xterm.o): Update dependencies.
10911 2008-07-08 Glenn Morris <rgm@gnu.org>
10913 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10914 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10916 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
10918 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10919 (x_set_frame_parameters): Don't bind it.
10921 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
10923 * w32fns.c (map_w32_filename): Declare extern.
10925 2008-07-07 Jason Rumney <jasonr@gnu.org>
10927 * w32term.c (WS_EX_LAYERED): Define if not already.
10929 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
10931 * xfaces.c (set_font_frame_param): Don't try to set the font
10932 parameter if it is still unspecified in the lface.
10934 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
10936 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10937 face if it didn't already exist.
10939 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10941 2008-07-05 Andreas Schwab <schwab@suse.de>
10943 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10945 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
10947 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10949 (IT_DISPLAYING_WHITESPACE): New macro.
10950 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10951 when word-wrapping. Simplify word-wrapping logic. Use correct
10952 pixel positions when saving copies of the iterator.
10953 (display_line): Use proper wrap point if the last character on a
10954 line was preceded by whitespace.
10956 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10958 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10960 2008-07-04 Kenichi Handa <handa@m17n.org>
10962 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10964 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10966 2008-07-02 Jason Rumney <jasonr@gnu.org>
10968 * xfns.c (syms_of_xfns): Only define x-select-font when both
10969 HAVE_FREETYPE and USE_GTK.
10971 * xdisp.c (next_element_from_display_vector): Move assignment out
10974 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10976 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10978 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10979 (syms_of_fileio): Initialize and export them.
10980 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10982 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10983 (Fsystem_move_file_to_trash): New function.
10984 (syms_of_w32fns): Export it to lisp.
10986 2008-07-01 Jason Rumney <jasonr@gnu.org>
10988 * w32font.c (w32font_text_extents): Don't count overhang as part
10991 2008-06-30 Miles Bader <miles@gnu.org>
10993 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10994 Add `avoid_cursor_p' field.
10996 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10997 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10998 (append_glyph, append_composite_glyph, produce_image_glyph)
10999 (append_stretch_glyph): Initialize avoid_cursor_p.
11000 (get_it_property): Rename from `get_line_height_property'.
11001 (x_produce_glyphs): Use get_it_property.
11002 (handle_line_prefix, push_display_prop): New functions.
11003 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11004 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11006 (syms_of_xdisp): Initialize them.
11008 2008-06-30 Kenichi Handa <handa@m17n.org>
11010 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11011 XftDefaultSubstitute (they are called in XftFontMatch).
11012 (xftfont_open): Fix args to ftfont_font_format.
11014 * ftfont.c (fc_charset_table): New member lang.
11015 (ftfont_resolve_generic_family): New arg pattern.
11016 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
11017 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11018 (ftfont_open): Fix args to ftfont_font_format.
11019 (ftfont_font_format): New arg filename.
11021 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
11023 * xfaces.c (Finternal_merge_in_global_face): If default face was
11024 modified, realize it again. Update the font face attribute.
11026 2008-06-29 Jason Rumney <jasonr@gnu.org>
11028 * w32term.c (x_set_frame_alpha): Fix logic.
11030 2008-06-29 Kenichi Handa <handa@m17n.org>
11032 * fontset.c (Finternal_char_font): Return font-object instead of
11035 * composite.c (get_composition_id): Fix the width calculation for TAB.
11037 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11039 * indent.c (Fvertical_motion): Properly handle float column arg.
11041 2008-06-28 Jason Rumney <jasonr@gnu.org>
11043 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11044 (pfnSetLayeredWindowAttributes): New function pointer.
11045 (w32_initialize): Initialize it when supported.
11046 (x_set_frame_alpha): New function.
11048 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11049 (w32_frame_parm_handlers): Set alpha handler.
11051 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11053 2008-06-27 Jason Rumney <jasonr@gnu.org>
11055 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11056 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11057 (w32_to_x_charset, x_to_w32_charset)
11058 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11059 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11060 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11061 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11062 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11063 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11064 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11065 (Qw32_charset_unicode): Remove.
11066 (syms_of_w32fns): Update for above changes.
11068 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11069 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11070 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11071 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11072 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11073 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11074 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11075 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11076 (syms_of_w32font): Update for above changes.
11078 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11080 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11082 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11084 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11085 Eli Zaretskii <eliz@gnu.org>
11087 * makefile.w32-in (LOCAL_FLAGS):
11088 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11090 * sysdep.c (_spawnlp, _getpid):
11091 Declare with explicit _cdecl instead of _CRTAPI1.
11093 * editfns.c (Fget_internal_run_time):
11094 Check for WINDOWSNT with #ifdef, not #if.
11096 2008-06-26 Jason Rumney <jasonr@gnu.org>
11098 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11100 * w32term.c (x_draw_glyph_string_foreground)
11101 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11102 Use FONT_HANDLE macro.
11103 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11105 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11106 (uniscribe_encode_char): Use FONT_HANDLE macro.
11108 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11109 (w32font_text_extents): Use precast w32_font.
11110 (w32font_close): Free cached metrics.
11111 (w32font_open_internal): Allocate space for name on stack.
11113 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
11115 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11117 2008-06-26 Jason Rumney <jasonr@gnu.org>
11119 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11120 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11122 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11124 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11126 2008-06-26 Jason Rumney <jasonr@gnu.org>
11128 * w32bdf.c, w32bdf.h: Remove obsolete files.
11130 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11132 * w32gui.h: Don't include w32bdf.h.
11133 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11134 Remove obsolete font support.
11136 * w32font.h (struct w32font_info): Remove compat_w32_font.
11138 (FONT_COMPAT): Remove obsolete macro.
11140 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11141 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11142 (w32font_open_internal): Remove compat code. Set new hfont member.
11143 (Fx_select_font): Use new hfont member.
11145 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11146 (uniscribe_encode_char): Use new hfont member.
11148 * w32term.c (x_draw_glyph_string_foreground)
11149 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11150 (x_draw_glyph_string): Use metrics in w32font_info.
11152 2008-06-26 Kenichi Handa <handa@m17n.org>
11154 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11156 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11162 * m/mips-siemens.h:
11184 * s/uxpv.h: Remove support for obsolete systems.
11185 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
11186 Remove, insert contents in s/hpux10-20.h.
11187 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11188 Remove, insert contents in s/aix4-2.h.
11189 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11190 * s/bsd4-3.h: Rename to ...
11191 * s/bsd-common.h: ... this.
11220 * s/template.h: Remove references to obsolete variables.
11222 * Makefile.in: Add dependencies for all unexec files.
11223 (admindir): Remove unused variable.
11224 (UNEXEC_SRC): Remove references.
11226 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
11228 * xfns.c (x_default_font_parameter): If Xft is available, first
11229 try Monospace-12 for the default font.
11231 2008-06-25 Jason Rumney <jasonr@gnu.org>
11233 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11235 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11237 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11239 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11241 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
11243 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11244 <scroll-conservatively>: Fix typo in docstring.
11246 * xselect.c (Fx_send_client_event): Doc fix.
11248 2008-06-25 Kenichi Handa <handa@m17n.org>
11250 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11252 * font.c (font_parse_fcname): Remove unused variables.
11253 (font_sort_entites): Delete the arg SPEC. Caller changed.
11254 Fix for the case of ! best_only.
11255 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11257 * lisp.h (Fstring_to_unibyte): EXFUN it.
11259 * character.h (str_to_unibyte): Extern it.
11261 * character.c (str_to_unibyte): New function.
11263 * fns.c (Fstring_to_unibyte): New function.
11264 (syms_of_fns): Defsubr it.
11266 2008-06-24 Kenichi Handa <handa@m17n.org>
11268 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11270 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11272 2008-06-24 Andreas Schwab <schwab@suse.de>
11274 * Makefile.in (${lispsource}loaddefs.el): Rename from
11275 ../lisp/loaddefs.el.
11276 (bootstrap-clean): Do what distclean does but don't remove
11278 (distclean): Depend on bootstrap-clean and remove Makefile.
11280 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
11282 * buffer.h (struct buffer): New member word_wrap.
11284 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11286 (init_buffer_once): Initialize them.
11288 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11289 line_wrap enum possessing three possible values.
11291 * termopts.h: Replace truncate_partial_width_windows with
11292 Vtruncate_partial_width_windows.
11294 * dispnew.c (direct_output_for_insert): Avoid direct output when
11295 inserting a space with word wrap on.
11297 * indent.c (compute_motion): Obey integer values of
11298 truncate-partial-width-windows.
11300 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11301 replacing truncate_partial_width_windows.
11302 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11303 truncate only if the window width is below that integer.
11304 (start_display, resize_mini_window, produce_stretch_glyph)
11305 (display_string, move_it_in_display_line_to): Use line_wrap.
11306 (back_to_previous_visible_line_start, reseat_1): Reset
11307 string_from_display_prop_p.
11308 (display_line): Extend default face to end of line when wrapping.
11310 2008-06-24 Kim F. Storm <storm@cua.dk>
11312 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11313 to wrap continued lines at word boundaries.
11315 2008-06-24 Jason Rumney <jasonr@gnu.org>
11317 * font.c (Ffont_face_attributes): Multiply pixel size before point
11318 conversion to avoid multiplying rounding error.
11320 2008-06-23 Jason Rumney <jasonr@gnu.org>
11322 * w32term.c (x_draw_glyph_string_background)
11323 (x_draw_glyph_string): Remove old bdf font code.
11325 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11327 2008-06-22 Kenichi Handa <handa@m17n.org>
11329 * font.c (font_find_for_lface): Try the adstyle specified in
11330 the property of LFACE_FONT of LFACE (if any).
11332 2008-06-21 Seiji Zenitani <zenitani@mac.com>
11333 Ryo Yoshitake <ryo@shiftmode.net>
11335 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11337 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11339 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11340 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11341 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11342 (witness-emacs): Remove.
11343 (lisp, shortlisp): Move loaddefs.el earlier.
11344 (mostlyclean): Forget about witness-emacs.
11346 2008-06-22 Glenn Morris <rgm@gnu.org>
11348 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11349 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11351 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11353 * Makefile.in (PRECOMP): Remove.
11354 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11355 (witness-emacs): Run `compile-first'.
11356 (.el.elc): Use the new compile-onefile target.
11358 2008-06-21 Kenichi Handa <handa@m17n.org>
11360 * xftfont.c (xftfont_open): Handle QCembolden only when
11361 FC_EMBOLDEN is defined.
11363 2008-06-21 Andreas Schwab <schwab@suse.de>
11365 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11366 (.el.elc): Likewise.
11368 2008-06-21 Miles Bader <miles@gnu.org>
11370 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11371 build dir, not the lisp source dir.
11373 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11375 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11376 (bootstrapclean): Remove.
11377 (.el.elc): New rule.
11378 (PRECOMP): New var.
11379 (../lisp/subdirs.el): Remove.
11380 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11381 (witness-emacs): New target.
11382 (mostlyclean): Remove witness-emacs as well.
11383 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11384 Add witness-emacs dependency.
11386 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
11388 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11389 defined by the font.
11391 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11393 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11394 (bootstrap-clean): New target that keeps TAGS around.
11395 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11396 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11398 2008-06-20 Jason Rumney <jasonr@gnu.org>
11400 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11401 Remove obsolete font code.
11403 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11404 to determine language support.
11406 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11408 * sysdep.c (cfsetspeed): New fun extracted from the code.
11409 (cfmakeraw): Move before first use.
11411 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11413 * sysdep.c (cfmakeraw): Provide fallback implementation.
11414 (serial_configure): Provide fallback implementation of cfsetspeed.
11416 2008-06-20 Kenichi Handa <handa@m17n.org>
11418 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11421 * fontset.c (fontset_from_font): Copy font_spec before changing
11424 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11426 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11428 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11429 for explicit `font' parameters.
11431 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11433 2008-06-19 Kenichi Handa <handa@m17n.org>
11435 * frame.c: Include <ctype.h>.
11436 (x_set_font_backend): Allow spacing characters in the X resource
11439 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11441 * w32fns.c, xfns.c (Qfont_param): New var.
11442 (syms_of_w32fns): Initialize it.
11443 (x_default_font_parameter): Record explicit `font' into
11446 2008-06-18 Kenichi Handa <handa@m17n.org>
11448 * font.c (font_parse_xlfd): Fix previous change.
11449 (font_parse_fcname): Don't use :fc-unknown-spec.
11450 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11451 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11452 (font_add_log): Prepend the driver name to the resulting fonts.
11454 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11455 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11456 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11458 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11459 (QCembolden): New variables.
11460 (syms_of_xftfont): DEFSYM them.
11461 (xftfont_open): Call XftFontMatch. Don't trust the result of
11462 XftTextExtents8 if the pixel_size is less than 5.
11464 2008-06-18 Andreas Schwab <schwab@suse.de>
11466 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11467 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11469 2008-06-18 Jason Rumney <jasonr@gnu.org>
11471 * w32font.c (w32font_list, w32font_match): Add logging.
11473 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11475 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
11477 * font.c (font_parse_fcname): Store divider characters for
11478 unknown-spec list. For known key symbols, intern using correct
11481 2008-06-17 Kenichi Handa <handa@m17n.org>
11483 * xfaces.c (realize_default_face): If the frame is not on window
11484 system, set the fontset of face to nil.
11486 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11488 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11490 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11492 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11493 (build_font_name_from_vector): Delete externs.
11495 * xfaces.c (struct font_name): Don't declare.
11497 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11499 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11501 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11503 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11505 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11507 * font.c (Ffont_spec): Fix usage in docstring.
11508 (Ffont_face_attributes): Doc fix.
11510 2008-06-16 Andreas Schwab <schwab@suse.de>
11512 * font.c (Ffont_face_attributes): Fix definition.
11514 2008-06-16 Jason Rumney <jasonr@gnu.org>
11516 * font.h (font_style_symbolic_from_value): Remove.
11518 * font.c (font_style_symbolic_from_value): Remove.
11519 (font_style_symbolic): Revert to pre 2008-06-13 version.
11521 * w32font.c (w32_to_fc_weight): New function.
11522 (w32font_full_name, logfont_to_fcname): Use it.
11524 2008-06-16 Kenichi Handa <handa@m17n.org>
11526 * font.c (font_check_object): Delete it.
11527 (font_clear_cache): Check if a font-object is alive.
11528 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11529 font-object to nil.
11530 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11531 (font_at): Don't call font_check_object.
11532 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11534 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11536 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11538 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11540 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11542 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
11544 * font.c (font_parse_fcname): Only one decimal point.
11545 (font_unparse_fcname): Handle data in family and foundry indices
11546 as symbols, not strings.
11547 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11549 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11551 * font.h (font_unparse_gtkname): Add prototype.
11553 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11555 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11557 2008-06-15 Andreas Schwab <schwab@suse.de>
11559 * font.c (font_update_drivers): Fix crash when no drivers match.
11561 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11563 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11564 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11566 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11568 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11570 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11572 * process.c (Fserial_process_configure, Fprocess_send_eof):
11573 Use EQ to compare Lisp_Objects.
11575 2008-06-13 Jason Rumney <jasonr@gnu.org>
11577 * w32fns.c (Fw32_select_font): Remove old font API function.
11579 * w32font.c (logfont_to_fcname): New function.
11580 (Fx_select_font): New font dialog function compatible with
11581 GTK/fontconfig version.
11583 * font.c (font_style_symbolic_from_value): New function.
11584 (font_style_symbolic): Use it.
11586 * font.h (font_style_symbolic_from_value): Declare new function.
11588 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
11590 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11591 <font-width-table>: Fix typos in docstrings.
11593 2008-06-13 Daniel Engeler <engeler@gmail.com>
11595 These changes add serial port access.
11596 * process.c: Add HAVE_SERIAL.
11597 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11598 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11599 (list_processes_1, select_wrapper, Fstop_process)
11600 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11601 (status_notify): Modify to handle serial processes.
11602 [HAVE_SERIAL] (Fserial_process_configure)
11603 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11605 * process.h (struct Lisp_Process): Add `type'.
11606 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11608 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11610 (serial_open, serial_configure): New functions.
11611 * w32.h: Add FILE_SERIAL.
11612 (struct _child_process): Add ovl_read, ovl_write.
11614 2008-06-13 Kenichi Handa <handa@m17n.org>
11616 * dispextern.h (enum lface_attribute_index): New member
11617 LFACE_FOUNDRY_INDEX.
11619 * font.c (font_score): Delete arg alternate_families. Check only
11620 weight, slant, width, and size. Ignore the difference of alias
11622 (font_sort_entites): Adjust for the above change. Reflect the
11623 order of font-driver to scores.
11624 (font_list_entities): Don't check alternate_familes here.
11625 (font_clear_prop): Handle foundry.
11626 (font_update_lface): Don't parse "foundry-family" form here.
11627 Handle FONT_FOUNDRY_INDEX.
11628 (font_find_for_lface): Likewise. Handle alternate families here.
11629 If registry is nil, try iso8859-1 and ascii-0.
11630 (font_open_for_lface): Pay attention to size in ENTITY.
11631 (font_open_by_name): Simplify by calling font_load_for_lface.
11632 (free_font_driver_list): Delete it.
11633 (font_update_drivers): Preserve the order of backends.
11634 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11635 of font_score and font_sort_entites.
11636 (font_update_sort_order): Likewise.
11638 * xfaces.c (LFACE_FOUNDRY): New macro.
11639 (check_lface_attrs): Check foundry.
11640 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11641 (merge_face_vectors): Check foundry.
11642 (merge_face_ref): Likewise.
11643 (Finternal_set_lisp_face_attribute): Likewise.
11644 (x_update_menu_appearance): Likewise.
11645 (Finternal_get_lisp_face_attribute): Likewise.
11646 (lface_hash): Likewise.
11647 (lface_same_font_attributes_p): Likewise.
11648 (x_supports_face_attributes_p): Likewise.
11649 (tty_supports_face_attributes_p): Likewise.
11650 (Finternal_set_alternative_font_family_alist): Intern strings.
11651 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11652 (realize_default_face): Set LFACE_FOUNDRY (lface).
11654 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11655 font-driver at first.
11657 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11659 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11661 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11663 2008-06-12 Jim Meyering <meyering@redhat.com>
11665 Make unexec_free handle NULL the same way free does.
11666 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11668 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11670 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11671 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11672 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11673 (WEAK_ALIAS): Simplify.
11674 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11675 when searching a unibyte buffer.
11677 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
11679 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11681 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
11683 * w32font.c: Include ctype.h.
11685 2008-06-11 Jason Rumney <jasonr@gnu.org>
11687 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11688 misreported as space.
11689 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11690 as aliases for registry iso10646-1.
11692 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11694 * buffer.c (clone_per_buffer_values): Skip `name'.
11696 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
11698 * font.c (font_parse_fcname): Fix last change; accept decimal
11699 points in font size.
11701 2008-06-10 Jason Rumney <jasonr@gnu.org>
11703 * w32uniscribe.c (add_opentype_font_name_to_list):
11704 Skip non unicode fonts.
11706 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11708 * xfns.c (Fx_font_dialog): New function.
11710 * gtkutil.c (xg_dialog_response_cb): Rename from
11711 xg_file_response_callback.
11712 (pop_down_dialog): Rename from pop_down_file_dialog.
11713 (xg_get_file_name): Callers changed.
11714 (xg_get_font_name): New function.
11716 * gtkutil.h (xg_get_font_name): Insert prototype.
11718 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11720 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11721 x_underline_minimum_display_offset.
11722 (syms_of_xdisp): Declare it here rather than in xterm.c.
11723 * dispextern.h (underline_minimum_offset): Declare it.
11724 * w32term.c (x_draw_glyph_string): Use it.
11725 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11726 (syms_of_xterm): Don't declare it any more.
11727 (x_draw_glyph_string): Adjust to the new name.
11729 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
11731 * xterm.c (x_underline_minimum_display_offset): New var.
11732 (x_draw_glyph_string): Use it.
11733 (syms_of_xterm): Declare it.
11735 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
11737 * font.c (font_parse_fcname): Accept GTK-style font names too.
11739 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11741 * dired.c (file_name_completion): Don't return t if the match is exact
11742 but with different capitalization.
11743 * minibuf.c (Ftry_completion): Simplify.
11745 * window.c (Vwindow_point_insertion_type): New var.
11746 (set_window_buffer): Use it.
11747 (syms_of_window): Init and export it to Lisp.
11749 2008-06-10 Kenichi Handa <handa@m17n.org>
11751 * font.h (font_intern_prop): Prototype adjusted.
11753 * font.c (font_intern_prop): New arg force_symbol.
11754 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11755 Adjust for the change of font_intern_prop.
11757 * ftfont.c (ftfont_pattern_entity):
11758 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11760 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11761 the change of font_intern_prop.
11763 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
11765 * w32menu.c (digest_single_submenu): Declare extern.
11767 2008-06-09 Jason Rumney <jasonr@gnu.org>
11769 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11771 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11772 (parse_single_submenu): Remove.
11773 (digest_single_submenu): Remove.
11774 (syms_of_w32menu): Don't initialise variables that have moved
11776 (set_frame_menubar): Sync with version in xmenu.c.
11777 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11779 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11782 2008-06-09 Jason Rumney <jasonr@gnu.org>
11784 Changes to w32 files related to the move of common menu code
11785 to menu.c on 2008-06-08 by Chong Yidong.
11787 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11789 (single_keymap_panes, push_menu_item, push_menu_pane):
11790 Make globally visible.
11792 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11793 (local_free, malloc_widget_value, free_widget_value)
11794 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11795 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11796 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11797 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11798 (menu_items, menu_items_allocated, menu_items_used)
11799 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11800 (init_menu_items, finish_menu_items, discard_menu_items)
11801 (grow_menu_items, push_submenu_start, push_submenu_end)
11802 (push_left_right_boundary, push_menu_pane, push_menu_item)
11803 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11804 (free_menubar_widget_tree_value, parse_single_submenu)
11805 (update_submenu_strings): Remove functions.
11806 (xmalloc_widget_value): Remove and declare extern.
11808 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11811 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11812 (local_heap, local_alloc, local_free, malloc_widget_value)
11813 (free_widget_value): Define here.
11815 2008-06-09 Kenichi Handa <handa@m17n.org>
11817 * font.h (Qascii_0): Extern it.
11819 * font.c (Qascii_0): New variable.
11820 (syms_of_font): DEFSYM it.
11821 (font_open_by_name): If the registry "iso8859-1" fails, try also
11824 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11826 2008-06-08 Kenichi Handa <handa@m17n.org>
11828 * .gdbinit (xfont): New command.
11830 2008-06-08 Andreas Schwab <schwab@suse.de>
11832 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11833 * Makefile.in (menu.o): Update dependencies.
11835 * Makefile.in (obj): Always add menu.o.
11836 * emacs.c (main): Always call syms_of_menu.
11837 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11839 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
11841 * Makefile.in: Compile menu.c.
11843 * lisp.h: Declare syms_of_menu.
11845 * emacs.c (main): Call syms_of_menu.
11847 * keyboard.h: Relocate platform-independent menu definitions from
11850 * menu.c: New file. Relocate platform-independent menu
11851 definitions from xmenu.c. Suggested by Adrian Robert.
11853 * xmenu.c: Remove platform-independent menu definitions.
11854 (menu_items, menu_items_inuse, menu_items_allocated)
11855 (menu_items_used, menu_items_n_panes)
11856 (menu_items_submenu_depth): Move to keyboard.h.
11857 (init_menu_items, finish_menu_items, unuse_menu_items)
11858 (discard_menu_items, restore_menu_items, save_menu_items)
11859 (grow_menu_items, push_submenu_start, push_submenu_end)
11860 (push_left_right_boundary, push_menu_pane, push_menu_item)
11861 (keymap_panes, single_keymap_panes, single_menu_item)
11862 (list_of_panes, list_of_items, find_and_call_menu_selection)
11863 (xmalloc_widget_value, free_menubar_widget_value_tree)
11864 (parse_single_submenu, digest_single_submenu)
11865 (update_submenu_strings): Move to menu.c.
11867 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11869 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11871 2008-06-06 Miles Bader <miles@gnu.org>
11873 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11874 face, not frame default.
11876 2008-06-05 Martin Rudalics <rudalics@gmx.at>
11878 * window.c (pop_up_windows, pop_up_frames)
11879 (display_buffer_reuse_frames, Vpop_up_frame_function)
11880 (Vdisplay_buffer_function, Veven_window_heights)
11881 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11882 (Vspecial_display_function, Vsame_window_buffer_names)
11883 (Vsame_window_regexps, split_height_threshold)
11884 (Vsplit_window_preferred_function): Move those vars to window.el.
11885 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11886 (Fdisplay_buffer): Move those functions to window.el.
11887 (syms_of_window): Remove corresponding declarations.
11888 (display_buffer): New function.
11889 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11890 * dispnew.c (Flast_nonminibuf_frame): New function.
11891 * buffer.c (Fpop_to_buffer): Move to window.el.
11893 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11895 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11897 2008-06-05 Kenichi Handa <handa@m17n.org>
11899 * coding.c (detect_coding): Fix previous change.
11900 (detect_coding_system): Likewise.
11902 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11904 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11906 * keymap.c (Vminibuffer_local_filename_must_match_map):
11907 Rename from Vminibuffer_local_must_match_filename_map.
11909 * minibuf.c (Fcompleting_read): Adjust accordingly.
11910 * commands.h: Rename declaration as well.
11912 2008-06-05 Kenichi Handa <handa@m17n.org>
11914 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11916 (Ffont_put): Likewise.
11918 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11921 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11924 * xfaces.c (realize_x_face): If the font-related face attributes
11925 are the same as those of default face, realize a new fontset from
11927 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11929 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11931 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11932 (move_it_in_display_line): New wrapper.
11934 * window.c (window_scroll_pixel_based_preserve_x)
11935 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11936 (window_scroll_pixel_based, window_scroll_line_based):
11937 Use them to preserve column positions.
11938 (syms_of_window): Initialize them.
11940 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11941 (HPOS . VPOS) pair.
11943 * dispextern.h (move_it_in_display_line): Declare.
11945 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
11947 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11948 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11949 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11951 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
11953 * window.c (Fset_window_parameter): Doc fix.
11954 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11956 2008-06-04 Joakim Verona <joakim@verona.se>
11958 * window.h (struct window): Add new member window_parameters.
11960 * window.c (Fwindow_parameters, Fwindow_parameter)
11961 (Fset_window_parameter): New defuns.
11962 (syms_of_window): Defsubr the new defuns.
11963 (make_window): Initialize window_parameters to nil.
11965 2008-06-04 John Paul Wallington <jpw@pobox.com>
11967 * eval.c (Fdefmacro): Doc fix.
11969 2008-06-04 Kenichi Handa <handa@m17n.org>
11971 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11972 Be sure to call setup_coding_system when we find a proper coding system.
11973 (detect_coding_system): Fix handling of coding->head_ascii.
11975 2008-06-03 Andreas Schwab <schwab@suse.de>
11977 * font.c (font_prop_validate_spacing): Fix last change.
11979 2008-06-03 Kenichi Handa <handa@m17n.org>
11981 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11982 (font_parse_fcname): Fix handling of unknown key.
11984 * xfont.c (xfont_list): Try an alias.
11986 * charset.c (char_charset): Return NULL if the arg charset_list is
11987 specified and C doesn't belong to any of them.
11989 2008-06-02 Chip Coldwell <coldwell@redhat.com>
11991 * font.c (font_pixel_size): Don't take cdr of an integer.
11993 2008-06-02 Jim Meyering <meyering@redhat.com>
11995 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11996 * alloc.c (xfree): Return right away for a NULL arg.
11997 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11998 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11999 * mac.c (create_apple_event_from_event_ref): Likewise.
12000 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12002 * doprnt.c (doprnt1): Likewise.
12003 * frame.c (frame): Likewise.
12004 * keyboard.c (wipe_kboard): Likewise.
12005 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12006 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12007 * term.c (tty_default_color_capabilities, maybe_fatal)
12008 (delete_tty): Likewise.
12009 * w16select.c (string): Likewise.
12010 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12011 * w32bdf.c (w32_free_bdf_font): Likewise.
12012 * w32fns.c (w32_unload_font): Likewise.
12013 * w32font.c (w32font_close): Likewise.
12014 * window.c (size_window): Likewise.
12015 * xselect.c (receive_incremental_selection): Likewise.
12016 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12017 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12018 * w32.c (stat): Likewise.
12020 Remove useless if-before-free tests.
12021 * editfns.c (Fset_time_zone_rule): Likewise.
12022 * lread.c (nosuffix): Likewise.
12023 * ralloc.c (get_bloc): Likewise.
12024 * regex.c (reg_free): Likewise.
12025 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12026 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12027 * xsmfns.c (smc_save_yourself_CB): Likewise.
12029 2008-06-02 Kenichi Handa <handa@m17n.org>
12031 * font.c (font_find_for_lface): Handle float font size.
12032 (font_open_for_lface): Likewise.
12034 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12035 comparing the properties.
12037 2008-06-01 Jason Rumney <jasonr@gnu.org>
12039 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12040 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12041 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12042 Don't add empty script list.
12043 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12045 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12047 * Makefile.in (dot, dotdot): Remove, update users.
12048 ".." has been used elsewhere in the file for a long time.
12049 (LIBXT_STATIC): Remove conditional based on unused variable.
12051 2008-06-01 Miles Bader <miles@gnu.org>
12053 * xfaces.c (Vface_remapping_alist): New variable.
12054 (syms_of_xfaces): Initialize it.
12055 (enum named_merge_point_kind): New type.
12056 (struct named_merge_point): Add `named_merge_point_kind' field.
12057 (push_named_merge_point): Make cycle detection respect different
12058 named-merge-point kinds.
12059 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12060 Remove face-name alias resolution.
12061 (lface_from_face_name): New definition using
12062 `lface_from_face_name_no_resolve'.
12063 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12064 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12065 (get_lface_attributes): New definition that layers face-remapping on
12066 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12067 (lookup_basic_face): New function.
12068 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12069 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12070 `get_lface_attributes'.
12071 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12072 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12073 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12075 * xdisp.c (init_iterator): Pass base_face_id through
12076 `lookup_basic_face' when we actually use it as a face-id.
12077 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12080 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12081 lookup the initial face-id.
12083 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12085 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
12087 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12088 (Fremove_text_properties): Fix typos in docstrings.
12090 2008-05-31 Kenichi Handa <handa@m17n.org>
12092 * font.c (font_list_entities): Fix the car part of data to be
12093 stored in the cache.
12095 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12097 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12099 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12100 Add a `test' argument so another predicate than `equal' can be used.
12101 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12102 (map_char_table): Remove unused vars `c' and `i'.
12103 * lisp.h (Foptimize_char_table): Adjust declaration.
12104 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12106 2008-05-30 Kenichi Handa <handa@m17n.org>
12108 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12109 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12112 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12114 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12115 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12116 frame-local settings for the same variable.
12118 2008-05-30 Kenichi Handa <handa@m17n.org>
12120 * fontset.c (Ffont_info): Move to font.c.
12121 (syms_of_fontset): Delete defsubr of Sfont_info.
12123 * font.c (font_style_to_value, font_score): Delete casting of the
12124 args to xstcasecmp.
12125 (register_font_driver): Increment num_font_drivers only when
12126 registering the driver globally.
12127 (Ffont_info): Move from fontset.c. Handle a font object too.
12128 (syms_of_font): Defsubr Sfont_info.
12130 2008-05-29 Kenichi Handa <handa@m17n.org>
12132 * coding.h (enum define_coding_utf8_arg_index): New enum.
12133 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12134 coding_attr_utf_bom.
12135 (enum utf_bom_type): Rename from utf_16_bom_type.
12136 (struct utf_16_spec): Adjust for the above change.
12137 (struct coding_system): Add utf_8_bom in `spec' union.
12139 * coding.c (CODING_UTF_8_BOM): New macro.
12140 (enum coding_category): Delete coding_category_utf_8, add
12141 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12142 coding_category_utf_8_sig.
12143 (CATEGORY_MASK_UTF_8): Delete it.
12144 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12145 (CATEGORY_MASK_UTF_8_SIG): New macros.
12146 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12147 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12148 CATEGORY_MASK_UTF_8_SIG.
12149 (CATEGORY_MASK_UTF_8): New macro.
12150 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12151 (detect_coding_utf_8): Check BOM.
12152 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12153 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12154 (encode_coding_utf_16): Likewise.
12155 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12156 (detect_coding, detect_coding_system): Handle utf-8-auto.
12157 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12158 (syms_of_coding): Fix setting up of Vcoding_category_table.
12160 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12162 * process.c (Faccept_process_output): If `millisec' is non-nil,
12163 `seconds' default to 0.
12164 (wait_reading_process_output): Also return non-nil if we read output
12165 from a non-running process.
12167 2008-05-29 Jason Rumney <jasonr@gnu.org>
12169 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12170 `raster' specified.
12171 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12172 in the uniscribe backend, but disallow any font that has no
12173 unicode subrange support.
12175 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
12177 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12178 Fix typos in docstrings.
12180 2008-05-29 Kenichi Handa <handa@m17n.org>
12182 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12183 (Fx_family_fonts): Set frame correctly.
12185 2008-05-28 Jason Rumney <jasonr@gnu.org>
12187 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12189 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12191 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12192 calling build_annotations.
12194 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
12196 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12197 (Fencode_coding_string):
12198 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12199 <latin-extra-code-table>: Fix typos in docstrings.
12200 (syms_of_coding) <coding-system-alist>: Doc fix.
12201 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12203 2008-05-28 Kenichi Handa <handa@m17n.org>
12205 * fontset.c (Ffont_info): Don't call font_close_object.
12207 * font.c (font_parse_family_registry): Use Ffont_put to validate
12208 foundry and family.
12209 (font_delete_unmatched): Don't check spacing.
12210 (font_list_entities): Add spacing to the spec to list fonts.
12212 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12213 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12215 * coding.c (encode_coding_raw_text): Fix previous change.
12216 (encode_coding_object): When the dst_object is a buffer and is
12217 different from src_object, move gap to PT.
12219 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12221 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12223 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12225 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12226 all branches. Compute it differently.
12228 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12230 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
12232 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12233 into "else if () ... else ...".
12235 2008-05-27 Jason Rumney <jasonr@gnu.org>
12237 * w32font.c (w32font_open_internal): Determine if glyph indices
12238 are likely to work here.
12240 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12242 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12243 draw overlap glyphs with appropriate highlighting.
12245 2008-05-27 Kenichi Handa <handa@m17n.org>
12247 * xfont.c (xfont_open): Fix calculation of font->average_width.
12249 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12251 * casefiddle.c (casify_object): Try to guess better whether the
12252 argument is a byte or a char.
12254 2008-05-26 Andreas Schwab <schwab@suse.de>
12256 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12257 Always send multiples of format size.
12259 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12261 2008-05-26 Jason Rumney <jasonr@gnu.org>
12263 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12264 (compute_metrics): Don't set failure if we just cleared the cache.
12265 (w32_weight_table): Remove unused variable.
12266 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12267 backwards compatibility.
12269 2008-05-25 Kenichi Handa <handa@m17n.org>
12271 * w32term.c (x_draw_glyph_string):
12272 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12274 * xfaces.c: Delete unused function prototypes.
12275 (xstrlwr, font_frame): Delete them.
12276 (clear_face_cache): Delete unused variable.
12278 * xftfont.c (xftfont_open): Delete unused variable.
12279 If underline_thickness is not 1, adjust underline_position.
12281 * ftxfont.c (ftxfont_open): Delete unused variable.
12283 * fontset.c (face_for_char): Optimize for the case of no charset
12286 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12287 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12288 (otf_open, font_otf_capability, generate_otf_features)
12289 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12290 Comment out by surrounding "#if 0" and "#endif" for the moment.
12291 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12292 (syms_of_font): Codes for accessing above commented out.
12294 2008-05-24 Eli Zaretskii <eliz@gnu.org>
12296 * w32proc.c: Include dispextern.h.
12298 * w32.c: Include dispextern.h.
12300 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
12302 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12303 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12304 Fix typos in docstrings.
12306 2008-05-23 Jason Rumney <jasonr@gnu.org>
12308 * xsmfns.c: Remove includes that are already included by config.h.
12310 2008-05-23 Kenichi Handa <handa@m17n.org>
12312 * charset.c (Qemacs, charset_emacs): New variables.
12313 (char_charset): Fix for non-Unicode characters.
12314 (syms_of_charset): Define charset_emacs.
12316 * w32term.c (x_draw_glyph_string): Be sure to update
12317 s->underline_thickness and s->underline_position. Be sure to draw
12318 underline within the current line area.
12320 * xterm.c (x_draw_glyph_string): Be sure to update
12321 s->underline_thickness and s->underline_position. Be sure to draw
12322 underline within the current line area.
12324 * fontset.c: Delete unused variables and add casting for char *
12325 throughout the file.
12326 (fontset_font): Try the fallback fonts of the current fontset
12327 before consulting the default fontset.
12329 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12331 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12333 2008-05-22 Jason Rumney <jasonr@gnu.org>
12335 * font.c: Don't include strings.h.
12337 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12339 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12340 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12341 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12342 to call xstrcasecmp.
12344 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12346 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12348 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12350 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12352 2008-05-22 Kenichi Handa <handa@m17n.org>
12354 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12356 * font.c (font_prop_validate_style): Adjust for the format
12357 change of font_style_table.
12359 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12362 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12365 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12367 * minibuf.c (keys_of_minibuf): Delete.
12368 * lisp.h (keys_of_minibuf): Delete.
12369 * emacs.c (main): Don't call keys_of_minibuf.
12371 2008-05-22 Kenichi Handa <handa@m17n.org>
12373 * ftfont.c (ftfont_resolve_generic_family): Rename from
12374 ftfont_list_generic_family. Return a single family for each
12376 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12377 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12379 (ftfont_match): Call font_add_log.
12381 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12382 (FONT_DEBUG): Define it.
12383 (font_add_log): Extern it.
12384 (font_assert): Rename from xassert.
12386 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12387 (xfont_list_family): Call font_add_log.
12388 (xfont_match): Likewise.
12389 (memq_no_quit): Delete.
12391 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12392 call of Ffont_xlfd_name.
12394 * xfaces.c (struct table_entry, slant_table, weight_table)
12395 (swidth_table): Move to font.c.
12397 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12398 xassert are changed to font_assert. Delete many unused variables.
12399 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12401 (struct table_entry): Move from xfaces.c and modified.
12402 (weight_table, slant_table, width_table): Move from xfaces.c and
12403 contents adjusted for the change of struct table_entry.
12404 (font_style_to_value, font_style_symbolic): Adjust for the
12405 format change of font_style_table.
12406 (font_parse_family_registry): Don't overwrite existing foundry and
12407 family of font_spec.
12408 (font_score): Fix calculation of diff for sizes.
12409 (font_sort_entites): Call font_add_log.
12410 (font_delete_unmatched): Return a newly created list.
12411 (font_list_entities): Fix previous change. Call font_add_log.
12412 (font_matching_entity, font_open_entity, font_close_entity):
12414 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12415 (Finternal_set_font_style_table): Delete.
12416 (BUILD_STYLE_TABLE): New macro.
12417 (build_style_table): New function.
12418 (Vfont_log, font_log_env_checked): New variables.
12419 (font_add_log): New function.
12420 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12421 Declare Lisp variables "font-weight-table", "font-slant-table",
12422 "font-width-table", and "font-log". Initialize font_style_table.
12424 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12426 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12428 2008-05-21 Seiji Zenitani <zenitani@mac.com>
12429 Ryo Yoshitake <ryo@shiftmode.net>
12431 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12432 (Vframe_alpha_lower_limit): New variable.
12433 (x_set_alpha): New function.
12435 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12437 * xfns.c (x-create-frame, Qalpha):
12438 Initialize the frame parameter `alpha'.
12439 * xterm.c (OPAQUE, OPACITY): New.
12440 (x_set_frame_alpha): New function.
12441 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12443 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12444 * w32fns.c (w32_frame_parm_handlers): Likewise.
12446 2008-05-20 Jason Rumney <jasonr@gnu.org>
12448 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12449 truetype fonts to opentype list.
12451 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
12453 * fontset.c (Ffontset_info): Doc fix.
12454 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12455 <ignore-relative-composition>: Fix typos in docstrings.
12457 * font.c (syms-of-font) <font-encoding-alist>:
12458 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12459 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12460 (Ffont_otf_alternates): Doc fixes.
12462 2008-05-20 Kenichi Handa <handa@m17n.org>
12464 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12465 font.h through out the file.
12466 (FONT_DRIVERS): Rename from FONTOBJ.
12467 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12468 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12470 * emacs.c (main): Call syms_of_font unconditionally.
12472 * font.h (find_font_encoding): Extern it.
12474 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12476 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
12477 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12478 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12479 only when HAVE_WINDOW_SYSTEM is defined.
12480 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12481 when HAVE_WINDOW_SYSTEM is defined.
12483 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12484 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12486 * xfaces.c: Include font.h unconditionally.
12487 (merge_face_ref, merge_face_vectors)
12488 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12490 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12492 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12494 * eval.c (lisp_indirect_variable): New fun.
12495 (Fuser_variable_p): Use it.
12497 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12499 * lisp.h (indirect_variable):
12500 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12501 Use Lisp_Symbol pointers rather than Lisp_Object.
12503 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12504 To this end, change calling-convention.
12506 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12507 if some non-hidden buffers are selected by string&pred.
12509 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
12511 * process.c (wait_reading_process_output): Always check status
12512 when in batch mode.
12514 2008-05-19 Kenichi Handa <handa@m17n.org>
12516 * font.c (font_list_entities): Fix handling of cache.
12517 (font_matching_entity): Likewise.
12519 * ftfont.c (cs_iso8859_1): Delete.
12520 (ft_face_cache): New variable.
12521 (struct ftfont_info): New member fc_charset_idx.
12522 (ftfont_build_basic_charsets): Delete.
12523 (fc_charset_table): New variable.
12524 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12525 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12527 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12528 (ftfont_spec_pattern): New argument fc_charset_idx.
12529 Check registry more rigidly. Change callers.
12530 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12531 change of :font-entity property of the font.
12533 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12534 property of the font.
12536 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
12538 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12539 (Funencodable_char_position, Fcheck_coding_systems_region)
12540 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12541 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12542 (Ffind_operation_coding_system, Fset_coding_system_priority)
12543 (Fcoding_system_eol_type): Doc fixes.
12545 2008-05-17 Glenn Morris <rgm@gnu.org>
12547 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12549 2008-05-16 Eli Zaretskii <eliz@gnu.org>
12551 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12554 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12555 HAVE_WINDOW_SYSTEM is not defined.
12557 * xfaces.c (merge_face_ref, merge_face_vectors)
12558 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12559 HAVE_WINDOW_SYSTEM is defined.
12560 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12562 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12564 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12566 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12568 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12570 2008-05-15 Kenichi Handa <handa@m17n.org>
12572 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12575 2008-05-15 Glenn Morris <rgm@gnu.org>
12577 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12579 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
12581 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12582 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12584 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12586 2008-05-15 Kenichi Handa <handa@m17n.org>
12588 * ftfont.c (ftfont_list): Downcase family name to check generic
12591 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12592 font-spec for QCfont value.
12594 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12595 buffer. Check the return value of it.
12597 2008-05-14 Jason Rumney <jasonr@gnu.org>
12599 * w32term.c (w32_get_glyph_overhangs): Remove.
12600 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12602 2008-05-14 Kenichi Handa <handa@m17n.org>
12604 * font.c (font_prop_validate): Make nil a valid value.
12605 (font_clear_cache): Check if the cached vector of entities is nil
12608 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12610 * emacs.c (main_thread): Conditionalize on
12611 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12612 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12614 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12615 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12616 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12618 2008-05-14 Kenichi Handa <handa@m17n.org>
12620 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12621 has no corresponding coding system.
12623 2008-05-14 Jason Rumney <jasonr@gnu.org>
12625 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12627 * w32font.h (w32font_open_internal): Update declaration.
12629 * w32font.c (w32font_open_internal): Change last argument from
12630 w32font_info struct to font object. Fill in font object from
12631 font_entity. Get Outline metrics if possible. Use them to
12632 calculate underline position and thickness. Use xlfd name as name
12633 property. Don't set codepage.
12634 (w32font_open): Pass font_object to w32font_open_internal. Don't
12635 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12636 (w32font_draw): Use s->font.
12637 (clear_cached_metrics): Don't clear non-existent blocks.
12639 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12640 font was not found.
12641 (x_draw_glyph_string): Use underline position and thickness from font.
12643 * w32uniscribe.c (uniscribe_open): Pass font_object to
12644 w32font_open_internal.
12646 2008-05-14 Kenichi Handa <handa@m17n.org>
12648 These changes are to delete all legacy font-handling codes, and
12649 make Emacs use only font-backends.
12651 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12652 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12654 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12656 * charset.h (Vcharset_non_preferred_head)
12657 (Vcurrent_iso639_language): Extern them.
12659 * charset.c (Vcharset_non_preferred_head): New variable.
12660 (Vcurrent_iso639_language): New variable.
12661 (syms_of_charset): Declare it as a Lisp variable.
12662 (char_charset): Don't check non preferred charsets. As a last
12663 resort, return charset_unicode.
12664 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12666 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12667 conditionals. Don't check enable_font_backend. Delete all codes
12668 used only when USE_FONT_BACKEND is not defined.
12670 * dispextern.h (struct glyph_string): Change type of `font' to
12672 (struct glyph_string): New member underline_position and
12673 underline_thickness.
12674 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12675 (struct face): Change type of `font' to `struct font *'. Remove
12676 members `font_name', `font_info_id'.
12677 (per_char_metric, encode_char): Delete externs.
12678 (calc_pixel_width_or_height): Adjust the prototype.
12680 * emacs.c (enable_font_backend): Delete extern.
12681 (main): Don't set enable_font_backend. Don't check the command
12682 line argument "-disable-font-backend".
12684 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12685 (enum font_property_index): New members FONT_DPI_INDEX,
12686 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12687 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12688 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12689 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12690 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12691 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12692 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12693 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12694 (struct font_spec, struct font_entity): New structs.
12695 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12696 (struct font): Many members from old "struct font_info" moved to
12697 here. Members font and entity deleted.
12698 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12699 the new font-related objects.
12700 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12701 (CHECK_FONT_GET_OBJECT): Likewise.
12702 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12703 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12704 (struct font_driver): New members case_sensitive anc check. Type
12705 of the member list and open changed.
12706 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12707 (font_symbolic_width, font_find_object, font_get_spec)
12708 (font_set_lface_from_name): Delete extern.
12709 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12711 * font.c: Include <strings.h>.
12712 (enable_font_backend): Delete it.
12713 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12714 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12715 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12716 (null_string): Delete it.
12717 (null_vector): Make it static.
12718 (font_family_alist): Delete it.
12719 (Qnormal): Extern it.
12720 (QCextra, QClanguage): Delete it.
12721 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12722 (font_make_spec, font_make_entity, font_make_object)
12723 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12724 the string. Callers changed.
12725 (font_pixel_size): Adjusted for the format change of font-related
12727 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12728 (font_style_to_value, font_style_symbolic): New function.
12729 (build_font_family_alist): Delete it.
12730 (font_registry_charsets): Use Fassoc_string instead of
12732 (font_prop_validate_symbol): Don't return null_string.
12733 (font_prop_validate_style): Adjusted for the change of
12734 style-related values in a font vector.
12735 (font_property_table): Delete entries for QClanguage and
12736 QCantialias, add entries for QCavgwidth.
12737 (get_font_prop_index): Delete the 2nd argument FROM.
12738 (font_prop_validate): Arguments changed.
12739 (font_put_extra): Adjusted for the change of font-related objects.
12740 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12741 (font_parse_fcname, font_unparse_fcname)
12742 (font_prepare_composition): Likewise.
12743 (font_parse_family_registry): Renamed from font_merge_old_spec.
12744 (otf_open): Delete the 1st arg entity.
12745 (font_otf_capability): Adjusted for the above change.
12746 (font_score): New arg alternate_families. Adjusted for the change
12747 of font-related objects.
12748 (font_sort_entites): New arg best_only.
12749 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12751 (font_match_p): Check alternate families.
12752 (font_find_object): Delete it.
12753 (font_check_object): New function.
12754 (font_clear_cache): Adjusted for the change of font-related objects.
12755 (font_delete_unmatched): New arg.
12756 (font_list_entities): Call font_driver->list with a spec that
12757 doesn't specify style-related properties.
12758 (font_matching_entity): Arguments changed. Caller changed.
12759 (font_open_entity): Adjusted for the change of font-related objects.
12760 (font_close_object, font_has_char, font_encode_char)
12761 (font_get_name, font_get_spec): Likewise.
12762 (font_spec_from_name, font_clear_prop, font_update_lface):
12764 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12765 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12766 (font_at): Adjusted for the change of font-related objects.
12767 (font_range): New function.
12768 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12769 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12770 (Fcopy_font_spec, Fmerge_font_spec): New function.
12771 (Ffont_family_list): Renamed from list-families.
12772 (Finternal_set_font_style_table): Arguments changed.
12773 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12774 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12775 change of font-related objects.
12776 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12778 * fontset.h (struct font_info): Delete it. Most members go to
12780 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12781 (enum FONT_SPEC_INDEX): Delete it.
12782 (font_info, list_fonts_func, load_font_func, query_font_func)
12783 (set_frame_fontset_func, find_ccl_program_func)
12784 (get_font_repertory_func, new_fontset_from_font_name): Delete
12786 (fontset_from_font_name): Extern it.
12787 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12788 (FONT_INFO_FROM_FACE): Deleted.
12789 (face_for_font): Adjust prototype.
12791 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12792 conditionals. Don't check enable_font_backend. Delete all codes
12793 used only when USE_FONT_BACKEND is not defined.
12794 (get_font_info_func, list_font_func, load_font_func)
12795 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12796 (get_font_repertory_func): Delete them.
12797 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12798 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12799 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12800 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12801 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12802 (fontset_compare_rfontdef): New function.
12803 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12804 rfont-defs by qsort. Adjusted for the change of font-group vector.
12805 (load_font_get_repertory): Deleted.
12806 (fontset_find_font): Use new macros to ref/set elements of
12807 font-def and rfont-def.
12808 (fontset_font): Fix the timing of remembering that no font for C.
12809 (free_face_fontset): Do nothing if the face has no fontset.
12810 (face_suitable_for_char_p): Use new macros to ref/set elements of
12812 (face_for_char): Likewise. Call face_for_char with font_object.
12813 (fs_load_font): Delete. Delete #pragma surrounding it.
12814 (fs_query_fontset): Use strcasecmp instead of strcmp.
12815 (generate_ascii_font_name): Adjusted for the format change of
12817 (Fset_fontset_font): Likewise. Use new macros to set elements of
12819 (Fnew_fontset): Use font_unparse_xlfd to generate
12820 FONTSET_ASCII (fontset).
12821 (new_fontset_from_font_name): Deleted.
12822 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12823 a fontset is already created for the font. FIx updating of
12824 Vfontset_alias_alist.
12825 (fontset_ascii_font): Deleted.
12826 (Ffont_info): Adjusted for the format change of font-spec.
12827 (Finternal_char_font): Likewise.
12828 (Ffontset_info): Likewise.
12829 (syms_of_fontset): Don't check load_font_func.
12831 * fns.c (internal_equal): Handle PREV_FONT.
12833 * frame.h: Delete USE_FONT_BACKEND conditional.
12835 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12836 conditionals. Don't check enable_font_backend. Delete all codes
12837 used only when USE_FONT_BACKEND is not defined.
12838 (x_set_font): Call x_new_font, not x_new_fontset2.
12839 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12840 already set for the frame.
12842 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12843 a font-entity by font_make_entity. Use font_intern_prop instead
12844 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12845 font property. If a font is scalable, set avgwidth property to 0.
12846 Set font-entity property by font_put_extra.
12847 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12848 (ffont_driver): Adjusted for the change of struct font_driver.
12849 (ftfont_spec_pattern): New function.
12850 (ftfont_list): Return a list, not vector.
12851 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12852 (ftfont_list_family): Don't downcase names.
12853 (ftfont_free_entity): Deleted.
12854 (ftfont_open): Return a font-object. Adjusted for the change of
12855 struct font. Get underline_thickness and underline_position from
12856 font property. Don't update dpyinfo->smallest_font_height and
12857 dpyinfo->smallest_char_width.
12858 (ftfont_close): Don't free `struct font'.
12859 (ftfont_has_char): Adjusted for the format change of font-entity.
12860 (ftfont_encode_char, ftfont_text_extents): Likewise.
12862 * ftxfont.c (ftxfont_list): Return a list, not vector.
12863 (ftxfont_open): Return a font-object. Adjusted for the change of
12864 struct font. Get underline_thickness and underline_position from
12865 font property. Don't update dpyinfo->smallest_font_height and
12866 dpyinfo->smallest_char_width.
12867 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12868 (ftxfont_draw): Adjusted for the change of struct font.
12870 * image.c (image_ascent): Don't include "charset.h". Include
12871 "character.h" and "font.h".
12873 * lisp.h (enum pvec_type): New member PREV_FONT.
12874 (Fassoc_string): EXFUN it.
12876 * print.c: Include font.h.
12877 (print_object): Handle font-related objects.
12879 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12880 conditionals. Don't check enable_font_backend. Delete all codes
12881 used only when USE_FONT_BACKEND is not defined.
12882 (handle_auto_composed_prop): Do nothing if it->f is not on a
12883 window system. Check how many following characters can be
12884 displayed by the same font.
12885 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12887 (get_char_face_and_encoding): Assign the whole encoding task to
12888 the `encode-char' method of a font driver.
12889 (fill_composite_glyph_string): Adjusted for the change of `struct
12890 face' and `struct glyph_string'.
12891 (fill_glyph_string): Likewise.
12892 (get_per_char_metric): Arguments changed.
12893 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12894 and `struct glyph_string'.
12895 (produce_stretch_glyph, calc_line_height_property)
12896 (x_produce_glyphs): Likewise.
12898 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12899 conditionals. Don't check enable_font_backend. Delete all codes
12900 used only when USE_FONT_BACKEND is not defined. Use
12901 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12902 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12904 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12906 (struct font_name): Deleted.
12907 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12908 (compare_fonts_by_sort_order): New function.
12909 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12910 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12912 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12913 compare_fonts_by_sort_order.
12914 (Fx_font_family_list): Call Ffont_family_list.
12915 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12916 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12917 (face_symbolic_slant, face_symbolic_swidth)
12918 (split_font_name_into_vector, build_font_name_from_vector)
12919 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12920 (font_rescale_ratio, split_font_name, build_font_name)
12921 (free_font_names, sort_fonts, x_face_list_fonts)
12922 (face_font_available_p, sorted_font_list, cmp_font_names)
12923 (font_list_1, concat_font_list, font_list, remove_duplicates):
12925 (Fx_list_fonts): Use Ffont_list.
12926 (LFACE_AVGWIDTH): Deleted.
12927 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12929 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12930 (set_lface_from_font_name): Delete it.
12931 (set_lface_from_font): Renamed from
12932 set_lface_from_font_and_fontset. Caller changed. Don't set
12933 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12935 (merge_face_vectors): Copy font-spec if necessary.
12936 Clear properties of the font-spec if necessary.
12937 (merge_face_ref): Clear properties of the font-spec if necessary.
12938 (Finternal_set_lisp_face_attribute): Likewise.
12939 (set_font_frame_param): Use font_load_for_lface to load a
12940 font-object, and call Fmodify_frame_parameters with it.
12941 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12942 font name by Ffont_xlfd_name.
12943 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12944 QCslant, and QCwidth.
12945 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12946 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12947 Compare fonts by EQ.
12948 (lookup_non_ascii_face): Deleted.
12949 (face_for_font): The 2nd argument changed.
12950 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12951 Check atomic font properties by case insensitive.
12952 (realize_non_ascii_face): Set face->overstrike correctly.
12953 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12954 (dump_realized_face): Get font name from
12955 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12957 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12958 conditionals. Don't check enable_font_backend. Delete all codes
12959 used only when USE_FONT_BACKEND is not defined.
12960 (xic_create_xfontset): Original code deleted and renamed from
12961 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12962 (x_make_gc): Don't set GCFont in GCs.
12963 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12965 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12966 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12967 get_font_repertory_func.
12969 * xfont.c: Include <stdlib.h> and "ccl.h".
12970 (struct xfont_info): New structure.
12971 (xfont_query_font): Deleted.
12972 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12973 moved from xterm.c.
12974 (xfont_driver): Adjusted for the change of struct font_driver.
12975 (compare_font_names): New function.
12976 (xfont_list_pattern): Sort font names case insensitively. Make
12977 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12978 (xfont_list): Return a list, not vector.
12979 (xfont_match): If the font doesn't have QCname property, generate
12980 a name from the other font properties.
12981 (xfont_open): Return a font-object. Adjusted for the change of
12982 struct font. Get underline_thickness and underline_position from
12983 font property. Don't update dpyinfo->smallest_font_height and
12984 dpyinfo->smallest_char_width.
12985 (xfont_close): Don't free struct font.
12986 (xfont_prepare_face): Adjusted for the change of struct font.
12987 (xfont_done_face): Deleted.
12988 (xfont_has_char): Adjusted for the change of struct font.
12989 (xfont_encode_char, xfont_draw): Likewise.
12990 (xfont_check): New function.
12992 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12994 (xftfont_match): Adjusted for the format change of font-entity.
12995 (xftfont_open): Adjusted for the format change of font-entity and
12996 font-object. Adjusted for the change of struct font. Return a
12997 font-object. Don't update dpyinfo->smallest_font_height and
12998 dpyinfo->smallest_char_width.
12999 (xftfont_close): Block input while calling XftFontClose.
13000 (xftfont_prepare_face): Don't block input while calling
13001 xftfont_get_colors. Adjusted for the change of struct font.
13002 (xftfont_shape): Return value of error case fixed.
13004 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13006 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13008 (FONT_WIDTH): Return (f)->max_width.
13009 (struct x_display_info): Delete member `font'.
13010 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13011 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13012 (struct x_output): Change type of `font' to `struct font *'.
13014 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13015 conditionals. Don't check enable_font_backend. Delete all codes
13016 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13017 (x_per_char_metric, x_encode_char): Deleted.
13018 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13019 (x_compute_glyph_string_overhangs): Adjusted for the change of
13021 (x_draw_glyph_string_foreground)
13022 (x_draw_composite_glyph_string_foreground): Likewise.
13023 (x_draw_glyph_string): Likewise. Use font->underline_position and
13024 font->underline_thickness.
13025 (x_new_font): Renamed from x_new_fontset2.
13026 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13027 (x_check_font): Call `check' method of a font driver.
13028 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13029 (x_query_font, x_get_font_repertory): Deleted.
13030 (x_find_ccl_program): Renamed and moved to xfont.c.
13031 (x_redisplay_interface): Adjusted for the change of `struct
13032 redisplay_interface'.
13034 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13035 conditionals. Don't check enable_font_backend. Delete all codes
13036 used only when USE_FONT_BACKEND is not defined. Surround non-used
13037 code by "#ifdef OLD_FONT" and "endif".
13038 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13040 * w32font.h (struct w32font_info): New member.
13041 (FONT_COMPAT): New macro.
13042 (w32font_open_internal): Prototype adjusted.
13044 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13045 OLD_FONT" and "endif".
13047 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13048 conditionals. Don't check enable_font_backend. Delete all codes
13049 used only when USE_FONT_BACKEND is not defined.
13050 (w32font_open): Return a font-object. Make a font-object by
13051 font_make_object. Adjusted for the change of struct w32font_info.
13052 (w32font_close): Don't free struct font. Adjusted for the change
13053 of struct w32font_info.
13054 (w32font_encode_char, w32font_text_extents, w32font_draw):
13055 Adjusted for the change of struct w32font_info.
13056 (w32font_draw): Likewise.
13057 (w32font_list_internal): Return a list, not vector.
13058 (w32font_open_internal): Change the 4th arg to font-object.
13059 Adjusted for the change of struct w32font_info and font-object format.
13060 (add_font_name_to_list): Don't downcase names.
13061 (w32_enumfont_pattern_entity): Make a font-entity by
13062 font_make_entity. Adjusted for the format change of font-entity.
13063 Use FONT_SET_STYLE to set a style-related font property. If a
13064 font is scalable, set avgwidth property to 0. Set font-entity
13065 property by font_put_extra.
13066 (font_matches_spec): Adjusted for the format change of font-entity.
13067 (w32_weight_table, w32_decode_weight): New variables.
13068 (w32_encode_weight): New function.
13069 (fill_in_logfont): Adjusted for the format change of font-spec.
13070 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13072 (w32font_driver): Adjusted for the change of struct font_driver.
13074 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13075 conditionals. Don't check enable_font_backend. Surround non-used
13076 code by "#ifdef OLD_FONT" and "endif".
13077 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13078 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13080 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13081 conditionals. Don't check enable_font_backend. Delete all codes
13082 used only when USE_FONT_BACKEND is not defined. Surround non-used
13083 code by "#ifdef OLD_FONT" and "endif".
13085 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13086 (uniscribe_open): Return value changed to font-object.
13087 Adjusted for the format change of font-object.
13088 (uniscribe_otf_capability): Adjusted for the change of struct font.
13089 (add_opentype_font_name_to_list): Don't downcase names.
13090 (uniscribe_font_driver): Adjusted for the change of struct
13093 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
13095 * dispnew.c (update_frame_1): Check if tty output is still valid
13096 before flushing it.
13098 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13100 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13103 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13105 * dired.c (file_name_completion): Tweak the code so as to always do it
13106 in a single pass. Tighten the scope of some variables.
13108 * dired.c (Qdefault_directory): New var.
13109 (file_name_completion): Use it instead of Fexpand_file_name.
13110 (syms_of_dired): Initialize it.
13112 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13114 * fileio.c (double_dollars): Remove dead code.
13116 2008-05-10 Eli Zaretskii <eliz@gnu.org>
13118 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13119 Mention w32-get-true-file-attributes in doc string.
13121 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13123 2008-05-09 Glenn Morris <rgm@gnu.org>
13125 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13128 2008-05-09 Eli Zaretskii <eliz@gnu.org>
13130 Support for reporting owner and group of each file on MS-Windows:
13131 * dired.c (stat_uname, stat_gname): New functions, with special
13132 implementation for w32.
13133 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13135 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13136 (dflt_group_name): New static variable.
13137 (dflt_group): Rename from the_group.
13138 (init_user_info): Init dflt_group fields. Get user's group name
13139 from LookupAccountSid.
13140 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13141 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13142 New initialization states.
13143 (globals_of_w32): Initialize them to zero. Initialize the default
13144 group name to "None".
13145 (GetFileSecurity_Name): New global var, the name of the function
13146 to call for GetFileSecurity.
13147 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13148 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13149 (get_file_security, get_security_descriptor_owner)
13150 (get_security_descriptor_group, is_valid_sid)
13151 (get_file_security_desc, get_rid, get_name_and_id)
13152 (get_file_owner_and_group): New functions.
13153 (stat): Use get_file_security_desc and get_file_owner_and_group to
13154 report the owner and primary group of each file. Don't ignore the
13155 high 32 bits of file's size, now that st_size is 64-bit wide.
13156 Fix test when to get true file attributes.
13157 (init_user_info): Use get_rid instead of equivalent inline code.
13158 (fstat): Don't ignore the high 32 bits of file's size.
13160 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
13162 * image.c (png_load): Use correct bit-depth for setting background
13165 2008-05-08 Eli Zaretskii <eliz@gnu.org>
13167 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13170 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
13172 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13174 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13176 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13177 because the original parameters are in pure storage now.
13178 (mac_window): Remove unused params. Update callers.
13180 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13182 * lread.c (substitute_object_recurse): Use lower-level primitives.
13183 Don't signal errors when traversing sub-char-tables.
13184 Don't loop over all the possible characters when traversing char-tables.
13186 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13187 just like we do in print.c.
13189 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13191 * minibuf.c (Ftry_completion): Remove code left over from when we used
13192 scmp instead of Fcompare_strings.
13194 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
13196 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13198 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13200 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13201 Create bitmap context in native byte order.
13203 * macterm.c (XDrawLine)
13204 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13205 context in native byte order.
13207 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13209 * config.in: Regenerate.
13211 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13212 New definitions for Image I/O support.
13213 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13214 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13215 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13216 (mac_data_provider_release_data, image_load_image_io)
13217 [USE_MAC_IMAGE_IO]: New functions.
13218 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13219 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13220 (init_image_func_pointer) [MAC_OSX]: Remove function.
13221 (image_load_quartz2d) [MAC_OSX]: Check availability of
13222 CGImageCreateWithPNGDataProvider at compile time.
13223 Use lowercase `false' for boolean constant.
13224 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13225 Use image_load_image_io.
13226 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13227 Don't check MyCGImageCreateWithPNGDataProvider.
13228 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13229 Don't call init_image_func_pointer.
13231 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13233 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13234 Make variable non-static.
13235 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13236 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13238 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13239 (RED_FROM_ULONG): Mask off higher bits.
13240 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13242 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13243 Include AvailabilityMacros.h.
13244 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13245 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13247 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13249 * chartab.c (Fset_char_table_range): If range is t, really set all
13250 chars to that value.
13252 2008-05-03 Eli Zaretskii <eliz@gnu.org>
13254 * dired.c (Ffile_attributes): Don't allow the device number become
13257 2008-05-02 Daiki Ueno <ueno@unixuser.org>
13259 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13261 2008-05-02 Juri Linkov <juri@jurta.org>
13263 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13264 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13265 DEFAULT argument as a list of default values in docstrings.
13267 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
13269 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13271 2008-05-01 Martin Rudalics <rudalics@gmx.at>
13273 * dispnew.c (change_frame_size_1): Preserve small windows when
13274 shrinking frames by calling set_window_height|width with third
13277 * window.h (struct window): Replace field too_small_ok by field
13278 resize_proportionally.
13280 * window.c (make_window): Initialize resize_proportionally.
13281 (enlarge_window): Temporarily set resize_proportionally to make
13282 sure that shrink_windows does scale the window proportionally.
13283 (shrink_windows): When window has resize_proportionally set try
13284 to shrink it proportionally by stealing from other windows.
13285 (struct saved_window, Fset_window_configuration)
13286 (compare_window_configurations): Handle resize_proportionally.
13287 (WINDOW_TOTAL_SIZE): New macro.
13288 (window_min_size, shrink_windows, size_window): Use it.
13289 (check_min_window_sizes): Remove. Invalid values of
13290 window-min-height|width are handled by window_min_size_2 now.
13291 (size_window, Fsplit_window, enlarge_window)
13292 (adjust_window_trailing_edge, grow_mini_window): Don't call
13293 check_min_window_sizes.
13294 (window_min_size_2, window_min_size_1, window_min_size):
13295 New argument safe_p for retrieving "safe" minimum sizes.
13296 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13297 (adjust_window_trailing_edge, grow_mini_window):
13298 Adjust arguments of window_min_size... functions.
13299 (shrink_windows): Argument min_size removed. New argument
13300 safe_p allows shrinking windows to their safe minimum sizes.
13301 Calculate minimum size and decide whether a window shall be
13302 deleted for each window individually.
13303 (size_window): When nodelete_p equals 2, tell shrink_windows to
13304 delete windows only if their new minimum size is no more safe.
13305 (shrink_window_lowest_first): Call window_min_size_1 to make
13306 sure to preserve modeline of bottom-most window when resizing
13308 (Fset_window_configuration, Fcurrent_window_configuration)
13309 (compare_window_configurations): Do not handle
13310 window-min-height|width any more.
13311 (syms_of_window): Clarify window-min-height|width doc-strings.
13313 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13315 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13316 some more. Copy some of the code from Ftry_completions.
13317 Remove special case code that dates back to initial revision when the
13318 slash was only added when necessary and that can't trigger nowadays.
13320 2008-04-27 Kenichi Handa <handa@m17n.org>
13322 * font.c (font_prop_validate): Signal `error' instead of `font'.
13324 2008-04-29 Jason Rumney <jasonr@gnu.org>
13326 * w32fns.c (Fw32_battery_status): New defun.
13327 (syms_of_w32fns): Defsubr it.
13329 2008-04-28 Andreas Schwab <schwab@suse.de>
13331 * dired.c (file_name_completion): Fix another mixing of encoded
13334 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
13336 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13338 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
13340 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13342 2008-04-27 Andreas Schwab <schwab@suse.de>
13344 * dired.c (file_name_completion): Fix inappropriate mixing of
13345 encoded and decoded names.
13347 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13349 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13351 2008-04-26 Eli Zaretskii <eliz@gnu.org>
13353 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13354 2008-03-31, it's not needed anymore with `struct stat' definition
13355 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13356 for the same reasons.
13358 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13360 * m/sparc.h: Additional redefinitions for GNU/Linux.
13362 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13364 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13365 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13366 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13367 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13368 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13369 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13370 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13373 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13374 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13375 (mac_ax_number_of_characters): Add externs.
13376 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13377 [USE_MAC_TSM]: Likewise.
13378 (mac_handle_text_input_event) [MAC_OSX]:
13379 Handle kEventTextInputOffsetToPos for no active input area case.
13380 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13381 (mac_handle_document_access_event)
13382 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13383 (install_application_handler) [MAC_OSX]: Register handlers for
13384 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13385 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13386 Register mac_handle_document_access_event.
13388 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13389 Make functions non-static.
13391 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13393 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13394 (read_file_name_completion_ignore_case, insert_default_directory)
13395 (Qdefault_directory): Move to minibuffer.el.
13396 (Fread_file_name): Call the new `read-file-name' instead.
13398 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13400 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13401 Make function non-static.
13402 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13404 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13405 Move to mactoolbox.c.
13406 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13408 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13409 (mac_rect_make): New macro.
13411 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13413 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13414 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13415 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13416 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13418 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13419 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13420 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13421 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13422 instead of WindowRef in argument type.
13423 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13424 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13425 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13426 instead of DISPLAY. All uses changed.
13427 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13428 (x_calc_absolute_position): Simplify so as not to use
13429 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13431 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13432 instead of WindowRef in argument type.
13433 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13434 [TARGET_API_MAC_CARBON]: Remove externs.
13435 (create_apple_event, mac_event_parameters_to_lisp)
13436 [TARGET_API_MAC_CARBON]: Add externs.
13438 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13439 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13440 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13442 (x_activate_menubar): Remove extern for saved_menu_event_location.
13443 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13446 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13448 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13449 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13451 2008-04-23 Jason Rumney <jasonr@gnu.org>
13453 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13454 attributes only for local files.
13456 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13459 2008-04-22 Juri Linkov <juri@jurta.org>
13461 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13462 read-buffer-to-switch instead of using the letter "B".
13464 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13466 * fileio.c (Qdefault_directory): New variable.
13467 (Fread_file_name): Use it to pass `dir' to the completion functions.
13469 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
13471 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13473 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13475 * keyboard.c (Vpre_help_message): Remove.
13476 (show_help_echo): Remove default C code.
13478 * dired.c (directory_files_internal, file_name_completion):
13479 Only call ENCODE_FILE if the string is indeed decoded.
13481 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13483 * Makefile.in (TOOLKIT_DEFINES): Remove.
13484 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13486 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13488 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13489 (mactoolbox.o): New target.
13491 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13492 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13494 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13495 Use mac_set_frame_window_background instead of XSetWindowBackground.
13496 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13497 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13498 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13499 instead of SetWindowTitleWithCFString.
13500 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13501 Move function to mactoolbox.c.
13502 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13503 Use mac_set_window_modified instead of SetWindowModified.
13504 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13505 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13506 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13507 FrontNonFloatingWindow. Use mac_activate_window instead of
13508 ActivateWindow. Use mac_active_non_floating_window instead of
13509 ActiveNonFloatingWindow.
13510 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13511 Use mac_show_hourglass and mac_hide_hourglass.
13512 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13513 instead of GetGlobalMouse.
13514 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13515 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13516 Use mac_bring_window_to_front instead of BringToFront.
13517 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13519 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13520 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13521 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13524 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13525 (XtPointer): Move typedef from macmenu.c.
13526 (enum button_type): Move enum from macmenu.c.
13527 (widget_value): Move typedef from macmenu.c.
13528 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13529 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13530 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13531 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13532 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13533 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13534 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13535 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13536 (Selection): Move typedef from macselect.c.
13537 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13539 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13540 (mac_is_window_collapsed, mac_bring_window_to_front)
13541 (mac_send_window_behind, mac_hide_window, mac_show_window)
13542 (mac_collapse_window, mac_front_non_floating_window)
13543 (mac_active_non_floating_window, mac_activate_window)
13544 (mac_move_window_structure, mac_move_window, mac_size_window)
13545 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13547 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13548 (enum mac_menu_kind): Move enum to mactoolbox.c.
13549 (min_menu_id): Move variable to mactoolbox.c.
13550 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13551 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13552 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13553 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13554 [TARGET_API_MAC_CARBON]: Likewise.
13555 (XtPointer): Move typedef to macgui.h.
13556 (enum button_type): Move enum to macgui.h.
13557 (widget_value): Move typedef to macgui.h.
13558 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13559 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13560 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13561 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13562 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13563 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13564 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13565 (popup_activated_flag): Make variable non-static.
13566 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13567 (add_menu_item, fill_menu, dispose_menus):
13568 Move functions to mactoolbox.c.
13569 (restore_show_help_function, menu_target_item_handler)
13570 (install_menu_target_item_handler, mac_handle_dialog_event)
13571 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13572 [TARGET_API_MAC_CARBON]: Likewise.
13573 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13574 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13575 (find_and_call_menu_selection, name_is_separator): Make function
13577 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13579 (set_frame_menubar): Don't call install_menu_quit_handler.
13580 (menu_item_selection): New variable.
13581 (mac_menu_show): Use create_and_show_popup_menu.
13582 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13583 selection but set variable menu_item_selection. All uses changed.
13584 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13585 Call install_menu_quit_handler. Move to mactoolbox.c.
13587 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13588 (Selection): Move typedef to macgui.h.
13589 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13590 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13591 Make variables non-static.
13592 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13593 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13594 Make functions non-static.
13595 (Vmac_service_selection) [MAC_OSX]: Likewise.
13596 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13597 (mac_valid_selection_target_p, mac_clear_selection)
13598 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13599 (mac_put_selection_value, mac_selection_has_target_p)
13600 (mac_get_selection_value, mac_get_selection_target_list)
13601 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13602 Move functions to mactoolbox.c.
13603 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13605 (copy_scrap_flavor_data, mac_handle_service_event)
13606 (install_service_handler) [MAC_OSX]: Likewise.
13607 (syms_of_macselect) <Vmac_dnd_known_types>:
13608 Use mac_dnd_default_known_types.
13610 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13611 Move to mactoolbox.c.
13612 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13613 (Fx_selection_owner_p): Add EXFUN.
13614 (install_window_handler, remove_window_handler, XSetWindowBackground):
13616 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13617 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13618 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13619 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13620 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13621 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13622 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13623 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13624 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13625 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13626 (mac_valid_selection_target_p, mac_clear_selection)
13627 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13628 (mac_put_selection_value, mac_selection_has_target_p)
13629 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13630 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13631 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13632 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13633 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13634 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13635 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13636 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13637 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13639 * mactoolbox.c: New file.
13641 2008-04-18 Jason Rumney <jasonr@gnu.org>
13643 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13645 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13647 * character.c (Fmultibyte_char_to_unibyte):
13648 Return latin1 chars unchanged.
13650 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13651 relocated if it points to `name'.
13653 2008-04-17 Kenichi Handa <handa@m17n.org>
13655 * data.c (Faset): Allow setting a multibyte character in an
13656 ASCII-only unibyte string.
13658 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13660 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13662 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13665 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
13667 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13668 (Fchar_direction): Add usage in the docstring.
13670 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
13672 * keyboard.c (read_key_sequence): Remove always-true checks.
13674 2008-04-14 Jason Rumney <jasonr@gnu.org>
13676 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13677 compatibility struct, for better underline positioning.
13679 2008-04-13 David Hansen <david.hansen@gmx.net>
13681 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13684 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13686 * m/hp800.h (XUINT, XSET): Remove.
13688 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
13690 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13693 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13695 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13696 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13698 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13700 * keymap.h (map_keymap_canonical): Declare.
13701 * xmenu.c (single_keymap_panes): Use it.
13703 2008-04-11 Glenn Morris <rgm@gnu.org>
13705 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13706 set the target's value to that of the alias.
13708 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13710 * term.c (set_tty_color_mode): Left over typo.
13712 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
13714 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13715 only after check for file name handler functions. Signal, when
13716 native functionality is not supported.
13717 (syms_of_fileio): Declare it unconditionally.
13719 2008-04-10 Jason Rumney <jasonr@gnu.org>
13721 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13722 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13724 * w32.c (logon_network_drive): Also logon to remote drives that
13725 are mapped to drive letters.
13727 2008-04-10 Glenn Morris <rgm@gnu.org>
13729 * xdisp.c (truncate-partial-width-windows): Doc fix.
13731 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13733 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13734 Move functions to minibuffer.el.
13735 (syms_of_fileio): Don't declare them.
13737 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13739 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13740 (syms_of_minibuf): Remove its initialization.
13742 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13744 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
13746 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13748 2008-04-09 Jason Rumney <jasonr@gnu.org>
13750 * makefile.w32-in (distclean): Delete makefile too.
13751 (maintainer-clean): New target.
13753 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13755 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13756 for new font backend and composite cases.
13758 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13760 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13761 Most of the code moved to run_timers.
13762 (do_pending_atimers): Call run_timers.
13763 (run_timers): New function.
13765 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13768 * process.c (wait_reading_process_output): The same as above.
13770 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13772 * minibuf.c (last_exact_completion): Remove variable.
13773 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13774 (complete_and_exit_1, complete_and_exit_2)
13775 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13776 (Fdisplay_completion_list, display_completion_list_1)
13777 (Fminibuffer_completion_help, Fself_insert_and_exit)
13778 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13780 (syms_of_minibuf): Remove corresponding initializations.
13782 * keyboard.c (Qdeactivate_mark): New var.
13783 (command_loop_1): Use it to call `deactivate-mark'.
13784 (syms_of_keyboard): Initialize it.
13786 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13788 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13789 Don't call set_tty_color_mode.
13790 (store_frame_param): Reset previous_frame rather than call
13791 set_tty_color_mode.
13792 * term.c (set_tty_color_mode): Rewrite.
13793 * dispextern.h (set_tty_color_mode): New type.
13794 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13796 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13798 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13799 for generic chars, which do not exist any more in emacs-unicode.
13801 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
13803 * coding.c (detect_coding_emacs_mule)
13804 (Ffind_operation_coding_system): Fix typo.
13806 2008-04-08 Jason Rumney <jasonr@gnu.org>
13808 * w32uniscribe.c (SNAME): Extract only symbol name.
13810 * w32font.h (struct w32_metric_cache): New struct.
13811 (w32font_info): Use it.
13812 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13813 (CACHE_BLOCKSIZE): New constants.
13815 * w32font.c (Qja, Qko, Qzh): New symbols.
13816 (syms_of_w32font): Initialise them.
13817 (font_matches_spec): Use them to filter by language.
13818 (recompute_cached_metrics): Remove function.
13819 (compute_metrics, clear_cached_metrics): New functions.
13820 (w32font_encode_char): Use them to manage metric cache.
13821 (w32font_text_extents): Cache metrics for all glyphs on demand.
13822 Delay converting glyph indices to WORD until needed.
13823 (w32font_open_internal): Initialize metric cache to empty.
13824 (registry_to_w32_charset): Charset should always be a symbol.
13825 (fill_in_logfont, list_all_matching_fonts): Family should
13826 always be a symbol.
13828 2008-04-06 Jason Rumney <jasonr@gnu.org>
13830 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13831 Give up if glyph indices not supported. Use uniscribe obtained
13832 ABC widths for individual metrics. Map glyph clusters back to
13833 characters using fClusterStart flag. Return number of glyphs
13834 produced, not chars processed.
13835 (uniscribe_shape): Map char at FROM to current glyph.
13837 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13839 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13840 Use SetMenuItemHierarchicalMenu.
13842 2008-04-05 Jason Rumney <jasonr@gnu.org>
13844 * image.c (pbm_load): Allow color values up to 65535.
13845 Throw an error if max_color_idx is outside the supported range.
13846 Report an error when image size is invalid.
13847 Read two bytes at a time when raw images have max_color_idx above 255.
13849 2008-04-05 Eli Zaretskii <eliz@gnu.org>
13851 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13852 cFileName a file name that includes `?' characters, use the 8+3
13853 alias in cAlternateFileName instead.
13855 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13857 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13858 append "CCL: Quitted" when the CCL program is quitted.
13859 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13861 * ccl.h (struct ccl_program): New member quit_silently.
13863 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
13865 * search.c (compile_pattern_1): Treat non-nil and non-string of
13866 search-spaces-regexp as nil.
13868 * minibuf.c (Fassoc_string): Tweak docstring.
13870 2008-04-05 Eli Zaretskii <eliz@gnu.org>
13872 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13873 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13874 2008-03-14 to force inode be positive.
13876 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13877 _S_* ones, since we now use our own sys/stat.h.
13878 (stat, fstat): Don't mangle the inode number.
13879 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13881 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13883 * frame.h (struct frame): Give one more bit to `visible' since we use
13884 values larger than 1 to indicate obscured frames on ttys.
13886 * keymap.c (Qkeymap_canonicalize): New var.
13887 (Fmap_keymap_internal): New fun.
13888 (describe_map): Use keymap-canonicalize.
13890 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13891 (Fundo_boundary): Set them.
13892 (syms_of_undo): Initialize them.
13893 (record_point): Use them instead of last_point_position*.
13894 (last_undo_buffer): Change type.
13896 2008-04-04 Jason Rumney <jasonr@gnu.org>
13898 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13899 (recompute_cached_metrics): Don't set ascent and descent per char.
13901 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13902 (uniscribe_check_otf): Add GC protection before consing.
13903 Rearrange loop for counting features.
13905 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13907 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13908 buffer with byte-size of source buffer.
13910 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
13912 * callint.c (Fcall_interactively): Handle temporary region even
13913 when shift-select-mode is off.
13915 2008-04-03 Jason Rumney <jasonr@gnu.org>
13917 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13919 2008-04-03 Kenichi Handa <handa@m17n.org>
13921 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13922 (CATEGORY_MASK_UTF_16): Likewise.
13923 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13925 (detect_coding): Add null-byte detection for a binary file.
13926 (detect_coding_system): Likewise.
13928 2008-04-03 Jason Rumney <jasonr@gnu.org>
13930 * w32uniscribe.c: New file.
13932 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13934 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13936 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13937 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13938 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13939 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13940 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13941 (Qphonetic): New symbols.
13942 (syms_of_w32font): Initialize them.
13943 (font_supported_scripts): Use them.
13944 (w32font_list_family): List all charsets.
13945 (w32font_text_extents, recompute_cached_metrics): Fix metric
13947 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13948 Give opentype fonts their own format.
13949 (font_matches_spec): New arguments backend and logfont.
13950 Handle :otf spec for uniscribe backend.
13951 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13952 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13954 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13956 (globals_of_w32fns): Initialize uniscribe font backend.
13958 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13960 (w32uniscribe.$(O)): New file to build.
13961 (FONT_OBJ): Include w32uniscribe.$(O).
13962 (LIBS): Add uniscribe libraries.
13964 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13966 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
13968 * callint.c (Vshift_select_mode): New var.
13969 (Finteractive): Document new ^ spec.
13970 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13973 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13974 (command_loop_1): Avoid running the direct display versions of
13975 forward-char and backward-char if shift-selection may occur.
13976 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13977 shift-translation takes place.
13979 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13980 avoid clobbering by define-minor-mode.
13982 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13983 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13985 * syntax.c (Fforward_word): Add ^ interactive spec.
13987 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13988 (Fscroll_right): Add ^ interactive spec.
13990 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13992 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13994 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13996 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13998 2008-03-31 Juri Linkov <juri@jurta.org>
14000 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14002 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14004 * gtkutil.c (xg_set_geometry): Fix indentation.
14005 (xg_resize_outer_widget): Remove.
14006 (x_wm_size_hint_off): Fix indentation.
14007 (xg_frame_set_char_size): Call flush_and_sync after
14009 (x_wm_set_size_hint): Pass NULL as geometry window to
14010 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14011 Add menu bar and tool bar height to base height.
14012 (xg_update_frame_menubar, free_frame_menubar)
14013 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14014 (update_frame_tool_bar, free_frame_tool_bar):
14015 Change xg_resize_outer_widget to xg_frame_set_char_size.
14017 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
14019 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14020 (Fdbus_call_method): New parameter TIMEOUT.
14021 (dbus-send-signal): Optimize UNGCPRO call.
14023 2008-03-29 Juri Linkov <juri@jurta.org>
14025 * window.c (Fdisplay_buffer): Move call to
14026 Vsplit_window_preferred_function out of conditions that check
14027 if window is eligible for vertical splitting.
14028 When Vsplit_window_preferred_function is non-nil, call it and use
14029 its non-nil return value as window. Otherwise, continue doing
14030 vertical splitting using Fsplit_window with arg horflag=nil.
14031 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14032 default value from `split-window' to nil.
14034 2008-03-29 Juri Linkov <juri@jurta.org>
14036 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14037 for interactive code letters 'b' and 'B'.
14039 2008-03-29 Eli Zaretskii <eliz@gnu.org>
14041 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14044 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14046 * keyboard.c (pending_funcalls): New var.
14047 (timer_check): Run it.
14048 (syms_of_keyboard): Initialize it.
14049 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14050 (Vdelete_terminal_functions): New vars.
14051 (syms_of_terminal): Initialize them.
14052 (Fdelete_terminal): Run delete-terminal-functions.
14053 * xdisp.c (safe_eval): Rewrite.
14054 (safe_call2): New fun.
14055 * frame.c (Qdelete_frame_functions): New var.
14056 (syms_of_frame): Initialize it.
14057 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14058 * lisp.h (safe_call2, pending_funcalls): Declare.
14060 2008-03-28 Andreas Schwab <schwab@suse.de>
14062 * indent.c (Fmove_to_column): Move declaration before statements.
14064 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14066 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14067 (struct frame): Use bit fields for boolean vars.
14069 * process.c (server_accept_connection): Simplify naming.
14070 (emacs_get_tty_pgrp): Use SDATA.
14072 * coding.c (decode_coding_object): Fix last change.
14074 2008-03-27 Jason Rumney <jasonr@gnu.org>
14076 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14078 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14080 * charset.c (Fdefine_charset_internal): Change the way of
14081 registering charsets in Vcharset_order_list.
14082 (syms_of_charset): Make the charset `eight-bit' supplementary.
14084 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14086 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14087 operations, to avoid having the difference between pointers
14090 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14092 * indent.c (check_display_width): New fun.
14093 (scan_for_column): Use it.
14095 * data.c (syms_of_data): Mark most-positive-fixnum and
14096 most-negative-fixnum as constants.
14098 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14100 * indent.c (scan_for_column): Extract from current_column_1.
14101 Merge with the same code from Fmove_to_column.
14102 (current_column_1, Fmove_to_column): Use it.
14104 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14106 * keymap.c (map_keymap_internal): New fun.
14107 (map_keymap): Use it.
14108 (Fmap_keymap_internal): New fun.
14109 (Fmap_keymap): Remove left-out test from before make_save_value.
14111 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14113 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14116 * process.h (struct Lisp_Process): Remove filter_multibyte.
14117 * process.c (QCfilter_multibyte): Remove.
14118 (setup_process_coding_systems): Don't use filter_multibyte.
14119 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14120 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14121 (Fset_process_filter_multibyte): Change the coding-system to
14122 approximate the previous behavior.
14123 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14126 * coding.c (decode_coding_object): When not decoding into a buffer,
14127 obey the coding system's preference of (uni|multi)byte.
14129 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14131 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14132 every char is changed and has a different byte-length.
14133 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14134 Fix int -> EMACS_INT.
14136 2008-03-23 David Hansen <david.hansen@gmx.net>
14138 * dbusbind.c (xd_read_message): Remove extra copying of message
14139 strings. Check for NULL `interface' or `member'.
14141 2008-03-22 Eli Zaretskii <eliz@gnu.org>
14143 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14144 cFileName a file name that includes `?' characters, use the 8+3
14145 alias in cAlternateFileName instead.
14147 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14149 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14151 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14153 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14154 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14155 work on current_buffer only instead (that was already the case
14156 for some of the code anyway).
14157 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14158 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14159 (SET_PT, SET_PT_BOTH): Adjust.
14160 * intervals.h (set_point, temp_set_point, set_point_both)
14161 (temp_set_point_both): Remove redundant declarations.
14163 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14165 * fileio.c (Finsert_file_contents):
14166 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14167 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14168 when buffer != current_buffer anyway.
14170 2008-03-20 Andreas Schwab <schwab@suse.de>
14172 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14175 2008-03-19 Jason Rumney <jasonr@gnu.org>
14177 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14178 (syms_of_w32fns): Initialize them.
14179 (HOURGLASS_ID): New constant.
14180 (x_window_to_frame): Don't check hourglass_window.
14181 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14182 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14183 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14184 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14185 Only change the cursor if hourglass is not active.
14186 (Fx_create_frame): Initialize frame's current_cursor.
14187 (hourglass_atimer): Remove.
14188 (hourglass_started): New function.
14189 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14190 (show_hourglass): Adapt to w32, changing argument to frame.
14192 * w32term.h (struct w32_output): Remove hourglass_window.
14193 Add current_cursor.
14195 * eval.c (call_debugger, Fsignal):
14196 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14197 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14198 (Fexecute_extended_command, cancel_hourglass_unwind):
14199 * minibuf.c (read_minibuf):
14200 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14202 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14204 * window.c (run_funs): New fun.
14205 (run_window_configuration_change_hook): Use it to run the buffer-local
14206 and the global part of the hook.
14208 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14209 (unwind_format_mode_line): Restore selected window.
14210 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14212 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14214 * editfns.c (Fchar_equal): Check they are valid characters.
14216 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14218 2008-03-17 Andreas Schwab <schwab@suse.de>
14220 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14223 * lisp.h (Fbuffer_list): Declare.
14225 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
14227 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14228 handlebox_widget is != 0.
14230 2008-03-16 Juri Linkov <juri@jurta.org>
14232 * callint.c (Fcall_interactively): For interactive code letters
14233 'b' and 'B' put the buffer list into the list of default "future"
14234 values of the minibuffer.
14236 2008-03-16 Andreas Schwab <schwab@suse.de>
14238 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14241 * regex.c (re_match_2_internal): Correct matching of a charset
14242 against latin-1 characters.
14244 2008-03-16 Kenichi Handa <handa@m17n.org>
14246 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14247 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14248 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14249 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14250 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14251 CHAR_STRING_ADVANCE.
14252 (produce_chars): Fix for the case that the source and the
14253 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14254 instead of CHAR_STRING_ADVANCE.
14255 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14256 STRING_CHAR_ADVANCE.
14258 2008-03-15 Andreas Schwab <schwab@suse.de>
14260 * regex.c (re_match_2_internal): Correct matching of eight bit
14261 characters in unibyte strings.
14263 2008-03-15 Martin Rudalics <rudalics@gmx.at>
14265 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14266 at end of range when it coincides with the end of the buffer.
14268 2008-03-14 Eli Zaretskii <eliz@gnu.org>
14270 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14272 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14274 2008-03-14 Jason Rumney <jasonr@gnu.org>
14276 * editfns.c (initial_tz): New variable.
14277 (syms_of_editfns): Initialize it.
14278 (Fset_time_zone_rule): Set it when first called.
14279 Use it when TZSTRING is nil.
14281 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14282 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14283 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14284 (globals_of_w32fns): Initialize them.
14285 (compute_tip_xy): Use them to position tooltips.
14287 2008-03-14 Glenn Morris <rgm@gnu.org>
14289 * emacs.c (main): Revert previous change.
14290 (standard_args): Revert -internal-script back to -scriptload,
14291 and remove the long-option form.
14293 2008-03-13 Glenn Morris <rgm@gnu.org>
14295 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14296 Remove option -enable-font-backend.
14298 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14300 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14302 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14304 * xterm.c (x_connection_closed): For GTK: If this is the last
14305 terminal just exit without closing the display.
14307 2008-03-11 Jason Rumney <jasonr@gnu.org>
14309 * w32font.c (w32font_full_name): Use floor to round.
14311 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
14313 * sound.c (alsa_configure): Declare vol at beginning of block.
14315 * fontset.c (Ffontset_info): Remove extra semicolon.
14317 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14319 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14320 size of resulting string.
14322 2008-03-10 Jason Rumney <jasonr@gnu.org>
14324 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14326 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14328 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14329 Don't pretend as if characters with display property haven't been
14330 consumed for string-replacing-string case.
14332 2008-03-08 Kim F. Storm <storm@cua.dk>
14334 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14335 (get_next_display_element, next_element_from_string)
14336 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14338 2008-03-08 Andreas Schwab <schwab@suse.de>
14340 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14342 2008-03-06 Jason Rumney <jasonr@gnu.org>
14344 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14345 when charset not specified. Only translate ANSI to unicode when
14346 font_type is truetype.
14347 (w32font_coverage_ok): New function.
14348 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14350 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14352 * lread.c (Fread_char): Resolve modifiers.
14353 (Fread_char_exclusive): Likewise.
14355 * character.c (char_resolve_modifier_mask): New function.
14356 (char_string): Use char_resolve_modifier_mask.
14357 (Fchar_resolve_modifiers): New function.
14358 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14361 2008-03-04 Jason Rumney <jasonr@gnu.org>
14363 * makefile.w32-in: Always include w32font.c in the build.
14364 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14366 2008-03-04 Andreas Schwab <schwab@suse.de>
14368 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14369 (versionclean): Likewise.
14371 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
14373 * .cvsignore: Add oo.
14375 2008-03-03 Andreas Schwab <schwab@suse.de>
14377 * coding.c (decode_coding_object): Inhibit gap shrinking while
14380 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14382 * w32term.c: Remove unused include "gnu.h".
14383 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14385 * gnu.h: Rename to ...
14386 * emacs-icon.h: ... this.
14387 * xterm.c: Use emacs-icon.h instead of gnu.h.
14388 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14390 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
14392 * w32font.c: Include math.h.
14394 2008-03-03 Jason Rumney <jasonr@gnu.org>
14396 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14397 Compute options separately.
14398 (w32font_open_internal): Set glyph_idx before caching metrics.
14400 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14401 Define if system headers don't.
14402 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14403 (w32font_encode_char): Don't declare here.
14405 * w32font.c (Quniscribe, QCformat): New symbols.
14406 (syms_of_w32font): Define them.
14407 (w32font_has_char): Indicate uncertainty.
14408 (w32font_encode_char): Encode as glyph point. Make static.
14409 (recompute_cached_metrics): New function.
14410 (w32font_open_internal): Use it. Set font to use glyph points
14411 initially. Set format based on type of font.
14412 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14413 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14414 on it. Set format based on information available here.
14415 (add_font_entity_to_list): Identify backend based on opentype_only.
14417 2008-03-02 Andreas Schwab <schwab@suse.de>
14419 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14421 * coding.c (decode_coding_big5, produce_chars):
14422 Fix typos in last change.
14424 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14428 2008-03-02 Kenichi Handa <handa@m17n.org>
14430 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14431 `dos', don't decode '\r' if that is the last in the source.
14432 (decode_coding_utf_16, decode_coding_emacs_mule)
14433 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14434 (decode_coding_raw_text, decode_coding_charset): Likewise.
14435 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14437 2008-03-01 Jason Rumney <jasonr@gnu.org>
14439 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14441 2008-03-01 Kim F. Storm <storm@cua.dk>
14443 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14445 2008-03-01 Jason Rumney <jasonr@gnu.org>
14447 * w32font.c (w32font_full_name): New function.
14448 (w32font_open_internal): Use it.
14450 2008-03-01 Kim F. Storm <storm@cua.dk>
14452 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14454 2008-03-01 Jason Rumney <jasonr@gnu.org>
14456 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14458 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14460 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14461 xg_frame_resized when the event is for the edit widget.
14463 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14465 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14467 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14468 operations on widgets here. Just set frame size if needed.
14469 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14470 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14471 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14473 (xg_create_tool_bar): Move attachment of the tool bar to
14474 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14475 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14477 2008-03-01 Jason Rumney <jasonr@gnu.org>
14479 * w32fns.c (w32_msg_pump): Disable debug code.
14481 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14483 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14485 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14487 * xdisp.c (next_overlay_string): Don't set
14488 overlay_strings_at_end_processed_p if we're currently reading from
14491 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14493 * xdisp.c (get_overlay_strings_1): Fix typo.
14495 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14497 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14499 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14501 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14503 * xdisp.c (display_mode_element): Cancel the previous change.
14504 (decode_mode_spec): Likewise.
14505 (handle_auto_composed_prop): Don't make composition if it->string
14508 2008-02-27 Kim F. Storm <storm@cua.dk>
14510 * lisp.h (GLYPH): Change type from int to struct with separate char
14511 and face_id members.
14512 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14513 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14514 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14515 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14516 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14517 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14518 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14519 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14520 handle new Lisp glyph code encoding, either an integer or a cons.
14522 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14523 (GLYPH_ALIAS): Delete.
14524 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14525 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14526 (GLYPH_FROM_CHAR): Replace macro by ...
14527 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14529 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14530 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14531 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14532 (GLYPH_INVALID_P): New macro.
14533 (spec_glyph_lookup_face): Update prototype.
14535 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14536 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14537 new glyph code encoding.
14538 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14539 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14541 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14542 Adapt to new glyph type and new glyph code encoding.
14544 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14546 * indent.c (current_column, current_column_1, Fmove_to_column)
14547 (compute_motion): Adapt to new glyph code encoding.
14549 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14551 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
14553 * process.c (wait_reading_process_output): Check for window
14554 changes caused by timers.
14555 Suggested by Johan Bockgård.
14557 2008-02-27 Glenn Morris <rgm@gnu.org>
14559 * emacs.c (USAGE1): Add `--disable-font-backend'.
14561 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14563 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14564 is made to the buffer.
14566 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14568 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14569 (face_at_string_position):
14570 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14571 (face_at_string_position):
14572 * xdisp.c (display_string, next_overlay_change):
14573 * buffer.h (overlays_at):
14574 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14577 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
14579 * editfns.c (Fformat): Doc fix.
14581 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
14583 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14584 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14585 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14587 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14589 * buffer.c (Fbuffer_swap_text): New function.
14590 (syms_of_buffer): Defsubr it.
14592 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
14594 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14596 2008-02-25 Jason Rumney <jasonr@gnu.org>
14598 * w32font.c (w32font_draw): Draw one character at a time when padding.
14600 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14602 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14603 Handle a nil arg. Use run_window_configuration_change_hook.
14604 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14605 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14606 Use run_window_configuration_change_hook.
14608 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14610 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14613 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14615 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14616 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14617 if the glyph in the font is zero pixel with.
14619 * dispextern.h (struct glyph_string): New member padding_p.
14621 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14623 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14625 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14627 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14629 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14631 2008-02-25 Jason Rumney <jasonr@gnu.org>
14633 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14635 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14637 Allow fine-grained image-cache flushing.
14638 * dispextern.h (struct image): Add `dependencies' field.
14639 (clear_image_caches): Change arg to Lisp_Object.
14640 * image.c (make_image): Initialize `dependencies' field.
14641 (clear_image_cache): Change arg to allow fine-grained flushing.
14642 Perform the flush even if image-cache-eviction-delay is nil.
14643 (clear_image_caches): Change arg to Lisp_Object.
14644 (Fclear_image_cache): Expand meaning of the argument.
14645 (mark_image): Mark `dependencies' field.
14646 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14647 (lface_hash): Use XHASH rather than XFASTINT.
14648 (face_at_buffer_position): Fix int -> EMACS_INT position.
14649 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14650 (select_frame_for_redisplay): Remove code duplication.
14651 (redisplay_internal): Adapt arg to call to clear_image_caches.
14653 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14658 * s/vms5-5.h: Remove, unused.
14664 * m/mips4.h: Remove files for obsolete systems.
14677 * s/usg5-3.h: Remove references to obsolete variables.
14679 * s/irix5-0.h: Remove, move all the contents ...
14680 * s/irix6-5.h: ... here. Simplify.
14681 * config.in: Regenerate.
14683 2008-02-24 Jason Rumney <jasonr@gnu.org>
14685 * w32term.c (x_draw_glyph_string_background): Clear the background
14686 manually when cleartype is in use.
14687 (x_draw_glyph_string_foreground): Draw text transparently when
14688 cleartype is in use.
14690 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14691 a font into it unless we have to.
14693 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14695 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14696 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
14698 2008-02-18 Jason Rumney <jasonr@gnu.org>
14700 * w32fns.c (Fw32_shell_execute): Encode parameters.
14702 2008-02-09 Eli Zaretskii <eliz@gnu.org>
14704 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14706 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
14708 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14710 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14712 * xterm.c (x_set_offset): Don't change the gravity if
14713 CHANGE_GRAVITY is -1.
14715 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
14717 * fileio.c (auto_save_error_occurred): New var.
14718 (auto_save_error): Set it.
14719 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14722 2008-02-23 Eli Zaretskii <eliz@gnu.org>
14724 * w32.c (globals_of_w32): Add initializations for
14725 g_b_init_get_sid_sub_authority and
14726 g_b_init_get_sid_sub_authority_count.
14728 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14730 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14731 (font_parse_xlfd): Use them for sanity check.
14732 (Finternal_set_font_style_table): Make sure the table is bijective.
14734 Consolidate the image_cache to the terminal struct.
14735 * termhooks.h (P_): Remove redundant def.
14736 (struct terminal): New field `image_cache'.
14737 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14738 of FRAME_X_IMAGE_CACHE.
14739 * xterm.h (struct x_display_info): Remove image_cache field.
14740 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14741 * w32term.h (struct w32_display_info): Remove image_cache field.
14742 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14743 * macterm.h (struct mac_display_info): Remove image_cache field.
14744 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14745 * xterm.c (x_term_init):
14746 * w32term.c (w32_term_init):
14747 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14748 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14749 Remove declarations.
14750 (clear_image_caches, mark_image_cache): New declarations.
14751 * xfaces.c (clear_face_cache):
14752 * xdisp.c (redisplay_internal): Use clear_image_caches.
14753 * image.c (clear_image_cache): Don't check that a frame is on
14754 a window-system before checking if it shares the same cache.
14755 (clear_image_caches): New function.
14756 (Fclear_image_cache): Use it.
14757 (mark_image): Move from allo.c.
14758 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14759 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14760 (mark_object): Don't call mark_image_cache for frames.
14761 (mark_terminals): Call mark_image_cache.
14763 * lisp.h (Fdelete_terminal): Declare.
14765 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14766 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14767 wrong_type_argument.
14769 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14771 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14772 malayalam.el, and tamil.el. Add sinhala.el.
14774 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14776 * xterm.c (x_connection_closed): Consolidate identical tests.
14777 (x_delete_terminal): Don't crash if called via x_connection_closed.
14779 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14781 * xdisp.c (decode_mode_spec): New arg string.
14782 (display_mode_element): Adjust for the above change.
14784 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14786 * callint.c (Fcall_interactively): Use AREF.
14788 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14790 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14792 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14794 * xfns.c (Fx_show_tip): Set string to " " if empty.
14796 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14798 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14801 2008-02-17 Kenichi Handa <handa@m17n.org>
14803 * ftfont.c (ftfont_shape): Return Lispy number.
14805 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14807 (Finternal_set_font_selection_order): Call font_update_sort_order
14808 only when enable_font_backend is set.
14809 (realize_x_face): Set face->font_info to that of default face only
14810 when enable_font_backend is set.
14812 * xdisp.c (handle_composition_prop): Set it->c to the fist
14813 character of the composed region.
14814 (fill_composite_glyph_string): Set base_face->font_info to
14815 s->font_info. Get a face for ascii from base_face->ascii_face.
14816 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14817 with a face already decided.
14818 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14820 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14821 call font_prepare_composition unconditionally.
14823 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14825 * xterm.h (struct x_display_info): New member font.
14827 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14828 (x_set_mouse_face_gc, x_new_font): Likewise.
14829 (x_term_init): Setup display_info->font.
14830 (x_delete_terminal): Free display_info->font.
14832 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14834 * ftxfont.c (ftxfont_default_fid): Delete it.
14835 (ftxfont_open): Set xfont->fid to 0.
14836 (ftxfont_end_for_frame): Clear data specific to the frame and the
14839 * xftfont.c (xftfont_default_fid): Delete it.
14840 (xftfont_open): Set xfont->fid to 0.
14842 * fontset.c (FONTSET_OBJLIST): New macro.
14843 (fontset_find_font): Update font-object list of the fontset.
14844 (free_realized_fontset): New function.
14845 (free_face_fontset): Call free_realized_fontset.
14846 (Ffont_info): Call font_close_object only when enable_font_backend
14849 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14850 [HAVE_NTGUI]: Include w32term.h.
14851 [MAC_OS]: Include macterm.ch.
14852 (font_otf_ValueRecord): Use make_number.
14853 (font_finish_cache): Fix handling of reference count.
14854 (font_clear_cache): Update num_fonts.
14855 (font_open_entity): Update smallest_char_width and
14856 smallest_font_height of the frame.
14857 (font_close_object): Update num_fonts.
14858 (Fclear_font_cache): Fix finding the target cache data.
14860 2008-02-16 Glenn Morris <rgm@gnu.org>
14862 * fontset.c (Finternal_char_font): Fix compilation warning.
14864 2008-02-16 Eli Zaretskii <eliz@gnu.org>
14866 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14867 instead of char arrays. Enlarge the size of array passed to
14868 get_token_information.
14870 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14873 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14875 * .gdbinit: Don't set `args', it breaks gdb --args.
14877 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14879 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14880 within a narrowed buffer.
14882 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14884 * coding.c (decode_coding_object, encode_coding_object):
14885 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14887 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14889 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14891 (detect_coding_system):
14892 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14893 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14894 * insdel.c (insert_from_gap):
14895 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14896 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14897 (string_to_multibyte):
14898 * character.c (chars_in_text, multibyte_chars_in_text):
14899 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14901 * character.h (FETCH_STRING_CHAR_ADVANCE)
14902 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14903 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14904 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14906 * casefiddle.c (casify_region): Only call after-change and composition
14907 functions on the part of the region that was changed.
14909 * keyboard.c (read_avail_input):
14910 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14912 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14914 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14915 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14917 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
14919 * w32menu.c (push_submenu_start, push_submenu_end)
14920 (push_left_right_boundary, push_menu_pane, push_menu_item):
14921 * keyboard.c (read_key_sequence): Don't pass args with side effects
14922 to AREF, it fails when compiling with -DENABLE_CHECKING.
14924 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14926 * Makefile.in (${lispsource}international/charprop.el):
14927 Delete this target.
14929 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14932 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14934 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14936 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14938 * frame.c (Qnoelisp): New symbol.
14939 (syms_of_frame): Initialize it.
14940 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14941 harmless Elisp code, from a strong `force' from x_connection_closed.
14942 * frame.h (Qnoelisp): Declare.
14943 * xterm.c (x_connection_closed): Pass `noelisp'.
14945 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14946 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14947 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14948 rather than `int' for the type of `type'.
14950 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14952 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14954 * Makefile.in (GNUC): Remove support for gcc-1.x.
14956 2008-02-10 Richard Stallman <rms@gnu.org>
14958 * lisp.h (ASET): Use AREF, not ASLOT.
14960 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14962 * lisp.h (ASET): Check bounds.
14964 2008-02-10 Glenn Morris <rgm@gnu.org>
14966 * buffer.c (mode-name): Doc fix.
14968 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14985 * xterm.c: Remove code that deals with obsolete variables.
14987 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14989 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14990 nothing else needs it anymore.
14992 2008-02-09 Eli Zaretskii <eliz@gnu.org>
14994 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14995 instead of unibyte_char_to_multibyte.
14997 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14999 * s/gnu-linux.h: Remove commented out code.
15001 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15003 * Makefile.in: Update what RMS says about using autoconf.
15004 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15005 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15006 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15007 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15009 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15011 * keymap.c (Fkey_description): Move side effect outside of macro call.
15013 * xfaces.c (Finternal_make_lisp_face):
15014 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15016 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15017 (syms_of_fontset): Use ASET.
15019 * fns.c (concat): Move side effect outside of macro call.
15020 (hash_clear): Use ASET.
15022 2008-02-08 Richard Stallman <rms@gnu.org>
15024 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15025 If FORCE, and frame has a surrogate minibuffer for another frame,
15026 delete the other frame first.
15028 2008-02-07 Timo Savola <timo.savola@iki.fi>
15030 * xterm.c (x_detect_focus_change): Handle embed client message.
15031 (handle_one_xevent): Ditto.
15032 (handle_one_xevent): If embedded and we get a button press/release,
15034 (xembed_set_info, xembed_send_message): New functions.
15035 (x_make_frame_visible): Call xembed_set_info if embedded.
15036 (x_make_frame_invisible): Call xembed_set_info if embedded.
15037 (x_term_init): Initialize Xatom_XEMBED.
15038 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15039 (x_iconify_frame): Ditto.
15041 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15042 (enum xembed_info, enum xembed_message, enum xembed_focus)
15043 (enum xembed_modifier, enum xembed_accelerator): New.
15044 (xembed_set_info, xembed_send_message): Declare.
15045 (FRAME_X_EMBEDDED_P): New.
15047 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15050 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15051 window ID of a frame.
15052 (x_window): Reparent frame if embedded.
15053 (Fx_create_frame): Don't set border width if embedded.
15055 * emacs.c (USAGE3): Add --parent-id.
15056 (standard_args): Ditto.
15058 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15060 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15062 2008-02-07 Jim Meyering <meyering@redhat.com>
15064 Use "do...while (0)", not "if (1)...else" in macro definitions.
15065 The latter provokes a warning from gcc about the empty else, when
15066 followed by ";". Also, without that trailing semicolon, it would
15067 silently swallow up any following statement.
15068 * syntax.h (SETUP_SYNTAX_TABLE)
15069 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15070 * buffer.h (DECODE_POSITION): Likewise.
15071 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15072 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15073 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15074 (FETCH_CHAR_ADVANCE): Likewise.
15075 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15077 2008-02-07 Jim Meyering <meyering@redhat.com>
15079 * lread.c [lint]: Don't include <sys/inode.h>.
15081 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15083 * xselect.c (x_handle_dnd_message):
15084 * xmenu.c (digest_single_submenu, xmenu_show):
15085 * xdisp.c (with_echo_area_buffer_unwind_data)
15086 (format_mode_line_unwind_data, unwind_format_mode_line)
15087 (display_menu_bar):
15088 * eval.c (Ffetch_bytecode):
15089 * doc.c (store_function_docstring):
15090 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15091 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15092 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15094 2008-02-07 Kenichi Handa <handa@m17n.org>
15096 * ftxfont.c (ftxfont_open): Don't set
15097 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15099 * ftfont.c (ftfont_open): Fix previous change.
15101 2008-02-06 Jason Rumney <jasonr@gnu.org>
15103 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15104 Use cached metrics for ASCII characters.
15105 (w32font_open_internal): Don't set font's owning_frame.
15106 Cache metrics for ASCII characters.
15108 * w32font.h (struct w32font_info): Add ascii_metrics.
15109 Remove owning_frame.
15111 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15113 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15116 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15118 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15120 * charset.c (syms_of_charset): Set QCtest and Qeq.
15122 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15124 * process.c (Fstart_process):
15125 * callproc.c (Fcall_process): Handle the case where
15126 Funhandled_file_name_directory returns nil.
15128 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15129 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15130 * font.c (check_gstring): Use them and AREF to access the vector before
15131 we know it's really a gstring.
15132 (Ffont_shape_text): Fix typo.
15133 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
15135 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15138 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15140 2008-02-05 Jason Rumney <jasonr@gnu.org>
15142 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15143 Set smallest_font_height and smallest_char_width in display info.
15145 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15147 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15149 2008-02-05 Miles Bader <miles@gnu.org>
15151 * xfaces.c (get_lface_attributes, merge_named_face)
15152 (lookup_named_face, lookup_derived_face, realize_named_face):
15153 Revert 2008-02-01 change by cyd@stupidchicken.com.
15155 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15157 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15159 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15161 2008-02-04 Jason Rumney <jasonr@gnu.org>
15163 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15165 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15167 2008-02-03 Jason Rumney <jasonr@gnu.org>
15169 * makefile.w32-in (OBJ1): Include font.o here.
15170 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15172 2008-02-02 Jason Rumney <jasonr@gnu.org>
15174 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15176 2008-02-01 Jason Rumney <jasonr@gnu.org>
15178 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15180 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15182 2008-02-01 Andreas Schwab <schwab@suse.de>
15184 * Makefile.in (shortlisp, lisp): Update for rename of
15185 ../lisp/language/myanmar.el.
15187 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
15189 * xfaces.c (get_lface_attributes): Delete function.
15190 (merge_named_face, lookup_named_face, lookup_derived_face)
15191 (realize_named_face): Call lface_from_face_name directly, and use
15192 the fact that merge_face_vectors does not alter its FROM argument.
15194 2008-02-01 Jason Rumney <jasonr@gnu.org>
15196 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15197 input in the default locale. Handle non-Unicode multibyte input.
15199 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15201 * fontset.c (reorder_font_vector): Exclude nil elements from the
15202 font group. Don't try multiple fonts.
15203 (fontset_font): Adjust for the above change.
15204 (Finternal_char_font): Return nil if the found font doesn't
15205 contain the character ch.
15207 * Makefile.in (lisp, shortlisp): Add cham.el.
15209 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15211 * font.h (FONTP): Make it return 1 also for a font-object.
15213 * .gdbinit (xfontset): New function.
15215 * font.c (font_find_for_lface): Check if the character C is
15216 supported or not only for the first font.
15218 * fontset.c (reorder_font_vector): Fix typo.
15219 (fontset_find_font): Don't add a font-spec specifying a script.
15220 Use 0 (not Qt) for the indication of empty font-group. Change the
15221 format of RFONT-DEF. Return Qt if no font in the font-group
15222 support the character.
15223 (fontset_font): Adjust for the above change. If no font was
15224 found the character, remember that.
15225 (face_for_char): Adjust for the change of RFONT-DEF.
15226 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15227 no font for the target.
15228 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15230 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15232 * font.c (font_load_for_face): Handle the case that the font in
15233 face->lface is a string.
15235 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15237 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15239 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15241 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15242 Fix previous change. If the frame is not on a window system,
15245 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15247 * coding.c (decode_coding_object, encode_coding_object): Adjust
15248 marker positions after conversion.
15250 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15252 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15254 * font.c (font_find_for_lface): Fix the handling of the return
15255 value of font_has_char.
15256 (Ffont_shape_text): Fix previous change.
15258 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15259 (fontset_ref_and_range): Delete it.
15260 (fontset_find_font): Call char_table_ref_and_range instead of
15261 FONTSET_REF_AND_RANGE.
15262 (make_fontset): Don't setup font groups of Latin here.
15263 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15264 (new_fontset_from_font): Make the specified font the default for
15265 all Latin characters.
15267 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15269 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15270 is on a window system before accessing the fontset of the frame.
15272 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15274 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15276 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15277 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15279 * font.c (Ffont_shape_text): If the font driver doesn't have a
15280 shaper function, make zero-width glyphs to have at least one-pixel
15281 width. Fix setting of `to' field of glyphs.
15283 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15285 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15288 * font.h (struct font_driver): Improve docstring of member `shape'.
15290 2008-02-01 Kenichi Handa <handa@m17n.org>
15292 * composite.c (syms_of_composite): Fix docstring of
15293 auto-composition-function.
15295 * font.h (LGLYPH_SIZE): New macro.
15297 * font.c (Ffont_fill_gstring): Stop filling when a character not
15298 supported by the font is found.
15299 (Ffont_shape_text): When a shape callback function returns nil,
15300 try at most two more times with larger gstring.
15301 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15303 * xdisp.c (handle_auto_composed_prop): Change the argument to
15304 auto-composition-function.
15306 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15307 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15308 Lispy glyph and store it in the lgstring.
15310 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15312 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15314 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15316 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15318 * fontset.c (Vfont_encoding_charset_alist): New variable.
15319 (syms_of_fontset): DEFVAR it.
15320 (reorder_font_vector, fontset_find_font): Optimize for the case of
15321 no need of reordering.
15322 (face_for_char): Map the charset property by
15323 Vfont_encoding_charset_alist.
15325 2008-02-01 Jason Rumney <jasonr@gnu.org>
15327 * w32font.c (logfonts_match): Don't check adstyle here.
15328 (font_matches_spec): Check here against physical font instead.
15329 (add_font_entity_to_list): Avoid some substitutions.
15331 * font.c (font_parse_fcname): Default weight and slant to normal.
15332 (font_score): Prefer normal fonts if weight or slant unspecified.
15333 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15334 match freetype scores.
15336 2008-02-01 Jason Rumney <jasonr@gnu.org>
15338 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15339 font, as it may have been deleted.
15340 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15341 most common hyphenless variation.
15342 (logfonts_match): Check generic family.
15343 (font_matches_spec): Don't check generic family here.
15344 (fill_in_logfont): Set generic family based on adstyle.
15346 * w32font.h (w32font_get_cache): Update declaration.
15348 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15350 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15352 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15353 If none of the new drivers are available, call font_update_drivers
15354 with the old drivers.
15356 * w32font.c (w32font_get_cache): Adjust the argument type.
15358 * xfont.c (xfont_get_cache): Adjust the argument type.
15360 * font.h (struct font_driver): Change argument type of get_cache.
15362 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15364 * font.c (Ffont_get): Fix arguments to Fassoc.
15365 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15366 (font_clear_cache): New function.
15367 (font_list_entities, font_matching_entity): Use font_get_cache.
15368 (font_update_drivers): Call font_clear_cache when finishing a driver.
15370 * fontset.c (fontset_find_font): Fix previous change.
15372 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15374 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15375 dpyinfo->font_table.
15376 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15377 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15379 * font.c (font_at): Handle the case that the arg C is negative.
15380 Handle the unibyte case.
15381 (Ffont_at): Call font_at with the arg C -1.
15383 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15384 the position here, and call font_at with the arg C -1.
15385 Don't check the range of the existing composition at the point.
15387 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15389 * fontset.c (fontset_add): New args charset_id and family.
15391 (load_font_get_repertory, fontset_find_font): Assume that
15392 font_spec is always a font-spec object.
15393 (Fset_fontset_font): Always store a font-spec object in a fontset.
15395 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15396 instead of get_property_and_range.
15398 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15400 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15401 (xftfont_open): Don't keep locking face.
15402 (xftfont_close): Don't unlock face.
15403 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15405 * fontset.c (fontset_find_font): Don't prefer a font of
15406 supplementary charset.
15408 2008-02-01 Kenichi Handa <handa@m17n.org>
15410 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15411 script, langsys_tag to langsys, new member script.
15412 (OTF_TAG_STR): Terminate by '\0'.
15413 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
15414 listing to the script specified in that property. Fix arg to
15415 OTF_check_features.
15417 2008-02-01 Jason Rumney <jasonr@gnu.org>
15419 * w32font.h: New file.
15421 * w32font.c: Include it.
15422 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15423 (w32font_open): Set owning_frame.
15424 (w32font_text_extents): Use owning_frame.
15425 (struct font_callback_data): Add opentype_only field.
15426 (add_font_entity_to_list): Use it to filter fonts.
15427 Don't check against full name.
15428 (w32font_list_internal): New function.
15429 (w32font_list): Use it.
15430 (w32font_match_internal): New function.
15431 (w32font_match): Use it.
15432 (w32font_open_internal): New function.
15433 (w32font_open): Use it.
15434 (w32font_get_cache, w32font_close, w32font_has_char)
15435 (w32font_encode_char, w32font_text_extents, w32font_draw):
15438 * makefile.w32-in (w32font.o): Depend on w32font.h.
15440 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15442 * charset.c (Fdefine_charset_internal): Record a supplementary
15443 charset at the tail of Vcharset_order_list.
15445 * font.c (Ffont_shape_text): Fix the return value.
15447 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15449 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15451 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15453 * ftfont.c (struct OpenTypeSpec): New struct.
15454 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15455 (ftfont_get_open_type_spec): New function.
15456 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15458 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15460 2008-02-01 Jason Rumney <jasonr@gnu.org>
15462 * w32font.c (add_font_entity_to_list): Compare only the beginning
15465 2008-02-01 Kenichi Handa <handa@m17n.org>
15467 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15468 Never return HANDLED_RECOMPUTE_PROPS.
15470 2008-02-01 Kenichi Handa <handa@m17n.org>
15472 * font.c (font_gstring_produce): Delete it.
15474 * composite.h (COMPOSITION_METHOD):
15475 Handle COMPOSITION_WITH_GLYPH_STRING.
15477 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15479 * xfont.c (Qx): Delete.
15480 (syms_of_xfont): Don't initialize Qx.
15482 * composite.h (enum composition_method):
15483 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15485 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15487 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15488 (choose_face_font): Accept new form of font-spec.
15490 * frame.h (font_driver_list): Declare it unconditionally.
15491 (struct frame): Define members font_driver_list and font_data_list
15494 * fontset.c: Include "font.h" unconditionally.
15495 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15496 (Fset_fontset_font): Accept a font-spec object.
15498 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15499 PIXEL_SIZE part a wild card.
15501 * dispextern.h (struct glyph_string): Define members clip and
15502 num_clips unconditionally.
15503 (struct face): Define members font_info and extra unconditionally.
15505 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15506 ftfont_info only when HAVE_LIBOTF is defined.
15508 2008-02-01 Andreas Schwab <schwab@suse.de>
15510 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15513 2008-02-01 Jason Rumney <jasonr@gnu.org>
15515 * w32font.c (w32font_driver): Add new fields.
15517 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15519 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15520 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15521 (LIBES): Add @M17N_FLT_CFLAGS@.
15523 * composite.c (compose_text): Don't treat the new style
15524 composition specially.
15526 * emacs.c (main): Call syms_of_font unconditionally.
15528 * font.h (FONT_ENTITY_NOT_LOADABLE)
15529 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15530 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15531 (struct font_driver): New member shape.
15532 (font_registry_charsets): Extern it.
15533 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15534 (font_otf_capability, font_drive_otf): Delete their externs.
15536 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15537 (font_charset_alist, font_registry_charsets): Move from xfont.c
15539 (font_prop_validate_otf): New function.
15540 (font_property_table): Register it for QCotf.
15541 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15542 (font_drive_otf): Delete.
15543 (font_prepare_composition): New arg F. Adjust for the change of
15545 (font_find_for_lface): New arg C.
15546 (font_load_for_face): Adjust for the change of font_find_for_lface.
15547 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15549 (Ffont_shape_text): New function.
15550 (Fopen_font): If the font size is not given, use 12-pixel.
15551 (Ffont_at): New arg STRING.
15552 (syms_of_font): Initalize font_charset_alist.
15553 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15556 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15557 fonts of the same font-spec. Change the format of RFONT-DEF.
15558 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15559 Adjust for the change of RFONT-DEF.
15560 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15562 * ftfont.h: New file.
15564 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15565 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15566 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15567 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15568 font_otf_capability and font_drive_otf, set ftfont_shape.
15569 (ftfont_list): Adjust for the change of :otf property value.
15570 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15571 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15572 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15573 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15574 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15575 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15577 * w32term.c (x_draw_composite_glyph_string_foreground):
15578 Adjust for the change of lispy gstring.
15580 * xdisp.c (handle_composition_prop): Adjust for the change of
15581 lispy gstring. Call a function for auto-composition with the
15582 third arg it->window.
15583 (fill_composite_glyph_string): Adjust for the change of lispy string.
15584 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15586 * xfaces.c (set_font_frame_param): Adjust for the change of
15587 font_find_for_lface.
15589 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15590 (xfont_registry_charsets): Likewise. Change caller.
15591 (syms_of_xfont): Don't handle x_font_charset_alist.
15593 * xftfont.c: Include "ftfont.h".
15594 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15595 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15596 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15597 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15598 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15599 Set xftfont_driver.shape to xftfont_shape.
15601 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15602 the change of lispy gstring.
15604 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15606 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15608 2008-02-01 Jason Rumney <jasonr@gnu.org>
15610 * w32font.c (w32font_draw): Fill background manually.
15612 2008-02-01 Jason Rumney <jasonr@gnu.org>
15614 * font.c (Qfontp): Remove unused symbol.
15615 (QCantialias): New symbol.
15616 (syms_of_font): Define it.
15617 (font_property_table): Set a validator for QCantialias.
15619 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15620 Define if not already.
15621 (QCfamily): Share with xfaces.c.
15622 (Qstandard, Qsubpixel, Qnatural): New symbols.
15623 (syms_of_w32font): Define them. Don't define QCfamily here.
15624 (w32_antialias_type, lispy_antialias_type): New functions.
15625 (w32_enumfont_pattern_entity): New arg requested_font.
15626 Set antialias parameter if non-default was requested.
15627 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15629 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15631 * lread.c (read1): Undo the previous change.
15633 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15635 * frame.c (Fdelete_frame): Call font_update_drivers only when
15636 USE_FONT_BACKEND is defined.
15638 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15640 * font.h (struct font_bitmap): New member bits_per_pixel.
15641 (struct font_driver): New members start_for_frame and end_for_frame.
15642 (struct font_data_list): New struct.
15643 (font_put_frame_data, font_get_frame_data): Extern them.
15645 * frame.h (struct frame): New member font_data_list.
15647 * font.c (font_update_drivers): Call driver->start_for_frame and
15648 driver->end_for_frame at proper timings.
15649 (font_put_frame_data, font_get_frame_data): New functions.
15650 (Ffont_spec): Add usage in the docstring.
15652 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15653 (Fdelete_frame): Call font_update_drivers.
15655 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15656 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15657 (xftfont_get_xft_draw): New function.
15658 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15659 (xftfont_end_for_frame): New function.
15660 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15662 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15663 Change argument. Cache GCs in the per-frame data.
15664 (struct ftxfont_frame_data): New struct.
15665 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15666 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15667 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15668 (ftxfont_end_for_frame): New function.
15669 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15671 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15673 2008-02-01 Kenichi Handa <handa@m17n.org>
15675 * xselect.c (Vselection_coding_system)
15676 (Vnext_selection_coding_system): Delete them.
15677 (syms_of_xselect): Don't declare selection-coding-system and
15678 next-selection-coding-system. They are declared in select.el.
15680 2008-02-01 Jason Rumney <jasonr@gnu.org>
15682 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15684 * w32fns.c: Include imm.h.
15685 (get_composition_string_fn, get_ime_context_fn): New optional
15687 (globals_of_w32fns): Load them from imm32.dll.
15688 (ignore_ime_char): New flag.
15689 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15690 WM_IME_ENDCOMPOSITION messages.
15692 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15693 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15695 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15697 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15698 (READCHAR_REPORT_MULTIBYTE): New macro.
15699 (readchar): New 2nd arg MULTIBYTE.
15700 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15701 Make symbol's name multibyte according to the multibyteness of the
15704 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15706 * xfaces.c (face_for_overlay_string): Call lookup_face with
15707 correct arguments (fix of synching with the trunk).
15709 2008-02-01 Kenichi Handa <handa@m17n.org>
15711 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15712 (font_prop_validate_non_neg, font_prop_validate_spacing):
15713 Delete argument prop_index.
15714 (font_property_table): Change arguments to validater. Change Callers.
15715 (font_lispy_object): Delete.
15716 (font_at): Use font_find_object instead fo font_lispy_object.
15718 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15720 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15723 2008-02-01 Jason Rumney <jasonr@gnu.org>
15725 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15726 (font_matches_spec): Remove debug output.
15727 (add_font_entity_to_list): Avoid using substituted fonts.
15729 2008-02-01 Jason Rumney <jasonr@gnu.org>
15731 * doc.c (Fsnarf_documentation):
15732 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15734 2008-02-01 Miles Bader <miles@gnu.org>
15736 * dispextern.h (struct glyph_row): Only define "clip" field if
15737 HAVE_WINDOW_SYSTEM is defined.
15739 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15741 Fix up multi-tty merge.
15743 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15746 * xfaces.c (free_realized_face, clear_face_gcs):
15747 Include font_done_for_face in the input_blocked section, just in case.
15749 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15750 (get_char_face_and_encoding): Undo last change and remove the *other*
15751 duplicate definition (i.e. keep the one that's better scoped and that
15752 includes code for the font-backend).
15754 * terminal.c (create_terminal): Default keyboard_coding to
15755 `no-conversion' and terminal_coding to `undecided'.
15757 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15759 * fontset.c (free_realized_fontsets): Check that the table entry does
15760 contain a fontset before trying to compare it to `base'.
15762 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15763 syms_of_charset, and syms_of_coding earlier because init_window_once
15764 now needs Vcoding_system_hash_table to be setup.
15766 * coding.h (default_buffer_file_coding): Remove.
15768 * coding.c (default_buffer_file_coding): Remove.
15769 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15770 than ->symbol, and use the terminal-local coding system.
15771 (syms_of_coding): Don't setup the coding-systems that are not
15773 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15775 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15776 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15778 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15779 in chartab.c and were re-added here by mistake.
15780 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15782 * doc.c (Fsnarf_documentation):
15783 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15786 * ChangeLog.10: Add mistakenly removed entry.
15788 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15790 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15792 2008-02-01 Miles Bader <miles@gnu.org>
15794 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15795 Add extra args to FACE_FOR_CHAR.
15797 2008-02-01 Kenichi Handa <handa@m17n.org>
15799 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15802 * chartab.c (map_sub_char_table, map_char_table): If the range
15803 contains just one character, call the function with that character
15804 even if the depth is not 3.
15806 2008-02-01 Jason Rumney <jasonr@gnu.org>
15808 * w32font.c (w32font_text_extents): Calculate metrics for the
15811 2008-02-01 Jason Rumney <jasonr@gnu.org>
15813 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15815 2008-02-01 Jason Rumney <jasonr@gnu.org>
15817 * w32term.c (x_set_glyph_string_clipping): Use
15818 get_glyph_string_clip_rects.
15819 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15820 Adjust for the change of struct glyph_string.
15822 * w32font.c (w32font_draw): Do clipping here.
15824 2008-02-01 Kenichi Handa <handa@m17n.org>
15826 * xftfont.c (xftfont_draw): Adjust for the change of struct
15829 * xterm.c (x_set_glyph_string_clipping): Use
15830 get_glyph_string_clip_rects.
15831 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15832 Adjust for the change of struct glyph_string.
15834 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15835 the resulting clip(s}.
15836 (expose_overlaps): Add arg r. Change callers. Set it to
15837 row->clip temporarily.
15838 (expose_window): Redraw rows overlapping the exposed area.
15840 * dispextern.h (struct glyph_row): New member clip.
15841 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15842 clip_height, new member clip, and num_clips.
15844 2008-02-01 Kenichi Handa <handa@m17n.org>
15846 * data.c (Fchar_or_string_p): Fix docstring.
15848 2008-02-01 Kenichi Handa <handa@m17n.org>
15850 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15851 create a temporary XftDraw object.
15853 2008-02-01 Kenichi Handa <handa@m17n.org>
15855 * font.c (Ffontp): Fix docstring.
15857 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15858 strong evidence of ISO-2022.
15860 2008-02-01 Kenichi Handa <handa@m17n.org>
15862 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15863 SYNTAX_ENTRY_FOLLOW_PARENT.
15865 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15867 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15869 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15870 Update to the new type of weak_hash_tables and next_weak.
15872 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15873 a plain C pointer to Lisp_Hash_Table.
15875 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15876 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15877 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15878 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15879 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15880 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15881 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15882 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15883 (GC_EQ): Remove since they've been identical to their non-GC_
15884 alter-egos ever since the markbit was eradicated.
15903 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15905 2008-02-01 Kenichi Handa <handa@m17n.org>
15907 * chartab.c (map_sub_char_table): Make it work for the top-level
15908 char-table. Fix handling of parent char-table.
15909 (map_char_table): Adjust for the above change.
15911 2008-02-01 Jason Rumney <jasonr@gnu.org>
15913 * w32font.c (Qgdi): Rename from Qw32.
15915 2008-02-01 Jason Rumney <jasonr@gnu.org>
15917 * w32bdf.c (get_quoted_string): Make function static.
15919 2008-02-01 Kenichi Handa <handa@m17n.org>
15921 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15922 bigger ascent and descent than those of the font, use them as
15923 font's ascent and descent.
15925 2008-02-01 Kenichi Handa <handa@m17n.org>
15927 * Makefile.in (${lispsource}international/charprop.el): Move this
15928 target within "#ifdef HAVE_UNIDATA" and "#endif".
15930 2008-02-01 Kenichi Handa <handa@m17n.org>
15932 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15933 (shortlisp): Add ../lisp/language/tai-viet.el.
15935 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
15937 * Makefile.in (${lispsource}international/charprop.el): Depend on
15940 2008-02-01 Jason Rumney <jasonr@gnu.org>
15942 * w32font.c (w32font_close): Delete the GDI font object.
15944 * w32menu.c: Include character.h.
15946 * w32proc.c: Likewise.
15948 * w32select.c: Likewise.
15950 * makefile.w32-in (w32proc.o): Depend on character.h.
15952 2008-02-01 Jason Rumney <jasonr@gnu.org>
15954 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15956 * w32menu.c (syms_of_w32menu): Likewise.
15958 * w32proc.c (syms_of_ntproc): Likewise.
15960 * w32select.c (syms_of_w32select): Likewise.
15962 * w32term.c (syms_of_w32term): Likewise.
15964 2008-02-01 Jason Rumney <jasonr@gnu.org>
15966 * w32font.c (w32font_draw): Delete brush after using it.
15968 2008-02-01 Jason Rumney <jasonr@gnu.org>
15970 * w32font.c (w32font_open): Don't set font_idx.
15971 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15973 (w32font_draw): Fill background explicitly.
15975 2008-02-01 Jason Rumney <jasonr@gnu.org>
15977 * w32term.c (w32_initialize): Don't call w32font_initialize.
15979 * w32font.c (w32font_info): Remove subranges.
15980 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15981 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15982 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15983 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15984 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15985 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15986 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15987 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15988 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15989 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15991 (font_callback_data): New struct.
15992 (w32font_list, w32font_match): Use it.
15993 (w32font_open): Don't populate subranges.
15994 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15995 (w32font_encode_char): Always return unicode code-point as-is.
15996 (w32font_text_extents): Supply a transformation matrix to
15997 GetGlyphOutline. Never look up by glyph index. Avoid looping
15998 twice. Use unicode version of GetTexExtentPoint32 instead of
15999 glyph index version.
16000 (set_fonts_frame): Remove.
16001 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16002 set frame parameter. Use backward compatible fake foundries.
16003 Save generic family in extra slot under QCfamily. Make width slot
16004 constant. Save QCspacing value. Save list of scripts instead of
16006 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16007 (add_font_entity_to_list): Use font_callback_data struct. Filter
16009 (add_one_font_entity_to_list): Use font_callback_data struct.
16010 (w32_registry): Default to iso10646_1.
16011 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16012 string font registries. Don't fill in font name if it is a generic
16013 family name, fill family instead. Use spacing, family and script
16014 extra info to fill pitch, family and charset fields.
16015 (list_all_matching_fonts): Use font_callback_data struct.
16016 (unicode_range_for_char): Remove.
16017 (font_supported_scripts): New function.
16018 (w32font_initialize): Remove.
16019 (syms_of_w32font): Update which symbols are defined.
16021 2008-02-01 Jason Rumney <jasonr@gnu.org>
16023 * font.c (font_pixel_size): Reverse assq_no_quit args.
16025 * w32term.h (FONT_WIDTH): Report max width, not average.
16026 (FONT_MAX_WIDTH): Remove.
16027 (FONT_AVG_WIDTH): New macro.
16029 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16030 redefinition of FONT_WIDTH.
16032 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16033 (w32_cache_char_metrics): Use FONT_WIDTH.
16035 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16037 2008-02-01 Jason Rumney <jasonr@gnu.org>
16039 * w32font.c (w32font_open): Make lfHeight negative.
16041 * w32fns.c (x_default_font_parameter): Use new style font name.
16042 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16044 2008-02-01 Jason Rumney <jasonr@gnu.org>
16046 * w32font.c (QCsubranges): New symbol.
16047 (w32font_open, w32font_has_char): Get subranges from subproperty
16049 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16050 (syms_of_w32font): Define :subranges symbol.
16052 * font.c (font_put_extra): Expose externally.
16054 * font.h (font_put_extra): Move declaration from font.c.
16056 * font.c (Ffont_get): Use font driver to determine otf capability.
16057 (adjust_anchor): Check if driver defines anchor_point before using.
16059 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16060 (w32font_draw): Use options.
16061 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16062 Fix detection of truetype fonts.
16063 (registry_to_w32_charset): Handle charsets other than iso8859-1
16064 expressed as lisp symbols.
16065 (w32_registry): Express charset as lisp symbol.
16066 (fill_in_logfont): Reverse pixel and point height logic.
16067 Don't set width here. Set quality to default.
16069 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16070 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16072 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16073 Remove redundant loop and allocation.
16075 * makefile.w32-in (font.o, w32font.o): New objects.
16076 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16077 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16079 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16080 STORE_XCHARB a valid l-value.
16082 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16083 calculations for non-Truetype fonts.
16084 (x_draw_glyph_string): Sync with xterm.c.
16085 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16086 Remove redundant code.
16087 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16089 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16090 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16092 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16093 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16095 * w32font.c: New file for w32 font backend.
16097 2008-02-01 Kenichi Handa <handa@m17n.org>
16099 * term.c: Don't include "buffer.h" twice.
16101 2008-02-01 Kenichi Handa <handa@m17n.org>
16103 * character.c (Funibyte_string): New function.
16104 (syms_of_character): Defsubr it.
16106 2008-02-01 Jason Rumney <jasonr@gnu.org>
16108 * w32term.c [USE_FONT_BACKEND]:
16109 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16110 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16111 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16112 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16113 (x_free_frame_resources): Sync with xterm.c.
16115 2008-02-01 Andreas Schwab <schwab@suse.de>
16117 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16120 2008-02-01 Kenichi Handa <handa@m17n.org>
16122 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16124 2008-02-01 Kenichi Handa <handa@m17n.org>
16126 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16127 font_otf_gpos, add font_drive_otf.
16129 * fontset.c (fontset_find_font): Pay attention to font size
16130 specified for a font.
16131 (reorder_font_vector): Check contents of font_def.
16133 * font.c (struct otf_list): Delete it.
16134 (otf_list): Make it a lisp variable.
16135 (otf_open): Use lispy otf_list.
16136 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16137 (check_otf_features): New function.
16138 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16140 (font_drive_otf): New function merging font_otf_gsub and
16142 (font_open_for_lface): New arg spec. Change argument order.
16143 (font_load_for_face): Adjust for the change of font_open_for_lface.
16144 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16146 (syms_of_font): Staticpro otf_list. Delete defsubr of
16147 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16149 * xfaces.c (set_font_frame_param): Adjust for the change of
16150 font_open_for_lface.
16152 * font.h (font_open_for_lface): Adjust prototype.
16153 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16155 (font_otf_gsub, font_otf_gpos): Delete externs.
16156 (font_drive_otf): Extern it.
16158 2008-02-01 Kenichi Handa <handa@m17n.org>
16160 * font.c (font_at): If the window W is not on a window system,
16163 * coding.c (produce_chars, encode_coding): Don't call
16164 insert_from_gap if no characters to produce.
16166 2008-02-01 Kenichi Handa <handa@m17n.org>
16168 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16171 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16173 2008-02-01 Miles Bader <miles@gnu.org>
16175 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16176 Parse "--disable-font-backend" option.
16177 (standard_args): Add "--disable-font-backend" option.
16179 2008-02-01 Kenichi Handa <handa@m17n.org>
16181 * fontset.c (fontset_find_font): New function.
16182 (fontset_font): Use fontset_find_font.
16183 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16184 Register the specified font for all Latin characters.
16185 (new_fontset_from_font): Register the specified font for all Latin
16187 (dump_fontset): For a realized fontset, include the base fontset
16188 name in the returned vector.
16190 2008-02-01 Kenichi Handa <handa@m17n.org>
16192 * character.h (CHAR_STRING): Cast C to unsigned on calling
16195 * character.c (char_string): Type of arg C changed to unsigned.
16196 Signal an error if C is an invalid character code.
16198 * editfns.c (general_insert_function, Fchar_to_string):
16199 Use CHARACTERP, not INTEGERP.
16201 2008-02-01 Kenichi Handa <handa@m17n.org>
16203 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16204 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16206 * regex.c (analyse_first): Fix for multibyte characters in "case
16207 charset:" and "case categoryspec:".
16209 2008-02-01 Andreas Schwab <schwab@suse.de>
16211 * Makefile.in (LIBES): Move standard libraries to the end.
16213 2008-02-01 Kenichi Handa <handa@m17n.org>
16215 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16216 nonzero, don't shrink the buffer nextb.
16218 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16220 * coding.c (coding_alloc_by_making_gap): New arg offset.
16221 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16223 (decode_coding_iso_2022): Update coding->safe_charsets.
16224 (decode_coding_gap): Temporarily set
16225 current_buffer->text->inhibit_shrinking to 1.
16227 2008-02-01 Kenichi Handa <handa@m17n.org>
16229 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16230 indexing into elements of s->cmp and s->char2b.
16232 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
16234 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16236 2008-02-01 Kenichi Handa <handa@m17n.org>
16238 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16239 target_multibyte instead of multibyte.
16240 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16241 (bcmp_translate): Change the argument name from multibyte to
16244 2008-02-01 Kenichi Handa <handa@m17n.org>
16246 These changes are to compile a regexp into a pattern that can be
16247 used both for multibyte and unibyte targets.
16249 * Makefile.in (search.o): Depend on charset.h.
16251 * character.c (multibyte_char_to_unibyte_safe): New function.
16253 * search.c: Include "charset.h".
16254 (compile_pattern_1): Delete argument multibyte. Don't set
16255 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16256 (compile_pattern): Don't compare cp->buf.target_multibyte.
16257 Compare cp->buf.charset_unibyte.
16258 (compile_pattern): Set cp->buf.target_multibyte.
16260 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16262 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16264 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16265 multibyte. Change callers.
16266 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16267 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16268 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16269 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16270 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16271 (regex_compile): Make the compiled pattern usable both for
16272 multibyte and unibyte targets.
16273 (analyse_first): Make the fastmap usable both for multibyte and
16275 (TRANSLATE_VIA_MULTIBYTE): Delete.
16276 (re_match_2_internal): Pay attention to the case that the
16277 multibyteness of bufp and target may be different.
16279 2008-02-01 Kenichi Handa <handa@m17n.org>
16281 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16282 empty box occupy at least one column width.
16284 2008-02-01 Miles Bader <miles@gnu.org>
16286 * Makefile.in: Remove redundant HAVE_XFT clause.
16288 2008-02-01 Kenichi Handa <handa@m17n.org>
16290 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16292 2008-02-01 Kenichi Handa <handa@m17n.org>
16294 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16297 2008-02-01 Kenichi Handa <handa@m17n.org>
16299 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16301 2008-02-01 Kenichi Handa <handa@m17n.org>
16303 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16305 2008-02-01 Kenichi Handa <handa@m17n.org>
16307 * search.c (simple_search): Fix previous change.
16309 2008-02-01 Kenichi Handa <handa@m17n.org>
16311 * xftfont.c (ftfont_font_format): Extern declaration.
16313 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16315 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16316 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16318 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16319 (ftfont_font_format): Fix previous change.
16321 * font.h (Ffont_xlfd_name): EXFUN it.
16323 * font.c (font_parse_xlfd): Fix the array size of `f'.
16324 (register_font_driver): Use EQ to compare driver->type.
16326 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16327 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16328 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16330 2008-02-01 Kenichi Handa <handa@m17n.org>
16332 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16333 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16335 2008-02-01 Kenichi Handa <handa@m17n.org>
16337 * xfont.c (xfont_open): Set font->format.
16339 * xftfont.c (xftfont_open): Set font->format.
16341 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16342 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16343 (ftfont_open): Set font->format.
16344 (ftfont_font_format): New function.
16346 * font.h (struct font): New member format.
16348 * font.c (Qopentype): New variable.
16349 (syms_of_font): Defsym it.
16350 (Fquery_font): Change the format of the last element of the return
16353 2008-02-01 Kenichi Handa <handa@m17n.org>
16355 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16358 2008-02-01 Kenichi Handa <handa@m17n.org>
16360 * coding.c (detect_coding_charset): Fix detection of multi-byte
16363 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16365 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16367 2008-02-01 Kenichi Handa <handa@m17n.org>
16369 * xdisp.c (get_next_display_element): Set it->face_id for the
16370 first component of a composition.
16371 (x_produce_glyphs): Check if the font is changed or not for composition.
16373 2008-02-01 Kenichi Handa <handa@m17n.org>
16375 * fontset.c (Qlatin): New variable.
16376 (syms_of_fontset): Define it as a lisp symbol.
16377 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16379 2008-02-01 Kenichi Handa <handa@m17n.org>
16381 * font.c (font_unparse_fcname): Pay attention to the case that
16382 some of font property is a null string.
16384 2008-02-01 Kenichi Handa <handa@m17n.org>
16386 * term.c: Include "composite.h".
16387 (encode_terminal_code): Output all components of composition.
16388 Check the size of encode_terminal_src.
16389 (produce_glyphs): For composition, call produce_composite_glyph.
16390 (append_composite_glyph, produce_composite_glyph): New functions.
16392 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16393 is not found, get font_info from the current ascii face.
16395 2008-02-01 Kenichi Handa <handa@m17n.org>
16397 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16398 buffer-file-name to Qnil before calling insert_from_buffer.
16400 * font.c (font_unparse_fcname): Pay attention to the case that
16401 foundry is a null string.
16403 2008-02-01 Kenichi Handa <handa@m17n.org>
16405 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16407 * font.c (Qunicode_sip): New variable.
16408 (syms_of_font): Declare it as a Lisp symbol.
16410 * font.h (Qunicode_sip): Extern it.
16412 2008-02-01 Kenichi Handa <handa@m17n.org>
16414 * composite.c (get_composition_id): Pay attention to TAB component.
16416 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16417 TAB. Adjust for the change of s->char2b which always points to
16418 the first element of allocated memory.
16420 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16422 * xdisp.c (handle_composition_prop): Set it->c to the first
16424 (fill_composite_glyph_string): Change argument.
16425 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16426 (x_produce_glyphs): Fix handling of left/right padding.
16428 2008-02-01 Kenichi Handa <handa@m17n.org>
16430 * coding.c (detect_coding_system): Fix for handling off
16431 inhibit_iso_escape_detection. Fix for the case that no coding
16432 system is defined for a specific coding category.
16434 2008-02-01 Kenichi Handa <handa@m17n.org>
16436 * font.c (font_matching_entity): Delete unused local var.
16438 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16441 * fileio.c (Finsert_file_contents): On recovering a file, assume
16443 (choose_write_coding_system): On auto-saving a file, force
16446 * coding.c (setup_coding_system): Fix setting of
16447 coding->common_flags based on eol_type.
16448 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16451 2008-02-01 Kenichi Handa <handa@m17n.org>
16453 * alloc.c (NSTATICS): Increas to 0x600.
16455 2008-02-01 Kenichi Handa <handa@m17n.org>
16457 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16458 (ftfont_list): Don't check :name property.
16459 (ftfont_match): New function.
16460 (ftfont_pattern_entity): If the pattern doesn't contain
16461 FC_SPACING, don't assume FC_MONO.
16463 * font.h (struct font_driver): New member `match'.
16464 (font_update_drivers): Adjust prototype.
16466 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16468 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16469 them unconditionally.
16470 (font_matching_entity): New function.
16471 (font_open_by_name): Try font_matching_entity if exact match is
16473 (font_update_drivers): Delete the arg FONT. Return a list of
16474 actually used backends. Don't free faces, font caches here.
16475 Don't store data in frame parameters. Don't call x_set_font.
16476 (Ffont_spec): Store :name property as is.
16477 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16478 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16479 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16480 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16481 Call font->driver->otf_gsub instead of font_otf_gsub.
16483 * frame.c (x_set_font_backend): Do more works that were done in
16484 font_update_drivers before.
16486 * xfont.c (xfont_match): New function.
16487 (xfont_driver): Set xfont_driver.match to xfont_match.
16488 (xfont_draw): Set font in GC if necessary.
16490 * ftxfont.c (ftxfont_match): New function.
16491 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16493 * xftfont.c (xftfont_match): New function.
16494 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16496 2008-02-01 Kenichi Handa <handa@m17n.org>
16498 * font.h (struct font): New member scalable.
16499 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16500 (font_otf_gsub): Adjust prototype.
16502 * font.c (font_otf_capability): Fix handling of the default langsys.
16503 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16504 Check the contents of SPEC.
16505 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16506 (check_gstring): New function.
16507 (REPLACEMENT_CHARACTER): New macro.
16508 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16509 glyph codes of GSTRING.
16510 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16511 (font_prepare_composition): Set cmp->glyph_len.
16512 (font_open_entity): Set font->scalable.
16513 (Ffont_get): Handle :otf property.
16514 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16516 (Fquery_font): Use font->font.full_name.
16517 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16518 Sfont_otf_alternates.
16520 * ftfont.c (ftfont_open): Set font->font.full_name and
16521 font->font.name properly. Fix calculation of font->font.height
16522 and font->min_width.
16524 * ftxfont.c (ftxfont_create_gcs): New function.
16525 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16526 (ftxfont_draw_backgrond): Fix filling region.
16527 (ftxfont_default_fid): New function.
16528 (ftxfont_open): Set xfont->fid to the return value of
16529 ftxfont_default_fid.
16530 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16531 (ftxfont_done_face): Free only GCs that are created by
16532 ftxfont_create_gcs.
16533 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16535 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16536 Clip to src->width, etc (not src->clip_XXX).
16538 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16539 FontBackend frame parameter.
16541 2008-02-01 Kenichi Handa <handa@m17n.org>
16543 * font.h (struct font_driver_list): New member `on'.
16544 (Fclear_font_cache): EXFUN it.
16545 (font_update_drivers): Extern it.
16547 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16548 (font_list_entities): Check driver_list->on.
16549 (register_font_driver): Initalize `on' member to 0.
16550 (font_update_drivers): New function.
16551 (Fclear_font_cache): Check driver_list->on.
16553 * frame.h (Qfont_backend): Extern it.
16554 (x_set_font_backend): Extern it.
16556 * frame.c (Qfont_backend): New variable.
16557 (frame_parms): New element for font-backend.
16558 (x_set_font_backend): New function.
16560 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16561 FontBackend frame parameter.
16562 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16563 x_set_font_backend.
16565 * xfont.c (xfont_list): Don't try listing by :name property if the
16566 name is not for XLFD.
16568 2008-02-01 Kenichi Handa <handa@m17n.org>
16570 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16571 (LGLYPH_SET_TO): New macros.
16572 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16573 element of G is vector or not.
16574 (font_at): Extern it.
16576 * font.c: Include window.h.
16577 (font_lispy_object): New function.
16578 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16579 end of valid glyph.
16580 (font_close_object): Fix getting (struct font *).
16581 (font_at): New function.
16582 (Ffont_get): If FONT is a font-object, get entity from it.
16583 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16584 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16586 (Ffont_at): New function.
16587 (syms_of_font): Defsubr Sfont_at.
16589 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16590 before the entry for Qcomposition.
16591 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16592 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16593 the font in gstring.
16594 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16595 LGLYPH_FORM (g) to detect the end of valid glyph.
16596 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16597 we are composing with gstring.
16599 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16600 Check if adjustment is vector or not.
16602 * Makefile.in (font.o): Make it depends on window.h.
16604 2008-02-01 Kenichi Handa <handa@m17n.org>
16606 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16607 adjustment is vector or not.
16609 2008-02-01 Miles Bader <miles@gnu.org>
16611 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16613 2008-02-01 Kenichi Handa <handa@m17n.org>
16615 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16616 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16617 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16619 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16620 (DEVICE_DELTA): Fix typo.
16621 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16624 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16625 the change of LGLYPH format.
16627 2008-02-01 Kenichi Handa <handa@m17n.org>
16629 * ftfont.c (ftfont_list): Fix typo.
16630 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16632 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16634 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16636 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16637 xftface_info is non-NULL.
16639 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16641 * ftfont.c (ftfont_list): Move misplaced #endif.
16643 2008-02-01 Kenichi Handa <handa@m17n.org>
16645 * ftfont.c (ftfont_list): Pay attention to the case that
16646 FC_CAPABILITY is not defined.
16648 2008-02-01 Kenichi Handa <handa@m17n.org>
16650 * xftfont.c (xftfont_open): Set charset related members to -1.
16652 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16654 (ftfont_open): Set charset related members to -1.
16656 * fontset.c (Votf_script_alist): New variable.
16657 (syms_of_fontset): Initialize it.
16658 (fontset_font): Delete unused variable.
16660 * fontset.h (Votf_script_alist): Extern it.
16662 * font.c (font_find_for_lface): Optimize code.
16664 * font.h (font_close_object, font_merge_old_spec): Extern them.
16666 2008-02-01 Kenichi Handa <handa@m17n.org>
16668 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16669 (syms_of_font): Initialize them.
16670 (font_pixel_size): Allow float value in dpi.
16671 (font_prop_validate_type): Delete.
16672 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16674 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16675 (font_prop_validate_extra): Delete.
16676 (font_prop_validate_spacing): New function.
16677 (font_property_table): Add elements for all known properties.
16678 (get_font_prop_index): Rename from check_font_prop_name. New
16679 argument FROM. Change caller.
16680 (font_prop_validate): Validate all known properties.
16681 (font_put_extra): Delete argument force. Change caller.
16682 (font_expand_wildcards): Make it static. Fix the way of shrinking
16683 the possible range.
16684 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16685 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16687 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16688 (font_parse_fcname): Delete argument merge. Fix parsing of point
16689 size. Don't validate properties values here. Change caller.
16690 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16691 (font_open_by_name): Delete unused variable.
16692 (Ffont_spec): Likewise. Validate property values.
16693 (Ffont_match_p): New function.
16695 * font.h (QCscalable): Extern it.
16696 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16698 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16700 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16701 (xfont_list_pattern): New function.
16702 (xfont_list): Use xfont_list_pattern.
16704 2008-02-01 Kenichi Handa <handa@m17n.org>
16706 * font.h (Flist_fonts): EXFUN it.
16708 2008-02-01 Jason Rumney <jasonr@gnu.org>
16710 * w32term.c (w32_initialize): Add back smoothing_type and
16711 smoothing_enabled definitions.
16713 2008-02-01 Kenichi Handa <handa@m17n.org>
16715 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16716 s->face->font on determining underline position.
16718 2008-02-01 Kenichi Handa <handa@m17n.org>
16720 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16721 (font_has_char): Accept font-object too.
16722 (font_find_for_lface): Try at first with a size specified in face.
16724 2008-02-01 Kenichi Handa <handa@m17n.org>
16726 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16729 2008-02-01 Kenichi Handa <handa@m17n.org>
16731 * font.h (QCspacing, QCdpi): Extern them.
16732 (enum font_spacing): New enum.
16733 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16735 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16736 (QCspacing, QCdpi): New variables.
16737 (syms_of_font): Initialize them.
16738 (font_pixel_size): New function.
16739 (font_put_extra): New function.
16740 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16742 (font_parse_fcname): Handle enumerated values (e.g. bold).
16743 Fix handling font size. Add QCname property that contains only
16744 unknown properties.
16745 (font_score): Change argument. Change caller. Pay attention to
16746 FONT_PIXEL_SIZE_QUANTUM.
16747 (font_sort_entites, font_list_entities, font_find_for_lface)
16748 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16749 (Ffont_spec): Add QCname property that contains only unknown properties.
16751 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16752 include weight in listing pattern, instead check weight of each
16753 listed font. Don't include scalable in pattern. Pay attention to
16754 FONT_PIXEL_SIZE_QUANTUM.
16756 2008-02-01 Kenichi Handa <handa@m17n.org>
16758 * font.c (font_parse_fcname): Fix parsing of point-size.
16759 (font_unparse_fcname): Produce symbolic names for style properties.
16760 (font_list_entities): Handle float size correctly.
16761 (font_open_by_name): Prefer `normal' property values if the name
16762 doesn't specify them.
16764 * fontset.c (Finternal_char_font): Use font_get_name, not
16767 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16768 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16769 pattern. Don't force scalable.
16771 * xftfont.c (xftfont_open): For generating a name, start from
16774 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16776 * frame.h (x_new_fontset2): Fix prototype.
16778 2008-02-01 Kenichi Handa <handa@m17n.org>
16780 * font.h (struct font_driver): Delete member parse_name.
16781 (font_match_p, font_get_spec, font_parse_fcname)
16782 (font_unparse_fcname): Extern them.
16783 (font_get_name): Adjust prototype.
16785 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16786 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16787 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16788 unnecessary checks for weight, slant, and swidth.
16789 (font_parse_fcname): New function.
16790 (font_unparse_fcname): New function.
16791 (font_parse_name): New function.
16792 (font_match_p): New function.
16793 (font_get_name): Change return value to Lisp string.
16794 (font_get_spec): New function.
16795 (Qunspecified, Qignore_defface): Don't extern them.
16796 (font_find_for_lface): Assume that LFACE is fully specified.
16797 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16798 object, use it for FACE.
16799 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16800 driver->parse_name.
16801 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16803 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16806 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16807 argument F. Don't call Fnew_fontset. Instead, directly call
16810 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16812 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16815 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16816 (Qsans__serif): New variables.
16817 (ftfont_generic_family_list): New variable.
16818 (syms_of_ftfont): Initialize the above variables.
16819 (ftfont_pattern_entity): Delete argument NAME.
16820 (ftfont_list_generic_family): New function.
16821 (ftfont_parse_name): Delete this function.
16822 (ftfont_list): Try generic family only when FcFontList found no font.
16823 (ftfont_list_family): Fix args to FcObjectSetBuild.
16825 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16826 object in attrs[LFACE_FONT_INDEX].
16827 (set_lface_from_font_name): Cancel all changes for font-backend.
16828 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16830 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16831 font object in QCfont attribute.
16832 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16833 (realize_default_face) [USE_FONT_BACKEND]: Call
16834 set_lface_from_font_and_fontset.
16836 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16837 "fixed", and signal error here if no suitable font was found.
16839 * xfont.c (xfont_parse_name): Delete this function.
16841 * xftfont.c (xftfont_open): Change coding style of error
16842 handling. Generate fontconfig's fontname pattern.
16844 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16845 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16847 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16848 Both args FONTSET and FONT_OBJECT must be existing ones.
16850 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16852 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16854 2008-02-01 Kenichi Handa <handa@m17n.org>
16856 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16858 * font.h (struct font): Fix typo.
16860 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16862 (enum xlfd_field_mask): New enum.
16863 (intern_font_field): Changed argument. Change caller. If digits
16864 are followed by non-digits, return a symbol.
16865 (font_expand_wildcards): New function.
16866 (font_parse_xlfd): Fix wildcard handling.
16867 (Ffont_spec): If :name is specified, reflect the info in the other
16870 * ftfont.c (ftfont_pattern_entity): Fix typo.
16871 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16874 2008-02-01 Kenichi Handa <handa@m17n.org>
16876 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16878 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16879 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16880 registry doesn't specify encoding part.
16881 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16882 (font_open_by_name): At first try parsing the name.
16883 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16886 * fontset.c (reorder_font_vector): Pay attention to the case that
16887 the 3rd element of font_def is nil.
16888 (fontset_font): For the default fontset, append one more fontset
16889 elements for a script-based font specification. Don't add script
16890 attribute on finding a font.
16891 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16893 (fontset_ascii_font): If a font can't be opened, return nil.
16895 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16896 (ftfont_pattern_entity): New function.
16897 (ftfont_get_cache): Assume that freetype_font_cache is already
16899 (ftfont_list): Handle the case that a file is specified in font
16900 name. Use ftfont_pattern_entity to generate entities.
16901 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16902 (syms_of_ftfont): Initialize freetype_font_cache.
16904 * xftfont.c (xftfont_open): Make the font name fontconfig's
16905 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16906 (xftfont_close): Free font->font.name if not NULL.
16908 * xfont.c (xfont_list): If script is specified for a font, return
16910 (xfont_list_family): Declare argument type.
16912 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16913 name, set LFACE_FONT (lface) to nil.
16915 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16918 2008-02-01 Kenichi Handa <handa@m17n.org>
16920 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16921 (standard_args): Add "-enable-font-backend".
16923 2008-02-01 Kenichi Handa <handa@m17n.org>
16925 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16926 (struct xftdraw_list, xftdraw_list): Delete them.
16927 (register_xftdraw, check_xftdraw): Delete them.
16928 (xftfont_prepare_face): Don't call register_xftdraw.
16929 (xftfont_done_face): Don't call check_xftdraw.
16930 (xftfont_draw): Get background color only when with_background is
16933 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16935 2008-02-01 Kenichi Handa <handa@m17n.org>
16937 These changes are for the new font handling codes.
16939 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16940 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16941 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16942 (FONTSRC, FONTOBJ): New variables.
16943 (obj): Add $(FONTOBJ).
16944 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16945 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16947 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16948 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16950 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16952 * character.h (Vscript_representative_chars): Extern it.
16954 * character.c (Vscript_representative_chars): New variable.
16955 (syms_of_character): Declare it as a Lisp variable.
16957 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16958 enable_font_backend is nonzero, accept the composition method
16959 COMPOSITION_WITH_GLYPH_STRING.
16961 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16962 enumeration COMPOSITION_WITH_GLYPH_STRING.
16964 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16965 members clip_x, clip_y, clip_width, and clip_height.
16966 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16968 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16969 --enable-font-backend. Call syms_of_font.
16971 * fns.c (assoc_no_quit): New function.
16973 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16974 (face_for_font, new_fontset_from_font)
16975 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16977 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16978 (fontset_font, fontset_ascii, face_for_char)
16979 (make_fontset_for_ascii_face, Ffont_info)
16980 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16981 is nonzero, use font-backend mechanism.
16982 (find_font_encoding): Make it non-static.
16983 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16986 * frame.h (struct frame): New members resx and resy.
16987 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16988 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16990 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16991 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16993 * lisp.h (assoc_no_quit): Extern it.
16995 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16996 Through out the file, use FONT_INFO_FROM_FACE instead of
16997 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16998 rif->per_char_metric.
16999 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17000 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17001 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17002 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17003 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17004 nonzero, use font-backend mechanism.
17005 (get_per_char_metric): New function.
17007 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17008 (set_lface_from_font_name)
17009 (set_font_frame_param, free_realized_face)
17010 (prepare_face_for_display, clear_face_gcs)
17011 (Finternal_set_font_selection_order, realize_x_face)
17012 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17013 font-backend mechanism.
17014 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17015 (load_face_font) [USE_FONT_BACKEND]: Abort.
17016 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17017 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17019 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17020 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17021 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17022 nonzero, register all available font drivers. Call
17023 x_default_font_parameter for deciding a font.
17024 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17026 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17027 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17028 (x_set_glyph_string_clipping_exactly)
17029 (x_compute_glyph_string_overhangs)
17030 (x_draw_glyph_string_foreground)
17031 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17032 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17033 enable_font_backend is nonzero, use font-backend mechanism.
17034 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17036 2008-02-01 Kenichi Handa <handa@m17n.org>
17038 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17040 (syms_of_coding): Initialize system_eol_type.
17042 * process.c (Fset_process_coding_system): Inherit system's eol
17043 format if necessary.
17045 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17047 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17049 2008-02-01 Kenichi Handa <handa@m17n.org>
17051 * coding.c (decode_eol): Pay attention to buffer relocation in
17053 (decode_coding): Call decode_eol before restoring undo_list.
17055 2008-02-01 Kenichi Handa <handa@m17n.org>
17057 * charset.c (Fdefine_charset_internal): Fix setting of
17060 2008-02-01 Kenichi Handa <handa@m17n.org>
17062 * keyboard.c (read_char): Check if C is a character or not before
17063 looking up Vkeyboard_translate_table.
17065 2008-02-01 Kenichi Handa <handa@m17n.org>
17067 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17068 condition to terminate the loop.
17070 2008-02-01 Kenichi Handa <handa@m17n.org>
17072 * coding.c (produce_composition): Compare charbuf[i] instead of
17074 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17076 2008-02-01 Kenichi Handa <handa@m17n.org>
17078 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17079 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17080 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17082 (emacs_mule_char): Handle old style (Emacs 20) component character
17084 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17085 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17087 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17089 2008-02-01 Kenichi Handa <handa@m17n.org>
17091 * coding.c (encode_coding_ccl): Allocate destination dynamically
17094 2008-02-01 Kenichi Handa <handa@m17n.org>
17096 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17097 the loop. When quitted, show a proper error message.
17099 2008-02-01 Kenichi Handa <handa@m17n.org>
17101 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17102 src->clip_head and src->clip_tail temporarily instead of src->hl.
17104 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17105 character sequence.
17106 (Fccl_execute_on_string): Use ASET, not XSET.
17108 2008-02-01 Kenichi Handa <handa@m17n.org>
17110 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17112 2008-02-01 Kenichi Handa <handa@m17n.org>
17114 * coding.c (decode_coding): Fix the condition of terminating the
17117 2008-02-01 Kenichi Handa <handa@m17n.org>
17119 * data.c (Faset): On setting a character bigger than 255 in a
17120 unibyte string, signal an error instead of make the string multibyte.
17122 2008-02-01 Kenichi Handa <handa@m17n.org>
17124 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17125 made by a mapping table.
17127 2008-02-01 Kenichi Handa <handa@m17n.org>
17129 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17131 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17132 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17134 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17135 s->face is NULL or not.
17137 2008-02-01 Kenichi Handa <handa@m17n.org>
17139 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17140 (x_draw_glyph_string): Fix drawing of right_overhang and
17141 left_overhang around/on cursor.
17143 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17145 2008-02-01 Kenichi Handa <handa@m17n.org>
17147 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17149 2008-02-01 Kenichi Handa <handa@m17n.org>
17151 * coding.c (Fdefine_coding_system_internal)
17152 (Fdefine_coding_system_alias): Avoid a duplicated element in
17153 Vcoding_system_alist.
17155 2008-02-01 Kenichi Handa <handa@m17n.org>
17157 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17159 * coding.c (Qcoding_system_define_form): New variable.
17160 (syms_of_coding): Intern and staticpro it.
17161 (Fcoding_system_p): Check Qcoding_system_define_form.
17162 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17164 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17166 (CHECK_CODING_SYSTEM): If ID is not available, call
17167 Fcheck_coding_system.
17168 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17169 Try also Fcheck_coding_system.
17171 2008-02-01 Kenichi Handa <handa@m17n.org>
17173 * coding.c (code_conversion_restore): GCPRO arg.
17175 2008-02-01 Kenichi Handa <handa@m17n.org>
17177 * character.c (lisp_string_width): Check multibyteness of STRING.
17179 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17181 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17182 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17183 (decode_mac_font_name): Use decode_coding_c_string instead of
17185 (x_load_font): Initialize fontp->fontset to -1. Set
17186 fontp->encoding_type.
17188 2008-02-01 Kenichi Handa <handa@m17n.org>
17190 * search.c (search_buffer): Give up BM search on case-fold-search
17191 if one of a target character has a case-equivalence of different
17192 byte length even if that target charcter is an ASCII.
17193 (simple_search): Fix calculation of byte length of matched text.
17194 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17196 2008-02-01 Kenichi Handa <handa@m17n.org>
17198 * coding.c (decode_coding): Fix handling of invalid bytes.
17200 2008-02-01 Kenichi Handa <handa@m17n.org>
17202 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17203 Unicode characters.
17205 2008-02-01 Kenichi Handa <handa@m17n.org>
17207 * coding.c (encode_coding_object): If a pre-write-conversion
17208 function makes a new buffer, kill it.
17210 2008-02-01 Kenichi Handa <handa@m17n.org>
17212 * coding.c (QCascii_compatible_p): New variable.
17213 (syms_of_coding): Initialize it.
17214 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17215 calling string_char.
17216 (record_conversion_result): Add `default:' case.
17217 (coding_charset_list): Delete unused variable `coding_type'.
17218 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17219 property in the plist of the coding system.
17220 (Fcoding_system_put): Check QCascii_compatible_p.
17222 2008-02-01 Miles Bader <miles@gnu.org>
17224 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17225 removed calculation of frame `f', as it's now used.
17227 2008-02-01 Kenichi Handa <handa@m17n.org>
17229 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17230 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17231 (UNIDATA): New variable.
17232 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17233 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17234 $(RUN_TEMACS) unconditionally.
17236 2008-02-01 Kenichi Handa <handa@m17n.org>
17238 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17239 (admindir): New variable.
17240 ($(lispsource)international/charprop.el): New target.
17242 2008-02-01 Miles Bader <miles@gnu.org>
17244 * character.c (chars-in-region): Remove obsolete function.
17245 (syms_of_character): Remove its initialization.
17247 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17249 * w32select.c (validate_coding_system)
17250 (setup_windows_coding_system): New functions.
17251 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17252 setup_windows_coding_system.
17253 (setup_config, Fw32_get_clipboard_data): Use
17254 validate_coding_system.
17255 (Fx_selection_exists): Move call to setup_config to a place
17256 where signals are allowed.
17258 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17259 (Fcheck_coding_system): Add declarations.
17261 2008-02-01 Kenichi Handa <handa@m17n.org>
17263 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17265 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17267 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17268 string as the second argument for x_new_fontset.
17270 2008-02-01 Kenichi Handa <handa@m17n.org>
17272 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17273 (encode_coding_object): Use safe_call instead of call2.
17275 2008-02-01 Kenichi Handa <handa@m17n.org>
17277 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17279 * Makefile.in (lisp): Include charprop.el.
17281 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17283 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17284 Not sure if it's unnecessary.
17286 2008-02-01 Steven Tamm <steventamm@mac.com>
17288 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17289 some possibly unnecessary fontset checking code that crashed
17290 when creating a new frame.
17292 2008-02-01 Kenichi Handa <handa@m17n.org>
17294 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17297 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17299 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17301 2008-02-01 Kenichi Handa <handa@m17n.org>
17303 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17304 (coding_charset_list): New function.
17306 * coding.h (coding_charset_list): Extern it.
17308 2008-02-01 Kenichi Handa <handa@m17n.org>
17310 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17311 concatenation of family and registry.
17313 2008-02-01 Kenichi Handa <handa@m17n.org>
17315 * character.h (BYTE8_STRING): Fix typo.
17317 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17318 string to multibyte (sync to HEAD).
17320 * casefiddle.c (casify_region): Handle changes in byte-length
17321 using replace_range_2 (sync to HEAD).
17323 2008-02-01 Andreas Schwab <schwab@suse.de>
17325 * chartab.c (map_char_table): GCPRO table and arg.
17327 2008-02-01 Kenichi Handa <handa@m17n.org>
17329 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17332 2008-02-01 Kenichi Handa <handa@m17n.org>
17334 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17335 instead of fast_c_string_match_ignore_case.
17336 (find_font_encoding): Change argument to Lisp_Object. Use
17337 fast_string_match_ignore_case instead of
17338 fast_c_string_match_ignore_case. Change caller.
17340 2008-02-01 Kenichi Handa <handa@m17n.org>
17342 * xdisp.c (get_next_display_element): In unibyte case, decide to
17343 display in octal form by checking a character by
17344 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17346 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17348 * character.c (unibyte_has_multibyte_table): New variable.
17350 * character.h (unibyte_has_multibyte_table): Extern it.
17351 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17353 2008-02-01 Kenichi Handa <handa@m17n.org>
17355 * coding.c (encode_coding_iso_2022): Fix handling of charset
17358 2008-02-01 Kenichi Handa <handa@m17n.org>
17360 * coding.c (setup_coding_system): If coding_system is nil, use
17362 (Fterminal_coding_system): Return nil if terminal coding system is
17364 (syms_of_coding): Define coding-system `undecided' here. Setup
17365 terminal_coding as `undecided'.
17367 2008-02-01 Kenichi Handa <handa@m17n.org>
17369 * xdisp.c (message_dolog, set_message_1): Call
17370 unibyte_char_to_multibyte with arg type int.
17372 * lread.c (read1): Fix reading of a char-table.
17374 * print.c (print_object): Include sub char-table in circularities
17377 2008-02-01 Kenichi Handa <handa@m17n.org>
17379 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17380 Append the found sequences in car of ARGS instead of prepending.
17382 2008-02-01 Kenichi Handa <handa@m17n.org>
17384 * fileio.c (report_file_error): Make a unibyte string from
17385 strerror (errorno).
17386 (Fsubstitute_in_file_name): Fix the arg to
17387 unibyte_char_to_multibyte. It is evaluated twice.
17389 2008-02-01 Kenichi Handa <handa@m17n.org>
17391 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17393 2008-02-01 Kenichi Handa <handa@m17n.org>
17395 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17397 (detect_coding, detect_coding_system): Optimization for ISO-2022
17398 when no 8-bit data is found.
17400 2008-02-01 Jason Rumney <jasonr@gnu.org>
17402 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17404 2008-02-01 Kenichi Handa <handa@m17n.org>
17406 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17409 2008-02-01 Steven Tamm <steventamm@mac.com>
17411 * macterm.c (mac_encode_char): Add charset argument and update
17412 to use encoding_type.
17413 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17414 switch to pure fontset.
17415 (decode_mac_font_name): Temporarily remove decoding.
17416 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17417 (x_load_font): Temporarily remove encoding.
17419 2008-02-01 Kenichi Handa <handa@m17n.org>
17421 * xfaces.c (Fface_font): If frame is not on a window system,
17422 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17423 refer to face->font.
17424 (split_font_name_into_vector, build_font_name_from_vector)
17425 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17426 when HAVE_WINDOW_SYSTEM is defined.
17428 2008-02-01 Kenichi Handa <handa@m17n.org>
17430 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17431 (x_produce_glyphs): Fix setting of members of cmp in case
17432 cmp->glyph_len is zero.
17434 * fontset.c (Fset_fontset_font): Fix docstring.
17435 (Ffontset_info): Make it backward compatible. New arg ALL.
17437 2008-02-01 Kim F. Storm <storm@cua.dk>
17439 * process.c (read_process_output): Grow decoding_buf when needed;
17440 this could cause a crash in allocate_string and compact_small_strings.
17442 2008-02-01 Kenichi Handa <handa@m17n.org>
17444 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17446 2008-02-01 Kenichi Handa <handa@m17n.org>
17448 * coding.c (setup_coding_system): Set coding->common_flags
17449 correctly for raw-text.
17450 (consume_chars): On encoding unibyte text by raw-text, don't check
17452 (encode_coding): On encoding by raw-text, never use translation tables.
17454 * fileio.c (e_write): Short cut for the case of no encoding.
17456 2008-02-01 Kenichi Handa <handa@m17n.org>
17458 * coding.c (detect_coding, detect_coding_system): Delete unused
17461 2008-02-01 Kenichi Handa <handa@m17n.org>
17463 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17464 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17466 2008-02-01 Kenichi Handa <handa@m17n.org>
17468 * coding.c (Ffind_coding_systems_region_internal): Include
17469 raw-text and no-conversion in the result.
17471 2008-02-01 Kenichi Handa <handa@m17n.org>
17473 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17474 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17476 (font_def_arg, add_arg, from_arg, to_arg): New args.
17477 (set_fontset_font): Change argument.
17478 (Fset_fontset_font): Fix for the case that TARGET is a script
17479 name and charset name.
17480 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17482 2008-02-01 Kenichi Handa <handa@m17n.org>
17484 * fontset.c (fontset_font): Rename from fontset_face. Change return
17486 (face_suitable_for_char_p, face_for_char): Adjust for the change
17488 (make_fontset_for_ascii_face): Fix setting of the fontset element
17490 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17491 to get a font name.
17492 (Ffontset_info): Adjust for the change of fontset_font.
17494 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17496 * character.h (LEADING_CODE_LATIN_1_MIN)
17497 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17499 2008-02-01 Kenichi Handa <handa@m17n.org>
17501 * editfns.c (check_translation): New function.
17502 (Ftranslate_region_internal): Handle M:N mapping.
17504 2008-02-01 Kenichi Handa <handa@m17n.org>
17506 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17508 2008-02-01 Kenichi Handa <handa@m17n.org>
17510 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17512 (decode_coding_iso_2022): Fix handling of invalid designation.
17514 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17515 after calling code_conversion_save.
17517 2008-02-01 Kenichi Handa <handa@m17n.org>
17519 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17521 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17523 * fontset.c: Include "intervals.h".
17524 (fontset_face): Fix comparing of Lisp_Objects.
17525 (free_face_fontset, new_fontset_from_font_name): Fix
17526 Lisp_Object/int mixup.
17528 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17530 * coding.c: Add many prototypes for static functions.
17531 (get_translation_table): Allow max_lookup to be NULL.
17532 (decode_coding, Ffind_coding_systems_region_internal)
17533 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17534 get_translation_table with max_lookup NULL.
17536 2008-02-01 Kenichi Handa <handa@m17n.org>
17538 * coding.c (get_translation_table): Declare it as Lisp_Object.
17539 (LOOKUP_TRANSLATION_TABLE): New macro.
17540 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17541 instead of CHAR_TABLE_REF.
17543 2008-02-01 Kenichi Handa <handa@m17n.org>
17545 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17546 annotation data format.
17547 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17548 Change arguments FROM and TO to single argument NCHARS. Change caller.
17549 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17550 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17551 (decode_coding_ccl, decode_coding_charset): Pay attention to
17552 coding->charbuf_used.
17553 (get_translation): New function.
17554 (produce_chars): New arguments translation_table and last_block.
17555 Translate characters here. Return number of carryover chars.
17557 (produce_composition): New argument pos. Change caller.
17558 Adjust for the change of annotation data format.
17559 (produce_charset, produce_annotation): Likewise.
17560 (decode_coding, encode_coding): Don't call translate_chars.
17561 (consume_chars): New arg translation_table. Change caller.
17562 (translate_chars): Delete.
17563 (syms_of_coding): Make translation-table's number of extra slots 2.
17565 2008-02-01 Kenichi Handa <handa@m17n.org>
17567 * search.c (simple_search): Fix setting this_pos_byte in backward
17570 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17572 (detect_coding_ccl): Fix setting of the variable valids.
17574 2008-02-01 Kenichi Handa <handa@m17n.org>
17576 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17578 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17580 * editfns.c (Ftranslate_region_internal): Rename from
17581 Ftranslate_region. Accept a char-table in TABLE.
17582 (syms_of_editfns): Defsubr Stranslate_region_internal.
17584 * xfaces.c (set_lface_from_font_name): If a font is specified for
17585 a frame, generate a fontset from the font.
17586 (build_scalable_font_name): If the scalable font is requested for
17587 a specific size, don't change that size.
17588 (try_font_list): Try a scalable font also in the case that a
17589 pattern string is specified.
17591 2008-02-01 Kenichi Handa <handa@m17n.org>
17593 * xfaces.c (Fface_font): New optional arg CHARACTER.
17595 2008-02-01 Kenichi Handa <handa@m17n.org>
17597 * charset.h (CHARSET_OFFSET): New macro.
17599 2008-02-01 Kenichi Handa <handa@m17n.org>
17601 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17603 * fontset.c (fontset_face): Handle the case that repertory is a
17605 (find_font_encoding): Return nil for unknown encoding.
17606 (Fset_fontset_font): Ignore a font of unknown encoding.
17608 2008-02-01 Kenichi Handa <handa@m17n.org>
17610 * keymap.c (describe_vector): Handle default value of a char table.
17612 * fontset.c (fontset_face): Handle fallback fonts correctly.
17613 (Ffontset_info): Return infomation about fallback fonts.
17615 2008-02-01 Kenichi Handa <handa@m17n.org>
17617 * fontset.c (FONTSET_DEFAULT): New macro.
17618 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17619 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17620 the case that it is nil.
17621 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17622 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17624 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17625 subset or superset.
17627 2008-02-01 Kenichi Handa <handa@m17n.org>
17629 * emacs.c (main): Call init_charset after syms_of_XXX.
17631 * charset.c (Vcharset_map_directory): Delete.
17632 (Vcharset_map_path): New variable.
17633 (load_charset_map_from_file): Use Vcharset_map_path instead.
17634 (init_charset): Initialize Vcharset_map_path.
17635 (syms_of_charset): Delete declaration of "charset-map-directory",
17636 add declaration of "charset-map-path".
17638 2008-02-01 Kenichi Handa <handa@m17n.org>
17640 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17643 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17645 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17646 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17648 2008-02-01 Kenichi Handa <handa@m17n.org>
17650 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17652 * coding.c (QCmnemonic, QCdefalut_char)
17653 (QCdecode_translation_table, QCencode_translation_table)
17654 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17655 (get_translation_table): Return a list of translation tables if
17657 (decode_coding): Call get_translation_table with ENCODEP 0.
17658 (char_encodable_p): If translation_table is non-nil, always call
17660 (Fdefine_coding_system_internal): Accept list of translation
17661 tables as :encode-translation-table and :decode-translation-table.
17662 (Fcoding_system_put): New function.
17663 (syms_of_coding): Declare new symbols. Defsubr
17664 Scoding_system_put.
17665 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17666 typically JISX0212.
17668 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17669 when the charset is superset type.
17671 * character.c (translate_char): Accept list of translation tables.
17673 2008-02-01 Kenichi Handa <handa@m17n.org>
17675 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17676 (CODING_ATTR_TRANS_TBL): New macro.
17678 * coding.c (get_translation_table): New function.
17679 (translate_chars): Fix the bug of skipping annotation data.
17680 (decode_coding, encode_coding): Utilize get_translation_table.
17681 (char_encodable_p, Funencodable_char_position): Translate char if
17683 (Ffind_coding_systems_region_internal)
17684 (Fcheck_coding_systems_region): Setup translation table for encode
17685 in a coding system attribute vector in advance.
17686 (Fdefine_coding_system_internal): Allow a symbol as translation
17687 table. For shift-jis type coding system, allow 4th charset.
17689 2008-02-01 Kenichi Handa <handa@m17n.org>
17691 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17693 * xdisp.c (get_next_display_element): Pass -1 as POS to
17694 FACE_FOR_CHAR if displaying a C-string.
17696 2008-02-01 Kenichi Handa <handa@m17n.org>
17698 * composite.c (get_composition_id): Handle xoff and yoff in a
17701 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17702 (struct composition): New member lbearing and rbearing.
17704 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17705 (x_get_glyph_overhangs): Handle a composition glyph.
17706 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17708 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17711 2008-02-01 Kenichi Handa <handa@m17n.org>
17713 * print.c: Include charset.h.
17714 (Vprint_charset_text_property): New variable.
17715 (Qdefault): Extern it.
17716 (PRINT_STRING_NON_CHARSET_FOUND)
17717 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17718 (print_check_string_result): New variable.
17719 (print_check_string_charset_prop): New function.
17720 (print_prune_charset_plist): New variable.
17721 (print_prune_string_charset): New function.
17722 (print_object): Call print_prune_string_charset if
17723 Vprint_charset_text_property is not t.
17724 (print_interval): Print nothing if interval->plist is nil.
17725 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17726 variable. Init and staticpro print_prune_charset_plist.
17728 2008-02-01 Kenichi Handa <handa@m17n.org>
17730 * fontset.c (new_fontset_from_font_name): Use the specified font
17731 for all characters in the new fontset.
17733 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17736 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17737 OBJECT args for composition too.
17739 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17742 2008-02-01 Kenichi Handa <handa@m17n.org>
17744 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17746 * fontset.c (reorder_font_vector): Adjust for the change of
17748 (fontset_face): New arg id. Change caller.
17749 (face_for_char): New args pos and object.
17750 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17751 (fs_query_fontset): Check NAME by Fassoc too.
17752 (Fset_fontset_font): Allow non-XLFD font name.
17753 (Ffontset_info): Adjust for the change of FONT_DEF format.
17755 * fontset.h (face_for_char): Adjust prototype.
17757 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17758 (append_space, extend_face_to_end_of_line)
17759 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17760 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17762 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17763 POS and OBJECT args.
17765 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17766 POS and OBJECT args.
17768 2008-02-01 Jason Rumney <jasonr@gnu.org>
17770 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17771 of GlobalAlloc'ed memory.
17773 2008-02-01 Kenichi Handa <handa@m17n.org>
17775 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17777 * charset.h (charset_table_used): Delete extern.
17779 * charset.c (charset_table_used): Make it static.
17780 (map_charset_chars): Fix args to c_function with.
17782 * chartab.c (map_sub_char_table_for_charset): Fix args to
17785 * coding.h (enum coding_result_code): Delete
17786 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17788 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17789 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17790 (Vlast_code_conversion_error): New variables.
17791 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17792 (ONE_MORE_BYTE): Record error if any instead of signaling an
17793 error. If non-ASCII multibyte char is found, return the negative
17794 value of the code. All callers changed to check it.
17795 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17796 (record_conversion_result): New function. Change all codes setting
17797 coding->result to call this function.
17798 (detect_coding_utf_8, decode_coding_utf_8)
17799 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17800 Don't use the local variable incomplete.
17801 (emacs_mule_char): Change the second arg to `const'.
17802 (decode_coding): Fix of flushing out unprocessed data.
17803 (make_conversion_work_buffer): Fix making of a work buffer.
17804 (decode_coding_object): Return coding->dst_object.
17806 * fontset.c (set_fontset_font): Fix args.
17808 * lisp.h (CHARACTERBITS): Define as 22.
17810 * process.c (send_process): Be sure to set coding->src_multibyte.
17812 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17814 2008-02-01 Kenichi Handa <handa@m17n.org>
17816 * xdisp.c (handle_auto_composed_prop): Give limit to
17817 Fnext_single_char_property_change.
17819 2008-02-01 Kenichi Handa <handa@m17n.org>
17821 * composite.c (syms_of_composite): Don't make the composition hash
17824 * fontset.c (Fset_fontset_font): Fix docstring.
17826 * lisp.h (detect_coding_system): Adjust prototype.
17828 * fileio.c (kill_workbuf_unwind): Delete this function.
17829 (Finsert_file_contents): Adjust the call of detect_coding_system.
17830 Get conversion_buffer by code_conversion_save. Use the macro
17831 CODING_MAY_REQUIRE_DECODING. After decoding, update
17834 * coding.h (make_conversion_work_buffer): Delete extern.
17835 (code_conversion_save): Extern it.
17837 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17838 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17839 (decode_coding_utf_8): Don't do eol converion.
17840 (detect_coding_utf_16): Check coding->src_chars, not
17841 coding->src_bytes. Add heuristics for those that have no signature.
17842 (decode_coding_emacs_mule, decode_coding_iso_2022)
17843 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17844 Don't do eol converion.
17845 (adjust_coding_eol_type): Return a new coding system.
17846 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17847 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17849 (decode_coding): Pay attention to undo_list. Do eol conversion for
17850 all types of coding-systems (if necessary).
17851 (Vcode_conversion_work_buf_list): Delete it.
17852 (Vcode_conversion_reused_workbuf): Rename from
17853 Vcode_conversion_reused_work_buf.
17854 (Vcode_conversion_workbuf_name): New variable.
17855 (reused_workbuf_in_use): New variable.
17856 (make_conversion_work_buffer): Delete the arg DEPTH.
17857 (code_conversion_restore): Change argument to cons.
17858 (code_conversion_save): Delete the argument BUFFER. Change callers.
17859 (detect_coding_system): New argument src_chars. Change callers.
17860 Fix for utf-16 detection.
17861 (init_coding_once): Don't use ISO_carriage_return.
17862 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17863 reused_workbuf_in_use.
17865 2008-02-01 Kenichi Handa <handa@m17n.org>
17867 * keymap.c (store_in_keymap): Pay attention to the case that idx
17868 is a cons specifying a character range.
17870 2008-02-01 Kenichi Handa <handa@m17n.org>
17872 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17873 HANDLED_RECOMPUTE_PROPS.
17875 * coding.c (Fdefine_coding_system_internal): Fix checking of
17876 ascii compatibility.
17878 2008-02-01 Kenichi Handa <handa@m17n.org>
17880 * charset.c (find_charsets_in_text): Delete unused locale variable.
17881 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17883 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17884 Resync charset_list to Vemacs_mule_charset_list.
17886 * keymap.c (store_in_keymap): Pay attention to the case that idx
17887 is a cons specifying a character range.
17889 2008-02-01 Kenichi Handa <handa@m17n.org>
17891 * composite.c (update_compositions): Bind inhibit-read-only, etc
17892 to t before calling remove-list-of-text-properties.
17894 * print.c (print_object): Always print ASCII chars as is.
17896 2008-02-01 Kenichi Handa <handa@m17n.org>
17898 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17900 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17903 2008-02-01 Kenichi Handa <handa@m17n.org>
17905 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17907 2008-02-01 Kenichi Handa <handa@m17n.org>
17909 * xfaces.c (set_lface_from_font_name): Fix for the case that
17910 FONTNAME is not fontset name.
17912 2008-02-01 Kenichi Handa <handa@m17n.org>
17914 * fns.c (base64_encode_1): Fix previous change.
17916 2008-02-01 Kenichi Handa <handa@m17n.org>
17918 * fontset.c (set_fontset_font): New function.
17919 (Fset_fontset_font): If a font is specified for a charset, use
17920 map_charset_chars to store the font spec in a fontset.
17922 2008-02-01 Kenichi Handa <handa@m17n.org>
17924 * fontset.c (fontset_face): Create a fallback fontset on demand.
17925 (make_fontset): Don't create a fallback fontset here.
17926 (free_face_fontset): Free a fallback fontset (if any) too.
17927 (n_auto_fontsets): Delete this variable.
17928 (auto_fontset_alist): New variable.
17929 (new_fontset_from_font_name): Check auto_fontset_alist.
17930 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17931 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17932 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17933 Defsubr Sfontset_list_all.
17935 2008-02-01 Kenichi Handa <handa@m17n.org>
17937 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17939 2008-02-01 Kenichi Handa <handa@m17n.org>
17941 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17943 2008-02-01 Kenichi Handa <handa@m17n.org>
17945 * editfns.c (Fgoto_char): Fix docstring.
17947 2008-02-01 Kenichi Handa <handa@m17n.org>
17949 * insdel.c (insert_from_gap): Adjust intervals correctly.
17951 2008-02-01 Jason Rumney <jasonr@gnu.org>
17953 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17954 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17955 (w32_initialize): Try to load it.
17956 (x_get_font_repertory): Use it if available.
17957 (w32_encode_char): Add shortcut for unicode output.
17959 * w32fns.c (w32_load_system_font): Default charset to -1.
17960 (x_to_w32_charset): Match all fonts for unicode.
17961 (w32_to_x_charset): New parameter matching. Don't return partial
17962 or wildcard charsets.
17963 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17964 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17965 (w32_to_x_font): Match charset to real charset.
17966 (enum_font_cb2): Always list unicode versions.
17968 * makefile.w32-in (temacs): Increase EMHEAP.
17970 2008-02-01 Jason Rumney <jasonr@gnu.org>
17972 * w32term.c (w32_encode_char): New charset parameter.
17973 font_info.encoding becomes encoding_type.
17974 (x_get_font_repertory): New function. Warning: stub only!
17975 (x_new_font): Return quickly if font already set.
17976 (x_new_fontset): fontsetname parameter is Lisp_Object.
17977 Use new fs_query_fontset. Try new_fontset_from_font_name.
17978 Use fontset_name for return value.
17980 * w32term.h: Declare x_get_font_repertory.
17982 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17983 place of find_charset_in_text. Use encode_coding_object in place
17985 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17988 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17990 (w32_load_system_font): Initialize charset as unicode.
17991 font_info.encoding becomes encoding_type.
17992 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17993 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17994 (syms_of_w32fns): Set get_font_repertory_func.
17996 * w32console.c: Include character.h. Use terminal_encode_buffer
17998 (write_glyphs): Use new version of encode_terminal_code. Use
17999 encode_coding_object in place of encode_coding.
18001 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18002 encoding becomes encoding_type.
18004 * term.c (terminal_encode_buffer): Make externally visible.
18006 * makefile.w32-in: Add character.h dependancies.
18007 (character.o, chartab.o): New targets.
18009 2008-02-01 Kenichi Handa <handa@m17n.org>
18011 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18012 CODING_ID_EOL_TYPE.
18014 2008-02-01 Andreas Schwab <schwab@suse.de>
18016 * coding.c (produce_chars): Revert last change.
18018 2008-02-01 Kenichi Handa <handa@m17n.org>
18020 * charset.h (charset_unicode): Extern it.
18022 * charset.c (string_xstring_p): Check by (C >= 0x100).
18023 (find_charsets_in_text): Change format of the arc CHARSETS. New
18025 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18026 change of find_charsets_in_text.
18027 (Fsplit_char): Fix doc. Never return unknown.
18029 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18031 * coding.c (Fdefine_coding_system_alias): Update
18032 Vcoding_system_list.
18034 * fontset.c (load_font_get_repertory): Pay attention to the case
18035 that ENCODING of a font is specified by a char-table.
18037 * xterm.c (x_get_font_repertory): Handle the case that the
18038 encoding of font is other than Unicode.
18040 2008-02-01 Kenichi Handa <handa@m17n.org>
18042 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18043 if a character is encodable by the terminal coding system. If
18044 not, produces proper number of `?'s. Update
18045 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18046 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18048 2008-02-01 Kenichi Handa <handa@m17n.org>
18050 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18052 (encode_terminal_code): Change argument. Encode multiple
18053 characters at once. Store the result of encoding in
18054 terminal_encode_buffer.
18055 (write_glyphs, insert_glyphs): Adjust for the change of
18056 encode_terminal_code.
18057 (term_init): Initialize terminal_encode_buffer and
18058 terminal_encode_buf_size.
18060 * coding.c (consume_chars): If coding->src_object is nil, don't
18063 2008-02-01 Kenichi Handa <handa@m17n.org>
18065 * character.c (char_string): Use ASCII_CHAR_P instead of
18066 SINGLE_BYTE_CHAR_P.
18068 2008-02-01 Kenichi Handa <handa@m17n.org>
18070 * xdisp.c (handle_auto_composed_prop): Check if the last
18071 characters of auto-composed region is newly composed with the
18072 following characters.
18073 (handle_composition_prop): Fix checking of point being inside
18076 2008-02-01 Kenichi Handa <handa@m17n.org>
18078 * fns.c (concat): Don't change multibyteness of the result by
18079 concatenating an 8-bit character.
18081 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18082 multibyteness of the result when newelt is an 8-bit character.
18084 2008-02-01 Dave Love <fx@gnu.org>
18086 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18089 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18091 * xfaces.c (face_numeric_value): Declare dim size_t.
18092 (Finternal_lisp_face_equal_p): Remove unused f.
18094 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18095 (MATRIX_ROW): Remove unused vars.
18096 (draw_glyphs, x_insert_glyphs, fast_find_position)
18097 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18100 * regex.c (regex_compile): Remove unused var.
18102 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18104 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18105 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18107 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18109 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18111 * fileio.c (Fwrite_region): Remove unused var.
18113 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18114 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18116 * composite.c (Fremove_list_of_text_properties): Declare.
18118 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18119 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18120 (coding_inherit_eol_type): Remove unused attrs.
18121 (detect_coding): Cast arg of detect_eol.
18123 * charset.c (syms_of_charset): Remove unused var p.
18124 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18127 * casetab.c (set_case_table): Remove unused var.
18129 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18132 2008-02-01 Dave Love <fx@gnu.org>
18134 * xterm.c (x_bitmap_mask): Declare.
18136 2008-02-01 Dave Love <fx@gnu.org>
18138 * xterm.c (x_term_init): Fix type error.
18140 * lisp.h: Add Funibyte_char_to_multibyte.
18142 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18143 (Fset_coding_system_priority): Doc fix.
18145 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18147 * indent.c (check_composition): Make start and end EMACS_INT.
18149 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18151 * xdisp.c (handle_composition_prop, check_point_in_composition):
18152 Make buffer positions EMACS_INT.
18154 * composite.c (find_composition, run_composition_function)
18155 (update_compositions, Ffind_composition_internal): Make buffer
18156 positions EMACS_INT.
18158 * composite.h (find_composition, update_compositions): Make
18159 position args EMACS_INT.
18161 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18163 * intervals.c (get_property_and_range):
18164 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18166 * unexalpha.c: Don't include varargs.h.
18168 2008-02-01 Dave Love <fx@gnu.org>
18170 * coding.h (ENCODE_UTF_8): New.
18172 * Makefile.in (gtkutil.o): Depend on coding.h.
18174 * coding.c (Fset_coding_system_priority): Doc fix.
18176 2008-02-01 Kenichi Handa <handa@m17n.org>
18178 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18179 the case of auto saving.
18181 2008-02-01 Andreas Schwab <schwab@suse.de>
18183 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18186 2008-02-01 Kenichi Handa <handa@m17n.org>
18188 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18190 2008-02-01 Kenichi Handa <handa@m17n.org>
18192 * fileio.c (choose_write_coding_system): Return a decided coding system.
18193 (Fwrite_region): Set Vlast_coding_system_used to the return value
18194 of choose_write_coding_system.
18196 2008-02-01 Kenichi Handa <handa@m17n.org>
18198 * charset.c (Fset_charset_priority): Pay attention to duplicated
18201 * coding.c (QCcategory): New variable.
18202 (syms_of_coding): Defsym it. Set all elements of
18203 Vcoding_category_table and their symbol values.
18204 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18205 coding-category-XXX, and coding-category-list.
18206 (Fdefine_coding_system_internal): Add category in the plist.
18208 2008-02-01 Kenichi Handa <handa@m17n.org>
18210 * callproc.c (Fcall_process): Handle carryover correctly.
18212 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18213 (raw_text_coding_system): Check NILP (coding_system).
18214 (coding_inherit_eol_type): Check NILP (coding_system) and
18216 (consume_chars): Fix for the case of raw-text.
18218 * process.c (read_process_output): Handle carryover correctly.
18220 2008-02-01 Dave Love <fx@gnu.org>
18222 * regex.c (re_search_2): Fix last change.
18224 2008-02-01 Kenichi Handa <handa@m17n.org>
18226 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18227 target_multibyte. Even in a unibyte case, return a converted
18229 (GET_CHAR_AFTER): New macro.
18230 (PATFETCH): Translate via multibyte char.
18231 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18232 (SETUP_MULTIBYTE_RANGE): New macro.
18233 (regex_compile): Setup compiled code so that its multibyteness
18234 matches that of a target. Fix the handling of "[X-YZ]" using
18235 SETUP_MULTIBYTE_RANGE.
18236 (analyse_first) <charset>: For filling fastmap for all multibyte
18237 characters, don't check by BASE_LEADING_CODE_P.
18238 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18239 the same as RE_MULTIBYTE_P (bufp) now.
18240 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18241 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18242 (TRANSLATE_VIA_MULTIBYTE): New macro.
18243 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18244 It is the same as RE_MULTIBYTE_P (bufp) now.
18245 <exactn>: Translate via multibyte.
18246 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18248 <charset, charset_not>: Fetch a character by
18249 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18250 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18251 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18252 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18254 (bcmp_translate): Likewise.
18256 * search.c (compile_pattern): Check the member target_multibyte,
18257 not the member multibyte of buf.
18259 * lread.c (read1): While reading a string, set force_singlebyte
18260 and force_multibyte correctly.
18262 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18263 up of unibyte_to_multibyte_table.
18265 2008-02-01 Kenichi Handa <handa@m17n.org>
18267 * coding.c (setup_coding_system): If coding has
18268 post-read-conversion or pre-write-conversion, set
18269 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18271 (decode_coding_gap): Run post-read-conversion if any.
18273 * fileio.c (Finsert_file_contents): Even if we read into a
18274 unibyte buffer, check if we must decode the result or not.
18276 2008-02-01 Kenichi Handa <handa@m17n.org>
18278 * coding.c (make_conversion_work_buffer): Change the work buffer
18279 name to the same one as that of Emacs 21.
18281 2008-02-01 Kenichi Handa <handa@m17n.org>
18283 * coding.h (make_conversion_work_buffer): Adjust prototype.
18284 (code_conversion_restore): Don't extern it.
18286 * coding.c (detected_mask): Delete unused variable.
18287 (decode_coding_iso_2022): Pay attention to the byte sequence of
18288 CTEXT extended segment, and retain those bytes as is.
18289 (decode_coding_ccl): Delete unused variable `valids'.
18290 (setup_coding_system): Delete unused variable `category'.
18291 (consume_chars): Delete unused variable `category'. Make it work
18292 for non-multibyte case.
18293 (make_conversion_work_buffer): Change argument.
18294 (saved_coding): Delete unused variable.
18295 (code_conversion_restore): Don't check saved_coding->destination.
18296 (code_conversion_save): New function.
18297 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18298 instead of record_unwind_protect.
18299 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18300 (detect_coding_system): Delete unused variable `mask'.
18301 (Fdefine_coding_system_internal): Delete unused variable id.
18303 * fileio.c (kill_workbuf_unwind): New function.
18304 (Finsert_file_contents): On replacing, call
18305 make_conversion_work_buffer with correct args, and call
18306 record_unwind_protect with the first arg kill_workbuf_unwind.
18308 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18310 2008-02-01 Kenichi Handa <handa@m17n.org>
18312 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18313 (fontset_add): Fix for the case that TO is less than TO1.
18314 (Ffontset_info): Don't use fallback fontset on checking the
18316 (dump_fontset): New function for debugging.
18318 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18319 coding_type is Qcharset.
18321 2008-02-01 Kenichi Handa <handa@m17n.org>
18323 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18324 (map_char_table): Don't inherit the value from the parent on
18325 initializing VAL. Adjust for the above change.
18327 2008-02-01 Kenichi Handa <handa@m17n.org>
18329 * coding.c (Qsignature, Qendian): Delete these variables.
18330 (syms_of_coding): Don't initialize them.
18331 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18332 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18333 detect_info->found.
18334 (decode_coding_utf_16): Don't detect BOM here.
18335 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18336 is NOT utf_16_without_bom.
18337 (setup_coding_system): For a coding system of type utf-16, check
18338 if the attribute :endian is Qbig or not (not nil or not), and set
18339 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18340 (detect_coding): If coding type is utf-16 and BOM detection is
18341 required, detect it.
18342 (Fdefine_coding_system_internal): For a coding system of type
18343 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18345 2008-02-01 Kenichi Handa <handa@m17n.org>
18347 * coding.c (coding_set_source): Fix for the case that the current
18348 buffer is different from coding->src_object.
18349 (decode_coding_object): Don't use the conversion work buffer if
18350 DST_OBJECT is a buffer.
18352 2008-02-01 Dave Love <fx@gnu.org>
18354 * lread.c (read_emacs_mule_char) [len==2]: Index
18355 emacs_mule_charset correctly.
18357 2008-02-01 Dave Love <fx@gnu.org>
18359 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18360 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18361 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18362 treated specially.)
18363 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18364 (detected_mask): Remove Big5 bits.
18366 2008-02-01 Kenichi Handa <handa@m17n.org>
18368 The following changes are to make the font rescaling facility
18369 compatible with Emacs 21.
18371 * xfaces.c (Vface_font_rescale_alist): Rename from
18372 Vface_resizing_fonts.
18373 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18374 (font_rescale_ratio): Rename from font_resizing_ratio.
18375 (split_font_name): Set font->rescale_ratio.
18376 (better_font_p): Pay attention to font->rescale_ratio.
18377 (build_scalable_font_name): Likewise. Change RESX, and RESY
18379 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18381 2008-02-01 Kenichi Handa <handa@m17n.org>
18383 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18384 (Qutf_16_le): Remove these variables.
18385 (syms_of_coding): Don't DEFSYM them.
18386 (decode_coding_utf_16): Fix handling of BOM.
18387 (encode_coding_utf_16): Fix handling of BOM.
18389 2008-02-01 Kenichi Handa <handa@m17n.org>
18391 * fileio.c (Finsert_file_contents): On replacing, before decoding
18392 the file into the work buffer, set point of the work buffer to the end.
18394 2008-02-01 Dave Love <fx@gnu.org>
18396 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18398 2008-02-01 Dave Love <fx@gnu.org>
18400 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18403 2008-02-01 Kenichi Handa <handa@m17n.org>
18405 * xdisp.c (SKIP_GLYPHS): New macro.
18406 (set_cursor_from_row): Pay attention to string display properties.
18408 * category.c (copy_category_entry): Fix for the case that RANGE
18411 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18413 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18415 2008-02-01 Kenichi Handa <handa@m17n.org>
18417 * charset.c (Fcharset_id_internal): New function.
18418 (syms_of_charset): Defsubr it.
18420 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18421 with the last arg charset_list acquired from coding.
18422 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18423 the attribute coding_attr_ccl_valids.
18425 * coding.h (enum define_coding_ccl_arg_index): Set the first
18426 member coding_arg_ccl_decoder to coding_arg_max.
18428 * ccl.h (ccl_driver): Adjust prototype.
18430 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18431 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
18432 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
18433 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18436 2008-02-01 Kenichi Handa <handa@m17n.org>
18438 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18441 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18443 2008-02-01 Dave Love <fx@gnu.org>
18445 * composite.c (syms_of_composite): Make composition_hash_table weak.
18447 2008-02-01 Kenichi Handa <handa@m17n.org>
18449 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18450 (font_name_registry): Don't extern them.
18451 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18453 * fontset.h (Qfontset): Don't extern it.
18454 (new_fontset_from_font_name): Extern it.
18456 * fontset.c: Give 8 extra slots to fontset objects.
18457 (Qfontset_info): New variable.
18458 (syms_of_fontset): Defsym it.
18459 (FONTSET_FALLBACK): New macro.
18460 (fontset_face): Try also the default fontset.
18461 (make_fontset): Realize a fallback fontset from the default fontset.
18462 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18463 using split_font_name_into_vector and build_font_name_from_vector.
18464 (Fset_fontset_font): Access the elements of font_spec by enum
18465 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18466 name by using split_font_name_into_vector.
18467 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18468 generate a proper font name from the fontset name. Update
18469 Vfontset_alias_alist.
18470 (n_auto_fontsets): New variable.
18471 (new_fontset_from_font_name): New function.
18472 (Ffont_info): Store the information about fonts generated from the
18473 default fontset in the first extra slot of the returned char-table.
18475 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18476 (font_name_registry): Delete function.
18477 (split_font_name_into_vector): New function.
18478 (build_font_name_from_vector): New function.
18479 (font_list): The argument REGISTRY is now a list of registry names.
18480 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18481 specifies an explicit font name, return the name as is. Make a
18482 list of registy names.
18484 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18486 (Fx_create_frame): Don't call x_new_fontset here. Just use
18487 x_list_fonts to check the existence of fonts.
18489 * xterm.h (x_new_fontset): Adjust prototype.
18491 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18492 string. Use new_fontset_from_font_name to create a fontset from a
18495 2008-02-01 Kenichi Handa <handa@m17n.org>
18497 * syntax.c (Vfind_word_boundary_function_table): New name for
18498 Vnext_word_boundary_function_table.
18499 (find-word-boundary-function-table): New name for
18500 next-word-boundary-function-table.
18502 2008-02-01 Dave Love <fx@gnu.org>
18504 * Makefile.in: Fix some dependencies.
18506 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18507 set it to nil before returning.
18509 * composite.c (update_compositions): Fix type error.
18511 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18513 2008-02-01 Kenichi Handa <handa@m17n.org>
18515 * xterm.c (x_new_font): Optimize for the case that the font is
18516 already set for the frame.
18518 2008-02-01 Kenichi Handa <handa@m17n.org>
18520 * chartab.c (char_table_ascii): Check if the char table contents
18521 is sub-char-table or not.
18522 (char_table_set, char_table_set_range): Fix argument to
18525 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18526 (detect_coding_utf_8, detect_coding_utf_16)
18527 (detect_coding_emacs_mule, detect_coding_iso_2022)
18528 (detect_coding_sjis, detect_coding_big5)
18529 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18530 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18531 sequence is valid in this coding system. Change callers.
18532 (MAX_ANNOTATION_LENGTH): New macro.
18533 (ADD_ANNOTATION_DATA): New macro.
18534 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18535 ADD_ANNOTATION_DATA. Change the format of annotation data.
18536 (ADD_CHARSET_DATA): New macro.
18537 (emacs_mule_char): New argument ID. Change callers.
18538 (decode_coding_emacs_mule, decode_coding_iso_2022)
18539 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18540 Produce charset annotation data in coding->charbuf.
18541 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18542 to charset annotation data in coding->charbuf.
18543 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18544 coding->common_flags if the coding system is iso-2022 based and
18546 (produce_composition): Adjust for the new annotation data format.
18547 (produce_charset): New function.
18548 (produce_annotation): Handle charset annotation.
18549 (handle_composition_annotation, handle_charset_annotation): New
18551 (consume_chars): Handle charset annotation. Utilize the above two
18553 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18554 buffer, get the deleted text as a string and set
18555 coding->src_object to that string.
18556 (detect_coding, detect_coding_system): Use the new struct
18557 coding_detection_info.
18559 * coding.h (struct coding_detection_info): New structure.
18560 (struct coding_system): Adjust prototype of the member `detector'.
18561 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18563 2008-02-01 Kenichi Handa <handa@m17n.org>
18565 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18567 2008-02-01 Dave Love <fx@gnu.org>
18569 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18570 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18571 to new local and nullify apropos_accumulate before returning.
18572 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18574 2008-02-01 Kenichi Handa <handa@m17n.org>
18576 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18579 2008-02-01 Dave Love <fx@gnu.org>
18581 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18583 2008-02-01 Kenichi Handa <handa@m17n.org>
18585 The following changes are to make character composition happen
18586 automatically on displaying.
18588 * Makefile.in (lisp, shortlisp): Add composite.elc.
18590 * composite.h (Qauto_composed, Vauto_composition_function)
18591 (Qauto_composition_function): Extern them.
18593 * composite.c (Vcomposition_function_table)
18594 (Qcomposition_function_table): Delete variables.
18595 (Qauto_composed, Vauto_composition_function)
18596 (Qauto_composition_function): New variables.
18597 (run_composition_function): Don't call
18598 compose-chars-after-function.
18599 (update_compositions): Clear `auto-composed' text property.
18600 (compose_chars_in_text): Delete this function.
18601 (syms_of_composite): Staticpro Qauto_composed and
18602 Qauto_composition_function. Declare Vauto_composition_function as
18605 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18607 * xdisp.c (it_props): Add an entry for Qauto_composed.
18608 (handle_auto_composed_prop): New function.
18610 * xselect.c (selection_data_to_lisp_data): Don't call
18611 compose_chars_in_text.
18613 2008-02-01 Dave Love <fx@gnu.org>
18615 * keyboard.c (read_char): Modify checking around use of
18616 Vkeyboard_translate_table.
18618 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18621 2008-02-01 Kenichi Handa <handa@m17n.org>
18623 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18624 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18625 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18626 the case that the last byte is '\r' correctly.
18627 (decode_coding): Flush out the unprocessed data correctly.
18628 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18630 2008-02-01 Dave Love <fx@gnu.org>
18632 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18633 Add XK_ISO... case.
18634 (xaw_scroll_callback): Revert last change.
18636 2008-02-01 Kenichi Handa <handa@m17n.org>
18638 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18640 2008-02-01 Kenichi Handa <handa@m17n.org>
18642 * xfaces.c (Vface_resizing_fonts): New variable.
18643 (struct font_name): New member `resizing_ratio'.
18644 (font_resizing_ratio): New function.
18645 (split_font_name): Set font->resizing_ratio.
18646 (better_font_p): Pay attention to font->resizing_ratio.
18647 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18648 RESX, and RESY fields.
18649 (try_alternative_families): Try scalable fonts if
18650 Vscalable_fonts_allowed is not Qt.
18651 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18653 2008-02-01 Dave Love <fx@gnu.org>
18655 * xterm.c (xaw_scroll_callback): Cast correctly.
18657 2008-02-01 Dave Love <fx@gnu.org>
18659 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18660 (lispy_kana_keys): Comment out.
18661 (make_lispy_event) [XK_kana_A]: Comment out.
18663 * xterm.c (xaw_scroll_callback): Cast call_data.
18664 (XTread_socket): Deal with ASCII keysyms.
18665 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18667 2008-02-01 Dave Love <fx@gnu.org>
18669 * xterm.c (Vx_keysym_table): New.
18670 (syms_of_xterm): Initialize it.
18671 (XTread_socket): Use it.
18672 From head: Eliminate incorrect optimization that tried to avoid
18673 decoding the output of X*LookupString.
18674 (x_get_font_repertory): Delete charset declaration.
18676 2008-02-01 Kenichi Handa <handa@m17n.org>
18678 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18680 (Fdefine_coding_system_internal): Setup
18681 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18683 2008-02-01 Dave Love <fx@gnu.org>
18685 * coding.c (Fcheck_coding_system): Doc fix.
18687 * editfns.c (Finsert_byte): Return a proper value.
18689 2008-02-01 Kenichi Handa <handa@m17n.org>
18691 * coding.c (decode_coding): Fix args to translate_chars. Pay
18692 attention to Vstandard_translation_table_for_decode.
18693 (encode_coding): Fix args to translate_chars. Pay attention to
18694 Vstandard_translation_table_for_encode.
18696 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18697 SINGLE_BYTE_CHAR_P.
18699 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18700 not by SINGLE_BYTE_CHAR_P.
18702 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18703 SINGLE_BYTE_CHAR_P.
18705 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18706 SINGLE_BYTE_CHAR_P.
18708 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18709 by SINGLE_BYTE_CHAR_P.
18711 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18712 SINGLE_BYTE_CHAR_P.
18714 2008-02-01 Dave Love <fx@gnu.org>
18716 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18718 2008-02-01 Dave Love <fx@gnu.org>
18720 * fns.c (Flanginfo): Fix typo.
18722 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18724 2008-02-01 Kenichi Handa <handa@m17n.org>
18726 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18727 (detect_coding_emacs_mule, detect_coding_iso_2022)
18728 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18729 incomplete byte sequence. Don't update *mask when correctly detected.
18730 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18731 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18732 (detect_coding, detect_coding_system): Adjust for the changes above.
18734 2008-02-01 Kenichi Handa <handa@m17n.org>
18736 * character.c (char_string): Rename from
18737 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18738 (string_char): Rename from string_char.
18740 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18741 if C is greater than MAX_3_BYTE_CHAR.
18742 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18743 string_char instead of string_char_with_unification.
18745 2008-02-01 Dave Love <fx@gnu.org>
18747 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18749 2008-02-01 Kenichi Handa <handa@m17n.org>
18751 * keymap.c (push_key_description): Pay attention to force_multibyte.
18753 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18755 2008-02-01 Dave Love <fx@gnu.org>
18757 * charset.c (define_charset_internal): Rename `supprementary'.
18759 * Makefile.in (lisp, shortlisp): Remove latin-N.
18761 2008-02-01 Dave Love <fx@gnu.org>
18763 * xfns.c (x_window, x_window): Use use_xim.
18765 * xterm.c (use_xim): Initialize.
18766 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18767 (x_term_init): Maybe set use_xim.
18769 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18771 2008-02-01 Kenichi Handa <handa@m17n.org>
18773 * search.c (search_buffer): Fix case-fold-search of multibyte
18775 (boyer_moore): Rename the last argument to char_high_bits.
18777 2008-02-01 Kenichi Handa <handa@m17n.org>
18779 * xdisp.c (display_string): Fix for the case of zero width glyph.
18781 * xfns.c (x_set_font): Change the error message of the case that
18782 x_new_fontset returns Qt.
18784 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18785 (Finternal_set_lisp_face_attribute): Use signal_error for the
18786 error of invalid fontset.
18788 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18789 fontset, return Qt.
18791 2008-02-01 Dave Love <fx@gnu.org>
18793 * unexelf.c (unexec): Make .got handling not SGI-specific.
18795 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18797 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18799 * keyboard.c (read_key_sequence): Fix type error.
18801 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18804 * fontset.c (fontset_add): Return Lisp_Object.
18806 2008-02-01 Dave Love <fx@gnu.org>
18808 * charset.h (charset_ordered_list_tick): Declare extern.
18810 2008-02-01 Kenichi Handa <handa@m17n.org>
18812 The following changes (and some of 2008-02-01 changes of mine) are
18813 for handling syntax, category, and case conversion for unibyte
18814 characters by converting them to multibyte on the fly. With these
18815 changes, we don't have to setup syntax and case tables for unibyte
18816 characters in each language environment.
18818 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18819 multibyte if necessary.
18821 * bytecode.c (Fbyte_code): Likewise.
18823 * character.h (LEADING_CODE_LATIN_1_MIN)
18824 (LEADING_CODE_LATIN_1_MAX): New macros.
18825 (unibyte_to_multibyte_table): Extern it.
18826 (unibyte_char_to_multibyte): New macro.
18827 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18828 (CHAR_LEADING_CODE): New macro.
18829 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18831 * character.c (unibyte_to_multibyte_table): New variable.
18832 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18833 (multibyte_char_to_unibyte): If C is an eight-bit character,
18834 convert it to the corresponding byte value.
18836 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18837 not 1, signals an error. Update the elements of
18838 unibyte_to_multibyte_table.
18839 (init_charset_once): Initialize unibyte_to_multibyte_table.
18840 (syms_of_charset): Define the charset `iso-8859-1'.
18842 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18843 as is without converting it to unibyte. In a unibyte buffer,
18844 convert C to multibyte before checking the syntax.
18846 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18848 * minibuf.c (Fminibuffer_complete_word): Use the macro
18849 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18851 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18853 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18854 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18855 that is zero, convert an eight-bit char to multibyte.
18856 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18858 (PATFETCH): Convert an eight-bit char to multibyte.
18859 (HANDLE_UNIBYTE_RANGE): New macro.
18860 (regex_compile): Setup the compiled pattern for multibyte chars
18861 even if the given regex string is unibyte. Use PATFETCH_RAW
18862 instead of PATFETCH in many places. To handle `charset'
18863 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18864 only for ASCII chars.
18865 (analyse_first) <exactn>: Simplify because the compiled pattern
18867 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18868 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18869 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18870 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18871 multibyte always 1.
18872 (re_search_2): In emacs, set the locale variable multibyte to 1,
18873 otherwise to 0. New local variable target_multibyte. Check it
18874 to decide the multibyteness of STR1 and STR2. If
18875 target_multibyte is zero, convert unibyte chars to multibyte
18876 before translating and checking fastmap.
18877 (TARGET_CHAR_AND_LENGTH): New macro.
18878 (re_match_2_internal): In emacs, set the locale variable multibyte
18879 to 1, otherwise to 0. New local variable target_multibyte. Check
18880 it to decide the multibyteness of STR1 and STR2. Use
18881 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18882 <charset, charset_not>: If multibyte is nonzero, check fastmap
18883 only for ASCII chars. Call bcmp_translate with
18884 target_multibyte, not with multibyte.
18885 <begline>: Declare the local variable C as `unsigned'.
18886 (bcmp_translate): Change the last arg name to target_multibyte.
18888 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18889 the regexp pattern and the matching target. Set cp->buf.multibyte
18890 to the multibyteness of the regexp pattern. Set
18891 cp->but.target_multibyte to the multibyteness of the matching target.
18892 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18893 FETCH_STRING_CHAR_ADVANCE.
18894 (Freplace_match): Convert unibyte chars to multibyte.
18896 * syntax.c (char_quoted, back_comment, scan_words)
18897 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18898 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18899 unibyte chars to multibyte.
18900 (skip_chars): Delete the arg syntaxp, and move the code for
18901 handling syntaxes to skip_syntaxes. Change callers.
18902 Fix the case that the multibyteness of STRING and the current
18903 buffer doesn't match.
18904 (skip_syntaxes): New function.
18905 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18906 SINGLE_BYTE_CHAR_P.
18908 2008-02-01 Kenichi Handa <handa@m17n.org>
18910 * xfaces.c (QCfontset): New variable.
18911 (LFACE_FONTSET): New macro.
18912 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18913 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18914 (Finternal_set_lisp_face_attribute)
18915 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18916 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18917 check also LFACE_FONTSET_INDEX.
18918 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18919 attrs[LFACE_FONT_INDEX].
18920 (syms_of_xfaces): Intern and staticpro QCfontset.
18922 * dispextern.h (enum lface_attribute_index): New member
18923 LFACE_FONTSET_INDEX.
18925 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18927 2008-02-01 Kenichi Handa <handa@m17n.org>
18929 * coding.c (coding_set_destination): Fix coding->destination for
18930 the case converting a region.
18931 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18932 (encode_coding_object): Fix coding->dst_pos and
18933 coding->dst_pos_byte for the case converting a region.
18935 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18937 * character.h (BYTE8_STRING): New macro.
18939 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18941 2008-02-01 Kenichi Handa <handa@m17n.org>
18943 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18944 characters by octal form.
18946 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18948 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18949 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18950 _fetch_multibyte_char_len.
18951 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18953 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18955 * casefiddle.c (casify_object): Simplify. Handle the case that
18956 the case conversion change the byte length.
18957 (casify_region): Likewise.
18959 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18961 * character.c (_fetch_multibyte_char_len): Delete this variable.
18962 (syms_of_character): Setup Vprintable_chars.
18964 * editfns.c (Fchar_equal): Fix for the unibyte case.
18965 (Finsert_byte): New function.
18966 (syms_of_editfns): Defsubr it.
18968 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18969 of direct code 0x3ffff.
18971 * search.c (Freplace_match): Fix for the unibyte case.
18973 2008-02-01 Kenichi Handa <handa@m17n.org>
18975 * lread.c (safe_to_load_p): Fix the logic.
18977 * syntax.c (scan_words): Don't treat characters belonging to
18978 different scripts as constituting a word.
18980 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18982 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18984 * emacs.c (main): In the case of --unibyte, instead of aborting on
18985 finding non-empty buffer, make it unibyte.
18987 2008-02-01 Kenichi Handa <handa@m17n.org>
18989 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18990 to create a fontset.
18992 2008-02-01 Dave Love <fx@gnu.org>
18994 * character.c (Funibyte_char_to_multibyte): Doc fix.
18996 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18998 2008-02-01 Kenichi Handa <handa@m17n.org>
19000 * fontset.c (fontset_add): Make the type `int'.
19001 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19003 * character.c (unibyte_char_to_multibyte)
19004 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19005 charset_unibyte, not charset_primary.
19007 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19009 * charset.c (charset_unibyte): Rename from charset_primary.
19010 (Funibyte_charset): Rename from Fprimary_charset.
19011 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19012 (syms_of_charset): Adjust for the above changes.
19014 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19015 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19016 it->multibyte_p is zero.
19018 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19021 2008-02-01 Kenichi Handa <handa@m17n.org>
19023 * coding.c (Fdefine_coding_system_internal): Fix category setting
19024 for a coding system of type iso-2022.
19026 2008-02-01 Kenichi Handa <handa@m17n.org>
19028 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19030 2008-02-01 Kenichi Handa <handa@m17n.org>
19032 * syntax.c (Vnext_word_boundary_function_table): New variable.
19033 (next-word-boundary-function-table): Declare it as a Lisp variable
19035 (scan_words): Call functions in Vnext_word_boundary_function_table
19038 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19040 * fontset.c (fs_load_font): If fontp->charset is not negative,
19041 return fontp without setting its members.
19043 2008-02-01 Dave Love <fx@gnu.org>
19045 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19047 * m/sparc.h (HAVE_ALLOCA): Delete.
19049 * s/irix6-5.h: Don't include strings.h.
19050 (bcopy, bzero, bcmp): Don't undef.
19052 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19054 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19055 (TIOCSIGSEND): Don't test IRIX6.
19056 (bcopy, bzero, bcmp): Define conditionally.
19058 2008-02-01 Kenichi Handa <handa@m17n.org>
19060 * buffer.c (Qas, Qmake, Qto): New variables.
19061 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19062 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19064 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19065 we are inserting a process output into a multibyte buffer.
19067 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19068 multibyte_char_to_unibyte.
19070 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19071 by the primary charset, make it eight-bit char.
19072 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19074 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19075 (charset_8_bit__control, charset_8_bit_graphic)
19076 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19077 (define_charset_internal): New function.
19078 (syms_of_charset): Call define_charset_internal for pre-defined
19081 * charset.h (charset_8_bit): Extern it.
19083 * coding.c (make_conversion_work_buffer): Adjust for the change
19084 of Fset_buffer_multibyte.
19085 (encode_coding_raw_text): Increment p0 in the loop.
19087 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19089 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19090 for the change of Fset_buffer_multibyte.
19092 * fns.c (Fstring_to_multibyte): New function.
19093 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19095 2008-02-01 Dave Love <fx@gnu.org>
19097 * xfns.c (x_put_x_image): Declare args.
19099 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19100 (try_font_list): Declare an arg.
19102 * xdisp.c (message2_nolog, set_message): Declare an arg.
19104 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19106 * syntax.c (scan_sexps_forward): Declare an arg.
19108 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19111 * lisp.h (Fnew_fontset): Declare.
19113 * keymap.c (push_key_description): Call CHARACTERP correctly.
19115 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19116 (face_for_char): Delete unused vars.
19117 (Fset_fontset_font): Doc fix. Delete unused vars.
19119 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19121 * composite.c (update_compositions): Declare arg.
19123 * cm.c (calccost, cmgoto): Declare args.
19125 * charset.c: Remove `emacs' conditional. Doc fixes.
19126 (map_char_table_for_charset): Declare.
19128 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19130 * ccl.c: Remove `emacs' conditional.
19132 2008-02-01 Kenichi Handa <handa@m17n.org>
19134 The following changes are to allow specifying multiple font
19135 patterns for a character range (specified by script or charset).
19137 * Makefile.in (abbrev.o): Depend on syntax.h.
19138 (xfaces.o): Depend on charset.h.
19140 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19141 SINGLE_BYTE_CHAR_P.
19143 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19145 * character.h (Vchar_script_table): Extern it.
19147 * character.c (Vscript_alist): Delete.
19148 (Vchar_script_table, Qchar_script_table): New variable.
19149 (syms_of_character): Declare Vchar_script_table as a lisp variable
19152 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19153 have property char-table-extra-slots, make no extra slot.
19155 * dispextern.h (struct face): Delete member `charset'.
19156 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19157 SINGLE_BYTE_CHAR_P.
19158 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19160 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19161 (generate_ascii_font_name): Rename from generate_ascii_font.
19163 * fontset.h (get_font_repertory_func): New prototype.
19164 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19165 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19167 * fontset.c (Qprepend, Qappend): New variables.
19168 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19169 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19170 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19171 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19172 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19173 (load_font_get_repertory): New functions.
19174 (fontset_set): Delete.
19175 (fontset_face): New arg FACE. Return face ID, not face.
19176 Complete re-write to handle new fontset structure. Change caller.
19177 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19178 (face_for_char): Don't call lookup_face.
19179 (make_fontset_for_ascii_face): New arg FACE.
19180 (fs_load_font): New arg CHARSET_ID. Don't check
19181 Vfont_encoding_alist here.
19182 (find_font_encoding): New function.
19183 (list_fontsets): Use STRINGP, not ! NILP.
19184 (accumulate_script_ranges): New function.
19185 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19186 re-written to handle new fontset structure.
19187 (Ffontset_font): Return a copy of element.
19188 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19189 docstring of font-encoding-alist.
19191 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19192 (Fset_fotset_font): Fix arguments to 5.
19194 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19196 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19197 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19198 (highlight_trailing_whitespace): Adjust for the change of
19201 * xfaces.c: Include charset.h.
19202 (load_face_font): Delete argument C. Change caller.
19203 (generate_ascii_font_name): Rename from generate_ascii_font.
19204 (font_name_registry): New function.
19205 (cache_face): Store ascii faces before non-ascii faces in buckets.
19206 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19207 Lookup only ascii faces.
19208 (lookup_non_ascii_face): New function.
19209 (lookup_named_face): Delete argument C. Change caller.
19210 (lookup_derived_face): Delete argument C. Change caller.
19211 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19212 a string, just call font_list with it.
19213 (choose_face_font): Delete arguments FACE and C. New arg
19214 FONT_SPEC. Change caller.
19215 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19217 (realize_non_ascii_face): New function.
19218 (realize_x_face): Call load_face_font here.
19219 (realize_tty_face): Delete argument C. Change caller.
19220 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19222 (dump_realized_face): Don't print charset of FACE.
19224 * xfns.c (x_set_font): Always call x_new_fontset and
19225 store_frame_parameter.
19226 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19227 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19229 * xterm.h (x_get_font_repertory): Extern it.
19231 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19232 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19233 it->multibyte_p is zero.
19234 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19235 (x_new_fontset): If FONTSETNAME doesn't match any existing
19236 fontsets, create a new one.
19237 (x_get_font_repertory): New function.
19239 2008-02-01 Kenichi Handa <handa@m17n.org>
19241 * coding.c (Ffind_coding_systems_region_internal): Detect an
19242 ASCII only string correctly.
19244 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19247 2008-02-01 Kenichi Handa <handa@m17n.org>
19249 * lread.c: Include "coding.h".
19250 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19251 (load_each_byte, unread_char): New variables.
19252 (readchar_backlog): Delete.
19253 (readchar): Return a character unless load_each_byte is nonzero.
19254 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19255 cons. If unread_char is not -1, simply return it.
19256 (unreadchar): Handle the case that readcharfun is
19257 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19258 (read_multibyte): Delete.
19259 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19260 (read_emacs_mule_char): New functions.
19261 (Fload): Even if the file doesn't have the extension ".elc", if
19262 safe_to_load_p returns a positive version number, assume that the
19263 file contains bytecompiled code. If the version is less than 22,
19264 load the file while decoding multibyte sequences by emacs-mule.
19265 (readevalloop): Don't use readchar_backlog.
19266 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19267 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19268 (read_escape): Delete the arg BYTEREP.
19269 (read1): Set load_each_byte to 1 temporarily while handling
19270 #@NUMBER. Don't call read_multibyte.
19271 (read_vector): Call Fread with a cons. If readcharfun is
19272 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19273 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19274 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19275 and Qload_force_doc_strings.
19277 2008-02-01 Kenichi Handa <handa@m17n.org>
19279 * xdisp.c (face_before_or_after_it_pos): Call
19280 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19282 2008-02-01 Kenichi Handa <handa@m17n.org>
19284 * character.h (TRAILING_CODE_P): New macro.
19285 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19286 (string_char_with_unification): Fix prototype.
19287 (Vscript_alist): Extern it.
19289 * character.c (Vscript_alist): New variable.
19290 (string_char_with_unification, str_as_unibyte)
19291 (string_escape_byte8): Add `const' to local variables.
19292 (syms_of_character): Declare script-alist as a Lisp variable.
19294 * charset.h (Vcharset_ordered_list): Extern it.
19295 (charset_ordered_list_tick): Extern it.
19296 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19297 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19298 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19299 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19300 (Funify_charset): Adjust for the change of Funify_charset.
19302 * charset.c (charset_ordered_list_tick): New variable.
19303 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19304 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19305 deunify intead of unify a charset.
19306 (string_xstring_p): Add `const' to local variables.
19307 (find_charsets_in_text): Add `const' to arguments and local variables.
19308 (encode_char): Adjust for the change of Funify_charset. Fix
19309 detecting of invalid code.
19310 (Fset_charset_priority): Increment charset_ordered_list_tick.
19311 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19314 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19315 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19316 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19317 (decode_coding_ccl, consume_chars)
19318 (Ffind_coding_systems_region_internal)
19319 (Fcheck_coding_systems_region): Add `const' to local variables.
19321 * print.c (print_object): Use octal form for printing the
19322 contents of a bool vector.
19324 2008-02-01 Dave Love <fx@gnu.org>
19326 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19327 <version == 20>: Refuse to load.
19329 2008-02-01 Dave Love <fx@gnu.org>
19331 * fns.c: Move coding.h.
19332 (Qcodeset, Qdays, Qmonths): New.
19333 (concat): Use CHARACTERP instead of INTEGERP.
19334 (Flocale_codeset): Delete.
19335 (Flanginfo): New function.
19336 (syms_of_fns): Change accordingly.
19338 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19340 2008-02-01 Dave Love <fx@gnu.org>
19342 * casetab.c (init_casetab_once, init_casetab_once): Fix
19343 CHAR_TABLE_SET call.
19345 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19347 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19349 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19350 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19351 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19353 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19355 * coding.c (ENCODE_DESIGNATION, decode_eol)
19356 (make_conversion_work_buffer, code_conversion_restore)
19357 (Fdefine_coding_system_internal): Convert Lisp types.
19358 (code_conversion_restore): Use EQ, not ==.
19359 (Fencode_coding_string): Fix code_convert_string call.
19361 * coding.h (code_convert_region): Fix prototype.
19363 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19365 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19366 (Ffontset_info): Convert Lisp types.
19368 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19370 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19372 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19374 * chartab.c: Include "...h", not <...h> in some cases.
19376 * callproc.c (Fcall_process): Remove unused variables.
19378 2008-02-01 Dave Love <fx@gnu.org>
19380 * coding.c (Fset_coding_system_priority): Allow null arg list.
19382 2008-02-01 Dave Love <fx@gnu.org>
19384 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19385 (Fself_insert_and_exit): Use CHARACTERP.
19387 * callproc.c (Fcall_process): Remove unused vars.
19389 * xterm.c (XTread_socket): Add extra dead keysyms.
19391 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19393 * dispextern.h: Remove prototypes for redraw_frame,
19394 redraw_garbaged_frames.
19396 * cmds.c (Fself_insert_command): Use CHARACTERP.
19398 * chartab.c (make_sub_char_table): Remove unused var.
19399 (Fset_char_table_default, Fmap_char_table): Doc fix.
19401 * keymap.c (access_keymap): Remove generic char code.
19402 (push_key_description): Use CHARACTERP.
19404 2008-02-01 Dave Love <fx@gnu.org>
19406 * charset.c: Doc fixes.
19407 (Funify_charset): Extra checking.
19409 2008-02-01 Dave Love <fx@gnu.org>
19411 * lread.c: Remove some unused variables.
19412 (safe_to_load_p): If safe, return the magic number version byte.
19413 (Fload): Maybe use load-with-code-conversion.
19415 2008-02-01 Kenichi Handa <handa@m17n.org>
19417 * category.c (Fmodify_category_entry): Don't modify the contents
19418 of category_set for characters out of the range. Avoid
19419 unnecessary modification.
19421 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19422 Vchar_unify_table. The default value of the table is now nil.
19424 * character.c (syms_of_character): Setup Vchar_width_table for
19425 eight-bit-control and raw-byte chars.
19427 * charset.h (enum define_charset_arg_index): Delete
19428 charset_arg_parents and add charset_arg_subset and
19429 charset_arg_superset.
19430 (enum charset_attr_index): Delete charset_parents and add
19431 charset_subset and charset_superset.
19432 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19433 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19434 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19435 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19436 (CHARSET_SUPERSET): New macros.
19437 (charset_work): Extern it.
19438 (ENCODE_CHAR): Use charset_work.
19439 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19440 (map_charset_chars): Extern it.
19442 * charset.c (load_charset_map): Set the default value of encoder
19443 and deunifier char-tables to nil.
19444 (map_charset_chars): Change argument. Change callers. Use
19445 map_char_table_for_charset instead of map_char_table.
19446 (Fmap_charset_chars): New optional args from_code and to_code.
19447 (Fdefine_charset_internal): Adjust for the change of
19448 `define-charset' (:parents -> :subset or :superset).
19449 (charset_work): New variable.
19450 (encode_char, syms_of_charset): Adjust for the change of
19451 Fdefine_charset_internal.
19452 (Ffind_charset_string): Setup the vector `charsets' correctly.
19454 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19455 the previous change.
19456 (char_table_ref_and_range): Adjust for the above change.
19457 (map_sub_char_table_for_charset): New function.
19458 (map_char_table_for_charset): New function.
19460 * keymap.c (describe_vector): Handle a char-table directly here.
19461 (describe_char_table): Delete.
19463 * lisp.h (map_charset_chars): Delete.
19465 2008-02-01 Dave Love <fx@gnu.org>
19467 * fns.c (count_combining): Comment out (unused).
19468 (Flocale_codeset): New.
19469 (syms_of_fns): Defsubr it.
19471 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19474 2008-02-01 Dave Love <fx@gnu.org>
19476 * Makefile.in (chartab.o): Depend on charset.h.
19478 2008-02-01 Kenichi Handa <handa@m17n.org>
19480 * character.c (syms_of_character): Set the default value of
19481 Vprintable_chars to Qnil.
19483 2008-02-01 Dave Love <fx@gnu.org>
19485 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19487 2008-02-01 Kenichi Handa <handa@m17n.org>
19489 * charset.c (load_charset_map): Handle the case that from < to
19492 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19493 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19494 Pay attention to raw-8-bit chars.
19496 2008-02-01 Kenichi Handa <handa@m17n.org>
19498 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19499 It is not bytecompiled now.
19501 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19502 (charset_jisx0208): New variables.
19503 (Fdefine_charset_internal): Setup them if appropriate.
19504 (init_charset_once): Initialize them to -1.
19506 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19507 (charset_jisx0208): Extern them.
19509 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19510 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19511 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19512 (setup_iso_safe_charsets): Fix arguments to Fassq.
19513 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19514 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19515 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19516 (encode_coding_iso_2022): Change the 1st arg to
19517 ENCODE_ISO_CHARACTER to a variable.
19519 2008-02-01 Kenichi Handa <handa@m17n.org>
19521 * charset.h (enum define_charset_arg_index): New enums
19522 charset_arg_min_code and charset_arg_max_code.
19523 (struct charset): New member char_index_offset.
19525 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19526 Take charset->char_index_offset into account.
19527 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19528 args[charset_arg_max_code]. Setup charset.char_index_offset.
19529 (syms_of_charset): Fix args to Fdefine_charset_internal.
19531 2008-02-01 Dave Love <fx@gnu.org>
19533 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19535 2008-02-01 Dave Love <fx@gnu.org>
19537 * coding.c: Doc fixes.
19538 (Fcoding_system_aliases): Fix return value.
19539 (Qmac): Remove (duplicated) definition.
19541 2008-02-01 Dave Love <fx@gnu.org>
19543 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19546 * character.c (Fstring): Doc fix.
19548 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19550 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
19551 (font-encoding-alist): Doc fix.
19553 2008-02-01 Dave Love <fx@gnu.org>
19555 * term.c (costs_set): Declare static, non-initialized for pcc.
19556 (encode_terminal_code): Remove unused var.
19558 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19561 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19563 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19564 (suffixes): Move out of make_subsidiaries for K&R.
19566 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19568 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19570 2008-02-01 Dave Love <fx@gnu.org>
19572 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19574 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19576 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19578 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19580 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19582 2008-02-01 Kenichi Handa <handa@m17n.org>
19584 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19585 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19587 2008-02-01 Kenichi Handa <handa@m17n.org>
19589 * coding.c (decode_coding_charset): Adjust for the change of
19590 Fdefine_coding_system_internal.
19591 (Fdefine_coding_system_internal): For a coding system of
19592 `charset' type, store a list of charset IDs in
19593 `charset_attr_charset_valids' element of coding attributes.
19595 2008-02-01 Kenichi Handa <handa@m17n.org>
19597 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19598 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19599 caller. Handle 2-byte and 3-byte charsets correctly.
19600 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19601 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19602 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19603 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19604 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19606 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19607 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19608 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19609 and alt&rule composition.
19610 (decode_coding_iso_2022): Handle composition correctly.
19611 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19613 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19614 re-defining a charset. If the charset has :emacs-mule-id, setup
19616 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19618 2008-02-01 Kenichi Handa <handa@m17n.org>
19620 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19621 (encode_coding_big5, encode_coding_charset): If coding requires safe
19622 encoding, produce a character specified by
19623 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19625 2008-02-01 Dave Love <fx@gnu.org>
19627 * xterm.c (XSetIMValues): Declare.
19629 * process.c: Conditionally include sys/wait.h, pty.h.
19631 * print.c (print_object): Fix print format for 64-bit systems.
19633 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19635 * buffer.c (emacs_strerror): Declare.
19637 * fontset.c (Fclear_face_cache): Declare.
19638 (accumulate_font_info): Comment-out (unused).
19639 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19642 * character.h (string_escape_byte8): Declare.
19644 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19646 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19647 (Fmap_charset_chars): Doc fix.
19649 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19650 (Fset_coding_system_priority, Fset_coding_system_priority)
19651 (Fdefine_coding_system_internal): Doc fix.
19653 2008-02-01 Dave Love <fx@gnu.org>
19655 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19657 2008-02-01 Kenichi Handa <handa@m17n.org>
19659 * character.c (string_escape_byte8): Make multibyte string with
19662 * charset.c (Fmake_char): Delete unnecessary code.
19664 2008-02-01 Kenichi Handa <handa@m17n.org>
19666 * xfns.c (x_encode_text): Allocate coding.destination here, and
19667 call encode_coding_object with dst_object Qnil.
19669 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19670 multibyte form correctly.
19672 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19673 against Vfont_encoding_alist.
19675 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19676 handling of charset list.
19677 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19678 (decode_coding_object): Move point to coding->dst_pos before
19679 calling post-read-conversion function.
19680 (encode_coding_object): Give correct arguments to
19681 pre-write-conversion. Ignore the return value of
19682 pre-write-conversion function. Pay attention to the case that
19683 pre-write-conversion changes the current buffer. If dst_object is
19684 Qt, even if coding->src_bytes is zero, allocate at least one byte
19685 to coding->destination.
19687 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19689 * charset.c (Fmake_char): Make it more backward compatible.
19690 (Fmap_charset_chars): Fix docstring.
19692 2008-02-01 Dave Love <fx@gnu.org>
19694 * coding.c: Doc fixes.
19695 (Fdefine_coding_system_alias): Use names, not symbols, in
19696 coding-system-alist.
19698 2008-02-01 Kenichi Handa <handa@m17n.org>
19700 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19701 of calling free_realized_face.
19703 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19705 * charset.c (read_hex): Don't treat SPC as a comment starter.
19706 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19707 (Fdecode_char): Fix typo.
19709 2008-02-01 Kenichi Handa <handa@m17n.org>
19711 * charset.h (struct charset): New member `code_space_mask'.
19713 * coding.c (coding_set_source): Delete the local variable beg_byte.
19714 (encode_coding_charset, Fdefine_coding_system_internal):
19715 Delete the local variable charset.
19716 (Fdefine_coding_system_internal): Setup
19717 attrs[coding_attr_charset_valids] correctly.
19719 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19720 member to check if CODE is valid or not.
19721 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19722 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19723 is within the range of charset->min_code and carset->max_code.
19725 2008-02-01 Dave Love <fx@gnu.org>
19727 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19729 * dispextern.h (generate_ascii_font): Fix return type.
19731 * xfaces.c (generate_ascii_font): Fix arg declaration.
19733 * coding.c (coding_inherit_eol_type)
19734 (Fset_terminal_coding_system_internal)
19735 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19737 2008-02-01 Kenichi Handa <handa@m17n.org>
19739 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19740 multiple charsets correctly.
19742 2008-02-01 Kenichi Handa <handa@m17n.org>
19744 * search.c (boyer_moore): Fix handling of multibyte character
19747 * xdisp.c (display_mode_element): When the variable `elt' is
19748 changed, update `this' and `lisp_string'.
19750 2008-02-01 Kenichi Handa <handa@m17n.org>
19752 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19754 * callproc.c (Fcall_process): Be sure to give the current buffer
19755 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19757 * charset.c (struct charset_map_entries): New struct.
19758 (load_charset_map): Rename from parse_charset_map. New args
19759 entries and n_entries. Change caller.
19760 (load_charset_map_from_file): Rename from load_charset_map.
19761 Change caller. New arg control_flag. Call load_charset_map at
19763 (load_charset_map_from_vector): New function.
19764 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19765 (encode_char): If the charset is compact, change a character index
19768 * coding.c (coding_alloc_by_making_gap): Check the case that the
19769 source and destination are the same correctly.
19770 (decode_coding_raw_text): Set coding->consumed_char and
19771 coding->consumed to 0.
19772 (produce_chars): If coding->chars_at_source is nonzero, update
19773 coding->consumed_char and coding->consumed before calling
19775 (Fdefine_coding_system_alias): Register ALIAS in
19776 Vcoding_system_alist.
19777 (syms_of_coding): Define `no-conversion' coding system at the tail.
19779 * fileio.c (Finsert_file_contents): Set coding_system instead of
19780 val. If the current buffer is multibyte, always call
19783 * xfaces.c (try_font_list): Give higher priority to fontset's
19784 family than face's family.
19786 2008-02-01 Kenichi Handa <handa@m17n.org>
19788 * callproc.c (Fcall_process): Be sure to give the current buffer
19789 to decode_coding_c_string.
19791 * xfaces.c (try_font_list): Give a family specified in a fontset
19792 higher priority than a family specified in a face.
19794 2008-02-01 Kenichi Handa <handa@m17n.org>
19796 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19797 Fix arguments to insert_from_buffer.
19799 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19801 2008-02-01 Kenichi Handa <handa@m17n.org>
19803 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19804 (decode_coding_gap): Set coding->dst_multibyte correctly.
19806 2008-02-01 Kenichi Handa <handa@m17n.org>
19808 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19809 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19810 (encode_coding_utf_16): Substitute coding->default_char for
19811 non-Unicode characters.
19812 (decode_coding): Don't call record_insert here.
19813 (setup_coding_system): Initialize `surrogate' of
19814 coding->spec.utf_16 to 0.
19815 (EMIT_ONE_BYTE): Fix for multibyte case.
19817 * insdel.c (insert_from_gap): Call record_insert.
19819 2008-02-01 Kenichi Handa <handa@m17n.org>
19821 * casefiddle.c (casify_region): Fix multibyte case.
19823 * character.c (c_string_width): Add return type `int'.
19824 (char_string_with_unification): Delete arg ADVANCED.
19826 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19827 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19828 (CHAR_STRING_ADVANCE): Make it do-while statement.
19830 * chartab.c (sub_char_table_set_range): Optimize for the case
19831 DEPTH == 3. Add workaround code for a GCC optimization bug.
19833 * charset.c (parse_charset_map): Remove an unused variable.
19835 * coding.c: Delete unused variables.
19837 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19838 earlier. If inserted is zero and the coding system doesn't
19839 require flushing, don't call decode_coding_gap.
19841 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19843 2008-02-01 Kenichi Handa <handa@m17n.org>
19845 The following changes are for using Unicode as an internal
19846 character model, and use UTF-8 format for buffer/string
19849 * .gdbinit (xchartable): Adjust for the change of char table structure.
19850 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19852 * Makefile.in (obj): Add character.o and chartab.o.
19853 (lisp, shortlisp): Remove utf-8.elc.
19854 (*.o): For many files, change dependency on charset.h to
19855 character.h, and add dependency on character.h.
19856 (character.o, chartab.o): New targets.
19858 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19859 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19860 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19863 * dired.c, filelock.c: Include "character.h".
19865 * alloc.c: Include "character.h" instead of "charset.h".
19866 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19867 (syms_of_alloc): Remove defsubr for Smake_char_table.
19869 * buffer.c: Include "character.h" instead of "charset.h", don't
19870 include "coding.h".
19871 (Fset_buffer_multibyte): Adjust for UTF-8.
19873 * buffer.h: EXFUN Fbuffer_live_p.
19875 * callproc.c: Include "character.h" instead of "charset.h".
19876 (Fcall_process): Big change for the new code-conversion APIs.
19878 * casetab.c: Include "character.h" instead of "charset.h".
19879 (set_canon, set_identity, shuffle): Adjust for the new
19880 map_char_table spec.
19881 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19882 accessing the char table structure.
19884 * chartab.c: New file that implements char table.
19886 * category.c: Include "character.h".
19887 (copy_category_entry): New function.
19888 (copy_category_table): Call map_char_table and copy_category_entry.
19889 (Fmake_category_table): Initialize all top-level slots.
19890 (char_category_set): New function.
19891 (modify_lower_category_set): Delete.
19892 (Fmodify_category_entry): Call char_table_ref_and_range.
19894 * category.h (CATEGORY_SET): Just call char_category_set.
19896 * ccl.c: Include "character.h".
19897 (Qccl, Qcclp): New variables.
19898 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19899 it's less than 256.
19900 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19901 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19903 (ccl_driver): Change types of argument, adjust code accordingly.
19904 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19906 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19908 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19909 New members src_multibyte, dst_multibyte, consumed, and produced.
19910 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19911 (CODING_SPEC_CCL_PROGRAM): New macro.
19912 (ccl_driver): Update prototype.
19913 (Qccl, Qcclp, Fccl_program_p): Extern them.
19914 (CHECK_CCL_PROGRAM): New macro.
19916 * character.c, character.h, chartab.c: New files.
19918 * charset.c: Mostly re-written. Move character and multibyte sequence
19919 handling codes to character.c.
19921 * charset.h: Mostly re-written. Move character and multibyte sequence
19922 handling codes to character.h.
19924 * coding.c, coding.h: Mostly re-written.
19926 * composite.c: Include "character.h" instead of "charset.h".
19927 (CHAR_WIDTH): Move to character.h.
19928 (HASH_KEY, HASH_VALUE): Delete.
19930 * composite.h (enum composition_method): Change order of enumeration
19933 * data.c: Include "character.h" instead of "charset.h".
19934 (Faref): Call CHAR_TABLE_REF for a char table.
19935 (Faset): Call CHAR_TABLE_SET for a char table.
19937 * dispextern.h (free_realized_face, check_face_attribytes)
19938 (generate_ascii_font): Extern them.
19939 (free_realized_multibyte_face): Delete extern.
19941 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19944 * editfns.c: Include "character.h" instead of "charset.h".
19945 (Fchar_to_string): Always call CHAR_STRING.
19947 * emacs.c (main): Call init_charset_once, init_charset,
19948 syms_of_chartab, and syms_of_character.
19950 * fileio.c: Include "character.h" instead of "charset.h".
19951 (Finsert_file_contents): Big change for the new code-conversion API.
19952 (choose_write_coding_system, Fwrite_region): Likewise.
19953 (build_annotations_2): Delete.
19954 (e_write): Big change for the new code-conversion API.
19956 * fns.c: Include "character.h" instead of "charset.h".
19957 (copy_sub_char_table): Move to chartab.c.
19958 (Fcopy_sequence): Call copy_char_table for a char table.
19959 (concat): Delete codes calling count_multibyte.
19960 (string_char_to_byte, string_byte_to_char): Adjust for the new
19962 (internal_equal): Adjust for the change of char table structure.
19963 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19964 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19965 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19966 (char_table_translate, optimize_sub_char_table)
19967 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19969 (char_table_ref_and_index): Delete.
19970 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19971 (Fmd5): Call preferred_coding_system instead of accessing
19972 Vcoding_category_list. Adjust for the new code-conversion API.
19973 (syms_of_fns): Move defsubr for char table related functions to
19976 * fontset.c: Mostly re-written.
19978 * fontset.h (struct font_info): Change type of the member encoding_type.
19979 (enum FONT_SPEC_INDEX): New enum.
19980 (fontset_font_pattern, fs_load_font): Update prototype.
19981 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19983 * indent.c: Include "character.h" instead of "charset.h".
19984 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19986 * insdel.c: Include "character.h" instead of "charset.h".
19987 (copy_text): Don't refer to Vnonascii_translation_table.
19988 (insert_from_gap): New function.
19990 * keyboard.c: Include "character.h" instead of "charset.h".
19991 (command_loop_1): Never call direct_output_forward_char before
19992 a non-ASCII character.
19993 (read_char): If Vkeyboard_translate_table is a char table, always
19994 translate a character.
19996 * keymap.c: Include "character.h".
19997 (store_in_keymap): Handle the case that IDX is a cons.
19998 (Fdefine_key): Handle the case that KEY is a cons and the car part
19999 is also a cons (range).
20000 (push_key_description): Adjust for the new character code.
20001 (describe_vector): Call describe_char_table for a char table.
20002 (describe_char_table): New function.
20004 * keymap.h (describe_char_table): Extern it.
20006 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20007 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20008 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20009 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20011 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20013 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20014 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20015 (CHARTAB_SIZE_BITS_3): New macros.
20016 (chartab_size): Extern it.
20017 (struct Lisp_Char_Table): Re-design.
20018 (struct Lisp_Sub_Char_Table): New structure.
20019 (HASH_KEY, HASH_VALUE): Move from fns.c.
20020 (CHARACTERBITS): Define as 22.
20021 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20022 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20023 (GC_SUB_CHAR_TABLE_P): New macro.
20024 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20025 (code_convert_string_norecord): Deleted extern.
20026 (init_character_once, syms_of_character, init_charset)
20027 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20029 * lread.c: Include "character.h".
20030 (read_multibyte): New arg NBYTES.
20031 (read_escape): Change the meaning of returned *BYTEREP.
20032 (to_multibyte): Delete.
20033 (read1): Adjust the handling of char table and string.
20035 * print.c: Include "character.h" instead of "charset.h".
20036 (print_string): Convert 8-bit raw bytes to octal form by
20037 string_escape_byte8.
20038 (print_object): Adjust for the new multibyte form. Print 8-bit
20039 raw bytes always in octal form. Handle sub char table correctly.
20041 * process.c: Include "character.h" instead of "charset.h".
20042 (read_process_output, send_process): Adjust for the new
20043 code-conversion API.
20045 * puresize.h (BASE_PURESIZE): Increase.
20047 * regex.c: Include "character.h" instead of "charset.h".
20048 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20049 (regex_compile): Accept a range whose starting and ending
20050 character have different leading bytes.
20051 (analyse_first): Adjust for the above change.
20053 * search.c: Include "character.h" instead of "charset.h".
20054 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20055 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20057 * syntax.c: Include "character.h" instead of "charset.h".
20058 (syntax_parent_lookup): Delete.
20059 (Fmodify_syntax_entry): Accept a cons as CHAR.
20060 (skip_chars): Adjust for the new multibyte form.
20061 (init_syntax_once): Call char_table_set_range instead of directly
20062 accessing the structure of a char table.
20064 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20065 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20066 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20067 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20069 * term.c: Include "buffer.h" and "character.h".
20070 (encode_terminal_code, write_glyphs): Adjust for the new
20071 code-conversion API.
20072 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20074 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20076 * xdisp.c: Include "character.h".
20077 (get_next_display_element): Adjust for the new multibyte form.
20078 (disp_char_vector): Adjust for the new char table structure.
20079 (decode_mode_spec_coding): Adjust for the new structure of
20081 (decode_mode_spec): Adjust for the new code-conversion API.
20083 * xfaces.c: Include "character.h" instead of "charset.h".
20084 (load_face_font): Adjust for the change of choose_face_font and
20086 (generate_ascii_font): New function.
20087 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20088 (set_font_frame_param): Adjust for the change of choose_face_font.
20089 (free_realized_face): Make it public.
20090 (free_realized_faces_for_fontset): Rename from
20091 free_realized_multibyte_face. Free also faces realized for ASCII.
20092 (choose_face_font): Change arguments. Adjust for the change of
20093 fontset_font_pattern and FS_LOAD_FONT.
20095 * xfns.c: Include "character.h".
20096 (x_encode_text): Adjust for the new code-conversion API.
20098 * xselect.c: Don't include "charset.h".
20099 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20101 * xterm.c: Include "character.h".
20102 (x_encode_char): New argument CHARSET. Change caller.
20103 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20104 Call ENCODE_CHAR instead of SPLIT_CHAR.
20105 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20106 CHAR_WIDTH instead of CHARSET_WIDTH.
20107 (XTread_socket): Adjust for the new code-conversion API.
20108 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20109 (x_load_font): Adjust for the change of struct font.
20111 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20113 * xfaces.c (face_at_buffer_position): Remove unused vars.
20115 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20117 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20118 Fix overflow checking.
20120 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20122 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20123 Cancel previous change.
20125 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20127 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20128 ccl->eight_bit_control. Fix check for buffer overflow.
20129 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20130 (ccl_driver): Initialize extra_bytes to 0.
20132 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20134 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20135 return it ORed with ctrl_modifier.
20137 2008-01-29 Miles Bader <miles@gnu.org>
20139 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20141 2008-01-28 Jason Rumney <jasonr@gnu.org>
20143 * w32.c (stat): Don't double check for networked drive.
20145 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20147 * window.c (run_window_configuration_change_hook): New function.
20148 Code extracted from set_window_buffer. Set the selected frame.
20149 (set_window_buffer): Use it.
20150 * window.h (run_window_configuration_change_hook): Declare.
20151 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20153 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20155 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20157 * Makefile.in: Remove references to unused macros.
20159 2008-01-26 Eli Zaretskii <eliz@gnu.org>
20161 * w32.c (g_b_init_get_sid_sub_authority)
20162 (g_b_init_get_sid_sub_authority_count): New static variables.
20163 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20164 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20165 (init_user_info): Use them to retrieve uid and gid.
20166 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20167 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20168 st_uid and st_gid of the file.
20170 2008-01-26 Jason Rumney <jasonr@gnu.org>
20172 * w32.c (logon_network_drive): New function.
20175 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
20177 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20178 invisible text covered with an ellipsis.
20180 2008-01-25 Richard Stallman <rms@gnu.org>
20182 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20183 jump back to beginning. Move some other initializations after that.
20184 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20186 (syms_of_xdisp): Init them.
20188 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20190 * buffer.c (reset_buffer_local_variables):
20191 Implement `permanent-local-hook'.
20192 (Qpermanent_local_hook): New variable.
20193 (syms_of_buffer): Init and staticpro it.
20195 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
20197 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20199 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20201 * fns.c (Fclrhash): Return TABLE.
20203 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20205 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20206 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20207 is set even without positional changes.
20208 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20210 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20212 2008-01-23 Jason Rumney <jasonr@gnu.org>
20214 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20216 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20217 the unicode range available in MULE by locale-coding-system.
20218 Improve dbcs lead byte detection. Set event timestamp and modifiers
20221 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20223 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20224 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20225 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20226 when used on child processes.
20228 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
20230 * dbusbind.c (Fdbus_method_return_internal): Rename from
20231 Fdbus_method_return.
20232 (Fdbus_unregister_object): Move to dbus.el.
20233 (Fdbus_call_method, Fdbus_method_return_internal)
20234 (Fdbus_send_signal): Improve debug messages.
20236 2008-01-20 Martin Rudalics <rudalics@gmx.at>
20238 * undo.c (undo_inhibit_record_point): New variable.
20239 (syms_of_undo): Initialize it.
20240 (record_point): Don't record point when undo_inhibit_record_point
20243 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20245 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20247 * xdisp.c (Qauto_hscroll_mode): New var.
20248 (syms_of_xdisp): Initialize it.
20249 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20251 (hscroll_windows): Don't check automatic_hscrolling_p here.
20253 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20254 vscroll if we're setting window-buffer to the value it already has.
20256 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20258 * m/intel386.h: Remove references to XENIX.
20260 2008-01-17 Andreas Schwab <schwab@suse.de>
20262 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20263 instead of HAVE_X86_64_LIB64_DIR.
20264 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20266 2008-01-17 Glenn Morris <rgm@gnu.org>
20268 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20269 to HAVE_X86_64_LIB64_DIR.
20271 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20278 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20280 * sysdep.c: Remove code containing references to symbols defined
20281 by unsupported systems.
20283 2008-01-16 Glenn Morris <rgm@gnu.org>
20285 * coding.c (select-safe-coding-system-function): Doc fix.
20287 2008-01-15 Glenn Morris <rgm@gnu.org>
20289 * config.in: Revert 2008-01-13 change: this is a generated file.
20291 2008-01-13 Tom Tromey <tromey@redhat.com>
20293 * lisp.h: Fix typo.
20295 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20301 * s/ptx4.h: Remove files for systems no longer supported.
20303 * callproc.c (Fcall_process): Fix previous change.
20305 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20307 * unexsunos4.c: Remove file, system not supported anymore.
20327 * alloc.c: Remove code containing references to symbols defined by
20328 unsupported systems.
20330 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20332 * coding.c (detect_coding_mask): Fix previous change.
20334 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20336 * coding.c (detect_coding_iso2022): New arg
20337 latin_extra_code_state. Allow Latin extra codes only
20338 when *latin_extra_code_state is nonzero.
20339 (detect_coding_mask): If there is a NULL byte, detect the encoding
20340 as UTF-16 or binary. If Latin extra codes exist, detect the
20341 encoding as ISO-2022 only when there's no other proper encoding is
20344 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20346 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20349 2008-01-08 Richard Stallman <rms@gnu.org>
20351 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20353 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
20355 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20356 menu bar in parentheses.
20358 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20362 * m/alliant-2800.h:
20370 * m/aviion-intel.h:
20465 * unexsni.c: Remove files for systems no longer supported.
20467 * m/intel386.h: Remove references to unsupported systems.
20469 * w32.c (get_emacs_configuration): Remove reference to i860.
20471 * sysdep.c: Remove dead code.
20473 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20476 * m/masscomp.h: Remove files. Platform is obsolete.
20478 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
20480 * dbusbind.c (Fdbus_method_return): New function.
20481 (xd_read_message): Add the serial number to the event.
20482 (Fdbus_register_method): Activate the function.
20484 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20486 * keyboard.c (read_key_sequence): Fix typo.
20488 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
20490 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20491 (xd_signature, xd_append_arg): Handle element type detection for
20493 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20494 SDATA () calls; this must be solved more general.
20495 (Fdbus_register_signal): Use SBYTES instead of strlen.
20497 2008-01-03 Magnus Henoch <magnus@zemdatav>
20499 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20500 unsigned int for byte values (necessary for big-endian platform).
20501 (Fdbus_call_method): Handle the case of no returned arguments.
20503 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20505 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20507 2007-12-31 Magnus Henoch <mange@freemail.hu>
20509 * dbusbind.c (xd_signature): Signature of variant is just "v".
20511 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
20513 * dbusbind.c: Fix several errors and compiler warnings.
20514 Reported by Tom Tromey <tromey@redhat.com>.
20515 (XD_ERROR, XD_DEBUG_MESSAGE)
20516 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20517 (xd_append_arg): Part for basic D-Bus types rewritten.
20518 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20519 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20521 (xd_read_message): Return Qnil. Don't signal an error; it is not
20522 useful during event reading.
20523 (Fdbus_register_signal): Signal an error if the check for
20525 (Fdbus_register_method): New function. The implementation is not
20526 complete, the call of the function signals an error therefore.
20527 (Fdbus_unregister_object): New function, renamed from
20528 Fdbus_unregister_signal. The initial check signals an error, if
20529 the object is not well formed.
20531 2007-12-30 Richard Stallman <rms@gnu.org>
20533 * textprop.c (get_char_property_and_overlay):
20534 Signal error if POSITION is out of range in a buffer.
20536 2007-12-29 Martin Rudalics <rudalics@gmx.at>
20538 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20539 because the original parameters are in pure storage now.
20541 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20543 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20545 2007-12-22 Eli Zaretskii <eliz@gnu.org>
20547 * callint.c (syms_of_callint) <command-history>: Add reference to
20548 history-length in the doc string.
20550 2007-12-17 Jason Rumney <jasonr@gnu.org>
20552 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20553 before passing as wParam.
20555 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
20557 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20558 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20559 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20560 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20562 (Fdbus_call_method): Fix docstring.
20564 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
20566 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20568 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20569 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20571 (xd_signature): New function.
20572 (xd_append_arg): Compute also signatures. Major rewrite.
20573 (xd_retrieve_arg): Make debug messages friendly.
20574 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20575 Check for signatures of arguments.
20577 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
20579 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20580 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20581 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20582 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20583 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20584 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20585 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20586 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20587 (xd_retrieve_value): Remove. Functionality included in ...
20588 (xd_append_arg): New function.
20589 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20591 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
20593 * dbusbind.c (top): Include <stdio.h>.
20594 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20595 dbus_message_new_method_call and dbus_message_new_signal.
20596 (Fdbus_register_signal): Rename unique_name to uname.
20597 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20598 non-existing unique name. Fix typos in matching rule. Return an
20599 object which is useful in Fdbus_unregister_signal.
20600 (Fdbus_unregister_signal): Reimplementation, in order to remove
20601 only the corresponding entry.
20602 (Vdbus_registered_functions_table): Change the order of entries.
20603 Apply these changes in xd_read_message and Fdbus_register_signal.
20605 2007-12-16 Andreas Schwab <schwab@suse.de>
20607 * fileio.c (Finsert_file_contents): Fix overflow check to not
20608 depend on undefined integer overflow.
20610 2007-12-14 Jason Rumney <jasonr@gnu.org>
20612 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20613 for characters above 127.
20615 2007-12-13 Jason Rumney <jasonr@gnu.org>
20617 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20618 before dereferencing array.
20619 (lookup_vk_code): Remove zero comparison.
20621 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
20623 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20624 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20625 Use `unsigned int' instead of `uint'.
20626 (xd_read_message, Fdbus_register_signal): Split expressions into
20627 multiple lines before operators "&&" and "||", according to the
20628 GNU Coding Standards.
20630 2007-12-14 Eli Zaretskii <eliz@gnu.org>
20632 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20634 2007-12-12 Juri Linkov <juri@jurta.org>
20636 * buffer.c (Frename_buffer): In interactive spec replace
20637 `read-buffer' with `read-string' that uses `buffer-name-history'
20638 as history, and the current buffer's name as default.
20640 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20642 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20643 manipulating the backtrace manually.
20644 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20645 (struct backtrace, backtrace_list): Remove.
20646 (command_loop_1): Remove dead var `no_direct'.
20648 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20649 preserve non-built-in buffer-local variables.
20650 (Fkill_all_local_variables): Don't re-create&re-set permanent
20651 buffer-local variables.
20653 2007-12-09 Juri Linkov <juri@jurta.org>
20655 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20656 Lisp code that uses `read-buffer' with current buffer as default.
20658 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
20660 * dbusbind.c (xd_read_message): Generate an event for every
20661 registered handler. There might be several handlers registered
20662 for the same signal.
20663 (Fdbus_register_signal): Don't overwrite a registration for the
20664 same signal. Add a new registration if handlers are different.
20665 (Vdbus_registered_functions_table): Rework doc string.
20667 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
20669 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20670 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20671 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20672 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20673 Unify argument lists.
20674 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20675 arguments and hash table keys. Use unique name for service.
20676 (Fdbus_unregister_signal): Remove checks.
20677 (Vdbus_registered_functions_table): Fix doc string.
20679 2007-12-05 Magnus Henoch <mange@freemail.hu>
20681 * process.c (make_process): Initialize pty_flag to 0.
20683 2007-12-05 Jason Rumney <jasonr@gnu.org>
20685 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20688 2007-12-05 Richard Stallman <rms@gnu.org>
20690 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20692 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20694 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20696 (mac_try_close_socket) [MAC_OSX]: New function.
20697 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20698 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20700 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20701 Use mac_try_close_socket.
20703 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20705 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20707 (copy_dysymtab): Compute relocation base here.
20708 (rebase_reloc_address) [__ppc64__]: New function.
20709 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20712 2007-12-05 Jason Rumney <jasonr@gnu.org>
20714 * w32proc.c (sys_spawnve): Quote args with wildcards.
20716 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20718 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20720 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20722 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
20724 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20725 Move check for Vdbus_registered_functions_table to
20726 xd_read_queued_messages.
20727 (xd_read_queued_messages): Protect xd_read_message calls by
20728 internal_condition_case_1.
20730 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
20732 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20733 Qdbus_system_bus and Qdbus_session_bus, respectively.
20734 (Vdbus_intern_symbols): Remove.
20735 (Vdbus_registered_functions_table): New hash table.
20736 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20737 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20738 Rewrite in order to manage registered functions by hash table
20739 Vdbus_registered_functions_table.
20741 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20743 * xterm.c: Update URL to Window Manager Specification in comment.
20745 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
20747 * config.in (HAVE_DBUS): Add.
20749 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20750 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20751 (obj): Add $(DBUS_OBJ).
20752 (LIBES): Add $(DBUS_LIBS).
20753 (dbusbind.o): New target.
20755 * dbusbind.c: New file.
20757 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20759 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20760 (Qdbus_event): New Lisp symbol.
20761 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20762 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
20763 (keys_of_keyboard): Define dbus-event.
20765 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20767 2007-12-01 Richard Stallman <rms@gnu.org>
20769 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20771 2007-11-30 Jason Rumney <jasonr@gnu.org>
20773 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20774 (w32con_reset_terminal_modes): Clear screen buffer.
20775 (w32_face_attributes): Don't use color indexes that are out of range.
20776 Only reverse the default colors.
20778 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20781 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20783 2007-11-29 Jason Rumney <jasonr@gnu.org>
20785 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20786 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20787 if the terminal colors are initialized.
20788 (unspecified_fg, unspecified_bg): Remove unused declarations.
20790 2007-11-29 Andreas Schwab <schwab@suse.de>
20792 * keyboard.c (apply_modifiers): Fix typo.
20794 2007-11-29 Richard Stallman <rms@gnu.org>
20796 * keymap.c (Fcurrent_local_map): Doc fix.
20798 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20800 * s/gnu-kfreebsd.h: New file.
20802 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20804 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20805 Don't cast redundantly.
20807 * keyboard.c (KEY_TO_CHAR): New macro.
20808 (parse_modifiers, apply_modifiers): Accept integer arguments.
20809 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20810 for chars and symbol keys.
20811 After doing such remapping, apply function-key-map again.
20813 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20815 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20818 2007-11-26 Andreas Schwab <schwab@suse.de>
20820 * process.c (list_processes_1): Fix indentation level of the
20823 2007-11-23 Andreas Schwab <schwab@suse.de>
20825 * editfns.c (Fformat): Handle %c specially since it requires the
20826 argument to be of type int.
20828 2007-11-23 Markus Triska <markus.triska@gmx.at>
20830 * emacs.c (main): Call init_editfns before init_process, since
20831 init_process sets Vprocess_connection_type depending on OS release.
20833 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20835 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20836 (find_symbol_value): Use do_symval_forwarding.
20838 * data.c (set_internal): Set the value in the `cons-cell' (for
20839 Buffer_Local_values) not only for frame-local variables.
20841 2007-11-22 Andreas Schwab <schwab@suse.de>
20843 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20845 * keymap.c (Fsingle_key_description): Likewise.
20846 * print.c (print_object): Likewise.
20848 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20850 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20851 file for image is nil.
20853 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20855 * term.c: Include stdarg.h.
20856 (fatal): Implement using varargs.
20857 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20859 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20861 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20862 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20863 Update call to buffer_slot_type_mismatch.
20864 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20865 (buffer_slot_type_mismatch): Update.
20866 * buffer.c (buffer_local_types): Remove.
20867 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20868 (defvar_per_buffer): Set the type in the buffer_objfwd.
20870 2007-11-21 Jason Rumney <jasonr@gnu.org>
20872 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20873 CreateFileMapping returns NULL on failure.
20875 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20877 * search.c (Fset_match_data): Remove the `evaporate' feature.
20878 (unwind_set_match_data): Don't use the `evaporate' feature.
20880 2007-11-21 Jason Rumney <jasonr@gnu.org>
20882 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20884 * w32console.c (w32con_write_glyphs): Remove unused variables.
20886 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20888 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20890 * s/darwin.h (MULTI_KBOARD): Remove.
20892 * macfns.c (x_create_tip_frame, Fx_create_frame)
20893 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20895 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20897 * buffer.c (Fbuffer_local_value): Remove redundant test.
20898 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20899 than in `current-buffer' to match the comment.
20900 Do the swap using swap_in_global_binding.
20902 * data.c (store_symval_forwarding, set_internal):
20903 * eval.c (specbind): Remove dead code.
20905 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20906 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20907 Since we do not want to see internal Lisp_*fwd objects here.
20909 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20911 * sysdep.c (init_system_name): Use getaddrinfo if available.
20913 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20914 (x_scroll_bar_note_movement): start, end, with, height in struct
20915 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20917 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20919 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20921 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20923 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20924 This undoes Richard's change of 14-Oct-2002.
20926 * alloc.c (allocate_other_vector):
20927 * lisp.h (allocate_other_vector): Remove.
20929 * window.c (struct save_window_data): Move non-lisp data to the end
20930 and make it `int' rather than Lisp_Object.
20931 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20932 Done wrap/unwrap integer values.
20933 (Fset_window_configuration, compare_window_configurations):
20934 Update use of fields to their new types.
20936 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20937 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20938 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20939 (SET_SCROLL_BAR_X_WINDOW): Remove.
20940 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20941 Access the new x_window field directly.
20942 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20943 Don't wrap/unwrap integers into Lisp_Objects.
20944 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20945 (x_scroll_bar_report_motion):
20946 Don't wrap/unwrap integers into Lisp_Objects.
20947 (x_term_init): Use SDATA.
20948 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20949 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20950 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20951 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20952 * xfns.c (x_set_background_color):
20953 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20954 Access the new x_window field directly.
20956 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20957 (allocate_pseudovector): Make non-static.
20959 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20960 (allocate_pseudovector): Declare.
20961 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20963 2007-11-15 Andreas Schwab <schwab@suse.de>
20965 * editfns.c (Fformat): Correctly format EMACS_INT values.
20966 Also take precision into account when formatting an integer.
20968 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20970 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20972 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20973 (syms_of_keyboard): Defsubr it.
20975 * data.c (swap_in_global_binding): Fix longstanding bug where
20976 store_symval_forwarding was not called with the right second argument,
20977 thus causing objfwd-ing from being dropped.
20979 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
20981 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20982 (Fx_display_pixel_height, Fx_display_planes)
20983 (Fx_display_color_cells, Fx_server_max_request_size)
20984 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20985 (Fx_display_visual_class, Fx_display_save_under):
20986 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20987 (Fx_display_pixel_height, Fx_display_planes)
20988 (Fx_display_color_cells, Fx_server_max_request_size)
20989 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20990 (Fx_display_mm_height, Fx_display_mm_width)
20991 (Fx_display_backing_store, Fx_display_visual_class)
20992 (Fw32_select_font, Fx_display_save_under):
20993 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20994 (Fx_display_pixel_height, Fx_display_planes)
20995 (Fx_display_color_cells, Fx_server_max_request_size)
20996 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20997 (Fx_display_save_under): Fix typos in docstrings.
20999 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21001 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21002 corresponding to deleted entries; they are an implementation detail.
21003 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21005 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21006 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21007 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21008 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21009 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21010 (Fw32_define_rgb_color, Fw32_load_color_file)
21011 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21012 Fix typos in docstrings.
21013 (Fx_server_version): Reflow docstring.
21014 (Fw32_shell_execute): Doc fixes.
21016 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
21018 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21019 if w32_parse_hot_key returned nil.
21021 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21023 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21025 2007-11-09 Jason Rumney <jasonr@gnu.org>
21027 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21029 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21031 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21032 Remove W32_SCROLL_BAR_CLICK_EVENT.
21034 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21035 Add MULTIMEDIA_KEY_EVENT.
21037 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21038 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21039 (make_lispy_event) [WINDOWSNT]: Use it to translate
21040 MULTIMEDIA_KEY_EVENT.
21042 * w32term.h (WM_APPCOMMAND): Define if not already.
21043 (GET_APPCOMMAND_LPARAM): Likewise.
21045 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21048 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21049 (syms_of_w32fns): Export and initialize it.
21050 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21052 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
21054 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21057 * xdisp.c (handle_face_prop): Fix last change.
21059 2007-11-09 Richard Stallman <rms@gnu.org>
21061 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21062 not just for after-strings and before-strings.
21063 Call face_for_overlay_string and pass the overlay to it.
21064 (handle_display_prop): Determine whether property came from an overlay.
21065 Pass OVERLAY arg to handle_single_display_spec.
21066 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21067 (load_overlay_strings): Fill in it->string_overlays.
21068 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21070 * xfaces.c (face_for_overlay_string): Function renamed from
21071 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21073 * dispextern.h (struct it): New elt string_overlays.
21074 New elt from_overlay, also in stack.
21075 Rearrange a few elements.
21076 (face_for_overlay_string): Decl renamed from
21077 face_at_buffer_position_no_overlays, and add argument.
21079 2007-11-09 Richard Stallman <rms@gnu.org>
21081 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21082 to get the base face for an overlay string.
21084 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21086 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21088 * xdisp.c (handle_stop): Move some code out of loop.
21090 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21092 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21093 Fix conversion from Lisp object to ATSUFontID.
21095 2007-11-09 Jason Rumney <jasonr@gnu.org>
21097 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21099 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21101 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21102 Don't assume regions are aligned to page boundary.
21103 (print_load_command_name): Add LC_UUID if defined.
21105 2007-11-09 Richard Stallman <rms@gnu.org>
21107 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21109 2007-11-07 Jason Rumney <jasonr@gnu.org>
21111 * s/windows95.h: Remove.
21113 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21115 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21116 abort with a message on unhandled store_type values.
21118 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21120 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21121 Remove HAVE_X11R5 and HAVE_X11R4.
21123 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21125 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21127 2007-11-01 Johan Bockgård <bojohan@gnu.org>
21129 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21130 Don't set s->stippled_p here, since it has already been set by
21131 x_set_glyph_string_gc from x_draw_glyph_string.
21133 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21135 * sunfns.c: Remove file.
21139 * m/sparc.h: Remove Sun windows code.
21141 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21143 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21144 (init_keyboard): Set current_kboard's window-system to nil.
21145 (tty_read_avail_input): Typo.
21146 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21148 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21155 * Makefile.in: Remove all mentions of X10.
21157 * dispnew.c (syms_of_display): Don't mention version 10.
21159 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
21161 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21162 ($(BLD)/abbrev.$(O)): Remove.
21164 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21166 Rewrite abbrev.c in Elisp.
21167 * image.c (Qcount): Don't declare as extern.
21168 (syms_of_image): Initialize and staticpro `Qcount'.
21169 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21170 * emacs.c (main): Don't call syms_of_abbrev.
21171 * Makefile.in (obj): Remove abbrev.o.
21172 (abbrev.o): Remove.
21173 * abbrev.c: Remove.
21175 2007-10-26 Martin Rudalics <rudalics@gmx.at>
21177 * window.c (window_min_size_2): Don't count header-line.
21179 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21181 * frame.h (struct frame): Move all bit fields after the first bit
21182 field to take advantage of the available space. Group all the
21183 chars together to reduce wasted space due to padding.
21185 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
21187 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21189 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21190 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21191 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21192 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21193 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21194 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21195 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21196 (last_marked, mark_object_loop_halt): Make static.
21198 * frame.c (syms_of_frame) <delete-frame-functions>:
21199 Fix typo in docstring.
21201 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
21203 * w32.c (init_environment): Fix tiny memory leak.
21204 (w32_get_resource): Remove unused variable `ok'.
21206 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21208 Make `window-system' into a keyboard-local variable (rather than
21209 frame-local as done originally by multi-tty).
21211 * keyboard.h (struct kboard): Add Vwindow_system.
21212 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21213 (mark_kboards): Mark Vwindow_system.
21215 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21216 (init_display): Don't set the obsolete `window-system' frame-param.
21218 * xterm.c (x_term_init):
21219 * w32term.c (w32_create_terminal):
21220 * term.c (init_tty): Set Vwindow_system.
21221 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21222 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21224 * xfns.c (Fx_create_frame, x_create_tip_frame):
21225 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21226 * macfns.c (Fx_create_frame):
21227 Don't set the obsolete `window-system' frame-param.
21229 * frame.h (Qwindow_system): Remove.
21230 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21231 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21233 2007-10-24 Richard Stallman <rms@gnu.org>
21235 * frame.c (x_figure_window_size): For fullscreen case,
21236 set USPosition | PPosition without clobbering rest of window_prompting.
21238 * keyboard.c (Fcurrent_idle_time): Doc fix.
21240 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21242 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21244 * process.c (unwind_request_sigio): Only define if __ultrix__.
21246 * callproc.c (child_setup): Remove spurious *.
21248 * lisp.h (Fget_text_property): Declare.
21249 (have_menus_p): Declare it here rather than in sys-dep header files.
21250 * macterm.h (have_menus_p):
21251 * msdos.h (have_menus_p):
21252 * xterm.h (have_menus_p): Remove.
21254 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21255 (Fmake_variable_frame_local): Just check the variable's const-ness
21256 rather than checking nil or t.
21258 2007-10-22 Jason Rumney <jasonr@gnu.org>
21260 * w32fns.c: Include math.h.
21261 (w32_abort): Declaration moved to nt/config.nt.
21263 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21264 (abort): Redefinition moved to nt/config.nt.
21266 * m/windowsnt.h: Remove.
21268 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
21270 * emacs.c (Fdump_emacs): Fix typo in message.
21271 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21272 <installation-directory>: Reflow docstring.
21274 2007-10-22 Juri Linkov <juri@jurta.org>
21276 * minibuf.c: Allow minibuffer default to be a list of default values.
21277 With empty input use the first element of this list as returned default.
21279 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21280 (read_minibuf): If defalt is cons, set histstring to its car.
21281 (Fread_string): If default_value is cons, set val to its car.
21282 (Fread_buffer): If def is cons, use its car.
21283 (Fcompleting_read): If defalt is cons, set val to its car.
21285 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
21287 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21289 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
21291 * doc.c (Fdocumentation): Check for advice in all cases.
21293 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
21295 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21297 2007-10-19 Richard Stallman <rms@gnu.org>
21299 * doc.c (Fdocumentation): Check for and handle an advised function.
21301 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
21303 * process.c (Fset_process_filter): Doc fix.
21305 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21307 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21308 which caused key-translation-map to applied repeatedly (thus breaking
21311 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21313 * xselect.c (x_own_selection, x_handle_selection_clear)
21314 (x_clear_frame_selections):
21315 * w32menu.c (list_of_panes, list_of_items):
21316 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21317 * textprop.c (validate_plist, interval_has_all_properties)
21318 (interval_has_some_properties, interval_has_some_properties_list)
21319 (add_properties, text_property_list):
21320 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21321 * minibuf.c (Fassoc_string):
21322 * macselect.c (x_own_selection, x_clear_frame_selections)
21323 (Fx_disown_selection_internal):
21324 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21325 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21327 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
21329 * process.c: Link to libs for calling res_init() if available.
21330 (Fmake_network_process): Call res_init() before getaddrinfo or
21331 gethostbyname, if possible.
21333 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21335 * lread.c (read1): Set pvectype for char_tables.
21337 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21338 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21340 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21342 * alloc.c (free_misc): Use XMISCTYPE.
21343 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21345 2007-10-17 Glenn Morris <rgm@gnu.org>
21347 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21348 (syms_of_minibuf): Add Qcompletion_ignore_case.
21349 * dired.c (Qcompletion_ignore_case): Change to external.
21350 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21351 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21352 (Fread_file_name): Use it rather than intern'ing.
21354 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21355 (Fread_coding_system): Ignore case of user input.
21357 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21359 * xdisp.c (handle_display_prop): Ignore display specs after
21360 replacing one when string text is being replaced.
21361 (handle_single_display_spec): Pretend as if characters with display
21362 property haven't been consumed only when buffer text is being replaced.
21364 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21366 * xfns.c (Fx_create_frame, Fx_display_list):
21367 * window.c (window_fixed_size_p, enlarge_window)
21368 (shrink_window_lowest_first):
21369 * macterm.c (init_font_name_table):
21370 * macfns.c (Fx_create_frame, Fx_display_list):
21371 * lread.c (close_load_descs):
21372 * keyboard.c (read_char_x_menu_prompt):
21373 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21374 * coding.c (code_convert_region_unwind): Test the type of an object
21375 rather than just !NILP before extracting data from it.
21377 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21379 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21380 (XMISCANY): New macro.
21381 (XMISCTYPE): Use it.
21382 (struct Lisp_Misc_Any): New type.
21383 (union Lisp_Misc): Use it.
21384 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21385 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21386 (find_symbol_value, set_internal, default_value, Fset_default)
21387 (Fmake_variable_buffer_local, Fmake_local_variable)
21388 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21389 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21390 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21391 * alloc.c (allocate_buffer): Set the size and tag.
21392 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21394 (die): Follow the GNU convention for error messages.
21395 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21396 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21398 (set_buffer_internal_1):
21399 * frame.c (store_frame_param):
21400 * eval.c (specbind):
21401 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21403 * doc.c (Fsnarf_documentation): Simplify.
21405 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21407 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21408 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21410 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21412 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21414 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21416 * eval.c (do_autoload): Don't save autoloads.
21418 * data.c (Ffset): Save autoload of the function being set.
21420 2007-10-07 John Paul Wallington <jpw@pobox.com>
21422 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21423 parameter before setting up faces.
21425 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21427 * ccl.c (Fregister_code_conversion_map):
21428 * keyboard.c (append_tool_bar_item): Reformat last change.
21430 * lisp.h (eabs): Rename from `abs'. All callers changed.
21432 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21434 * buffer.c (add_overlay_mod_hooklist):
21435 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21436 * fontset.c (make_fontset):
21437 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21438 (append_tool_bar_item):
21439 * macmenu.c (grow_menu_items):
21440 * w32menu.c (grow_menu_items):
21441 * xmenu.c (grow_menu_items): Use larger_vector.
21443 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21445 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21446 selected frame'' on MSDOS).
21448 2007-10-12 Martin Rudalics <rudalics@gmx.at>
21450 * frame.c (Qexplicit_name): New variable.
21451 (x_report_frame_params): Report it in parameter alist.
21452 (syms_of_frame): Intern and staticpro it.
21454 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21456 * macfns.c (x_create_tip_frame): Set terminal for frame.
21458 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21460 * frame.c (Qenvironment): Remove.
21461 (syms_of_frame) <Qenvironment>: Don't initialize.
21462 (Fdelete_frame): Don't treat the `environment' param specially.
21463 * frame.h (Qenvironment): Don't declare.
21464 * callproc.c (set_initial_environment): Don't set unused frame param.
21466 * frame.c (Fframe_with_environment): Remove.
21467 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21469 * lisp.h (Fframe_with_environment): Don't declare.
21471 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
21473 * indent.c (indent_tabs_mode, last_known_column)
21474 (last_known_column_modified): Make static.
21475 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21477 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21479 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21481 2007-10-09 Jason Rumney <jasonr@gnu.org>
21483 * w32term.c (x_set_window_size): Disable code that attempts to tell
21484 Lisp code about a size change before it actually happens.
21486 2007-10-09 Richard Stallman <rms@gnu.org>
21488 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21489 return HANDLED_RETURN.
21491 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21493 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21494 when there's an unread command event.
21496 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21497 window autoselection act appropriately when leaving selected frame.
21498 (syms_of_frame): Initialize focus_follows_mouse.
21499 * frame.h (focus_follows_mouse): Extern it.
21500 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21501 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21502 * msdos.c (dos_rawgetc): Likewise.
21503 * w32term.c (w32_read_socket): Likewise.
21504 * xterm.c (handle_one_xevent): Likewise.
21505 * xdisp.c (syms_of_xdisp): In doc-string of
21506 mouse-autoselect-window mention focus-follows-mouse.
21508 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21510 * macterm.c (mac_load_query_font): Fix missing return value.
21511 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21514 2007-10-08 Richard Stallman <rms@gnu.org>
21516 * xdisp.c (get_window_cursor_type): Implement documented behavior
21517 for cursor-in-non-selected-windows = t.
21519 2007-10-08 Jason Rumney <jasonr@gnu.org>
21521 * w32.c (w32_get_resource): Always close registry keys.
21523 2007-10-08 Jason Rumney <jasonr@gnu.org>
21525 * makefile.w32-in (LIBS): Add COMCTL32.
21527 * w32fns.c (globals_of_w32fns): Init common controls.
21529 2007-10-08 Richard Stallman <rms@gnu.org>
21531 * image.c (our_memory_buffer): Rename from omfib_buffer.
21533 2007-10-08 Richard Stallman <rms@gnu.org>
21535 * buffer.c (Foverlays_at): Doc fix.
21537 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21539 * fns.c (Fplist_put): Preserve uneven tail data.
21541 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21543 * termhooks.h (enum event_kind): Remove trailing comma.
21545 * frame.h (enum): Remove trailing comma.
21547 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21549 * w32proc.c (delete_child): Don't terminate threads of zombies.
21551 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21553 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21555 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21556 last-repeatable-command.
21557 (init_kboard): Initialize Vlast_repeatable_command.
21558 (command_loop_1): Set it to real_this_command unless that was
21559 bound to an input event.
21560 (mark_kboards): Mark it.
21562 2007-10-08 Richard Stallman <rms@gnu.org>
21564 * eval.c (condition-case): Doc fix.
21566 2007-10-08 Masatake YAMATO <jet@gyve.org>
21568 * xfaces.c (tty_supports_face_attributes_p): Fix code
21569 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21570 was copied and not edited.
21572 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21574 Add new `input-decode-map' keymap and use it for terminal
21576 * keyboard.h (struct kboard): Add Vinput_decode_map.
21577 Remove Vlocal_key_translation_map.
21578 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21579 (init_kboard): Init input-decode-map.
21580 Replace local-key-translation-map back with key-translation-map.
21581 (syms_of_keyboard): Declare input-decode-map.
21582 Remove local-key-translation-map. Update docstrings.
21583 (mark_kboards): Mark Vinput_decode_map.
21584 Don't mark Vlocal_key_translation_map.
21585 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21586 Replace local-key-translation-map back with key-translation-map.
21587 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21588 Bind in input-decode-map rather than function-key-map.
21590 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21591 This was made redundant by the previous introduction of XSETPVECTYPE.
21593 2007-10-09 Richard Stallman <rms@gnu.org>
21595 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21597 2007-09-29 Richard Stallman <rms@gnu.org>
21599 * eval.c (internal_condition_case_2, internal_condition_case_1)
21600 (internal_condition_case): Reenable abort if x_catching_errors ()
21601 to see if that really happens and why.
21603 2007-10-06 Andreas Schwab <schwab@suse.de>
21605 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21607 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
21609 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21611 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21613 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21615 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21617 * window.h (struct window):
21618 * window.c (struct save_window_data, struct saved_window):
21619 * termhooks.h (struct terminal):
21620 * process.h (struct Lisp_Process):
21621 * frame.h (struct frame):
21622 * buffer.h (struct buffer):
21623 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21624 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21625 The size field of (pseudo)vectors is now unsigned.
21626 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21628 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21629 Turn `count' into an integer.
21631 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21632 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21633 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21634 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21635 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21637 * alloc.c (allocate_pseudovector): New fun.
21638 (ALLOCATE_PSEUDOVECTOR): New macro.
21639 (allocate_window, allocate_terminal, allocate_frame)
21640 (allocate_process): Use it.
21641 (mark_vectorlike): New function.
21642 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21643 (mark_terminals): Use it.
21644 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21645 (Fmake_byte_code): Use XSETPVECTYPE.
21647 * frame.c (Fframe_parameters): Minor simplification.
21649 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21651 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21653 * buffer.c (Fget_buffer_create, init_buffer_once):
21654 * lread.c (defsubr):
21655 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21657 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21658 defined differently in the m/*.h files.
21659 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21660 (XSETPVECTYPE): New macro.
21661 (XSETPSEUDOVECTOR): Use it.
21663 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21664 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21666 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21667 * lread.c (defvar_per_buffer):
21668 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21670 * window.c (candidate_window_p): Only consider as visible frames that
21671 are on the same terminal.
21673 * m/ibms390x.h (MARKBIT): Remove unused macro.
21675 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
21677 * lread.c (Fload): Fix typo in docstring.
21679 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21681 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21682 of a non-zero value can't yield zero.
21684 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21686 * term.c (term_clear_mouse_face, term_mouse_highlight)
21687 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21689 * print.c (safe_debug_print): Use XHASH.
21691 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21692 Lisp elements such as tags.
21693 (XHASH): New macro.
21695 (SREF, SSET, STRING_COPYIN): Use SDATA.
21696 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21698 * alloc.c (mark_terminal): Remove left-over declaration.
21699 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21700 (allocate_vectorlike): Remove type argument. Adjust callers.
21701 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21702 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21704 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21705 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21706 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21707 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21708 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21711 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21712 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21713 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21715 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21717 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21720 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21722 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21724 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21726 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21728 (handle_one_term_event): Use Gpm_DrawPointer.
21729 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21730 Signal errors instead of returning nil. Always return nil.
21731 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21732 Make it a noop if gpm-mouse was not activated.
21733 (syms_of_term): Update names.
21735 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21737 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21738 (init_sys_modes): Check that gpm_tty is the current tty.
21740 * alloc.c (allocate_terminal): Set the vector size to only count the
21741 lisp fields. Initialize those to nil.
21742 (mark_object): Don't treat terminals specially.
21743 (mark_terminal): Remove.
21744 (mark_terminals): Use mark_object instead.
21746 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21747 the GC to the beginning.
21750 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21752 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21754 2007-09-25 Jason Rumney <jasonr@gnu.org>
21756 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21758 * w32console.c (create_w32cons_output): Remove.
21760 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21762 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21763 (reset_sys_modes): Use reset_terminal_modes_hook.
21765 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21767 * eval.c (do_autoload): Don't output any message.
21769 2007-09-24 Juri Linkov <juri@jurta.org>
21771 * emacs.c (standard_args): Change priority of "--no-splash"
21772 from 40 to 3. Add "--no-desktop" with the same priority.
21774 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21776 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21777 and optimize the case where they are all 1.
21779 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
21781 * lisp.h (abs): Define if not defined.
21782 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21783 Don't define `abs', since it's defined in lisp.h.
21785 2007-09-22 Eli Zaretskii <eliz@gnu.org>
21787 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21788 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21789 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21790 (init_tty): Use DEV_TTY instead of "/dev/tty".
21791 [WINDOWSNT]: No need to protect from NAME arg being null.
21793 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21795 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21798 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21800 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21801 (gpm_tty): Change its type.
21802 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21803 (gpm_tty): Change its type and initialize it.
21804 (Fterm_open_connection): Check the frame is indeed a tty.
21805 Use the new gpm_tty.
21806 (Fterm_close_connection): Use the new gpm_tty.
21807 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21808 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21810 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
21812 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21813 underline_color, to draw strike-through.
21815 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21817 * lisp.h (allocate_terminal): Declare.
21819 * window.c (candidate_window_p): Consider frames that are being placed
21820 by the user as somewhere between visible and iconified.
21821 (window_loop): Prefer windows on the current frame.
21822 (Fselect_window): Move the use of select-frame to the beginning so we
21823 can just delegate all the work (it'll call us back anyway).
21825 * frame.c (Qdisplay_environment_variable):
21826 * frame.h (Qdisplay_environment_variable): Delete.
21828 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21829 of the first arg, since that value may be a union.
21831 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21832 parameter rather than Qdisplay_environment_variable. If all else
21833 fails, look for DISPLAY in initial-environment.
21835 2007-09-21 Glenn Morris <rgm@gnu.org>
21837 * Makefile.in (emacstool): Remove target.
21838 (lisp, shortlisp): Remove termdev.elc.
21840 2007-09-21 Markus Triska <markus.triska@gmx.at>
21842 * xterm.c (x_delete_display): Compile session management conditionally.
21844 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21846 * callproc.c (getenv_internal_1): New function.
21847 (getenv_internal): Use it.
21848 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21850 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21851 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21852 (Fset_terminal_parameter): Work with dead terminals as well.
21853 (Fmodify_terminal_parameters): Remove.
21855 * terminal.c (get_terminal): Handle terminals.
21856 Make sure the terminal returned is live.
21857 (create_terminal): Use allocate_terminal.
21858 (mark_terminals): Move to alloc.c.
21859 (delete_terminal): Use terminal->name as liveness status.
21860 NULL out fields after freeing their contents.
21861 Don't deallocate the object.
21862 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21863 rather than an int.
21864 (Fterminal_live_p): Accept non-integer arguments.
21865 (Fterminal_list): Return terminal objects rather than an ints.
21867 * alloc.c (enum mem_type): New member for `terminal' objects.
21868 (allocate_terminal): New function.
21869 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21871 (mark_terminal): New fun.
21872 (mark_terminals): Move from terminal.c.
21874 * term.c (get_tty_terminal): Don't treat output_initial specially.
21875 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21876 (delete_tty): Use terminal->name as liveness status.
21878 * termhooks.h (struct terminal): Make it into a pseudovector.
21879 Remove `deleted' replaced by checking `name's nullness.
21881 * print.c (print_object): Handle terminals.
21883 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21884 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21886 * frame.c (make_terminal_frame):
21887 * keyboard.c (tty_read_avail_input):
21888 * w32term.c (x_delete_terminal):
21889 * xfns.c (Fx_create_frame, x_create_tip_frame):
21890 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21892 2007-09-20 Glenn Morris <rgm@gnu.org>
21894 * process.c (Fmake_network_process): Doc fix.
21896 2007-09-19 Jason Rumney <jasonr@gnu.org>
21898 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21900 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21902 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21903 Fix a C warning regarding variable constness.
21905 * xterm.c (handle_one_xevent): Fix a C warning.
21907 2007-09-18 Jason Rumney <jasonr@gnu.org>
21909 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21911 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21913 * gtkutil.c (gdpy_def): New variable.
21914 (xg_initialize): Initialize gdpy_def.
21915 (xg_display_close): If no other display exists, set gdpy_def to a
21918 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21920 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21921 when we have no file name for the icon.
21922 (xg_tool_bar_expose_callback): Remove.
21923 (xg_create_tool_bar): Don't connect expose signal to
21924 xg_tool_bar_expose_callback.
21925 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21927 2007-09-16 Andreas Schwab <schwab@suse.de>
21929 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21930 values instead of zapping them.
21932 2007-09-14 Glenn Morris <rgm@gnu.org>
21934 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21935 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21936 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21937 scope and rename to omfib_buffer for clarity.
21938 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21940 2007-09-14 Kenichi Handa <handa@m17n.org>
21942 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21944 2007-09-13 Jason Rumney <jasonr@gnu.org>
21946 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21948 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21950 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21951 (mac_term_init): Call here instead, passing rif.
21953 2007-09-13 Glenn Morris <rgm@gnu.org>
21955 * s/hpux.h: No longer define `static' as nothing.
21957 2007-09-13 Johan Bockgård <bojohan@gnu.org>
21959 * callint.c (Fcall_interactively): Remove unused var `fun'.
21961 2007-09-12 Romain Francoise <romain@orebokech.com>
21963 * window.c (prefer_window_split_horizontally, display_buffer):
21964 Revert 2007-09-08 change.
21966 2007-09-12 Glenn Morris <rgm@gnu.org>
21968 * alloca.c: Remove file.
21969 * Makefile.in (alloca): Do not undef.
21970 (allocaobj, alloca.o): Remove.
21971 (otherobj): Remove allocaobj.
21972 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21973 * regex.c (C_ALLOCA): Remove all references and code that was only
21974 used when this was defined.
21975 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21976 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21977 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21979 * Makefile.in (SOURCES, unlock, relock): Delete.
21981 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21982 (menu_grab_callback): All uses changed.
21984 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21985 (x_reply_selection_request): All uses changed.
21987 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21989 * lread.c (load_warn_old_style_backquotes): Change message to look
21990 better when it appears in the middle of byte-compiler messages.
21992 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21994 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21996 * xterm.c (x_create_terminal): Add comment.
21998 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22000 2007-09-10 Richard Stallman <rms@gnu.org>
22002 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22004 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22006 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22007 (DEFUN): Document `intspec', use it instead of `prompt'.
22009 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22011 * data.c (Finteractive_form): If the interactive specification starts
22012 with a `(', use it as a Lisp form.
22014 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22015 name and file modes.
22017 * callint.c (Fcall_interactively): Comment fixes.
22019 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22021 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22022 and compiled functions.
22024 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22026 * window.c (prefer_window_split_horizontally): New variable.
22027 (display_buffer): Consider splitting window horizontally depending
22028 on prefer_window_split_horizontally.
22030 2007-09-08 Eli Zaretskii <eliz@gnu.org>
22032 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22034 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22036 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22038 * frame.c (x_set_frame_parameters): Check number is positive before
22041 * window.c (freeze_window_start): Don't presume selected_window holds
22043 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22045 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22047 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22049 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22051 * window.c (Vsplit_window_preferred_function): New var.
22052 (Fdisplay_buffer): Use it.
22053 (syms_of_window): Export, and initialize it.
22055 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22057 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22059 2007-09-06 Glenn Morris <rgm@gnu.org>
22061 * gtkutil.c (menu_grab_callback) <cnt>:
22062 * xselect.c (x_reply_selection_request) <cnt>: Move static
22063 variable to file scope.
22065 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22067 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22068 consistent values of selected_frame and selected_window.
22070 2007-09-04 Jason Rumney <jasonr@gnu.org>
22072 * w32console.c (initialize_w32_display): Zero unused hooks.
22074 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22076 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22077 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22079 2007-09-04 Jason Rumney <jasonr@gnu.org>
22081 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22082 in w32console.c. Set up input. Remove XXX comments that have been
22083 confirmed as correct.
22085 * s/ms-w32.h (MULTI_KBOARD): Define.
22087 * w32console.c (one_and_only_w32cons): Remove.
22088 (initialize_w32_display): Take terminal argument.
22090 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22091 initialize_w32_display.
22092 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22094 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22096 * keyboard.c (discard_mouse_events): Discard it.
22097 (make_lispy_event): Translate it to a lisp event.
22098 (lispy_wheel_names): Add wheel-left and right events.
22099 (syms_of_keyboard): Enlarge wheel_syms.
22101 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22102 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22104 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22106 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22107 from WM_MOUSEHWHEEL.
22108 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22110 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22113 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22114 keyboard for the terminal.
22116 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22118 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22119 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22120 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22121 and resume-tty-function to resume-tty-hook.
22122 (Fsuspend_tty, Fresume_tty): Use new names.
22124 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22126 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22127 if it starts with "n:".
22129 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22131 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22133 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22136 * frame.c (Qterm_environment_variable): Remove.
22137 (syms_of_frame): Don't init and staticpro it.
22139 * callproc.c (getenv_internal): Remove special case for $TERM.
22141 * callproc.c (Vinitial_environment): New variable.
22142 (set_initial_environment): Initialize it.
22143 (syms_of_callproc): Declare it.
22144 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22145 TERM under which a process runs is never related to the TERM in which
22148 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22150 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22151 * s/darwin.h: ... do it here.
22153 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22155 * lisp.h (set_initial_environment): Rename from set_global_environment.
22157 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22158 removed by mistake on the multi-tty branch.
22160 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22161 (Fmodify_frame_parameters): Return a value.
22163 * image.c (png_load): Comment-out var only used in commented-out code.
22165 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22166 before passing it to mark_object.
22168 * xfaces.c (internal_resolve_face_name): Return a value.
22169 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22171 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22172 (x_icon): Comment-out var only used in commented-out code.
22174 2007-08-29 Romain Francoise <romain@orebokech.com>
22176 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22177 QUIT hasn't been provided.
22179 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22181 * callproc.c (child_setup, getenv_internal): Use the
22182 display-environment-variable and term-environment-variable frame params.
22183 (set_initial_environment): Initialise Vprocess_environment.
22185 * config.in: Disable multi-keyboard support on a mac.
22187 * frame.c (Qterm_environment_variable)
22188 (Qdisplay_environment_variable): New variables.
22189 (syms_of_frame): Intern and staticpro them.
22190 (Fmake_terminal_frame): Disable output method test.
22192 * frame.h: Declare them here.
22194 * macfns.c (x_set_mouse_color): Get rif from the frame.
22195 (x_set_tool_bar_lines): Don't use updating_frame.
22196 (mac_window): Add 2 new parameters for consistency with other systems.
22197 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22198 frame parameters following what is done in X11 and w32. Don't use
22199 FRAME_MAC_DISPLAY_INFO.
22200 (Fx_open_connection, start_hourglass): Remove window-system check.
22201 (x_create_tip_frame): Get the keyboard from the terminal.
22203 * macmenu.c: Reorder includes.
22204 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22206 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22207 terminal parameter.
22208 (x_clear_frame): Add a frame parameter.
22209 (note_mouse_movement): Get rif from the frame.
22210 (mac_term_init): Initialize the terminal.
22211 (mac_initialize): Make static and move terminal initialization ...
22212 (mac_create_terminal): ... to this new function.
22214 * macterm.h (struct mac_display_info): Add terminal.
22215 (mac_initialize): Delete declaration.
22217 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22219 * sysdep.c: Comment out text after #endif.
22221 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22222 is defined. Better initialize ttys in windows. Use terminal
22223 specific mouse_position_hook.
22225 * termhooks.h (union display_info): Add mac_display_info.
22227 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22228 Set the default minibuffer frame, window_system and the rest of the
22229 frame parameters following what is done in X11.
22231 * w32term.c (w32_initialize): Make static.
22233 * xselect.c (x_handle_selection_clear): Only access
22234 terminal->kboard when MULTI_KBOARD is defined.
22236 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22237 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22239 2007-08-29 Jason Rumney <jasonr@gnu.org>
22241 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22242 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22244 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22245 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22247 * keyboard.c (restore_kboard_configuration): Only define when
22248 MULTI_KBOARD defined.
22250 * makefile.w32-in: Update dependancies from Makefile.in.
22251 (OBJ1): Add terminal.$(O)
22253 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22254 Don't define function body.
22255 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22257 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22259 * w32.c (request_sigio, unrequest_sigio): Remove.
22261 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22262 (w32con_clear_frame, w32con_clear_end_of_line)
22263 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22264 (w32con_delete_glyphs, w32con_set_terminal_window)
22265 (scroll_line, w32_sys_ring_bell): Add frame arg.
22266 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22268 (PICK_FRAME): Remove.
22269 (w32con_write_glyphs): Use frame specific terminal coding.
22270 (one_and_only_w32cons): New global variable.
22271 (initialize_w32_display): Use it for storing hooks.
22272 (create_w32cons_output): New function.
22274 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22277 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22279 (x_set_tool_bar_lines): Don't use updating_frame.
22280 (Fx_create_frame): Set terminal and ref count.
22281 (Fx_open_connection): Remove window-system check.
22283 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22285 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22286 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22287 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22289 (x_delete_terminal, w32_create_terminal): New functions.
22290 (w32_term_init): Create a terminal.
22291 (w32_initialize): Move terminal specific initialization to
22292 w32_create_terminal.
22294 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22295 (w32_clear_rect, w32_clear_area): Use background from frame.
22296 (w32_display_info): Add terminal.
22297 (w32_sys_ring_bell, x_delete_display): Declare here.
22299 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22301 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22303 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22305 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22306 Fix get_named_tty calls for the controlling tty.
22308 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22310 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
22312 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22314 * term.c (tty_insert_glyphs): Add missing first parameter.
22316 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22318 * buffer.c (Fbuffer_list, Fbury_buffer):
22319 Take frame->buried_buffer_list into account.
22321 * cm.c (current_tty): New variable, for cmputc().
22323 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22324 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22325 (cmgoto): Add tty parameter. Pass it on to calccost().
22326 Use emacs_tputs() instead of tputs().
22328 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22330 (current_tty): New variable, for cmputc().
22331 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22333 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22334 (internal_condition_case, internal_condition_case_1)
22335 (internal_condition_case_2): Don't abort when x_catching_errors.
22337 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22338 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22339 prevent crashes caused by bogus longjmps in read_char.
22341 * keymap.h (Fset_keymap_parent): Add EXFUN.
22343 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22344 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22345 Remove redundant definition.
22347 * macfns.c (x_set_mouse_color, x_make_gc):
22348 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22350 * w32term.c (x_free_frame_resources):
22351 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22352 (w32_initialize): Use the accessor macros for terminal characteristics.
22354 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22355 Use the accessor macros for terminal characteristics.
22356 * msdos.c (internal_terminal_init): Use the accessor macros for
22357 terminal characteristics.
22358 (ScreenVisualBell, internal_terminal_init):
22359 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22361 * termopts.h (no_redraw_on_reenter): Declare.
22363 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22364 (mark_terminals, mark_ttys): Declare.
22365 (Fgarbage_collect): Call them.
22366 (mark_object): Mark buried_buffer_list.
22368 * prefix-args.c: Include stdlib.h for exit.
22370 * syssignal.h: Add comment.
22372 * indent.c: Include stdio.h.
22374 * window.h (Vinitial_window_system): Declare.
22375 (Vwindow_system): Delete declaration.
22377 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22379 * image.c (lookup_image): Don't initialize `c' until the xasserts
22382 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22383 FRAME_FOREGROUND_PIXEL.
22385 * print.c (print_preprocess): Don't lose print_depth levels while
22388 * widget.c (update_from_various_frame_slots):
22389 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22391 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22393 (window_internal_height): Remove bogus make_number call.
22394 (init_window_once): Call make_terminal_frame with two zero parameters.
22396 * fileio.c (Fread_file_name): Update comment.
22398 * callint.c (Fcall_interactively):
22399 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22400 Make sure it is correctly unwound.
22402 * xsmfns.c (x_session_close): New function.
22404 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22405 Delete declarations.
22407 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22408 (x_output): Remove background_pixel and foreground_pixel fields.
22409 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22410 (x_delete_device, x_session_close): Declare.
22412 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22413 (read_filtered_event): Call `read_char' with a local
22414 `wrong_kboard_jmpbuf'.
22416 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22417 Don't call single_kboard_state. Use FRAME_RIF.
22419 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22422 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22423 (Fframe_with_environment, Fset_input_meta_mode)
22424 (Fset_quit_char): EXFUN.
22425 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22426 (init_sys_modes, reset_sys_modes): Update prototypes.
22427 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22429 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22430 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22431 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22432 Delete declarations.
22433 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22434 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22437 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22438 already does that during init_display(). Call syms_of_keymap
22439 before syms_of_keyboard. Call `syms_of_terminal'.
22440 Call set_initial_environment, not set_process_environment.
22441 (shut_down_emacs): Call reset_all_sys_modes() instead of
22444 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22445 (internal_resolve_face_name, resolve_face_name_error): New functions.
22446 (resolve_face_name): Protect against loops and errors thrown by Fget.
22447 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22448 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22450 * scroll.c: Replace CURTTY() with local variables throughout the
22451 file (where applicable).
22452 (calculate_scrolling, calculate_direct_scrolling)
22453 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22456 * keymap.c (Vfunction_key_map): Remove.
22457 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22458 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22459 (Vkey_translation_map): Remove.
22460 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22461 (Fdescribe_buffer_bindings)
22462 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22463 Update for terminal-local key-translation-map.
22465 * Makefile.in (callproc.o): Update dependencies.
22466 (lisp, shortlisp): Add termdev.elc.
22467 (obj): Add terminal.o.
22468 (terminal.o): Add dependencies.
22469 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22470 (data.o, fns.o): Add termhooks.h dependency.
22471 (SOME_MACHINE_LISP): Add dnd.elc.
22472 (minibuf.o): Fix typo.
22473 Update dependencies.
22475 * data.c (do_symval_forwarding, store_symval_forwarding)
22476 (find_symbol_value): Use the selected frame's keyboard, not
22479 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22482 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22484 (syms_of_xmenu): Update defsubr.
22485 (mouse_position_for_popup, Fx_popup_menu)
22486 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22487 (set_frame_menubar, free_frame_menubar)
22488 (create_and_show_popup_menu, xmenu_show)
22489 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22492 * xselect.c (x_own_selection): Abort if not an X frame.
22493 (some_frame_on_display): Check if it is an X frame.
22494 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22496 * coding.c: Include frame.h and termhooks.h.
22497 (terminal_coding, keyboard_coding): Delete.
22498 (Fset_terminal_coding_system_internal)
22499 (Fset_keyboard_coding_system_internal)
22500 (Fkeyboard_coding_system)
22501 (Fterminal_coding_system): Add a terminal parameter.
22502 Get terminal_coding from the terminal.
22503 (init_coding_once): Don't call setup_coding_system here.
22505 * dispextern.h (set_scroll_region, turn_off_insert)
22506 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22507 (tty_clear_end_of_line, tty_setup_colors)
22508 (delete_tty, updating_frame)
22509 (produce_special_glyphs, produce_glyphs, write_glyphs)
22510 (insert_glyphs): Remove.
22511 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22512 (tty_turn_off_highlight, get_tty_size): Add declaration.
22513 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22515 * frame.h (enum output_method): Add output_initial.
22516 (struct x_output): Delete.
22517 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22518 Access foreground_pixel and background_pixel directly from the frame.
22519 (tty_display): Delete.
22520 (struct frame): Add buried_buffer_list, foreground_pixel,
22521 background_pixel and terminal. Delete kboard.
22522 (union output_data): Add tty.
22523 (FRAME_KBOARD): Get the kboard from the terminal.
22524 (FRAME_INITIAL_P): New macro.
22525 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22526 (Qterm_environment_variable, Qdisplay_environment_variable)
22527 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22530 * termchar.h (tty_output, tty_display_info): New structures.
22531 (tty_list): Declare.
22532 (FRAME_TTY, CURTTY): New macros.
22533 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22534 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22535 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22536 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22538 * callproc.c: Include frame.h and termhooks.h, for terminal
22540 (add_env): New function.
22541 (child_setup): Use it.
22542 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22543 (getenv_internal): Fix get_terminal_param call.
22544 (Fgetenv_internal, egetenv): Update doc.
22545 (syms_of_callproc): Initialize Vprocess_environment to nil.
22546 Register and initialize them. Remove obsolete defvars. Update doc
22548 (child_setup): Handle Vlocal_environment_variables.
22549 (getenv_internal): Add terminal parameter.
22550 Handle Vlocal_environment_variables.
22551 (Fgetenv_internal): Add terminal parameter.
22552 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22553 environment in a frame (not terminal) parameter. Update doc strings.
22554 (set_initial_environment): Rename from set_global_environment.
22555 Store Emacs environment in initial frame parameter.
22557 * xdisp.c (redisplay_internal): Update references to
22558 `previous_terminal_frame'.
22559 (display_mode_line, Fformat_mode_line): Replace calls to
22560 `push_frame_kboard' with `push_kboard'.
22561 (get_glyph_string_clip_rects): Add extra parentheses and
22562 braces to prevent compiler warnings.
22563 (calc_pixel_width_or_height): Add xassert to check that the
22564 frame is alive. Don't call `lookup_image' on a termcap frame.
22565 (message2_nolog, message3_nolog, redisplay_internal)
22566 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22567 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22568 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22569 (Fx_display_pixel_width, Fx_display_pixel_height)
22570 (Fx_display_planes, Fx_display_color_cells)
22571 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22572 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22573 (Fx_display_backing_store, Fx_display_visual_class)
22574 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22575 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22577 * xfns.c (x_set_foreground_color x_set_background_color)
22578 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22579 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22580 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22581 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22582 terminal that is being deleted.
22583 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22584 frame parameter, and make sure it overrides any user-supplied setting.
22585 (Fx_close_connection, Fx_synchronize): Unify argument names with
22586 the rest of the DEFUNs.
22588 * dispnew.c (Fsend_string_to_terminal): Update call to
22589 `get_tty_terminal'.
22590 (Fredraw_frame, Fsend_string_to_terminal)
22591 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22592 FRAME_TERMCAP_P and FRAME_TTY.
22593 (window_change_signal): Don't believe width/height values that are
22595 (Vinitial_window_system): Rename from Vwindow_system.
22596 (termscript, Wcm, rif): Delete.
22598 * termhooks.h (struct terminal): New struct containing the
22599 previously global text display hooks and new members NAME,
22600 DELETED and PARAM_ALIST.
22601 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22602 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22603 (FRAME_RIF): New macros.
22604 (get_terminal_param, get_device): New declarations.
22605 (termscript): Delete declaration.
22607 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22608 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22609 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22610 FRAME_FOREGROUND_PIXEL.
22611 (x_fully_uncatch_errors): Disable definition.
22612 (x_scroll_bar_expose): Fix reference to foreground pixel.
22613 (XTread_socket): Disable loop on all X displays.
22614 (x_delete_terminal): Don't set terminal->deleted and let
22615 delete_terminal delete the frames on the terminal.
22616 (x_delete_display): Doc update to reflect changes in
22618 (x_display_info) <terminal>: Move member earlier in the struct.
22619 (deleting_tty): Remove old variable.
22620 (Fsuspend_tty): Call clear_tty_hooks.
22621 (Fresume_tty, init_tty): Call set_tty_hooks.
22622 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22623 errors on X frames.
22624 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22625 (handle_one_xevent): Initialize `f' to NULL.
22626 (x_delete_terminal, x_create_terminal): New functions.
22627 (XTset_terminal_modes, XTreset_terminal_modes)
22628 (XTread_socket, x_connection_closed, x_term_init)
22629 (x_term_init, x_delete_display): Add terminal parameter.
22630 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22633 * frame.c: Include termchar.h.
22634 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22635 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22636 (Qdisplay_environment_variable): New vars.
22637 (Fframep): Deal with output_initial.
22638 (Fframe-live-p): Doc fix.
22639 (Fwindow-system): New function.
22640 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22641 (make_terminal_frame): Don't create frames on a terminal that is
22642 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22643 (store_frame_param): Check for found_for_frame before calling XFRAME.
22644 (Fmake_terminal_frame): Handle NULL tty names correctly.
22645 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22646 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22647 frames to refer to a deleted frame in their 'environment parameter.
22648 (Fframe_with_environment): New function.
22649 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22650 (get_future_frame_param): New function.
22651 (Fmake_terminal_frame): Use it.
22652 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22654 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22655 * sysdep.c (reset_sys_modes): Update for renames.
22657 * keyboard.c (tty_read_avail_input): New function.
22658 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22659 (syms_of_keyboard): Defsubr them.
22660 (Fset_input_meta_mode, Fset_quit_char): New functions.
22661 (Fset_input_mode): Split to above functions.
22662 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22663 parameter. Use it in call to `read_char'.
22664 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22665 Set wrong_kboard_jmpbuf correctly in recursive calls.
22666 Use current_kboard to access Vkeyboard_translate_table.
22667 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22668 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22669 Update longjmp invocations. Remember the original current_kboard,
22670 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22671 changes it. Comment out unnecessary calls to
22672 `record_single_kboard_state' and `any_kboard_state'.
22673 Update recursive calls.
22674 (wrong_kboard_jmpbuf): Remove global variable.
22675 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22676 Handle deleted interrupted_kboards correctly; that is a legal
22677 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22678 and read_char calls. Abort if interrupted_kboard died in read_char.
22679 (any_kboard_state, single_kboard_state)
22680 (push_frame_kboard): Remove function.
22681 (pop_kboard): Switch out of single_kboard mode if the kboard has
22682 been deleted. Remove unused variable. Help debugging by not
22683 changing current_kboard unnecessarily. Set current_kboard to the
22684 kboard of the selected frame when the stored kboard object has
22685 been deleted before pop_kboard.
22686 (temporarily_switch_to_single_kboard): Change first parameter to a
22687 frame pointer. Throw an error when caller wants to change kboards
22688 while in single_kboard mode. Don't push_kboard if we weren't in
22689 single kboard state. Don't pop_kboard if we popped into any
22691 (restore_kboard_configuration): Abort if pop_kboard changed the
22692 kboard in single_kboard mode. Call pop_kboard only after setting
22693 up single_kboard mode.
22694 (Frecursive_edit): Switch to single_kboard mode only in nested
22696 (cmd_error, command_loop, command_loop_1, timer_check):
22697 Comment out unnecessary call to `any_kboard_state' and
22698 `record_single_kboard_state'.
22699 (delete_kboard): Exit single_kboard mode if we have just deleted
22700 that kboard. Use FRAME_KBOARD.
22701 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22702 `fatal_error_signal'.
22703 (record_single_kboard_state): Don't push_kboard if we weren't in
22704 single kboard state. Don't pop_kboard if we popped into any
22706 (push_frame_kboard): Rename to push_kboard.
22707 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22708 (read_avail_input): Read input from all terminals.
22709 (mark_kboards): Also mark Vkeyboard_translate_table.
22710 (kbd_buffer_store_event_hold): Simplify condition.
22711 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22712 (Vkeyboard_translate_table): Move to struct kboard.
22713 (init_kboard): Initialize Vkeyboard_translate_table.
22714 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22715 Vkeyboard_translate_table. Update doc strings. Update docs of
22716 local-function-key-map and function-key-map.
22718 * terminal.c: New file.
22720 * term.c: Include errno.h.
22721 (Vring_bell_function, device_list, initial_device)
22722 (next_device_id, ring_bell, update_begin, update_end)
22723 (set_terminal_window, cursor_to, raw_cursor_to)
22724 (clear_to_end, clear_frame, clear_end_of_line)
22725 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22726 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22727 (syms_of_term): Move their initialization to terminal.c.
22728 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22729 (Ftty_display_color_cells)
22730 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22731 (clear_tty_hooks, set_tty_hooks)
22732 (init_tty, maybe_fatal): New functions.
22733 (Ftty_type): Return nil if terminal is not on a tty instead of
22734 throwing an error. Doc update.
22735 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22736 Doc update. Initialize new subrs and variables.
22737 (delete_tty): Use terminal->deleted.
22738 (tty_set_terminal_modes): Rename from set_terminal_modes.
22739 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22740 (set_scroll_region): Rename to `tty_set_scroll_region'.
22741 (turn_on_insert): Rename to `tty_turn_on_insert'.
22742 (turn_off_insert): Rename to `tty_turn_off_insert'.
22743 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22744 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22745 (toggle_highligh): Rename to `tty_toggle_highlight'.
22746 (background_highlight): Rename to `tty_background_highlight'.
22747 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22748 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22749 (tty_set_scroll_region, tty_background_highlight)
22750 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22751 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22752 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22753 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22754 Add static modifier.
22755 (tty_reset_terminal_modes, tty_set_terminal_window)
22756 (tty_set_scroll_region, tty_background_highlight)
22757 (tty_highlight_if_desired, tty_cursor_to)
22758 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22759 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22760 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22763 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22765 * keyboard.c: Qrtl is new.
22766 (parse_tool_bar_item): Handle :rtl keyword.
22767 (syms_of_keyboard): Intern :rtl keyword.
22769 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22771 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22772 so no Lisp code is executed.
22773 (file_for_image, find_rtl_image): New functions.
22774 (xg_get_image_for_pixmap): Use file_for_image.
22775 (update_frame_tool_bar): If direction is RTL, use RTL image if
22776 defined. Use Gtk stock images if defined.
22778 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22780 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22781 for nonexistent or zero-width glyph in composition glyph.
22783 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22785 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22787 * xdisp.c (Finvisible_p): New function.
22788 (syms_of_xdisp): defsubr it.
22790 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
22792 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22795 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22797 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22799 2007-08-24 Martin Rudalics <rudalics@gmx.at>
22801 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22802 whether decoding has modified buffer contents.
22804 2007-08-24 Jason Rumney <jasonr@gnu.org>
22806 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22807 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22808 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22809 (init_svg_functions) [HAVE_NTGUI]: New function.
22810 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22811 (svg_load_image): Use them.
22812 (svg_load_image) [HAVE_NTGUI]: Implement background.
22814 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22816 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22817 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22818 (LIBX): Remove @RSVG_LIBS@.
22819 (LIBES): Add $(RSVG_LIBS).
22821 * image.c (svg_load_image): Blend with specified background if exists.
22822 Use IMAGE_BACKGROUND. Add Mac OS Support.
22824 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22825 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22827 [MAC_OSX] (socket_callback): Do nothing.
22828 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22830 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22832 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22834 2007-08-22 Glenn Morris <rgm@gnu.org>
22836 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22838 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22840 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22842 * image.c: Add support for SVG images. Some additional comments
22843 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22844 (svg_image_p): New function to test for SVG image.
22845 (svg_load): New function to load SVG image.
22846 (svg_load_image): New function, helper for svg_load.
22847 (Qsvg): New Lisp_object.
22848 (svg_keyword_index): New enum.
22849 (svg_format): New static `image_keyword' struct.
22850 (svg_type): New static `image_type' struct.
22851 (librsvg/rsvg.h): Include it.
22853 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22855 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22857 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22859 * lread.c (Qold_style_backquotes): New var.
22860 (syms_of_lread): Init and staticpro it.
22861 (load_warn_old_style_backquotes): New fun.
22862 (Fload): Use them to warn about old style backquotes.
22863 (end_of_file_error, Fload): Remove unused vars.
22865 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22867 * lread.c (Vold_style_backquotes): New var.
22868 (syms_of_lread): Init and export it to Elisp.
22869 (read1): Set it when we find an old-style (back)quote.
22871 2007-08-22 Jason Rumney <jasonr@gnu.org>
22873 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22875 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22877 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22879 2007-08-19 Richard Stallman <rms@gnu.org>
22881 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22883 2007-08-19 Andreas Schwab <schwab@suse.de>
22885 * alloc.c (pure): Round PURESIZE up.
22887 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22889 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22892 2007-08-16 Richard Stallman <rms@gnu.org>
22894 * eval.c (Fcommandp): Add parens to clarify.
22896 * minibuf.c (Fall_completions): Use enum for type of table.
22898 * emacs.c (USAGE2): Improve text.
22900 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22902 * term.c (tty_default_color_capabilities): Declare static
22903 variables in file scope, to avoid HPUX compiler problem.
22905 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22907 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22908 to gtk_toolbar_insert.
22910 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22912 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22914 * insdel.c (reset_var_on_error): New fun.
22915 (signal_before_change, signal_after_change):
22916 Use it to reset (after|before)-change-functions to nil in case of error.
22917 Bind inhibit-modification-hooks to t.
22918 Don't bind (after|before)-change-functions to nil while they run.
22920 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22922 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22923 filling pixmap with stippled background.
22925 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22927 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22928 Don't use invisible frame as parent window for repositioning.
22930 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22932 * print.c (new_backquote_output): Rename from old_backquote_output.
22933 (print): Inverse its logic (according to its name) so as to match the
22934 behavior of new_backquote_flag in lread.c.
22936 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22938 * gmalloc.c (posix_memalign): New function.
22940 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22941 ActivateControl/DeactivateControl here.
22942 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22943 frame-notice-user-settings is non-nil.
22944 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22945 for kEventParamFMFontStyle.
22946 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22947 mac_pass_command_to_system and mac_pass_control_to_system here.
22948 (XTread_socket): Call ActivateControl/DeactivateControl here.
22949 (XTread_socket) [TARGET_API_MAC_CARBON]:
22950 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22951 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22952 for window repositioning.
22954 2007-08-08 Glenn Morris <rgm@gnu.org>
22956 * Replace `iff' in doc-strings and comments.
22958 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
22960 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22962 2007-08-07 Martin Rudalics <rudalics@gmx.at>
22964 * fileio.c (Finsert_file_contents): Run format-decode and
22965 after_insert_file_functions on entire buffer when REPLACE is
22966 non-nil and inhibit modification_hooks and point_motion_hooks.
22967 For consistency, run after_insert_file_functions iff something
22968 got inserted. Move signal_after_change and update_compositions
22969 after code running after_insert_file_functions. Make sure that
22970 undo_list doesn't record intermediate steps of the decoding process.
22972 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22975 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22976 Call malloc_enable_thread on interactive startup.
22978 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22979 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22980 [USE_PTHREAD]: Conditionalize with it.
22981 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22982 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22985 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
22987 * xdisp.c (redisplay_window): When restoring original buffer
22988 position, make sure it is still valid.
22990 * image.c (png_load): Ignore png-supplied background color.
22992 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22994 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22995 Use kCFAbsoluteTimeIntervalSince1970.
22997 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22999 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23000 event loop should be quit.
23001 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23002 Quit dialog event loop if quit_dialog_event_loop is set.
23004 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23005 (Selection): New typedef. Use instead of ScrapRef.
23006 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23007 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23008 (mac_clear_selection): Rename from clear_scrap.
23009 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23010 scrap_has_target_type. All uses changed.
23011 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23012 (mac_selection_has_target_p): New functions.
23013 (mac_put_selection_value): Rename from put_scrap_string.
23014 (mac_get_selection_value): Rename from get_scrap_string.
23015 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23016 (put_scrap_private_timestamp, scrap_has_target_type)
23017 (get_scrap_private_timestamp): Remove functions.
23018 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23019 (x_own_selection, x_get_local_selection):
23020 Use mac_valid_selection_value_p.
23021 (x_own_selection): Don't use put_scrap_private_timestamp.
23022 Record OWNERSHIP-INFO into Vselection_alist instead.
23023 (x_get_local_selection): Don't check type if request is local.
23024 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23025 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23027 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23029 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23030 add comment explaining why.
23032 2007-08-03 Richard Stallman <rms@gnu.org>
23034 * fileio.c (Fvisited_file_modtime): Use make_time.
23036 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23038 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23041 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23043 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23045 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23047 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23049 2007-07-30 Richard Stallman <rms@gnu.org>
23051 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23053 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23055 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23057 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
23059 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23060 remote default-directory.
23062 * buffer.c (mode-line-format): Update doc string.
23064 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23066 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23068 (x_scroll_bar_create): Set bar->fringe_extended_p.
23069 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23070 on frame edge. Check fringe background extension. Don't clear
23071 extended fringe background area.
23073 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23074 (w32_fill_area): Enclose multiple statements with do ... while (0).
23076 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23077 Extend fringe background to scroll bar gap.
23078 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23079 Set bar->fringe_extended_p.
23080 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23081 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23082 background extension. Don't clear extended fringe background area.
23084 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23085 New member fringe_extended_p.
23087 2007-07-25 Glenn Morris <rgm@gnu.org>
23089 * Relicense all FSF files to GPLv3 or later.
23091 * COPYING: Switch to GPLv3.
23093 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23095 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23097 * data.c (Finteractive_form): Check for the presence of an
23098 `interactive-form' symbol property more thoroughly.
23100 * data.c (Finteractive_form): Use an `interactive-form' property if
23101 present, analogous to the function-documentation property.
23103 2007-07-24 Jason Rumney <jasonr@gnu.org>
23105 * w32fns.c (x_real_positions): Get real position from OS instead of
23108 2007-07-23 Jason Rumney <jasonr@gnu.org>
23110 * filelock.c (current_lock_owner): Allow for @ sign in username.
23112 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
23114 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23115 remote default-directory.
23117 * buffer.c (mode-line-format): Describe above case in doc string.
23119 2007-07-20 Eli Zaretskii <eliz@gnu.org>
23121 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23122 Define if not defined.
23124 2007-07-18 Jason Rumney <jasonr@gnu.org>
23126 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23128 2007-07-18 Richard Stallman <rms@gnu.org>
23130 * data.c (Fsetq_default): Doc fix.
23132 * eval.c (Fsetq): Doc fix.
23134 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
23136 * coding.c (Ffind_operation_coding_system):
23137 * eval.c (For, Fand): Doc fixes.
23138 Reported by Johan Bockgård.
23140 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23142 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23144 * xterm.h: Declare x_ewmh_activate_frame.
23146 * xterm.c (x_ewmh_activate_frame): New function.
23147 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23149 2007-07-17 Martin Rudalics <rudalics@gmx.at>
23151 * window.c (Fdisplay_buffer): If largest or LRU window is the
23152 only window, split it even if it is not eligible for splitting.
23153 This restores the original behavior broken by the 2007-07-15
23156 2007-07-17 Glenn Morris <rgm@gnu.org>
23158 * abbrev.c (abbrev_check_chars): New function.
23159 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23160 Call abbrev_check_chars to check abbrev characters are word
23161 constituents. Doc fix.
23163 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23165 * process.c (Fstart_process, Fmake_network_process)
23166 (read_process_output): Fix up last changes.
23168 2007-07-16 Eli Zaretskii <eliz@gnu.org>
23170 * makefile.w32-in (clean): Don't delete *~.
23172 2007-07-16 Andreas Schwab <schwab@suse.de>
23174 * window.c (Fdisplay_buffer): Use NILP.
23175 (Fset_window_scroll_bars): Likewise.
23177 2007-07-15 Martin Rudalics <rudalics@gmx.at>
23179 * window.c (window_min_size_2): New function.
23180 (window_min_size_1, size_window, Fdisplay_buffer)
23181 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23182 windows without mode- or header-lines when window-min-height is
23184 (size_window): Reset nodelete_p after testing it, following an
23185 earlier note by Kim F. Storm.
23186 (display_buffer): Do not set split_height_threshold to twice the
23187 value of window_min_height to avoid changing the value of a
23188 customizable variable. Rather explicitly check whether the
23189 height of the window that shall be splitted is at least as large
23190 as split_height_threshold.
23191 (Fwindow_full_width_p): New defun.
23192 (syms_of_window): Defsubr it.
23194 * window.h: Add EXFUN for Fwindow_full_width_p.
23196 2007-07-14 Jason Rumney <jasonr@gnu.org>
23198 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23200 2007-07-14 Richard Stallman <rms@gnu.org>
23202 * eval.c (maybe_call_debugger): New function.
23203 (find_handler_clause): Use maybe_call_debugger.
23204 Call it when the handler says `debug'.
23205 Eliminate DEBUGGER_VALUE_PTR.
23206 (Fsignal): Eliminate debugger_value.
23207 (Qdebug): New variable.
23208 (syms_of_eval): Initialize it.
23210 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
23213 * keyboard.c (Ftrack_mouse):
23214 * print.c (Fwith_output_to_temp_buffer):
23215 * window.c (Fsave_window_excursion): Doc fix.
23217 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23219 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23221 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23223 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23224 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23225 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23226 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23227 Remove unused encoding_carryover.
23228 * process.c: Adjust all functions accordingly.
23230 2007-07-12 Richard Stallman <rms@gnu.org>
23232 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23234 2007-07-11 Jason Rumney <jasonr@gnu.org>
23236 * makefile.w32-in (LIBS): Include OLE32.
23238 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23239 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23241 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23243 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23244 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23245 from a Lisp_Object into a bare pointer.
23246 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23247 Adjust the code correspondingly.
23249 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23251 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23252 (term_show_mouse_face): Remove unused var `j'.
23253 (handle_one_term_event): Remove unused vars `i' and `j'.
23254 Don't cast return value of ttyname since it's not necessary.
23256 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23258 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23259 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23261 * fns.c (map_char_table): Use an array of int for `indices' rather than
23262 an array of Lisp_Objects (which are only ever integers anyway).
23263 (Fmap_char_table): Update caller.
23264 * lisp.h: Update prototype.
23265 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23266 * fontset.c (Ffontset_info):
23267 * casetab.c (set_case_table): Update callers.
23269 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23271 * keymap.c (struct accessible_keymaps_data)
23272 (struct where_is_internal_data): New structures.
23273 (accessible_keymaps_1, where_is_internal_1): Use them to change
23274 interface to adhere to the one used by map_keymap.
23275 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23276 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23278 * keymap.h (map_keymap_function_t): More informative prototype.
23280 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23282 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23283 (looking_at_1): Don't change search_regs and last_thing_searched
23284 if `inhibit-changing-match-data' is non-nil.
23285 (string_match_1, search_buffer, set_search_regs): Likewise.
23286 (syms_of_search): Add Lisp level definition for
23287 `inhibit-changing-match-data' and set it to nil.
23288 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23289 start and end of the match, instead of using values in search_regs.
23291 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23293 * minibuf.c (Fcompleting_read): New value `confirm-only'
23294 for `require-match'.
23296 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23298 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23299 part of the 2007-06-27 change to syms_of_fileio.
23301 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23303 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23304 Check WINDOWP before using XWINDOW. Consolidate return statements.
23306 2007-06-27 Richard Stallman <rms@gnu.org>
23308 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23310 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
23312 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23314 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23316 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23317 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23318 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23319 (_free_internal, memalign): Use them.
23320 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23321 Initialize to PTHREAD_MUTEX_INITIALIZER.
23322 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23323 (morecore_nolock): Rename from morecore. All uses changed.
23324 Use only nolock versions of internal allocation functions.
23325 (_malloc_internal_nolock, _realloc_internal_nolock)
23326 (_free_internal_nolock): New functions created from
23327 _malloc_internal, _realloc_internal, and _free_internal.
23328 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23329 Copy hook value to automatic variable before its use.
23330 (memalign): Copy hook value to automatic variable before its use.
23332 2007-06-26 Kenichi Handa <handa@m17n.org>
23334 * coding.c (Ffind_operation_coding_system): Docstring improved.
23335 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23337 2007-06-25 David Kastrup <dak@gnu.org>
23339 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23340 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23341 cater for additional parameter.
23343 * keymap.h: Adjust number of parameters to `current-active-maps'.
23345 * doc.c (Fsubstitute_command_keys): Adjust call of
23346 `current-active-maps'.
23348 2007-06-25 David Kastrup <dak@gnu.org>
23350 * callint.c (Fcall_interactively): Make the parsing of interactive
23351 specs somewhat more readable.
23353 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23355 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23356 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23357 if extended background has already been filled.
23359 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23361 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23362 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23364 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23365 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23366 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23367 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23368 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23369 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23370 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23371 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23372 Run timers during dialog popup.
23373 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23375 2007-06-21 Jason Rumney <jasonr@gnu.org>
23377 * image.c (convert_mono_to_color_image): Swap fore and background.
23379 2007-06-20 Jason Rumney <jasonr@gnu.org>
23381 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23382 (w32_free_bdf_font): Unmap memory not handle.
23384 2007-06-20 Sam Steingold <sds@gnu.org>
23386 * gmalloc.c (__morecore): Fix the declaration to comply with the
23389 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
23391 * w32term.c (w32_delete_display): Remove leftover declaration.
23392 (w32_define_cursor, w32_initialize): Make static.
23394 * w32.c (_wsa_errlist): Fix typo in error message.
23395 (init_environment): Ignore any environment variable from the
23396 registry having a null value.
23398 2007-06-20 Glenn Morris <rgm@gnu.org>
23400 * Makefile.in (LIBGIF): Default to -lgif.
23402 2007-06-17 Jason Rumney <jasonr@gnu.org>
23404 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23407 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
23409 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23410 Fix typo in docstring.
23412 2007-06-16 Eli Zaretskii <eliz@gnu.org>
23414 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23415 and their keybindings.
23417 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
23419 * composite.c (update_compositions): Fix last fix.
23421 2007-06-14 Jason Rumney <jasonr@gnu.org>
23423 * w32.c (get_process_times_fn): New function pointer.
23424 (globals_of_w32): Intialize it if present in kernel32.dll.
23425 (w32_get_internal_run_time): New function.
23427 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23429 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23431 * composite.c (update_compositions): Check the validness of
23434 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23436 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23437 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23439 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23440 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23442 * macgui.h (USE_MAC_TOOLBAR): New define.
23444 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23445 Return immediately unless popup is activated.
23447 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23448 background to scroll bar gap.
23449 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23450 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23451 scroll bars on frame edge. Check fringe background extension.
23452 Don't clear extended fringe background area.
23453 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23454 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23455 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23456 [USE_MAC_TOOLBAR]: New macros.
23457 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23458 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23459 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23460 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23461 [USE_MAC_TOOLBAR]: New functions.
23462 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23463 manually if previous repositioning has failed.
23464 (mac_handle_keyboard_event): Use precomputed event kind.
23465 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23466 as tool bar item click. Handle mouse movement over tool bar items.
23468 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23469 toolbar_win_gravity.
23470 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23471 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23474 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23475 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23477 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
23479 * image.c (search_image_cache): Remove unused variable.
23481 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
23483 * xfns.c, xmenu.c: Link to xaw3d if available.
23485 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23487 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23488 frame_foreground and frame_background.
23490 * image.c (lookup_image): Save frame foreground and background colors.
23491 (search_image_cache): Check if saved and current frame colors match.
23493 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23495 * regex.c (regex_compile): Remove the `regnum' counter.
23496 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23498 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23500 * term.c: Include intervals.h to declare Fget_text_property.
23502 2007-06-10 Jason Rumney <jasonr@gnu.org>
23504 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23506 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
23508 * callint.c (Fcall_interactively):
23509 * editfns.c (Fdelete_and_extract_region):
23510 * fileio.c (Fread_file_name):
23511 * fns.c (Fmapconcat):
23512 * keyboard.c (cmd_error_internal):
23513 * keymap.c (Fkey_description):
23515 * minibuf.c (read_minibuf):
23516 * search.c (wordify):
23517 * sunfns.c (sel_read):
23518 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23519 * xfns.c (x_default_scroll_bar_color_parameter):
23520 * xmenu.c (menu_help_callback):
23521 * xselect.c (Fx_get_atom_name):
23522 * xterm.c (x_term_init): Use empty_unibyte_string.
23524 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23526 * alloc.c (init_strings): Initialize canonical empty strings.
23527 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23528 canonical empty string when the requested size is 0.
23530 * emacs.c (empty_unibyte_string): Rename from empty_string.
23531 (empty_multibyte_string): New canonical empty string.
23532 (syms_of_emacs): Don't initialize empty_string.
23534 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23535 string, if appropriate.
23536 (empty_unibyte_string, empty_multibyte_string): New externs.
23537 (empty_string): Remove extern.
23539 * lread.c (syms_of_lread): Use empty_unibyte_string.
23541 2007-06-07 Jason Rumney <jasonr@gnu.org>
23543 * s/ms-w32.h: Don't define HAVE_TZNAME.
23545 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23547 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23549 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23551 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23552 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23554 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23555 Don't call next handler.
23556 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23557 Remove argument. Install handler to application.
23558 (set_frame_menubar): Don't change deep_p.
23559 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23560 FRAME_OUTER_TO_INNER_DIFF_Y.
23561 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23562 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23563 [HAVE_DIALOGS]: New macros.
23564 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23566 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23568 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23569 init_service_handler. All callers changed. Return OSStatus value.
23571 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23572 All callers changed so as not to call SetPortWindowPort.
23573 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23574 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23575 mac_draw_string_common.
23576 (mac_draw_image_string_qd): Likewise.
23577 (mac_draw_string_common): Use them. Add INLINE.
23578 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23579 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23581 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23582 and FRAME_OUTER_TO_INNER_DIFF_Y.
23583 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23584 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23585 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23586 repositioning window to mac_handle_window_event.
23587 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23588 saving window location to mac_handle_window_event
23589 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23590 (install_menu_target_item_handler): Remove argument in extern.
23591 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23592 Also accept command events.
23593 (do_keystroke): New function created from XTread_socket.
23594 (init_command_handler): Remove functions.
23595 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23596 and save window location by kEventWindowShowing and kEventWindowHiding
23597 handlers here. Don't call next handler for window state change and
23599 (mac_handle_application_event, mac_handle_keyboard_event)
23600 [TARGET_API_MAC_CARBON]: New functions.
23601 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23602 kEventWindowShowing and kEventWindowHiding events. Move installation
23603 of mouse, font, text input and menu target item handlers to
23604 install_application_handler.
23605 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23606 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23608 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23610 (XTread_socket) [TARGET_API_MAC_CARBON]:
23611 Consolidate SendEventToEventTarget calls.
23612 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23613 Move application activation handler to mac_handle_application_event.
23614 Move keyboard handler to mac_handle_keyboard_event.
23615 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23616 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23617 init_command_handler. Call install_application_handler.
23619 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23620 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23622 2007-06-07 Glenn Morris <rgm@gnu.org>
23624 * emacs.c (main): Use `emacs-copyright' in --version output.
23626 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
23628 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23630 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23632 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23634 * macgui.h: Replace WindowPtr with WindowRef.
23636 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23637 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23638 Replace ControlHandle with ControlRef.
23639 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23641 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23642 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23643 Replace ControlHandle with ControlRef.
23644 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23645 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23647 * macterm.h (struct scroll_bar): Rename member control_handle_low
23648 and control_handle_high to control_ref_low and control_ref_high.
23650 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23651 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23652 respectively. All uses changed.
23653 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23654 (install_window_handler, remove_window_handler): Replace WindowPtr
23655 with WindowRef in externs.
23657 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
23659 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23661 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
23663 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23665 * frame.c (Fmouse_position, Fmouse_pixel_position):
23666 Condition on HAVE_GPM too.
23668 * term.c (term_mouse_highlight): Remove unused variables.
23669 (Fterm_open_connection): Set gpm_zerobased to 1.
23670 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23671 Use zero based co-ordinates.
23672 (handle_one_term_event): Report a drag as mouse movement too.
23674 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23676 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
23678 * image.c (search_image_cache): New function. Require background
23679 color match if background color is unspecified in the image spec.
23680 (uncache_image, lookup_image): Use it.
23682 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
23684 * window.c (Fshrink_window): Reflow docstring.
23686 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
23688 * Version 22.1 released.
23690 2007-06-01 Richard Stallman <rms@gnu.org>
23692 * xfns.c (x_encode_text): Add GCPRO.
23694 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23696 * xfns.c (x_set_name_internal): Save encoded name before
23697 x_encode_text in case string data is relocated.
23699 2007-05-31 Richard Stallman <rms@gnu.org>
23701 * buffer.c (syms_of_buffer): Doc fix.
23703 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
23705 * sysdep.c (init_sys_modes): Add rather than replace with
23708 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23711 * termhooks.h (term_mouse_moveto): New extern.
23713 * term.c (mouse_face_window): Rename...
23714 (Qmouse_face_window): ...to this.
23715 (term_show_mouse_face, term_clear_mouse_face)
23716 (term_mouse_highlight): Use Qmouse_face_window.
23717 (term_mouse_moveto): New function.
23718 (term_mouse_position): Make it work.
23719 (syms_of_term): Uncomment assignment to mouse_position_hook.
23720 Staticpro Qmouse_face_window.
23722 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23724 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23725 around current_column call.
23727 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23729 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23730 * xdisp.c (next_element_from_buffer):
23731 * window.c (delete_window):
23732 * term.c (term_mouse_highlight):
23733 * msdos.c (getdefdir):
23734 * macterm.c (mac_create_bitmap_from_bitmap_data)
23735 (init_font_name_table):
23737 * data.c (Fmake_local_variable):
23738 * ccl.c (ccl_driver): Likewise.
23740 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23742 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23743 Call mac_wakeup_from_rne on window size change.
23745 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
23747 * image.c (uncache_image): Fix typo.
23749 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23751 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23753 2007-05-22 Richard Stallman <rms@gnu.org>
23755 * xterm.c (x_connection_closed): Remove NO_RETURN.
23757 2007-05-22 Martin Rudalics <rudalics@gmx.at>
23759 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23761 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
23763 * image.c (uncache_image): New function.
23764 (Fimage_refresh): New function.
23766 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23768 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23770 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23772 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23773 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23775 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23777 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23778 conditional on [HAVE_GPM_H].
23780 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23782 * syntax.c (skip_chars): Update syntax-table only after we checked that
23783 the new location is valid.
23785 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23787 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23788 mac_get_window_bounds.
23790 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
23792 * Makefile.in (LIBGPM): Allow it to be set from configure.
23793 If set then link Emacs with it.
23795 * config.in: Regenerate.
23797 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23800 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23802 (handle_one_term_event, term_gpm): New externs.
23804 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23805 and allow it to be interrupted by SIGIO.
23807 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23808 (wait_reading_process_output): Wait on gpm_fd too.
23809 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23810 (add_gpm_wait_descriptor_called_flag): New variable.
23811 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23813 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23814 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23815 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23816 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23817 (make_lispy_event): Add case GPM_CLICK_EVENT.
23818 (read_avail_input): Handle mouse input.
23820 * term.c (write_glyphs_with_face): New function.
23821 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23822 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23823 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23824 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23825 (last_mouse_x, last_mouse_y): New variables.
23826 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23827 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23828 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23829 (Fterm_close_connection): New functions.
23830 (term_init): Initialise mouse_face_window.
23832 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
23834 * xdisp.c (redisplay_window): If first window line is a
23835 continuation line, recompute the new window start instead of
23838 2007-05-18 Glenn Morris <rgm@gnu.org>
23840 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23841 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23843 2007-05-17 Glenn Morris <rgm@gnu.org>
23845 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23847 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23849 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23850 dead key repeat and up events.
23852 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
23854 * image.c (pbm_load): Check image size for monochrome pbm.
23856 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
23858 * xterm.c (XTread_socket): Revert last change.
23860 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
23862 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23864 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23866 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23868 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23871 2007-05-07 Andreas Schwab <schwab@suse.de>
23873 * keymap.c (Flookup_key): Fix typo in last change.
23875 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23877 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23878 mapping for unibyte strings.
23880 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23882 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23883 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23885 2007-04-29 Richard Stallman <rms@gnu.org>
23887 * insdel.c (replace_range): For undo, record insertion first.
23889 2007-04-29 Andreas Schwab <schwab@suse.de>
23891 * lisp.h (VECSIZE): Use OFFSETOF.
23893 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23895 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23898 2007-04-28 Richard Stallman <rms@gnu.org>
23900 * lread.c (read_escape): In a string, \s is always space.
23902 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23904 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23906 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23907 submenu for menu bar items.
23909 See ChangeLog.10 for earlier changes.
23911 ;; Local Variables:
23913 ;; add-log-time-zone-rule: t
23916 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
23918 This file is part of GNU Emacs.
23920 GNU Emacs is free software: you can redistribute it and/or modify
23921 it under the terms of the GNU General Public License as published by
23922 the Free Software Foundation, either version 3 of the License, or
23923 (at your option) any later version.
23925 GNU Emacs is distributed in the hope that it will be useful,
23926 but WITHOUT ANY WARRANTY; without even the implied warranty of
23927 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23928 GNU General Public License for more details.
23930 You should have received a copy of the GNU General Public License
23931 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23933 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40