Add in some useful convenience functions for handling HTTP.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e9b7ab96
JD
12010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2
bc869eca
JD
3 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
4
5 * gtkutil.h (xg_show_scroll_bar): : Remove.
6
7 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8 if height is less than scroll bar min size.
9 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
10
e9b7ab96
JD
11 * xfns.c (x_default_font_parameter): Try to open font from system
12 before using it (bug#6478). Rename got_from_gconf to got_from_system.
13
32a679fd
JD
142010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
15
16 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
17
70c4cfbb
EZ
182010-06-20 Eli Zaretskii <eliz@gnu.org>
19
20 * xdisp.c (try_scrolling): When scroll-conservatively is set to
21 most-positive-fixnum, be extra accurate when scrolling window
22 start, to avoid missing the cursor line.
23
ad5a12b5
EZ
242010-06-19 Eli Zaretskii <eliz@gnu.org>
25
26 * xdisp.c (try_scrolling): Compute the limit for searching point
27 in forward scroll from scroll_max, instead of an arbitrary limit
28 of 10 screen lines. See
29 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
30 and
31 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
32 for details.
33
2a64315a 342010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
35
36 * editfns.c (Fbyte_to_string): Pacify compiler.
37
288cf4e9
SM
382010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
39
40 * lread.c (read1): Phase out old-style backquotes a bit more.
41
6e6e5760
EZ
422010-06-12 Eli Zaretskii <eliz@gnu.org>
43
cbc4fd20
EZ
44 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
45 bidimirror.h.
46
47 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
48
317fbf33
EZ
49 * bidi.c (bidi_initialize): Remove explicit initialization of
50 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 51 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 52 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
53
54 * biditype.h: New file.
55
cbc4fd20
EZ
56 * bidimirror.h: New file.
57
6e6e5760
EZ
58 * window.c (syms_of_window): Doc fix (bug#6409).
59
4176cba2
RF
602010-06-12 Romain Francoise <romain@orebokech.com>
61
62 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
63 ediff-hook.
64
cb4bfcb5
GM
652010-06-10 Glenn Morris <rgm@gnu.org>
66
64c60c2f
GM
67 * editfns.c (Fbyte_to_string): Pacify compiler.
68
cb4bfcb5
GM
69 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
70
e454a4a3
SM
712010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
72
73 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
74 Check `object's type before accessing its guts.
75
c1b1acc2
DN
762010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
77
78 * s/usg5-4.h: Fix previous change.
79 Suggested by Lawrence Mitchell <wence@gmx.li>
80
657d4c0b
AS
812010-06-08 Andreas Schwab <schwab@linux-m68k.org>
82
83 * minibuf.c (Fall_completions): Add more checks.
84
9b27fd9f
JB
852010-06-08 Juanma Barranquero <lekktu@gmail.com>
86
87 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
88
a99ebb40
DN
892010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
90
d7c5d87d
DN
91 * lread.c (X_OK): Remove, unused.
92
0263a941
DN
93 * dispnew.c: Remove obsolete comment.
94
a99ebb40
DN
95 Remove INCLUDED_FCNTL.
96 * xterm.c (INCLUDED_FCNTL):
97 * callproc.c (INCLUDED_FCNTL):
98 * alloc.c (INCLUDED_FCNTL):
99 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
100 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
101
13b5221f
MR
1022010-06-07 Martin Rudalics <rudalics@gmx.at>
103
104 * window.c (Fselect_window): Move `record_buffer' up to the
105 beginning of this function, so the buffer gets recorded
106 even if the selected window does not change.
107 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
108
5220357f
JB
1092010-06-07 Juanma Barranquero <lekktu@gmail.com>
110
111 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
112 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
113
3085237c
DN
1142010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
115
116 Remove BSTRING related code, all platforms define it.
117 * s/usg5-4.h (BSTRING): Remove definition.
118 * s/template.h (BSTRING):
119 * s/msdos.h (BSTRING):
120 * s/ms-w32.h (BSTRING):
121 * s/hpux10-20.h (BSTRING):
122 * s/gnu-linux.h (BSTRING):
123 * s/darwin.h (BSTRING):
124 * s/cygwin.h (BSTRING):
125 * s/bsd-common.h (BSTRING):
126 * s/aix4-2.h (BSTRING): Likewise.
127 * sysdep.c: Remove code depending on BSTRING not being defined.
128
409f2919
JB
1292010-06-05 Juanma Barranquero <lekktu@gmail.com>
130
131 Remove obsolete macro BASE_LEADING_CODE_P.
132 * character.h (BASE_LEADING_CODE_P): Remove.
133 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
134 * buffer.c (Fset_buffer_multibyte):
135 * indent.c (scan_for_column, compute_motion):
136 * insdel.c (count_combining_before, count_combining_after):
137 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
138
087fc47a
JB
1392010-06-04 Juanma Barranquero <lekktu@gmail.com>
140
141 Turn `directory-sep-char' into a noop.
142
143 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
144 (DIRECTORY_SEP): Define unconditionally.
145
146 * s/ms-w32.h (DIRECTORY_SEP): Remove.
147
148 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
149 call dostounix_filename directly.
150
151 * fileio.c (CORRECT_DIR_SEPS): Remove.
152 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
153 (Fsubstitute_in_file_name): Use dostounix_filename instead.
154 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
155 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
156
157 * w32proc.c (CORRECT_DIR_SEPS): Remove.
158 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
159
0eb7675e
AS
1602010-06-03 Andreas Schwab <schwab@linux-m68k.org>
161
162 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 163 address. (Bug#6346)
0eb7675e 164
78edd3b7
JB
1652010-06-03 Juanma Barranquero <lekktu@gmail.com>
166
167 * ccl.c (Fccl_program_p): Fix typo in docstring.
168
eb697db5
DN
1692010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
170
171 Move UNEXEC definition to autoconf.
172 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
173 * s/sol2-10.h (UNEXEC):
174 * s/irix6-5.h (UNEXEC):
175 * s/hpux10-20.h (UNEXEC):
176 * s/gnu-linux.h (UNEXEC):
177 * s/darwin.h (UNEXEC):
178 * s/cygwin.h (UNEXEC):
179 * s/bsd-common.h (UNEXEC):
180 * s/aix4-2.h (UNEXEC):
181 * m/alpha.h (UNEXEC): Likewise.
182 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
183
aa3830c4
JB
1842010-06-03 Juanma Barranquero <lekktu@gmail.com>
185
186 Remove obsolete pre-unicode2 macros.
187 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
188 * composite.c (composition_reseat_it):
189 * data.c (Faset):
190 * fns.c (Ffillarray):
191 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
192 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
193
d234d13e
JL
1942010-06-03 Juri Linkov <juri@jurta.org>
195
196 * buffer.c (Fother_buffer): Add CHECK_FRAME.
197 (Fswitch_to_buffer): Remove unused variable `err'.
198
0d4bcf4d
GM
1992010-06-03 Glenn Morris <rgm@gnu.org>
200
e23dc1e2
GM
201 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
202
05b09564
GM
203 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
204 now that AH_BOTTOM does it.
205
824e2978
GM
206 * m/hp800.h (HAVE_ALLOCA):
207 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
208
0d4bcf4d
GM
209 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
210 Remove NOT_C_CODE tests, it is always true now.
211
c55d2abf
DN
2122010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
213
08a494a3
DN
214 Fix config.h includes.
215 * xsettings.c:
216 * xgselect.c:
217 * nsterm.m:
218 * nsselect.m:
219 * nsimage.m:
220 * nsfont.m:
221 * nsfns.m:
222 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
223 other files do.
224
75934b1d
DN
225 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
226
9f32a766
DN
227 * s/sol2-6.h: Remove obsolete comments.
228
c55d2abf
DN
229 Remove unnecessary alloca.h includes.
230 * keymap.c: Do not include alloca.h, config.h does that.
231 * sysdep.c: Likewise. Do not define fwrite, not used.
232
06ac62b4
SM
2332010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
234
235 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
236 the HAVE_TERMIO where it belongs (bug#6149).
237
1ab8293c
SM
2382010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
239
240 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
241 of bug#6305).
242
6dcfd253
EZ
2432010-05-30 Eli Zaretskii <eliz@gnu.org>
244
245 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
246 state is always cached (bug#6306).
247
6d26bbb2
EZ
2482010-05-29 Eli Zaretskii <eliz@gnu.org>
249
06fa4a23
EZ
250 Fix cursor motion in bidi-reordered continued lines.
251 * xdisp.c (try_cursor_movement): Backup to non-continuation line
252 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
253 over continuation lines in bidi-reordered buffers. Return
254 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
255 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
256
f5783df3
MA
2572010-05-28 Michael Albinus <michael.albinus@gmx.de>
258
259 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
260
7d56b2dd
KH
2612010-05-28 Kenichi Handa <handa@m17n.org>
262
263 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
264 Don't sheck SPEC if it is nil.
265 (font_list_entities): Call font_delete_unmatched if
b925d231 266 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 267
e58d4ff7
GM
2682010-05-28 Glenn Morris <rgm@gnu.org>
269
270 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
271
f1a5d776
CY
2722010-05-27 Chong Yidong <cyd@stupidchicken.com>
273
274 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
275 whether to trash.
276 (internal_delete_file, Frename_file): Callers changed.
277 (delete_by_moving_to_trash): Doc fix.
278 (Fdelete_directory_internal): Don't move to trash.
279
280 * callproc.c (delete_temp_file):
281 * buffer.c (Fkill_buffer): Callers changed.
282
283 * lisp.h: Update prototype.
284
f44a59e6
CY
2852010-05-27 Chong Yidong <cyd@stupidchicken.com>
286
287 * xdisp.c (redisplay_window): After redisplay, check if point is
288 still valid before setting it (Bug#6177).
289
81ac4f35
GM
2902010-05-27 Glenn Morris <rgm@gnu.org>
291
292 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
293 Convert comments to Makefile format.
294
295 * Makefile.in (bootstrap-clean): No more Makefile.c.
296
ccd89fb3
GM
2972010-05-26 Glenn Morris <rgm@gnu.org>
298
90278cb6
GM
299 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
300 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
301
ccd89fb3
GM
302 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
303 Remove.
304 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
305
b7050583
KH
3062010-05-26 Kenichi Handa <handa@m17n.org>
307
308 * composite.c (composition_compute_stop_pos): Fix condition for
309 backward scanning.
310
e5458003
GM
3112010-05-25 Glenn Morris <rgm@gnu.org>
312
c345fe90
GM
313 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
314 Move before TEMACS_LDFLAGS.
315 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
316 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
317
2e0689ab
GM
318 * Makefile.in (NOT_C_CODE): No longer define.
319 (config.h): No longer include.
320
8009a5e8
GM
321 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
322 variables it may reference.
323
e5458003
GM
324 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
325 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
326
10f72a37
KH
3272010-05-25 Kenichi Handa <handa@m17n.org>
328
329 * dispextern.h (struct composition_it): New members rule_idx and
330 charpos.
331
332 * xdisp.c (set_iterator_to_next): While scanning backward, assume
333 that the character positions of IT point the last character of the
334 current grapheme cluster.
335 (next_element_from_composition): Don't change character positions
336 of IT.
337 (append_composite_glyph): Set glyph->charpos to
338 it->cmp_it.charpos.
339
340 * composite.c (autocmp_chars): Change the first argument to RULE,
341 and try composition with RULE only.
342 (composition_compute_stop_pos): Record the index number of the
343 composition rule in CMP_IT->rule_idx.
344 (composition_reseat_it): Call autocmp_chars repeatedly until the
345 correct rule of the composition is found.
346 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
347 is at the last character of the current grapheme cluster when
348 CMP_IT->reversed_p is nonzero.
349
171eda53 3502010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 351
171eda53
SM
352 * editfns.c (Fbyte_to_string): New function.
353
66a9f7f4
SM
3542010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
355
356 * process.c (Fmake_network_process): Set :host to nil if it's not used.
357 Suggested by Masatake YAMATO <yamato@redhat.com>.
358
d8c315d1
EZ
3592010-05-23 Eli Zaretskii <eliz@gnu.org>
360
171eda53 361 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 362
f5b416d2 3632010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
364
365 * s/netbsd.h: If terminfo is found, use it in preference to
366 termcap. (Bug#6190) [Backport from trunk]
367
0416466c
EZ
3682010-05-19 Eli Zaretskii <eliz@gnu.org>
369
11117830 370 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
371
372 * dispextern.h (struct glyph_row): New members minpos and maxpos.
373 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
374 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
375 and maxpos members instead of start.pos and end.pos, respectively.
376
377 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
378 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
379 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
380 (try_window_reusing_current_matrix, try_window_id):
381 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
382 (init_from_display_pos, init_iterator): Use EMACS_INT for
383 character and byte positions.
66a9f7f4 384 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
385 arguments for minimum and maximum buffer positions seen by
386 display_line for this row. Don't use iterator to find the
387 position following the maximum one; instead, increment the
11117830
EZ
388 position found by display_line directly. Fix logic; eol_pos
389 should be tested before the rest. Handle the case of characters
390 delivered from display vector (bug#6036). Fix tests related to
391 it->method. Handle the truncated_on_right_p rows.
392 (RECORD_MAX_MIN_POS): New macro.
393 (display_line): Use it to record the minimum and maximum buffer
394 positions for glyphs in the row being assembled. Record the
395 position of the newline that terminates the line. If word wrap is
396 in effect, restore minimum and maximum positions seen up to the
397 wrap point, when iterator returns to it.
398 (try_window_reusing_current_matrix): Give up if in bidi-reordered
399 row and cursor not already at point. Restore original pre-bidi
400 code for unidirectional buffers.
d36fe237
EZ
401
402 * dispnew.c (increment_row_positions, check_matrix_invariants):
403 Increment and check row->start.pos and row->end.pos, in addition
404 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
405
11117830
EZ
406 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
407 Display truncated_on_left_p and truncated_on_right_p flags.
408 Formatting fixes.
409 (pmtxrows): Display the ordinal number of each row. Don't display
410 rows beyond the last one.
411
412 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
413 it is not copied by bidi_copy_it.
414
6e83d800
EZ
4152010-05-22 Eli Zaretskii <eliz@gnu.org>
416
417 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
418 (Bug#6237)
419
110683ad
CY
4202010-05-22 Chong Yidong <cyd@stupidchicken.com>
421
422 * image.c (Fimage_flush): Rename from image-refresh.
423
98fe5161
CY
4242010-05-21 Chong Yidong <cyd@stupidchicken.com>
425
426 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
427 just one window.
428
429 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
430 (clear_image_cache): If the number of cached images is unusually
431 large, decrease the cache eviction delay (Bug#6230).
432
e8752c66
GM
4332010-05-21 Glenn Morris <rgm@gnu.org>
434
66dbf213
GM
435 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
436 Move these rules to ns.mk.
437 * ns.mk: New file.
438
04384b2d
GM
439 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
440
e8752c66
GM
441 * Makefile.in (CANNOT_DUMP): New, set by configure.
442 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
443
2e2bbddb
JL
4442010-05-20 Juri Linkov <juri@jurta.org>
445
446 * fileio.c (Fdelete_file): Change interative spec to use
447 `read-file-name' like in `find-file-read-args' where the default
448 value is `default-directory' instead of `buffer-file-name'.
449 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
450
31c4aaf6
KR
4512010-05-20 Kevin Ryde <user42@zip.com.au>
452
453 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
454 (Voverriding_terminal_local_map, Vsystem_key_alist)
455 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
456
9d5cf9b6
GM
4572010-05-20 Glenn Morris <rgm@gnu.org>
458
459 * Makefile.in (DEPDIR): New constant.
460 (DEPFLAGS): Set with configure, not cpp.
461 (MKDEPDIR): New, set by configure.
462 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
463 (clean): Use $DEPDIR.
464 (deps_frag): Include from configure.
465 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
466 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
467
ead6f8f5
EZ
468 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
469 reallocation of the cache. (Bug#6210)
470
7f34aec3
GM
4712010-05-19 Glenn Morris <rgm@gnu.org>
472
d494e8f2
GM
473 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
474
c1d0dcfd
GM
475 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
476 (GNULIB_VAR): Remove.
477 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
478
479 * m/ibms390x.h (LINKER):
480 * m/macppc.h (LINKER) [GNU_LINUX]:
481 * s/aix4-2.h (ORDINARY_LINK):
482 * s/cygwin.h (LINKER):
483 * s/darwin.h (ORDINARY_LINK):
484 * s/gnu.h (ORDINARY_LINK):
485 * s/netbsd.h (LINKER):
486 * s/usg5-4.h (ORDINARY_LINK):
487 Move to configure.
488
7f34aec3
GM
489 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
490
754790b6
CY
4912010-05-18 Chong Yidong <cyd@stupidchicken.com>
492
493 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
494 prevent stack overflow if number of arguments is too large
495 (Bug#6214).
496
161e44d1
JB
4972010-05-18 Juanma Barranquero <lekktu@gmail.com>
498
499 * charset.c (load_charset_map_from_file): Don't call close after fclose.
500
be4ff9da
GM
5012010-05-18 Glenn Morris <rgm@gnu.org>
502
9539dc5d
GM
503 * s/gnu-linux.h: Combine two conditionals.
504
505 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
506 $(POST_ALLOC_OBJ).
507
40dc6bf4
GM
508 * Makefile.in (RALLOC_OBJ): New, set by configure.
509 (rallocobj): Replace with the previous variable.
510 (otherobj): Use $RALLOC_OBJ.
511
512 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
513 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
514
be4ff9da
GM
515 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
516 (gmallocobj, vmlimitobj): Replace with previous two variables.
517 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
518
16455a85
GM
5192010-05-17 Glenn Morris <rgm@gnu.org>
520
521 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
522 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
523
5fdb7468
GM
5242010-05-16 Glenn Morris <rgm@gnu.org>
525
7ca1f3f9
GM
526 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
527
7541dad5
GM
528 * Makefile.in (clean): Get rid of HAVE_NS conditional.
529
da53fab9
GM
530 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
531 trailing "/".
532
b02a6645
GM
533 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
534 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
535
8877ca0f
GM
536 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
537 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
538 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
539 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
540 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
541
5fdb7468
GM
542 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
543 Remove ${STARTFLAGS}, nothing ever sets it.
544
95adb4b1
DN
5452010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
546
547 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
548
676b6304
GM
5492010-05-16 Glenn Morris <rgm@gnu.org>
550
9beab9ce
GM
551 * Makefile.in (LIBX_BASE): Always define.
552
8a95f0e7
GM
553 * Makefile.in (LIBX_OTHER): Move out of cpp section.
554
676b6304
GM
555 * Makefile.in (LIBXT): Always define.
556
6e546d18
GM
5572010-05-15 Glenn Morris <rgm@gnu.org>
558
4235ca47 559 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 560
6e546d18
GM
561 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
562 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
563
8c5ff6dd
KR
5642010-05-15 Ken Raeburn <raeburn@raeburn.org>
565
560bb7ae 566 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
567 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
568
8b4eb796
KR
569 * emacs.c (main): Initialize initial-environment and
570 process-environment before generating from env, not after.
571
8c5ff6dd
KR
572 Handle --version reasonably in CANNOT_DUMP configuration.
573 * emacs.c (emacs_version, emacs_copyright): New string variables.
574 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
575 (syms_of_emacs): Defvar them, and initialize them from the C
576 string variables.
577 (main): If initialization hasn't been done, print initial version
578 info from the C strings, instead of starting an interactive session.
579
dbd3f723
EZ
5802010-05-15 Eli Zaretskii <eliz@gnu.org>
581
d20e1419
EZ
582 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
583 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
584 (bidi_paragraph_init): Remove redundant assertion that we are at
585 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
586
587 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
588 (syms_of_xdisp): Defsubr it.
589
d36fe237
EZ
590 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
591
dbd3f723
EZ
592 * Makefile.in: Fix MSDOS-related comments.
593
02be533b
GM
5942010-05-15 Glenn Morris <rgm@gnu.org>
595
1a82cca9
GM
596 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
597 (really-lwlib, really-oldXMenu): Always define.
598 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
599
3df7b338
GM
600 * Makefile.in: Simplify cpp conditional.
601
2b5f541b
GM
602 * Makefile.in (${ns_appdir}): Simplify using umask.
603
02be533b
GM
604 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
605
4e2db1fe
SM
6062010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
607
608 * eval.c (specbind): Remove left-over duplicate test.
609 Disallow let-binding frame-local vars. Add comment.
610
4b292a22
EZ
6112010-05-14 Eli Zaretskii <eliz@gnu.org>
612
2fe72643 613 Make the cache of bidi iterator states dynamically allocated.
1edbd309 614 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
615 (bidi_init_it): Call it.
616 (bidi_cache_iterator_state): Enlarge the cache if needed.
617
4e2db1fe 618 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
619 bidi_get_next_char_visually. All callers changed.
620
82ebc97b
KH
6212010-05-14 Kenichi Handa <handa@m17n.org>
622
623 * dispextern.h (struct composition_it): New member reversed_p.
624
625 * composite.c (composition_compute_stop_pos): Search backward if
626 ENDPOS < CHARPOS.
627 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
628 Set CMP_IT->reversed_p.
b4b6e17e 629 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 630
4e2db1fe
SM
631 * xdisp.c (set_iterator_to_next):
632 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
633 scanning backward. Call composition_compute_stop_pos if scan
634 direction is changed.
635 (next_element_from_buffer): Call composition_compute_stop_pos with
636 negative ENDPOS if we are scanning backward.
637 (next_element_from_composition): Pay attention to
638 IT->cmp_it.reversed_p.
639
0e5d7800
KH
6402010-05-14 Kenichi Handa <handa@m17n.org>
641
560bb7ae 642 * font.c (font_range): Return the range for the font found at first.
0e5d7800 643
cb027b32
GM
6442010-05-14 Glenn Morris <rgm@gnu.org>
645
177b0288
GM
646 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
647
fbc00890
GM
648 * Makefile.in (mktime, X11, register): Move undefs to configure.
649
f14d1dfd
GM
650 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
651 (MSDOS_X_OBJ): New variable.
652 (MSDOS_SUPPORT_REAL): New constant.
653 (MSDOS_SUPPORT): Set as a variable, not with cpp.
654 (obj): Use MSDOS_X_OBJ.
655 (lisp): Use MSDOS_SUPPORT as a variable.
656
11842bd8
GM
657 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
658 (GPM_MOUSE_SUPPORT): Now it's a constant.
659 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
660 not cpp.
661
489d31a4 662 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 663 (ns_appresdir): Remove, unused.
e20f1f07 664
489d31a4
GM
665 * Makefile.in (SHELL): Move outside cpp section.
666
cb027b32
GM
667 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
668
5a903aa9
GM
6692010-05-13 Glenn Morris <rgm@gnu.org>
670
3369c79f
GM
671 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
672 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
673
d5e982a6
GM
674 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
675 HAVE_WINDOW_SYSTEM must be too.
676
6192e163
GM
677 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
678 (lisp): Remove WINNT_SUPPORT.
679
472c5d6b
GM
680 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
681 Let configure set these variables (to empty) in this case as well.
682
0116466b
GM
683 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
684 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
685
5a903aa9
GM
686 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
687 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
688 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
689 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
690 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 691 the values output by configure.
5a903aa9
GM
692 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
693
1a0d7c06
GM
6942010-05-12 Glenn Morris <rgm@gnu.org>
695
b5457f14
GM
696 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
697 (LINKER_WAS_SPECIFIED): Remove.
698
1a0d7c06
GM
699 * Makefile.in (LIB_GCC): Set using configure, not cpp.
700 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
701 * m/arm.h (LIB_GCC) [GNU_LINUX]:
702 * s/cygwin.h (LIB_GCC):
703 * s/freebsd.h (LIB_GCC):
704 * s/gnu-linux.h (LIB_GCC):
705 * s/msdos.h (LIB_GCC):
706 * s/netbsd.h (LIB_GCC):
707 Move to configure.
708
3ffd4615 7092010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
710
711 * ftfont.c: Fix incorrect parentheses of #if condition for
712 definining M17N_FLT_USE_NEW_FEATURE.
713
acddf8ae
GM
7142010-05-11 Glenn Morris <rgm@gnu.org>
715
716 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
717 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
718
ae5e04fa
EZ
7192010-05-10 Eli Zaretskii <eliz@gnu.org>
720
721 * xdisp.c (init_iterator): Don't turn on bidi reordering in
722 unibyte buffers. See
723 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
724
7490175b
GM
7252010-05-10 Glenn Morris <rgm@gnu.org>
726
97efb629
GM
727 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
728 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
729 (LIBES): Use LIBS_SYSTEM as a variable.
730 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
731 * s/aix4-2.h (LIBS_SYSTEM):
732 * s/freebsd.h (LIBS_SYSTEM):
733 * s/hpux10-20.h (LIBS_SYSTEM):
734 * s/sol2-6.h (LIBS_SYSTEM):
735 * s/unixware.h (LIBS_SYSTEM):
736 Move to configure.
737
7490175b
GM
738 * s/aix4-2.h (MAIL_USE_LOCKF):
739 * s/bsd-common.h (MAIL_USE_FLOCK):
740 * s/darwin.h (MAIL_USE_FLOCK):
741 * s/gnu-linux.h (MAIL_USE_FLOCK):
742 * s/irix6-5.h (MAIL_USE_FLOCK):
743 * s/template.h (MAIL_USE_FLOCK):
744 Move to configure.
745
0235128c 7462010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
747
748 * Version 23.2 released.
749
0235128c 7502010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
751
752 * composite.c (autocmp_chars): Save point as marker before calling
753 auto-composition-function (Bug#5984).
754
755 * lisp.h (restore_point_unwind): Add prototype.
756
757 * fileio.c (restore_point_unwind): Remove static attribute.
758
0235128c 7592010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
760
761 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
762 new feature of libotf and m17n-flt.
0235128c
SM
763 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
764 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
765 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
766 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
767 that OUT is NULL. Use OTF_drive_gsub_with_log and
768 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
769 OTF_drive_gpos.
770 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
771 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
772 Setup mflt_enable_new_feature and mflt_try_otf.
773
4721152c
J
7742010-05-08 Jan Djärv <jan.h.d@swipnet.se>
775
776 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
777
778 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
779 box and toolbar (Bug #6139).
780 (xg_create_tool_bar): Remove comment (Bug #6139).
781 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
782 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
783
ee0a16cf
JB
7842010-05-08 Juanma Barranquero <lekktu@gmail.com>
785
786 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
787 Update dependencies.
788
96d79611
EZ
7892010-05-08 Eli Zaretskii <eliz@gnu.org>
790
791 * fringe.c (update_window_fringes): Set up truncation bitmaps for
792 R2L lines.
793
40c17879
GM
7942010-05-08 Glenn Morris <rgm@gnu.org>
795
7b42b29f
GM
796 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
797
40c17879
GM
798 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
799 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
800 (termcapobj): Replace with TERMCAP_OBJ.
801 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
802 (LIBES): Use LIBS_TERMCAP as a variable.
803
804 * s/freebsd.h (osreldate.h): No longer include, since this file
805 does not use __FreeBSD_version any more.
806
807 * s/aix4-2.h (TERMINFO):
808 * s/cygwin.h (TERMINFO):
809 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
810 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
811 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
812 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
813 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
814 * s/irix6-5.h (TERMINFO):
815 * s/netbsd.h (LIBS_TERMCAP):
816 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
817 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
818 * s/usg5-4.h (TERMINFO):
819 Move to configure.
820
94b612ad
SM
8212010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
822
823 * eval.c (unbind_to): Don't unbind a local binding into the global
824 binding when the local binding disappeared. Inversely, don't unbind
825 a global binding into a newly created local binding.
826 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
827 can specify the frame to use, when applicable. Adjust callers.
828
15e12598
VB
8292010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
830 Stefan Monnier <monnier@iro.umontreal.ca>
831
832 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
833
f724825e
EZ
8342010-05-07 Eli Zaretskii <eliz@gnu.org>
835
5cba3209
EZ
836 * w32fns.c: Include w32.h.
837 (Fw32_shell_execute): Decode the error message before passing it
838 to `error'. (Bug#6126)
839
d16bdfc3
EZ
840 * msdos.c (dos_set_window_size):
841 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
842 instead of `XSYMBOL (foo)->value'.
843
59d93e87
EZ
8442010-05-07 Eli Zaretskii <eliz@gnu.org>
845
9fdec8bc
EZ
846 Fix the MS-DOS build, broken by autoconfiscation.
847
848 * Makefile.in: Don't use Make-style comments past the "start of
849 cpp stuff" line.
850 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
851
852 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
853 edited directly by msdos/sed1v2.inp).
f724825e 854
2f86b22b
GM
8552010-05-07 Glenn Morris <rgm@gnu.org>
856
857 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
858 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
859 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
860 move out of cpp section.
861 * s/freebsd.h (LD_SWITCH_SYSTEM):
862 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
863 * s/netbsd.h (LD_SWITCH_SYSTEM):
864 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
865
49ebbd65
DN
8662010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
867
868 Define LIB_STANDARD and START_FILES using autoconf.
869 * s/usg5-4.h (LIB_STANDARD):
870 * s/netbsd.h (START_FILES):
871 * s/irix6-5.h (LIB_STANDARD):
872 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
873 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
874 * s/freebsd.h (START_FILES):
875 * s/darwin.h (START_FILES):
876 * s/cygwin.h (START_FILES):
877 * s/aix4-2.h (LIB_STANDARD):
878 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
879 * Makefile.in (STARTFILES): Rename to START_FILES, define using
880 autoconf, not cpp.
881
d43c06d6
DN
8822010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
883
28823648
DN
884 Remove NEED_BSDTTY and NEED_UNISTD_H.
885 * s/hpux10-20.h (NEED_BSDTTY): Remove.
886 * s/aix4-2.h (NEED_UNISTD_H): Remove.
887 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
888 <sys/ptyio.h> and <unistd.h>.
889
aca00430
DN
890 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
891
d43c06d6
DN
892 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
893 * s/gnu.h (START_FILES): Remove empty definition.
894
3e56b11d
JD
8952010-05-06 Jan Djärv <jan.h.d@swipnet.se>
896
897 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
898
e3cf0cde
GM
8992010-05-06 Glenn Morris <rgm@gnu.org>
900
901 * Makefile.in (CPP, LN_S): Remove unused variables.
902
774b9a60
SM
9032010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
904
905 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
906
4ab92842
LM
9072010-05-05 Lawrence Mitchell <wence@gmx.li>
908
909 * m/sparc.h: Fix typo in earlier change.
910
178f2507
SM
9112010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
912
913 Misc tweaks.
914 * eval.c (Fdefvaralias): Remove unintended nested if.
915 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
916
80f00217 9172010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
918
919 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
920
ef03a4e6
DN
9212010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
922
58eb6cf0
DN
923 Remove BSD_PGRPS.
924 * s/bsd-common.h (BSD_PGRPS): Remove undef.
925 * s/gnu-linux.h (BSD_PGRPS): Remove.
926 * term.c (dissociate_if_controlling_tty):
927 * sysdep.c (narrow_foreground_group, widen_foreground_group)
928 (init_sys_modes, reset_sys_modes):
929 * emacs.c (main):
930 * callproc.c (Fcall_process, child_setup): Remove code depending
931 on BSD_PGRPS.
932
ef03a4e6
DN
933 Remove POSIX_SIGNALS.
934 * s/usg5-4.h (POSIX_SIGNALS):
935 * s/netbsd.h (POSIX_SIGNALS):
936 * s/msdos.h (POSIX_SIGNALS):
937 * s/ms-w32.h (POSIX_SIGNALS):
938 * s/hpux11.h (POSIX_SIGNALS):
939 * s/gnu.h (POSIX_SIGNALS):
940 * s/gnu-linux.h (POSIX_SIGNALS):
941 * s/freebsd.h (POSIX_SIGNALS):
942 * s/darwin.h (POSIX_SIGNALS):
943 * s/cygwin.h (POSIX_SIGNALS):
944 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
945 * s/unixware.h:
946 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
947 * process.c (create_process):
948 * syssignal.h:
949 * sysdep.c (wait_for_termination, init_signals):
950 * process.c (create_process):
951 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
952 remove all code that assumes the contrary.
953
49628785
GM
9542010-05-04 Glenn Morris <rgm@gnu.org>
955
27a2cdfc
GM
956 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
957 variable.
958 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
959 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
960 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
961 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
962 LD_SWITCH_SYSTEM_tmp.
963 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
964 New variables, set by configure.
965
eb21eab5
GM
966 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
967 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
968 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
969 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
970 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
971
49628785
GM
972 * s/aix4-2.h (C_SWITCH_SYSTEM):
973 * m/alpha.h (C_SWITCH_MACHINE):
974 Move to configure.in.
975 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
976 New variables, set by configure.
977 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
978 $c_switch_machine and $c_switch_system.
979
7dff330b
DN
9802010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
981
982 * s/hpux10-20.h (LIB_STANDARD): New definition.
983 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
984 on it, not used anymore.
985
53967e09
CY
9862010-05-03 Chong Yidong <cyd@stupidchicken.com>
987
988 * eval.c (internal_condition_case_n): Rename from
989 internal_condition_case_2.
990 (internal_condition_case_2): New function.
991
992 * xdisp.c (safe_call): Use internal_condition_case_n.
993
994 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
995 (internal_delete_file, Frename_file): Callers changed.
996
997 * buffer.c (Fkill_buffer):
998 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
999
1000 * lisp.h: Update prototypes.
1001
3dee6fdb
GM
10022010-05-03 Glenn Morris <rgm@gnu.org>
1003
1004 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1005 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1006 (LIBXT): Set with configure, not cpp.
1007 (LIBX): Remove.
1008 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1009
a101e0fb
DN
10102010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1011
1012 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1013 The FreeBSD is not needed, the default works, Solaris version is
1014 not needed, and the remaining case is not supported by configure.
1015
f63d0028
JD
10162010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1017
1018 * xsmfns.c (CHDIR_OPT): New define.
1019 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1020 restarting emacs.
1021
1022 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1023 shut_down_emacs.
1024
1025 * emacs.c (USAGE1): Mention --chdir.
1026 (main): Handle --chdir.
1027 (standard_args): Add --chdir.
1028 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1029 #5552).
1030
e4814a9f
DN
10312010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1032
cd03c74a
DN
1033 Remove LD_SWITCH_MACHINE.
1034 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1035 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1036
c3a398a1
DN
1037 Clean up IRIX code.
1038 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1039 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1040
87e7285c
DN
1041 Clean up AIX code.
1042 * m/ibmrs6000.inp: Remove file, unused.
1043 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1044 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1045 definition ...
1046 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1047
80f00217
JB
1048 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1049 unused.
e4814a9f 1050
59ca28de
EZ
10512010-05-01 Eli Zaretskii <eliz@gnu.org>
1052
197daef4
EZ
1053 Emulate POSIX_SIGNALS on MS-Windows.
1054
1055 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1056 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1057
1058 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1059 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1060 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1061
80f00217
JB
1062 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1063 New stubs.
197daef4 1064
af7c7572
EZ
1065 Miscellaneous fixes of bidi display.
1066
59ca28de
EZ
1067 * xdisp.c (find_row_end): New function, refactored from display_line.
1068 (display_line): Use it.
017ea819
EZ
1069 (extend_face_to_end_of_line): In almost-filled rows, extend only
1070 if the row is R2L and not continued.
166e930d 1071 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1072 Preserve overlay and string info in row->end.
166e930d
EZ
1073 (insert_left_trunc_glyphs): Support addition of left truncation
1074 glyphs to R2L rows.
b47e0dcf 1075 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1076 glyph between adjacent windows. Fix a crash when a display string
1077 is continued to the next line. Don't return zero if cursor was
1078 found by `cursor' property of a display string.
b47e0dcf
EZ
1079 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1080 test for that explicitly.
59ca28de 1081
7acac9f4
GM
10822010-05-01 Glenn Morris <rgm@gnu.org>
1083
1084 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1085 for clarity.
1086 (OTHER_OBJ): Remove.
1087 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1088 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1089
45841e65
KK
10902010-05-01 Karel Klíč <kklic@redhat.com>
1091
1092 * fileio.c (Ffile_selinux_context): Context functions may return null.
1093
afc61943
DN
10942010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1095
80f00217 1096 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1097
5a1bb006
GM
10982010-04-30 Glenn Morris <rgm@gnu.org>
1099
1100 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1101 (OTHER_OBJ): Define as a separate variable, for clarity.
1102
210af043
J
11032010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1104
1105 * xsettings.c: include limits.h and update file comment.
1106
0a7df391
GM
11072010-04-30 Glenn Morris <rgm@gnu.org>
1108
d5096f16
GM
1109 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1110 Set with configure, not cpp.
1111 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1112
7eb1ac33
GM
1113 * Makefile.in (mallocobj): Remove.
1114 (otherobj): Simplify using @OTHER_OBJ@.
1115
517d086b
GM
1116 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1117 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1118 Don't bother making nsgui.h dependency platform-specific.
1119
0a7df391
GM
1120 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1121
d6d23852
SM
11222010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1123
d2630aef
SM
1124 * process.c (read_process_output, exec_sentinel): Don't burp if the
1125 sentinel/filter kills the current buffer (bug#6060).
1126
f9dddf52 1127 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1128 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1129 Remove unused var `args'.
1130 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1131 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1132 * doc.c (store_function_docstring): Use XSETCAR.
1133
f1e3642a
GM
11342010-04-28 Glenn Morris <rgm@gnu.org>
1135
faf535f8
GM
1136 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1137 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1138
c40f9449
GM
1139 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1140
658f86ca
GM
1141 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1142 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1143
bc0b5f61
GM
1144 * Makefile.in (FONT_OBJ): New, set by configure.
1145 (FONT_DRIVERS): Use $FONT_OBJ.
1146
294c50a0
GM
1147 * Makefile.in (LIBXMU): Set with configure, not cpp.
1148 * s/aix4-2.h (LIBXMU):
1149 * s/hpux10-20.h (LIBXMU):
1150 Remove definition, now set in configure.
1151
e6ec4e99
GM
1152 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1153
f1e3642a
GM
1154 * m/amdx86-64.h [i386]: Move this test to configure.in.
1155
c6ea2936
GM
11562010-04-27 Glenn Morris <rgm@gnu.org>
1157
8fdac2c3
GM
1158 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1159 * s/unixware.h (NEED_LIBW): Remove definition.
1160
986fb647
GM
1161 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1162 (TOOLKIT_LIBW): New, set by configure.
1163 (@X_TOOLKIT_TYPE@): No longer define it.
1164
c6ea2936
GM
1165 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1166 (MOTIF_LIBW): Set with configure, not cpp.
1167 * s/aix4-2.h (LIB_MOTIF):
1168 * s/gnu-linux.h (LIB_MOTIF):
1169 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1170
aaa36002
DN
11712010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1172
1173 Reduce CPP usage.
1174 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1175 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1176 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1177 definitions and undefs. Inline definitions in the only user.
1178 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1179
b678dd8b
GM
11802010-04-27 Glenn Morris <rgm@gnu.org>
1181
76cda504
GM
1182 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1183 since the defaults (set by the system file) are fine in most cases.
1184 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1185 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1186 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1187 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1188 Remove definitions, since they are set correctly in s/gnu-linux.h.
1189 * s/freebsd.h (START_FILES, LIB_STANDARD):
1190 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1191 * s/hpux10-20.h (START_FILES):
1192 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1193 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1194
b678dd8b
GM
1195 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1196 (MOTIF_LIBW): Use $LIBXP.
1197 (otherobj): Use $WIDGET_OBJ.
1198
9452ded1
DN
11992010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1200
7e10844c
DN
1201 * Makefile.in (LIBS_MACHINE): Remove, unused.
1202
9452ded1
DN
1203 Use autoconf instead of cpp for LIB_MATH.
1204 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1205 * s/cygwin.h (LIB_MATH): Likewise.
1206 * Makefile.in (LIB_MATH): Do not define with cpp.
1207 (LIBES): Use autoconf for LIB_MATH.
1208
fcebfc6a
KH
12092010-04-26 Kenichi Handa <handa@m17n.org>
1210
1211 * composite.c (Ffind_composition_internal): Fix the return value
1212 for an automatic composition.
1213
39e2ad1b
DN
12142010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1215
1216 Remove all NO_ARG_ARRAY uses.
1217 * fns.c (concat2, concat3, nconc2):
1218 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1219 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1220 * m/xtensa.h (NO_ARG_ARRAY):
1221 * m/template.h (NO_ARG_ARRAY):
1222 * m/sparc.h (NO_ARG_ARRAY):
1223 * m/sh3.h (NO_ARG_ARRAY):
1224 * m/mips.h (NO_ARG_ARRAY):
1225 * m/macppc.h (NO_ARG_ARRAY):
1226 * m/iris4d.h (NO_ARG_ARRAY):
1227 * m/intel386.h (NO_ARG_ARRAY):
1228 * m/ibms390x.h (NO_ARG_ARRAY):
1229 * m/ibms390.h (NO_ARG_ARRAY):
1230 * m/ibmrs6000.h (NO_ARG_ARRAY):
1231 * m/ia64.h (NO_ARG_ARRAY):
1232 * m/hp800.h (NO_ARG_ARRAY):
1233 * m/arm.h (NO_ARG_ARRAY):
1234 * m/amdx86-64.h (NO_ARG_ARRAY):
1235 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1236
adf4f59c
EZ
12372010-04-25 Eli Zaretskii <eliz@gnu.org>
1238
6bdf5d65
EZ
1239 * xdisp.c (display_line): Don't assume 2nd call to
1240 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1241 (iterate_out_of_display_property): New function, body from pop_it.
1242 (pop_it): Use it.
adf4f59c 1243
dfbbda83
GM
12442010-04-24 Glenn Morris <rgm@gnu.org>
1245
1246 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1247 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1248 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1249 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1250
2d4018aa
EZ
12512010-04-24 Eli Zaretskii <eliz@gnu.org>
1252
a49884a6
EZ
1253 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1254 use `get_next_display_element' and `set_iterator_to_next' to
1255 advance to the next character, when looking for the character that
1256 begins the next row.
1257
76db6fcc 1258 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1259 definition of "struct Lisp_Symbol".
1260
70eab5c1
GM
12612010-04-24 Glenn Morris <rgm@gnu.org>
1262
1263 * Makefile.in (CRT_DIR): New variable, set by configure.
1264 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1265 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1266
1ad4cc3d
DN
12672010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1268
e769f484
DN
1269 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1270
4196ff33
DN
1271 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1272
879b0ee4
DN
1273 Remove redundant flags.
1274 * s/freebsd.h (C_SWITCH_SYSTEM):
1275 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1276 * s/netbsd.h (C_SWITCH_SYSTEM):
1277 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1278 of these.
1279
03cbbcb8
DN
1280 Simplify m/intel386.h.
1281 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1282 user: ecrt0.c.
1283 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1284 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1285 the only user: s/unixware.h.
1286 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1287 from m/intel386.h.
1288 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1289 moved here from m/intel386.h.
1290
1ad4cc3d
DN
1291 * m/mips.h: Remove #if 0 code.
1292
8785b888
EZ
12932010-04-23 Eli Zaretskii <eliz@gnu.org>
1294
728588cc
EZ
1295 Fix display of composed characters from L2R scripts in bidi buffers.
1296 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1297 After advancing IT past the composition, resync the bidi iterator
1298 with IT's position. (Bug#5977)
1299
a63f80b4
DN
13002010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1301
1302 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1303 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1304
ff5dec5c
SM
13052010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1306
1307 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1308
8785b888
EZ
13092010-04-23 Eli Zaretskii <eliz@gnu.org>
1310
58ccf243 1311 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1312 * xdisp.c (pop_it): When the stack is popped after displaying
1313 from a string, bidi-iterate to exit from the text portion covered
1314 by the `display' property or overlay. (Bug#5988, bug#5920)
1315
feeb1604
DN
13162010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1317
8e324eb6
DN
1318 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1319 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1320
809fcaba
DN
1321 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1322 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1323
ed710380
DN
1324 Simplify STARTFILES definition.
1325 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1326 relying on Makefile.in to define it.
1327 * s/cygwin.h (START_FILES): Likewise.
1328 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1329
feeb1604
DN
1330 Clean up Solaris code.
1331 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1332 (LIB_MOTIF): Remove, configure takes care of this.
1333 (NOT_USING_MOTIF): Remove, unused.
1334 * xrdb.c: Remove #if 0-ed #include.
1335 (SYSV): Remove conditional for old SysV.
1336 * sysdep.c (closedir): Remove conditional code for Solaris,
1337 Solaris has closedir.
1338
a0d0b563
JD
13392010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1340
1341 * xsettings.c (read_and_apply_settings): Check if current_font is
1342 NULL before strcmp (Bug#6001).
1343
56bae7c7
DN
13442010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1345
1346 Clean up HP-UX files.
1347 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1348 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1349 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1350 * s/hpux10-20.h: ... to the only user, here.
1351
372b7a95
EZ
13522010-04-21 Eli Zaretskii <eliz@gnu.org>
1353
1354 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1355 use buffer-local values of paragraph-start and paragraph-separate.
1356 <paragraph_start_re, paragraph_separate_re>: Rename from
1357 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1358 (Bug#5992)
1359
f904c0f9
JD
13602010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1361
1362 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1363 current_tool_bar_style are new.
1364 (store_config_changed_event): Rename from store_font_changed_event.
1365 (XSETTINGS_TOOL_BAR_STYLE): New define.
1366 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1367 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1368 HAVE_XFT.
1369 (something_changedCB): store_font_changed_event is now
1370 store_config_changed_event
1371 (parse_settings): Rename from parse_xft_settings. Read
1372 non-xft xsettings outside #ifdef HAVE_XFT.
1373 (read_settings): Renamed from read_xft_settings.
1374 (apply_xft_settings): Take current settings as parameter. Do not
1375 call read_(xft)_settings.
1376 (read_and_apply_settings): New function.
1377 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1378 read_and_apply_settings if there are settings to be read.
1379 (init_xsettings): Renamed from init_xfd_settings.
1380 Call read_and_apply_settings unconditionally.
1381 (xsettings_initialize): Call init_xsettings.
1382 (Ftool_bar_get_system_style): New function.
1383 (syms_of_xsettings): Define Qmonospace_font_name and
1384 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1385 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1386 dynamic-setting.
31a01b90 1387 Move misplaced HAVE_GCONF
f904c0f9
JD
1388
1389 * xsettings.h (Ftool_bar_get_system_style): Declare.
1390
1391 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1392 Qtext, Qboth, Qboth_horiz are new.
1393 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1394 Vtool_bar_style, tool_bar_max_label_size.
1395
1396 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1397
1398 * keyboard.c: QClabel is new.
1399 (parse_tool_bar_item): Take out QClabel from tool bar items.
1400 Try to construct a label if ther is no QClabel.
1401 (syms_of_keyboard): Intern :label as QClabel.
1402
1403 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1404 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1405 New.
1406
1407 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1408 dynamic-setting.el.
1409
1410 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1411 (xg_make_tool_item, xg_show_toolbar_item): New function.
1412 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1413 Call xg_make_tool_item to make a tool bar item.
1414 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1415
1416 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1417 into account for toolbars.
1418
c632dfda
JD
14192010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1420
1421 * data.c (make_blv): Declarations before code (Bug#5993).
1422
10efe302
GM
14232010-04-21 Glenn Morris <rgm@gnu.org>
1424
1425 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1426 Define using autoconf, not cpp.
1427 (LIBXSM): New variable, set by autoconf.
1428 (LIBXT): Use $LIBXSM.
1429
4285ac5a
DN
14302010-04-21 Dan Nicolaescu <local_user@dannlt>
1431
3ec759e7
DN
1432 Remove NOMULTIPLEJOBS, unused.
1433 * s/template.h (NOMULTIPLEJOBS):
1434 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1435
4285ac5a
DN
1436 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1437 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1438 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1439 detects -znocombreloc and passes it to the linker
1440 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1441
2807228d
GM
14422010-04-21 Glenn Morris <rgm@gnu.org>
1443
1444 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1445
574c05e2
KK
14462010-04-21 Karel Klíč <kklic@redhat.com>
1447
1448 * Makefile.in (LIBSELINUX_LIBS): New.
1449 (LIBES): Add $LIBSELINUX_LIBS.
1450 * eval.c, lisp.h (call7): New function.
1451 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1452 (Ffile_selinux_context, Fset_file_selinux_context):
1453 New functions.
1454 (Fcopy_file): New parameter preserve-selinux-context.
1455 (Frename_file): Preserve selinux context when renaming by copy-file.
1456
91eac4bb 14572010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 1458 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1459
50426a04
JB
1460 Don't depend on cm.c or termcap.c on Windows, use stubs.
1461 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1462 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1463 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1464 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1465 (sys_tputs, sys_tgetstr): New stubs.
1466 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1467 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1468
938efb77
JB
14692010-04-20 Juanma Barranquero <lekktu@gmail.com>
1470
1471 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1472
b4bf28b7
SM
14732010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1474
8b1e1112
SM
1475 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1476 Just signal a warning rather than an error when inside a let.
1477 (Fmake_variable_frame_local): Add the same test.
1478
933ac235
SM
1479 * font.c (syms_of_font): Make the style table vars read-only.
1480
b4bf28b7
SM
1481 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1482 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1483
1484 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1485
93d68d0c
EZ
14862010-04-20 Eli Zaretskii <eliz@gnu.org>
1487
1488 Fix R2L paragraph display on TTY.
1489
1490 * xdisp.c (unproduce_glyphs): New function.
1491 (display_line): Use it when produced glyphs are discarded from R2L
1492 glyph rows.
1493 (append_composite_glyph): In R2L rows, prepend the glyph rather
1494 than appending it.
1495
1496 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1497 rather than append it. Set up the resolved_level and bidi_type
1498 attributes of the appended glyph.
283ccc18
EZ
1499 (produce_special_glyphs): Mirror the backslash continuation
1500 character in R2L lines.
93d68d0c 1501
283ccc18 1502 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1503
283ccc18
EZ
1504 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1505 append_stretch_glyph.
1506 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1507 off-by-one error in computing x at end of text in the row.
1508 (append_stretch_glyph): In reversed row, prepend the glyph rather
1509 than append it. Set resolved_level and bidi_type of the glyph.
1510 (extend_face_to_end_of_line): If the row is reversed, prepend a
1511 stretch glyph whose width is such that the rightmost glyph will be
1512 drawn at the right margin of the window. Fix off-by-one error on
1513 TTY frames in testing whether a line needs face extension. Fix
1514 face extension at ZV. If this is the last glyph row, use
1515 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1516 region face.
1517 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1518 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1519 row->continuation_lines_width.
283ccc18
EZ
1520 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1521 are at ZV. Fixes a crash when reseated to ZV by
1522 try_window_reusing_current_matrix.
45903529
EZ
1523 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1524 which happens with R2L glyph rows. Fixes a crash when inserting a
1525 character at end of an R2L line.
283ccc18
EZ
1526 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1527 treat them as having zero-width characters. Improve comments.
1528 Don't reverse pos_before and pos_after for reversed glyph rows.
1529 Set cursor.x to negative value when the cursor might be on the
1530 left fringe.
1531 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1532 left fringe, not the right one.
f951a506
EZ
1533 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1534 (erase_phys_cursor): For reversed cursor_row, support cursor on
1535 the left fringe.
1536
283ccc18
EZ
1537 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1538 of continuation indicators on the fringes.
1539 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1540 left fringe.
1541
f951a506
EZ
1542 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1543 draw cursor on the left fringe.
1544
1545 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1546 cursor on the left fringe.
1547
f951a506
EZ
1548 * dispnew.c (update_text_area): Handle reversed desired rows when
1549 the cursor is on the left fringe.
1550 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1551 below, not by 0, for when the cursor is on the left fringe.
1552
3bb49aaf
JD
15532010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1554
1555 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1556 widget is a scrollbar.
1557
c0be27fd
KH
15582010-04-20 Kenichi Handa <handa@m17n.org>
1559
1560 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1561 only when the arg CHARSET_LIST is nil.
1562
ce5b453a
SM
15632010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1564
1565 Make variable forwarding explicit rather the using special values.
1566 Basically, this makes the structure of buffer-local values and object
1567 forwarding explicit in the type of Lisp_Symbols rather than use
1568 special Lisp_Objects for that. This tends to lead to slightly more
1569 verbose code, but is more C-like, simpler, and makes it easier to make
1570 sure we handled all cases, among other things by letting the compiler
1571 help us check it.
1572 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1573 Removing forwarding objects.
1574 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1575 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1576 explicit rather than hiding them inside Lisp_Object "values".
1577 (XFWDTYPE): New macro.
1578 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1579 (XBUFFER_LOCAL_VALUE): Remove.
1580 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1581 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1582 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1583 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1584 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1585 Remove the Lisp_Misc_* header.
1586 (struct Lisp_Buffer_Local_Value): Redefine.
1587 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1588 (struct Lisp_Misc_Any): Add filler to get the right size.
1589 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1590 Lisp_Intfwd.
1591 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1592 (DEFVAR_KBOARD): Allocate a forwarding object.
1593 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1594 (let_shadows_global_binding_p): New function.
1595 (union Lisp_Val_Fwd): New type.
1596 (make_blv): New function.
1597 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1598 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1599 (swap_in_symval_forwarding, find_symbol_value, Fset)
1600 (let_shadows_buffer_binding_p, set_internal, default_value)
1601 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1602 (Fkill_local_variable, Fmake_variable_frame_local)
1603 (Flocal_variable_p, Flocal_variable_if_set_p)
1604 (Fvariable_binding_locus):
1605 * xdisp.c (select_frame_for_redisplay):
1606 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1607 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1608 * frame.c (store_frame_param):
1609 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1610 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1611 value structure.
1612 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1613 (clone_per_buffer_values): Only adjust markers into the current buffer.
1614 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1615 (Fbuffer_local_value, set_buffer_internal_1)
1616 (swap_out_buffer_local_variables):
1617 Adapt to the new symbol value structure.
1618 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1619 (defvar_per_buffer): Take a new arg for the fwd object.
1620 (buffer_lisp_local_variables): Return a proper alist (different fix
1621 for bug#4138).
1622 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1623 (Fgarbage_collect): Don't handle buffer_defaults specially.
1624 (mark_object): Handle new symbol value structure rather than the old
1625 special Lisp_Misc_* objects.
1626 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1627 * term.c (set_tty_color_mode):
1628 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1629 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1630 a buffer_local_flags.
1631 * print.c (print_object): Get rid of impossible forwarding objects.
1632
fd3998ff
EZ
16332010-04-19 Eli Zaretskii <eliz@gnu.org>
1634
1635 * bidi.c (bidi_get_type, bidi_get_category)
1636 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1637 (bidi_type_of_next_char, bidi_level_of_next_char):
1638 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1639
e42cd1a7
JB
16402010-04-19 Juanma Barranquero <lekktu@gmail.com>
1641
1642 * dired.c (Ffile_attributes): Fix typo in docstring.
1643
6e104790 16442010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1645
1646 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1647 NSInteger (Bug#5811).
1648
6e104790 16492010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1650
1651 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1652 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1653
6e104790 16542010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1655
1656 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1657
6e104790
SM
16582010-04-19 Chong Yidong <cyd@stupidchicken.com>
1659
1660 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1661 terminal frames (Bug#5837).
1662
37dcfea0
EZ
16632010-04-19 Eli Zaretskii <eliz@gnu.org>
1664
d1da276f
EZ
1665 * .gdbinit (xsubchartable): New command.
1666
37dcfea0
EZ
16672010-04-19 Eli Zaretskii <eliz@gnu.org>
1668
1669 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1670 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1671 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1672 and
1673 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1674
e9515805
SM
16752010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1676
1677 * alloc.c (Fpurecopy): Hash-cons if requested.
1678 (syms_of_alloc): Update purify-flag docstring.
1679
22aa44a8
JD
16802010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1681
1682 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1683 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1684
ebb5722e
EZ
16852010-04-17 Eli Zaretskii <eliz@gnu.org>
1686
1687 Fix a crash when an NSM character is inserted at BEGV.
1688
1689 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1690 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1691 NEUTRAL_B or UNKNOWN_BT.
1692
0f4442ef
EZ
16932010-04-16 Eli Zaretskii <eliz@gnu.org>
1694
1695 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1696 other rows with cursor unless they are different from this row and
1697 this row is part of a continued line. (Bug#5943)
1698
7d4e45f8
DN
16992010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1700
1701 * s/freebsd.h: Restore osreldate.h include.
1702 Suggested by Naohiro Aota.
1703
5ba5ec85
J
17042010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1705
1706 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1707
20af301d
CY
17082010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1709
1710 * s/cygwin.h: Avoid linking against static libgcc.
1711
a4b000fb
JL
17122010-04-15 Juri Linkov <juri@jurta.org>
1713
1714 * window.c: Add Qscroll_command.
1715 Remove Vscroll_preserve_screen_position_commands.
1716 (window_scroll_pixel_based, window_scroll_line_based): Check the
1717 `scroll-command' property on the last command instead of searching
1718 the last command in Vscroll_preserve_screen_position_commands.
1719 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1720 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1721 (scroll-preserve-screen-position): Doc fix.
1722 (Vscroll_preserve_screen_position_commands): Remove variable.
1723
bc319ba4
DN
17242010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1725
6bb24457
DN
1726 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1727
19d4c244
DN
17282010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1729
1730 Reduce cpp use in Makefile.in.
1731 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1732 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1733 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1734 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1735 (CRT0_COMPILE): Remove, inline it in the only user.
1736
32129746
JL
17372010-04-14 Juri Linkov <juri@jurta.org>
1738
1739 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1740 `scroll-up-command' and `M-v' from `scroll-down' to
1741 `scroll-down-command'.
1742
9013a7f8
JL
17432010-04-14 Juri Linkov <juri@jurta.org>
1744
1745 * window.c (Vscroll_preserve_screen_position_commands): New variable
1746 with the default value as the list of Qscroll_down and Qscroll_up.
1747 (window_scroll_pixel_based, window_scroll_line_based): Search the
1748 last command in the list Vscroll_preserve_screen_position_commands
1749 instead of comparing with Qscroll_up and Qscroll_down.
1750
4bef8d26
JD
17512010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1752
92848133
JD
1753 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1754 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1755 does that.
1756
4bef8d26
JD
1757 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1758 to zero.
1759
58b963f7
SM
17602010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1761
84164a0d
SM
1762 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1763
2b0a91e7
SM
1764 Try to solve the problem of spurious EOF chars in long lines of text
1765 sent to interactive subprocesses.
1766 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1767 (system_process_attributes): Remove unused var `ttotal'.
1768 * process.c (send_process): Don't bother breaking long line with EOF
1769 chars when talking to ttys any more.
1770 (wait_reading_process_output): Output a warning when called in such
1771 a way that it could block without being interruptible.
1772
58b963f7
SM
1773 Try to detect file modification within the same second.
1774 * buffer.h (struct buffer): New field modtime_size.
1775 * buffer.c (reset_buffer): Initialize it.
1776 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1777 (Fverify_visited_file_modtime): Check it.
1778 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1779 (Fset_visited_file_modtime): Set (or clear) it.
1780
01f5787b
SM
17812010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1782
1783 * process.c (status_notify): Remove unused var `ro'.
1784
83725342
JD
17852010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1786
1787 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1788 more than one visual (Bug#5938).
1789
b9465836
DN
17902010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1791
50426a04
JB
1792 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1793 Undefine.
b9465836 1794
8d9c8ece
DN
17952010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1796
b1f52161
DN
1797 Remove C_SWITCH_SYSTEM_TEMACS.
1798 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1799 (malloc, realloc, free): Use emacs, not temacs for conditional
1800 definition.
1801
1802 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1803 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1804
8d9c8ece
DN
1805 Use autoconf, not cpp for some variables.
1806 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1807 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1808 (ALL_CFLAGS): Use them as make variables.
1809 (really-lwlib, really-oldXMenu): Do not pass them.
1810
1ecb2d3f
JD
18112010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1812
1813 * xmenu.c (apply_systemfont_to_dialog): New.
1814 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1815
3a4fa2f2
SM
18162010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1817
97e53006
SM
1818 * process.c (exec_sentinel): Preserve current-buffer.
1819
3a4fa2f2
SM
1820 * process.c (read_process_output): Move the save-current-buffer to
1821 apply to both the filter and the non-filter branches.
1822
88df7221
DN
18232010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1824
1825 * s/msdos.h (UNEXEC): New definition.
1826
5634ff85
YM
18272010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1828
6eff5c3d
YM
1829 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1830 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1831
1832 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1833 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1834 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1835 TRY_WINDOW_CHECK_MARGINS.
1836
1837 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1838 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1839 width only when it is for padding.
5634ff85 1840
b13aef54
J
18412010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1842
1843 * xfns.c (Fx_show_tip): Call try_window in a loop until
1844 fonts_changed_p is zero (Bug#2423).
1845
21d28484
EZ
18462010-04-08 Eli Zaretskii <eliz@gnu.org>
1847
1848 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1849 the end of TEXT_AREA. (Bug#5856)
1850
0269ef77
JD
18512010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1852
1853 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1854 HAVE_GCONF.
1855
5930fe97
EZ
18562010-04-08 Eli Zaretskii <eliz@gnu.org>
1857
1858 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1859 prev.orig_type, for resolving type of NSM. (Bug#5858)
1860
99852628
JD
18612010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1862
1863 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1864 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1865 in current_font.
1866 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1867 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1868 New functions.
1869 (syms_of_xsettings): Initialize current_font.
1870 defsubr Sfont_get_system_normal_font.
99852628
JD
1871
1872 * xsettings.h (Ffont_get_system_normal_font,
1873 xsettings_get_system_normal_font): Declare.
1874
1875 * xfns.c (extern xlwmenu_default_font): Remove.
1876 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1877 to xlwmenu.c.
1878
1879 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1880 menu items in UTF-8.
1881
1882 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1883 (apply_systemfont_to_menu): New function.
1884 (set_frame_menubar, create_and_show_popup_menu): Call
1885 apply_systemfont_to_menu.
1886
7fc874c4
J
18872010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1888
1889 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1890 FRAME_LINE_TO_PIXEL_Y.
1891
1892 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1893 pixelwidth/height.
1894
863bf481
DN
18952010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1896
5e5a3b92
DN
1897 Simplify code for HP machines.
1898 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1899 for GNU_LINUX, not needed.
1900 (UNEXEC, NEED_BSDTTY): Move definitions...
1901 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1902
863bf481
DN
1903 * m/iris4d.h (UNEXEC): Move definition ...
1904 * s/irix6-5.h (UNEXEC): ... here.
1905
3e6bec3b
JD
19062010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1907
1908 * xfns.c (set_machine_and_pid_properties): New function.
1909 (Fx_create_frame): Call set_machine_and_pid_properties.
1910
2912322b
SM
19112010-04-03 Eli Zaretskii <eliz@gnu.org>
1912
1502b819
EZ
1913 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1914 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1915 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1916
2912322b
SM
1917 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1918 in this function. (Bug#5703)
1919
19202010-04-03 Chong Yidong <cyd@stupidchicken.com>
1921
1922 * nsterm.h: Fix last change.
1923
c435b432
DN
19242010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1925
a568f507
DN
1926 * m/intel386.h (NO_REMAP): Move definition ...
1927 * s/msdos.h (NO_REMAP): ... here.
1928
4cd9f6c2
DN
1929 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1930
c435b432
DN
1931 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1932 used on those platforms.
1933
42a2c622
DN
19342010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1935
1936 Remove extern errno declarations.
1937 * xterm.c:
1938 * xrdb.c:
1939 * w32term.c:
1940 * unexec.c:
1941 * unexaix.c:
1942 * sysdep.c:
1943 * process.c:
1944 * lread.c:
1945 * keyboard.c:
1946 * floatfns.c:
1947 * filelock.c:
1948 * fileio.c:
1949 * emacs.c (main):
1950 * ecrt0.c:
1951 * dispnew.c:
1952 * callproc.c:
1953 * buffer.c: Remove errno extern declarations.
1954 * s/netbsd.h (NEED_ERRNO): Remove.
1955
8224f93d
DN
19562010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1957
1958 Remove all uses of LIBX11_SYSTEM.
1959 * Makefile.in (LIBX11_SYSTEM): Remove.
1960 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1961 instead.
1962
814062c7
EZ
19632010-04-01 Eli Zaretskii <eliz@gnu.org>
1964
ed68db4d
EZ
1965 Remove support for DJGPP v1.x (bug#5813).
1966
1967 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1968 * s/msdos.h:
1969 * unexec.c (make_hdr, copy_text_and_data):
1970 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1971 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1972 (IT_set_terminal_modes, __write, _rename, gethostname)
1973 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1974 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1975 the value of __DJGPP__.
ed68db4d
EZ
1976 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1977 compatibility code.
8224f93d
DN
1978 * lread.c:
1979 * gmalloc.c (memalign):
1980 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1981 * emacs.c (main):
1982 * dosfns.c (init_dosfns):
ed68db4d
EZ
1983 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1984
52f4d8d5
EZ
19852010-04-01 Eli Zaretskii <eliz@gnu.org>
1986
814062c7
EZ
1987 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1988 string with `cursor' property comes from an `after-string'
1989 overlay. (Bug#5816)
1990
0dc2e11d
GM
19912010-04-01 Glenn Morris <rgm@gnu.org>
1992
1993 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1994 Define as Makefile variables.
1995 (LIBX): Use above variables rather than directly using autoconf.
1996
1d29df59
DN
19972010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1998
1999 Clean up BSD_SYSTEM use.
2000 * xterm.c:
2001 * process.c:
2002 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2003 for including <sys/ioctl.h>.
2004 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2005 code is only used for MSDOS.
2006
1546c559
JL
20072010-03-31 Juri Linkov <juri@jurta.org>
2008
2009 * image.c: Add `Qextension_data'.
2010 (syms_of_image): Initialize and staticpro `Qextension_data'.
2011 (Fimage_metadata): Rename from `Fimage_extension_data'.
2012 (gif_load): Put GIF extension data to the property
2013 `Qextension_data'.
2014
6521c534
CY
20152010-03-31 Chong Yidong <cyd@stupidchicken.com>
2016
2017 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2018 * nsterm.h: Fix prototype.
2019
52c30783
EZ
20202010-03-31 Eli Zaretskii <eliz@gnu.org>
2021
2022 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2023 trailing whitespace in right-to-left rows.
2024
855a0da7
SM
20252010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2026
2027 Get rid of the direct_output optimizations.
2028 * keyboard.c (nonundocount): Remove extern declaration.
2029 (command_loop_1): Remove brittle optimisation for cheap and
2030 common operations.
2031 * xdisp.c (redisplay_internal): Don't bother checking
2032 redisplay_performed_directly_p any more.
2033 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2034 any more.
2035 * dispnew.c (redisplay_performed_directly_p)
2036 (direct_output_for_insert, direct_output_forward_char):
2037 * dispextern.h (redisplay_performed_directly_p)
2038 (direct_output_for_insert, direct_output_forward_char): Remove.
2039 * cmds.c (nonundocount): Make it static.
2040
85738751 20412010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2042
2043 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2044
85738751 20452010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2046
2047 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2048 invisible (Bug#5766).
2049
85738751 20502010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2051
855a0da7
SM
2052 * xdisp.c (x_consider_frame_title, update_window_cursor):
2053 Remove HAVE_NS conditionals.
194d44e7 2054 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2055
2056 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2057 filename for the title.
2058 (ns_set_doc_edited): Do nothing if the selected window is a
2059 minibuffer window.
2060
2061 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2062 ns_set_doc_edited.
2063
2064 * nsterm.m: Remove unneeded prototype.
2065
85738751 20662010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2067
2068 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2069 in the DOC file. (Bug#5336)
2070
85738751 20712010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2072
2073 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2074
75d1428c
SM
20752010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2076
2077 * window.c (keys_of_window): Remove redundant/overridden bindings.
2078
82043cfb
EZ
20792010-03-30 Eli Zaretskii <eliz@gnu.org>
2080
2081 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2082 Restore original behavior when the iterator is not bidi_p.
2083
b5dd0ae7
DN
20842010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2085
2086 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2087
bd924a5d
EZ
20882010-03-30 Eli Zaretskii <eliz@gnu.org>
2089
2090 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2091 are outside the range of cached character positions.
2092
3580374b
JB
20932010-03-30 Juanma Barranquero <lekktu@gmail.com>
2094
2095 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2096
a7b02820
EZ
20972010-03-30 Eli Zaretskii <eliz@gnu.org>
2098
2099 Initial support for bidirectional editing.
2100
2101 * Makefile.in (obj): Include bidi.o.
2102 (bidi.o): New target.
2103
2104 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2105 ($(BLD)/bidi.$(O)): New target.
2106
2107 * bidi.c: New file.
2108
2109 * buffer.h (struct buffer): New members bidi_display_reordering
2110 and bidi_paragraph_direction.
2111
2112 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2113 and bidi_paragraph_direction.
2114 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2115 and bidi-paragraph-direction.
2116 (Fbuffer_swap_text): Swap the values of
2117 bidi_display_reordering and bidi_paragraph_direction.
2118
2119 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2120 (bidi_type_t, bidi_dir_t): New types.
2121 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2122 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2123 prev_stop, base_level_stop, and eol_pos.
2124 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2125 (IT_STACK_SIZE): Enlarge to 5.
2126 (struct glyph_row): New member reversed_p.
2127 <string_buffer_position>: Update prototype.
2128 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2129 glyph_row if bidi_it.paragraph_dir == R2L.
2130 (struct glyph): New members resolved_level and bidi_type.
2131
2132 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2133 processing or buffer's direction is right-to-left.
2134 (prepare_desired_row): Preserve the reversed_p flag.
2135 (row_equal_p): Compare the reversed_p attributes as well.
2136
2137 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2138 bidi_init_it and set it->paragraph_embedding from the current
2139 buffer's value of bidi_paragraph_direction.
2140 (reseat_1): Initialize bidi_it.first_elt.
2141 (set_iterator_to_next, next_element_from_buffer): Use the value of
2142 paragraph_embedding to determine the paragraph direction.
2143 (set_iterator_to_next): Under bidi reordering, call
2144 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2145 new_paragraph flag is set in the bidi iterator.
2146 (next_element_from_buffer): If bidi_it.first_elt is set,
2147 initialize paragraph direction and find the first character to
2148 display in the visual order. If reseated to a middle of a line,
2149 prime the bidi iterator starting at the line's beginning. Handle
2150 the situation where we overstepped stop_charpos due to
2151 non-linearity of the bidi iteration. Likewise for when we back up
2152 beyond the previous stop_charpos. When moving across stop_charpos,
2153 record it in prev_stop.
2154 (display_line): Set row->end and it->start for the next row to the
2155 next character in logical order. Always extend reversed_p rows to
2156 the end of line, even if they end at ZV. Copy the reversed_p flag
2157 to the next glyph row. Keep calling set_cursor_from_row for
2158 bidi-reordered rows even if we already have a possible candidate
2159 for cursor position. Set row_end after all the row's glyphs have
2160 been produced, by looping over the glyphs. Record the position
2161 after EOL in it->eol_pos, and use it to set end_pos of the last
2162 row produced for a continued line.
2163 <Qright_to_left, Qleft_to_right>: New variables.
2164 (syms_of_xdisp): Initialize and staticpro them.
2165 (string_buffer_position_lim): New function.
2166 (string_buffer_position): Most of code moved to
2167 string_buffer_position_lim. Last argument and return value are
2168 now EMACS_INT; all callers changed.
2169 (set_cursor_from_row): Rewritten to support bidirectional text and
2170 reversed glyph rows.
2171 (text_outside_line_unchanged_p, try_window_id): Disable
2172 optimizations if we are reordering bidirectional text and the
2173 paragraph direction can be affected by the change.
2174 (append_glyph, append_composite_glyph)
2175 (produce_image_glyph, append_stretch_glyph): Set the
2176 resolved_level and bidi_type members of each glyph.
2177 (append_glyph): If the glyph row is reversed, prepend the glyph
2178 rather than appending it.
2179 (handle_stop_backwards): New function.
2180 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2181 (reseat): call handle_stop_backwards to recompute prev_stop and
2182 base_level_stop for the new position.
2183 (handle_invisible_prop): Under bidi iteration, skip invisible text
2184 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2185 paragraph direction. Update IT->prev_stop after skipping
2186 invisible text.
2187 (move_it_in_display_line_to): New variables prev_method
2188 and prev_pos. Compare for strict equality in
2189 BUFFER_POS_REACHED_P.
2190 (try_cursor_movement): Examine all the candidate rows that occlude
2191 point, to return the best match. If rows are bidi-reordered
2192 and point moved backwards, back up to the row that is not a
2193 continuation line, and start looking for a suitable row from
2194 there.
2195
2196 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2197 rather than appending, if the glyph_row's reversed_p flag is set.
2198 Set the resolved_level and bidi_type members of each glyph.
2199
2200 * .gdbinit (pbiditype): New command.
2201 (pgx): Use it to display bidi level and type of the glyph.
2202 (pitx): Display some bidi information about the iterator.
2203 (prowlims, pmtxrows): New commands.
2204
32a8894e
DN
22052010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2206
2207 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2208 * s/usg5-4.h (LIBS_DEBUG):
2209 * s/irix6-5.h (C_DEBUG_SWITCH):
2210 * s/gnu-linux.h (LIBS_DEBUG):
2211 * s/darwin.h (LIBS_DEBUG):
2212 * s/bsd-common.h (LIBS_DEBUG):
2213 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2214 * m/iris4d.h (LIBS_DEBUG):
2215 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2216
2217 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2218 (LIBS_DEBUG): Remove definition.
2219
649dbf36
CY
22202010-03-27 Chong Yidong <cyd@stupidchicken.com>
2221
2222 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2223 Windows.
2224
cad4261f
YM
22252010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2226
2227 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2228 `connect' (Bug#5723).
2229
cd591dbc
HE
22302010-03-25 Helmut Eller <eller.helmut@gmail.com>
2231
2232 * process.c (Fmake_network_process): Call `select' for interrupted
2233 `connect' rather than creating new socket (Bug#5173).
2234
e867cb5d 22352010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2236
2237 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2238
2239 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2240
2241 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2242
e867cb5d 22432010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2244
2245 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2246 XLoadQueryFont.
2247
e867cb5d 22482010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2249
2250 * coding.c (decode_coding_ccl): Fix previous change for the
2251 multibyte case.
fb608df3
KH
2252 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2253 case that the output buffer is fullfilled.
2254 (encode_coding): Setup ccl program here.
fbdc1721 2255
5845f0ed
DN
22562010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2257
814fb708
DN
2258 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2259
5845f0ed
DN
2260 Simplify LIBS_MACHINE definitions.
2261 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2262 * m/iris4d.h (LIBS_MACHINE): Likewise.
2263 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2264 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2265 * s/netbsd.h: Remove commented out code.
5845f0ed 2266
b7064064
DN
22672010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2268
df7734b2
DN
2269 Remove dead code dealing with POSIX_SIGNALS.
2270 * atimer.c (set_alarm): Remove dead code, all USG systems define
2271 POSIX_SIGNALS.
2272 * data.c (arith_error): Likewise.
2273 * keyboard.c (input_available_signal, handle_user_signal)
2274 (interrupt_signal): Likewise.
2275 * process.c (sigchld_handler): Likewise.
2276 (create_process): Remove if 0 code. Remove HPUX conditional when
2277 !defined (POSIX_SIGNALS), it cannot be true.
2278 * syssignal.h: Remove USG5_4 and USG conditionals when
2279 !POSIX_SIGNALS, they cannot be true.
2280
b7064064
DN
2281 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2282 NO_SOCK_SIGIO, not used anymore.
2283
55da5ee3
DN
22842010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2285
0be96e3a
DN
2286 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2287 support vax on BSDs.
2288
55da5ee3
DN
2289 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2290 * s/aix4-2.h (ORDINARY_LINK): ... here.
2291
c0282183
AS
22922010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2293
82c3d67a
AS
2294 * Makefile.in (abs_builddir): Define.
2295 (bootstrap_exe): Use it.
2296 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2297
3613edce
SM
22982010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2299
2300 * Makefile.in (bootstrap_exe): Use an absolute name.
2301
7f110ddc
DN
23022010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2303
22e87574
DN
2304 Remove support for old GNU/Linux using libc version 5.
2305 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2306 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2307
05a670e6
DN
2308 Consolidate redundant definitions in s/bsd-common.h.
2309 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2310 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2311 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2312 doing it in all files that include this one.
2313 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2314 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2315 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2316 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2317 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2318 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2319 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2320 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2321 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2322
2968f561
DN
2323 Consolidate redundant definitions.
2324 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2325 it's undefined in all files that include this one.
2326 (POSIX_SIGNALS): Define here instead of doing it in all files that
2327 include this one.
2328 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2329 (POSIX_SIGNALS): Do not define.
2330 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2331 (POSIX_SIGNALS): Do not define.
2332 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2333 (POSIX_SIGNALS): Do not define.
2334
15d25dc0
DN
2335 Remove support for old UNIX System V systems.
2336 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2337 * s/usg-5-4-2.h: Remove.
2338
07e339e4
DN
2339 Remove support for Solaris on PPC and for old versions.
2340 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2341 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2342 that cancel each other.
2343 * s/sol2-3.h:
2344 * s/sol2-4.h:
2345 * s/sol2-5.h: Remove.
2346 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2347 (NO_REMAP): Remove, unused.
2348 (UNEXEC): Move definition ...
2349 * s/aix4-2.h (UNEXEC): ... here.
2350
7f110ddc
DN
2351 * s/openbsd.h: Remove support for non-ELF and for systems that do
2352 not support shared libraries.
2353 * s/netbsd.h:
2354 * s/freebsd.h: Likewise.
2355
605f35cd
DN
23562010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2357
2358 Remove non-working support for lynxos 3.0.
2359 * s/lynxos.h: Remove file.
2360
2361 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2362 COFF_BSD_SYMBOLS, nothing defines it anymore.
2363
aed71cf4
DN
23642010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2365
2366 Remove obsolete uses of HAVE_SHM.
2367 * emacs.c (standard_args):
2368 (Fdump_emacs):
2369 (syms_of_emacs): Remove code depending on HAVE_SHM.
2370
2371 * alloc.c: Remove HAVE_SHM dependent definition.
2372
2373 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2374
aded53ff
GM
23752010-03-18 Glenn Morris <rgm@gnu.org>
2376
17284745
GM
2377 * emacs.c (USAGE4): Hard-code bug address.
2378 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2379 (bug_reporting_address): Remove.
2380 (main): Don't call bug_reporting_address.
2381
aded53ff
GM
2382 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2383 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2384
303500aa
CY
23852010-03-15 Chong Yidong <cyd@stupidchicken.com>
2386
2387 * xfns.c (Fx_create_frame):
2388 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2389 on left.
2390
cef3058f
CY
23912010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2392
2393 * editfns.c (Fformat): Account for string precision when computing
2394 field width (Bug#5710).
2395
a647d59d
CY
23962010-03-12 Chong Yidong <cyd@stupidchicken.com>
2397
4fa42018
CY
2398 * xfns.c (Fx_create_frame): Set default to Qright.
2399
a647d59d
CY
2400 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2401 all window systems.
2402
6da23aaa
EZ
24032010-03-12 Eli Zaretskii <eliz@gnu.org>
2404
a96f6398 2405 These changes remove termcap.c from the build on Posix platforms.
83d02def 2406 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2407 (MSDOS_OBJ): ...to here.
2408 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2409 now identical to when LIBS_TERMCAP is defined.
2410
2411 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2412
2413 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2414
a96f6398 2415 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2416
288f9fc0
CY
24172010-03-10 Chong Yidong <cyd@stupidchicken.com>
2418
2419 * Branch for 23.2.
2420
d48cd3f4
SM
24212010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2422
2423 Cleanup setup of gl_state in various parts of the code.
2424 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2425 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2426 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2427 (skip_chars):
2428 * regex.c (regex_compile): Use it.
2429 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2430 it's now set in regex_compile when/if we need it.
2431
618db430
SM
24322010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2433
c0335e02
SM
2434 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2435 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2436 (QUIT): Use it to consolidate code and remove redundancy.
2437 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2438
254c06a8
SM
2439 * regex.c (regex_compile): Setup gl_state as well.
2440
618db430
SM
2441 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2442 (in_classes): Use CONSP before XCAR/XCDR.
2443
233f0c9f
CY
24442010-03-03 Chong Yidong <cyd@stupidchicken.com>
2445
2446 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2447 definitions, so that keyboard macros are correctly handled
2448 (Bug#5481).
2449
75f80e63
EZ
24502010-03-02 Eli Zaretskii <eliz@gnu.org>
2451
2452 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2453 text that could be relocated inside the call to emacs_mule_char.
2454 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2455 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2456
dcfb9bc4
KH
24572010-03-02 Kenichi Handa <handa@m17n.org>
2458
fc9a17bc
KH
2459 * character.c (parse_str_as_multibyte): Fix handling of the
2460 multibyte form of raw-bytes.
2461 (str_as_multibyte): Likewise.
2462
dcfb9bc4
KH
2463 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2464 form of raw-bytes.
2465
412c01b6
CY
24662010-02-28 Chong Yidong <cyd@stupidchicken.com>
2467
2468 * charset.c (load_charset_map_from_file)
2469 (load_charset_map_from_vector): Zero out allocated
2470 charset_map_entries before using them.
2471
df7e1ea0
AS
24722010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2473
2474 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2475
fe69a722
CY
24762010-02-27 Chong Yidong <cyd@stupidchicken.com>
2477
4ed28cf4
CY
2478 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2479 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2480
7379cfce
KH
24812010-02-26 Kenichi Handa <handa@m17n.org>
2482
f88cc4d6
KH
2483 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2484
7379cfce
KH
2485 * xdisp.c (reseat_to_string): Fix previous change.
2486
cf2fdcfb
CY
24872010-02-26 David Reitter <david.reitter@gmail.com>
2488
2489 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2490 Lisp_Object (Bug#4736).
2491
cc6c7c75
KH
24922010-02-25 Kenichi Handa <handa@m17n.org>
2493
2494 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2495
32e737d7
JD
24962010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2497
2498 * xterm.c (XTflash): Move declarations before statements.
2499
2500 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2501 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2502 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2503 (xg_create_tool_bar): Remove unused variables.
2504 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2505 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2506
676cae9f
CY
25072010-02-21 Chong Yidong <cyd@stupidchicken.com>
2508
2509 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2510
886cc2b8
SM
25112010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2512
2513 * term.c (fatal): Add a final \n if needed (bug#5596).
2514
ddb2d8e2
CY
25152010-02-18 Chong Yidong <cyd@stupidchicken.com>
2516
2517 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2518
2a4f8d3d
GM
25192010-02-18 Glenn Morris <rgm@gnu.org>
2520
2521 * callint.c (Finteractive): Doc fix.
2522
ebaf11b6
KH
25232010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2524
886cc2b8
SM
2525 * coding.c (record_conversion_result):
2526 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2527 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2528 memory allocation error.
2529
d0396581
KH
25302010-02-17 Kenichi Handa <handa@m17n.org>
2531
886cc2b8
SM
2532 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2533 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2534 (decode_coding): Setup ccl program here. Keep looping when the
2535 decoder stopped because the output buffer is
2536 fullfilled (bug#5534).
2537
2538 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2539
98599f74
JD
25402010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2541
471e4f04 2542 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2543 bug #5571.
886cc2b8 2544 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2545 overdrawn.
98599f74 2546
182659ae
JD
25472010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2548
2549 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2550 doing_interact here.
2551 (ice_connection_closed): New function.
2552 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2553 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2554 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2555 returns I/O error.
2556 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2557 bug #5512.
2558
9be32c4e 25592010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2560
2561 * nsfont.m (nsfont_open): The system's value for the font descent
2562 is negative, so round it down to avoid clipping.
2563
a2f3eb19
CY
25642010-02-06 Chong Yidong <cyd@stupidchicken.com>
2565
2566 * charset.c (load_charset_map_from_file)
2567 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2568 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2569
3088147c
CY
25702010-02-05 Chong Yidong <cyd@stupidchicken.com>
2571
2572 * charset.c (load_charset_map_from_file): Allocate large
2573 charset_map_entries structure on the heap rather than the stack.
2574 (Bug#5526).
2575
b57d9029
KH
25762010-01-31 Kenichi Handa <handa@m17n.org>
2577
2578 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2579 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2580
c67d885b
CY
25812010-01-31 Chong Yidong <cyd@stupidchicken.com>
2582
2583 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2584 <deactivated@gmail.com> (Bug#3605).
2585
8fab2362
CY
25862010-01-31 David De La Harpe Golden <david@harpegolden.net>
2587
2588 * fileio.c (Frename_file): Correctly rename symlinks to
2589 directories (Bug#5496).
2590
cb2a62f2
CY
25912010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2592
2593 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2594
944c7a26
AS
25952010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2596
2597 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2598
c024ac08
CY
25992010-01-29 Chong Yidong <cyd@stupidchicken.com>
2600
2601 * frame.c (DEFAULT_ROWS): Change default to 35.
2602
2603 * xfns.c (x_default_font_parameter): Change default XFT font to
2604 monospace-10 (Bug#3643).
2605
af93af83
EZ
26062010-01-29 Eli Zaretskii <eliz@gnu.org>
2607
2608 * w32inevt.c (key_event): Remove unnecessary comparison of
2609 event->uChar.AsciiChar with 128.
2610
ca0eb708
CY
26112010-01-28 Chong Yidong <cyd@stupidchicken.com>
2612
b242dbfc
CY
2613 * fileio.c (Frename_file): Fix last change (Bug#5487).
2614
ca0eb708
CY
2615 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2616
2617 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2618
45d45af5
JD
26192010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2620
2621 * xfns.c (Fx_create_frame): Remove window size matching code from
2622 2010-01-15.
a73f9c9d 2623 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 2624
7e233730
JR
26252010-01-27 Jason Rumney <jasonr@gnu.org>
2626
2627 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2628 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2629
86e893e3
KH
26302010-01-27 Kenichi Handa <handa@m17n.org>
2631
2632 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2633 pattern string (Bug#4209).
86e893e3 2634
8719abec
CY
26352010-01-27 David De La Harpe Golden <david@harpegolden.net>
2636
2637 * fileio.c (Frename_file): Call copy-directory and
2638 delete-directory for directories, in order to handle cross-device
2639 renaming (Bug#3353).
2640
844794c8
JD
26412010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2642
aa3e13b5 2643 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2644 sizes 24 and 10. Bug #3643.
844794c8 2645
bd4b5750
SM
26462010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2647
8dc1adf6 2648 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2649 * keymap.c (shadow_lookup): Add `remap' arg.
2650 (describe_map, describe_vector): Update calls to shadow_lookup.
2651 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2652 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2653 perform remapping during shadow_lookup check of remapped_sequences.
2654
285d07e2
CY
26552010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2656
2657 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2658 png_check_sig, which has been removed in libpng 1.4.
2659
c6d09b8d
CY
26602010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2661
2662 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2663 lacks this header file).
2664
3d782998
YM
26652010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2666
2667 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2668 as in Emacs 22.
2669
2aff7c53
YM
26702010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2671
2672 * lisp.h (make_pure_string): String pointer arg now points to const.
2673
2674 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2675 args now point to const.
2676
74327f7a
EZ
26772010-01-22 Eli Zaretskii <eliz@gnu.org>
2678
2679 * lread.c (Fload): Don't treat files without .elc extension as
2680 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2681 them. (bug#5303)
2682
4d1e6632
KH
26832010-01-20 Kenichi Handa <handa@m17n.org>
2684
2685 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2686 treat the source as actual byte sequence.
2687
1fdede8f
AM
26882010-01-19 Alan Mackenzie <acm@muc.de>
2689
2690 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2691 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2692 `signal_after_change_p' to `coherent_change_p', and make the
2693 invocation of `modify_region' conditional on it.
2694
67477f30
JD
26952010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2696
2697 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2698 for debug purpose.
2699 (syms_of_xsettings): Declare xft-settings.
2700
244b023e
CY
27012010-01-18 Chong Yidong <cyd@stupidchicken.com>
2702
2703 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2704
617364fe
CY
27052010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2706
2707 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2708
4fe22cdf
CY
27092010-01-16 Chong Yidong <cyd@stupidchicken.com>
2710
2711 * emacs.c (standard_args): Adjust arg priorities to reflect how
2712 they are processed in startup.el.
2713
e118d2be
AS
27142010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2715
2716 * Makefile.in (lisp, shortlisp): Update.
2717
523ae620
SM
27182010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2719
2720 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2721 code, link the new kboard into all_kboard before running Lisp code,
2722 and protect the new terminal with GCPRO (Bug#5365).
2723 (x_term_init): Remove unused var `atom'.
2724 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2725
f0d13888
JD
27262010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2727
2728 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2729 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2730 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2731 this. Bug #3643.
f0d13888 2732
cc320f07
KH
27332010-01-15 Kenichi Handa <handa@m17n.org>
2734
2735 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2736
7ffdf101
CY
27372010-01-15 Chong Yidong <cyd@stupidchicken.com>
2738
2739 * nsterm.m (Qnone): Define.
2740
2741 * nsfns.m (Qnone): Move definition to nsterm.m.
2742
d12bd917
KH
27432010-01-14 Kenichi Handa <handa@m17n.org>
2744
2745 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2746 systems.
2747
d9a7c140
KH
27482010-01-14 Kenichi Handa <handa@m17n.org>
2749
2750 Make auto-composition work on all buffers even if they are
2751 fundamental mode.
2752
2753 * composite.c (Vauto_composition_mode): New variable.
2754 (composition_compute_stop_pos): Check Vauto_composition_mode
2755 instead of Vauto_composition_function.
2756 (composition_adjust_point, Ffind_composition_internal): Likewise.
2757 (syms_of_composite): Declare Lisp variable
2758 "auto-composition-mode" here.
2759
63286bb2
CY
27602010-01-13 Chong Yidong <cyd@stupidchicken.com>
2761
2762 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2763 during call to vendor-specific-keysyms (Bug#5365).
2764
c2623ee7
YM
27652010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2766
2767 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2768 Call SIGNAL_THREAD_CHECK (Bug#5333).
2769
2770 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2771 Call SIGNAL_THREAD_CHECK.
2772
0b5397c2
SM
27732010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2774
2775 Try to fix bug#5314. This is probably not the final word, tho.
2776 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2777 recent-auto-save-p as a side-effect.
2778 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2779 * buffer.c (Fkill_buffer, reset_buffer):
2780 * editfns.c (Fsubst_char_in_region):
2781 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2782 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2783
dc954cb2
KH
27842010-01-13 Kenichi Handa <handa@m17n.org>
2785
2786 Display buffer name, etc. in mode line by composing correctly.
2787
2788 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2789 STRING is not nil.
0b5397c2 2790 (display_mode_element): Adjust for the change of
dc954cb2
KH
2791 decode_mode_spec and display_line.
2792 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2793 (display_string): Handle the case that STRING is non-null and
2794 LISP_STRING is not nil.
2795
0b5397c2
SM
2796 * xterm.c (x_draw_composite_glyph_string_foreground):
2797 Pay attention to s->face->overstrike.
dc954cb2
KH
2798
2799 * composite.c (composition_reseat_it): Don't check PT if STRING is
2800 non nil.
2801
4a00eaca
YM
28022010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2803
2804 * keyboard.c (read_char): Don't apply previous change when current
2805 buffer is unchanged by command execution.
2806
60abb287
JD
28072010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2808
2809 * keyboard.c (read_char): Return after executing from special map.
2810
893db5bc
GM
28112010-01-12 Glenn Morris <rgm@gnu.org>
2812
2813 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2814 bug-gnu-emacs rather than emacs-pretest-bug.
2815
4d03ece0
CY
28162010-01-11 Chong Yidong <cyd@stupidchicken.com>
2817
2818 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2819 initializing the Lisp variables that depend on them.
2820
1df47e38
YM
28212010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2822
2823 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2824 Clear areas that will not be updated after change of menu bar lines.
2825 Clear the menu bar window's current matrix when the window gets empty.
2826
2f1c6384
CY
28272010-01-09 Chong Yidong <cyd@stupidchicken.com>
2828
e398c61c
CY
2829 * intervals.h, textprop.c (extend_property_ranges): Return value
2830 and args changed. Discard properties that begin at or after the
2831 new end (Bug#5306).
2832
2833 * editfns.c (Fformat): Caller changed.
2834
e5a29a10
CY
2835 * nsterm.m (ns_set_default_prefs): Delete function.
2836 (syms_of_nsterm): Initialize ns_command_modifier,
2837 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2838 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2839
2f1c6384
CY
2840 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2841 position (Bug#4040).
2842
d427a9fa
EZ
28432010-01-09 Eli Zaretskii <eliz@gnu.org>
2844
2845 * editfns.c (Ffloat_time): Doc fix.
2846
21b9df2f
JD
28472010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2848
2849 * xfns.c (Fx_create_frame): Don't create frame larger than display
2850 by default bug#3643.
2851
4b00d3b1
YM
28522010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2853
2854 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2855 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2856 windows above internal border.
2857
2858 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2859 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2860 windows above internal border.
2861
2862 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2863 tool bar windows specially.
2864
2865 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2866
2867 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2868 specially.
2869 (XTflash): Take account of menu bar height.
2870
2871 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2872 specially.
2873
5075d853
JD
28742010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2875
ac146f82 2876 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2877 also be true before we can return early (bug #5339).
2878
474217c8
CY
28792010-01-06 David Reitter <david.reitter@gmail.com>
2880
2881 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2882 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2883 (Bug#3233).
2884
c0e6d47d
JD
28852010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2886
d0cf45b7
JD
2887 * font.c (font_open_entity): Enable chache and call cached_font_ok
2888 for the driver if defined.
2889 (QCuser_spec): New symbol.
2890 (font_spec_from_name): Save name as user-spec.
2891 (font_load_for_lface): Keep user-spec instead of name.
2892 (font_open_by_name): Save name as user-spec.
2893 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2894 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2895
2896 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2897 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2898 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2899
2900 * font.h (struct font_driver): Add cached_font_ok.
2901
c0e6d47d
JD
2902 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2903
7c583cd8
JD
29042010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2905
2906 * xterm.c (x_new_font): Move code for setting rows/cols before
2907 resizing ...
ac146f82 2908 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2909
2910 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2911 (xg_frame_resized, xg_frame_set_char_size):
2912 Call xg_clear_under_internal_border.
7c583cd8 2913 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2914
03f77f0a
CY
29152010-01-05 Chong Yidong <cyd@stupidchicken.com>
2916
2917 * keyboard.c (read_key_sequence): Catch keyboard switch after
2918 making a new tty frame (Bug#5095).
2919
2a1ef5be
KH
29202010-01-05 Kenichi Handa <handa@m17n.org>
2921
2922 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2923
e3eb1dae
SM
29242010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2925
2926 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2927 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2928 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2929
777013f2
MA
29302010-01-03 Michael Albinus <michael.albinus@gmx.de>
2931
2932 * dbusbind.c (xd_add_watch): Improve debug message.
2933 (xd_remove_watch): Improve debug message. If DATA is the session
2934 bus, unset D-Bus session environment.
2935 (Fdbus_init_bus): Pass the bus as argument to
2936 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2937
8932b1c2
CY
29382010-01-01 Chong Yidong <cyd@stupidchicken.com>
2939
87231e2c
CY
2940 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2941
4801c5fa
CY
2942 * lread.c (syms_of_lread): Make it clearer that these are the
2943 names of loaded files (Bug#5068).
2944
8932b1c2
CY
2945 * eval.c (run_hook_with_args): Handle the case where the global
2946 value has the obsolete single-function form (Bug#5026).
2947
11e3c684
CY
29482009-12-27 Chong Yidong <cyd@stupidchicken.com>
2949
2950 * minibuf.c (Fall_completions): Minor optimization.
2951
5b28ce35
EZ
29522009-12-26 Eli Zaretskii <eliz@gnu.org>
2953
5ce6e4f4
JB
2954 * .gdbinit (pgx): Fix display of composite glyphs.
2955 Display cmp.from and cmp.to as well.
2956 (pitx): Fix last change.
5b28ce35 2957
bcffff46
KH
29582009-12-25 Kenichi Handa <handa@m17n.org>
2959
2960 * composite.h (composition_adjust_point): Update prototype.
2961
2962 * composite.c (composition_reseat_it): Don't make a composition
2963 spanning over point.
2964 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2965 composable characters.
2966 (composition_adjust_point): New arg NEW_PT. Callers changed.
2967
2968 * keyboard.c (command_loop_1): Force redisplay if the last point
2969 was within a composition.
2970 (adjust_point_for_property): Don't adjust point for automatic
2971 composition when called after buffer modification.
2972
3f670e9a
EZ
29732009-12-19 Eli Zaretskii <eliz@gnu.org>
2974
5ce6e4f4
JB
2975 * .gdbinit (pitx): Don't use enum names, use their values.
2976 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2977 (pgx): Don't use enum names, use their values.
2978 (pitmethod): New helper command.
2979 (pitx): Use it to display iteration method.
2980 (pgrowit): New command.
2981
ad903955
EZ
2982 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2983
3f670e9a
EZ
2984 Update dependencies in Makefile.in.
2985
2986 * Makefile.in (alloc.o): Depend on termhooks.h.
2987 (atimer.o): Depend on blockinput.h.
2988 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2989 and frame.h.
2990 (callint.o): Depend on systime.h, coding.h, and composite.h.
2991 (callproc.o): Depend on buffer.h.
2992 (casefiddle.o): Don't depend on charset.h.
2993 (casetab.o): Depend on character.h.
2994 (ccl.o): Depend on composite.h.
2995 (chartab.o): Depend on ccl.h.
2996 (cm.o): Depend on dispextern.h.
2997 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2998 (coding.o): Don't depend on $(INTERVALS_H).
2999 (composite.o): Don't depend on dispextern.h explicitly (it's in
3000 $(INTERVALS_H)). Depend on ccl.h.
3001 (data.o): Depend on systime.h, coding.h, composite.h,
3002 dispextern.h, font.h, and ccl.h.
3003 (dired.o): Depend on composite.h.
3004 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3005 composite.h (it's in $(INTERVALS_H)).
3006 (doc.o): Depend on systime.h, coding.h, and composite.h.
3007 (editfns.o): Don't depend explicitly on dispextern.h.
3008 (emacs.o): Depend on frame.h and coding.h.
3009 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3010 (fileio.o): Depend on frame.h and commands.h. Don't depend
3011 explicitly on dispextern.h.
3012 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3013 composite.h.
3014 (fns.o): Don't depend on termhooks.h.
3015 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3016 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3017 coding.h, $(INTERVALS_H), window.h, xterm.h.
3018 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3019 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3020 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3021 fontset.h, ccl.h, and ftfont.h.
3022 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3023 (gtkutil.o): Depend on dispextern.h and composite.h.
3024 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3025 termhooks.h, and ccl.h.
3026 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3027 (intervals.o): Depend on systime.h and coding.h.
3028 (keyboard.o): Depend on composite.h and coding.h.
3029 (keymap.o): Depend on coding.h and frame.h.
3030 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3031 (macros.o): Depend on systime.h, coding.h, and composite.h.
3032 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3033 and atimer.h.
3034 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3035 dispextern.h explicitly.
0b5397c2
SM
3036 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3037 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3038 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3039 (regex.o): Don't depend on charset.h.
3040 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3041 (search.o): Don't depend explicitly on composite.h.
3042 (sound.o): Depend on atimer.h and systime.h.
3043 (syntax.o): Don't depend explicitly on composite.h.
3044 (sysdep.o): Depend on coding.h and composite.h.
3045 (term.o): Depend on xterm.h and buffer.h.
3046 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3047 (textprop.o): Don't depend on dispextern.h explicitly.
3048 (undo.o): Depend on dispextern.h.
3049 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3050 dispextern.h and composite.h explicitly.
3051 (xdisp.o): Depend on ccl.h.
3052 (xfaces.o): Depend on coding.h and ccl.h.
3053 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3054 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3055 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3056 ftfont.h.
3057 (xgselect.o): New dependency.
3058 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3059 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3060 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3061 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3062 (xsmfns.o): Depend on frame.h and dispextern.h.
3063 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3064 sysselect.h.
3065
7a6f7fea
AS
30662009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3067
3068 * font.c (Fclear_font_cache): Pass correct cache argument to
3069 font_clear_cache.
3070
f4c21026
AS
30712009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3072
3073 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3074 twice.
3075
f7ab0997
CY
30762009-12-15 Chong Yidong <cyd@stupidchicken.com>
3077
3078 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3079 calling file-remote-p. Reported by Jim Meyering.
3080
fa8e045a
MA
30812009-12-15 Michael Albinus <michael.albinus@gmx.de>
3082
3083 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3084 avoid compiler warnings. (Bug #5217)
fa8e045a 3085
a63dba42
KH
30862009-12-14 Kenichi Handa <handa@m17n.org>
3087
3088 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3089 in 8-bit encoding.
3090
5ce6e4f4 30912009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3092
3093 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3094 tooltip windows.
3095
223e5fc6
JD
30962009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3097
36acb2a7
JD
3098 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3099 Xatom_net_window_type.
3100
3101 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3102 Xatom_net_window_type.
3103
b8f00677
JD
3104 * xterm.c (my_log_handler): New function.
3105 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3106 so we can filter out buggy messages. (Bug #5120).
b8f00677 3107
e5f0bc9a
JD
3108 * xterm.c (xg_scroll_callback): Parameter list changed,
3109 use parameter GtkScrollType to determine scroll/line/page.
3110 Only allow dragging if a button < 4 is grabbed (bug #5177).
3111 (xg_end_scroll_callback): New function.
3112 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3113 xg_create_scroll_bar.
3114
3115 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3116 (scroll_end_callback): Remove.
3117 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3118 button-release-event. Replace value-changed event with change-value,
3119 bug #5177,
3120 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3121 bug #5177.
3122
3123 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3124 (xg_create_scroll_bar): Add GCallback end_callback.
3125
223e5fc6
JD
3126 * xftfont.c (QClcdfilter): New variable.
3127 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3128 (syms_of_xftfont): Initialize QClcdfilter.
3129
3c055b77
JD
31302009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3131
3132 * xsettings.c (struct xsettings): Add member seen.
3133 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3134 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3135 (apply_xft_settings): Only update Xft settings with what member seen
3136 indicates as new.
3137
05fe33ff
EZ
31382009-12-12 Eli Zaretskii <eliz@gnu.org>
3139
3140 * dispextern.h (struct text_pos): Use EMACS_INT;
3141 (struct glyph): Use EMACS_INT for charpos.
3142 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3143 region_beg_charpos, region_end_charpos,
3144 redisplay_end_trigger_charpos, and also for
3145 iterator_stack_entry.end_charpos and
3146 iterator_stack_entry.stop_charpos.
3147
e8d7886a
JD
31482009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3149
5ce6e4f4 3150 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3151 (xg_create_scroll_bar): Call scroll_end_callback on button release
3152 event (bug #5177).
3153 (xg_event_is_for_scrollbar): != replaced with ==.
3154
d0db2ec8
KH
31552009-12-12 Kenichi Handa <handa@m17n.org>
3156
3157 * ftfont.c (struct ftfont_info): New member matrix.
3158 (ftfont_open): Setup xftfont_info->matrix.
3159 (MFLTFontFT): New member matrix.
3160 (FLOOR, CEIL, ROUND): New macros.
3161 (ftfont_get_metrics): Handle matrix transformation.
3162 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3163
3164 * xftfont.c (struct xftfont_info): New member matrix.
3165 (xftfont_open): Setup xftfont_info->matrix.
3166
31672009-12-10 Kenichi Handa <handa@m17n.org>
3168
3169 * xdisp.c (append_space_for_newline): Consider face-remapping.
3170
2cc7b62f
AS
31712009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3172
b87dd913
AS
3173 * xsettings.c: Include "keyboard.h".
3174
eba5eb94
AS
3175 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3176
2cc7b62f
AS
3177 Fix implicit function declarations.
3178 * cmds.c: Include "frame.h".
3179 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3180 * frame.h: Move declaration of delete_frame outside of
3181 HAVE_WINDOW_SYSTEM.
3182
a4ef73c8
CY
31832009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3184
3185 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3186
3187 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3188 GTK builds.
3189
944a300c
AS
31902009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3191
3192 * unexelf.c (unexec): Don't search for .data twice.
3193
022eef62
CY
31942009-12-05 Chong Yidong <cyd@stupidchicken.com>
3195
426ac949
CY
3196 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3197 if push failed.
3198 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3199 of push_display_prop (Bug#5000).
3200
022eef62
CY
3201 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3202 value of font_list_entities (Bug#5085).
3203
be95bee9
JB
32042009-12-04 Juanma Barranquero <lekktu@gmail.com>
3205
3206 Fix `string-to-number' to deal consistently with integers and floats.
3207 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3208 trailing characters, not just whitespace.
3209 (read1): Pass new arg 0 to keep old behavior.
3210 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3211 trailing chars, as it is already done for integers. Doc fixes.
3212 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3213
24c2d7ce
EZ
32142009-12-04 Eli Zaretskii <eliz@gnu.org>
3215
0b5397c2
SM
3216 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3217 Delete unused enumeration value.
24c2d7ce 3218
7e694795
EZ
32192009-12-03 Eli Zaretskii <eliz@gnu.org>
3220
3221 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3222
84b31826
SM
32232009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3224
3225 * process.c (Fmake_network_process): Fix up the tests for
3226 "connectionless socket", so they DTRT for seqpacket sockets as well.
3227
f00c449b
SM
32282009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3229
3230 * process.c (Qseqpacket): New symbol.
3231 (HAVE_SEQPACKET): New macro.
3232 (Fmake_network_process): Accept new :type `seqpacket'.
3233 (init_process): Add `seqpacket' feature when applicable.
3234 (syms_of_process): Initialize Qseqpacket.
3235
8096a0ff
YM
32362009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3237
3238 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3239 if entity is Qnil.
3240
3e0de07f
SM
32412009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3242
3243 * print.c (print_preprocess): Preprocess the key_and_value table of
3244 hashtables, even tho they're "hidden" (bug#5082).
3245
abeafb2a
JD
32462009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3247
3248 * frame.c (frame_make_pointer_invisible)
3249 (frame_make_pointer_visible): Declare f before statements.
3250
4bf47195
EZ
32512009-11-28 Eli Zaretskii <eliz@gnu.org>
3252
3253 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3254 omitted dependencies on lisp.h.
3255
c525b3f2
JD
32562009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3257
ece2d4ed
JD
3258 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3259 is NULL.
3260
3261 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3262
3263 * frame.c (frame_make_pointer_invisible)
3e0de07f 3264 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3265 frame.
3266
c525b3f2
JD
3267 * search.c (simple_search): Remove warning by making *p const.
3268
2f00e299
DN
32692009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3270
3271 * xdisp.c (power_letter): Remove duplicate const.
3272
084b049b
JD
32732009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3274
a1fadc6f
JD
3275 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3276
5ce6e4f4 3277 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3278 defaults (bug #5025).
3279
28259cac
SM
32802009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3281
3282 * insdel.c (adjust_markers_for_delete): Move it in the
3283 right direction! (bug#4803)
3284
e8e14166
YM
32852009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3286
3287 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3288
3289 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3290
86677b58
GM
32912009-11-24 Glenn Morris <rgm@gnu.org>
3292
3293 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3294
581e51e8
JD
32952009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3296
cfc86c7a
JD
3297 * Makefile.in: Must create deps for ecrt0.o in its rule.
3298
581e51e8
JD
3299 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3300 because that is what Gtk+ font dialog understands.
3301
3302 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3303 of Fcopy_sequence.
3304 (font_open_by_name): Put name given into QCname for font-object returned.
3305
3306 * frame.c (x_set_font): Save original font name as frame parameter
3307 font-parameter.
3308
3309 * xsettings.c (set_default_xft_settings): New function.
3310 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3311 is found.
3312
8b264ecb
AS
33132009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3314
3315 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3316 searching backwards through multibyte buffer.
3317
872870b2
JD
33182009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3319
3320 * xterm.c: #include xgselect.h.
3321 (x_initialize): Call xgselect_initialize.
3322
3323 * xsettings.c (something_changedCB): C++ comments => C comments.
3324 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3325 does that now.
3326
3327 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3328 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3329 (scroll_bar_button_cb): Remove.
5ce6e4f4 3330 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3331 event.
3332 (xg_create_scroll_bar): Don't bind button-press-event and
3333 button-release-event.
3334
3335 * process.c: Include xgselect.h if defined (USE_GTK) ||
3336 defined (HAVE_GCONF).
3337 (wait_reading_process_output): Call xg_select for the same condition.
3338
3339 * xgselect.c (xg_select): New function to better integrate with
3340 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3341
3342 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3343
3344 * Makefile.in (XOBJ): Add xgselect.o.
3345
62a6e103
AS
33462009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3347
0b5397c2
SM
3348 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3349 Remove ignored second argument. All callers changed.
62a6e103
AS
3350 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3351 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3352 * xdisp.c (string_char_and_length): Likewise.
3353
b0ca0f33
DN
33542009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3355
3356 * xterm.c (x_new_font):
3357 * print.c (print_object):
3358 * cmds.c (Fself_insert_command): Move declarations before statements.
3359
dd5a6279
CY
33602009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3361
3362 * s/cygwin.h: Remove unneeded linker flags.
3363
4a8e097d
JD
33642009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3365
0d1d0d26
JD
3366 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3367
3368 * xsettings.h: Declare xsettings_get_system_font.
3369
3370 * xsettings.c (xsettings_get_system_font): New function.
3371 (init_gconf): No use initiating gconf unless we have Xft also.
3372 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3373 HAVE_GCONF.
3374
4a8e097d
JD
3375 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3376 add a blank entry so it doesn't collapse into nothing.
3377
8ab1650e
SM
33782009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3379
3380 * lread.c (Funintern): Comment out last change.
3381
82c602f0
RS
33822009-11-19 Richard Stallman <rms@gnu.org>
3383
3384 * lread.c (Funintern): Error if symbol is t or nil.
3385
87e32266
SM
33862009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3387
3388 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3389 representation of Lisp integers.
3390 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3391
1b9ac145
AS
33922009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3393
3394 * lisp.h: Remove declaration of Ffont_get_system_font.
3395 * xfns.c: Move include of "xsettings.h".
3396 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3397
dfb3c4c6
JD
33982009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3399
87e32266
SM
3400 * xsettings.c (something_changedCB, Ffont_get_system_font):
3401 Check use_system_font.
dfb3c4c6
JD
3402 (syms_of_xsettings): DEFVAR font-use-system-font.
3403
9370c1d8
AS
34042009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3405
25fe851a
AS
3406 * xfns.c (x_default_font_parameter): Remove dead assignment.
3407
9370c1d8
AS
3408 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3409
637fa988
JD
34102009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3411
87e32266 3412 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3413 not have FC_LCD_*. #define them if not there.
a6eb20d8 3414
87e32266 3415 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3416
637fa988
JD
3417 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3418
3419 * xterm.c (handle_one_xevent): Call xft_settings_event for
3420 ClientMessage, PropertyNotify and DestroyNotify.
3421 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3422 Call xsettings_initialize.
3423
3424 * xftfont.c (xftfont_fix_match): New function.
3425 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3426 Call xftfont_fix_match after XftFontMatch.
3427
3428 * xfont.c (xfont_driver): Initialize all members.
3429
87e32266
SM
3430 * xfns.c (x_default_font_parameter):
3431 Try font from Ffont_get_system_font.
637fa988
JD
3432 Do not get font from x_default_parameter if we got one from
3433 Ffont_get_system_font.
87e32266 3434 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3435
3436 * w32font.c (w32font_driver): Initialize all members.
3437
3438 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3439
3440 * lisp.h: Declare syms_of_xsettings.
3441
87e32266
SM
3442 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3443 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3444
3445 * ftfont.c (ftfont_filter_properties): New function.
3446
3447 * frame.c (x_set_font): Remove unused variable lval.
3448
87e32266 3449 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3450
3451 * font.c (font_put_extra): Don't return if val is nil, it means
3452 boolean option is off.
3453 (font_parse_fcname): Collect all extra properties in extra_props
3454 and call filter_properties for all drivers with extra_props and
3455 font as parameter.
87e32266
SM
3456 (font_open_entity): Do not use cache, it does not pick up new
3457 fontconfig settings like hinting.
637fa988
JD
3458 (font_load_for_lface): If spec had a name in it, store it in entity.
3459
a73f9c9d 3460 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3461
3462 * config.in: HAVE_GCONF is new.
3463
3464 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3465 xsettings.o is new.
3466
5a942932
KH
34672009-11-17 Kenichi Handa <handa@m17n.org>
3468
3469 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3470 back to the default font in case that no suitable font is found.
3471
b7c7a4d1
SM
34722009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3473
3474 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3475 Suggested by Chad Brown <yandros@mit.edu>.
3476 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3477
072f1e39
JD
34782009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3479
3480 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3481
5d1e70a2
AS
34822009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3483
87e32266 3484 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3485
a53cfbe5
JD
34862009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3487
473a99b7
JD
3488 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3489 has a parent.
3490
a53cfbe5 3491 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3492 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3493
3494 * config.in: Generated (AUTO_DEPEND).
3495
f04bb9b2
MA
34962009-11-13 Michael Albinus <michael.albinus@gmx.de>
3497
b7c7a4d1 3498 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3499 Vdbus_registered_functions_table, because it contains also
3500 properties. Fix docstring.
b7c7a4d1 3501 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3502
8f11f7ec
SM
35032009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3504
3505 * alloc.c (mark_object): Don't reprocess marked strings.
3506 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3507 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3508
8a605fe8
KH
35092009-11-13 Kenichi Handa <handa@m17n.org>
3510
8f11f7ec 3511 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3512 semantics of Vword_combining_categories.
3513 (Vword_combining_categories): Describe the slight change of the
3514 semantics.
3515
241c4680
EZ
35162009-11-13 Eli Zaretskii <eliz@gnu.org>
3517
3518 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3519
3520 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3521
5d58e44c
SM
35222009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3523
3524 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3525
5e13f9d3
JB
35262009-11-12 Juanma Barranquero <lekktu@gmail.com>
3527
3528 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3529
cf54c754
DR
35302009-11-11 David Reitter <david.reitter@gmail.com>
3531
3532 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3533 variables to fix 2009-11-09 change.
3534
a4ada374
DN
35352009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3536
91433552
DN
3537 * process.c (ifflag_def): Make flag_sym constant.
3538 (Fnetwork_interface_info): Use a constant pointer.
3539 (ifflag_table):
3540 * xfns.c (cursor_bits):
3541 * xdisp.c (power_letter):
3542 * termcap.c (speeds, esctab):
3543 * sysdep.c (baud_convert):
3544 * keyboard.c (lispy_accent_codes, modifier_names):
3545 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3546 (jpeg_format, tiff_format, gif_format, svg_format)
3547 (interlace_start, interlace_increment, gs_format):
3548 * gtkutil.c (separator_names):
3549 * fringe.c (swap_nibble):
3550 * fns.c (base64_value_to_char, base64_char_to_value):
3551 * fileio.c (make_temp_name_tbl):
3552 * coding.c (suffixes): Make constant.
3553
f4265f6c
DN
3554 * frame.c (make_initial_frame):
3555 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3556 build_string.
3557 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3558
04420943
DN
3559 * s/freebsd.h:
3560 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3561
0a5d24ae
DN
3562 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3563 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3564
a4ada374
DN
3565 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3566 * xterm.c (syms_of_xterm):
3567 * xfaces.c (syms_of_xfaces):
3568 * xdisp.c (syms_of_xdisp):
3569 * lread.c (syms_of_lread):
3570 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3571 build_string.
91433552 3572
a4ada374
DN
3573 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3574
af98fc7f
SM
35752009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3576
8ab1650e 3577 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3578
e90292a9
JD
35792009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3580
3581 * keyboard.h: Declare timer_check.
3582
3583 * keyboard.c (timer_check_2): New function that does what the old
3584 timer_check did.
3585 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3586 returned, i.e. don't return -1 with timers pending.
3587
3588 * process.c: Remove extern declaration of timer_check.
3589
3590 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3591 even if timer_check returned -1.
3592
af98fc7f
SM
3593 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3594 xg_dialog_data.
e90292a9
JD
3595 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3596 the event loop.
3597 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3598 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3599 Destroy the dialog after xg_dialog_run.
3600
045b83c0
SM
36012009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3602
3603 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3604
1fb99a3a
JD
36052009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3606
3607 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3608
04e452cb
JB
36092009-11-09 Juanma Barranquero <lekktu@gmail.com>
3610
3611 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3612
ef7417fd
SM
36132009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3614
3615 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3616 w32menu.c, and nsmenu.m.
3617 Simplify the obsolete case where position is nil.
3618 (cleanup_popup_menu): New function, moved from nsmenu.m.
3619 (struct skp): Remove slot `notreal'.
3620 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3621 adjust callers.
3622 (single_menu_item): Adjust call to parse_menu_item.
3623 (syms_of_menu): Defsubr x-popup-menu.
3624 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3625 (keymap_panes): Don't export any more.
3626 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3627 (xmenu_show): Declare.
3628 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3629 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3630 * keyboard.h (parse_menu_item): Update declaration.
3631 * xmenu.c (Fx_popup_menu): Remove.
3632 (syms_of_xmenu): Don't defsubr x-popup-menu.
3633 * w32menu.c (Fx_popup_menu): Remove.
3634 (syms_of_w32menu): Don't defsubr x-popup-menu.
3635 * nsmenu.m (cleanup_popup_menu): Remove.
3636 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3637 moved to menu.c's Fx_popup_menu.
3638 (Fx_popup_menu): Remove.
3639 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3640 menu_items (it's done in menu.c already).
3641
424d6179
SM
36422009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3643
3644 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3645 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3646
c0df13a6 36472009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3648
3649 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3650 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3651 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3652 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3653
2de9f71c
SM
36542009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3655
3656 Let integers use up 2 tags to give them one extra bit and thus double
3657 their range.
3658 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3659 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3660 New macros.
3661 (enum Lisp_Type): Use them. Give explicit values.
3662 (Lisp_Type_Limit): Remove.
3663 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3664 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3665 Pay attention to USE_2_TAGS_FOR_INTS.
3666 (INTEGERP): Use LISP_INT_TAG_P.
3667 * fns.c (internal_equal): Simplify the default case.
3668 (sxhash): Use case_Lisp_Int.
3669 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3670 any more.
3671 (Ftype_of): Use case_Lisp_Int.
3672 (store_symval_forwarding): Take into account the fact that Ints can
3673 now have more than one tag.
3674 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3675 buffer_slot_type_mismatch):
3676 * xfaces.c (face_attr_equal_p):
3677 * print.c (print_object):
3678 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3679 Use case_Lisp_Int.
3680
323637a2
EZ
36812009-11-06 Eli Zaretskii <eliz@gnu.org>
3682
7ac65b38
EZ
3683 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3684
323637a2
EZ
3685 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3686 warning.
3687
e511451f
JD
36882009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3689
3690 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3691
3692 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3693
3694 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3695 ButtonPressRelease and MotionNotify (bug#4870).
3696
5e2327cf
DN
36972009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3698
5adc433e
DN
3699 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3700
d67b4f80
DN
3701 * xterm.c (syms_of_xterm):
3702 * xselect.c (syms_of_xselect):
3703 * xmenu.c (syms_of_xmenu):
3704 * xfns.c (syms_of_xfns):
3705 * xfaces.c (syms_of_xfaces):
3706 * xdisp.c (syms_of_xdisp):
3707 * window.c (syms_of_window):
3708 * w32fns.c (syms_of_w32fns):
3709 * undo.c (syms_of_undo):
3710 * textprop.c (syms_of_textprop):
3711 * terminal.c (syms_of_terminal):
3712 * syntax.c (syms_of_syntax):
3713 * sound.c (syms_of_sound):
3714 * search.c (syms_of_search):
3715 * print.c (syms_of_print):
3716 * minibuf.c (syms_of_minibuf):
3717 * macros.c (syms_of_macros):
3718 * keymap.c (syms_of_keymap, initial_define_key)
3719 (initial_define_lispy_key):
3720 * keyboard.c (syms_of_keyboard):
3721 * insdel.c (syms_of_insdel):
3722 * image.c (syms_of_image):
3723 * fringe.c (syms_of_fringe):
3724 * frame.c (syms_of_frame):
3725 * fontset.c (syms_of_fontset):
3726 * fns.c (syms_of_fns):
3727 * fns.c (syms_of_fns):
3728 * fileio.c (syms_of_fileio):
3729 * fileio.c (syms_of_fileio):
3730 * eval.c (syms_of_eval):
3731 * doc.c (syms_of_doc):
3732 * dispnew.c (syms_of_display):
3733 * dired.c (syms_of_dired):
3734 * dbusbind.c (syms_of_dbusbind):
3735 * data.c (syms_of_data):
3736 * composite.c (syms_of_composite):
3737 * coding.c (syms_of_coding):
3738 * cmds.c (syms_of_cmds):
3739 * charset.c (define_charset_internal, syms_of_character):
3740 * ccl.c (syms_of_ccl):
3741 * category.c (syms_of_category, init_category_once):
3742 * casetab.c (syms_of_casetab):
3743 * casefiddle.c (syms_of_casefiddle):
3744 * callint.c (syms_of_callint):
3745 * bytecode.c (syms_of_bytecode):
3746 * buffer.c (keys_of_buffer, syms_of_buffer):
3747 * alloc.c (syms_of_alloc):
3748 * process.c (syms_of_process, init_process):
3749 * lread.c (syms_of_lread, init_obarray):
3750 * font.c (build_style_table):
3751 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3752 intern_c_string, calls to make_pure_string with
3753 make_pure_c_string. Use pure_cons instead of Fcons.
3754
5e2327cf
DN
3755 * process.c (socket_options): Make it const.
3756 (set_socket_option, init_process): Use a const pointer.
3757
3758 * lread.c (intern_c_string): New function.
3759 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3760 (defvar_int): Uset it. Make the name const char*.
3761
3762 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3763 (defvar_int): Update prototypes.
3764 (DEFUN, EXFUN): Support for prototypes is now required.
3765 (intern_c_string): New prototype.
3766 (struct Lisp_Subr): Make symbol_name constant.
3767
3768 * font.c (struct table_entry): Remove unused member. Make NAMES
3769 constant.
3770 (weight_table, slant_table, width_table): Make constant.
3771
3772 * emacs.c (struct standard_args): Make name and longname constant.
3773
3774 * character.h (DEFSYM): Use intern_c_string.
3775
a56eaaef
DN
37762009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3777
3778 * alloc.c (make_pure_c_string): New function.
3779
3780 * eval.c (Fautoload): Purecopy all arguments.
3781
f6a07420
KH
37822009-11-05 Kenichi Handa <handa@m17n.org>
3783
3784 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3785 the buffer in case of replace.
3786
5d28d4b1
DN
37872009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3788
3789 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3790
b349d111
SM
37912009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3792
d528b1ce
SM
3793 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3794 when applicable (bug#4851).
3795
b349d111
SM
3796 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3797 (P_): Support for prototypes is now required.
3798
c38eb027
CY
37992009-10-31 Chong Yidong <cyd@stupidchicken.com>
3800
3801 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3802 (Bug#4827).
3803
0405f8d9
EZ
38042009-10-30 Eli Zaretskii <eliz@gnu.org>
3805
d528b1ce 3806 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3807
ca0a881a
DN
38082009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3809
3810 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3811
d528b1ce
SM
3812 * lread.c (Fload): Purecopy the file name when building
3813 Vpreloaded_file_list.
ca0a881a 3814
47e0e0e4
JR
38152009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3816
3817 * w32fns.c (syms_of_w32fns): Change default value of
3818 w32-scroll-lock-modifier to nil. (Bug#2827)
3819
057bce6f
JB
38202009-10-26 Juanma Barranquero <lekktu@gmail.com>
3821
782a943e 3822 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3823
242bc74c
AS
38242009-10-26 Andreas Schwab <schwab@redhat.com>
3825
3826 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3827
522d013a
JB
38282009-10-26 Juanma Barranquero <lekktu@gmail.com>
3829
3830 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3831 For delta < 0, skip check that only makes sense when the mini-window
3832 is going to be enlarged. (Bug#4534)
3833
18060980
CY
38342009-10-25 Chong Yidong <cyd@stupidchicken.com>
3835
3836 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3837 string in menu maps (Bug#4471).
3838
fec8f0fe
CY
38392009-10-24 Chong Yidong <cyd@stupidchicken.com>
3840
3841 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3842 FRAME_NS_VIEW on terminal frames (Bug#4765).
3843
10d66ec0
AS
38442009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3845
1cae01f7
AS
3846 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3847 DBUS_TYPE_UINTnn separately to get proper sign extension.
3848
58a12889
AS
3849 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3850 can properly handle unsigned types.
d528b1ce 3851 (make_uid, make_gid): Remove.
58a12889 3852
987c9327
AS
3853 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3854 types again.
3855
522d013a 3856 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3857 (system_process_attributes): Likewise.
3858
905a9ed3
DN
38592009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3860
3861 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3862
3863 * eval.c (Fautoload): Purecopy the filename. Simplify.
3864
3865 * category.c (Fdefine_category): Purecopy docstring.
3866
a599b3e8
AS
38672009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3868
7b792fc9
AS
3869 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3870
a599b3e8
AS
3871 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3872
b35ac83e
CY
38732009-10-23 Chong Yidong <cyd@stupidchicken.com>
3874
3875 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3876 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3877 (Bug#4775).
3878
e8903e00
SM
38792009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3880
3881 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3882 (init_fileio_once):
3883 * lisp.h (init_fileio_once): Remove.
3884 * emacs.c (main): Don't call init_fileio_once.
3885
8f43cbf3
DN
38862009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3887
3888 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3889
26898943
AS
38902009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3891
3892 * doprnt.c (doprnt): Fix overflow check.
3893
5c646d5a
JD
38942009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3895
3132a7ea
JD
3896 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3897
5c646d5a
JD
3898 * xterm.h (x_wait_for_event): Declare it.
3899
3900 * xterm.c (pending_event_wait): New variable.
3901 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3902 see pending_event_wait.eventtype.
3903 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3904 (x_new_font): Call change_frame_size with new rows/columns before we
3905 try to resize the frame.
5c646d5a 3906 (x_wait_for_event): New function.
d528b1ce
SM
3907 (x_set_window_size_1): Don't change gravity unless change_gravity
3908 is set.
5c646d5a
JD
3909 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3910 don't change frame size, instead wait for the ConfigureNotify.
3911 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3912 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3913 (x_initialize): Initialize pending_event_wait.
3914
3915 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3916 size.
3917
3918 * widget.c (EmacsFrameSetValues): Add comment.
3919 (EmacsFrameSetCharSize): Just call x_set_window_size.
3920
3921 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3922 x_wait_for_event.
d528b1ce 3923 (flush_and_sync): Remove again.
5c646d5a
JD
3924 (xg_get_font_name): Suggest monospace if no previous font is known.
3925
e9c1637d
SM
39262009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3927
3928 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3929 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3930
5a72cccb
YM
39312009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3932
3933 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3934 processing pending events when event is filtered for input method.
ab04798f 3935 (Bug#3681)
5a72cccb 3936
2629aa37
JB
39372009-10-20 Juanma Barranquero <lekktu@gmail.com>
3938
3939 * fns.c: Add #endif accidentally removed in previous change.
3940
c3417a74
DN
39412009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3942
3943 * fns.c: Remove code for unsupported system: MAC_OS.
3944 * image.c: Likewise. Include setjmp.h.
3945
9685cef2
JD
39462009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3947
3948 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3949 pixel -1 (bug #4742).
3950
d7306fe6
DN
39512009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3952
019d2c4c
DN
3953 * process.c (create_pty): Remove conditionals for no longer
3954 supported systems: UNIPLUS and RTU.
3955
ee6bacd4
DN
3956 * xterm.c:
3957 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3958
d7306fe6
DN
3959 * alloc.c: Do not define struct catchtag.
3960 * eval.c: Move struct catchtag definition ...
3961 * lisp.h: ... here.
3962
3963 * image.c: Move png.h #include earlier to avoid warnings.
3964
3965 * xterm.c:
3966 * xsmfns.c:
3967 * xselect.c:
3968 * xrdb.c:
3969 * xmenu.c:
3970 * xftfont.c:
3971 * xfont.c:
3972 * xfns.c:
3973 * xfaces.c:
3974 * xdisp.c:
3975 * window.c:
3976 * widget.c:
3977 * w32xfns.c:
3978 * w32uniscribe.c:
3979 * w32term.c:
3980 * w32select.c:
3981 * w32reg.c:
3982 * w32proc.c:
3983 * w32menu.c:
3984 * w32inevt.c:
3985 * w32heap.c:
3986 * w32font.c:
3987 * w32fns.c:
3988 * w32console.c:
3989 * w32.c:
3990 * w16select.c:
3991 * vm-limit.c:
3992 * unexsol.c:
3993 * unexec.c:
3994 * unexcw.c:
3995 * unexaix.c:
3996 * undo.c:
3997 * tparam.c:
3998 * textprop.c:
3999 * terminfo.c:
4000 * terminal.c:
4001 * termcap.c:
4002 * term.c:
4003 * syntax.c:
4004 * sound.c:
4005 * sheap.c:
4006 * search.c:
4007 * scroll.c:
4008 * region-cache.c:
4009 * regex.c:
4010 * ralloc.c:
4011 * process.c:
4012 * print.c:
b024548b
DN
4013 * nsterm.m:
4014 * nsselect.m:
4015 * nsmenu.m:
4016 * nsimage.m:
4017 * nsfont.m:
4018 * nsfns.m:
d7306fe6
DN
4019 * msdos.c:
4020 * minibuf.c:
4021 * menu.c:
4022 * marker.c:
4023 * macros.c:
4024 * keymap.c:
4025 * keyboard.c:
4026 * intervals.c:
4027 * insdel.c:
4028 * indent.c:
4029 * gtkutil.c:
4030 * ftxfont.c:
4031 * ftfont.c:
4032 * fringe.c:
4033 * frame.c:
4034 * fontset.c:
4035 * font.c:
4036 * fns.c:
4037 * floatfns.c:
4038 * filelock.c:
4039 * fileio.c:
4040 * emacs.c:
4041 * editfns.c:
4042 * dosfns.c:
4043 * doprnt.c:
4044 * doc.c:
4045 * dispnew.c:
4046 * dired.c:
4047 * dbusbind.c:
4048 * data.c:
4049 * composite.c:
4050 * coding.c:
4051 * cmds.c:
4052 * cm.c:
4053 * chartab.c:
4054 * charset.c:
4055 * character.c:
4056 * ccl.c:
4057 * category.c:
4058 * casetab.c:
4059 * casefiddle.c:
4060 * callproc.c:
4061 * callint.c:
4062 * bytecode.c:
4063 * buffer.c:
4064 * atimer.c: Include setjmp.h. (Bug#4643)
4065
fd5f21e6
SM
40662009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4067
4c0354d7
SM
4068 Remove leftover table unibyte_to_multibyte_table.
4069 * character.c (unibyte_to_multibyte_table): Remove.
4070 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4071 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4072 * character.h (UNIBYTE_TO_CHAR): New macro.
4073 (MAKE_CHAR_MULTIBYTE): Use it.
4074 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4075 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4076 (message_dolog, set_message_1):
4077 * search.c (Freplace_match):
4078 * editfns.c (Fcompare_buffer_substrings):
4079 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4080 (concat):
4081 * insdel.c (copy_text, count_size_as_multibyte):
4082 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4083 * term.c (produce_glyphs):
4084 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4085 * regex.c (RE_CHAR_TO_MULTIBYTE):
4086 * cmds.c (internal_self_insert):
4087 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4088
fd5f21e6
SM
4089 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4090
4418646e
DN
40912009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4092
4093 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4094
35f5c1d2
JB
40952009-10-16 Juanma Barranquero <lekktu@gmail.com>
4096
4097 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4098
a0cd8f6b
AR
40992009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4100
4101 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4102 still needed under Tiger.
4103
4104 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4105
4106 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4107 __Apple__.
4108
4109 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4110
01a8d3fa
KH
41112009-10-15 Kenichi Handa <handa@m17n.org>
4112
4113 * print.c (print_object): Escape a symbol like "2E10" too.
4114
bf6c75c9 41152009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4116
4117 Cleanups and changes for 64-bit compile under Snow Leopard.
4118 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4119
4120 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4121
c5959062 4122 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4123 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4124 cast argument.
4125 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4126 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4127
4128 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4129
4130 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4131 where appropriate.
4132
4133 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4134 where appropriate.
6e4780c5
JB
4135 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4136 Use stringWithUTF8String.
bf6c75c9
AR
4137 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4138
6e4780c5
JB
4139 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4140 Add formal protocol mention to inheritance.
bf6c75c9
AR
4141 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4142
6e4780c5
JB
4143 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4144 Fix printf format.
bf6c75c9
AR
4145 (ns_query_color): Use CGFloat where appropriate.
4146 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4147 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4148 argument.
4149
3d87f118
AR
4150 * config.in (NS_HAVE_NSINTEGER): Drop.
4151
a95c8102
AR
4152 * dbusbind.c (dbus-method-return-internal)
4153 (dbus-method-error-internal): Use long format in printf, and cast
4154 argument.
4155
4156 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4157 in printf, and cast argument.
4158
6873acca 4159 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4160 cast argument.
4161
9ec6f100
GM
41622009-10-11 Glenn Morris <rgm@gnu.org>
4163
4164 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4165
5be883cd
JD
41662009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4167
4168 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4169 menu bar with a small width so it doesn't enlarge the frame.
4170
d7a39b51
JB
41712009-10-08 Juanma Barranquero <lekktu@gmail.com>
4172
4173 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4174
0c2b6f8e
GM
41752009-10-06 Glenn Morris <rgm@gnu.org>
4176
4177 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4178 SOME_MACHINE_LISP (this enters indirectly via DOC).
4179
e02131a2
EZ
41802009-10-05 Eli Zaretskii <eliz@gnu.org>
4181
4182 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4183
b4744254
EZ
41842009-10-04 Eli Zaretskii <eliz@gnu.org>
4185
4186 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4187 Doc fix.
4188
dbf64827
JB
41892009-10-03 Martin Rudalics <rudalics@gmx.at>
4190
4191 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4192
e9a0aef8
MA
41932009-10-02 Michael Albinus <michael.albinus@gmx.de>
4194
d528b1ce 4195 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4196 used anymore outside fileio.c.
4197
4198 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4199
64eb2b56
JB
42002009-10-01 Juanma Barranquero <lekktu@gmail.com>
4201
4202 * lisp.h (Qdelete_directory_internal):
4203 Declare, instead of Qdelete_directory.
4204
4205 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4206
9d28c33e
SM
42072009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4208
4209 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4210
9d8f3bd9
MA
42112009-10-01 Michael Albinus <michael.albinus@gmx.de>
4212
9d28c33e 4213 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4214 Fdelete_directory. It is not a command anymore. It has no file
4215 name handler.
4216
9694740b
SM
42172009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4218
4219 * xdisp.c (get_next_display_element): Use an enum in last change.
4220
748e162f
KH
42212009-09-28 Kenichi Handa <handa@m17n.org>
4222
9694740b 4223 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4224 unibyte_display_via_language_environment in handling
4225 Vnobreak_char_display.
4226
17efd58d
AR
42272009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4228
4229 * nsterm.h (ns_app_name): New extern variable.
4230
4231 * nsterm.m (ns_app_name): New variable.
4232 (ns_term_init): Set and use it.
4233 (ns_term_shutdown): Use it.
4234
4235 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4236 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4237
4238 * nsfns.m (ns_set_name_iconic, ns_set_name)
4239 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4240 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4241
9694740b
SM
4242 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4243 Remove double-casting in client_data comparison.
31c2d412 4244
3208cb35
YM
42452009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4246
4247 * keyboard.c (make_lispy_event): Remember last wheel direction.
4248 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4249
b7d552d6
GM
42502009-09-26 Glenn Morris <rgm@gnu.org>
4251
4252 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4253 internal.elc. Add term/pc-win.elc.
4254 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4255 term/x-win.elc.
4256 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4257 term/w32-win.elc.
4258 (NS_SUPPORT): New.
4259 (lisp): Add NS_SUPPORT.
4260 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4261
4ff670a8
DR
42622009-09-25 David Reitter <david.reitter@gmail.com>
4263
4264 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4265 on Mac OS X 10.6+ (bug#4513).
4266
feabfb6c
JB
42672009-09-24 Juanma Barranquero <lekktu@gmail.com>
4268
4269 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4270 some parts of Emacs code (like font selection) don't grok them.
4271 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4272
de59072a
AS
42732009-09-24 Andreas Schwab <schwab@redhat.com>
4274
4275 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4276
a489517b
JB
42772009-09-24 Juanma Barranquero <lekktu@gmail.com>
4278
4279 * dired.c (Fdirectory_files): Fix typo in docstring.
4280
0592970c
AR
42812009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4282
4283 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4284 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4285 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4286 under GNUstep.
4287 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4288
4289 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4290 glyph advancement.
4291
48e8a88b
AR
42922009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4293
4294 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4295 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4296
4297 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4298 deleted (bug #4492).
4299
e14f0a78
AR
4300 * nsfont.m (Vns_reg_to_script): New lisp variable.
4301 (syms_of_nsfont): Declare it.
4302 (ns_registry_to_script): New function.
4303 (ns_get_req_script): Call it.
4304 (ns_findfonts): Don't give up on non-unicode registry.
4305
4306 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4307
5b650faa
SM
43082009-09-20 Tom Tromey <tromey@redhat.com>
4309
4310 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4311 batch mode (bug#4228).
4312
a489517b 43132009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4314
4315 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4316 carefully. (Bug #4339)
0bae4e09 4317
fcfe06f3
CY
43182009-09-18 Chong Yidong <cyd@stupidchicken.com>
4319
d798ba87 4320 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4321
31642728
AR
43222009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4323
4324 * emacs.c (inhibit_x_resources): Update doc string for NS.
4325 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4326 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4327
4328 * nsterm.h (ns_no_defaults): Remove.
4329
4330 * nsterm.m (ns_no_defaults): Remove.
4331 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4332 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4333 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4334 don't update the NSWindow itself.
4335 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4336 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4337
4338 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4339 ns_use_qd_smoothing.
4340
4341 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4342 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4343 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4344 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4345
8686ac71
JB
43462009-09-17 Juanma Barranquero <lekktu@gmail.com>
4347
4348 * emacs.c (inhibit_x_resources): New variable.
4349 (main) [HAVE_NS]: Don't process --quick command line option.
4350 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4351
4352 * lisp.h (inhibit_x_resources): Declare it extern.
4353
4354 * w32reg.c (x_get_string_resource):
4355 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4356
e227ba05
EZ
43572009-09-17 Eli Zaretskii <eliz@gnu.org>
4358
362654a6
JB
4359 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4360 Add lisp/term/internal.elc.
e227ba05 4361
742d40e8
SM
43622009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4363
4364 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4365 (bug#4461).
4366
005bd5a2
DN
43672009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4368
4369 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4370
4371 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4372 (OBJECTS_MACHINE): Remove, unused.
4373
f9af9719
SM
43742009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4375
4376 * frame.c (x_get_resource_string): Remove unused.
4377
0307c7d2
JD
43782009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4379
4380 * xterm.c (x_new_font): Call change_frame_size before calling
4381 x_set_window_size, in case frame size won't change.
4382
4383 * frame.c (x_set_font): Remove dead code.
4384
428b13d6
SM
43852009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4386
4387 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4388
5766c380
SM
43892009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4390
4391 * lread.c (Fload): Don't output a message after loading an obsolete
4392 package any more (done in Lisp now).
4393
2fd0161b
CY
43942009-09-12 Chong Yidong <cyd@stupidchicken.com>
4395
4396 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4397
bc5e75b6
SM
43982009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4399
4400 * keymap.c (Fwhere_is_internal): Use nconc2.
4401
c31c985e
AM
44022009-09-11 Alan Mackenzie <acm@muc.de>
4403
4404 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4405 batch mode.
4406
78012bd2
AS
44072009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4408
4409 * xdisp.c (display_mode_element): Detect cycles.
4410
9d889332
SM
44112009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4412
4413 * keymap.c (where_is_internal): Don't erroneously return nil right after
4414 filling the cache.
4415 (where_is_internal_1): Fix up typo.
4416
7ab5d780
GM
44172009-09-11 Glenn Morris <rgm@gnu.org>
4418
4419 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4420 share a common doc-string.
4421
5238a749
SM
44222009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4423
66d77eda
SM
4424 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4425 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4426
5238a749
SM
4427 * keymap.c (QCadvertised_binding): New constant.
4428 (syms_of_keymap): Initialize it.
4429 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4430 if applicable.
4431
19f48442
SM
44322009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4433
50d4ba39
SM
4434 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4435 (parse_menu_item): Streamline since bindings are recomputed all the
4436 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4437 more and don't support lmenu's menu-alias any more either.
4438
a88a5372
SM
4439 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4440 (where_is_internal): Strip it down to only traverse the keymaps.
4441 Move the cache handling from Fwhere_is_internal to here.
4442 (Fwhere_is_internal): Move the handling of remapping and the choice of
4443 the best binding from where_is_internal to here.
4444 Unify the cached/noncached paths, so remapping is also handled
4445 correctly when the cache is used, and so the cache can be used to
4446 speed up remap-handling when applicable.
4447 Give preference to non-remapped bindings.
4448 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4449 non-remapped bindings.
4450 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4451 command remapping.
4452
19f48442
SM
4453 * xdisp.c (display_mode_element): Move list length limit from 50 to
4454 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4455
599498c3 44562009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4457
4458 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4459
f9b7b5ac
SM
44602009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4461
a53af587
JB
4462 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4463 (Bug#4334)
4464
f9b7b5ac
SM
4465 * keymap.c (where_is_internal): Filter out shadowed remappings.
4466 Assume that where_is_internal returns unshadowed bindings to simplify
4467 the code and get rid of the gotos. Use ASIZE.
4468
04f4b72d
JD
44692009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4470
4da146f2
JD
4471 * xterm.c (x_focus_changed): If we get a focusout and pointer
4472 is invisible, make it visible.
4473
04f4b72d
JD
4474 * xterm.h: Remove condition for declaration of
4475 x_*_window_to_frame.
4476
7cef7ce3
SM
44772009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4478
4479 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4480 initial terminal as well.
4481
a54fa5b7
JD
44822009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4483
4484 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4485 x_menubar_window_to_frame.
a54fa5b7 4486
50426a04 4487 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4488 (XTmouse_position): Do not return valid positions
4489 for clicks in the menubar and the toolbar for Gtk+.
4490
4491 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4492 if the widget for the event has the same top level as a frame,
4493 return the frame.
4494 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4495 internal windows, bug #4122.
4496 (x_non_menubar_window_to_frame): Remove.
4497
5a021dd0
GM
44982009-09-02 Glenn Morris <rgm@gnu.org>
4499
4500 * buffer.c (default-major-mode): Move most of the doc from here...
4501 (major-mode): ... to here.
4502
548fe2f3
NR
45032009-08-30 Nick Roberts <nickrob@snap.net.nz>
4504
4505 * process.c (wait_reading_process_output): Keep the descriptor
4506 when pty is used by a non-child process, e.g., in I/O buffer of
4507 GDB this allows inferior to be restarted.
4508
e0840eef
EZ
45092009-08-29 Eli Zaretskii <eliz@gnu.org>
4510
4511 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4512 both branches into one.
4513
82e98df4
SM
45142009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4515
4516 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4517 (main): Use enable-multibyte-characters rather than
4518 default-enable-multibyte-characters. Output a warning message when
4519 running a unibyte session.
4520
890617cb
YM
45212009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4522
4523 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4524 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4525 (copy_data_segment): Also copy __program_vars section.
4526 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4527 (dump_it) [LC_DYLD_INFO]: Use it.
4528
4529 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4530
e7adeadc
EZ
45312009-08-28 Eli Zaretskii <eliz@gnu.org>
4532
4533 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4534 $(SRC)/buildobj.h.
4535 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4536 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4537 $(SRC)/buildobj.h.
4538 (clean): Add buildobj.h.
4539
3ed8bbdc
TZ
45402009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4541
4542 * print.c (print_object): Set escapeflag to 1 when printing
4543 hashtable keys and values.
4544
155a6764
SM
45452009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4546
4547 * lread.c (read_integer): Use doubles (and potentially return a float
4548 number) as we do in string-to-number.
4549 (read1): Use strtol to read integers, signal errors on strtol's
4550 overflow and use floats if strtol's output is too large for
4551 Elisp integers.
4552
877610de
EZ
45532009-08-27 Eli Zaretskii <eliz@gnu.org>
4554
4555 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4556 (make-buildobj-SH): Fix last change.
4557 (SRC): Move to before where it's first used.
4558
ef73e7be
KH
45592009-08-27 Kenichi Handa <handa@m17n.org>
4560
550c8289
KH
4561 * process.c (send_process): Use encode_coding_object instead of
4562 encode_coding_string to perform eol-conversion even if the string
4563 is unibyte.
4564
60afa08d
KH
4565 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4566 character.
4567
ef73e7be 4568 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4569 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4570
7b3a82d7
DN
45712009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4572
5654bf63
DN
4573 * callproc.c (Fcall_process): Remove always true #if.
4574
7b3a82d7
DN
4575 * lisp.h: Replace #if 0 code for checking with text pointing to
4576 the --enable-checking configure flag.
4577
4578 * emacs.c (main): Mention the --enable-profiling configure flag
4579 instead of using CFLAGS.
4580
878bde49
KR
45812009-08-26 Ken Raeburn <raeburn@raeburn.org>
4582
4583 * Makefile.in (buildobj.h): New target.
4584 (doc.o): Depend on it.
4585 (temacs${EXEEXT}): Don't generate buildobj.lst.
4586 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4587 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4588 ($(BLD)/doc.$(O)): Depend on it.
4589 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4590 provided by Eli Zaretskii.)
4591 ($(TEMACS)): Don't generate buildobj.lst.
4592 * doc.c: Include buildobj.h.
4593 (buildobj): New static variable.
4594 (Fsnarf_documentation): Use it, instead of opening and reading
4595 buildobj.lst.
4596
1574224c
MA
45972009-08-25 Michael Albinus <michael.albinus@gmx.de>
4598
4599 * dbusbind.c (Fdbus_call_method)
4600 (Fdbus_call_method_asynchronously): Use English numeric format for
4601 timeout values in doc string.
4602
d9da2f45
KH
46032009-08-25 Kenichi Handa <handa@m17n.org>
4604
ef73e7be
KH
4605 * alloc.c (mark_char_table): New function.
4606 (mark_object): Use mark_char_table for a char-table.
4607
d9da2f45
KH
4608 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4609 (CHAR_TABLE_REF): Use it.
4610
c8edcc01
KR
46112009-08-23 Ken Raeburn <raeburn@raeburn.org>
4612
4613 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4614 before invoking the newly build emacs to check for load-path
4615 shadowing.
4616
7763401b
GM
46172009-08-22 Glenn Morris <rgm@gnu.org>
4618
4619 * Makefile.in (bootstrap_exe): New variable.
4620 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4621 Use ${bootstrap_exe}.
4622
729eadda
EZ
46232009-08-22 Eli Zaretskii <eliz@gnu.org>
4624
4625 * coding.h (encode_coding_string): Don't encode unibyte strings.
4626 (Bug#4047)
4627
eb4c6ace
MA
46282009-08-22 Michael Albinus <michael.albinus@gmx.de>
4629
4630 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4631
4632 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4633 intended as hotfix only.
4634 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4635
36e34d1b
AR
46362009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4637
4638 * nsterm.m (ns_get_color): Update documentation properly for last
4639 change, and clean up loose ends in the code left by it. Fix
4640 longstanding bug with 16-bit hex parsing, and add support for
4641 yet another X11 format (rgb:r/g/b) for compatibility.
4642 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4643 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4644
f983eb8a
SM
46452009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4646
4647 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4648
3f56d3c6
MA
46492009-08-20 Michael Albinus <michael.albinus@gmx.de>
4650
4651 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4652 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4653 (xd_initialize, xd_pending_messages): Check, whether
4654 $DBUS_SESSION_BUS_ADDRESS is set.
4655
fb641d68
YM
46562009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4657
4658 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4659
4660 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4661
cf59a374
GM
46622009-08-20 Glenn Morris <rgm@gnu.org>
4663
4664 * emacs.c (system-type): Doc fix.
4665
1373f3be
SM
46662009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4667
4668 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4669 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4670
058ed861
MA
46712009-08-18 Michael Albinus <michael.albinus@gmx.de>
4672
1373f3be
SM
4673 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4674 New functions.
058ed861
MA
4675 (xd_initialize): Revert change from 2009-08-16.
4676
563a866e 46772009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4678
4679 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4680 font-group vector, return nil.
5fc05db0 4681
e42bdf01
CY
46822009-08-17 Chong Yidong <cyd@stupidchicken.com>
4683
4684 * process.c (status_notify): Don't perform redisplay.
4685 (Fdelete_process, list_processes_1, process_send_signal):
4686 Expliticly perform redisplay.
4687 (wait_reading_process_output): Always check process status, but
4688 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4689
4230ab74
KR
46902009-08-17 Ken Raeburn <raeburn@raeburn.org>
4691
1373f3be 4692 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4693 (XFLOAT_INIT): New macro for storing a float value.
4694 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4695 * fns.c (sxhash): Copy out the value of a float in order to
4696 examine its bytes.
4697 * dbusbind.c (xd_append_arg): Likewise.
4698
4230ab74
KR
4699 * emacs.c (main): Don't call syms_of_data twice.
4700
a0645cdd
MA
47012009-08-16 Michael Albinus <michael.albinus@gmx.de>
4702
4703 * dbusbind.c (xd_initialize): Add connection file descriptor to
4704 input_wait_mask, in order to let select() detect, whether a new
4705 message has been arrived.
ca4f31ea 4706 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4707
485db0ba
MA
47082009-08-15 Michael Albinus <michael.albinus@gmx.de>
4709
1373f3be
SM
4710 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4711 New functions.
485db0ba
MA
4712
4713 * lisp.h (xd_pending_messages): Declare.
4714
4715 * keyboard.c (readable_events): Call xd_pending_messages.
4716
b5b98ff4
CY
47172009-08-15 Chong Yidong <cyd@stupidchicken.com>
4718
1373f3be 4719 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4720
f8354c6e
CY
4721 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4722
b5b98ff4
CY
4723 * buffer.c (set_buffer_internal_1)
4724 (swap_out_buffer_local_variables): Check for unbound local
4725 variables (Bug#4138).
4726
8b9fc636
EZ
47272009-08-14 Eli Zaretskii <eliz@gnu.org>
4728
4729 * process.c (create_pty): Fix last change.
4730
ce959360
CY
47312009-08-13 Chong Yidong <cyd@stupidchicken.com>
4732
4733 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4734 (xbm_load_image): Caller changed.
64b807c9 4735 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4736
c7baf7e9
NR
47372009-08-13 Nick Roberts <nickrob@snap.net.nz>
4738
4739 * process.c (create_pty): New function.
4740 (Fstart_process): Use it to allow Emacs to just associate a pty
4741 with the buffer. See associated change in gdb-mi.el.
4742 (list_processes_1): Deal with no program name.
4743 (start_process_unwind): Use pid == -2 to mean no process.
4744
1ac9108a
SM
47452009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4746
4747 * cmds.c (nonundocount): New global variable.
4748 (keys_of_cmds): Initialize it.
4749 (Fself_insert_command): Use it to combine upto 20 sequential chars
4750 into a single undo entry, just like the Qself_insert_command code in
4751 keyboard.c does.
4752 Call frame_make_pointer_invisible, also like the Qself_insert_command
4753 code in keyboard.c does.
4754 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4755 than its own local replacement for it.
4756
e267324c
KR
47572009-08-10 Ken Raeburn <raeburn@raeburn.org>
4758
1ac9108a 4759 * fns.c (concat): Don't re-set string length to its current value.
77437343 4760
1ac9108a
SM
4761 * coding.h (decode_coding_string, encode_coding_string):
4762 Use SBYTES macro.
f0bed503 4763
1ac9108a 4764 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4765 (doprnt): Merge with doprnt1, discarding lispstrings code.
4766 * lisp.h (doprnt_lisp): Don't declare.
4767
416e006d
JL
47682009-08-07 Juri Linkov <juri@jurta.org>
4769
4770 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4771
6f7d5780
DN
47722009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4773
4774 * print.c (syms_of_print): Undo previous change.
4775
f19a0f5b
TZ
47762009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4777
4778 * lread.c (read1, syms_of_lread): Read hashtables back from the
4779 readable format.
4780
4781 * print.c (print_preprocess, print_object): Print hashtables fully
4782 and readably.
4783 (syms_of_print): Provide 'hashtable-print-readable.
4784
b9173dc2
AR
47852009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4786
4787 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4788 no family set.
4789 (nsfont_open): Handle case when entity has no family.
4790
1586503c
AR
47912009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4792
4793 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4794 element, not a list, for match case.
4795
087048cd
KH
47962009-07-28 Kenichi Handa <handa@m17n.org>
4797
4798 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4799 rigidly.
4800
4801 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4802 font_parse_xlfd. Check font properties more rigidly.
4803
780c2506
DN
48042009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4805
31fd7c5c
JB
4806 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4807 bsd-common.h.
780c2506 4808
a8c0cc18
KH
48092009-07-27 Kenichi Handa <handa@m17n.org>
4810
4811 * xfaces.c (face_with_height): Call font_clear_prop.
4812
4fbe2306
CY
48132009-07-26 Chong Yidong <cyd@stupidchicken.com>
4814
111d9af3
CY
4815 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4816
4817 * xterm.c (x_term_init): Use Qx.
4818
4fbe2306
CY
4819 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4820
1ac9108a 4821 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4822 (ns_get_color): Revert 2009-07-16 change.
4823
beb0b7f9
EZ
48242009-07-25 Eli Zaretskii <eliz@gnu.org>
4825
4826 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4827 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4828
2baf5e76
KR
48292009-07-25 Ken Raeburn <raeburn@raeburn.org>
4830
1ac9108a
SM
4831 * coding.h (decode_coding_string, encode_coding_string):
4832 Use SCHARS macro.
8890e5f5 4833
2baf5e76 4834 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4835 (load_depth): Delete.
2baf5e76
KR
4836 (Qload_in_progress): New variable.
4837 (load_unwind): Don't reference load_depth or load_in_progress.
4838 (Fload): Likewise; specbind Qload_in_progress instead.
4839 (init_lread): Don't initialize load_depth.
4840 (syms_of_lread): Initialize and protect Qload_in_progress.
4841
1395c6f5
AR
48422009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4843
4844 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4845
4e2f36cf
AR
48462009-07-23 Yavor Doganov <yavor@gnu.org>
4847
4848 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4849
5dd9a6f7
AR
48502009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4851
4852 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4853 Bugs 3792, 3720, 2402.
4854 (ns_lookup_indexed_color): Check for bad index.
4855 (ns_index_color): Init unused slot to 0.
4856 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4857 Bug 3714, possibly 3082.
5dd9a6f7 4858
c902b920
JR
48592009-07-22 Jason Rumney <jasonr@gnu.org>
4860
1ac9108a
SM
4861 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4862 Position IME window at cursor (Bug#2570).
c902b920
JR
4863 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4864 (globals_of_w32fns): Dynamically load functions required above.
4865
4866 * w32term.c (w32_draw_window_cursor): Send message to reposition
4867 any IME window.
4868
090101cf
CY
48692009-07-21 Chong Yidong <cyd@stupidchicken.com>
4870
4871 * fileio.c: Revert 2009-07-16 changes.
4872 (Vauto_save_include_big_deletions): New variable.
4873 (Fdo_auto_save): Disable auto-save only if
4874 auto-save-include-big-deletions is nil.
4875
e6583e3d
CY
48762009-07-21 Chong Yidong <cyd@stupidchicken.com>
4877
4878 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4879 the overflowed pixels into account (Bug#3879).
4880
ece435a5
KR
48812009-07-21 Ken Raeburn <raeburn@raeburn.org>
4882
4883 * lread.c (load_depth): New variable.
4884 (Fload, load_unwind, init_lread): Set it to the load recursion
4885 depth; set load_in_progress as a simple boolean based on the
4886 current load_depth. (Bug#3892)
4887
40b2d973
AR
48882009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4889
4890 * nsfont.m (ns_has_attribute): Remove.
4891 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4892
10be7e0d
JL
48932009-07-18 Juri Linkov <juri@jurta.org>
4894
4895 * process.c (Fset_process_query_on_exit_flag): Mention killing
4896 a buffer in docstring.
4897
fa055055
KH
48982009-07-17 Kenichi Handa <handa@m17n.org>
4899
4900 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4901
042f7b69
YM
49022009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4903
4904 * nsfns.m (Fns_set_alpha): Remove function.
4905 (syms_of_nsfns): Don't defsubr it.
4906
4907 * nsterm.m (ns_get_color): Remove incompatible color formats.
4908 (ns_color_to_lisp): Generate #rrggbb color format string.
4909
4be941e3
RS
49102009-07-16 Richard Stallman <rms@gnu.org>
4911
4912 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4913 (Fset_buffer_auto_saved): Handle save_length = -2.
4914
4e6b227d
CY
49152009-07-16 Chong Yidong <cyd@stupidchicken.com>
4916
4917 * xterm.c (Qx_gtk_map_stock): New var.
4918
4919 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4920 of calling intern each time.
4921
a1856973
YM
49222009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4923
4924 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4925 does tiling.
4926
4927 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4928
497e54d8
KH
49292009-07-14 Kenichi Handa <handa@m17n.org>
4930
72d36834
KH
4931 * font.c (font_vconcat_entity_vectors): New function.
4932 (struct font_sort_data): New member font_driver_preference.
4933 (font_compare): Check font_driver_preference.
4934 (font_sort_entities): The format of the first argument changed.
4935 (font_delete_unmatched): Likewise.
4936 (font_list_entities): The return type changed.
4937 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4938 (font_find_for_lface): Adjuste for the above changes.
4939 Don't suppress the checking of C even if the repertory supports it.
4940 (Flist_fonts): Adjust for the above changes.
72d36834 4941
1ac9108a
SM
4942 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4943 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4944 Reject a font who has adstyle property that is different from a
4945 langname derived from registry property.
1ac9108a 4946 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4947
b6046155
EZ
49482009-07-13 Eli Zaretskii <eliz@gnu.org>
4949
4950 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4951 local copy of dirfilename.
4952
fb6b6049
KH
49532009-07-13 Kenichi Handa <handa@m17n.org>
4954
e2402a5e
KH
4955 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4956 against max_char.
4957
fb6b6049
KH
4958 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4959 calling XSYMBOL (sym).
4960
65156807
EZ
49612009-07-11 Eli Zaretskii <eliz@gnu.org>
4962
1ac9108a
SM
4963 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4964 New function.
4965 (directory_files_internal) [WINDOWSNT]:
4966 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4967 the filesystem of the directory is fast or slow.
4968
4969 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4970 file name.
4971 (is_slow_fs): New function.
4972 (stat): Use it to determine whether to issue more system calls to
4973 get accurate file attributes, when w32-get-true-file-attributes is
4974 `local'.
4975
e0ab5fcf
JD
49762009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4977
4978 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4979 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4980 parameter font-parameter as default to the font dialog.
4981
784ceded
KH
49822009-07-10 Kenichi Handa <handa@m17n.org>
4983
4984 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4985
fb8edc0b
EZ
49862009-07-09 Eli Zaretskii <eliz@gnu.org>
4987
1ac9108a 4988 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4989
fb8edc0b
EZ
4990 * w32.c (stat): Treat UNC file names as residing on remote
4991 drives. (Bug#3542)
4992
635c75b1
KH
49932009-07-09 Kenichi Handa <handa@m17n.org>
4994
4995 * fontset.c (fontset_find_font): Fix previous change.
4996
c1d5ce94
MA
49972009-07-08 Michael Albinus <michael.albinus@gmx.de>
4998
4999 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5000 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5001 error flag.
5002
edb61b39
KH
50032009-07-08 Kenichi Handa <handa@m17n.org>
5004
374bf7e4
KH
5005 * fontset.c (fontset_find_font): Fix the logic of handling
5006 charset_matched.
5007 (font_for_char): Delete unused var.
5008 (generate_ascii_font_name): Delete it.
5009
edb61b39
KH
5010 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5011
5012 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5013 (encode_coding_sjis): Fix the code range check.
5014
0f3f018c
CY
50152009-07-07 Chong Yidong <cyd@stupidchicken.com>
5016
5017 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5018 (Fexpand_file_name): Copy string data properly (Bug#3772).
5019
fcaf6f3a
JD
50202009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5021
5022 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5023 first MapNotify.
5024
6809ca75
KH
50252009-07-07 Kenichi Handa <handa@m17n.org>
5026
5027 * character.h (unibyte_has_multibyte_table): Delete extern.
5028 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5029
5030 * charset.c (Fset_charset_priority): Update charset_unibyte.
5031 (syms_of_charset): Initialize charset_unibyte.
5032
5033 * character.c (unibyte_has_multibyte_table): Delete it.
5034 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5035 charset_unibyte.
5036 (multibyte_char_to_unibyte_safe): Likewise.
5037 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5038
1ac9108a 5039 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5040 (x_produce_glyphs): Likewise.
5041
5042 * .gdbinit (xcharset): Fix the treating $arg0.
5043
ad9e2d54
EZ
50442009-07-04 Eli Zaretskii <eliz@gnu.org>
5045
5046 Emulation of `getloadavg' on MS-Windows.
50426a04 5047 * w32.c: Include float.h.
ad9e2d54
EZ
5048 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5049 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5050 (get_native_system_info, get_system_times): New functions.
5051 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5052 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5053 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5054 g_b_init_get_system_times, and num_of_processors.
5055
0a3472c7
JR
50562009-07-03 Jason Rumney <jasonr@gnu.org>
5057
5058 * w32term.c (w32_initialize): Use standard types.
5059
80904120
EZ
50602009-07-03 Eli Zaretskii <eliz@gnu.org>
5061
5062 * dired.c (Ffile_attributes): Decode user and group names by the
5063 locale's encoding. (Bug#3443)
5064
6978862d
DN
50652009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5066
f8d23104
DN
5067 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5068 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5069
5070 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5071
5072 * term.c (init_tty): Remove spurious #ifdef.
5073
6978862d
DN
5074 * m/mips.h: Mention this file is also used for netbsd.
5075 * m/pmax.h: Remove file.
5076
e044e4fc
JD
50772009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5078
5079 * xterm.h (struct x_display_info): Add invisible_cursor.
5080 (struct x_output): Add current_cursor.
5081
5082 * xterm.c (XTtoggle_invisible_pointer): New function.
5083 (x_define_frame_cursor): Don't define cursor if invisible or the
5084 same as before. Set current_cursor.
5085 (x_create_terminal): Set toggle_invisible_pointer_hook.
5086
5087 * xfns.c (make_invisible_cursor): New function.
5088 (x_set_mouse_color): Call make_invisible_cursor.
5089 Set current_cursor.
5090 (x_window): Set current_cursor.
5091
5092 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5093
5094 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5095 inserting a character.
5096 (read_avail_input): Call frame_make_pointer_visible.
5097
5098 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5099 (frame_make_pointer_invisible, frame_make_pointer_visible):
5100 New functions.
e044e4fc
JD
5101 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5102
5103 * frame.h: Declare frame_make_pointer_invisible and
5104 frame_make_pointer_visible.
5105 (struct frame): Add pointer_invisible.
5106
574c8efa
JD
51072009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5108
7b507248
JD
5109 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5110 frame isn't visible.
5111 (xg_frame_resized): If width/height is -1, get size of window
5112 from X server.
5113
5114 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5115 for MapNotify.
5116
835bdaa7 5117 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5118 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5119 (flush_and_sync): Reintroduce.
574c8efa 5120
3f1c6666 51212009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5122
31fd7c5c 5123 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5124
5125 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5126 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5127
5128 * frame.h: Declare Qsticky.
5129
cad9ef74
JD
5130 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5131
5132 * nsfns.m (ns_frame_parm_handlers): Ditto.
5133
5134 * frame.c: Declare Qsticky.
5135 (frame_parms): Add sticky.
5136
5137 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5138
5139 * xterm.h: Declare x_set_sticky.
5140
5141 * xterm.c (x_set_sticky): New function.
5142
69b16610
JD
5143 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5144 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5145 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5146
5147 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5148
5149 * frame.c: Qmaximized is new.
5150 (x_set_frame_parameters): Do not handle fullscreen specially.
5151 Only set width and height if explicitly set.
5152 (x_set_fullscreen): Handle Qmaximized.
5153 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5154 (syms_of_frame): Initialize Qmaximized.
5155
1ac9108a
SM
5156 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5157 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5158
5159 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5160 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5161 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5162 set gravity to NorthWestGravity when USE_GTK.
5163 (set_wm_state): New function.
31fd7c5c 5164 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5165 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5166 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5167 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5168 to x_real_positions and x_fullscreen_adjust.
5169
5170 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5171 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5172 flush_and_sync.
5173 (xg_height_changed): New function.
5174 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5175 and gtk_window_set_policy. Set frame gravity after parsing the
5176 geometry string.
3f1c6666
JD
5177 (xg_update_frame_menubar, free_frame_menubar)
5178 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5179 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5180 Remove calls to xg_frame_set_char_size.
5181
fd503d99
KH
51822009-07-01 Kenichi Handa <handa@m17n.org>
5183
5184 * keyboard.c (decode_keyboard_code): New function.
5185 (tty_read_avail_input): Decode the input bytes if necessary.
5186
1ac9108a
SM
5187 * coding.c (setup_coding_system):
5188 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5189 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5190 use Qno_conversion.
5191
24ed93fb
YM
51922009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5193
5194 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5195
99061dfc
CY
51962009-06-30 Chong Yidong <cyd@stupidchicken.com>
5197
1ac9108a 5198 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5199
ff90fbde
JR
52002009-06-30 Jason Rumney <jasonr@gnu.org>
5201
5202 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5203 is already loaded.
5204 Set user model ID if supported (bug#1849).
5205
5f445726
JM
52062009-06-29 Jim Meyering <meyering@redhat.com>
5207
5208 Remove useless if-before-xfree test.
5209 * nsfont.m (nsfont_close): Remove useless test.
5210 * term.c (delete_tty): Likewise.
5211 * w32.c (system_process_attributes): Likewise.
5212 * w32font.c (w32font_close): Likewise.
5213 * xfaces.c (x_free_gc): Likewise.
5214 * xselect.c (buffer): Likewise.
5215
b9607587
AS
52162009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5217
5218 * process.c (send_process): Keep decoded string in a local
5219 variable and protect it from GC. (Bug#3521)
5220
89ba96f4
EZ
52212009-06-28 Eli Zaretskii <eliz@gnu.org>
5222
5223 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5224 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5225
098a1589
CY
52262009-06-28 Chong Yidong <cyd@stupidchicken.com>
5227
485422be
CY
5228 * xdisp.c (start_display, handle_face_prop)
5229 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5230 (redisplay_window, try_window_id, produce_image_glyph):
5231 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5232
098a1589
CY
5233 * xterm.c (x_update_window_begin, x_new_focus_frame)
5234 (x_scroll_bar_handle_click, handle_one_xevent)
5235 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5236 (x_make_frame_visible, x_make_frame_invisible)
5237 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5238 code chunks that are now obsolete.
5239
78c38319
MA
52402009-06-28 Michael Albinus <michael.albinus@gmx.de>
5241
5242 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5243 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5244 for hours, when optimzation is enabled.
5245 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5246 (xd_read_message): Make them static.
5247
4189ed40
CY
52482009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5249
5250 * term.c (turn_on_face): Allow simultaneously bold and dim
5251 terminal faces (Bug#3530).
5252
cd9b5e16
CY
52532009-06-27 Chong Yidong <cyd@stupidchicken.com>
5254
4e23bedb
CY
5255 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5256
cd9b5e16
CY
5257 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5258 truncation glyphs (Bug#3686).
5259
07cc3c35
GM
52602009-06-27 Glenn Morris <rgm@gnu.org>
5261
5262 * m/pmax.h: Restore file, with only netbsd portions.
5263
31fd7c5c 52642009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5265
cd9b5e16 5266 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5267
42d4a64f
KH
52682009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5269
5270 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5271 the arg FORCE_SYMBOL.
5272
930fe55b 52732009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5274
5275 * fontset.c (fontset_find_font): When a usable rfont_def is found
5276 in a fallback font-group, make it the first element of the group.
5277
57ebc3fd
CY
52782009-06-24 Chong Yidong <cyd@stupidchicken.com>
5279
5280 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5281
f084f942
KH
52822009-06-24 Kenichi Handa <handa@m17n.org>
5283
5284 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5285 set for C.
5286 (fontset_font): Record the availability of a font for C both in
5287 the realized fontsets of the current one and the default one.
5288
2f686c87
DN
52892009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5290
5291 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5292 conditional, it is always defined on AIX.
5293
666e158e
MB
52942009-06-23 Miles Bader <miles@gnu.org>
5295
5296 * window.c (Vrecenter_redisplay): New variable.
5297 (syms_of_window): Initialize it.
5298 (Qtty): New extern declaration.
5299 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5300
c6da7cd2
JM
53012009-06-23 Jim Meyering <meyering@redhat.com>
5302
1ac9108a
SM
5303 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5304 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5305 pointer dereferences are guaranteed to be valid.
c6da7cd2 5306
678dca3d
KH
53072009-06-23 Kenichi Handa <handa@m17n.org>
5308
74d75424
KH
5309 * emacs.c (main): Call init_font ().
5310
5311 * font.h (Vfont_log): Extern it.
5312 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5313
5314 * font.c (font_sort_entities, font_list_entities)
5315 (font_matching_entity, font_open_entity)
5316 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5317 (Vfont_log): Delete static.
5318 (font_log_env_checked): Delete this variable.
5319 (font_add_log): Don't check font_log_env_checked.
5320 (font_deferred_log): Check Vfont_log.
5321 (init_font): New function.
5322
678dca3d
KH
5323 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5324
5325 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5326
5327 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5328
5329 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5330
5331 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5332 (face_for_char): Don't call font_deferred_log here.
5333 (font_for_char): Likewise.
5334
8a668709
CY
53352009-06-22 Chong Yidong <cyd@stupidchicken.com>
5336
9a01ee33
CY
5337 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5338 rather than its background_width for drawing the overline and
5339 underline (Bug#489).
5340
5341 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5342 rather than its background_width for drawing the overline and
5343 underline (Bug#489).
ec7c9926
CY
5344 (xg_default_icon_file): New variable.
5345 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5346 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5347
8a668709
CY
5348 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5349 (load_overlay_strings): Remove externs.
5350 (fast_find_position): Function deleted.
5351 (mouse_face_from_buffer_pos): New function, based on
5352 fast_find_position. Correctly handle before-strings,
5353 display-strings, and after-strings (Bug#1220).
5354 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5355
4d4c02d8
CY
53562009-06-21 Chong Yidong <cyd@stupidchicken.com>
5357
1ac9108a 5358 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5359 (move_it_in_display_line_to, move_it_in_display_line_to)
5360 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5361
70243478
CY
53622009-06-21 Chong Yidong <cyd@stupidchicken.com>
5363
5364 * Branch for 23.1.
5365
13087e59
JR
53662009-06-21 Jason Rumney <jasonr@gnu.org>
5367
5368 * w32term.c (keyboard_codepage): New static variable.
5369 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5370 (w32_read_socket) [WM_CHAR]: Use it to decode character
5371 input (bug#3237).
5372 (w32_initialize): Initialize it.
5373 (codepage_for_locale): New function.
5374
4735b74e
KR
53752009-06-20 Ken Raeburn <raeburn@raeburn.org>
5376
5377 * process.c (status_message): Pass Faset index argument as a lisp
5378 object, so as to work with USE_LISP_UNION_TYPE.
5379
0e727afa
YM
53802009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5381
5382 * coding.c (Ffind_coding_systems_region_internal):
5383 Cache checked characters.
5384
cf299835
KH
53852009-06-18 Kenichi Handa <handa@m17n.org>
5386
1ac9108a 5387 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5388
90f20d94
AS
53892009-06-18 Andreas Schwab <aschwab@redhat.com>
5390
5391 * xdisp.c (redisplay_internal): Check that the frame is still
5392 live after redisplay of its windows.
5393 (redisplay_windows): Check that the window is still live.
5394
7f1faf1c
KH
53952009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5396
5397 * coding.c (detect_coding_utf_16): Fix previous change.
5398
cc13543e
KH
53992009-06-16 Kenichi Handa <handa@m17n.org>
5400
5401 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5402 UTF-16 by checking the dispersion of Eth and Oth bytes.
5403
977b85f4
AS
54042009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5405
5406 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5407
66bd43d1
KH
54082009-06-15 Kenichi Handa <handa@m17n.org>
5409
5410 * process.c (status_message): Fix previous change. Be sure to
5411 decode a localized string.
5412
cb5ca9c5
YM
54132009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5414
5415 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5416 add comment explaining why.
5417
ec7709ba 54182009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5419
ec7709ba 5420 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5421
4b7f335c
AR
54222009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5423
5424 * nsfont.m (ns_attribute_value): Remove.
5425 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5426 (ns_has_attribute): Shrink the normal range.
5427 (ns_findfonts): Don't worry about requested spec in determining
5428 need for synthItal.
e41820ee 5429 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5430
73b26103
SZ
54312009-06-14 Seiji Zenitani <zenitani@mac.com>
5432
5433 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5434
5753e4da
KH
54352009-06-11 Kenichi Handa <handa@m17n.org>
5436
5437 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5438 overhang for the static composition case.
5439
3561b671
KH
54402009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5441
5753e4da
KH
5442 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5443 overhang for the automatic composition case.
5444
3561b671
KH
5445 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5446 composition case.
5447
852bbd41
CY
54482009-06-10 Chong Yidong <cyd@stupidchicken.com>
5449
5450 * xdisp.c (get_next_display_element): When handling wrap-prefix
5451 and line-prefix, treat \n as a control character (bug#3502).
5452
9903d1e6
KH
54532009-06-10 Kenichi Handa <handa@m17n.org>
5454
5455 * font.c (font_parse_family_registry): Fix for one-char foundry.
5456 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5457
0bcbaaaa
CY
54582009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5459
5460 * process.c (status_message): Fix handling of multibyte signal
5461 string (Bug#3499).
5462
40aa3f13
JM
54632009-06-09 Jim Meyering <meyering@redhat.com>
5464
1f80c7e2
CY
5465 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5466 color name is missing.
40aa3f13 5467
72d51285
KH
54682009-06-09 Kenichi Handa <handa@m17n.org>
5469
5470 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5471 FROM-CODE and TO-CODE are codepoints of CHARSET.
5472
c1d04d84
AR
54732009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5474
5475 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5476
54772009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5478
5479 Changes to support :script/:lang/:otf in NS font driver.
5480 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5481 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5482 indicate not part of font driver interface, and change callers.
5483 (ns_get_family): Remove pointless null check.
5484 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5485 ns_spec_to_descriptor, ns_descriptor_to_entity.
5486 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5487 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5488 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5489 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5490 (ns_get_req_script, ns_accumulate_script_ranges)
5491 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5492 New functions.
5493 (nsfont_list, nsfont_match): Use ns_findfonts.
5494 (nsfont_open): Use font descriptor instead of traits.
5495 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5496 (dump_glyphstring): Rename to ns_dump_glyphstring.
5497
c7eb9816
AR
5498 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5499
c1d04d84
AR
5500 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5501
5502 * fontset.c (fontset_from_font): Remove NS-specific code.
5503
ec7709ba 55042009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5505
5506 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5507 nonactive windows.
5508
31fd7c5c 55092009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5510
1ac9108a 5511 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5512
68852c13 55132009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5514
5515 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5516
6756cd1d
CY
55172009-06-07 Chong Yidong <cyd@stupidchicken.com>
5518
5519 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5520 account for the overflowing of newlines into the last glyph on the
5521 display line (Bug#3482).
5522
28bf482a
DR
55232009-06-05 David Reitter <david.reitter@gmail.com>
5524
ec7709ba
JB
5525 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5526 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5527 Fns_selection_exists_p, Fns_selection_owner_p.
5528
fdb55376
JR
55292009-06-03 Jason Rumney <jasonr@gnu.org>
5530
5531 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5532 available. (Bug#3379)
5533
05129fbe
KH
55342009-05-29 Kenichi Handa <handa@m17n.org>
5535
1ac9108a
SM
5536 * coding.c (get_translation_table):
5537 Check Venable_character_translation.
05129fbe 5538
ec7709ba 55392009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5540
ec7709ba
JB
5541 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5542 (x_make_frame_visible): Move frame to front rather than calling
15891144 5543 ns_raise_frame().
ec7709ba 5544 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5545 isn't key window.
ec7709ba 5546 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5547 drawRect may be called by NSView even if the frame is hidden.
5548
ec7709ba
JB
5549 * nsfns.m (Fx_create_frame): Follow other ports in
5550 determining visibility; default to t. Ensure async_visible is set.
15891144 5551
21f73755
EZ
55522009-05-23 Eli Zaretskii <eliz@gnu.org>
5553
5554 * dired.c (Ffile_attributes): Doc fix.
5555
34001e41
CY
55562009-05-22 Chong Yidong <cyd@stupidchicken.com>
5557
5558 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5559
46306a17
SM
55602009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5561
5562 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5563 and xfont_scratch_props.
5564 (syms_of_xfont): Do it here instead.
5565 (xfont_find_ccl_program): Delete, unused.
5566 (xfont_open): Delete unused var `i'.
5567
ef6e0694
KH
55682009-05-21 Kenichi Handa <handa@m17n.org>
5569
5570 * fontset.c (Qlatin): Don't make it static.
5571
46306a17
SM
5572 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5573 New functions.
ef6e0694
KH
5574 (xfont_scripts_cache, xfont_scratch_props): New variables.
5575 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5576 (xfont_list_pattern): Argument changed. Callers changed.
5577 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5578 (xfont_list): Don't reject a font spec with :script property.
5579 (xfont_has_char): Fix setting of encoding.
5580 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5581 xfont_scratch_props.
5582
55832009-05-19 Kenichi Handa <handa@m17n.org>
5584
46306a17 5585 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5586 Callers changed.
5587
55882009-05-18 Kenichi Handa <handa@m17n.org>
5589
5590 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5591
ac71ced7
SM
55922009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5593
5594 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5595 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5596
1c6d1051
YM
55972009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5598
5599 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5600 (x_delete_terminal): Dissociate resource database from display and
5601 then call XrmDestroyDatabase before closing display.
5602
9b9b779c
AR
56032009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5604
5605 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5606 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5607 whether selected frame is viable before raising it (based on patch
5608 by David Reitter), and improve commentary.
5609 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5610
cccd42d5
KH
56112009-05-15 Kenichi Handa <handa@m17n.org>
5612
5613 * font.c (Ffont_spec): Check arguments.
5614
337fbd17
CY
56152009-05-14 Chong Yidong <cyd@stupidchicken.com>
5616
5617 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5618 weight when testing attributes (Bug#3282).
5619
47a6002f
JD
56202009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5621
5622 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5623 what we expect to get in the next ConfigureNotify event.
5624
9cb363db
YM
5625 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5626 before Xft one (Bug#1696).
5627
b9126609
CY
56282009-05-07 David Reitter <david.reitter@gmail.com>
5629
5630 * nsfns.m (Fx_display_planes): Compute bitplanes using
5631 NSBitsPerPixelFromDepth (Bug#3207).
5632
27a69fd9
CY
56332009-05-10 Chong Yidong <cyd@stupidchicken.com>
5634
5635 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5636
00f37552
TTN
56372009-05-10 Ulrich Mueller <ulm@gentoo.org>
5638
5639 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5640
2d82a920
DR
56412009-05-07 David Reitter <david.reitter@gmail.com>
5642
ec7709ba
JB
5643 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5644 Respect mouse face background.
2d82a920 5645
46b0d52d
DR
56462009-05-07 David Reitter <david.reitter@gmail.com>
5647
ec7709ba
JB
5648 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5649 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5650 in ns_update_begin and ns_update_end.
5651
ce1b23bb
SM
56522009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5653
5996e1b7
SM
5654 * nsfns.m (ns_get_screen): Rewrite.
5655 Don't presume selected-frame is of type `ns'.
5656
ba98e3a0
SM
5657 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5658 all drivers.
5659
ce1b23bb
SM
5660 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5661
bcda200f
YM
56622009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5663
5664 * keyboard.h (add_user_signal): Fix typo in extern.
5665
5666 * lisp.h (add_user_signal): Remove extern.
5667
5668 * unexelf.c (unexec): Consider a section to precede the .bss section
5669 if its addresses overlap that of .bss.
5670 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5671 instead of dumping process.
5672
864660a2
SM
56732009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5674
5675 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5676
50da4e56
SM
56772009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5678
5679 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5680
51520a1a
DN
56812009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5682
5683 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5684 any statements.
5685
409ea3a1
AS
56862009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5687
59c4c60f
AS
5688 * process.c (read_process_output): Make sure the current buffer is
5689 always restored.
5690
409ea3a1
AS
5691 * coding.c (record_conversion_result): Don't modify
5692 Vlast_code_conversion_error for successful result.
5693 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5694
56f00ed2
KH
56952009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5696
5697 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5698 (load_charset_map): Remove unnecessary code.
56f00ed2 5699
4491c9d2
DR
57002009-04-30 David Reitter <david.reitter@gmail.com>
5701
35f5b128 5702 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5703 through f24.
5704
6970f632
CY
57052009-04-30 Chong Yidong <cyd@stupidchicken.com>
5706
5707 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5708
5709 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5710 face_at_buffer_position.
5711 (face_before_or_after_it_pos, get_next_display_element)
5712 (note_mouse_highlight): Update face_at_buffer_position call.
5713
5714 * term.c (term_mouse_highlight):
5715 * msdos.c (IT_note_mouse_highlight):
5716 * fontset.c (Finternal_char_font):
35f5b128 5717 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5718
5719 * dispextern.h (face_at_buffer_position): Update prototype.
5720
0c616f63
KH
57212009-04-30 Kenichi Handa <handa@m17n.org>
5722
35f5b128 5723 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5724
ad3aaf33
AS
57252009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5726
5727 * callproc.c (Fcall_process): Fix GC protection. Make sure
5728 current buffer is always restored.
5729
c3c963a0
YM
57302009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5731
5732 * atimer.c (init_atimer): Also clear stopped_atimers.
5733
5734 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5735
7e3386cb
YM
5736 * process.c (create_process): Clean up merger residues of
5737 2008-07-17 change.
5738
91f68422
CY
57392009-04-29 Ulrich Mueller <ulm@gentoo.org>
5740
5741 * lread.c (Vread_circle): New variable.
5742 (read1): Disable recursive read if Vread_circle is nil.
5743
24b34550
KH
57442009-04-29 Kenichi Handa <handa@m17n.org>
5745
5746 * fontset.h (set_default_ascii_font): Delete extern.
5747
5748 * fontset.c (set_default_ascii_font): Delete this unused function.
5749
5750 * frame.c (x_set_font): When ARG is a font-object, check if the
5751 font-object matches with the ASCII font-spec of the frame's
9c358bda 5752 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5753
77bf07e1
AS
57542009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5755
5756 * fns.c (Flocale_info): Protect vector from GC during decoding.
5757
5758 * process.c (Fstart_process): Protect argv strings from GC during
5759 encoding.
5760
2c55aacf
AS
57612009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5762
5763 * sysdep.c: Include <ctype.h>.
5764
b892d3c9
DR
57652009-04-27 David Reitter <david.reitter@gmail.com>
5766
35f5b128 5767 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5768 Remove commented-out code.
5769
9d0644c4
JB
57702009-04-26 Johan Bockgård <bojohan@gnu.org>
5771
5772 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5773
b7053016
JR
57742009-04-25 Jason Rumney <jasonr@gnu.org>
5775
5776 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5777
4e8231f3
YM
57782009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5779
5780 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5781 Swap bytes in short integer if fringe bitmap width > 8.
5782
493dcf2c
KH
57832009-04-23 Kenichi Handa <handa@m17n.org>
5784
5785 * xfaces.c (Fx_list_fonts): If a font size is specified in
5786 PATTERN, set it in returned scalable fonts.
5787
401e9e57
CY
57882009-04-22 Chong Yidong <cyd@stupidchicken.com>
5789
708e05dc
CY
5790 * keyboard.c (Fset_input_meta_mode): Doc fix.
5791
5792 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5793
1ac9108a 5794 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5795
5796 * coding.c (Fterminal_coding_system): Doc fix.
5797
5798 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5799 (Fx_display_pixel_height, Fx_display_planes)
5800 (Fx_display_color_cells, Fx_server_max_request_size)
5801 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5802 (Fx_display_mm_height, Fx_display_mm_width)
5803 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5804 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5805 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5806 (check_x_display_info): Handle terminal objects instead of
5807 terminal ids.
5808
401e9e57
CY
5809 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5810 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5811 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5812 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5813
df80c7f0
KH
58142009-04-21 Kenichi Handa <handa@m17n.org>
5815
5a8f12af 5816 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5817 (font_score): Check AVGWIDTH too.
908567ef 5818
df80c7f0
KH
5819 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5820 worst case.
1ac9108a
SM
5821 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5822 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5823
705af33f
JR
58242009-04-19 Jason Rumney <jasonr@gnu.org>
5825
5826 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5827 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5828
5829 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5830 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5831 get_phys_cursor_geometry.
5832
b71ac3dd 5833 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5834 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5835 using get_phys_cursor_geometry.
5836
5837 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5838 correctly calculated.
5839
dc2933eb
JD
58402009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5841
1ac9108a
SM
5842 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5843 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5844 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5845 is deprecated.
5846
973e7849
AS
58472009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5848
5849 * font.c (font_put_frame_data): Use xfree instead of free.
5850
314d66f4
JB
58512009-04-17 Juanma Barranquero <lekktu@gmail.com>
5852
5853 * w32font.c (Qja, Qko): Remove declarations.
5854 (syms_of_w32font): Don't DEFSYM them.
5855
cf702558
CY
58562009-04-17 Chong Yidong <cyd@stupidchicken.com>
5857
5858 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5859
5860 * font.h (Qja, Qko): Extern them.
5861
5862 * ftfont.c (Qja, Qko): Remove declarations.
5863
5864 * xfont.c (Qja, Qko): Remove declarations.
5865
b50504f5
KH
58662009-04-17 Kenichi Handa <handa@m17n.org>
5867
bde25748
KH
5868 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5869 string from a vector to handle Latin-1 characters correctly.
5870
b50504f5
KH
5871 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5872 entity even if the cache hits.
5873
f4646fff
AS
58742009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5875
5876 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5877 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5878
e7deaab0
AS
5879 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5880 * lisp.h: Adjust prototypes.
5881
0a0e7d49
CY
58822009-04-16 Chong Yidong <cyd@stupidchicken.com>
5883
5884 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5885 change (Bug#3003).
5886
3c908a57
KH
58872009-04-16 Kenichi Handa <handa@m17n.org>
5888
1ac9108a 5889 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5890
5891 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5892 adstyle.
5893
5894 * ftfont.c (Qja, Qko): Don't make them static.
5895 (enum ftfont_cache_for): New enum.
5896 (fc_charset_table): Undo the previous change.
5897 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5898 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5899 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5900 non-scarable font, try to get AVERAGE_WIDTH.
5901 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5902 Change ft_face_cache from a list of a hash-table. Don't check
5903 `ja' and `ko' adstyle here.
5904 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5905 FTFONT_CACHE_FOR_CHARET.
5906 (ftfont_get_charset): Undo the previous change.
1ac9108a 5907 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5908 (ftfont_close): Likewise.
5909 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5910
5911 * font.c (font_sort_entites): Change the meaning of the arg
5912 BEST-ONLY. Don't optimize for VEC of lenght 1.
5913 (font_select_entity): Just return the value of font_sort_entites.
5914
5915 * xfaces.c (merge_face_vectors): Reflect font properties in
5916 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5917 font_clear_prop if a face attribute doesn't change.
5918
3c908a57
KH
5919 * charset.h (charset_ksc5601): Extern it.
5920
5921 * charset.c (charset_ksc5601): New variable.
5922 (Fdefine_charset_internal): Set charset_ksc5601.
5923 (init_charset_once): Initialize charset_ksc5601 to -1.
5924
d65859c3
DN
59252009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5926
5927 * fileio.c (history_delete_duplicates): Remove unused declaration.
5928
5929 * callint.c (history_delete_duplicates): New declaration.
5930 (Fcall_interactively): Remove command history duplicates when
5931 history_delete_duplicates is true.
5932
3ba010e5
EZ
59332009-04-14 Eli Zaretskii <eliz@gnu.org>
5934
5935 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5936
06f19b91
KH
59372009-04-14 Kenichi Handa <handa@m17n.org>
5938
5939 * font.c (Ffont_info): Fix docstring. Fix the second element of
5940 the returned value (bug#2949).
5941
2cce8bfc
CY
59422009-04-14 Chong Yidong <cyd@stupidchicken.com>
5943
5944 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5945
d156542d
KH
59462009-04-14 Kenichi Handa <handa@m17n.org>
5947
5948 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5949 encoding charset is ascii_compatible.
5950
5951 * charset.c (Fdefine_charset_internal): Make charset
5952 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5953 code_offset is 0, and covers all ASCII characters.
5954
86fa089e
SM
59552009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5956
5957 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5958 (ns_string_to_pasteboard_internal):
5959 * nsmenu.m (process_dialog):
5960 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5961 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5962 * lisp.h (Fx_load_color_file): Declare.
5963
a8a3728b
KH
59642009-04-13 Kenichi Handa <handa@m17n.org>
5965
1ac9108a 5966 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5967 (font_select_entity): Suppress the code to optimize for the same
5968 kind of fonts.
5969 (font_load_for_lface): Get a font that supports at least ASCII
5970 characters.
5971
5972 * ftfont.c (Qja, Qko): New variables.
5973 (fc_charset_table): Delete uniquifier data for iso8859-1.
5974 (ftfont_get_latin1_charset): New function.
5975 (get_adstyle_property): New function.
5976 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5977 bitmap fonts.
5978 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5979 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5980 `ko' or `ja'.
5981 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5982 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5983 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5984 property.
5985 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5986 (syms_of_ftfont): DEFSYM Qja and Qko.
5987
483670b5
KH
59882009-04-09 Kenichi Handa <handa@m17n.org>
5989
12b55765
KH
5990 * charset.c (map_charset_chars): For a charset of `superset'
5991 method, fix calculation of code range.
5992
483670b5
KH
5993 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5994 from the list of extra properties.
5995 (font_clear_prop): Be sure to delete `:name' font property.
5996
57d3b93b
KH
59972009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5998
b4b2c2ca
YM
5999 * dispnew.c (redraw_overlapping_rows): Fix detection of
6000 overlapping for topmost and bottommost rows.
6001
1ac9108a 6002 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6003
472c3609
JR
60042009-04-06 Jason Rumney <jasonr@gnu.org>
6005
6006 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6007
ab193662
KH
60082009-04-06 Kenichi Handa <handa@m17n.org>
6009
6010 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6011
6012 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6013
0c26f026
KH
60142009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6015
6016 * ftfont.c (ftfont_open): Fix checking of the return value of
6017 FT_Load_Char. Fix setting font->underline_thickness.
6018
e173bbce
CY
60192009-04-04 Chong Yidong <cyd@stupidchicken.com>
6020
6021 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6022 (Fterminal_parameters, Fterminal_parameter)
6023 (Fset_terminal_parameter): In doc string, refer to terminal
6024 objects rather than terminal ids.
6025
693a2698
EZ
60262009-04-04 Eli Zaretskii <eliz@gnu.org>
6027
6028 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6029 ret_lim_data. (Bug#2867)
6030
d5221487
CY
60312009-04-03 Chong Yidong <cyd@stupidchicken.com>
6032
6033 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6034 so they don't get wider than the window, matching 2006-01-23
6035 change to the partner function in xdisp.c (Bug#2800).
6036
223509a3
KH
60372009-04-03 Kenichi Handa <handa@m17n.org>
6038
6039 * print.c (print_object): Make each lowest sub_char_table start a
6040 new line (Bug#2866).
6041
74fcd0b1
KH
60422009-04-02 Kenichi Handa <handa@m17n.org>
6043
6044 * fontset.c (fontset_font): Record no-font when a fontset
6045 explicitly tells not to try another font-specs.
6046
c542407d
SM
60472009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6048
6049 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6050
e3869731
KH
60512009-03-30 Kenichi Handa <handa@m17n.org>
6052
d8d2f142
KH
6053 * fontset.c (fontset_from_font): Specify only registry in a
6054 font-spec for all characters supported by that registry.
6055
e3869731
KH
6056 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6057 even if HAVE_M17N_FLT is not defined.
6058
5da5f805
CY
60592009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6060
6061 * ftfont.c: Conditionalize prototyping and use of
6062 ftfont_variation_glyphs.
6063
ab226c50
SM
60642009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6065
9628fed7
SM
6066 * frame.c (delete_frame): Work around compiler bug.
6067
6068 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6069 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6070 Some more EMACS_INT.
6071 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6072
6073 * xdisp.c (dump_glyph): Fix typo.
6074
ae19ba7c
SM
6075 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6076 (adjust_markers_gap_motion, adjust_markers_for_delete)
6077 (adjust_markers_for_insert, adjust_point)
6078 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6079 (make_gap, copy_text, count_size_as_multibyte, insert)
6080 (insert_and_inherit, insert_before_markers)
6081 (insert_before_markers_and_inherit, insert_1)
6082 (count_combining_before, count_combining_after, insert_1_both)
6083 (insert_from_string, insert_from_string_before_markers)
6084 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6085 (insert_from_buffer_1, adjust_after_replace)
6086 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6087 (replace_range_2, del_range, del_range_1, del_range_byte)
6088 (del_range_both, del_range_2, modify_region)
6089 (prepare_to_modify_buffer, signal_before_change)
6090 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6091 for buffer positions and sizes.
6092 * lisp.h: Adjust prototypes accordingly.
6093
6094 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6095 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6096 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6097
ab226c50
SM
6098 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6099
46dfb8fb
JD
61002009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6101
6102 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6103 lines and columns so we keep the same pixel height and width.
6104
6105 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6106 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6107 (x_handle_net_wm_state): New function to update frame parameter
6108 fullscreen.
6109 (x_term_init): Initialize atoms for _NET_WM_STATE.
6110
6111 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6112
d347e494
SM
61132009-03-27 Kevin Ryde <user42@zip.com.au>
6114
6115 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6116 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6117 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6118 (Fgpm_mouse_stop): Pass that new parameter.
6119 * termhooks.h (close_gpm): Adjust prototype.
6120
84db11d6
SM
61212009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6122
c95a5008
SM
6123 * lisp.h (Fx_focus_frame): Declare.
6124
84db11d6
SM
6125 * callint.c (Fcall_interactively): For '^' just delegate the work to
6126 handle-shift-selection.
6127 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6128
0a1958d6
CY
61292009-03-24 Chong Yidong <cyd@stupidchicken.com>
6130
0bfdff23
CY
6131 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6132
0a1958d6
CY
6133 * data.c (Qinteractive_form): New variable.
6134 (Finteractive_form): Use it.
6135
6136 * eval.c (Fcommandp): Use Qinteractive_form.
6137
58aec0d6
JR
61382009-03-24 Jason Rumney <jasonr@gnu.org>
6139
6140 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6141 Calculate total size precisely. Decode environment variables
6142 before substituting. (Bug#38)
6143
553dd618
KH
61442009-03-24 Kenichi Handa <handa@m17n.org>
6145
6146 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6147 encoding (Bug#2722).
553dd618 6148
c39ea606
JD
61492009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6150
6151 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6152 that gdpy is set.
6153
bc9b2b5e
AM
61542009-03-22 Alan Mackenzie <acm@muc.de>
6155
6156 * callint.c (Finteractive): Clarify the doc string - even
6157 promptless elements need \n separators.
6158
9f995a76
JR
61592009-03-22 Jason Rumney <jasonr@gnu.org>
6160
6161 * w32term.c (syms_of_w32term): Doc fix for
6162 x-use-underline-position-properties.
6163
22749e9a
EZ
61642009-03-21 Eli Zaretskii <eliz@gnu.org>
6165
6166 * w32.c (getpwuid): Change argument type to unsigned.
6167 (struct w32_id): Change type of `rid' member to unsigned.
6168 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6169 argument ID to unsigned. All callers changed.
6170 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6171
e00553bf
EZ
61722009-03-20 Eli Zaretskii <eliz@gnu.org>
6173
6174 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6175 negative, produce a float value.
6176
6177 * dired.c (make_uid, make_gid): New functions.
6178 (Ffile_attributes): Use them to avoid negative UID and GID.
6179
f761d6b6
JB
61802009-03-20 Juanma Barranquero <lekktu@gmail.com>
6181
6182 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6183 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6184 Fix typos in docstrings.
6185
d507f8d7
KH
61862009-03-19 Kenichi Handa <handa@m17n.org>
6187
6188 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6189 changed, use font_load_for_lface to get a new font object.
6190 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6191
6192 * frame.c (x_set_font): Handle the case that ARG is a cons.
6193
c68845e0
GM
61942009-03-19 Glenn Morris <rgm@gnu.org>
6195
6196 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6197
bfa49dd1
CY
61982009-03-19 Chong Yidong <cyd@stupidchicken.com>
6199
6200 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6201
8458d4c1
KH
62022009-03-19 Kenichi Handa <handa@m17n.org>
6203
6204 * charset.c (load_charset_map_from_file): When a mapfile can't be
6205 loaded, signal an error.
6206
78e7d1fe
EZ
62072009-03-18 Eli Zaretskii <eliz@gnu.org>
6208
6209 * dired.c (Ffile_attributes): Make sure UID and GID are always
6210 positive, even if the value is too large for a positive EMACS_INT.
6211 Doc fix.
6212
6213 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6214
5da9fdfa
YM
62152009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6216
6217 * xmenu.c (xdialog_show): Move Fredisplay call ...
6218 (Fx_popup_dialog): ... here.
6219
7519c40d
SM
62202009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6221
6222 * dired.c (file_name_completion): Disable the first optimization just
6223 installed, since it is not implemented correctly.
6224
2cd298e2
SM
62252009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6226
6227 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6228 only if the entry can affect bestmatch.
2cd298e2
SM
6229 Stop the search early, as Ftry_completion already does.
6230
48d37adf
CY
62312009-03-17 Chong Yidong <cyd@stupidchicken.com>
6232
e10c9c93 6233 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6234
9286b16a
CY
62352009-03-15 Chong Yidong <cyd@stupidchicken.com>
6236
6237 * keyboard.c (parse_menu_item): Don't display remappings as menu
6238 equivalent bindings (Bug#788).
6239
f7b146dc
JR
62402009-03-15 Jason Rumney <jasonr@gnu.org>
6241
6242 * w32term.h (WM_EMACS_PAINT): New message.
6243 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6244 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6245 before passing to lisp thread. (Bug#950)
6246
f761d6b6 62472009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6248
d93f9575
CY
6249 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6250 variable as it was never reset.
6251 (ns_term_init): Remove initialization of Lisp-settable defaults
6252 and ns_expand_space.
6253 (-setPanelFromDefaultValues): Remove ns_expand_space.
6254 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6255 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6256 i.e. no additional spacing, similar to Carbon port.
6257
d93f9575
CY
6258 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6259 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6260
305018ec
JD
62612009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6262
6263 * sound.c (alsa_configure): Remove call to deprecated
6264 snd_pcm_sw_params_set_xfer_align.
6265
f761d6b6 62662009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6267
6268 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6269 after clicking in a detached tool bar.
6270 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6271
46e722a9
SM
62722009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6273
348db3dd
SM
6274 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6275 int/Lisp_Object mixup).
46e722a9 6276
a3d16f39
KH
62772009-03-13 Kenichi Handa <handa@m17n.org>
6278
6279 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6280 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6281 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6282 (set_fontset_font): Change ARG to a vector. Handle range_list in
6283 ARG correctly.
6284 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6285 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6286 the above change.
6287 (fontset_from_font): Fix previous change.
fe24f56a 6288 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6289 entry. If FONTSET is the default fontset, don't set the extra
6290 slot of the returning char-table.
6291
b066e6b6
JB
62922009-03-12 Juanma Barranquero <lekktu@gmail.com>
6293
6294 * nsfns.m (Fx_close_connection): Doc fix.
6295 (Fns_do_applescript): Reflow docstring.
6296 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6297 (Fx_display_pixel_width, Fx_display_pixel_height)
6298 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6299 Fix typos in docstrings.
6300 (Fns_set_alpha): Fix typos in error messages.
6301
d472514e 63022009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6303
d472514e 6304 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6305 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6306 were used for such events.
6307
d472514e
JB
6308 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6309 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6310
d472514e 6311 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6312 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6313
fb930676
KH
63142009-03-11 Kenichi Handa <handa@m17n.org>
6315
ff85581a
KH
6316 * font.h (font_open_by_spec): Extern it.
6317
c50b7e98
KH
6318 * font.c (font_open_by_spec): New function.
6319 (font_open_by_name): Use font_open_by_spec.
6320
fb930676
KH
6321 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6322 fontset of the frame.
6323
6324 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6325 modify the default font of frames that use this fontset.
6326 (num_auto_fontsets): New variable.
6327 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6328 name. Be sure to set FONTSET_ASCII to the correct font name.
6329 (update_auto_fontset_alist): New function.
6330
df4e8455
JB
63312009-03-11 Juanma Barranquero <lekktu@gmail.com>
6332
6333 * makefile.w32-in: Update dependencies.
6334
0a375797
AR
63352009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6336
6337 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6338
61313fa3
SM
63392009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6340
6341 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6342
b55103fb
CY
63432009-03-10 Chong Yidong <cyd@stupidchicken.com>
6344
6345 * lread.c (Feval_buffer): Doc fix.
6346
dde2559c
KH
63472009-03-09 Kenichi Handa <handa@m17n.org>
6348
6349 * charset.c (Qfile_name_handler_alist): Extern it.
6350 (load_charset_map_from_file): Temporarily bind
6351 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6352
df4e8455 63532009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6354
47f588bb
GM
6355 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6356 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6357
4ddf94bd
AR
63582009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6359
4c9bdfc2
AR
6360 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6361 (x_set_window_size): Change back to calculated method of setting
6362 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6363 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6364 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6365
fe41ae9e
AR
6366 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6367
4c9bdfc2
AR
6368 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6369 accelerator in parens under GNUstep.
6370
825d0875
KH
63712009-03-06 Kenichi Handa <handa@m17n.org>
6372
6373 These changes are to detect incorrect composition sequence without
f3b3be74 6374 looking ahead the source. (Bug#2370)
825d0875
KH
6375
6376 * coding.h: Include "composite.h".
6377 (enum compisition_state): New enum.
6378 (struct compisition_status): New struct.
6379 (struct iso_2022_spec): New member cmp_status.
6380 (struct emacs_mule_spec): New struct.
6381 (struct coding_system): New members ctext_extended_segment_len and
6382 embedded_utf_8. Change the union member
6383 spec.emacs_mule_full_support to spec.emacs_mule.
6384
6385 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6386 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6387 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6388 (ADD_COMPOSITION_DATA): New arg nbytes.
6389 (emacs_mule_char): New arg cmp_status.
6390 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6391 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6392 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6393 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6394 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6395 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6396 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6397 (EMACS_MULE_COMPOSITION_END): New macro.
6398 (emacs_mule_finish_composition): New function.
6399 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6400 (decode_coding_emacs_mule): Avoid long looking ahead while
6401 handling composition.
6402 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6403 (ENCODE_COMPOSITION_RULE): New macro.
6404 (finish_composition): New function.
6405 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6406 (DECODE_COMPOSITION_START): New implementation.
6407 (DECODE_COMPOSITION_END): Likewise.
6408 (STORE_COMPOSITION_RULE): New macro.
6409 (decode_coding_iso_2022): Avoid long looking ahead while handling
6410 composition, CTEXT extended segment, and embedded UTF-8.
6411 (setup_coding_system): For a coding of type iso-2022, reset
6412 CODING_ISO_EXTSEGMENT_LEN (coding) and
6413 CODING_ISO_EMBEDDED_UTF_8 (coding).
6414 (get_translation): Delete arguments last_block, from_nchars,
6415 to_nchars. Callers changed.
6416 (produce_chars): Don't modify charbuf. Adjusted for the change of
6417 get_translation.
98a326f7 6418 (produce_composition): Adjust for the new annotation sequence.
825d0875 6419 (handle_composition_annotation): Likewise.
98a326f7 6420 (consume_chars): Adjust for the change of get_translation.
825d0875 6421
ccbc4452
AR
64222009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6423
4ddf94bd 6424 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6425
988a7ddb
KH
64262009-03-05 Kenichi Handa <handa@m17n.org>
6427
6428 * font.c (font_select_entity): New function.
6429 (font_find_for_lface): Use font_select_entity to select a font.
6430
6431 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6432 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6433 font with C restriction.
6434
98a326f7 64352009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6436
be1bce46 6437 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6438
10ea2b82
JR
64392009-03-04 Jason Rumney <jasonr@gnu.org>
6440
2c93b248 6441 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6442 characters that have already been read. (Bug#2569)
2c93b248 6443
10ea2b82
JR
6444 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6445 Log an error message if check_image_size failed.
6446 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6447 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6448
71a0c011
EZ
64492009-03-02 Eli Zaretskii <eliz@gnu.org>
6450
6451 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6452 when decoding process output.
6453
2f63bba8
RS
64542009-03-01 Richard M Stallman <rms@gnu.org>
6455
6456 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6457
6458 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6459
0a9564cb
EZ
64602009-02-28 Eli Zaretskii <eliz@gnu.org>
6461
6462 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6463 (decode_coding_emacs_mule, decode_coding_iso_2022)
6464 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6465 (decode_coding_raw_text, decode_coding_charset)
6466 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6467 Honor inhibit-eol-conversion. (Bug #2186)
6468
449148b3
JR
64692009-02-28 Jason Rumney <jasonr@gnu.org>
6470
6471 * coding.c (detect_coding_charset): If not checking latin extra,
6472 fail on characters between 0x80 and 0xA0. (Bug#2354)
6473
a4aee864
EZ
64742009-02-28 Eli Zaretskii <eliz@gnu.org>
6475
6476 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6477 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6478
d88bee5a
GM
64792009-02-27 Glenn Morris <rgm@gnu.org>
6480
6481 * callint.c (Finteractive): Doc fix.
6482
a808f22d
KH
64832009-02-27 Kenichi Handa <handa@m17n.org>
6484
6485 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6486
caf8d60c
CY
64872009-02-27 Chong Yidong <cyd@stupidchicken.com>
6488
6489 * font.c (font_style_to_value): Set value for unknown symbols to
6490 100 instead of 255.
b61137ea
CY
6491 (weight_table, slant_table, width_table): Treat "unspecified" as
6492 the default value.
caf8d60c 6493
1a0de25c
JB
64942009-02-26 Juanma Barranquero <lekktu@gmail.com>
6495
6496 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6497
8fc45744
JB
64982009-02-25 Juanma Barranquero <lekktu@gmail.com>
6499
107bd7d1
JB
6500 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6501 error as soon as a recursive load is detected.
8fc45744 6502
f097e223
AR
65032009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6504
6505 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6506 before caching.
6507
8810a12f
KH
65082009-02-24 Kenichi Handa <handa@m17n.org>
6509
6510 * fontset.c (fontset_find_font): Fix the condition for checking
6511 unavailable font.
6512
2c7d1565
GM
65132009-02-24 Glenn Morris <rgm@gnu.org>
6514
6515 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6516 whitespace that confuses documentation.
6517
a20878b6
MB
65182009-02-23 Miles Bader <miles@gnu.org>
6519
6520 * process.c (Flist_system_processes, Fprocess_attributes)
6521 (syms_of_process): Rename `system-process-attributes' to
6522 `process-attributes'.
6523
b3b58c01
AS
65242009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6525
1b3b981b
AS
6526 * coding.h (struct coding_system): Make safe_charsets a pointer to
6527 unsigned char.
6528 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6529 being 255.
6530 (SAFE_CHARSET_P): Likewise.
6531 (setup_iso_safe_charsets): Properly setup safe_charsets.
6532 (Fdefine_coding_system_internal): Likewise.
6533 (setup_coding_system): Likewise. Remove unneeded casts.
6534 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6535 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6536 unneeded casts.
6537
b3b58c01
AS
6538 * insdel.c (del_range_2): Don't modify gap contents when called
6539 from decode_coding_object. (Bug#1809)
6540
0b6f228c
CY
65412009-02-21 Chong Yidong <cyd@stupidchicken.com>
6542
6543 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6544 Qfont_object.
6545 (Ftype_of): Recognize font objects.
6546
6547 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6548
6549 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6550 moved to data.c.
6551
52f8870b
AR
65522009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6553
6554 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6555 async_iconified. Based on a patch by Christian Lynbech
6556 <christian.lynbech@tieto.com>.
6557 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6558
7087d5e9
GM
65592009-02-20 Glenn Morris <rgm@gnu.org>
6560
6561 * syntax.c (Fskip_chars_forward): Fix doc typo.
6562
41d2ceef
CY
65632009-02-20 Chong Yidong <cyd@stupidchicken.com>
6564
6565 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6566
1a3b7ca6
CY
65672009-02-19 Chong Yidong <cyd@stupidchicken.com>
6568
6569 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6570
73cce38d
KH
65712009-02-19 Kenichi Handa <handa@m17n.org>
6572
6573 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6574 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6575
a51092ee
DN
65762009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6577
6578 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6579
c423ecca
KH
65802009-02-18 Kenichi Handa <handa@m17n.org>
6581
6582 * font.c (font_check_otf_features): Fix handling of `nil' element.
6583 (Ffont_spec): Describe :lang and :otf in the docstring.
6584
4c1958f4
AS
65852009-02-16 Andreas Schwab <schwab@suse.de>
6586
6587 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6588 string.
6589
5704f39a
KH
65902009-02-16 Kenichi Handa <handa@m17n.org>
6591
6592 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6593 (Bug#1723)
5704f39a 6594
8f0085aa
CY
65952009-02-14 Chong Yidong <cyd@stupidchicken.com>
6596
a057d86a 6597 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6598
6599 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6600 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6601
aff01dd9
EZ
66022009-02-14 Eli Zaretskii <eliz@gnu.org>
6603
6604 * msdos.c (MAX_SCREEN_BUF): New macro.
6605 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6606 Encode the entire run of glyphs sharing the same face, instead of
6607 doing that one glyph at a time (fixes a bug with displaying
6608 double-size characters).
6609
ba301db3
AR
66102009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6611
6612 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6613
6614 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6615 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6616 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6617
6618 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6619 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6620
51d861de
SM
66212009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6622
ac146f82 6623 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6624 invisible areas.
6625
7fed8996
JR
66262009-02-12 Jason Rumney <jasonr@gnu.org>
6627
631ea4fb
JR
6628 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6629 (add_font_entity_to_list): Call check_face_name even when family
6630 is unspecified.
6631
cb4a3e42
JR
6632 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6633 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6634 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6635
7fed8996 6636 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6637 raster fonts. (Bug#2219)
7fed8996 6638
895416e3
KH
66392009-02-12 Kenichi Handa <handa@m17n.org>
6640
6641 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6642 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6643 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6644 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6645 (find_automatic_composition): While looking forward and backward,
6646 check static composition. Fix where to stop looking forward.
6647 (composition_adjust_point): Fix checking of static composition.
6648 (Fcomposition_get_gstring): Pay attention to
1dacf998 6649 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6650
6651 * lisp.h (fast_looking_at): Extern it.
6652
6653 * search.c (fast_looking_at): New function.
6654
51d861de 6655 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6656 <struct glyph>.u.cmp.to.
6657 (append_composite_glyph): Likewise.
6658
51d861de 6659 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6660 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6661 composition.
51d861de 6662 (append_composite_glyph): Adjust for the change of
895416e3
KH
6663 <strcut glyph>.u.cmp.to.
6664
8510724d
JB
66652009-02-11 Juanma Barranquero <lekktu@gmail.com>
6666
6667 * casetab.c (init_casetab_once):
6668 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6669 * font.c (font_update_lface):
6670 * fontset.c (Fnew_fontset):
6671 * ftfont.c (ftfont_drive_otf):
6672 * xfont.c (xfont_open):
6673 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6674
294fa707
SM
66752009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6676
6677 * fileio.c (Fwrite_region): !NILP -> CONSP.
6678
b5bfebec
AS
66792009-02-10 Andreas Schwab <schwab@suse.de>
6680
6681 * process.c (send_process): Properly relocate pointer into data
adab88bd 6682 when using encoded data. (Bug#2272)
b5bfebec 6683
cb84a2be
KH
66842009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6685
6686 * coding.c (detect_coding_charset): Fix previous change.
6687
89e09428
JR
66882009-02-08 Jason Rumney <jasonr@gnu.org>
6689
6690 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6691 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6692
4470a277
AS
66932009-02-07 Andreas Schwab <schwab@suse.de>
6694
6695 * unexelf.c (unexec): Fix error message.
6696
3175b12a
AR
66972009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6698
6699 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6700 when modal window is active. (Bug #2152)
3175b12a
AR
6701 (applicationShouldTerminate:): Remove now-unneeded while loop
6702 around NSRunAlertPanel.
6703
6704 * nsmenu.m (popupSession): New file-global variable.
6705 (pop_down_menu): End the popupSession before closing dialog.
6706 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6707 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6708 don't query NSApp for events (just sleep instead).
6709
8434d0b8
EZ
67102009-02-07 Eli Zaretskii <eliz@gnu.org>
6711
51d861de
SM
6712 * coding.c (syms_of_coding) <translation-table-for-input>:
6713 Modify doc string to discourage use for character code unification.
8434d0b8 6714
aa82edfd
CY
67152009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6716
6717 * atimer.c (run_timers): Update pending_atimers.
6718
2d283c7c
CY
67192009-02-06 Chong Yidong <cyd@stupidchicken.com>
6720
eb306cab
CY
6721 * image.c (svg_load_image): Fix last change.
6722
2d283c7c
CY
6723 * xfns.c (Fx_create_frame): Signal an error if no font is
6724 found (Bug#2147).
6725
4d8e170e
JB
67262009-02-05 Juanma Barranquero <lekktu@gmail.com>
6727
6728 * character.c (syms_of_character) <script-representative-chars>:
6729 Fix typo in docstring.
6730
c96169a0
AR
67312009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6732
6733 * nsmenu.m (pop_down_menu): New function.
6734 (ns_popup_dialog): Call it on unwind.
6735 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6736 call timer_check() (Bug#2154).
6737 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6738 handling_signal is set.
6739 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6740
31fd7c5c 6741 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6742
6743 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6744
6745 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6746
51d861de
SM
6747 * keyboard.c (poll_for_input_1, handle_async_input):
6748 Set handling_signal under HAVE_NS.
c96169a0 6749
aacd8ba1
GM
67502009-02-04 Glenn Morris <rgm@gnu.org>
6751
6752 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6753
4cb75c4b
KH
67542009-02-04 Kenichi Handa <handa@m17n.org>
6755
6756 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6757
6758 * charset.c (Fchar_charset): New optional arg restriction.
6759
6760 * coding.h (coding_system_charset_list): Extern it.
6761
6762 * coding.c (coding_system_charset_list): New function.
6763
6764 * composite.c: Include coding.h and termhooks.h.
6765 (composition_gstring_p): Fix for the terminal case.
6766 (composition_gstring_width): Likewise.
6767 (fill_gstring_body): Likewise.
6768 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6769 the frame.
6770 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6771 is within a composition.
867d4bb3 6772 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6773
6774 * term.c (encode_terminal_code): Fix handling of composition.
6775 (produce_composite_glyph): For static composition, get pixel_width
6776 from struct composition.
6777
826ba17e
AS
67782009-02-02 Andreas Schwab <schwab@suse.de>
6779
6780 * unexelf.c (unexec): Handle unaligned bss offset.
6781
8ad093db
AR
67822009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6783
6784 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6785 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6786
8ad093db
AR
6787 * keyboard.c (handle_interrupt): Don't call
6788 quit_throw_to_read_char() under NS.
d0a76a6e 6789
8ad093db
AR
6790 * blockinput.h: Remove NS-specific code.
6791
4d18a7a2
DN
67922009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6793
db878925
DN
6794 * dispnew.c (window_change_signal): Don't try to get the size of a
6795 suspended tty frame.
6796 * term.c (Fresume_tty): Resize if the size has changed while the
6797 tty was suspended.
6798
4d18a7a2
DN
6799 * alloc.c (mark_stack): Properly conditionalize previous change.
6800
8984df7c
JB
68012009-01-30 Juanma Barranquero <lekktu@gmail.com>
6802
6803 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6804 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6805 Remove; this code is not used on Windows.
6806
75f4f1ac
EZ
68072009-01-30 Eli Zaretskii <eliz@gnu.org>
6808
6809 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6810 EOLs that also has stray ^M characters.
6811
07a1e794
JB
68122009-01-30 Juanma Barranquero <lekktu@gmail.com>
6813
6814 * atimer.c (run_timers, alarm_signal_handler):
6815 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6816 * w32inevt.c (w32_console_read_socket):
6817 * w32term.c (w32_read_socket):
6818 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6819
a8b11cc9
CY
68202009-01-30 Chong Yidong <cyd@stupidchicken.com>
6821
6822 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6823 Initialize it as a relative filename pattern.
6824 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6825 (Fcall_process_region): Simplify temp file creation using
6826 temporary-file-directory.
6827
c279587b
EZ
68282009-01-29 Eli Zaretskii <eliz@gnu.org>
6829
6830 * msdos.c: Rename pending_signals to msdos_pending_signals.
6831 (sig_suspender, sigprocmask): Adjust.
6832
a8fe3242
CY
68332009-01-29 Chong Yidong <cyd@stupidchicken.com>
6834
6835 * keyboard.c (pending_signals): New var.
6836 (poll_for_input, input_available_signal, init_keyboard): Set it.
6837 (process_pending_signals): New function.
6838
6839 * lisp.h (QUIT): Check pending_signals instead of
6840 interrupt_input_pending. Use process_pending_signals.
6841
51d861de 6842 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6843
51d861de 6844 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6845
6846 * sysdep.c (emacs_write): Use process_pending_signals.
6847
6848 * xterm.c (XTread_socket): Update pending_signals.
6849
6850 * w32term.c (w32_read_socket): Update pending_signals.
6851
6852 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6853
6570a1c4
KH
68542009-01-29 Kenichi Handa <handa@m17n.org>
6855
6856 * xftfont.c (xftfont_has_char): New function.
6857 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6858
d72a4afa
AR
68592009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6860
6861 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6862 under GNUstep.
6863 (ns_query_color): New declaration.
6864
6865 * nsterm.m (ns_confirm_quit): New variable.
6866 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6867 (EmacsApp-applicationShouldTerminate:): Use it.
6868 (EmacsPrefsController): Let user set it.
6869 (ns_query_color): New function.
6870 (ns_defined_color): Use it.
6871 (ns_initialize): Drop.
6872 (ns_term_init): Add two lines from ns_initialize(), and set
6873 input_interrupt_mode to nil.
6874
6875 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6876 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6877
9fe78804
KH
68782009-01-28 Kenichi Handa <handa@m17n.org>
6879
6880 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6881 (fontset_get_font_group): Remember that no font-group is specified
6882 for C.
9fe78804 6883
fa57de36
CY
68842009-01-27 Chong Yidong <cyd@stupidchicken.com>
6885
930600e9
CY
6886 * fns.c (concat): Check for string overflow (bug#1787).
6887
fa57de36
CY
6888 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6889 Quadruple undo limits (bug#1501).
6890
7179ce7b
KH
68912009-01-27 Kenichi Handa <handa@m17n.org>
6892
6893 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6894 directly use GT_Get_Char_index.
6895
6896 * xftfont.c (struct xftfont_info): New member `index'.
6897
6898 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6899 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6900
5be8fcc0
CY
69012009-01-26 Kenichi Handa <handa@m17n.org>
6902
6903 * fontset.c (fontset_find_font): Fix handling of non-cons return
6904 value of fontset_get_font_group.
6905 (fontset_font): Revert last change.
6906
19ae3e61
JR
69072009-01-26 Jason Rumney <jasonr@gnu.org>
6908
6909 * w32font.c (w32font_list_internal): Return quickly if registry is
6910 unknown. Simplify final return.
6911 (add_font_entity_to_list): Break complex logic down into more
6912 manageable chunks. Move unknown registry check to
6913 w32font_list_internal.
6914
8612b71a
AR
69152009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6916
6917 Changes to remove Feval calls from GUI under NS.
6918
d8038940
JB
6919 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6920 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6921 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6922
6923 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6924 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6925 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6926 instead of NON_ASCII_KEYSTROKE_EVENT.
6927 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6928 (EmacsApp-applicationShouldTerminate:): Query user.
6929 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6930 instead of Feval.
6931
6932 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6933
6934 * keyboard.c (kbd_buffer_get_event): Check for it.
6935 (keys_of_keyboard): Define lispy keys for
6936 ns-put/unput-working-text.
6937
6938 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6939 versions.
6940 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6941
6288ae55
CY
69422009-01-25 Chong Yidong <cyd@stupidchicken.com>
6943
6944 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6945 setting current_buffer directly. (Bug#2044)
6288ae55 6946
289e7f8f
CY
69472009-01-24 Chong Yidong <cyd@stupidchicken.com>
6948
5ce87308 6949 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6950 any work. (Bug#1952, bug#1990).
5ce87308 6951
64cc3cf6 6952 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6953
b3243e6f
AR
69542009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6955
6956 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6957 (ns_no_defaults): New declaration.
6958 (main): Use it.
e0d2e69a 6959
d900b2af 6960 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6961
d900b2af 6962 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6963
d900b2af
AR
6964 * nsterm.m (ns_no_defaults): New variable.
6965 (ns_initialize): Don't read defaults when ns_no_defaults.
6966 (EmacsView-readSelectionFromPasteboard:)
6967 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6968 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6969 (ns_dumpglyphs_stretch): New function.
6970 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6971 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6972
e0d2e69a
AR
6973 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6974
3ac71f5d
CY
69752009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6976
6977 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6978 call for Sparc64.
6979
3fe53a83
AR
69802009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6981
6982 * nsfns.m:
6983 * nsgui.h:
6984 * nsmenu.m:
6985 * nsselect.m:
6986 * nsterm.h:
6987 * nsterm.m: Remove '23' comments that indicated code added during
6988 update from emacs-20 -> emacs-23.
6989
10f87c6f 69902009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6991
6992 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6993 ns_alternate_modifier. (Bug#1217)
a3b53a85 6994
c7cef62d
AR
6995 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6996 Display all shortcuts, including those w/o super modifier.
6997
575fb8bd
AR
6998 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6999
918b848b
CY
70002009-01-22 Chong Yidong <cyd@stupidchicken.com>
7001
7002 * fileio.c (Vwrite_region_post_annotation_function)
7003 (Vwrite_region_annotation_buffers): New vars.
7004 (build_annotations_unwind): Just reset
7005 Vwrite_region_annotation_buffers.
7006 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7007 Call write-region-post-annotation-function.
7008 (build_annotations): Add to Vwrite_region_annotation_buffers if
7009 buffer changes.
7010
a39e2539
AR
70112009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7012
7013 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7014 Tiger.
51d861de
SM
7015 * nsfns.m (ns_do_applescript):
7016 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7017
35ed44db
AR
70182009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7019
7020 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7021
cbe0b5bf
AR
70222009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7023
7024 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7025
6049d3a0
AR
7026 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7027
7028 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7029 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7030 handle Ctrl-tab. (Bug#1841)
7031 (ns_get_color): Use unsigned long long for scanned hex string value.
7032 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7033 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7034 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7035 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7036 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7037 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7038 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7039
d3810c21 7040 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7041 DPI. (Bug#1316)
d3810c21
AR
7042 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7043 values in onTiger section.
4c7077c3 7044
e301e634
CY
70452009-01-19 Chong Yidong <cyd@stupidchicken.com>
7046
7f82490b
CY
7047 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7048 Check return value of font_spec_from_name.
64cc3cf6 7049 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7050
7051 * font.c (font_spec_from_name): Return Qnil if font name could not
7052 be parsed.
7053 (font_parse_name): Treat a `?' character as part of an XLFD.
7054
e301e634
CY
7055 * fns.c (Fsubstring): Doc fix.
7056
1c0db158
KH
70572009-01-19 Kenichi Handa <handa@m17n.org>
7058
51d861de 7059 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7060 (ftfont_list): Likewise.
7061
acf20901
JB
70622009-01-18 Juanma Barranquero <lekktu@gmail.com>
7063
fff4e459
JB
7064 * dbusbind.c (Fdbus_register_signal):
7065 * process.c (conv_sockaddr_to_lisp):
7066 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7067
acf20901
JB
7068 * callproc.c (Fgetenv_internal): Doc fix.
7069
e7abcdfb
CY
70702009-01-16 Chong Yidong <cyd@stupidchicken.com>
7071
7072 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7073 it is not even used.
7074
b60861e6
GM
70752009-01-16 Glenn Morris <rgm@gnu.org>
7076
7077 * font.c (Ffont_variation_glyphs): Silence compiler.
7078
8db52afe
JB
70792009-01-15 Juanma Barranquero <lekktu@gmail.com>
7080
7081 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7082 Reported by David Robinow <drobinow@gmail.com>.
7083
4cddb209
KH
70842009-01-15 Kenichi Handa <handa@m17n.org>
7085
51d861de 7086 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7087
f247f67b
JR
70882009-01-14 Jason Rumney <jasonr@gnu.org>
7089
7090 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7091 never a fontset. (Bug#1562)
f247f67b 7092
f56a4450
KH
70932009-01-14 Kenichi Handa <handa@m17n.org>
7094
7095 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7096 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7097
4e99855e
CY
70982009-01-13 Chong Yidong <cyd@stupidchicken.com>
7099
7100 * font.c (font_clear_prop): If clearing the family, clear the font
7101 width index too.
7102
fff4e459 7103 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7104
24f01470
JB
71052009-01-12 Juanma Barranquero <lekktu@gmail.com>
7106
7107 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7108 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7109 functions, use sizeof.
7110
a41240a3
MR
71112009-01-12 Martin Rudalics <rudalics@gmx.at>
7112
7113 * keyboard.c (read_char): Fix case where last_nonmenu_event
7114 returned a bad value with submenus. (Bug#447)
7115
944636b8
CY
71162009-01-12 Chong Yidong <cyd@stupidchicken.com>
7117
7118 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7119 family, clear the font width index too.
7120
0dad7c6f
JR
71212009-01-11 Jason Rumney <jasonr@gnu.org>
7122
7123 * keyboard.c (cmd_error_internal): Exit when errors occur before
7124 frame creation and not in daemon mode. (Bug#1836)
7125
7c2363af
CY
71262009-01-10 Chong Yidong <cyd@stupidchicken.com>
7127
7128 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7129 of a display vector, backtrack.
7130 (try_window_reusing_current_matrix): Check glyph type before
7131 referencing charpos member.
7132
97b1b294
EZ
71332009-01-10 Eli Zaretskii <eliz@gnu.org>
7134
7135 Fix Bug #876:
7136
7137 * coding.c (inhibit_null_byte_detection): New variable.
7138 (detect_coding, detect_coding_system): Don't pay attention to null
7139 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7140 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7141 <inhibit-iso-escape-detection>: Doc fix.
7142
4624b6e3
JR
71432009-01-09 Jason Rumney <jasonr@gnu.org>
7144
7145 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7146 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7147 Only report Unicode Plane 2 fonts as unicode-sip.
7148
323b840c
CY
71492009-01-09 Chong Yidong <cyd@stupidchicken.com>
7150
51d861de
SM
7151 * xfaces.c (Fx_font_family_list): Delete function.
7152 Move compatibility version to faces.el.
323b840c 7153
51d861de 7154 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7155
eba7400d
MR
71562009-01-09 Martin Rudalics <rudalics@gmx.at>
7157
7158 * frame.c (x_set_frame_parameters): Remember requested value for
7159 fullscreen before it's reset by the parameter handler.
7160
4b09796d
GM
71612009-01-09 Glenn Morris <rgm@gnu.org>
7162
7163 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7164 (last_command_event): ... and update all users.
4b09796d
GM
7165 (last_input_char): For clarity, rename to...
7166 (last_input_event): ... and update all users.
7167 (last-command-char, last-input-char): Move to subr.el as aliases.
7168 * cmds.c, commands.h: Update for last_command_char rename.
7169
14ccea62
CY
71702009-01-08 Chong Yidong <cyd@stupidchicken.com>
7171
51d861de 7172 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7173
5f004711
JR
71742009-01-08 Jason Rumney <jasonr@gnu.org>
7175
7176 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7177 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7178 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7179 Don't declare.
fff4e459 7180 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7181 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7182
b71f6f73
KH
71832009-01-07 Kenichi Handa <handa@m17n.org>
7184
50b06221 7185 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7186 remember the coding system used for decoding in
50b06221
KH
7187 coding_system (Bug#1039).
7188
b71f6f73 7189 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7190 breaking the loop. (Bug#870)
b71f6f73
KH
7191 (decode_coding_utf_16, decode_coding_emacs_mule)
7192 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7193 (decode_coding_charset): Likewise.
7194
56f668f7
MR
71952009-01-05 Martin Rudalics <rudalics@gmx.at>
7196
7197 * frame.c (x_set_frame_parameters): Make sure height (width) get
7198 applied when fullwidth (fullheight) is set. (Bug#1522)
7199
5da9424d
JB
72002009-01-04 Juanma Barranquero <lekktu@gmail.com>
7201
7202 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7203 (utc_base): Declare as ULONGLONG, not long double.
7204 (convert_time_raw): Delete.
7205 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7206 (initialize_utc_base): New function.
7207 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7208 (convert_from_time_t): Use initialize_utc_base; compute result with
7209 64-bit arithmetic.
7210 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7211
c4605e09
EZ
72122009-01-03 Eli Zaretskii <eliz@gnu.org>
7213
9acef61c 7214 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7215 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7216 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7217 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7218 [!subprocesses]: Define.
7219 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7220 (Flist_system_processes, Fsystem_process_attributes)
7221 [!subprocesses]: Call list_system_processes and
7222 system_process_attributes instead of returning Qnil.
7223
9acef61c
JB
7224 * dosfns.c (system_process_attributes, list_system_processes):
7225 New functions.
c4605e09
EZ
7226
7227 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7228
7229 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7230 Don't use the default (no-op) implementation.
7231
8b7d0a16
JR
72322009-01-03 Jason Rumney <jasonr@gnu.org>
7233
a6d46bc1
JR
7234 * keyboard.c (parse_modifiers_uncached): Wheel events are
7235 clicks (bug#687).
7236
8b7d0a16
JR
7237 * w32term.c (x_query_colors, x_query_color): New functions.
7238
7239 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7240 (svg_load_image): Cast returned pointers from dynamically loaded
7241 functions. Eliminate W32 specific code.
7242
bfe11752
DN
72432009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7244
89e2438a
DN
7245 * nsfns.m (x_set_foreground_color, x_set_background_color)
7246 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7247 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7248 x_ prefix instead of ns_. Update references.
7249 (syms_of_nsfns): Add a FIXME comment.
7250
7251 * nsterm.m (x_set_cursor_type): New prototype.
7252 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7253
bfe11752
DN
7254 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7255 for Solaris instead of incorrectly providing Qutime and Qcutime.
7256
031da700
EZ
72572009-01-02 Eli Zaretskii <eliz@gnu.org>
7258
7259 * w32.c (process_times): Compute sum of utime and stime.
7260 (system_process_attributes): Add Qtime to the alist.
7261
7262 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7263 and add them to the alist.
7264
7265 * process.c (top level) <Qtime, Qctime>: New variables.
7266 (syms_of_process): staticpro them.
7267 (Fsystem_process_attributes): Add their documentation to the doc
7268 string.
7269
7270 * process.h: Declare Qtime and Qctime.
7271
df23bf08
JR
72722009-01-02 Jason Rumney <jasonr@gnu.org>
7273
9acef61c 7274 * image.c (Qgobject): New symbol.
df23bf08
JR
7275 (syms_of_image): Initialize it.
7276 (init_svg_functions): Load some functions from gobject library.
7277
5bbdf7aa
DN
72782009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7279
7280 * frame.c (make_terminal_frame): Remove redundant code and useless
7281 block.
7282
63136da6
AS
72832009-01-01 Andreas Schwab <schwab@suse.de>
7284
7285 * process.c (conv_sockaddr_to_lisp): Add workaround for
7286 getsockname bug on BSD.
7287
9ef69046
CY
72882009-01-01 Chong Yidong <cyd@stupidchicken.com>
7289
d6fafbe0
CY
7290 * xfns.c (x_create_tip_frame): Set border width of the X window.
7291
51d861de 7292 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7293
f9c34147
JR
72942009-01-01 Jason Rumney <jasonr@gnu.org>
7295
9acef61c 7296 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7297 Don't block input, as per earlier xterm.c changes.
7298
f5497e45
AR
72992008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7300
7301 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7302 (ns_appkit_version_int): New function.
7303 (x-server-version): Use ns_appkit_version_int and follow 21+
7304 convention of returning 3 integers.
7305
c19cab20
KH
73062008-12-30 Kenichi Handa <handa@m17n.org>
7307
7308 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7309 (CHAR_SURROGATE_PAIR_P): New macro.
7310
7311 * font.h (struct font_driver): New member get_variation_glyphs.
7312
9acef61c 7313 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7314 (Ffont_variation_glyphs): New function.
7315 (syms_of_font): Defsubr it.
7316
7317 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7318 ftfont_variation_glyphs.
7319 (setup_otf_gstring): New function.
7320 (ftfont_drive_otf): Use it.
7321 (ftfont_shape_by_flt): Handle variation selector.
7322 (ftfont_variation_glyphs): New function.
7323
28cd591f
MR
73242008-12-30 Martin Rudalics <rudalics@gmx.at>
7325
7326 * frame.c (Vemacs_iconified): Remove.
7327
7f714baf
JR
73282008-12-30 Jason Rumney <jasonr@gnu.org>
7329
7330 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7331 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7332
9d2d22ab
CY
73332008-12-30 Chong Yidong <cyd@stupidchicken.com>
7334
7335 * indent.c (Fvertical_motion): Don't advance iterator if we have
7336 reseated to the desired position.
7337
7338 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7339 checking for pos match.
7340
545312c2
KH
73412008-12-30 Kenichi Handa <handa@m17n.org>
7342
1ede3eb6
KH
7343 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7344 just get the low 8-bit of the code.
7345
545312c2
KH
7346 * font.c (font_intern_prop): Validate str as multibyte.
7347
bd7bbf29
DN
73482008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7349
31e0750e
DN
7350 * dispextern.h (struct face): Move lface and hash from the middle
7351 of bitfields.
7352
bd7bbf29
DN
7353 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7354
b5672e7c
DN
73552008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7356
7357 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7358 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7359 instead of intervals.h.
7360
d704470f
AS
73612008-12-26 Andreas Schwab <schwab@suse.de>
7362
7363 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7364 cons.
7365
54b33868
MR
73662008-12-26 Martin Rudalics <rudalics@gmx.at>
7367
7368 * textprop.c (Qminibuffer_prompt): New variable.
7369 (syms_of_textprop): Initialize it.
7370 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7371 in minibuffer-prompt face. (Bug#1662)
7372
40b615d6
JR
73732008-12-25 Jason Rumney <jasonr@gnu.org>
7374
7375 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7376
baae5c2d
JR
73772008-12-24 Jason Rumney <jasonr@gnu.org>
7378
7379 * ralloc.c (r_alloc_reset_variable): New function.
7380
7381 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7382 record of what points where. (Bug#716)
baae5c2d 7383
a9051c88
DN
73842008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7385
7386 * minibuf.c (read_minibuf): Follow the non-interactive case when
7387 running as a daemon, before detaching.
7388
8b146312
AS
73892008-12-22 Andreas Schwab <schwab@suse.de>
7390
7391 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7392 * gtkutil.c (free_widget_value): Use xfree instead of free.
7393
56f2de10
MR
73942008-12-22 Martin Rudalics <rudalics@gmx.at>
7395
7396 * frame.c (delete_frame): New function derived from
7397 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7398 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7399 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7400 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7401 * frame.h: Extern delete_frame.
7402 * window.c (window_loop):
7403 * terminal.c (delete_terminal):
7404 * xterm.c (x_connection_closed):
7405 * xfns.c (Fx_hide_tip):
9acef61c 7406 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7407
1fc200d6
JR
74082008-12-21 Jason Rumney <jasonr@gnu.org>
7409
7410 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7411 when character maps to .notdef character.
7412
5e252df2
SM
74132008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7414
7415 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7416
99b72cc4
JR
74172008-12-20 Jason Rumney <jasonr@gnu.org>
7418
7419 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7420 a graphical frame on Windows. (Bug#1325)
99b72cc4 7421
acc49a52
JD
74222008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7423
7424 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7425
6ea15123
CY
74262008-12-20 Chong Yidong <cyd@stupidchicken.com>
7427
7428 * minibuf.c (Fread_buffer): Doc fix.
7429
b2dab6c8
JR
74302008-12-20 Jason Rumney <jasonr@gnu.org>
7431
54ea0c87 7432 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7433 server name in UNC paths. (Bug#719)
54ea0c87 7434
b2dab6c8 7435 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7436 charbuf. (Bug#1035)
b2dab6c8 7437
6d1921be
DN
74382008-12-19 Daniel Engeler <engeler@gmail.com>
7439
7440 * sysdep.c (serial_configure): Fix typo.
7441
53934c98
DN
74422008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7443
7444 * sysdep.c: Include alloca.h.
f4f634e8
DN
7445 (system_process_attributes): Add implementation for Solaris.
7446
7447 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7448
06e111a6
DN
74492008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7450
7451 Reorganize implementation of Flist_system_processes and
7452 Fsystem_process_attributes. No functional changes.
7453 * process.c: Don't #include pwd.h, grp.h and limits.h.
7454 (Flist_system_processes): Just call list_system_processes.
7455 (Fsystem_process_attributes): Just call system_process_attributes.
7456 (procfs_list_system_processes, time_from_jiffies)
7457 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7458 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7459
7460 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7461 (list_system_processes): Rename from
7462 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7463 Provide a do nothing implementation.
7464 (system_process_attributes): Rename from
7465 procfs_list_system_processes.
7466 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7467 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7468
7469 * w32.c (list_system_processes): Rename from
7470 w32_list_system_processes.
7471 (system_process_attributes): Rename from
7472 w32_system_process_attributes.
7473
7474 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7475
7476 * process.h (w32_list_system_processes)
7477 (w32_system_process_attributes): Remove.
362654a6
JB
7478 (list_system_processes, system_process_attributes):
7479 New prototypes.
06e111a6 7480
6a705b23
KH
74812008-12-19 Kenichi Handa <handa@m17n.org>
7482
7483 * xfont.c (xfont_decode_coding_xlfd): New function.
7484 (xfont_encode_coding_xlfd): New function.
7485 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7486 (xfont_list): Decode and encode XLFD by iso-8859-1.
7487 (xfont_match): Likewise.
7488 (xfont_list_family): Likewise.
7489 (xfont_open): Likewise.
7490
d66c0241 7491 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7492 names are utf-8.
7493
d66c0241 7494 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7495 names are utf-8.
7496
5a130941
JD
74972008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7498
7499 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7500 changed.
bfd20325
JD
7501 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7502 clicked on a detached tool bar button.
5a130941 7503
fd95644b
DN
75042008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7505
7506 * emacs.c (main): Print and error and exit when no data is read
7507 from the pipe.
7508
e6eee6ae
JR
75092008-12-17 Jason Rumney <jasonr@gnu.org>
7510
7511 * w32font.c (w32font_has_char): Always return -1.
7512
a35dd56b
KH
75132008-12-16 Kenichi Handa <handa@m17n.org>
7514
7515 * font.c (font_open_entity): Fix previous change.
7516
0e3635c2
DN
75172008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7518
7519 * process.c: Include <limits.h>.
7520
d4835507 75212008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7522
7523 * font.c (font_update_drivers): Fix mistake in reconstructing the
7524 driver list.
7525
75262008-12-16 Chong Yidong <cyd@stupidchicken.com>
7527
7528 * font.c (font_clear_cache): Fix format of font cache data.
7529
e2cbc401
CY
75302008-12-15 Chong Yidong <cyd@stupidchicken.com>
7531
7532 * xftfont.c (xftfont_open): Free Xft font pattern if
7533 XftFontOpenPattern fails.
7534
7535 * xterm.c (x_free_frame_resources): Remove extraneous call to
7536 free_frame_faces.
7537
b131d535
CY
75382008-12-13 Chong Yidong <cyd@stupidchicken.com>
7539
7540 * xterm.c (x_delete_display): Move xim_close_dpy call to
7541 x_delete_terminal.
7542 (x_delete_terminal): Call xim_close_dpy.
7543
e6df5336
JR
75442008-12-13 Jason Rumney <jasonr@gnu.org>
7545
7546 * w32font.c (intern_font_name): New function.
7547 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7548 (w32font_open_internal, Fx_select_font): Decode font name.
7549 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7550
7551 * w32font.h (intern_font_name): Declare new function.
7552
7553 * w32uniscribe.c (add_opentype_font_name_to_list):
7554 Use intern_font_name.
7555
20d68145
CY
75562008-12-13 Chong Yidong <cyd@stupidchicken.com>
7557
9f2554de
CY
7558 * frame.c (Fdelete_frame): Call free_font_driver_list.
7559
3d9bec9a
CY
7560 * font.c (free_font_driver_list): Implement missing function.
7561
20d68145
CY
7562 * w32term.c (w32_term_init): Don't initialize the image cache
7563 here; it will be done in init_frame_faces.
7564
7565 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7566 (struct x_display_info): Remove unused member null_pixel. New
7567 member xim_callback_data.
7568
7569 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7570 (xim_initialize): Save pointer to callback function data.
7571 (xim_close_dpy): Free callback function data. Call XCloseIM,
7572 reverting 2008-11-04 change by David Smith.
7573 (x_term_init): Don't initialize the image cache here; it will be
7574 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7575 (x_delete_display): Free x_dnd_atoms member.
7576
96f9306b
KH
75772008-12-13 Kenichi Handa <handa@m17n.org>
7578
6dec9044
JB
7579 * font.c (font_rescale_ratio): Moved from xfaces.c.
7580 Argument type changed. Handle a font-spec too.
96f9306b 7581 (font_score): Check Vface_font_rescale_alist.
6dec9044 7582 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7583
7584 * xfaces.c (font_rescale_ratio): Moved to font.c.
7585
8d5b4964
CY
75862008-12-13 Chong Yidong <cyd@stupidchicken.com>
7587
7588 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7589
e6df5336
JR
75902008-12-12 Jason Rumney <jasonr@gnu.org>
7591
7592 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7593 Vwindow_system_version to the real w32 major version.
7594
97c6058a
DN
75952008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7596
7597 * term.c (init_tty): Move setting the terminal name before the
7598 potential user: maybe_fatal.
7599
ec4e88d7
CY
76002008-12-11 Chong Yidong <cyd@stupidchicken.com>
7601
d4835507
JB
7602 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7603 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7604
b4233ec9
JR
76052008-12-11 Jason Rumney <jasonr@gnu.org>
7606
8ec71e23 7607 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7608 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7609
b4233ec9 7610 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7611 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7612
011a0143
JB
76132008-12-11 Juanma Barranquero <lekktu@gmail.com>
7614
7615 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7616
3c309f34
JB
76172008-12-11 Juanma Barranquero <lekktu@gmail.com>
7618
7619 * process.c (Fsystem_process_attributes, syms_of_process):
7620 Fix typo in name of Ssystem_process_attributes.
7621 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7622
fedc6ab5
JB
76232008-12-11 Juanma Barranquero <lekktu@gmail.com>
7624
7625 * syntax.c (Fmodify_syntax_entry): Doc fix.
7626
ba3de0e8
JB
76272008-12-10 Juanma Barranquero <lekktu@gmail.com>
7628
7629 * font.c (Ffont_spec): Move usage to end of docstring.
7630
174f1c74
JR
76312008-12-10 Jason Rumney <jasonr@gnu.org>
7632
7633 * w32font.c (Qcham): New symbol.
7634 (font_supported_scripts): Add cham, and comments for other new
7635 scripts in bitfield from OpenType spec.
9d32f818
JR
7636 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7637 contain characters beyond the bmp.
174f1c74 7638
7b649478
KH
76392008-12-10 Kenichi Handa <handa@m17n.org>
7640
7641 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7642 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7643 Qunicode_sip.
7644
2133e2d1
JB
76452008-12-10 Juanma Barranquero <lekktu@gmail.com>
7646
7647 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7648 (Fcoding_system_put): Use QCdefault_char.
7649 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7650
9af886ee
CY
76512008-12-09 Chong Yidong <cyd@stupidchicken.com>
7652
74d819eb
CY
7653 * xftfont.c (syms_of_xftfont): Fix typo.
7654
4ccfa1c0 7655 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7656
7c19d3ae
DN
76572008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7658
7659 * emacs.c (main): Close daemon_pipe on exec.
7660
567826bb
CY
76612008-12-08 Chong Yidong <cyd@stupidchicken.com>
7662
7663 * termchar.h (struct tty): New members termcap_term_buffer and
7664 termcap_strings_buffer.
7665
7666 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7667 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7668 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7669 All callers changed.
7670 (init_tty): Store termcap data and string buffers in new struct
7671 tty members termcap_term_buffer and termcap_strings_buffer.
7672 (delete_tty): Free them.
4ccfa1c0 7673 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7674
aa96c42b
SZ
76752008-12-07 Seiji Zenitani <zenitani@mac.com>
7676
7677 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7678 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7679
b7e1d896
CY
76802008-12-06 Chong Yidong <cyd@stupidchicken.com>
7681
7682 * coding.c (make_conversion_work_buffer): Disable buffer
7683 modification hooks in the work buffer.
7684
b5ec91a5
EZ
76852008-12-05 Eli Zaretskii <eliz@gnu.org>
7686
7687 * process.c (procfs_system_process_attributes): If `nread' has a
7688 negative value, assign zero to it.
7689
a5d2a52b
CY
76902008-12-05 Chong Yidong <cyd@stupidchicken.com>
7691
68c5540b 7692 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7693
7bf1bb21
KH
76942008-12-05 Kenichi Handa <handa@m17n.org>
7695
7696 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7697 second character is a combining character.
7698
2fdc7d00
EZ
76992008-12-05 Eli Zaretskii <eliz@gnu.org>
7700
7701 * process.c (procfs_system_process_attributes): Don't use cmd,
7702 cmdsize, and q without initializing them first.
7703
bf6bfba8
JR
77042008-12-04 Jason Rumney <jasonr@gnu.org>
7705
7706 * w32font.c (w32font_draw): Initialize orig_clip before getting
7707 it, and delete it when finished.
7708
a3b1a468
DN
77092008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7710
7711 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7712 case when running as a daemon before detaching.
7713
8b8be8eb
JB
77142008-12-03 Juanma Barranquero <lekktu@gmail.com>
7715
805f2638 7716 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7717
b1bde622
KH
77182008-12-03 Kenichi Handa <handa@m17n.org>
7719
e500c47d
KH
7720 * font.c (font_at): Set `multibyte' at first.
7721
ca516334
KH
7722 * coding.c (decode_coding_charset): Check type of an element of
7723 vector VALIDS.
7bf1bb21 7724 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7725
4ccfa1c0 7726 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7727 (font_for_char): Likewise.
7728
1e5ecd37
CY
77292008-12-03 Chong Yidong <cyd@stupidchicken.com>
7730
d5b01609 7731 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7732 (font_update_lface): Handle fonts with corrupted size specs,
7733 i.e. non-int and non-float.
d5b01609 7734
11e3a6e4 7735 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7736 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7737 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7738
ab06788b
CY
7739 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7740
1e5ecd37 7741 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7742 underline_minimum_offset for underline position.
1e5ecd37 7743
63c125ab
DN
77442008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7745
7746 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7747
7748 * character.c (c_string_width): Specify the type for LEN.
7749
3a8406e1
KH
77502008-12-03 Kenichi Handa <handa@m17n.org>
7751
4ccfa1c0 7752 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7753 (decode_coding_utf_8): Likewise.
4ccfa1c0 7754 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7755 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7756
651df7d9
CY
77572008-12-02 Chong Yidong <cyd@stupidchicken.com>
7758
7759 * keyboard.c (make_lispy_position): Only use PT if the selected
7760 window is current.
7761
1f625c6c
AS
77622008-12-02 Andreas Schwab <schwab@suse.de>
7763
f7741ce9
AS
7764 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7765
1f625c6c
AS
7766 * doprnt.c (doprnt1): Fix size of charbuf.
7767
92bc2678
CY
77682008-12-02 Chong Yidong <cyd@stupidchicken.com>
7769
7770 * keyboard.c (timer_check): Revert last change.
7771
93b9e8cc
JB
77722008-12-02 Juanma Barranquero <lekktu@gmail.com>
7773
7774 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7775
fd7a37d5
JB
77762008-12-01 Juanma Barranquero <lekktu@gmail.com>
7777
7778 * makefile.w32-in: Update dependencies.
7779 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7780
c115043b
AS
77812008-12-01 Andreas Schwab <schwab@suse.de>
7782
7783 * font.c (register_font_driver): Use xmalloc.
7784 (font_put_frame_data): Likewise.
7785
f5668d2a
CY
77862008-12-01 Chong Yidong <cyd@stupidchicken.com>
7787
860d96be
CY
7788 * xfaces.c (realize_x_face): Make abort condition clearer.
7789
f5668d2a
CY
7790 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7791
379c17e7
CY
77922008-11-30 Chong Yidong <cyd@stupidchicken.com>
7793
7794 * keyboard.c (timer_check): After a timer runs, ensure that the
7795 selected window's buffer is current.
7796
35f36d65
JB
77972008-11-30 Juanma Barranquero <lekktu@gmail.com>
7798
f952c61c
JB
7799 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7800 It was accidentally restored by the Unicode merge.
7801
35f36d65
JB
7802 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7803
b23077df
JB
78042008-11-29 Juanma Barranquero <lekktu@gmail.com>
7805
7806 * w32proc.c: Include "coding.h".
7807 (Fw32_short_file_name): Encode filename passed to Windows API.
7808 (Fw32_long_file_name): Encode filename passed to Windows API and
7809 decode back the result. (Bug#1433)
7810
b8ebe9dd
KH
78112008-11-29 Kenichi Handa <handa@m17n.org>
7812
8cc53f96
KH
7813 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7814 not before accessing it.
7815
b8ebe9dd
KH
7816 * charset.c (Fdefine_charset_internal): After calculating
7817 min_char, max_char, and fastmap, copy the charset structure again.
7818 (encode_char): Fix the previous change.
7819
59bc82c0
SZ
78202008-11-28 Seiji Zenitani <zenitani@mac.com>
7821
7822 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7823
7824 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7825
7826 * nsterm.m (x_set_frame_alpha): New function.
7827
32247e3d
EZ
78282008-11-27 Eli Zaretskii <eliz@gnu.org>
7829
7830 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7831
b003e5ff
JB
78322008-11-27 Juanma Barranquero <lekktu@gmail.com>
7833
7834 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7835 pointer to check_face_name.
7836
708550f5
KH
78372008-11-27 Kenichi Handa <handa@m17n.org>
7838
7839 * category.h (SET_CATEGORY_SET): Call set_category_set.
7840 (set_category_set): Extern it.
7841
7842 * category.c (hash_get_category_set): New function.
7843 (Fmodify_category_entry): Adjusted for the change of
7844 char_table_ref_and_range. Call hash_get_category_set to get a
7845 category set to store in the table.
7846
7847 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7848 Funify_charset.
7849
2ae37cf0 7850 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7851 (DECODE_CHAR): Check if the decoder vector is ready.
7852 (ENCODE_CHAR): Check if the encoder char-table is ready.
7853 (maybe_unify_char): Extern it.
7854
7855 * charset.c (Vchar_unified_charset_table): Delete it.
7856 (inhibit_load_charset_map): New variable.
7857 (temp_charset_work): New variable.
7858 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7859 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7860 New macros.
7861 (load_charset_map): Meaning of control_flag changed. If
7862 inhibit_load_charset_map is nonzero, setup a table in
7863 temp_charset_work.
7864 (load_charset): New argument control_flag.
7865 (map_charset_for_dump): New function.
7866 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7867 map_charset_for_dump.
7868 (Fdefine_charset_internal): If the charset method is MAP, load
7869 mapping tables by calling load_charset.
7870 (Funify_charset): Don't load a mapping table but directly set
7871 Vchar_unify_table.
7872 (maybe_unify_char): New function.
7873 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7874 Handle the case of inhibit_load_charset_map being nonzero.
7875 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7876 Handle the case of inhibit_load_charset_map being nonzero.
7877 (Fclear_charset_maps): Just free temp_charset_work.
7878 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7879 variable.
7880
7881 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7882 change of char_table_ref_and_range.
7883 (char_table_ref_and_range): Change the meaning of argument FROM
7884 and TO. Now the caller must provide initial values for *FROM
7885 and *TO.
7886
7887 * fontset.c (fontset_add): Adjusted for the change of
7888 char_table_ref_and_range.
7889 (fontset_get_font_group): Likewise.
7890 (Ffontset_info): Likewise.
7891
7892 * keymap.c (describe_vector): Adjusted for the change of
7893 char_table_ref_and_range. For char-table, put boundary between
7894 non-ASCII and 8-bit characters.
7895
7896 * print.c (print_object): For bool-vector, delete unnecessary
7897 check of ASCII_BYTE_P.
7898
9196133b
JR
78992008-11-26 Jason Rumney <jasonr@gnu.org>
7900
7901 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7902 leading in font height. (Bug#879)
9196133b 7903
9f688acf
GM
79042008-11-26 Glenn Morris <rgm@gnu.org>
7905
7906 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7907 redefinition with ifdef. (Bug#1383)
7908
90d19aff
AR
79092008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7910
7911 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7912
4ccfa1c0 79132008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7914
7915 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7916 New EmacsView methods.
7917 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7918 Fixes bug #1048,1357,1414.
7919
79202008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7921
7922 Fix bug #1362.
7923 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7924 is not an indexed color.
7925 * nsterm.m (free_indexed_color): Add argument checking.
7926 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7927
e7d5ecb3
CY
79282008-11-24 Chong Yidong <cyd@stupidchicken.com>
7929
7930 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7931 Document confirm-after-completion value for
7932 minibuffer-completion-confirm.
7933
c285743c
JR
79342008-11-24 Jason Rumney <jasonr@gnu.org>
7935
7936 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7937 warning.
7938
b0857706
JR
79392008-11-23 Jason Rumney <jasonr@gnu.org>
7940
7941 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7942 restored before returning.
7943
7944 * w32font.c (check_face_name): New function.
7945 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7946 fonts. (Bug#642)
b0857706 7947
ee50ff07
MR
79482008-11-22 Martin Rudalics <rudalics@gmx.at>
7949
7950 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7951 confirm-nonexistent-file-or-buffer in doc-string.
7952
b8ff72fa
SM
79532008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7954
7955 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7956 Fix copy/paste typo. Add checks.
7957
cee53ed4
KH
79582008-11-21 Kenichi Handa <handa@m17n.org>
7959
7960 * coding.c (detect_coding_iso_2022): Reject invalid composition
7961 sequence.
7962 (DECODE_COMPOSITION_START): If the current source is the last
7963 block, and the current composition doesn't end, regard this
7964 sequence as invalid.
7965 (decode_coding_iso_2022): Handle invalid composition sequence.
7966
f6ef1e65
MR
79672008-11-20 Martin Rudalics <rudalics@gmx.at>
7968
7969 * window.c (coordinates_in_window): Don't return
7970 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7971 line when the window is not the rightmost one. (Bug#1372)
7972
e08b1705
MR
79732008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7974
7975 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7976
ad98e89f
EZ
79772008-11-15 Eli Zaretskii <eliz@gnu.org>
7978
7979 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7980 and bright_bg if noninteractive is non-zero.
7981
fb098a4b
CY
79822008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7983
7984 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7985 x_draw_glyph_string_background.
7986
7987 * w32term.c (x_draw_glyph_string): Likewise.
7988
ce952b6e
CY
79892008-11-15 Chong Yidong <cyd@stupidchicken.com>
7990
7991 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7992 the next glyph string once past the overhang width.
7993
7994 * nsterm.m (ns_draw_glyph_string): Likewise.
7995
7996 * w32term.c (x_draw_glyph_string): Likewise.
7997
26ea7079
CY
79982008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7999
8000 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8001 double file close.
8002
1c33c906
MR
80032008-11-14 Martin Rudalics <rudalics@gmx.at>
8004
8005 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8006 dedicated status of window before attempting to display another
8007 buffer in it.
8008
8fc29035
JB
80092008-11-14 Juanma Barranquero <lekktu@gmail.com>
8010
8011 * msdos.c (Fmsdos_long_file_names):
8012 (syms_of_msdos) <dos-unsupported-char-glyph>:
8013 * dosfns.c (Fint86): Fix typos in docstrings.
8014
55fb4286
EZ
80152008-11-14 Eli Zaretskii <eliz@gnu.org>
8016
8017 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8018
3fda0315
KY
80192008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8020
8021 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8022
7e849c17
CY
80232008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8024
8025 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8026
8027 * frame.h: Negative alpha means "don't touch".
8028
8029 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8030
8031 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8032
b9fd67bd
DN
80332008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8034
8035 * hftctl.c:
8036 * chpdef.h:
8037 * acldef.h: Remove files used only for systems no longer supported.
8038
8039 * Makefile.in: Fix .o alphabetical ordering.
8040 (hftctl.o): Remove dependency, file removed.
8041 (keymap.o, print.o): Depend on charset.h.
8042
d5998e03
KH
80432008-11-10 Kenichi Handa <handa@m17n.org>
8044
2ae37cf0 8045 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8046
be70e183
CY
80472008-11-08 Chong Yidong <cyd@stupidchicken.com>
8048
8049 * dired.c (file_name_completion): If completion_ignore_case is
8050 enabled, ignore case when checking completion-regexp-list.
8051
7cf94eac
EZ
80522008-11-08 Eli Zaretskii <eliz@gnu.org>
8053
8054 * vm-limit.c (get_lim_data): Fix last change.
8055
ee107a89
KH
80562008-11-08 Kenichi Handa <handa@m17n.org>
8057
8058 * character.c (Fget_byte): New function.
8059 (syms_of_character): Defsubr Fget_byte.
8060
5fd15622
CY
80612008-11-07 Chong Yidong <cyd@stupidchicken.com>
8062
8063 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8064 cursor position is valid after scrolling.
8065
13d62fad
JB
80662008-11-06 Juanma Barranquero <lekktu@gmail.com>
8067
8068 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8069
a1dd2936
GM
80702008-11-06 Glenn Morris <rgm@gnu.org>
8071
8072 * xterm.c (handle_one_xevent): Don't let popup menus cause
8073 mouse-autoselect-window related window switching. (Bug#1261)
8074
860cd236
CY
80752008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8076
8077 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8078
653a3150
AS
80792008-11-04 Andreas Schwab <schwab@suse.de>
8080
8081 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8082
870f5cac
CY
80832008-11-03 Chong Yidong <cyd@stupidchicken.com>
8084
8085 * xfns.c (Fx_wm_set_size_hint): New function.
8086
1e02f3cb
MR
80872008-11-03 Martin Rudalics <rudalics@gmx.at>
8088
8089 * textprop.c (Fprevious_single_char_property_change): Return 0
8090 when there's no change in a string. (Bug#1301)
8091
e630dfc6
MR
80922008-11-02 Martin Rudalics <rudalics@gmx.at>
8093
8094 * frame.c (do_switch_frame): New argument NORECORD passed to
8095 Fselect_window.
8096 (Fselect_frame): New argument NORECORD passed to
8097 do_switch_frame.
8098 (Fset_frame_selected_window): New argument NORECORD passed to
8099 Fselect_frame.
8100 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8101 in call of do_switch_frame.
8102 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8103 Handle NORECORD argument in call of Fselect_frame.
8104 * lisp.h (do_switch_frame, Fselect_frame)
8105 (Fset_frame_selected_window): Adjust declarations.
8106 * window.c (select_frame_norecord): New function.
8107 (run_window_configuration_change_hook): Use it and call
8108 Fselect_frame with NORECORD set.
8109 (Fselect_window): Pass NORECORD to Fselect_frame.
8110 (Fset_window_configuration): Handle NORECORD argument in call of
8111 do_switch_frame.
8112 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8113 Fset_frame_selected_window.
8114 * keyboard.c (command_loop_1): Handle NORECORD in call of
8115 Fselect_frame (currently ifdefd).
8116
9020b223
GM
81172008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8118
8119 * emacs.c (USAGE2): Untabify.
8120
793ffee8
SM
81212008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8122
8123 * composite.c (fill_gstring_header): Fix copy/paste typo.
8124
ab6d1131
MR
81252008-10-31 Martin Rudalics <rudalics@gmx.at>
8126
8127 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8128 (Fother_window): Rename argument and rewrite doc-string.
8129 (select_window_norecord): Fix return value. (Bug#1276)
8130
601a9cf1
JB
81312008-10-30 Juanma Barranquero <lekktu@gmail.com>
8132
8133 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8134 new frames overriding foreground for tooltips. Based on similar patch
8135 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8136
813b0652
CY
81372008-10-29 Chong Yidong <cyd@stupidchicken.com>
8138
8139 * emacs.c (Fdaemon_initialized): Initialize nfd.
8140
4414f58f
MR
81412008-10-29 Martin Rudalics <rudalics@gmx.at>
8142
8143 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8144 (Fwindow_text_height): Clarify doc-strings.
8145 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8146 doc-string of window-scroll-functions.
8147
ecdcaa09
RS
81482008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8149
8150 * category.c (syms_of_category): Fix typo in docstring.
8151
23fe745a
JB
81522008-10-28 Juanma Barranquero <lekktu@gmail.com>
8153
8154 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8155 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8156 Fix typos in docstrings.
8157
ff808935
DN
81582008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8159
8160 * emacs.c (daemon_pipe): Make non-static.
8161 (IS_DAEMON): Move definition ...
8162 * lisp.h (IS_DAEMON): ... here.
8163 (daemon_pipe): Declare.
8164 (is_daemon): Remove.
8165 * dispnew.c (init_display): Use IS_DAEMON.
8166
fc012771
SM
81672008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8168
8169 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8170 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8171
8172 * emacs.c (is_daemon): Remove.
8173 (main): Don't set is_daemon.
8174 (IS_DAEMON): New macro.
8175 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8176 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8177 parent exits.
8178 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8179
d8bdbe6f
CY
81802008-10-27 Chong Yidong <cyd@stupidchicken.com>
8181
d1a072bf
CY
8182 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8183 over-sized glyph, draw it with the default glyph width.
8184
e2e325aa
CY
8185 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8186 glyph, draw it with the default glyph width.
8187
8188 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8189 glyph, draw it with the default glyph width.
8190
d8bdbe6f
CY
8191 * xdisp.c (try_scrolling): When computing the distance from the
8192 scroll margin to PT, try moving some distance past the window
8193 bottom before giving up.
8194
7bfac547
MR
81952008-10-27 Martin Rudalics <rudalics@gmx.at>
8196
8197 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8198 (Fset_window_buffer): Explain in doc-string that a window can be
8199 "strongly" dedicated to its buffer.
8200
4ff029f6
DN
82012008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8202
8203 * emacs.c (daemon_name): New variable.
8204 (main): Deal with --daemon=SERVER_NAME.
8205 (Fdaemonp): Return a name if one was passed to --daemon.
8206
5790ef40
DN
82072008-10-26 Romain Francoise <romain@orebokech.com>
8208
f9bd0df9 8209 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8210 (main): Create a pipe before forking, make the parent exit only after
8211 the child has closed its end of the pipe. Move closing the
8212 descriptors ...
8213 (Fdaemon_initialized): ... here. New function.
8214
f5385255
SM
82152008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8216
4d632321
SM
8217 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8218 the previous unoptimized table.
8219
f5385255
SM
8220 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8221 the distinction between non-nil and non-t value of `dedicated'.
8222
6c56a0f3
CY
82232008-10-25 Chong Yidong <cyd@stupidchicken.com>
8224
8225 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8226 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8227
fec89261
MR
82282008-10-25 Martin Rudalics <rudalics@gmx.at>
8229
8230 * window.c (Fget_buffer_window, Fdelete_windows_on)
8231 (Freplace_buffer_in_windows): Make buffer argument optional and
8232 rename to buffer_or_name.
8233
34fcddd0
CY
82342008-10-24 Chong Yidong <cyd@stupidchicken.com>
8235
f5385255
SM
8236 * xdisp.c (handle_single_display_spec, handle_display_prop):
8237 Undo 2005-05-16 change.
34fcddd0
CY
8238 (handle_stop): Pop iterator if it's loaded with an empty string.
8239 (get_overlay_strings_1): Don't save iterator if it's loaded with
8240 an empty string (bug#1201).
8241
064766f2
KH
82422008-10-24 Kenichi Handa <handa@m17n.org>
8243
8244 * ftfont.c (ftfont_otf_features): Fix previous change.
8245 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8246 calling ftfont_otf_features.
8247
f9bd0df9 82482008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8249
8250 * font.c (font_match_p): Fix for the case that a vector of
8251 characters is in script-representative-chars.
8252
1dae9197
MA
82532008-10-24 Michael Albinus <michael.albinus@gmx.de>
8254
8255 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8256 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8257 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8258 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8259 macro. (Bug#1186)
1dae9197 8260
f9bd0df9 82612008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8262
8263 * s/sol2-10.h: New file.
8264
878a4584
JB
82652008-10-23 Juanma Barranquero <lekktu@gmail.com>
8266
8267 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8268 poor beast has survived 9+ years and the jump from xterm.c!).
8269
cd265ca6
MR
82702008-10-23 Martin Rudalics <rudalics@gmx.at>
8271
8272 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8273 Reword doc-string.
f5385255 8274 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8275
472a4dc9
JB
82762008-10-23 Juanma Barranquero <lekktu@gmail.com>
8277
8278 * character.c (syms_of_character) <script-representative-chars>:
8279 <unicode-category-table>: Doc fixes.
8280
159bd5a2
NF
82812008-10-23 Noah Friedman <friedman@splode.com>
8282
8283 * coding.c (make_conversion_work_buffer): Check that
8284 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8285 Fget_buffer_create.
8286
49f9c344
KH
82872008-10-23 Kenichi Handa <handa@m17n.org>
8288
8289 * font.c (font_add_log): Check the values of extra properties.
8290
12bb3111
MR
82912008-10-22 Martin Rudalics <rudalics@gmx.at>
8292
8293 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8294 Reword doc-string.
8295 (Fset_window_parameter): Use NILP.
8296 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8297 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8298
bbeb4e99
JB
82992008-10-22 Juanma Barranquero <lekktu@gmail.com>
8300
8301 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8302
83032008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8304
8305 * nsfns.m (ns_appkit_version): New function.
8306 (x-server-version): Use it.
8307 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8308 (x-server-vendor): Don't check_ns().
8309
8310 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8311
a9b555d3
JB
83122008-10-22 Juanma Barranquero <lekktu@gmail.com>
8313
8314 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8315 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8316
4626499f
KH
83172008-10-22 Kenichi Handa <handa@m17n.org>
8318
e3681952
KH
8319 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8320 scripts.
8321
4626499f
KH
8322 * category.c (word_boundary_p): Check scripts instead of charset.
8323 Handle nil value in word-separating-categories and
8324 word-combining-categories.
8325 (syms_of_category): Fix docstrings of word-separating-categories
8326 and word-combining-categories.
8327
1560f91a
EZ
83282008-10-21 Eli Zaretskii <eliz@gnu.org>
8329
8330 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8331 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8332
f4668441
MR
83332008-10-21 Martin Rudalics <rudalics@gmx.at>
8334
8335 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8336 Rename arg "buffer" to "buffer_or_name".
8337 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8338 it optional.
8339 (no_switch_window): Remove since the return value is not used.
a9b555d3 8340 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8341 Consider window as dedicated when Fwindow_dedicated_p returns a
8342 non-nil value.
8343 * lisp.h: Remove prototype for no_switch_window.
8344
fd75ddb2
JD
83452008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8346
8347 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8348 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8349
07295713
KH
83502008-10-21 Kenichi Handa <handa@m17n.org>
8351
8352 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8353 check Vlatin_extra_code_table.
8354
712adc82
EZ
83552008-10-20 Eli Zaretskii <eliz@gnu.org>
8356
8357 * fileio.c (Fset_file_modes): Doc fix.
8358
f549eb0b
MA
83592008-10-19 Michael Albinus <michael.albinus@gmx.de>
8360
8361 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8362 in arrays.
8363
aac0c6e3
MR
83642008-10-19 Martin Rudalics <rudalics@gmx.at>
8365
8366 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8367 Mention kill-buffer in doc-string.
8368 (Fset_window_buffer): Reinsert tem check removed in last commit.
8369 (Fenlarge_window, Fshrink_window): Have argument names and
8370 doc-string follow Elisp manual more closely.
8371
83722008-10-18 Eli Zaretskii <eliz@gnu.org>
8373
8374 * fileio.c (Fset_file_modes): Doc fix.
8375
83762008-10-18 Martin Rudalics <rudalics@gmx.at>
8377
8378 * window.c (Fwindow_width, Fset_window_start)
8379 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8380 (Fdelete_windows_on, Freplace_buffer_in_windows):
8381 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8382 (Fwindow_dedicated_p): Make window argument optional.
8383 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8384 (Fset_window_buffer): Respect any non-nil dedicated value for
8385 window. Rename "buffer" argument to "buffer_or_name".
8386
83872008-10-18 Ulrich Mueller <ulm@gentoo.org>
8388
8389 * m/sh3.h: New file, machine description for SuperH.
8390
83912008-10-17 Martin Rudalics <rudalics@gmx.at>
8392
8393 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8394
83952008-10-17 Kenichi Handa <handa@m17n.org>
8396
8397 * ftfont.c (ftfont_otf_features): Fix indexing
8398 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8399
84002008-10-16 Magnus Henoch <mange@freemail.hu>
8401
8402 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8403 (Fdbus_call_method_asynchronously): Ditto.
8404 This change makes C-h f display the argument list.
8405
84062008-10-16 Chong Yidong <cyd@stupidchicken.com>
8407
8408 * fileio.c (Fexpand_file_name): Doc fix.
8409
8410 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8411 of :foreground and :background equivalent to unspecified (20.x
8412 compatibility).
8413
84142008-10-15 Eli Zaretskii <eliz@gnu.org>
8415
8416 * buffer.c (syms_of_buffer): Doc fix.
8417
84182008-10-14 Kenichi Handa <handa@m17n.org>
8419
8420 * font.c (font_clear_prop): When clearing font width, clear the
8421 average width field too.
8422
84232008-10-12 Andreas Schwab <schwab@suse.de>
8424
8425 * ftfont.c (ftfont_shape_by_flt): Make static.
8426 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8427
8428 * font.c: Don't include <m17n-flt.h>.
8429
84302008-10-10 Eli Zaretskii <eliz@gnu.org>
8431
8432 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8433
84342008-10-09 Eli Zaretskii <eliz@gnu.org>
8435
8436 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8437 away code.
8438
84392008-10-09 Chong Yidong <cyd@stupidchicken.com>
8440
8441 * dispnew.c (update_text_area): Avoid looping due to large glyph
8442 overhangs (bug#1070).
8443
84442008-10-09 Kenichi Handa <handa@m17n.org>
8445
8446 * fontset.c (face_for_char): If face->fontset is negative, just
8447 return ascii_face.
8448
f5385255
SM
8449 * font.c (font_delete_unmatched): Fix previous change.
8450 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8451
84522008-10-09 Martin Rudalics <rudalics@gmx.at>
8453
8454 * frame.c (Fraise_frame): On text-only terminals select frame in
8455 order to make it visible. (Bug#1061)
8456
84572008-10-08 Chong Yidong <cyd@stupidchicken.com>
8458
8459 * fontset.c (fontset_find_font): Check frame validity.
8460
84612008-10-07 Chong Yidong <cyd@stupidchicken.com>
8462
a9b555d3 8463 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8464 (xg_display_close): Allow Emacs to close all displays (bug#985).
8465
84662008-10-06 Andreas Schwab <schwab@suse.de>
8467
f5385255 8468 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8469
84702008-10-06 Chong Yidong <cyd@stupidchicken.com>
8471
f5385255 8472 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8473
a9b555d3 8474 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8475
8476 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8477 during initialization.
8478
84792008-10-04 Eli Zaretskii <eliz@gnu.org>
8480
8481 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8482 whole thing on MSDOS frames as well as on a TTY.
8483
8484 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8485 well as for TTY.
8486 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8487 well as on a TTY.
8488
8489 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8490 as well as for TTY.
8491
8492 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8493
8494 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8495 MSDOS frames as well.
8496
84972008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8498
8499 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8500 correct arguments.
b71ac3dd 8501 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8502
85032008-10-03 Glenn Morris <rgm@gnu.org>
8504
8505 * emacs.c (USAGE1): Add --daemon.
8506
85072008-10-02 Eli Zaretskii <eliz@gnu.org>
8508
8509 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8510 100, so it's in percents as advertised.
8511
85122008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8513
8514 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8515 (ns_output.current_cursor, ns_output.desired_cursor)
8516 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8517 (FRAME_NEW_CURSOR_COLOR): Remove.
8518
8519 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8520 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8521 enumeration (HOLLOW_BOX_CURSOR, etc.).
8522
8523 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8524 (draw_window_cursor): Simplify code.
f5385255
SM
8525 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8526 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8527 updates manually.
a9b555d3
JB
8528 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8529 Use core Emacs cursor types.
aac0c6e3 8530
b8ff72fa 8531 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8532
85332008-10-02 Martin Rudalics <rudalics@gmx.at>
8534
8535 * process.c (Faccept_process_output): Fix doc-string.
8536
85372008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8538
8539 * gmalloc.c (__sbrk): Also define for uClibc.
8540
8541 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8542 for uClibc.
8543
85442008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8545
8546 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8547 styles.
8548 (nsfont_open): Reenable the cache.
8549
85502008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8551
8552 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8553 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8554
85552008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8556
8557 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8558 a suspended terminal.
8559
85602008-09-30 Michael Albinus <michael.albinus@gmx.de>
8561
8562 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8563
85642008-09-30 Eli Zaretskii <eliz@gnu.org>
8565
8566 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8567
85682008-09-30 Chong Yidong <cyd@stupidchicken.com>
8569
8570 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8571 in a continued line coincides with a line beginning.
8572
85732008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8574
8575 * nsfont.m (nsfont_trait_distance): Fix bug.
8576 (nsfont_list): Return a list rather than a vector (syncs with Handa
8577 changes of 2008-05-14).
8578 (nsfont_open): Improve logging.
8579
85802008-09-29 Andreas Schwab <schwab@suse.de>
8581
8582 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8583
85842008-09-28 Martin Rudalics <rudalics@gmx.at>
8585
8586 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8587 name as char-resolve-modifiers.
8588 Reported by: Markus Triska <markus.triska@gmx.at>
8589
85902008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8591
8592 * dispnew.c (init_display): Return earlier when running as a daemon.
8593
85942008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8595
8596 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8597
85982008-09-27 Eli Zaretskii <eliz@gnu.org>
8599
8600 * composite.c (Fcomposition_get_gstring)
8601 (Fcompose_region_internal, Fcompose_string_internal)
8602 (Ffind_composition_internal): Doc fix.
8603 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8604 (syms_of_composite) <auto-composition-function>: Doc fix.
8605 (syms_of_composite) <composition-function-table>: Doc fix.
8606
86072008-09-25 Chong Yidong <cyd@stupidchicken.com>
8608
8609 * search.c (wordify): New argument for lax word-ends.
8610 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8611
86122008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8613
8614 * lisp.h (is_daemon): Declare.
8615 * dispnew.c (init_display): Do not try to initialize the terminal
8616 when running as a daemon.
8617
86182008-09-22 Chong Yidong <cyd@stupidchicken.com>
8619
8620 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8621 x_display_pixel_height.
8622
86232008-09-22 Martin Rudalics <rudalics@gmx.at>
8624
8625 * undo.c (record_point): Don't call Fundo_boundary for first
8626 change. (Bug#731)
8627
86282008-09-22 Juanma Barranquero <lekktu@gmail.com>
8629
8630 * emacs.c (Fdaemonp): Doc fix.
8631
86322008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8633
8634 * emacs.c (main): Place #ifdef in the proper place.
8635
86362008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8637
8638 * emacs.c (standard_args): Add --daemon.
8639 (main): Disconnect from the terminal when --daemon is passed.
8640 (is_daemon): New variable.
8641 (Fdaemonp): New function.
8642 (syms_of_emacs): Defsubr it.
8643
86442008-09-20 Chong Yidong <cyd@stupidchicken.com>
8645
8646 * xdisp.c (get_next_display_element): Handle string display
8647 correctly when checking for the end of a box run.
8648
86492008-09-20 Glenn Morris <rgm@gnu.org>
8650
8651 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8652 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8653 (Frename_file): Avoid copying to trash if a rename involves
8654 a delete. (Bug#964).
8655
86562008-09-20 Eli Zaretskii <eliz@gnu.org>
8657
8658 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8659 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8660 frames as well as termcap frames.
8661 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8662 get_named_tty.
8663
86642008-09-19 Eli Zaretskii <eliz@gnu.org>
8665
8666 * process.c (procfs_system_process_attributes): Fix cmdline in
8667 case /proc/PID/cmdline is empty.
8668
8669 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8670 x_display_pixel_height.
8671
86722008-09-19 Juanma Barranquero <lekktu@gmail.com>
8673
8674 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8675
8676 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8677 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8678
86792008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8680
8681 * dispextern.h (struct it): Move line_wrap away from the middle of
8682 bitfields. Move voffset in struct iterator_stack_entry after the
8683 bitfields. Move tab_width near after another short.
8684
86852008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8686
8687 * frame.h (struct frame): Move alpha from the middle of bitfields.
8688
8689 * window.h (struct window): Move frozen_window_start_p after the
8690 rest of the bitfields to reduce padding.
8691
86922008-09-18 Chong Yidong <cyd@stupidchicken.com>
8693
8694 * xterm.h (x_display_info): Remove `height' and `width' members.
8695
8696 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8697
8698 * w32term.h (w32_display_info): Remove `height', `width',
8699 `height_in', and `width_in' members.
8700
b8ff72fa
SM
8701 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8702 New functions.
aac0c6e3
MR
8703 (x_calc_absolute_position): Use them.
8704 (x_term_init): Omit removed `height' and `width' members.
8705
b8ff72fa
SM
8706 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8707 New functions.
aac0c6e3
MR
8708 (w32_read_socket, x_calc_absolute_position): Use them.
8709 (w32_initialize_display_info, w32_term_init): Omit removed members
8710 of w32_display_info.
8711
b8ff72fa
SM
8712 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8713 New functions.
8714 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8715
b8ff72fa
SM
8716 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8717 New functions.
aac0c6e3
MR
8718 (x_calc_absolute_position): Use them.
8719 (x_term_init): Omit removed `height' and `width' members.
8720
8721 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8722 (compute_tip_xy):
8723 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8724 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8725 x_display_pixel_width.
8726
87272008-09-18 Kenichi Handa <handa@m17n.org>
8728
8729 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8730 (composition_compute_stop_pos): Fix handling of static composition.
8731 (Fcomposition_get_gstring): Check FROM and TO at first.
8732
87332008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8734
46e722a9 8735 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8736 mixup (YAILOM).
8737
87382008-09-17 Chong Yidong <cyd@stupidchicken.com>
8739
8740 * indent.c (Fvertical_motion): Use position reported by iterator
8741 instead of PT for determining screen motion (bug#943).
8742
87432008-09-17 Romain Francoise <romain@orebokech.com>
8744
8745 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8746
87472008-09-17 Kenichi Handa <handa@m17n.org>
8748
8749 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8750
8751 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8752 if necessary.
8753
87542008-09-16 Kenichi Handa <handa@m17n.org>
8755
8756 * coding.c (make_conversion_work_buffer): Avoid calling
8757 Fget_buffer_create if it is not necessary.
8758
87592008-09-15 Martin Rudalics <rudalics@gmx.at>
8760
8761 * window.c (Fselect_window): Don't update window_select_count and
8762 use_time when norecord is not nil.
8763
87642008-09-14 Kenichi Handa <handa@m17n.org>
8765
8766 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8767 specpdl_ptr.
8768
87692008-09-12 Kenichi Handa <handa@m17n.org>
8770
8771 * indent.c (scan_for_column): Don't handle automatic composition
8772 if the current buffer is not associated with a window.
8773
8774 * composite.c (composition_reseat_it): If the current buffer is
8775 not associated with a window, ignore the automatic composition.
8776 (find_automatic_composition): Likewise.
8777
87782008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8779
8780 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8781 (Fgpm_mouse_stop): Use it.
8782 * termhooks.h (close_gpm): Declare.
8783 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8784 connection if Gpm_GetEvent fails.
8785
8786 * window.c (set_window_buffer): Always preserve current-buffer.
8787
87882008-09-12 Glenn Morris <rgm@gnu.org>
8789
8790 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8791
87922008-09-11 Glenn Morris <rgm@gnu.org>
8793
8794 * charset.c (charset-map-path): Doc fix.
8795
87962008-09-10 Kenichi Handa <handa@m17n.org>
8797
8798 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8799
8800 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8801 compose a grapheme cluster with the preceding base glyph.
8802
8803 * composite.c (composition_compute_stop_pos): Fix previous change.
8804 Reset cmp_it->id to -1 at first.
8805
88062008-09-10 Glenn Morris <rgm@gnu.org>
8807
8808 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8809
88102008-09-09 Chong Yidong <cyd@stupidchicken.com>
8811
8812 * keyboard.c (read_key_sequence): Reapply translation maps when
8813 switching keyboards.
8814
88152008-09-09 Kenichi Handa <handa@m17n.org>
8816
8817 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8818 characters.
8819
8820 * composite.c (FORWARD_CHAR): Fix calculation
8821 of (POSITION).pos_byte.
8822 (composition_compute_stop_pos): Limit the search of composition to
8823 at most 500 characters ahead. If we reach the limit or find a
8824 newline, set cmp_it->ch to -2 and return 0.
8825 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8826
88272008-09-08 Kenichi Handa <handa@m17n.org>
8828
8829 * indent.c (Fvertical_motion): Be sure to set
8830 it_overshoot_expected if it.cmp_it.id is non-negative.
8831
88322008-09-07 Andreas Schwab <schwab@suse.de>
8833
8834 * callproc.c (Fcall_process): Don't hold references to string data
8835 across garbage collection. Move initialisation of new_argv down
8836 to avoid compiler bug.
8837
88382008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8839
8840 * process.c (Fsystem_process_attributes): Doc fix.
8841
88422008-09-07 Chong Yidong <cyd@stupidchicken.com>
8843
8844 * callproc.c (Fcall_process): Canonicalize current directory name.
8845
8846 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8847 iterator advances to the next line if the current line ends in a
8848 continued tab.
8849
88502008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8851
8852 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8853 member to point to cmp_from.
8854
8855 * xdisp.c: Doc fix for references to gidx data member.
8856
88572008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8858
8859 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8860
88612008-09-07 Kenichi Handa <handa@m17n.org>
8862
8863 * composite.c (FORWARD_CHAR): Check STOP after
8864 incrementing (POSITION).pos.
8865
88662008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8867
8868 * process.c (Fsystem_process_attributes): Doc fix.
8869
88702008-09-06 Chong Yidong <cyd@stupidchicken.com>
8871
8872 * keyboard.c (Ftop_level): Doc fix.
8873
88742008-09-06 Eli Zaretskii <eliz@gnu.org>
8875
8876 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8877 minibuffer, don't let lower part of menu invade the echo area.
8878
8879 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8880 "char *q" to access menu text and advance through it. Revert the
8881 change that displayed ">" instead of ASCII character 0x10.
8882
88832008-09-05 Eli Zaretskii <eliz@gnu.org>
8884
8885 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8886 toggle boxes and radio buttons on MS-DOS as well.
8887
88882008-09-05 Kenichi Handa <handa@m17n.org>
8889
8890 * composite.c (autocmp_chars): Check lookback count.
8891 (composition_compute_stop_pos): Set cmp_it->lookback.
8892 (composition_reseat_it): Check lookback count.
8893 (struct position_record): New struct.
8894 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8895 (find_automatic_composition): New function.
8896 (composition_adjust_point): Use find_automatic_composition.
8897
8898 * dispextern.h (struct composition_it): New member lookback.
8899
89002008-09-02 Chong Yidong <cyd@stupidchicken.com>
8901
8902 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8903 if moving by a single line.
8904
89052008-09-02 Andreas Schwab <schwab@suse.de>
8906
8907 * xterm.c (x_delete_display): Fix merge error.
8908
8909 * fileio.c (Fexpand_file_name): Remove unused variables.
8910
89112008-09-02 Eli Zaretskii <eliz@gnu.org>
8912
8913 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8914 storage on all platforms, not just on DOS_NT.
8915
89162008-09-02 Jason Rumney <jasonr@gnu.org>
8917
b8ff72fa
SM
8918 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8919 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8920
89212008-09-01 Chong Yidong <cyd@stupidchicken.com>
8922
8923 * xfaces.c (Finternal_set_alternative_font_family_alist)
8924 (Finternal_set_alternative_font_registry_alist): Properly copy
8925 entire alist structure.
8926
89272008-09-01 Kenichi Handa <handa@m17n.org>
8928
d66c0241 8929 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8930 representative chars of the script is a vector.
d66c0241
JB
8931 (ftfont_list): Handle the case where the representative chars of
8932 the script is a vector.
aac0c6e3
MR
8933
8934 * character.c (syms_of_character): Docstring of
8935 script-representative-chars fixed.
8936
89372008-08-31 Eli Zaretskii <eliz@gnu.org>
8938
8939 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8940 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8941 the menu. Allocate larger buffer for `text', to account for
8942 possible ^C characters.
8943
89442008-08-31 Martin Rudalics <rudalics@gmx.at>
8945
8946 * xdisp.c (prepare_menu_bars): Don't call
8947 Vwindow_size_change_functions with arg Qt.
8948
89492008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8950
8951 * font.h (font_range):
8952 * fileio.c (report_file_error):
46e722a9
SM
8953 * composite.c (composition_update_it): Yet another int/Lisp_Object
8954 mixup (YAILOM).
aac0c6e3
MR
8955
89562008-08-30 Glenn Morris <rgm@gnu.org>
8957
8958 * data.c (Fmake_variable_frame_local): Doc fix.
8959
8960 * frame.c (Fmodify_frame_parameters): Doc fix.
8961
89622008-08-30 Eli Zaretskii <eliz@gnu.org>
8963
8964 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8965 needed by GetTokenInformation.
8966 (w32_system_process_attributes): Check return values of all system
8967 APIs.
8968
8969 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8970 only when the state changes.
8971 (IT_update_begin, IT_update_end): Add termscript trace.
8972
8973 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8974 clipboard is unavailable. Set dst to NULL if it doesn't point to
8975 malloc'ed data.
8976 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8977 passing random values to xfree.
8978
8979 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8980 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8981
89822008-08-29 Jason Rumney <jasonr@gnu.org>
8983
8984 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8985
89862008-08-29 Eli Zaretskii <eliz@gnu.org>
8987
8988 * composite.c (fill_gstring_body): Avoid compiler warnings.
8989
8990 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8991 LGLYPH_SET_CODE to avoid compiler warnings.
8992
2ae37cf0 8993 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8994
8995 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8996
8997 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8998 LGLYPH_SET_CODE.
8999
90002008-08-29 Kenichi Handa <handa@m17n.org>
9001
9002 * fileio.c (report_file_error): Don't downcase the first character
9003 of errstring if it is still unibyte.
9004
90052008-08-29 Kenichi Handa <handa@m17n.org>
9006
9007 These changes are to re-implement the automatic composition so
9008 that it doesn't use text properties.
9009
9010 * Makefile.in (ftfont.o): Depend on composite.h.
9011 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9012
9013 * character.h (Vunicode_category_table): Extern it.
9014
9015 * character.c (Vunicode_category_table): New variable.
9016 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9017
9018 * chartab.c (optimize_sub_char_table): Perform more greedy
9019 optimization.
9020
b8ff72fa
SM
9021 * composite.h (enum composition_method):
9022 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9023 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9024 (Vcomposition_function_table): Extern it.
9025 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9026 (composition_gstring_put_cache, composition_gstring_from_id)
9027 (composition_gstring_p, composition_gstring_width)
9028 (composition_compute_stop_pos, composition_reseat_it)
9029 (composition_update_it, composition_adjust_point): Extern them.
9030 (Fcomposition_get_gstring): EXFUN it.
9031
d66c0241 9032 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9033 (Vcomposition_function_table)
9034 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9035 (gstring_hash_table, gstring_work, gstring_work_headers):
9036 New variables.
aac0c6e3
MR
9037 (gstring_lookup_cache, composition_gstring_put_cache)
9038 (composition_gstring_from_id, composition_gstring_p)
9039 (composition_gstring_width, fill_gstring_header)
9040 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9041 (composition_reseat_it, composition_update_it)
b8ff72fa 9042 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9043 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9044 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9045 Defsubr composition_get_gstring.
aac0c6e3
MR
9046
9047 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9048 cmp_id.
9049 (struct glyph_string): Delete the member gidx. New members
9050 cmp_id, cmp_from, and cmp_to.
9051 (enum it_method): Delete GET_FROM_COMPOSITION.
9052 (struct composition_it): New struct.
9053 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9054 Delete c, len, cmp_id, cmp_len in u.comp.
9055
9056 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9057 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9058 (enum lglyph_indices): Likewise.
b8ff72fa 9059 (font_range): Adjust extern.
aac0c6e3
MR
9060 (font_fill_lglyph_metrics): Extern it.
9061
9062 * font.c (QCf): New variable.
9063 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9064 (font_prepare_composition): Delete this function.
9065 (font_range): Type and arguments changed.
9066 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9067 (font_fill_lglyph_metrics): New function.
b8ff72fa 9068 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9069 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9070 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9071 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9072
9073 * fontset.h (font_for_char): Extern it.
9074
9075 * fontset.c (font_for_char): New function.
9076
9077 * ftfont.c: Include composite.h.
9078 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9079 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9080
9081 * indent.c: Include composite.h and dispextern.h.
9082 (check_composition): Delete this function.
9083 (scan_for_column): Handle composition by
9084 composition_compute_stop_pos, composition_reseat_it, and
9085 composition_update_it.
9086 (compute_motion): Likewise.
9087 (Fvertical_motion): Fix checking of composition.
9088
9089 * keyboard.c (adjust_point_for_property): Check composition by
9090 composition_adjust_point.
9091
b8ff72fa 9092 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9093 struct glyph_string.
9094
b8ff72fa
SM
9095 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9096 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9097 struct glyph.
9098 (produce_composite_glyph): Likewise.
9099
b8ff72fa
SM
9100 * w32term.c (x_draw_composite_glyph_string_foreground):
9101 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9102 (x_draw_glyph_string): Likewise.
9103
9104 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9105 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9106
9107 * xdisp.c: Include font.h.
9108 (it_props): Delete the entry for Qauto_composed.
9109 (init_iterator): Initialize it->cmp_it.id to -1.
9110 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9111 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9112 (handle_auto_composed_prop): Delete it.
9113 (handle_composition_prop): Handle only static composition.
9114 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9115 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9116 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9117 (pop_it): Likewise.
9118 (get_next_element): Delete next_element_from_composition.
9119 (CHAR_COMPOSED_P): New macro.
9120 (get_next_display_element): For automatic composition, get a face
9121 from the font in the glyph-string.
9122 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9123 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9124 (next_element_from_string): Check if the character at the current
9125 position is composed by CHAR_COMPOSED_P.
9126 (next_element_from_buffer): Likewise.
d66c0241
JB
9127 (next_element_from_composition): Adjust for the change of struct it.
9128 Update it->cmp_it.
b8ff72fa
SM
9129 (dump_glyph): Adjust for the change of struct glyph.
9130 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9131 it and struct glyph. Don't handle automatic composition here.
9132 (fill_gstring_glyph_string): New function.
9133 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9134 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9135 (BUILD_GSTRING_GLYPH_STRING): New macro.
9136 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9137 automatic composition.
b8ff72fa 9138 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9139 struct glyph.
b8ff72fa 9140 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9141
b8ff72fa 9142 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9143 the change of struct glyph_string.
9144 (x_draw_glyph_string): Likewise.
9145
91462008-08-29 Glenn Morris <rgm@gnu.org>
9147
9148 * buffer.c (word-wrap): Doc fix.
9149 * xdisp.c (truncate-partial-width-windows): Doc fix.
9150 Increase default to 50.
9151
91522008-08-29 Chong Yidong <cyd@stupidchicken.com>
9153
9154 * xdisp.c (update_tool_bar_unwind): New function.
9155 (update_tool_bar): Temporarily set selected frame before building
9156 tool-bar items.
9157
91582008-08-28 Michael Albinus <michael.albinus@gmx.de>
9159
9160 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9161 snprintf, respectively.
9162 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9163
91642008-08-28 Chong Yidong <cyd@stupidchicken.com>
9165
9166 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9167 LDFLAGS to GNUstep CC invocation.
9168
91692008-08-27 Chong Yidong <cyd@stupidchicken.com>
9170
9171 * indent.c (Fvertical_motion): Revert last change. Handle the
9172 general case where we are moving forward, and PT spans multiple
9173 screen lines.
9174
9175 * eval.c (find_handler_clause): Temporarily increase
9176 max-lisp-eval-depth while printing the backtrace buffer, to
9177 guarantee that help-mode code can run.
9178
91792008-08-27 Eli Zaretskii <eliz@gnu.org>
9180
9181 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9182 colors under -rv.
9183 (IT_set_frame_parameters): Don't swap foreground and background
9184 colors if `(reverse . t)' is present in the frame properties.
9185 (internal_terminal_init): Call init_frame_faces only for the
9186 initial frame.
9187
91882008-08-27 Andreas Schwab <schwab@suse.de>
9189
9190 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9191
91922008-08-27 Andreas Schwab <schwab@suse.de>
9193
9194 * search.c (search_buffer): Set char_base to zero only at the end.
9195
91962008-08-27 Kenichi Handa <handa@m17n.org>
9197
b8ff72fa 9198 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9199
92002008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9201
9202 * xterm.c (x_term_init): Temporarily hide the partially
9203 initialized terminal while calling vendor-specific-keysyms.
9204
92052008-08-26 Eli Zaretskii <eliz@gnu.org>
9206
9207 * msdos.c (internal_terminal_init): Most initializations done only
9208 once, especially initial_screen_colors[] and termscript open.
9209
92102008-08-26 Chong Yidong <cyd@stupidchicken.com>
9211
9212 * eval.c (Fcondition_case): Doc fix.
9213
9214 * widgetprv.h (EmacsFramePart): Change font member to the new font
9215 struct.
9216
9217 * widget.c: Include character.h and font.h for XSETFONT.
9218 (setup_frame_gcs): Compute X font id from font struct, just once.
9219
92202008-08-26 Eli Zaretskii <eliz@gnu.org>
9221
9222 * term.c (get_named_tty): Fix last change.
9223
92242008-08-26 Chong Yidong <cyd@stupidchicken.com>
9225
9226 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9227 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9228
92292008-08-25 Eli Zaretskii <eliz@gnu.org>
9230
9231 * frame.c (do_switch_frame): Mark previously displayed frame as
9232 obscured for FRAME_MSDOS_P frames as well.
9233
92342008-08-24 Eli Zaretskii <eliz@gnu.org>
9235
9236 * frame.c (make_terminal_frame): Initialize f->terminal,
9237 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9238 Set the top frame to newly created frame.
9239 (Fmake_terminal_frame): Reuse the_only_display_info.
9240
9241 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9242 estimating available memory.
9243
b97439ce 92442008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9245
9246 * nsterm.m (ns_draw_window_cursor): Don't call
9247 NSDisableScreenUpdates and NSEnableScreenUpdates on
9248 non-NS_IMPL_COCOA systems.
9249
92502008-08-23 Andreas Schwab <schwab@suse.de>
9251
9252 * process.c (procfs_system_process_attributes): Fix use of
9253 uninitialized variables.
9254
92552008-08-23 Eli Zaretskii <eliz@gnu.org>
9256
9257 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9258
9259 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9260 calling tty-set-up-initial-frame-faces.
9261
b8ff72fa
SM
9262 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9263 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9264
9265 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9266 addition to output_termcap.
9267
9268 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9269
9270 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9271 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9272 highlight.
9273
9274 * process.c [!subprocesses]: Define QCname.
9275 (syms_of_process): Intern and staticpro it.
9276
9277 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9278 Adjust for changes in encoding/decoding routines.
9279 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9280 encode_coding and decode_coding.
9281
b8ff72fa 9282 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9283
9284 * dosfns.c: Include frame.h before termhooks.h.
9285 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9286 variable termscript.
9287
9288 * s/msdos.h (USER_FULL_NAME): Define.
9289 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9290
9291 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9292 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9293 pw->pw_gecos.
9294
9295 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9296 SELECTED_FRAME as additional (1st) argument.
9297 (tty_read_avail_input): Handle output_msdos_raw in
9298 addition to output_termcap.
9299
9300 * msdos.c: Include frame.h before termhooks.h.
9301 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9302 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9303 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9304 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9305 (IT_set_terminal_modes, IT_reset_terminal_modes)
9306 (IT_set_frame_parameters): Use tty->termscript instead of a global
9307 variable termscript.
9308 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9309 global variable terminal_coding. Don't refer to
9310 Vnonascii_translation_table.
9311 (internal_terminal_init): Set Vwindow_system in current_kboard.
9312 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9313 Announce date and time of session start, if termscript is open.
9314 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9315 term.c:init_tty). Open termscript only of not already open.
9316 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9317 here instead of dos_ttraw. Don't initialize display if this is an
9318 initial tty. Don't set FRAME_FONT.
9319 (Vwindow_system_version): Bump to 23.
9320 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9321 is available, set up mouse_position_hook.
9322 (dos_ttraw, IT_set_terminal_modes): If called with initial
9323 terminal, do nothing.
9324 (IT_set_frame_parameters): Handle the Qtty_type frame
9325 parameter by calling internal_terminal_init.
9326 (dos_set_window_size, show_mouse_face)
9327 (clear_mouse_face, IT_note_mode_line_highlight)
9328 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9329 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9330 (initialize_msdos_display): New function.
9331 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9332 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9333 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9334 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9335 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9336 (request_sigio, unrequest_sigio): Don't define, now defined on
9337 sysdep.c.
9338 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9339
9340 * term.c [MSDOS]: Include msdos.h.
9341 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9342 conditional to DOS_NT. Allow only one call to this function in a
9343 session. Don't allocate a new struct tty_display_info; instead,
9344 reuse the_only_display_info. Call get_tty_size to get screen
9345 dimensions. Call init_baud_rate to set bad_rate.
9346 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9347 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9348 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9349 (get_tty_terminal, get_named_tty, Ftty_type)
9350 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9351 output_termcap.
b8ff72fa
SM
9352 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9353 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9354 only when subprocesses are supported.
aac0c6e3
MR
9355
9356 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9357 f->output_data.x.
9358 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9359 terminal devices.
9360
5582fbc7 9361 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9362 x_output.
9363 (FRAME_FONT): Use output_data.tty.
9364 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9365 (struct x_display_info): Rename from display_info. Update all users in
9366 msdos.c.
aac0c6e3 9367 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9368 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9369 (dos_ttraw): Update prototype.
9370
9371 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9372 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9373
93742008-08-23 Jason Rumney <jasonr@gnu.org>
9375
9376 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9377 (fn_TIFFSetDirectory): New library function used.
9378 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9379 (tiff_load): Use :index to select among multiple images. Set count
9380 property when multiple images exist.
9381 (gif_format): Use :index, not :image.
9382
93832008-08-23 Chong Yidong <cyd@stupidchicken.com>
9384
9385 * xdisp.c (try_scrolling): Check INT_MAX instead of
9386 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9387 to obtain INT_MAX.
9388
93892008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9390
9391 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9392
93932008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9394
9395 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9396 GNUstep library location.
9397
93982008-08-21 Chong Yidong <cyd@stupidchicken.com>
9399
9400 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9401 before using it.
9402
9403 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9404
94052008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9406
9407 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9408 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9409 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9410 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9411 (EmacsApp-cursor_blink_handler): Remove declaration.
9412 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9413 match 01 Feb 2008 changes in xterm.c.
9414 (ns_read_socket): Add cast to avoid warning.
9415 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9416 GNUstep.
9417
94182008-08-20 Chong Yidong <cyd@stupidchicken.com>
9419
9420 * xselect.c (x_get_foreign_selection): Return nil if desired
9421 selection could not be obtained, instead of signalling an error.
9422
94232008-08-20 David Reitter <david.reitter@gmail.com>
9424
9425 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9426 * nsterm.m: Remove ns-specific code for cursor blinking.
9427 (ns_draw_window_cursor): Clear cursor properly rather than
9428 redrawing the area. Respect width of bar cursors.
9429 These changes enable the use of generic blink-cursor-mode and
9430 generic cursor types in NS and support smooth cursor movements (do
9431 not blink off after command).
9432 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9433 Nextstep, too.
9434
94352008-08-19 Kenichi Handa <handa@m17n.org>
9436
9437 * font.c (Vfont_log_deferred): New variable.
9438 (font_add_log): Check Vfont_log_deferred.
9439 (font_deferred_log): New function.
9440
9441 * font.h (font_deferred_log): Extern it.
9442
9443 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9444 for sorting.
9445 (face_for_char): Use deferred log.
9446
94472008-08-18 Kenichi Handa <handa@m17n.org>
9448
9449 * fontset.c (face_for_char): Add font log.
9450
9451 * font.c (font_add_log): Add the font properties :script, :lang,
9452 and :otf in the log.
9453
94542008-08-17 Chong Yidong <cyd@stupidchicken.com>
9455
9456 * xdisp.c: Remove dead code.
9457 (handle_invisible_prop, next_overlay_string): Defer call to
9458 setup_for_ellipsis.
9459 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9460
94612008-08-15 Chong Yidong <cyd@stupidchicken.com>
9462
9463 * xfaces.c (lookup_derived_face): Properly handle possible zero
9464 return value of get_lface_attributes.
9465 (merge_faces): Don't tell lookup_derived_face to signal an error
9466 if face is not found.
9467
9468 * dired.c (Fdirectory_files): Doc fix.
9469
9470 * process.c (make_process): Initialize kill_without_query struct
9471 member.
9472
94732008-08-15 Eli Zaretskii <eliz@gnu.org>
9474
9475 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9476 Alternative calculation of totphys for Visual Studio 6.
9477
9478 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9479
9480 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9481 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9482 All users changed.
9483 (stat): Only root directory passed to GetDriveType. Allow RAM
9484 disk as well as local fixed disk when w32-get-true-file-attributes
9485 is set to `local'.
9486 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9487 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9488 (w32_cached_id, w32_add_to_cache): New functions.
9489 (get_name_and_id): Look account names in the cache before calling
9490 lookup_account_sid.
9491 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9492 New initialization flags.
9493 (globals_of_w32): Initialize them to zero.
9494 (w32_system_process_attributes): Use w32_cached_id and
9495 w32_add_to_cache.
9496
94972008-08-14 Lawrence Mitchell <wence@gmx.li>
9498
9499 * lread.c (Fread_char, Fread_char_exclusive): If no character
9500 event is read before timeout is reached, return nil, rather than
9501 converting to a number.
9502
95032008-08-14 Chong Yidong <cyd@stupidchicken.com>
9504
9505 * fns.c (use_dialog_box): Doc fix.
9506
9507 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9508 on OS X.
9509
95102008-08-13 Chong Yidong <cyd@stupidchicken.com>
9511
9512 * frame.c (Qns_parse_geometry): New var.
9513 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9514
95152008-08-11 Chong Yidong <cyd@stupidchicken.com>
9516
9517 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9518 space character in calculating tabs.
9519
95202008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9521
9522 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9523
95242008-08-10 Glenn Morris <rgm@gnu.org>
9525
9526 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9527 silence gcc "limited range of data type" warnings in some
9528 make_fixnum_or_float calls.
9529
95302008-08-09 Eli Zaretskii <eliz@gnu.org>
9531
9532 * w32.c (w32_system_process_attributes): If the process does not
9533 exist, return nil.
9534
9535 * w32.c: Include thelp32.h, psapi.h and coding.h.
9536 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9537 declarations.
9538 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9539 (Process32Next_Proc): New typedefs.
9540 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9541 (g_b_init_process32_next, g_b_init_open_thread_token)
9542 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9543 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9544 (g_b_init_get_process_working_set_size)
9545 (g_b_init_global_memory_status_ex): New static variables.
9546 (globals_of_w32): Initialize them.
9547 (create_toolhelp32_snapshot, process32_first, process32_next)
9548 (open_thread_token, impersonate_self, revert_to_self)
9549 (get_process_memory_info, get_process_working_set_size)
9550 (global_memory_status, global_memory_status_ex): New wrapper
9551 functions.
9552 (w32_list_system_processes, w32_system_process_attributes)
9553 (enable_privilege, restore_privilege, ltime, process_times):
9554 New functions.
9555 (convert_time_raw): New function.
9556 (convert_time): Remove conversion of FILETIME into time in 100
9557 nsec units, call convert_time_raw instead.
9558
9559 * process.h (w32_list_system_processes, w32_system_process_attributes):
9560 Add prototypes.
9561 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9562 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9563 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9564 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9565
9566 * process.c (Fsystem_process_attributes): Doc fix.
9567
95682008-08-08 Chong Yidong <cyd@stupidchicken.com>
9569
9570 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9571 a continued multi-char glyph; if so, advance to the actual glyph.
9572
95732008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9574
9575 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9576
9577 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9578 (.m.o): Use it.
9579 * config.in: Regenerate.
9580
95812008-08-07 Chong Yidong <cyd@stupidchicken.com>
9582
9583 * xdisp.c (redisplay_window): Revert last change.
9584 (try_window): Check bottom scroll margin too.
9585
95862008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9587
9588 * config.in: Regenerate.
9589
9590 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9591 -list-load-path-shadows'.
9592 (nsgui.h): Reduce number of things depending on it.
9593
95942008-08-06 Chong Yidong <cyd@stupidchicken.com>
9595
9596 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9597 instead of window-end which does the wrong thing at eob.
9598 (try_cursor_movement): Minor optimization.
9599 (redisplay_window): If scroll margin is defined, don't assume
9600 window doesn't need scrolling.
9601
96022008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9603
9604 * config.in: Regenerate.
9605
9606 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9607 (mostlyclean): Don't delete *.d under NS.
9608
9609 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9610
96112008-08-06 Kenichi Handa <handa@m17n.org>
9612
9613 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9614
96152008-08-06 Andreas Schwab <schwab@suse.de>
9616
9617 * config.in: Regenerate.
9618
96192008-08-05 Chong Yidong <cyd@stupidchicken.com>
9620
9621 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9622 forcing a window start.
9623
9624 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9625 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9626
96272008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9628
9629 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9630 argument.
9631
96322008-08-05 Juanma Barranquero <lekktu@gmail.com>
9633
9634 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9635 <scroll-down-aggressively, before-change-functions>:
9636 <after-change-functions>: Reflow docstrings.
9637
96382008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9639 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9640
9641 Dock menu customization, based on a patch by Ken Raeburn, plus some
9642 other fixes.
9643 * nsmenu.m (dockMenu): New variable.
9644 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9645
9646 * nsterm.h (dockMenu): Declare.
9647
9648 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9649 (ns_term_init): Initialize dockMenu.
9650 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9651 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9652 left.
9653
9654 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9655
96562008-08-04 Chong Yidong <cyd@stupidchicken.com>
9657
9658 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9659
9660 * config.in: Regenerate.
9661
96622008-08-04 Seiji Zenitani <zenitani@mac.com>
9663
9664 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9665
96662008-08-04 Chong Yidong <cyd@stupidchicken.com>
9667
9668 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9669
96702008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9671
9672 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9673
9674 * keyboard.h: Comment an #endif.
9675
9676 * lisp.h (have_menus_p): Adjust comment.
9677
9678 * menu.c (find_and_return_menu_selection): Fix comparison with
9679 client_data.
9680
9681 * nsmenu.m (popup_activated_flag): New variable.
9682 (popup_activated): New function.
9683 (menu-or-popup-active-p): New exported lisp definition.
9684 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9685 when popup done.
9686 (ns_popup_dialog): Set popup_activated_flag.
9687
9688 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9689 version for GNUstep (handled by conditional typedef in nsterm.m).
9690 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9691 in rgb.txt).
9692
9693 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9694
9695 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9696
9697 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9698
9699 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9700 shortcircuit if popup_activated like GTK and X toolkit.
9701
9702 * m/inter386.h: Change DARWIN to DARWIN_OS.
9703
9704 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9705 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9706 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9707 comment on NO_SOCK_SIGIO.
9708
97092008-08-03 Chong Yidong <cyd@stupidchicken.com>
9710
9711 * nsterm.m (windowDidResize): Remove stopModal call.
9712
97132008-08-03 Andreas Schwab <schwab@suse.de>
9714
9715 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9716 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9717
97182008-08-02 Chong Yidong <cyd@stupidchicken.com>
9719
9720 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9721 Don't use uninitialized pointer variable when using getrlimit.
9722
97232008-08-02 Jason Rumney <jasonr@gnu.org>
9724
9725 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9726
97272008-08-02 Eli Zaretskii <eliz@gnu.org>
9728
9729 * alloc.c (NSTATICS): Bump to 0x640.
9730
9731 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9732
9733 * lisp.h: Add prototype for directory_files_internal.
9734
9735 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9736 New functions.
9737 (syms_of_process): Defsubr them. Add initializations for various
9738 Q* symbols used in procfs_system_process_attributes.
9739 (procfs_list_system_processes, procfs_system_process_attributes)
9740 [HAVE_PROCFS]: New functions.
9741 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9742 (procfs_get_total_memory): New functions.
9743
97442008-08-01 Juanma Barranquero <lekktu@gmail.com>
9745
9746 * xfaces.c (Fx_load_color_file): Fix previous change;
9747 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9748
97492008-08-01 Michael Albinus <michael.albinus@gmx.de>
9750
9751 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9752
97532008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9754
9755 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9756
97572008-08-01 Chong Yidong <cyd@stupidchicken.com>
9758
9759 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9760
9761 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9762 define NSApplicationDelegateReplySuccess.
9763 (EmacsView -converstationIdentifier): Use long instead of
9764 NSInteger for GNUstep, since it doesn't have NSInteger.
9765
9766 * xmenu.c: Revert last change.
9767
9768 * keyboard.h: Fix last change.
9769
97702008-08-01 Juanma Barranquero <lekktu@gmail.com>
9771
9772 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9773 on Windows.
9774
97752008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9776
9777 Warning clearing and clean-up in NS port.
9778 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9779 Add prototypes.
9780 * nsgui.h (FACE_DEFAULT): Remove, unused.
9781 (XGCValues): Change colors to unsigned long.
9782 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9783 nsterm.m.
9784 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9785 (ns_list_fonts): Remove, unused.
9786 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9787 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9788 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9789 (nsfont_draw): Compare face colors to 0, not nil.
9790 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9791 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9792 (-addSubmenuWithTitle:): Use NSMenuItem class.
9793 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9794 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9795 (ns_clip_to_row): Make gc arg a BOOL.
9796 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9797 ns_clip_to_row() call.
9798 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9799 used). Cast FRAME_FONT assignments.
9800 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9801 (ns_string_to_lispmod): Change arg to const char.
9802 (ns_term_init): Use NSMenuItem class.
9803 (EmacsApp -openFile:): Move to different section of file.
9804 (EmacsApp -application:openFiles:): Don't return a value, call
9805 -replyToOpenOrPrint:.
9806 (EmacsView -keyDown:): Fix up cast.
9807 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9808 (EmacsView -menuDown:): Cast tag in call to
9809 find_and_call_menu_selection().
9810 (ns_list_fonts): Remove, unused.
9811 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9812 (ns_fontname_to_xlfd): Make static.
9813 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9814 Remove prototypes (now in keyboard.h).
9815 (next_menubar_widget_id): Remove, unused.
9816 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9817 Remove prototypes (now in keyboard.h).
9818 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9819
98202008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9821
9822 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9823 (floatfns.o): Depend on syssignal.h.
9824 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9825
9826 * systty.h: Fix previous change that removed BSD_TERMIOS.
9827 Add comments to #ifdefs.
9828
98292008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9830
9831 * w32fns.c (w32-load-color-file): Remove.
9832 (x-open-connection): Use renamed Fx_load_color_file.
9833 * xfaces.c (x-load-color-file): Add.
9834 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9835 Emacs.clr.
9836 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9837
98382008-07-31 Michael Albinus <michael.albinus@gmx.de>
9839
9840 * dbusbind.c (Fdbus_call_method_asynchronously)
9841 (Fdbus_method_error_internal): New defuns.
9842 (xd_read_message): Handle also reply messages.
9843 (Vdbus_registered_functions_table): Extend docstring.
9844
98452008-07-31 Juanma Barranquero <lekktu@gmail.com>
9846
9847 * keyboard.c (gobble_input): Fix previous change.
9848
98492008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9850
9851 * bitmaps/README:
9852 * xfns.c:
9853 * termcap.c:
9854 * term.c:
9855 * syswait.h:
9856 * systty.h:
9857 * systime.h:
9858 * syssignal.h:
9859 * sysdep.c:
9860 * process.h:
9861 * process.c:
9862 * print.c:
9863 * ndir.h:
9864 * lread.c:
9865 * keyboard.c:
9866 * getpagesize.h:
9867 * floatfns.c:
9868 * fileio.c:
9869 * emacs.c:
9870 * doc.c:
9871 * dispnew.c:
9872 * dired.c:
9873 * data.c:
9874 * callproc.c:
9875 * buffer.c:
9876 * README:
9877 * Makefile.in:
9878 * s/template.h:
9879 * s/msdos.h:
9880 * m/vax.h: Remove VMS support.
9881 * s/vms.h:
9882 * vlimit.h:
9883 * uaf.h:
9884 * temacs.opt:
9885 * param.h:
9886 * ioctl.h: Remove file.
9887
98882008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9889
9890 * s/ms-w32.h (MULTI_KBOARD): Remove.
9891 * xterm.c:
9892 * xselect.c:
9893 * xfns.c:
9894 * window.c:
9895 * w32term.c:
9896 * w32fns.c:
9897 * terminal.c:
9898 * termhooks.h:
9899 * term.c:
9900 * sysdep.c:
9901 * keyboard.h:
9902 * keyboard.c:
9903 * frame.h:
9904 * frame.c:
9905 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9906 * config.in: Regenerate.
9907
99082008-07-30 Jason Rumney <jasonr@gnu.org>
9909
9910 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9911
9912 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9913 (w32font_open_internal): Get unicode version of textmetrics.
9914 Don't enable or disable glyph indices here.
9915 (w32font_open): Disable use of glyph indices.
9916
9917 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9918
99192008-07-30 Chong Yidong <cyd@stupidchicken.com>
9920
9921 * minibuf.c (Vread_buffer_function): Doc fix.
9922
99232008-07-30 John Paul Wallington <jpw@pobox.com>
9924
9925 * minibuf.c (read_buffer_completion_ignore_case): New var.
9926 (Fread_buffer): Use it.
9927
99282008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9929
9930 * systty.h (sensemode): Remove empty #if. Remove reference to
9931 BSD_TERMIOS, unused.
9932
9933 * sysdep.c: Remove reference to DGUX.
9934 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9935
9936 * config.in: Regenerate.
9937
99382008-07-30 Jason Rumney <jasonr@gnu.org>
9939
9940 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9941
99422008-07-29 Jason Rumney <jasonr@gnu.org>
9943
9944 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9945 is populated.
9946 (uniscribe_encode_char): Always use uniscribe.
9947 Avoid using context if cache is populated.
9948
99492008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9950
9951 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9952 open menu.
9953
9954 * gtkutil.c (menu_nav_ended): Remove.
9955 (create_menus): Remove signal connect for menu_nav_ended.
9956
99572008-07-28 Chong Yidong <cyd@stupidchicken.com>
9958
9959 * xdisp.c (redisplay_window): Check return value of
9960 compute_window_start_on_continuation_line before forcing a window
9961 start.
9962
99632008-07-28 Jason Rumney <jasonr@gnu.org>
9964
9965 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9966
9967 * w32term.c (w32_enable_unicode_output, cleartype_active):
9968 Remove obsolete display options.
9969 (x_draw_glyph_string_background): Don't use old cleartype_active
9970 workaround.
9971 (w32_initialize): Remove cleartype_active initialization.
9972 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9973
99742008-07-28 Andreas Schwab <schwab@suse.de>
9975
9976 * lisp.h (init_weak_hash_tables, syms_of_font)
9977 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9978 (remove_hash_entry): Don't declare.
9979 * eval.c (maybe_call_debugger): Make static and move before use.
9980 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9981 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9982 * xterm.h (x_set_frame_alpha): Declare.
9983
99842008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9985
9986 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9987 (create_menus): Connect selection-done to menu_nav_ended.
9988
99892008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9990
9991 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9992 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9993 parameter with read of 'alpha' one.
9994 (Qns_frame_parameter): Remove.
5582fbc7 9995 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9996 (next-selection-coding-system, Vselection_coding_system)
9997 (Vnext_selection_coding_system): Drop.
9998
99992008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10000
10001 * nsfns.m (do-applescript, do_applescript): Rename to
10002 ns-do-applescript, ns_do_applescript, and move within file.
10003
100042008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10005
10006 Remove support for Mac Carbon.
10007 * mactoolbox.c:
10008 * macterm.h:
10009 * macterm.c:
10010 * macselect.c:
10011 * macmenu.c:
10012 * macgui.h:
10013 * macfns.c:
10014 * mac.c: Remove file.
10015 * s/darwin.h:
10016 * m/intel386.h:
10017 * xfaces.c:
10018 * xdisp.c:
10019 * window.c:
10020 * tparam.c:
10021 * termhooks.h:
10022 * termcap.c:
10023 * term.c:
10024 * syssignal.h:
10025 * sysselect.h:
10026 * sysdep.c:
10027 * process.c:
10028 * lread.c:
10029 * lisp.h:
10030 * keyboard.c:
10031 * image.c:
10032 * fringe.c:
10033 * frame.h:
10034 * frame.c:
10035 * fontset.c:
10036 * font.h:
10037 * font.c:
10038 * fns.c:
10039 * fileio.c:
10040 * emacs.c:
10041 * dispnew.c:
10042 * dispextern.h:
10043 * config.in:
10044 * atimer.c:
2ae37cf0 10045 * Makefile.in: Remove code for Carbon.
aac0c6e3 10046
f0131492 100472008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10048
10049 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10050
100512008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10052
10053 * macterm.h (kCGBitmapByteOrder32Host): New define for
10054 non-universal SDKs.
10055
10056 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10057 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10058
10059 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10060 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10061
100622008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10063
10064 * w32inevt.c: Include dispextern.h.
10065
100662008-07-26 Andreas Schwab <schwab@suse.de>
10067
10068 * print.c (print_object): Fix off-by-one in last change.
10069
100702008-07-25 Juanma Barranquero <lekktu@gmail.com>
10071
10072 * term.c (syms_of_term): Don't initialize default_orig_pair,
10073 default_set_foreground and default_set_background on Windows.
10074
100752008-07-25 Jason Rumney <jasonr@gnu.org>
10076
10077 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10078 ScriptItemize. Clean up return value checking. Remove unused
10079 variables.
10080 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10081 shaping engine.
10082
10083 * w32font.c (w32font_has_char): Handle the case where we can't
10084 determine the script for a character.
10085
100862008-07-25 Chong Yidong <cyd@stupidchicken.com>
10087
10088 * term.c (syms_of_term): Initialize default_orig_pair,
10089 default_set_foreground, and default_set_background.
10090
10091 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10092 clash (bug#86).
10093 (getloadavg): Callers changed.
10094
10095 * image.c (svg_load_image): Fix last change.
10096 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10097 image size is valid. Use g_object_unref instead of deprecated
10098 rsvg_handle_free to free rsvg handle.
10099 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10100
101012008-07-25 Jason Rumney <jasonr@gnu.org>
10102
10103 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10104 surrogates before looking up glyph index.
10105 (w32font_text_extents): Encode as surrogates if falling back to
10106 functions that need UTF-16 wide chars.
10107
10108 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10109 BMP as surrogates before looking up glyph index.
10110
101112008-07-25 Chong Yidong <cyd@stupidchicken.com>
10112
10113 * image.c (svg_load_image): Check for failure in return value of
10114 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10115
101162008-07-25 Jason Rumney <jasonr@gnu.org>
10117
10118 * w32font.c (Fx_select_font): Reverse sense of second arg.
10119
101202008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10121
10122 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10123 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10124
10125 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10126 (PURESIZE): Use it.
10127
101282008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10129
10130 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10131 * m/alpha.h (TEXT_END):
10132 * m/ibmrs6000.h (TEXT_END):
10133 * m/macppc.h (TEXT_END):
10134 * s/darwin.h (TEXT_END):
10135 * s/msdos.h (TEXT_END): Remove, unused.
10136 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10137 * s/cygwin.h: Remove comment.
10138
10139 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10140 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10141 * m/intel386.h (DOT_GLOBAL_START):
10142 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10143 (USG): Remove, file not used on USG platforms.
10144
10145 * Makefile.in (HAVE_X11): Remove empty #else.
10146
101472008-07-24 Andreas Schwab <schwab@suse.de>
10148
10149 * fileio.c (Finsert_file_contents): Properly adjust undo list
10150 after format conversion.
10151
101522008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10153
10154 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10155 (menu_nav_ended): Remove.
10156 (create_menus): Remove signal connect for menu_nav_ended.
10157 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10158 create_menus.
10159 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10160
101612008-07-23 Jason Rumney <jasonr@gnu.org>
10162
10163 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10164 with opened font.
10165 (w32font_open): Set font type to gdi.
10166
10167 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10168
101692008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10170
10171 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10172 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10173 defines it.
10174 * unexec.c (ADDR_CORRECT): Define unconditionally.
10175
10176 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10177
10178 * unexec.c: Remove code depending on !COFF and USG, the file is
10179 not used for such systems.
10180
10181 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10182 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10183 (LD_SWITCH_SYSTEM_1): Remove, update users.
10184
10185 * s/darwin.h (DATA_END):
10186 * m/intel386.h (DATA_END):
10187 * m/ibmrs6000.h (DATA_END):
10188 * m/alpha.h (DATA_END): Remove, unused.
10189
10190 * config.in: Regenerate.
10191 * s/ms-w32.h (subprocesses): Define unconditionally.
10192 * s/template.h (subprocesses): Update comment.
10193 * s/vms.h (subprocesses):
10194 * s/usg5-4.h (subprocesses):
10195 * s/hpux10-20.h (subprocesses):
10196 * s/gnu-linux.h (subprocesses):
10197 * s/cygwin.h (subprocesses):
10198 * s/bsd-common.h (subprocesses):
10199 * s/aix4-2.h (subprocesses):
10200 * s/darwin.h (subprocesses): Do not define, defined by default now.
10201
10202 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10203 Remove all references.
10204 (temacs): Add GNUstep specific ld flags.
10205
10206 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10207 similarly to what X does.
10208
102092008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10210
10211 * nsfns.m (x-list-fonts): Remove.
10212 (syms_of_nsfns): Drop the x-list-fonts declaration.
10213 * nsterm.m: Get rid of remaining "//" comments.
10214
102152008-07-22 Chong Yidong <cyd@stupidchicken.com>
10216
10217 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10218
10219 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10220 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10221 (Fns_own_selection_internal, Fx_disown_selection_internal)
10222 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10223
10224 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10225 ... */' style of docstrings. Doc fixes.
10226
102272008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10228
10229 * terminfo.c (UP, BC, PC): Undo previous change.
10230
10231 * nsfns.m: Rename ns prefixed functions/variables to the
10232 corresponding x versions. Update references.
10233
102342008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10235
10236 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10237
102382008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10239
10240 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10241 Remove forwarding functions.
10242 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10243 non-static.
10244 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10245 non-static.
10246 (ns_frame_parm_handlers): Use the new names.
10247 (syms_of_nsfns): Move to the end of file.
10248
10249 * nsterm.m (syms_of_nsterm): Move to the end of file.
10250
10251 * dispnew.c (init_display): Remove code for X10.
10252
102532008-07-22 Jason Rumney <jasonr@gnu.org>
10254
10255 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10256 bare drive.
10257
102582008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10259
10260 * nsterm.m (syms_of_nsterm): Remove debugging println.
10261
102622008-07-22 David Reitter <david.reitter@gmail.com>
10263
10264 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10265 Carbon implementation of the same functionality: execute arbitrary
10266 AppleScript code.
10267
102682008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10269
10270 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10271 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10272 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10273 (Fx_display_mm_height, Fx_display_mm_width)
10274 (Fx_display_backing_store, Fx_display_visual_class)
10275 (Fx_display_save_under, Fx_open_connection)
10276 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10277 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10278 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10279 (Fx_display_pixel_width, Fx_display_pixel_height)
10280 (Fx_display_usable_bounds, Fx_display_planes)
10281 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10282 ... */' style of docstrings.
10283
102842008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10285
10286 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10287 on this platform.
10288 (mips):
10289 * m/iris4d.h (mips): Do not define.
10290 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10291
10292 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10293
10294 * image.c:
10295 * nsfns.m:
10296 * nsselect.m:
10297 * nsterm.h:
10298 * nsterm.m: Rename ns prefixed functions/variables to the
10299 corresponding x versions. Update references.
10300
10301 * m/ibms390x.h (NO_REMAP): Do not undefine.
10302
10303 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10304
103052008-07-21 Chong Yidong <cyd@stupidchicken.com>
10306
10307 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10308 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10309 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10310 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10311 (Fns_display_mm_height, Fns_display_mm_width)
10312 (Fns_display_backing_store, Fns_display_visual_class)
10313 (Fns_display_save_under, Fns_open_connection)
10314 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10315 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10316 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10317 (Fns_display_pixel_width, Fns_display_pixel_height)
10318 (Fns_display_usable_bounds, Fx_display_planes)
10319 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10320
103212008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10322
10323 * print.c (print_object): Check print_depth before searching for
10324 circularities.
10325
103262008-07-21 Michael Albinus <michael.albinus@gmx.de>
10327
10328 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10329 only sprintf.
10330
103312008-07-21 Kenichi Handa <handa@m17n.org>
10332
10333 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10334
103352008-07-20 Andreas Schwab <schwab@suse.de>
10336
10337 * syntax.c (find_start_pos, find_start_value)
10338 (find_start_value_byte, find_start_begv, find_defun_start)
10339 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10340
103412008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10342
10343 * s/sol2-3.h: Insert contents of s/sol2.h.
10344 (LD_SWITCH_SYSTEM): Remove redundant definition.
10345 * s/sol2.h: Remove, unused.
10346
103472008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10348
10349 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10350
103512008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10352
10353 * Makefile.in (ns_appdir): Fix typo in find command.
10354
103552008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10356
10357 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10358
10359 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10360 added not supported anymore.
10361
10362 * s/usg5-4-2.h (LIBS_SYSTEM):
10363 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10364
10365 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10366 * s/lynxos.h (GETPGRP_NO_ARG):
10367 * s/hpux10-20.h (NO_SIOCTL_H):
10368 * s/gnu.h (GETPGRP_NO_ARG):
10369 * s/gnu-linux.h (NO_SIOCTL_H):
10370 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10371 * s/cygwin.h (GETPGRP_NO_ARG):
10372 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10373 (C_DEBUG_SWITCH): Remove duplicate definition.
10374
10375 * m/ibms390.h: Remove boilerplate comments.
10376
10377 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10378
10379 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10380 (wait_reading_process_output): Remove code for SunOS, platform not
10381 supported anymore. Use SOLARIS2 instead of sun.
10382
103832008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10384
10385 * font.c (font_open_by_name): Under NS, default lface height to zero.
10386 (font_open_for_lface): Under NS, set size based on frame fontsize.
10387 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10388 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10389
103902008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10391
10392 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10393 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10394 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10395 YES/NO.
10396 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10397 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10398 * Makefile.in (clean): Clear out build destination dir.
10399
104002008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10401
10402 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10403 xterm, xselect.
10404 * lisp.h: Remove declaration of hash_remove.
10405 * nsgui.h: Remove redefinitions of hash_remove.
10406 * fns.c (hash_remove): Rename to hash_remove_from_table.
10407
104082008-07-19 Seiji Zenitani <zenitani@mac.com>
10409
10410 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10411 strdup() the family UTF8String before modifying it.
10412
104132008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10414
10415 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10416 NS_FACE_BACKGROUND with 0 instead of nil.
10417 * nsfont.m (nsfont_draw): Same.
10418
104192008-07-19 Chong Yidong <cyd@stupidchicken.com>
10420
10421 * nsfns.m (ns_set_background_color): Fix crash.
10422
104232008-07-18 Chong Yidong <cyd@stupidchicken.com>
10424
10425 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10426
104272008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10428
10429 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10430
104312008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10432
10433 * gtkutil.c: Include <config.h> instead of "config.h".
10434
10435 * lisp.h (Foverlay_buffer): Add EXFUN.
10436
10437 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10438 child process to complete child_setup. Undo 2005-09-21 change.
10439
10440 * s/darwin.h: Mention setsid after vfork.
10441
104422008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10443
10444 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10445 Depend on macgui.h.
10446
10447 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10448 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10449
10450 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10451 and f19.
10452 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10453
10454 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10455 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10456 Remove enumerators.
10457
10458 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10459 Check if FACE_FROM_ID returns NULL.
10460
104612008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10462
10463 * w32inevt.c (change_frame_size): Remove extern declaration.
10464 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10465 change_frame_size.
10466
104672008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10468
10469 * getloadavg.c: Revert last change (2008-07-15).
10470
104712008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10472
10473 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10474 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10475 from configure.
10476
104772008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10478
10479 * s/sol2.h:
10480 * s/sol2-4.h: Reorganize conditionals.
10481
10482 * ecrt0.c: Remove code depending on m68000, not used anymore.
10483
10484 * fns.c (hash_remove): Make static.
10485 * lisp.h (hash_remove): Don't prototype.
10486
10487 * m/ibmrs6000.h:
10488 * m/ibms390x.h:
10489 * m/macppc.h: Remove boilerplate comments.
10490
10491 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10492 Solaris, which does not need them.
10493
10494 * m/vax.h: Remove comments about unsupported systems.
10495
10496 * s/darwin.h: Reorganize ifdefs.
10497
104982008-07-17 Andreas Schwab <schwab@suse.de>
10499
10500 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10501
105022008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10503
10504 Use SDATA. Follow coding convention of placing operators at
10505 beginning of next line rather than end of previous line, and placing
10506 spaces around infix operators.
10507
10508 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10509 in case it was defined already.
10510 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10511 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10512 ns_default.
10513 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10514 Lisp_Objects.
10515 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10516 (ns_defined_color, ns_color_to_lisp): Declare.
10517 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10518 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10519 it's accepted even with USE_LISP_UNION_TYPE.
10520 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10521 (update_frame_tool_bar): Remove apparently obsolete tests for
10522 non-integerness of f->tool_bar_lines.
10523 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10524 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10525 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10526 (nsfont_open): Don't confuse NULL for Qnil.
10527 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10528 * menu.h (find_and_call_menu_selection):
10529 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10530 (find_and_return_menu_selection): Always return something.
10531 * frame.h: Include dispextern.h for Display_Info.
10532 (display_x_get_resource): Declare.
10533
105342008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10535
10536 * syntax.c: Remove stdio.h include accidentally introduced in
10537 Emacs.app commit.
10538 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10539 NS_IMPL_COCOA.
10540 * keyboard.c (handle_async_input, input_available_signal): Remove
10541 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10542
105432008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10544
10545 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10546 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10547 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10548 Use SDATA.
10549
10550 * keymap.c: Remove all NS-specific code.
10551 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10552 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10553 where_is_preferred_modifier, return a different value depending on how
10554 preferred is the binding.
10555 (where_is_internal): Adjust accordingly.
10556 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10557 Adjust to new preferred_sequence_p.
10558 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10559 * keyboard.c (parse_solitary_modifier): Not static any more.
10560 * keyboard.h (parse_solitary_modifier): Declare.
10561
105622008-07-16 Andreas Schwab <schwab@suse.de>
10563
10564 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10565 of easymenu.
10566
105672008-07-16 Chong Yidong <cyd@stupidchicken.com>
10568
10569 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10570 that we don't move off the line.
10571
105722008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10573
10574 * keyboard.c (Qsuper): Remove.
10575 (parse_menu_item): Don't call where_is_internal specially for NS.
10576
105772008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10578
10579 * s/gnu-linux.h: Remove boilerplate comments.
10580
10581 * m/alpha.h (__ELF__): Consolidate conditions.
10582
10583 * m/m68k.h (linux): Use GNU_LINUX instead.
10584 Remove boilerplate comments.
10585
10586 * m/intel386.h: Undo refactoring from previous change.
10587 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10588 too, remove dead code.
10589 (linux): Use GNU_LINUX instead.
10590
105912008-07-16 Jason Rumney <jasonr@gnu.org>
10592
10593 * w32gui.h: Repeat 26 June changes lost by last change.
10594
105952008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10596
10597 * systty.h: Remove code for Aix on 386, unsupported platform.
10598
10599 * s/ms-w32.h: Remove boilerplate comments.
10600 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10601
10602 * s/gnu-linux.h (TERM): Remove support.
10603 (HAVE_SYSVIPC): Remove, unused.
10604 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10605 for this system.
10606
10607 * process.c: Remove support for IRIS, unused.
10608 Remove support for TERM, not relevant anymore.
10609
10610 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10611 used with the definition.
10612
10613 * s/aix4-2.h (static): Do not undef.
10614
10615 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10616 only used on Aix.
10617 (HAVE_SYSVIPC): Remove, unused.
10618
10619 * m/hp800.h (CANNOT_DUMP): Do not undef.
10620
10621 * m/alpha.h: Fix comment.
10622
10623 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10624 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10625 used by this configuration.
10626 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10627 * unexec.c: Remove code depending on HPUX and
10628 USG_SHARED_LIBRARIES, not used with this file. Remove code
10629 depending on IRIS, unused. Remove if 0-ed code.
10630
10631 * s/template.h: Remove comments about static.
10632
10633 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10634 Remove if 0-ed code.
10635 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10636 were the same as the default.
10637 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10638 Remove boilerplate comments.
10639 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10640 (HAVE_SYSVIPC): Remove, unused.
10641 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10642
10643 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10644 Remove boilerplate comments.
10645 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10646 Remove boilerplate comments.
10647 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10648 Remove boilerplate comments.
10649 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10650
10651 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10652 USG systems which do not use DATA_SEG_BITS.
10653 Refactor code. Remove boilerplate comments.
10654
10655 * m/ibms390.h:
10656 * m/m68k.h:
10657 * s/bsd-common.h:
10658 * s/cygwin.h:
10659 * s/darwin.h:
10660 * s/freebsd.h:
10661 * s/gnu.h:
10662 * s/msdos.h: Remove boilerplate comments.
10663
10664 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10665 do not use this file.
aac0c6e3
MR
10666 (IRIS_4D): Remove, unused.
10667
10668 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10669 do not use this file.
aac0c6e3
MR
10670 (SIGN_EXTEND_CHAR):
10671 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10672 * unexmips.c: Remove file, unused.
10673
10674 * editfns.c (Fuser_full_name): Replace the only use of
10675 USER_FULL_NAME with its value.
10676 * config.in: Regenerate.
10677
106782008-07-16 David Reitter <david.reitter@gmail.com>
10679
10680 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10681 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10682
106832008-07-16 Glenn Morris <rgm@gnu.org>
10684
10685 * emacs.c (system-type): Doc fix.
10686
106872008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10688
10689 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10690 If the cache doesn't work, let's fix it, rather than work around it.
10691
106922008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10693
10694 * Makefile.in: Correct additions for nsfont.o in last commit.
10695 * nsfont.m: New file (forgot last commit).
10696
106972008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10698
10699 * callproc.c (set_initial_environment): Initialize
10700 Vprocess_environment under CANNOT_DUMP (fixes crash when
10701 batch-compiling for bootstrap).
10702
107032008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10704 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10705
10706 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10707 fix crash due to different init order.
10708
107092008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10710
10711 Changes and additions for NeXTstep windowing system (Cocoa and
10712 GNUstep) support.
10713
10714 * Makefile.in:
10715 * config.in: Support defines and build commands for NS port.
10716 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10717 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10718 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10719 windowing.
10720 (struct face): Add synth_ital field.
10721 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10722 (init_display): Initialize Vinitial_window_system to "ns" when so
10723 compiled.
10724 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10725 (display_arg): Use under NS.
10726 (main): Under NS, allocate autorelease pool and handle command line
10727 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10728 (standard_args): Add NS-specific args.
10729 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10730 * font.c (DEFAULT_ENCODING): New variable.
10731 (font_find_for_lface): Use it.
10732 (syms_of_font): Load syms_of_nsfont under NS.
10733 * font.h: Declare nsfont_driver when compiled under NS.
10734 * fontset.c: When compiling under NS, include nsterm.h.
10735 (fontset_from_font): Autoconstruct fontset under NS.
10736 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10737 symbol, document and use it.
10738 (do_switch_frame): When for_deletion under Cocoa, add
10739 Fraise_frame(Qnil).
10740 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10741 (x_get_arg): Allow "yes" and "no" as boolean values.
10742 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10743 Qright under Cocoa.
10744 (focus-follows-mouse): Default to 0 under NS.
10745 * frame.h (enum output_method): Add output_ns.
10746 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10747 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10748 (FRAME_WINDOW_P): NS-specific definition.
10749 * fringe.c (max_used_fringe_bitmap): Make public.
10750 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10751 (getloadavg): Use NeXT code under descendant OS's.
10752 * image.c (includes and header section, x_create_bitmap_from_data)
10753 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10754 (image_background_transparent, x_clear_image_1)
10755 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10756 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10757 (x_to_xcolors, x_from_xcolors, x_disable_image)
10758 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10759 other GUIs, including XPM support using code originally written for
10760 Carbon GUI.
10761 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10762 using NS API.
10763 (image_ascent): Use font metrics macros instead of direct struct field
10764 access.
10765 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10766 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10767 Also, handle NS as GTK for menu bar purposes.
10768 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10769 toolkit where they differ.
10770 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10771 use cachelist, still needed under NS.
10772 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10773 (struct widget_value): Define it here for menu.c.
10774 * keymap.c (includes): Include modifier internals.
10775 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10776 NS.
10777 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10778 support for preferring sequences using certain modifiers, specified by
10779 the FIRSTONLY argument.
10780 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10781 under NS GNUstep implementation.
10782 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10783 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10784 * menu.c: Include nsterm.h under NS.
10785 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10786 (free_menubar_widget_tree_value, update_submenu_strings)
10787 (find_and_call_menu_selection): Treat NS as X and NT.
10788 (find_and_return_menu_selection): New function, used for popup menus.
10789 * nsgui.h:
10790 * nsterm.h:
10791 * nsfns.m:
10792 * nsimage.m:
10793 * nsmenu.m:
10794 * nsselect.m:
10795 * nsterm.m: New files.
10796 * process.c (wait_reading_process_output): Under NS, call ns_select()
10797 instead of plain select().
10798 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10799 beginning of buffer.
10800 * sysselect.h (init_process): Rename when compiling under Cocoa to
10801 avoid name conflict.
10802 * termhooks.h (display_info): Add ns_display_info to union.
10803 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10804 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10805 COCOA environment.
10806 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10807 unexec() signature. (Note, this will dump, but the resulting file
10808 crashes; unexosx is used instead; keeping around for reference and
10809 possible aid in getting dump working under GNUstep.)
10810 * w32gui.h (button_type, widget_value): Remove definitions (now in
10811 keyboard.h).
10812 * window.c: Include nsterm.h when compiling under NS.
10813 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10814 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10815 other GUI windowing systems.
10816 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10817 GTK.
10818 (x_consider_frame_title): Under NS, set icon type and frame
10819 modified-state indicator; use ns_set_name_as_filename() when using
10820 formatted title.
10821 (update_window_cursor): Make public when compiling under NS.
10822 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10823 (hourglass_atimer, Vhourglass_delay
10824 * xfaces.c (header section, init_frame_faces, clear_font_table)
10825 (defined_color, unload_color, x_face_list_fonts)
10826 (prepare_face_for_display): Add NS support parallel to other GUIs.
10827 Emulate GCs like other non-X GUIs.
10828 (split_font_name): Don't lowercase font name under NS.
10829 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10830 under NS.
10831 * s/darwin.h: Add support for compilation under NS.
10832
108332008-07-15 Jason Rumney <jasonr@gnu.org>
10834
10835 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10836 (w32_show_hourglass): Rename from show_hourglass.
10837 (w32_hide_hourglass): Rename from hide_hourglass.
10838 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10839 (Vhourglass_delay): Declare extern.
10840 (hourglass_started): Remove.
10841
10842 * xdisp.c (Vhourglass_delay): Remove static.
10843 (hourglass_started, start_hourglass, cancel_hourglass):
10844 Don't include these versions on WINDOWSNT.
10845
108462008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10847
10848 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10849 variables (formerly in xfns.c).
10850 (show_hourglass, hide_hourglass): New prototypes (same).
10851 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10852 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10853 in xfns.c).
10854 (syms_of_xdisp): Declare/initialize display-hourglass,
10855 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10856 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10857 formerly in xfns.c.
10858 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10859 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10860 (start_hourglass, cancel_hourglass): Remove.
10861 (show_hourglass, hide_hourglass): Remove prototypes and static
10862 modifiers.
10863 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10864 hourglass_atimer, hourglass_shown_p declaration/initialization.
10865 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10866 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10867 (start_hourglass, cancel_hourglass): Remove.
10868 (show_hourglass, hide_hourglass): Remove prototypes and static
10869 modifiers.
10870 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10871 hourglass_atimer, hourglass_shown_p declaration/initialization.
10872 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10873 (DEFAULT_HOURGLASS_DELAY): Remove.
10874 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10875 hourglass_shown_p declaration/initialization.
10876
108772008-07-14 Jason Rumney <jasonr@gnu.org>
10878
10879 * w32fns.c (w32_get_arg): Remove wrapper function.
10880 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10881 directly.
10882 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10883
108842008-07-14 Kenichi Handa <handa@m17n.org>
10885
10886 * xfont.c (xfont_open): Add workaround for X's bug.
10887
108882008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10889
10890 * fontset.c: Include <stdio.h> unconditionally.
10891
108922008-07-13 Michael Albinus <michael.albinus@gmx.de>
10893
10894 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10895 for filtering.
10896
108972008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10898
10899 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10900
10901 * m/macppc.h:
10902 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10903
10904 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10905 (SPECIAL_EMACS_INT):
10906 * m/ia64.h (SPECIAL_EMACS_INT):
10907 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10908 * s/gnu.h (NLIST_STRUCT):
10909 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10910 * s/gnu-linux.h (LINUX):
10911 * s/msdos.h (HAVE_FACES):
10912 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10913
10914 * systty.h:
10915 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10916 anymore.
10917
109182008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10919
10920 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10921 always defined as int.
10922
10923 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10924 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10925 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10926 * s/freebsd.h (HAVE_WAIT_HEADER):
10927 * s/bsd-common.h (HAVE_UNION_WAIT):
10928 * s/aix4-2.h (HAVE_WAIT_HEADER):
10929 * m/mips.h (HAVE_UNION_WAIT):
10930 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10931 (COFF, static): Do not define, they are undefined later in the file.
10932
10933 * process.c (update_status): Don't use a union.
10934 (status_convert):
10935 (sigchld_handler): Use int instead of WAITTYPE.
10936
109372008-07-12 Chong Yidong <cyd@stupidchicken.com>
10938
10939 * indent.c (Fvertical_motion): Restore hscroll before moving to
10940 goal column.
10941
109422008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10943
10944 * lisp.h: Remove left over code.
10945
109462008-07-11 Andreas Schwab <schwab@suse.de>
10947
10948 * lisp.h: Fix logic in last change.
10949
10950 * menu.h: New file.
10951 * menu.c: Include it.
10952 * xmenu.c: Likewise.
10953 * Makefile.in: Update dependencies.
10954
109552008-07-11 Kenichi Handa <handa@m17n.org>
10956
10957 * fontset.c (fontset_from_font): Cancel the previous change.
10958
109592008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10960
10961 * lisp.h:
10962 * w32heap.c:
10963 * emacs.c:
10964 * alloc.c: Replace all references of NO_UNION_TYPE with
10965 USE_LISP_UNION_TYPE.
10966
10967 * m/xtensa.h (NO_UNION_TYPE):
10968 * m/vax.h (NO_UNION_TYPE):
10969 * m/template.h (NO_UNION_TYPE):
10970 * m/sparc.h (NO_UNION_TYPE):
10971 * m/mips.h (NO_UNION_TYPE):
10972 * m/macppc.h (NO_UNION_TYPE):
10973 * m/m68k.h (NO_UNION_TYPE):
10974 * m/iris4d.h (NO_UNION_TYPE):
10975 * m/intel386.h (NO_UNION_TYPE):
10976 * m/ibms390x.h (NO_UNION_TYPE):
10977 * m/ibms390.h (NO_UNION_TYPE):
10978 * m/ibmrs6000.h (NO_UNION_TYPE):
10979 * m/ia64.h (NO_UNION_TYPE):
10980 * m/hp800.h (NO_UNION_TYPE):
10981 * m/arm.h (NO_UNION_TYPE):
10982 * m/amdx86-64.h (NO_UNION_TYPE):
10983 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10984 defining it the same.
10985
109862008-07-10 Chong Yidong <cyd@stupidchicken.com>
10987
10988 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10989
109902008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10991
10992 * fileio.c:
50426a04 10993 * sysdep.c:
aac0c6e3
MR
10994 * systty.h:
10995 * m/ibmrs6000.h:
10996 * m/iris4d.h:
10997 * s/aix4-2.h:
10998 * s/freebsd.h:
10999 * s/gnu-linux.h:
11000 * s/hpux10-20.h:
11001 * s/hpux11.h:
11002 * s/netbsd.h:
11003 * s/sol2-3.h:
11004 * s/sol2-4.h:
11005 * s/sol2.h:
11006 * s/usg5-4.h:
11007 * s/vms.h: Remove references to unused variables.
11008
110092008-07-10 Andreas Schwab <schwab@suse.de>
11010
11011 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11012 pattern before matching the generic family.
11013
110142008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11015
11016 * unexec.c:
11017 * s/vms.h:
11018 * s/usg5-4-2.h:
11019 * s/sol2-5.h:
11020 * s/freebsd.h:
11021 * s/darwin.h: Remove dead code.
11022
11023 * m/template.h:
11024 * m/sparc.h:
11025 * m/mips.h:
11026 * m/m68k.h:
11027 * m/iris4d.h:
11028 * m/intel386.h:
11029 * m/ibms390x.h:
11030 * m/ibms390.h:
11031 * m/ia64.h:
11032 * m/hp800.h:
11033 * m/arm.h:
11034 * m/amdx86-64.h: Remove dead code and references to unused
11035 and compiler defined symbols.
11036
11037 * unexmips.c:
11038 * unexelf.c: Remove references to desupported systems.
11039
11040 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11041
11042 * m/powermac.h: Remove boilerplate comments.
11043 (NO_REMAP): Remove unused definition.
11044
11045 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11046 define them.
11047
110482008-07-10 Kenichi Handa <handa@m17n.org>
11049
11050 * xfont.c (xfont_open): Log the reason of failure.
11051
110522008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11053
11054 * fontset.c (fontset_get_font_group):
11055 * font.c (font_check_otf): Specify argument types.
11056
110572008-07-09 Kenichi Handa <handa@m17n.org>
11058
11059 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11060 non-ASCII char is found.
11061
11062 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11063 (reorder_font_vector): Change the arg preferred_family to font.
11064 Prefer the spec matching with font.
11065 (fontset_get_font_group): New function.
11066 (fontset_find_font): Change the format of an element of a realized
11067 fontset. Use fontset_get_font_group.
11068 (fontset_font): Try the current fontset, the default fontset, the
11069 fallbacks of the current fontset, and the fallbacks of the default
11070 fontset in this order.
11071 (face_for_char): Delete the shortcut to use the current font.
11072 (fontset_from_font): Don't set fonts for Latin in the fontset.
11073
11074 * font.h (font_make_object, font_match_p): Adjust prototypes.
11075
11076 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11077
11078 * font.c (font_make_object): New arg entity and pixelsize.
11079 (font_check_otf_features, font_check_otf): New functions.
11080 (font_match_p): Check :lang, :script, and :otf properties.
11081
11082 * xfont.c (xfont_open): Adjust it for the change of
11083 font_make_object.
11084 (xfont_text_extents): Fix initial setting of metrics.
11085
11086 * ftfont.c (struct ftfont_info): New member index, delete member
11087 fc_charset_idx. Make the member order compatible with struct
11088 xftfont_info.
11089 (fc_charset_table): Change charset names to registry names.
11090 (ftfont_pattern_entity): Delete the args registry and
11091 fc_charset_idx. Change the value of :font-entity property
11092 to (FONTNAME . INDEX). Always set :registry property to
11093 `iso10646-1'.
11094 (struct ftfont_cache_data): New struct.
11095 (ftfont_lookup_cache): New arg for_face.
11096 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11097 (ftfont_driver): Set the member otf_capability.
11098 (ftfont_get_charset): Adjust it for the change of
11099 fc_charset_table.
11100 (OTF_TAG_SYM): New macro.
11101 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11102 for the change of fc_charset_table.
11103 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11104 ftfont_pattern_entity. Add FC_INDEX to objset.
11105 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11106 and ftfont_pattern_entity.
11107 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11108 font_make_object, struct ftfont_info.
11109 (ftfont_has_char): Use ftfont_get_fc_charset.
11110 (ftfont_otf_features, ftfont_otf_capability): New functions.
11111 (ftfont_shape): Use ftfont_get_otf.
11112 (ftfont_text_extents): Fix initial setting of metrics.
11113
11114 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11115 member order compatible with struct ftfont_info.
11116 (xftfont_open): Add FC_CHARSET to the pattern. Set
11117 xftfont_info->ft_size. Don't unlock the face. Check BDF
11118 properties if appropriate.
11119 (xftfont_close): Unlock the face.
11120 (xftfont_anchor_point, xftfont_shape): Deleted.
11121 (syms_of_xftfont): Don't set members anchor_point and shape of
11122 xftfont_driver.
11123
11124 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11125 font_make_object.
11126
11127 * w32font.c (w32font_open): Adjust it for the change of
11128 font_make_object.
11129 (w32font_open_internal): Don't set properties of font_object here.
11130
111312008-07-08 Chong Yidong <cyd@stupidchicken.com>
11132
11133 * macfns.c (x_create_tip_frame):
11134 * w32fns.c (x_create_tip_frame):
11135 * xfns.c (x_create_tip_frame): Pass parameter argument to
11136 face-set-after-frame-default.
11137
11138 * xfaces.c (Finternal_merge_in_global_face): Save merged
11139 attributes for the default face back into the face vector.
11140
111412008-07-08 Andreas Schwab <schwab@suse.de>
11142
11143 * fontset.h: Declare fontset_from_font. Don't declare
11144 new_fontset_from_font and fontset_from_font_name.
11145 * xterm.c: Include "fontset.h".
11146 * Makefile.in (xterm.o): Update dependencies.
11147
111482008-07-08 Glenn Morris <rgm@gnu.org>
11149
11150 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11151 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11152
111532008-07-07 Chong Yidong <cyd@stupidchicken.com>
11154
11155 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11156 (x_set_frame_parameters): Don't bind it.
11157
111582008-07-07 Juanma Barranquero <lekktu@gmail.com>
11159
11160 * w32fns.c (map_w32_filename): Declare extern.
11161
111622008-07-07 Jason Rumney <jasonr@gnu.org>
11163
11164 * w32term.c (WS_EX_LAYERED): Define if not already.
11165
111662008-07-06 Chong Yidong <cyd@stupidchicken.com>
11167
11168 * xfaces.c (set_font_frame_param): Don't try to set the font
11169 parameter if it is still unspecified in the lface.
11170
111712008-07-05 Chong Yidong <cyd@stupidchicken.com>
11172
11173 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11174 face if it didn't already exist.
11175
11176 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11177
111782008-07-05 Andreas Schwab <schwab@suse.de>
11179
11180 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11181
111822008-07-05 Chong Yidong <cyd@stupidchicken.com>
11183
11184 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11185 word-wrapping.
11186 (IT_DISPLAYING_WHITESPACE): New macro.
11187 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11188 when word-wrapping. Simplify word-wrapping logic. Use correct
11189 pixel positions when saving copies of the iterator.
11190 (display_line): Use proper wrap point if the last character on a
11191 line was preceded by whitespace.
11192
111932008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11194
11195 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11196
111972008-07-04 Kenichi Handa <handa@m17n.org>
11198
11199 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11200
11201 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11202
112032008-07-02 Jason Rumney <jasonr@gnu.org>
11204
11205 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11206 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11207
11208 * xdisp.c (next_element_from_display_vector): Move assignment out
11209 of if statement.
11210
112112008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11212
11213 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11214
11215 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11216 (syms_of_fileio): Initialize and export them.
11217 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11218
11219 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11220 (Fsystem_move_file_to_trash): New function.
11221 (syms_of_w32fns): Export it to lisp.
11222
112232008-07-01 Jason Rumney <jasonr@gnu.org>
11224
11225 * w32font.c (w32font_text_extents): Don't count overhang as part
11226 of width.
11227
112282008-06-30 Miles Bader <miles@gnu.org>
11229
11230 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11231 Add `avoid_cursor_p' field.
11232
11233 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11234 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11235 (append_glyph, append_composite_glyph, produce_image_glyph)
11236 (append_stretch_glyph): Initialize avoid_cursor_p.
11237 (get_it_property): Rename from `get_line_height_property'.
11238 (x_produce_glyphs): Use get_it_property.
11239 (handle_line_prefix, push_display_prop): New functions.
11240 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11241 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11242 New variables.
11243 (syms_of_xdisp): Initialize them.
11244
112452008-06-30 Kenichi Handa <handa@m17n.org>
11246
11247 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11248 XftDefaultSubstitute (they are called in XftFontMatch).
11249 (xftfont_open): Fix args to ftfont_font_format.
11250
11251 * ftfont.c (fc_charset_table): New member lang.
11252 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11253 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11254 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11255 (ftfont_open): Fix args to ftfont_font_format.
11256 (ftfont_font_format): New arg filename.
11257
112582008-06-30 Chong Yidong <cyd@stupidchicken.com>
11259
11260 * xfaces.c (Finternal_merge_in_global_face): If default face was
11261 modified, realize it again. Update the font face attribute.
11262
112632008-06-29 Jason Rumney <jasonr@gnu.org>
11264
11265 * w32term.c (x_set_frame_alpha): Fix logic.
11266
112672008-06-29 Kenichi Handa <handa@m17n.org>
11268
11269 * fontset.c (Finternal_char_font): Return font-object instead of
11270 font-name.
11271
11272 * composite.c (get_composition_id): Fix the width calculation for TAB.
11273
112742008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11275
11276 * indent.c (Fvertical_motion): Properly handle float column arg.
11277
112782008-06-28 Jason Rumney <jasonr@gnu.org>
11279
11280 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11281 (pfnSetLayeredWindowAttributes): New function pointer.
11282 (w32_initialize): Initialize it when supported.
11283 (x_set_frame_alpha): New function.
11284
11285 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11286 (w32_frame_parm_handlers): Set alpha handler.
11287
11288 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11289
112902008-06-27 Jason Rumney <jasonr@gnu.org>
11291
11292 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11293 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11294 (w32_to_x_charset, x_to_w32_charset)
11295 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11296 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11297 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11298 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11299 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11300 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11301 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11302 (Qw32_charset_unicode): Remove.
11303 (syms_of_w32fns): Update for above changes.
11304
11305 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11306 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11307 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11308 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11309 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11310 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11311 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11312 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11313 (syms_of_w32font): Update for above changes.
11314
113152008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11316
11317 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11318 removed #if.
11319 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11320
113212008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 11322 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11323
11324 * makefile.w32-in (LOCAL_FLAGS):
11325 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11326
11327 * sysdep.c (_spawnlp, _getpid):
11328 Declare with explicit _cdecl instead of _CRTAPI1.
11329
11330 * editfns.c (Fget_internal_run_time):
11331 Check for WINDOWSNT with #ifdef, not #if.
11332
113332008-06-26 Jason Rumney <jasonr@gnu.org>
11334
11335 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11336
11337 * w32term.c (x_draw_glyph_string_foreground)
11338 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11339 Use FONT_HANDLE macro.
11340 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11341
11342 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11343 (uniscribe_encode_char): Use FONT_HANDLE macro.
11344
11345 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11346 (w32font_text_extents): Use precast w32_font.
11347 (w32font_close): Free cached metrics.
11348 (w32font_open_internal): Allocate space for name on stack.
11349
113502008-06-26 Chong Yidong <cyd@stupidchicken.com>
11351
11352 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11353
113542008-06-26 Jason Rumney <jasonr@gnu.org>
11355
11356 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11357 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11358
113592008-06-26 Juanma Barranquero <lekktu@gmail.com>
11360
11361 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11362
113632008-06-26 Jason Rumney <jasonr@gnu.org>
11364
11365 * w32bdf.c, w32bdf.h: Remove obsolete files.
11366
11367 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11368
11369 * w32gui.h: Don't include w32bdf.h.
11370 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11371 Remove obsolete font support.
11372
11373 * w32font.h (struct w32font_info): Remove compat_w32_font.
11374 Add hfont member.
11375 (FONT_COMPAT): Remove obsolete macro.
11376
11377 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11378 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11379 (w32font_open_internal): Remove compat code. Set new hfont member.
11380 (Fx_select_font): Use new hfont member.
11381
11382 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11383 (uniscribe_encode_char): Use new hfont member.
11384
11385 * w32term.c (x_draw_glyph_string_foreground)
11386 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11387 (x_draw_glyph_string): Use metrics in w32font_info.
11388
113892008-06-26 Kenichi Handa <handa@m17n.org>
11390
11391 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11392
113932008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11394
11395 * unexnext.c:
11396 * m/ews4800.h:
11397 * m/hp9000s300.h:
11398 * m/ibm370aix.h:
11399 * m/mips-siemens.h:
11400 * m/ncr386.h:
11401 * m/next.h:
11402 * m/pmax.h:
11403 * m/powerpcle.h:
11404 * m/tandem-s2.h:
11405 * s/386bsd.h:
11406 * s/bsd386.h:
11407 * s/bsd4-1.h:
11408 * s/bsd4-2.h:
11409 * s/bsdos2-1.h:
11410 * s/bsdos2.h:
11411 * s/bsdos3.h:
11412 * s/bsdos4.h:
11413 * s/nextstep.h:
11414 * s/ultrix4-3.h:
11415 * s/usg5-0.h:
11416 * s/usg5-2-2.h:
11417 * s/usg5-2.h:
11418 * s/usg5-4-3.h:
11419 * s/ux4800.h:
11420 * s/uxpds.h:
11421 * s/uxpv.h: Remove support for obsolete systems.
11422 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11423 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11424 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11425 Remove, insert contents in s/aix4-2.h.
11426 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11427 * s/bsd4-3.h: Rename to ...
11428 * s/bsd-common.h: ... this.
11429 * data.c:
11430 * doc.c:
11431 * ecrt0.c:
11432 * emacs.c:
11433 * fileio.c:
11434 * floatfns.c:
11435 * keyboard.c:
11436 * mem-limits.h:
11437 * print.c:
11438 * process.c:
11439 * sysdep.c:
11440 * syssignal.h:
11441 * systty.h:
11442 * syswait.h:
11443 * term.c:
11444 * unexec.c:
11445 * unexelf.c:
11446 * unexhp9k800.c:
11447 * m/hp800.h:
11448 * m/ibmrs6000.h:
11449 * m/mips.h:
11450 * m/vax.h:
11451 * s/darwin.h:
11452 * s/freebsd.h:
11453 * s/gnu.h:
11454 * s/ms-w32.h:
11455 * s/msdos.h:
11456 * s/netbsd.h:
11457 * s/template.h: Remove references to obsolete variables.
11458
11459 * Makefile.in: Add dependencies for all unexec files.
11460 (admindir): Remove unused variable.
11461 (UNEXEC_SRC): Remove references.
11462
114632008-06-25 Chong Yidong <cyd@stupidchicken.com>
11464
11465 * xfns.c (x_default_font_parameter): If Xft is available, first
11466 try Monospace-12 for the default font.
11467
114682008-06-25 Jason Rumney <jasonr@gnu.org>
11469
11470 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11471
114722008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11473
11474 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11475
11476 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11477
114782008-06-25 Juanma Barranquero <lekktu@gmail.com>
11479
11480 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11481 <scroll-conservatively>: Fix typo in docstring.
11482
11483 * xselect.c (Fx_send_client_event): Doc fix.
11484
114852008-06-25 Kenichi Handa <handa@m17n.org>
11486
11487 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11488
11489 * font.c (font_parse_fcname): Remove unused variables.
11490 (font_sort_entites): Delete the arg SPEC. Caller changed.
11491 Fix for the case of ! best_only.
11492 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11493
11494 * lisp.h (Fstring_to_unibyte): EXFUN it.
11495
11496 * character.h (str_to_unibyte): Extern it.
11497
11498 * character.c (str_to_unibyte): New function.
11499
11500 * fns.c (Fstring_to_unibyte): New function.
11501 (syms_of_fns): Defsubr it.
11502
115032008-06-24 Kenichi Handa <handa@m17n.org>
11504
11505 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11506 DPI too.
11507 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11508
115092008-06-24 Andreas Schwab <schwab@suse.de>
11510
11511 * Makefile.in (${lispsource}loaddefs.el): Rename from
11512 ../lisp/loaddefs.el.
11513 (bootstrap-clean): Do what distclean does but don't remove
11514 Makefile.
11515 (distclean): Depend on bootstrap-clean and remove Makefile.
11516
115172008-06-24 Chong Yidong <cyd@stupidchicken.com>
11518
11519 * buffer.h (struct buffer): New member word_wrap.
11520
11521 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11522 word-wrap.
11523 (init_buffer_once): Initialize them.
11524
11525 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11526 line_wrap enum possessing three possible values.
11527
11528 * termopts.h: Replace truncate_partial_width_windows with
11529 Vtruncate_partial_width_windows.
11530
11531 * dispnew.c (direct_output_for_insert): Avoid direct output when
11532 inserting a space with word wrap on.
11533
11534 * indent.c (compute_motion): Obey integer values of
11535 truncate-partial-width-windows.
11536
11537 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11538 replacing truncate_partial_width_windows.
11539 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11540 truncate only if the window width is below that integer.
11541 (start_display, resize_mini_window, produce_stretch_glyph)
11542 (display_string, move_it_in_display_line_to): Use line_wrap.
11543 (back_to_previous_visible_line_start, reseat_1): Reset
11544 string_from_display_prop_p.
11545 (display_line): Extend default face to end of line when wrapping.
11546
115472008-06-24 Kim F. Storm <storm@cua.dk>
11548
11549 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11550 to wrap continued lines at word boundaries.
11551
115522008-06-24 Jason Rumney <jasonr@gnu.org>
11553
11554 * font.c (Ffont_face_attributes): Multiply pixel size before point
11555 conversion to avoid multiplying rounding error.
11556
115572008-06-23 Jason Rumney <jasonr@gnu.org>
11558
11559 * w32term.c (x_draw_glyph_string_background)
11560 (x_draw_glyph_string): Remove old bdf font code.
11561
11562 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11563
115642008-06-22 Kenichi Handa <handa@m17n.org>
11565
11566 * font.c (font_find_for_lface): Try the adstyle specified in
11567 the property of LFACE_FONT of LFACE (if any).
11568
115692008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11570 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11571
11572 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11573
115742008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11575
11576 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11577 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11578 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11579 (witness-emacs): Remove.
11580 (lisp, shortlisp): Move loaddefs.el earlier.
11581 (mostlyclean): Forget about witness-emacs.
11582
115832008-06-22 Glenn Morris <rgm@gnu.org>
11584
11585 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11586 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11587
115882008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11589
11590 * Makefile.in (PRECOMP): Remove.
11591 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11592 (witness-emacs): Run `compile-first'.
11593 (.el.elc): Use the new compile-onefile target.
11594
115952008-06-21 Kenichi Handa <handa@m17n.org>
11596
11597 * xftfont.c (xftfont_open): Handle QCembolden only when
11598 FC_EMBOLDEN is defined.
11599
116002008-06-21 Andreas Schwab <schwab@suse.de>
11601
11602 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11603 (.el.elc): Likewise.
11604
116052008-06-21 Miles Bader <miles@gnu.org>
11606
11607 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11608 build dir, not the lisp source dir.
11609
116102008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11611
11612 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11613 (bootstrapclean): Remove.
11614 (.el.elc): New rule.
11615 (PRECOMP): New var.
11616 (../lisp/subdirs.el): Remove.
11617 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11618 (witness-emacs): New target.
11619 (mostlyclean): Remove witness-emacs as well.
11620 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11621 Add witness-emacs dependency.
11622
116232008-06-20 Chong Yidong <cyd@stupidchicken.com>
11624
11625 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11626 defined by the font.
11627
116282008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11629
11630 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11631 (bootstrap-clean): New target that keeps TAGS around.
11632 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11633 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11634
116352008-06-20 Jason Rumney <jasonr@gnu.org>
11636
11637 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11638 Remove obsolete font code.
11639
11640 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11641 to determine language support.
11642
116432008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11644
11645 * sysdep.c (cfsetspeed): New fun extracted from the code.
11646 (cfmakeraw): Move before first use.
11647
116482008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11649
11650 * sysdep.c (cfmakeraw): Provide fallback implementation.
11651 (serial_configure): Provide fallback implementation of cfsetspeed.
11652
116532008-06-20 Kenichi Handa <handa@m17n.org>
11654
11655 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11656 the pattern.
11657
11658 * fontset.c (fontset_from_font): Copy font_spec before changing
11659 the elements.
11660
11661 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11662
116632008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11664
11665 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11666 for explicit `font' parameters.
11667
11668 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11669
116702008-06-19 Kenichi Handa <handa@m17n.org>
11671
11672 * frame.c: Include <ctype.h>.
11673 (x_set_font_backend): Allow spacing characters in the X resource
11674 for FontBackend.
11675
116762008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11677
11678 * w32fns.c, xfns.c (Qfont_param): New var.
11679 (syms_of_w32fns): Initialize it.
11680 (x_default_font_parameter): Record explicit `font' into
11681 `font-parameter'.
11682
116832008-06-18 Kenichi Handa <handa@m17n.org>
11684
11685 * font.c (font_parse_xlfd): Fix previous change.
11686 (font_parse_fcname): Don't use :fc-unknown-spec.
11687 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11688 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11689 (font_add_log): Prepend the driver name to the resulting fonts.
11690
11691 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11692 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11693 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11694
11695 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11696 (QCembolden): New variables.
11697 (syms_of_xftfont): DEFSYM them.
11698 (xftfont_open): Call XftFontMatch. Don't trust the result of
11699 XftTextExtents8 if the pixel_size is less than 5.
11700
117012008-06-18 Andreas Schwab <schwab@suse.de>
11702
11703 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11704 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11705
117062008-06-18 Jason Rumney <jasonr@gnu.org>
11707
11708 * w32font.c (w32font_list, w32font_match): Add logging.
11709
11710 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11711
117122008-06-17 Chong Yidong <cyd@stupidchicken.com>
11713
11714 * font.c (font_parse_fcname): Store divider characters for
11715 unknown-spec list. For known key symbols, intern using correct
11716 symbol name.
11717
117182008-06-17 Kenichi Handa <handa@m17n.org>
11719
11720 * xfaces.c (realize_default_face): If the frame is not on window
11721 system, set the fontset of face to nil.
11722
117232008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11724
11725 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11726
117272008-06-16 Juanma Barranquero <lekktu@gmail.com>
11728
11729 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11730 (build_font_name_from_vector): Delete externs.
11731
11732 * xfaces.c (struct font_name): Don't declare.
11733
117342008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11735
11736 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11737
117382008-06-16 Chong Yidong <cyd@stupidchicken.com>
11739
11740 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11741
117422008-06-16 Juanma Barranquero <lekktu@gmail.com>
11743
11744 * font.c (Ffont_spec): Fix usage in docstring.
11745 (Ffont_face_attributes): Doc fix.
11746
117472008-06-16 Andreas Schwab <schwab@suse.de>
11748
11749 * font.c (Ffont_face_attributes): Fix definition.
11750
117512008-06-16 Jason Rumney <jasonr@gnu.org>
11752
11753 * font.h (font_style_symbolic_from_value): Remove.
11754
11755 * font.c (font_style_symbolic_from_value): Remove.
11756 (font_style_symbolic): Revert to pre 2008-06-13 version.
11757
11758 * w32font.c (w32_to_fc_weight): New function.
11759 (w32font_full_name, logfont_to_fcname): Use it.
11760
117612008-06-16 Kenichi Handa <handa@m17n.org>
11762
11763 * font.c (font_check_object): Delete it.
11764 (font_clear_cache): Check if a font-object is alive.
11765 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11766 font-object to nil.
11767 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11768 (font_at): Don't call font_check_object.
11769 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11770
117712008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11772
11773 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11774
117752008-06-16 Chong Yidong <cyd@stupidchicken.com>
11776
11777 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11778
117792008-06-15 Chong Yidong <cyd@stupidchicken.com>
11780
11781 * font.c (font_parse_fcname): Only one decimal point.
11782 (font_unparse_fcname): Handle data in family and foundry indices
11783 as symbols, not strings.
11784 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11785
11786 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11787
11788 * font.h (font_unparse_gtkname): Add prototype.
11789
117902008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11791
11792 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11793
117942008-06-15 Andreas Schwab <schwab@suse.de>
11795
11796 * font.c (font_update_drivers): Fix crash when no drivers match.
11797
117982008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11799
11800 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11801 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11802
118032008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11804
11805 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11806
118072008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11808
11809 * process.c (Fserial_process_configure, Fprocess_send_eof):
11810 Use EQ to compare Lisp_Objects.
11811
118122008-06-13 Jason Rumney <jasonr@gnu.org>
11813
11814 * w32fns.c (Fw32_select_font): Remove old font API function.
11815
11816 * w32font.c (logfont_to_fcname): New function.
11817 (Fx_select_font): New font dialog function compatible with
11818 GTK/fontconfig version.
11819
11820 * font.c (font_style_symbolic_from_value): New function.
11821 (font_style_symbolic): Use it.
11822
11823 * font.h (font_style_symbolic_from_value): Declare new function.
11824
118252008-06-13 Juanma Barranquero <lekktu@gmail.com>
11826
11827 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11828 <font-width-table>: Fix typos in docstrings.
11829
118302008-06-13 Daniel Engeler <engeler@gmail.com>
11831
11832 These changes add serial port access.
11833 * process.c: Add HAVE_SERIAL.
11834 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11835 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11836 (list_processes_1, select_wrapper, Fstop_process)
11837 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11838 (status_notify): Modify to handle serial processes.
11839 [HAVE_SERIAL] (Fserial_process_configure)
11840 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11841 New functions.
11842 * process.h (struct Lisp_Process): Add `type'.
11843 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11844 New functions.
11845 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11846 serial ports.
b71ac3dd 11847 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11848 * w32.h: Add FILE_SERIAL.
11849 (struct _child_process): Add ovl_read, ovl_write.
11850
118512008-06-13 Kenichi Handa <handa@m17n.org>
11852
11853 * dispextern.h (enum lface_attribute_index): New member
11854 LFACE_FOUNDRY_INDEX.
11855
11856 * font.c (font_score): Delete arg alternate_families. Check only
11857 weight, slant, width, and size. Ignore the difference of alias
11858 style symbols.
11859 (font_sort_entites): Adjust for the above change. Reflect the
11860 order of font-driver to scores.
11861 (font_list_entities): Don't check alternate_familes here.
11862 (font_clear_prop): Handle foundry.
11863 (font_update_lface): Don't parse "foundry-family" form here.
11864 Handle FONT_FOUNDRY_INDEX.
11865 (font_find_for_lface): Likewise. Handle alternate families here.
11866 If registry is nil, try iso8859-1 and ascii-0.
11867 (font_open_for_lface): Pay attention to size in ENTITY.
11868 (font_open_by_name): Simplify by calling font_load_for_lface.
11869 (free_font_driver_list): Delete it.
11870 (font_update_drivers): Preserve the order of backends.
11871 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11872 of font_score and font_sort_entites.
11873 (font_update_sort_order): Likewise.
11874
11875 * xfaces.c (LFACE_FOUNDRY): New macro.
11876 (check_lface_attrs): Check foundry.
11877 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11878 (merge_face_vectors): Check foundry.
11879 (merge_face_ref): Likewise.
11880 (Finternal_set_lisp_face_attribute): Likewise.
11881 (x_update_menu_appearance): Likewise.
11882 (Finternal_get_lisp_face_attribute): Likewise.
11883 (lface_hash): Likewise.
11884 (lface_same_font_attributes_p): Likewise.
11885 (x_supports_face_attributes_p): Likewise.
11886 (tty_supports_face_attributes_p): Likewise.
11887 (Finternal_set_alternative_font_family_alist): Intern strings.
11888 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11889 (realize_default_face): Set LFACE_FOUNDRY (lface).
11890
11891 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11892 font-driver at first.
11893
11894 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11895
118962008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11897
11898 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11899
119002008-06-12 Jim Meyering <meyering@redhat.com>
11901
11902 Make unexec_free handle NULL the same way free does.
11903 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11904
119052008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11906
11907 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11908 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11909 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11910 (WEAK_ALIAS): Simplify.
11911 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11912 when searching a unibyte buffer.
11913
119142008-06-12 Chong Yidong <cyd@stupidchicken.com>
11915
11916 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11917
119182008-06-12 Juanma Barranquero <lekktu@gmail.com>
11919
11920 * w32font.c: Include ctype.h.
11921
119222008-06-11 Jason Rumney <jasonr@gnu.org>
11923
11924 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11925 misreported as space.
11926 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11927 as aliases for registry iso10646-1.
11928
119292008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11930
11931 * buffer.c (clone_per_buffer_values): Skip `name'.
11932
119332008-06-11 Chong Yidong <cyd@stupidchicken.com>
11934
11935 * font.c (font_parse_fcname): Fix last change; accept decimal
11936 points in font size.
11937
119382008-06-10 Jason Rumney <jasonr@gnu.org>
11939
11940 * w32uniscribe.c (add_opentype_font_name_to_list):
11941 Skip non unicode fonts.
11942
119432008-06-10 Chong Yidong <cyd@stupidchicken.com>
11944
11945 * xfns.c (Fx_font_dialog): New function.
11946
11947 * gtkutil.c (xg_dialog_response_cb): Rename from
11948 xg_file_response_callback.
11949 (pop_down_dialog): Rename from pop_down_file_dialog.
11950 (xg_get_file_name): Callers changed.
11951 (xg_get_font_name): New function.
11952
11953 * gtkutil.h (xg_get_font_name): Insert prototype.
11954
119552008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11956
11957 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11958 x_underline_minimum_display_offset.
11959 (syms_of_xdisp): Declare it here rather than in xterm.c.
11960 * dispextern.h (underline_minimum_offset): Declare it.
11961 * w32term.c (x_draw_glyph_string): Use it.
11962 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11963 (syms_of_xterm): Don't declare it any more.
11964 (x_draw_glyph_string): Adjust to the new name.
11965
8719abec 119662008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11967
11968 * xterm.c (x_underline_minimum_display_offset): New var.
11969 (x_draw_glyph_string): Use it.
11970 (syms_of_xterm): Declare it.
11971
119722008-06-10 Chong Yidong <cyd@stupidchicken.com>
11973
11974 * font.c (font_parse_fcname): Accept GTK-style font names too.
11975
119762008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11977
11978 * dired.c (file_name_completion): Don't return t if the match is exact
11979 but with different capitalization.
11980 * minibuf.c (Ftry_completion): Simplify.
11981
11982 * window.c (Vwindow_point_insertion_type): New var.
11983 (set_window_buffer): Use it.
11984 (syms_of_window): Init and export it to Lisp.
11985
119862008-06-10 Kenichi Handa <handa@m17n.org>
11987
11988 * font.h (font_intern_prop): Prototype adjusted.
11989
11990 * font.c (font_intern_prop): New arg force_symbol.
11991 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11992 Adjust for the change of font_intern_prop.
11993
11994 * ftfont.c (ftfont_pattern_entity):
11995 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11996 (w32_registry):
11997 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11998 the change of font_intern_prop.
11999
120002008-06-09 Juanma Barranquero <lekktu@gmail.com>
12001
12002 * w32menu.c (digest_single_submenu): Declare extern.
12003
120042008-06-09 Jason Rumney <jasonr@gnu.org>
12005
12006 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12007
12008 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12009 (parse_single_submenu): Remove.
12010 (digest_single_submenu): Remove.
12011 (syms_of_w32menu): Don't initialise variables that have moved
12012 to menu.c.
12013 (set_frame_menubar): Sync with version in xmenu.c.
12014 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12015
12016 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12017 Make static again.
12018
120192008-06-09 Jason Rumney <jasonr@gnu.org>
12020
12021 Changes to w32 files related to the move of common menu code
12022 to menu.c on 2008-06-08 by Chong Yidong.
12023
12024 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12025 defs to w32gui.h.
12026 (single_keymap_panes, push_menu_item, push_menu_pane):
12027 Make globally visible.
12028
12029 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12030 (local_free, malloc_widget_value, free_widget_value)
12031 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12032 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12033 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12034 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12035 (menu_items, menu_items_allocated, menu_items_used)
12036 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12037 (init_menu_items, finish_menu_items, discard_menu_items)
12038 (grow_menu_items, push_submenu_start, push_submenu_end)
12039 (push_left_right_boundary, push_menu_pane, push_menu_item)
12040 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12041 (free_menubar_widget_tree_value, parse_single_submenu)
12042 (update_submenu_strings): Remove functions.
12043 (xmalloc_widget_value): Remove and declare extern.
12044
12045 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12046 (OBJ1): Build it.
12047
12048 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12049 (local_heap, local_alloc, local_free, malloc_widget_value)
12050 (free_widget_value): Define here.
12051
120522008-06-09 Kenichi Handa <handa@m17n.org>
12053
12054 * font.h (Qascii_0): Extern it.
12055
12056 * font.c (Qascii_0): New variable.
12057 (syms_of_font): DEFSYM it.
12058 (font_open_by_name): If the registry "iso8859-1" fails, try also
12059 "ascii-0".
12060
12061 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12062
120632008-06-08 Kenichi Handa <handa@m17n.org>
12064
12065 * .gdbinit (xfont): New command.
12066
120672008-06-08 Andreas Schwab <schwab@suse.de>
12068
12069 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12070 * Makefile.in (menu.o): Update dependencies.
12071
12072 * Makefile.in (obj): Always add menu.o.
12073 * emacs.c (main): Always call syms_of_menu.
12074 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12075
120762008-06-08 Chong Yidong <cyd@stupidchicken.com>
12077
12078 * Makefile.in: Compile menu.c.
12079
12080 * lisp.h: Declare syms_of_menu.
12081
12082 * emacs.c (main): Call syms_of_menu.
12083
12084 * keyboard.h: Relocate platform-independent menu definitions from
12085 xmenu.c.
12086
12087 * menu.c: New file. Relocate platform-independent menu
12088 definitions from xmenu.c. Suggested by Adrian Robert.
12089
12090 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12091 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12092 (menu_items_used, menu_items_n_panes)
12093 (menu_items_submenu_depth): Move to keyboard.h.
12094 (init_menu_items, finish_menu_items, unuse_menu_items)
12095 (discard_menu_items, restore_menu_items, save_menu_items)
12096 (grow_menu_items, push_submenu_start, push_submenu_end)
12097 (push_left_right_boundary, push_menu_pane, push_menu_item)
12098 (keymap_panes, single_keymap_panes, single_menu_item)
12099 (list_of_panes, list_of_items, find_and_call_menu_selection)
12100 (xmalloc_widget_value, free_menubar_widget_value_tree)
12101 (parse_single_submenu, digest_single_submenu)
12102 (update_submenu_strings): Move to menu.c.
12103
121042008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12105
12106 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12107
121082008-06-06 Miles Bader <miles@gnu.org>
12109
12110 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12111 face, not frame default.
12112
121132008-06-05 Martin Rudalics <rudalics@gmx.at>
12114
12115 * window.c (pop_up_windows, pop_up_frames)
12116 (display_buffer_reuse_frames, Vpop_up_frame_function)
12117 (Vdisplay_buffer_function, Veven_window_heights)
12118 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12119 (Vspecial_display_function, Vsame_window_buffer_names)
12120 (Vsame_window_regexps, split_height_threshold)
12121 (Vsplit_window_preferred_function): Move those vars to window.el.
12122 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12123 (Fdisplay_buffer): Move those functions to window.el.
12124 (syms_of_window): Remove corresponding declarations.
12125 (display_buffer): New function.
12126 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12127 * dispnew.c (Flast_nonminibuf_frame): New function.
12128 * buffer.c (Fpop_to_buffer): Move to window.el.
12129
121302008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12131
12132 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12133
121342008-06-05 Kenichi Handa <handa@m17n.org>
12135
12136 * coding.c (detect_coding): Fix previous change.
12137 (detect_coding_system): Likewise.
12138
121392008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12140
12141 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12142
12143 * keymap.c (Vminibuffer_local_filename_must_match_map):
12144 Rename from Vminibuffer_local_must_match_filename_map.
12145 (syms_of_keymap):
12146 * minibuf.c (Fcompleting_read): Adjust accordingly.
12147 * commands.h: Rename declaration as well.
12148
121492008-06-05 Kenichi Handa <handa@m17n.org>
12150
12151 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12152 family name.
12153 (Ffont_put): Likewise.
12154
12155 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12156 current font-spec.
12157
12158 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12159 is unspecified.
12160
12161 * xfaces.c (realize_x_face): If the font-related face attributes
12162 are the same as those of default face, realize a new fontset from
12163 default->fontset.
12164 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12165
121662008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12167
12168 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12169 (move_it_in_display_line): New wrapper.
12170
12171 * window.c (window_scroll_pixel_based_preserve_x)
12172 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12173 (window_scroll_pixel_based, window_scroll_line_based):
12174 Use them to preserve column positions.
12175 (syms_of_window): Initialize them.
12176
12177 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12178 (HPOS . VPOS) pair.
12179
12180 * dispextern.h (move_it_in_display_line): Declare.
12181
121822008-06-05 Juanma Barranquero <lekktu@gmail.com>
12183
12184 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12185 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12186 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12187
121882008-06-04 Juanma Barranquero <lekktu@gmail.com>
12189
12190 * window.c (Fset_window_parameter): Doc fix.
12191 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12192
121932008-06-04 Joakim Verona <joakim@verona.se>
12194
12195 * window.h (struct window): Add new member window_parameters.
12196
12197 * window.c (Fwindow_parameters, Fwindow_parameter)
12198 (Fset_window_parameter): New defuns.
12199 (syms_of_window): Defsubr the new defuns.
12200 (make_window): Initialize window_parameters to nil.
12201
122022008-06-04 John Paul Wallington <jpw@pobox.com>
12203
12204 * eval.c (Fdefmacro): Doc fix.
12205
122062008-06-04 Kenichi Handa <handa@m17n.org>
12207
12208 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12209 Be sure to call setup_coding_system when we find a proper coding system.
12210 (detect_coding_system): Fix handling of coding->head_ascii.
12211
122122008-06-03 Andreas Schwab <schwab@suse.de>
12213
12214 * font.c (font_prop_validate_spacing): Fix last change.
12215
122162008-06-03 Kenichi Handa <handa@m17n.org>
12217
12218 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12219 (font_parse_fcname): Fix handling of unknown key.
12220
12221 * xfont.c (xfont_list): Try an alias.
12222
12223 * charset.c (char_charset): Return NULL if the arg charset_list is
12224 specified and C doesn't belong to any of them.
12225
122262008-06-02 Chip Coldwell <coldwell@redhat.com>
12227
12228 * font.c (font_pixel_size): Don't take cdr of an integer.
12229
122302008-06-02 Jim Meyering <meyering@redhat.com>
12231
12232 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12233 * alloc.c (xfree): Return right away for a NULL arg.
12234 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12235 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12236 * mac.c (create_apple_event_from_event_ref): Likewise.
12237 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12238 Likewise.
12239 * doprnt.c (doprnt1): Likewise.
12240 * frame.c (frame): Likewise.
12241 * keyboard.c (wipe_kboard): Likewise.
12242 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12243 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12244 * term.c (tty_default_color_capabilities, maybe_fatal)
12245 (delete_tty): Likewise.
12246 * w16select.c (string): Likewise.
12247 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12248 * w32bdf.c (w32_free_bdf_font): Likewise.
12249 * w32fns.c (w32_unload_font): Likewise.
12250 * w32font.c (w32font_close): Likewise.
12251 * window.c (size_window): Likewise.
12252 * xselect.c (receive_incremental_selection): Likewise.
12253 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12254 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12255 * w32.c (stat): Likewise.
12256
12257 Remove useless if-before-free tests.
12258 * editfns.c (Fset_time_zone_rule): Likewise.
12259 * lread.c (nosuffix): Likewise.
12260 * ralloc.c (get_bloc): Likewise.
12261 * regex.c (reg_free): Likewise.
12262 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12263 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12264 * xsmfns.c (smc_save_yourself_CB): Likewise.
12265
122662008-06-02 Kenichi Handa <handa@m17n.org>
12267
12268 * font.c (font_find_for_lface): Handle float font size.
12269 (font_open_for_lface): Likewise.
12270
12271 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12272 comparing the properties.
12273
122742008-06-01 Jason Rumney <jasonr@gnu.org>
12275
12276 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12277 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12278 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12279 Don't add empty script list.
12280 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12281
122822008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12283
12284 * Makefile.in (dot, dotdot): Remove, update users.
12285 ".." has been used elsewhere in the file for a long time.
12286 (LIBXT_STATIC): Remove conditional based on unused variable.
12287
122882008-06-01 Miles Bader <miles@gnu.org>
12289
12290 * xfaces.c (Vface_remapping_alist): New variable.
12291 (syms_of_xfaces): Initialize it.
12292 (enum named_merge_point_kind): New type.
12293 (struct named_merge_point): Add `named_merge_point_kind' field.
12294 (push_named_merge_point): Make cycle detection respect different
12295 named-merge-point kinds.
12296 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12297 Remove face-name alias resolution.
12298 (lface_from_face_name): New definition using
12299 `lface_from_face_name_no_resolve'.
12300 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12301 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12302 (get_lface_attributes): New definition that layers face-remapping on
12303 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12304 (lookup_basic_face): New function.
12305 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12306 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12307 `get_lface_attributes'.
12308 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12309 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12310 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12311
12312 * xdisp.c (init_iterator): Pass base_face_id through
12313 `lookup_basic_face' when we actually use it as a face-id.
12314 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12315 DEFAULT_FACE_ID.
12316
12317 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12318 lookup the initial face-id.
12319
12320 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12321
123222008-06-01 Juanma Barranquero <lekktu@gmail.com>
12323
12324 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12325 (Fremove_text_properties): Fix typos in docstrings.
12326
123272008-05-31 Kenichi Handa <handa@m17n.org>
12328
12329 * font.c (font_list_entities): Fix the car part of data to be
12330 stored in the cache.
12331
12332 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12333
123342008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12335
12336 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12337 Add a `test' argument so another predicate than `equal' can be used.
12338 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12339 (map_char_table): Remove unused vars `c' and `i'.
12340 * lisp.h (Foptimize_char_table): Adjust declaration.
12341 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12342
123432008-05-30 Kenichi Handa <handa@m17n.org>
12344
12345 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12346 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12347 defined.
12348
123492008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12350
12351 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12352 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12353 frame-local settings for the same variable.
12354
123552008-05-30 Kenichi Handa <handa@m17n.org>
12356
12357 * fontset.c (Ffont_info): Move to font.c.
12358 (syms_of_fontset): Delete defsubr of Sfont_info.
12359
12360 * font.c (font_style_to_value, font_score): Delete casting of the
12361 args to xstcasecmp.
12362 (register_font_driver): Increment num_font_drivers only when
12363 registering the driver globally.
12364 (Ffont_info): Move from fontset.c. Handle a font object too.
12365 (syms_of_font): Defsubr Sfont_info.
12366
123672008-05-29 Kenichi Handa <handa@m17n.org>
12368
12369 * coding.h (enum define_coding_utf8_arg_index): New enum.
12370 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12371 coding_attr_utf_bom.
12372 (enum utf_bom_type): Rename from utf_16_bom_type.
12373 (struct utf_16_spec): Adjust for the above change.
12374 (struct coding_system): Add utf_8_bom in `spec' union.
12375
12376 * coding.c (CODING_UTF_8_BOM): New macro.
12377 (enum coding_category): Delete coding_category_utf_8, add
12378 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12379 coding_category_utf_8_sig.
12380 (CATEGORY_MASK_UTF_8): Delete it.
12381 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12382 (CATEGORY_MASK_UTF_8_SIG): New macros.
12383 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12384 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12385 CATEGORY_MASK_UTF_8_SIG.
12386 (CATEGORY_MASK_UTF_8): New macro.
12387 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12388 (detect_coding_utf_8): Check BOM.
12389 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12390 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12391 (encode_coding_utf_16): Likewise.
12392 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12393 (detect_coding, detect_coding_system): Handle utf-8-auto.
12394 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12395 (syms_of_coding): Fix setting up of Vcoding_category_table.
12396
123972008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12398
12399 * process.c (Faccept_process_output): If `millisec' is non-nil,
12400 `seconds' default to 0.
12401 (wait_reading_process_output): Also return non-nil if we read output
12402 from a non-running process.
12403
124042008-05-29 Jason Rumney <jasonr@gnu.org>
12405
12406 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12407 `raster' specified.
12408 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12409 in the uniscribe backend, but disallow any font that has no
12410 unicode subrange support.
12411
124122008-05-29 Juanma Barranquero <lekktu@gmail.com>
12413
12414 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12415 Fix typos in docstrings.
12416
124172008-05-29 Kenichi Handa <handa@m17n.org>
12418
12419 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12420 (Fx_family_fonts): Set frame correctly.
12421
124222008-05-28 Jason Rumney <jasonr@gnu.org>
12423
12424 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12425
124262008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12427
12428 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12429 calling build_annotations.
12430
124312008-05-28 Juanma Barranquero <lekktu@gmail.com>
12432
12433 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12434 (Fencode_coding_string):
12435 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12436 <latin-extra-code-table>: Fix typos in docstrings.
12437 (syms_of_coding) <coding-system-alist>: Doc fix.
12438 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12439
124402008-05-28 Kenichi Handa <handa@m17n.org>
12441
12442 * fontset.c (Ffont_info): Don't call font_close_object.
12443
12444 * font.c (font_parse_family_registry): Use Ffont_put to validate
12445 foundry and family.
12446 (font_delete_unmatched): Don't check spacing.
12447 (font_list_entities): Add spacing to the spec to list fonts.
12448
12449 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12450 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12451
12452 * coding.c (encode_coding_raw_text): Fix previous change.
12453 (encode_coding_object): When the dst_object is a buffer and is
12454 different from src_object, move gap to PT.
12455
124562008-05-27 Chong Yidong <cyd@stupidchicken.com>
12457
12458 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12459
124602008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12461
12462 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12463 all branches. Compute it differently.
12464
12465 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12466
124672008-05-27 Juanma Barranquero <lekktu@gmail.com>
12468
12469 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12470 into "else if () ... else ...".
12471
124722008-05-27 Jason Rumney <jasonr@gnu.org>
12473
12474 * w32font.c (w32font_open_internal): Determine if glyph indices
12475 are likely to work here.
12476
124772008-05-27 Chong Yidong <cyd@stupidchicken.com>
12478
12479 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12480 draw overlap glyphs with appropriate highlighting.
12481
124822008-05-27 Kenichi Handa <handa@m17n.org>
12483
12484 * xfont.c (xfont_open): Fix calculation of font->average_width.
12485
124862008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12487
12488 * casefiddle.c (casify_object): Try to guess better whether the
12489 argument is a byte or a char.
12490
124912008-05-26 Andreas Schwab <schwab@suse.de>
12492
12493 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12494 Always send multiples of format size.
12495
12496 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12497
124982008-05-26 Jason Rumney <jasonr@gnu.org>
12499
12500 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12501 (compute_metrics): Don't set failure if we just cleared the cache.
12502 (w32_weight_table): Remove unused variable.
12503 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12504 backwards compatibility.
12505
125062008-05-25 Kenichi Handa <handa@m17n.org>
12507
12508 * w32term.c (x_draw_glyph_string):
12509 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12510
12511 * xfaces.c: Delete unused function prototypes.
12512 (xstrlwr, font_frame): Delete them.
12513 (clear_face_cache): Delete unused variable.
12514
12515 * xftfont.c (xftfont_open): Delete unused variable.
12516 If underline_thickness is not 1, adjust underline_position.
12517
12518 * ftxfont.c (ftxfont_open): Delete unused variable.
12519
12520 * fontset.c (face_for_char): Optimize for the case of no charset
12521 property.
12522
12523 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12524 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12525 (otf_open, font_otf_capability, generate_otf_features)
12526 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12527 Comment out by surrounding "#if 0" and "#endif" for the moment.
12528 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12529 (syms_of_font): Codes for accessing above commented out.
12530
125312008-05-24 Eli Zaretskii <eliz@gnu.org>
12532
12533 * w32proc.c: Include dispextern.h.
12534
12535 * w32.c: Include dispextern.h.
12536
125372008-05-23 Juanma Barranquero <lekktu@gmail.com>
12538
12539 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12540 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12541 Fix typos in docstrings.
12542
125432008-05-23 Jason Rumney <jasonr@gnu.org>
12544
12545 * xsmfns.c: Remove includes that are already included by config.h.
12546
125472008-05-23 Kenichi Handa <handa@m17n.org>
12548
12549 * charset.c (Qemacs, charset_emacs): New variables.
12550 (char_charset): Fix for non-Unicode characters.
12551 (syms_of_charset): Define charset_emacs.
12552
12553 * w32term.c (x_draw_glyph_string): Be sure to update
12554 s->underline_thickness and s->underline_position. Be sure to draw
12555 underline within the current line area.
12556
12557 * xterm.c (x_draw_glyph_string): Be sure to update
12558 s->underline_thickness and s->underline_position. Be sure to draw
12559 underline within the current line area.
12560
12561 * fontset.c: Delete unused variables and add casting for char *
12562 throughout the file.
12563 (fontset_font): Try the fallback fonts of the current fontset
12564 before consulting the default fontset.
12565
12566 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12567
12568 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12569
125702008-05-22 Jason Rumney <jasonr@gnu.org>
12571
12572 * font.c: Don't include strings.h.
12573
12574 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12575
12576 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12577 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12578 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12579 to call xstrcasecmp.
12580
12581 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12582
12583 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12584
12585 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12586
12587 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12588
125892008-05-22 Kenichi Handa <handa@m17n.org>
12590
12591 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12592
12593 * font.c (font_prop_validate_style): Adjust for the format
12594 change of font_style_table.
12595
12596 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12597 two args.
12598
12599 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12600 two args.
12601
126022008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12603
12604 * minibuf.c (keys_of_minibuf): Delete.
12605 * lisp.h (keys_of_minibuf): Delete.
12606 * emacs.c (main): Don't call keys_of_minibuf.
12607
126082008-05-22 Kenichi Handa <handa@m17n.org>
12609
12610 * ftfont.c (ftfont_resolve_generic_family): Rename from
12611 ftfont_list_generic_family. Return a single family for each
12612 generic family.
12613 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12614 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12615 Call font_add_log.
12616 (ftfont_match): Call font_add_log.
12617
12618 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12619 (FONT_DEBUG): Define it.
12620 (font_add_log): Extern it.
12621 (font_assert): Rename from xassert.
12622
12623 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12624 (xfont_list_family): Call font_add_log.
12625 (xfont_match): Likewise.
12626 (memq_no_quit): Delete.
12627
12628 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12629 call of Ffont_xlfd_name.
12630
12631 * xfaces.c (struct table_entry, slant_table, weight_table)
12632 (swidth_table): Move to font.c.
12633
12634 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12635 xassert are changed to font_assert. Delete many unused variables.
12636 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12637 New variables.
12638 (struct table_entry): Move from xfaces.c and modified.
12639 (weight_table, slant_table, width_table): Move from xfaces.c and
12640 contents adjusted for the change of struct table_entry.
12641 (font_style_to_value, font_style_symbolic): Adjust for the
12642 format change of font_style_table.
12643 (font_parse_family_registry): Don't overwrite existing foundry and
12644 family of font_spec.
12645 (font_score): Fix calculation of diff for sizes.
12646 (font_sort_entites): Call font_add_log.
12647 (font_delete_unmatched): Return a newly created list.
12648 (font_list_entities): Fix previous change. Call font_add_log.
12649 (font_matching_entity, font_open_entity, font_close_entity):
12650 Call font_add_log.
12651 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12652 (Finternal_set_font_style_table): Delete.
12653 (BUILD_STYLE_TABLE): New macro.
12654 (build_style_table): New function.
12655 (Vfont_log, font_log_env_checked): New variables.
12656 (font_add_log): New function.
12657 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12658 Declare Lisp variables "font-weight-table", "font-slant-table",
12659 "font-width-table", and "font-log". Initialize font_style_table.
12660
126612008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12662
12663 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12664
126652008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12666 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12667
12668 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12669 (Vframe_alpha_lower_limit): New variable.
12670 (x_set_alpha): New function.
12671
12672 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12673
12674 * xfns.c (x-create-frame, Qalpha):
12675 Initialize the frame parameter `alpha'.
12676 * xterm.c (OPAQUE, OPACITY): New.
12677 (x_set_frame_alpha): New function.
12678 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12679
12680 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12681 * w32fns.c (w32_frame_parm_handlers): Likewise.
12682
126832008-05-20 Jason Rumney <jasonr@gnu.org>
12684
12685 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12686 truetype fonts to opentype list.
12687
126882008-05-20 Juanma Barranquero <lekktu@gmail.com>
12689
12690 * fontset.c (Ffontset_info): Doc fix.
12691 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12692 <ignore-relative-composition>: Fix typos in docstrings.
12693
12694 * font.c (syms-of-font) <font-encoding-alist>:
12695 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12696 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12697 (Ffont_otf_alternates): Doc fixes.
12698
126992008-05-20 Kenichi Handa <handa@m17n.org>
12700
12701 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12702 font.h through out the file.
12703 (FONT_DRIVERS): Rename from FONTOBJ.
12704 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12705 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12706
12707 * emacs.c (main): Call syms_of_font unconditionally.
12708
12709 * font.h (find_font_encoding): Extern it.
12710
12711 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12712 fontset.c.
194d44e7 12713 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12714 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12715 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12716 only when HAVE_WINDOW_SYSTEM is defined.
12717 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12718 when HAVE_WINDOW_SYSTEM is defined.
12719
12720 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12721 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12722
12723 * xfaces.c: Include font.h unconditionally.
12724 (merge_face_ref, merge_face_vectors)
12725 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12726
127272008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12728
12729 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12730 indirect_variable.
12731 * eval.c (lisp_indirect_variable): New fun.
12732 (Fuser_variable_p): Use it.
12733
127342008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12735
12736 * lisp.h (indirect_variable):
12737 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12738 Use Lisp_Symbol pointers rather than Lisp_Object.
12739 Adjust callers.
12740 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12741 To this end, change calling-convention.
12742
12743 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12744 if some non-hidden buffers are selected by string&pred.
12745
127462008-05-19 Chong Yidong <cyd@stupidchicken.com>
12747
12748 * process.c (wait_reading_process_output): Always check status
12749 when in batch mode.
12750
127512008-05-19 Kenichi Handa <handa@m17n.org>
12752
12753 * font.c (font_list_entities): Fix handling of cache.
12754 (font_matching_entity): Likewise.
12755
12756 * ftfont.c (cs_iso8859_1): Delete.
12757 (ft_face_cache): New variable.
12758 (struct ftfont_info): New member fc_charset_idx.
12759 (ftfont_build_basic_charsets): Delete.
12760 (fc_charset_table): New variable.
12761 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12762 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12763 Callers changed.
12764 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12765 (ftfont_spec_pattern): New argument fc_charset_idx.
12766 Check registry more rigidly. Change callers.
12767 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12768 change of :font-entity property of the font.
12769
12770 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12771 property of the font.
12772
127732008-05-18 Juanma Barranquero <lekktu@gmail.com>
12774
12775 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12776 (Funencodable_char_position, Fcheck_coding_systems_region)
12777 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12778 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12779 (Ffind_operation_coding_system, Fset_coding_system_priority)
12780 (Fcoding_system_eol_type): Doc fixes.
12781
127822008-05-17 Glenn Morris <rgm@gnu.org>
12783
12784 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12785
127862008-05-16 Eli Zaretskii <eliz@gnu.org>
12787
12788 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12789 and st_gid.
12790
12791 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12792 HAVE_WINDOW_SYSTEM is not defined.
12793
12794 * xfaces.c (merge_face_ref, merge_face_vectors)
12795 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12796 HAVE_WINDOW_SYSTEM is defined.
12797 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12798
127992008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12800
12801 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12802
128032008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12804
12805 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12806
128072008-05-15 Kenichi Handa <handa@m17n.org>
12808
12809 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12810 preference.
12811
128122008-05-15 Glenn Morris <rgm@gnu.org>
12813
12814 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12815
128162008-05-15 Chong Yidong <cyd@stupidchicken.com>
12817
12818 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12819 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12820
12821 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12822
128232008-05-15 Kenichi Handa <handa@m17n.org>
12824
12825 * ftfont.c (ftfont_list): Downcase family name to check generic
12826 families.
12827
12828 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12829 font-spec for QCfont value.
12830
12831 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12832 buffer. Check the return value of it.
12833
128342008-05-14 Jason Rumney <jasonr@gnu.org>
12835
12836 * w32term.c (w32_get_glyph_overhangs): Remove.
12837 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12838
128392008-05-14 Kenichi Handa <handa@m17n.org>
12840
12841 * font.c (font_prop_validate): Make nil a valid value.
12842 (font_clear_cache): Check if the cached vector of entities is nil
12843 or not.
12844
128452008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12846
12847 * emacs.c (main_thread): Conditionalize on
12848 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12849 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12850
12851 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12852 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12853 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12854
128552008-05-14 Kenichi Handa <handa@m17n.org>
12856
12857 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12858 has no corresponding coding system.
12859
128602008-05-14 Jason Rumney <jasonr@gnu.org>
12861
12862 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12863
12864 * w32font.h (w32font_open_internal): Update declaration.
12865
12866 * w32font.c (w32font_open_internal): Change last argument from
12867 w32font_info struct to font object. Fill in font object from
12868 font_entity. Get Outline metrics if possible. Use them to
12869 calculate underline position and thickness. Use xlfd name as name
12870 property. Don't set codepage.
12871 (w32font_open): Pass font_object to w32font_open_internal. Don't
12872 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12873 (w32font_draw): Use s->font.
12874 (clear_cached_metrics): Don't clear non-existent blocks.
12875
12876 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12877 font was not found.
12878 (x_draw_glyph_string): Use underline position and thickness from font.
12879
12880 * w32uniscribe.c (uniscribe_open): Pass font_object to
12881 w32font_open_internal.
12882
128832008-05-14 Kenichi Handa <handa@m17n.org>
12884
12885 These changes are to delete all legacy font-handling codes, and
12886 make Emacs use only font-backends.
12887
12888 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12889 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12890
12891 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12892
12893 * charset.h (Vcharset_non_preferred_head)
12894 (Vcurrent_iso639_language): Extern them.
12895
12896 * charset.c (Vcharset_non_preferred_head): New variable.
12897 (Vcurrent_iso639_language): New variable.
12898 (syms_of_charset): Declare it as a Lisp variable.
12899 (char_charset): Don't check non preferred charsets. As a last
12900 resort, return charset_unicode.
12901 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12902
12903 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12904 conditionals. Don't check enable_font_backend. Delete all codes
12905 used only when USE_FONT_BACKEND is not defined.
12906
12907 * dispextern.h (struct glyph_string): Change type of `font' to
12908 `struct font *'.
12909 (struct glyph_string): New member underline_position and
12910 underline_thickness.
12911 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12912 (struct face): Change type of `font' to `struct font *'. Remove
12913 members `font_name', `font_info_id'.
12914 (per_char_metric, encode_char): Delete externs.
12915 (calc_pixel_width_or_height): Adjust the prototype.
12916
12917 * emacs.c (enable_font_backend): Delete extern.
12918 (main): Don't set enable_font_backend. Don't check the command
12919 line argument "-disable-font-backend".
12920
12921 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12922 (enum font_property_index): New members FONT_DPI_INDEX,
12923 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12924 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12925 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12926 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12927 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12928 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12929 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12930 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12931 (struct font_spec, struct font_entity): New structs.
12932 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12933 (struct font): Many members from old "struct font_info" moved to
12934 here. Members font and entity deleted.
12935 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12936 the new font-related objects.
12937 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12938 (CHECK_FONT_GET_OBJECT): Likewise.
12939 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12940 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12941 (struct font_driver): New members case_sensitive anc check. Type
12942 of the member list and open changed.
12943 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12944 (font_symbolic_width, font_find_object, font_get_spec)
12945 (font_set_lface_from_name): Delete extern.
12946 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12947
12948 * font.c: Include <strings.h>.
12949 (enable_font_backend): Delete it.
12950 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12951 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12952 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12953 (null_string): Delete it.
12954 (null_vector): Make it static.
12955 (font_family_alist): Delete it.
12956 (Qnormal): Extern it.
12957 (QCextra, QClanguage): Delete it.
12958 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12959 (font_make_spec, font_make_entity, font_make_object)
12960 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12961 the string. Callers changed.
12962 (font_pixel_size): Adjusted for the format change of font-related
12963 objects.
12964 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12965 (font_style_to_value, font_style_symbolic): New function.
12966 (build_font_family_alist): Delete it.
12967 (font_registry_charsets): Use Fassoc_string instead of
12968 assq_no_quit.
12969 (font_prop_validate_symbol): Don't return null_string.
12970 (font_prop_validate_style): Adjusted for the change of
12971 style-related values in a font vector.
12972 (font_property_table): Delete entries for QClanguage and
12973 QCantialias, add entries for QCavgwidth.
12974 (get_font_prop_index): Delete the 2nd argument FROM.
12975 (font_prop_validate): Arguments changed.
12976 (font_put_extra): Adjusted for the change of font-related objects.
12977 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12978 (font_parse_fcname, font_unparse_fcname)
12979 (font_prepare_composition): Likewise.
12980 (font_parse_family_registry): Renamed from font_merge_old_spec.
12981 (otf_open): Delete the 1st arg entity.
12982 (font_otf_capability): Adjusted for the above change.
12983 (font_score): New arg alternate_families. Adjusted for the change
12984 of font-related objects.
12985 (font_sort_entites): New arg best_only.
12986 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12987 Delete them.
12988 (font_match_p): Check alternate families.
12989 (font_find_object): Delete it.
12990 (font_check_object): New function.
12991 (font_clear_cache): Adjusted for the change of font-related objects.
12992 (font_delete_unmatched): New arg.
12993 (font_list_entities): Call font_driver->list with a spec that
12994 doesn't specify style-related properties.
12995 (font_matching_entity): Arguments changed. Caller changed.
12996 (font_open_entity): Adjusted for the change of font-related objects.
12997 (font_close_object, font_has_char, font_encode_char)
12998 (font_get_name, font_get_spec): Likewise.
12999 (font_spec_from_name, font_clear_prop, font_update_lface):
13000 New functions.
13001 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13002 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13003 (font_at): Adjusted for the change of font-related objects.
13004 (font_range): New function.
13005 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13006 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13007 (Fcopy_font_spec, Fmerge_font_spec): New function.
13008 (Ffont_family_list): Renamed from list-families.
13009 (Finternal_set_font_style_table): Arguments changed.
13010 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13011 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13012 change of font-related objects.
13013 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13014
13015 * fontset.h (struct font_info): Delete it. Most members go to
13016 struct font.
13017 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13018 (enum FONT_SPEC_INDEX): Delete it.
13019 (font_info, list_fonts_func, load_font_func, query_font_func)
13020 (set_frame_fontset_func, find_ccl_program_func)
13021 (get_font_repertory_func, new_fontset_from_font_name): Delete
13022 externs.
13023 (fontset_from_font_name): Extern it.
13024 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13025 (FONT_INFO_FROM_FACE): Deleted.
13026 (face_for_font): Adjust prototype.
13027
13028 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13029 conditionals. Don't check enable_font_backend. Delete all codes
13030 used only when USE_FONT_BACKEND is not defined.
13031 (get_font_info_func, list_font_func, load_font_func)
13032 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13033 (get_font_repertory_func): Delete them.
13034 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13035 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13036 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13037 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13038 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13039 (fontset_compare_rfontdef): New function.
13040 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13041 rfont-defs by qsort. Adjusted for the change of font-group vector.
13042 (load_font_get_repertory): Deleted.
13043 (fontset_find_font): Use new macros to ref/set elements of
13044 font-def and rfont-def.
13045 (fontset_font): Fix the timing of remembering that no font for C.
13046 (free_face_fontset): Do nothing if the face has no fontset.
13047 (face_suitable_for_char_p): Use new macros to ref/set elements of
13048 rfont-def.
13049 (face_for_char): Likewise. Call face_for_char with font_object.
13050 (fs_load_font): Delete. Delete #pragma surrounding it.
13051 (fs_query_fontset): Use strcasecmp instead of strcmp.
13052 (generate_ascii_font_name): Adjusted for the format change of
13053 font-spec.
13054 (Fset_fontset_font): Likewise. Use new macros to set elements of
13055 font-def.
13056 (Fnew_fontset): Use font_unparse_xlfd to generate
13057 FONTSET_ASCII (fontset).
13058 (new_fontset_from_font_name): Deleted.
13059 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13060 a fontset is already created for the font. FIx updating of
13061 Vfontset_alias_alist.
13062 (fontset_ascii_font): Deleted.
13063 (Ffont_info): Adjusted for the format change of font-spec.
13064 (Finternal_char_font): Likewise.
13065 (Ffontset_info): Likewise.
13066 (syms_of_fontset): Don't check load_font_func.
13067
13068 * fns.c (internal_equal): Handle PREV_FONT.
13069
13070 * frame.h: Delete USE_FONT_BACKEND conditional.
13071
13072 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13073 conditionals. Don't check enable_font_backend. Delete all codes
13074 used only when USE_FONT_BACKEND is not defined.
13075 (x_set_font): Call x_new_font, not x_new_fontset2.
13076 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13077 already set for the frame.
13078
13079 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13080 a font-entity by font_make_entity. Use font_intern_prop instead
13081 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13082 font property. If a font is scalable, set avgwidth property to 0.
13083 Set font-entity property by font_put_extra.
13084 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13085 (ffont_driver): Adjusted for the change of struct font_driver.
13086 (ftfont_spec_pattern): New function.
13087 (ftfont_list): Return a list, not vector.
13088 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13089 (ftfont_list_family): Don't downcase names.
13090 (ftfont_free_entity): Deleted.
13091 (ftfont_open): Return a font-object. Adjusted for the change of
13092 struct font. Get underline_thickness and underline_position from
13093 font property. Don't update dpyinfo->smallest_font_height and
13094 dpyinfo->smallest_char_width.
13095 (ftfont_close): Don't free `struct font'.
13096 (ftfont_has_char): Adjusted for the format change of font-entity.
13097 (ftfont_encode_char, ftfont_text_extents): Likewise.
13098
13099 * ftxfont.c (ftxfont_list): Return a list, not vector.
13100 (ftxfont_open): Return a font-object. Adjusted for the change of
13101 struct font. Get underline_thickness and underline_position from
13102 font property. Don't update dpyinfo->smallest_font_height and
13103 dpyinfo->smallest_char_width.
13104 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13105 (ftxfont_draw): Adjusted for the change of struct font.
13106
13107 * image.c (image_ascent): Don't include "charset.h". Include
13108 "character.h" and "font.h".
13109
13110 * lisp.h (enum pvec_type): New member PREV_FONT.
13111 (Fassoc_string): EXFUN it.
13112
13113 * print.c: Include font.h.
13114 (print_object): Handle font-related objects.
13115
13116 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13117 conditionals. Don't check enable_font_backend. Delete all codes
13118 used only when USE_FONT_BACKEND is not defined.
13119 (handle_auto_composed_prop): Do nothing if it->f is not on a
13120 window system. Check how many following characters can be
13121 displayed by the same font.
13122 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13123 'struct font *'.
13124 (get_char_face_and_encoding): Assign the whole encoding task to
13125 the `encode-char' method of a font driver.
13126 (fill_composite_glyph_string): Adjusted for the change of `struct
13127 face' and `struct glyph_string'.
13128 (fill_glyph_string): Likewise.
13129 (get_per_char_metric): Arguments changed.
13130 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13131 and `struct glyph_string'.
13132 (produce_stretch_glyph, calc_line_height_property)
13133 (x_produce_glyphs): Likewise.
13134
13135 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13136 conditionals. Don't check enable_font_backend. Delete all codes
13137 used only when USE_FONT_BACKEND is not defined. Use
13138 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13139 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13140 (Qp): Extern them.
13141 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13142 Deleted.
13143 (struct font_name): Deleted.
13144 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13145 (compare_fonts_by_sort_order): New function.
13146 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13147 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13148 Deleted.
13149 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13150 compare_fonts_by_sort_order.
13151 (Fx_font_family_list): Call Ffont_family_list.
13152 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13153 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13154 (face_symbolic_slant, face_symbolic_swidth)
13155 (split_font_name_into_vector, build_font_name_from_vector)
13156 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13157 (font_rescale_ratio, split_font_name, build_font_name)
13158 (free_font_names, sort_fonts, x_face_list_fonts)
13159 (face_font_available_p, sorted_font_list, cmp_font_names)
13160 (font_list_1, concat_font_list, font_list, remove_duplicates):
13161 Deleted.
13162 (Fx_list_fonts): Use Ffont_list.
13163 (LFACE_AVGWIDTH): Deleted.
13164 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13165 by FONTP.
13166 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13167 (set_lface_from_font_name): Delete it.
13168 (set_lface_from_font): Renamed from
13169 set_lface_from_font_and_fontset. Caller changed. Don't set
13170 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13171 for face.
13172 (merge_face_vectors): Copy font-spec if necessary.
13173 Clear properties of the font-spec if necessary.
13174 (merge_face_ref): Clear properties of the font-spec if necessary.
13175 (Finternal_set_lisp_face_attribute): Likewise.
13176 (set_font_frame_param): Use font_load_for_lface to load a
13177 font-object, and call Fmodify_frame_parameters with it.
13178 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13179 font name by Ffont_xlfd_name.
13180 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13181 QCslant, and QCwidth.
13182 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13183 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13184 Compare fonts by EQ.
13185 (lookup_non_ascii_face): Deleted.
13186 (face_for_font): The 2nd argument changed.
13187 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13188 Check atomic font properties by case insensitive.
13189 (realize_non_ascii_face): Set face->overstrike correctly.
13190 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13191 (dump_realized_face): Get font name from
13192 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13193
13194 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13195 conditionals. Don't check enable_font_backend. Delete all codes
13196 used only when USE_FONT_BACKEND is not defined.
13197 (xic_create_xfontset): Original code deleted and renamed from
13198 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13199 (x_make_gc): Don't set GCFont in GCs.
13200 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13201 opened by "fixed".
13202 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13203 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13204 get_font_repertory_func.
13205
13206 * xfont.c: Include <stdlib.h> and "ccl.h".
13207 (struct xfont_info): New structure.
13208 (xfont_query_font): Deleted.
13209 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13210 moved from xterm.c.
13211 (xfont_driver): Adjusted for the change of struct font_driver.
13212 (compare_font_names): New function.
13213 (xfont_list_pattern): Sort font names case insensitively. Make
13214 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13215 (xfont_list): Return a list, not vector.
13216 (xfont_match): If the font doesn't have QCname property, generate
13217 a name from the other font properties.
13218 (xfont_open): Return a font-object. Adjusted for the change of
13219 struct font. Get underline_thickness and underline_position from
13220 font property. Don't update dpyinfo->smallest_font_height and
13221 dpyinfo->smallest_char_width.
13222 (xfont_close): Don't free struct font.
13223 (xfont_prepare_face): Adjusted for the change of struct font.
13224 (xfont_done_face): Deleted.
13225 (xfont_has_char): Adjusted for the change of struct font.
13226 (xfont_encode_char, xfont_draw): Likewise.
13227 (xfont_check): New function.
13228
13229 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13230 callback function.
13231 (xftfont_match): Adjusted for the format change of font-entity.
13232 (xftfont_open): Adjusted for the format change of font-entity and
13233 font-object. Adjusted for the change of struct font. Return a
13234 font-object. Don't update dpyinfo->smallest_font_height and
13235 dpyinfo->smallest_char_width.
13236 (xftfont_close): Block input while calling XftFontClose.
13237 (xftfont_prepare_face): Don't block input while calling
13238 xftfont_get_colors. Adjusted for the change of struct font.
13239 (xftfont_shape): Return value of error case fixed.
13240
13241 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13242
13243 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13244 conditionals.
13245 (FONT_WIDTH): Return (f)->max_width.
13246 (struct x_display_info): Delete member `font'.
13247 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13248 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13249 (struct x_output): Change type of `font' to `struct font *'.
13250
13251 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13252 conditionals. Don't check enable_font_backend. Delete all codes
13253 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13254 (x_per_char_metric, x_encode_char): Deleted.
13255 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13256 (x_compute_glyph_string_overhangs): Adjusted for the change of
13257 `struct face'.
13258 (x_draw_glyph_string_foreground)
13259 (x_draw_composite_glyph_string_foreground): Likewise.
13260 (x_draw_glyph_string): Likewise. Use font->underline_position and
13261 font->underline_thickness.
13262 (x_new_font): Renamed from x_new_fontset2.
13263 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13264 (x_check_font): Call `check' method of a font driver.
13265 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13266 (x_query_font, x_get_font_repertory): Deleted.
13267 (x_find_ccl_program): Renamed and moved to xfont.c.
13268 (x_redisplay_interface): Adjusted for the change of `struct
13269 redisplay_interface'.
13270
13271 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13272 conditionals. Don't check enable_font_backend. Delete all codes
13273 used only when USE_FONT_BACKEND is not defined. Surround non-used
13274 code by "#ifdef OLD_FONT" and "endif".
13275 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13276
13277 * w32font.h (struct w32font_info): New member.
13278 (FONT_COMPAT): New macro.
13279 (w32font_open_internal): Prototype adjusted.
13280
13281 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13282 OLD_FONT" and "endif".
13283
13284 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13285 conditionals. Don't check enable_font_backend. Delete all codes
13286 used only when USE_FONT_BACKEND is not defined.
13287 (w32font_open): Return a font-object. Make a font-object by
13288 font_make_object. Adjusted for the change of struct w32font_info.
13289 (w32font_close): Don't free struct font. Adjusted for the change
13290 of struct w32font_info.
13291 (w32font_encode_char, w32font_text_extents, w32font_draw):
13292 Adjusted for the change of struct w32font_info.
13293 (w32font_draw): Likewise.
13294 (w32font_list_internal): Return a list, not vector.
13295 (w32font_open_internal): Change the 4th arg to font-object.
13296 Adjusted for the change of struct w32font_info and font-object format.
13297 (add_font_name_to_list): Don't downcase names.
13298 (w32_enumfont_pattern_entity): Make a font-entity by
13299 font_make_entity. Adjusted for the format change of font-entity.
13300 Use FONT_SET_STYLE to set a style-related font property. If a
13301 font is scalable, set avgwidth property to 0. Set font-entity
13302 property by font_put_extra.
13303 (font_matches_spec): Adjusted for the format change of font-entity.
13304 (w32_weight_table, w32_decode_weight): New variables.
13305 (w32_encode_weight): New function.
13306 (fill_in_logfont): Adjusted for the format change of font-spec.
13307 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13308 weight value.
13309 (w32font_driver): Adjusted for the change of struct font_driver.
13310
13311 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13312 conditionals. Don't check enable_font_backend. Surround non-used
13313 code by "#ifdef OLD_FONT" and "endif".
13314 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13315 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13316
13317 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13318 conditionals. Don't check enable_font_backend. Delete all codes
13319 used only when USE_FONT_BACKEND is not defined. Surround non-used
13320 code by "#ifdef OLD_FONT" and "endif".
13321
13322 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13323 (uniscribe_open): Return value changed to font-object.
13324 Adjusted for the format change of font-object.
13325 (uniscribe_otf_capability): Adjusted for the change of struct font.
13326 (add_opentype_font_name_to_list): Don't downcase names.
13327 (uniscribe_font_driver): Adjusted for the change of struct
13328 font_driver.
13329
133302008-05-13 Chong Yidong <cyd@stupidchicken.com>
13331
13332 * dispnew.c (update_frame_1): Check if tty output is still valid
13333 before flushing it.
13334
133352008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13336
13337 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13338 to Gtk+ menus.
13339
133402008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13341
13342 * dired.c (file_name_completion): Tweak the code so as to always do it
13343 in a single pass. Tighten the scope of some variables.
13344
13345 * dired.c (Qdefault_directory): New var.
13346 (file_name_completion): Use it instead of Fexpand_file_name.
13347 (syms_of_dired): Initialize it.
13348
133492008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13350
13351 * fileio.c (double_dollars): Remove dead code.
13352
133532008-05-10 Eli Zaretskii <eliz@gnu.org>
13354
13355 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13356 Mention w32-get-true-file-attributes in doc string.
13357
13358 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13359
133602008-05-09 Glenn Morris <rgm@gnu.org>
13361
13362 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13363 2008-04-23.
13364
133652008-05-09 Eli Zaretskii <eliz@gnu.org>
13366
13367 Support for reporting owner and group of each file on MS-Windows:
13368 * dired.c (stat_uname, stat_gname): New functions, with special
13369 implementation for w32.
13370 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13371
13372 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13373 (dflt_group_name): New static variable.
13374 (dflt_group): Rename from the_group.
13375 (init_user_info): Init dflt_group fields. Get user's group name
13376 from LookupAccountSid.
13377 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13378 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13379 New initialization states.
13380 (globals_of_w32): Initialize them to zero. Initialize the default
13381 group name to "None".
13382 (GetFileSecurity_Name): New global var, the name of the function
13383 to call for GetFileSecurity.
13384 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13385 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13386 (get_file_security, get_security_descriptor_owner)
13387 (get_security_descriptor_group, is_valid_sid)
13388 (get_file_security_desc, get_rid, get_name_and_id)
13389 (get_file_owner_and_group): New functions.
13390 (stat): Use get_file_security_desc and get_file_owner_and_group to
13391 report the owner and primary group of each file. Don't ignore the
13392 high 32 bits of file's size, now that st_size is 64-bit wide.
13393 Fix test when to get true file attributes.
13394 (init_user_info): Use get_rid instead of equivalent inline code.
13395 (fstat): Don't ignore the high 32 bits of file's size.
13396
133972008-05-09 Chong Yidong <cyd@stupidchicken.com>
13398
13399 * image.c (png_load): Use correct bit-depth for setting background
13400 color.
13401
134022008-05-08 Eli Zaretskii <eliz@gnu.org>
13403
13404 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13405 epa-hook.elc.
13406
134072008-05-08 Juanma Barranquero <lekktu@gmail.com>
13408
13409 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13410
134112008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13412
13413 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13414 because the original parameters are in pure storage now.
13415 (mac_window): Remove unused params. Update callers.
13416
134172008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13418
13419 * lread.c (substitute_object_recurse): Use lower-level primitives.
13420 Don't signal errors when traversing sub-char-tables.
13421 Don't loop over all the possible characters when traversing char-tables.
13422
13423 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13424 just like we do in print.c.
13425
134262008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13427
13428 * minibuf.c (Ftry_completion): Remove code left over from when we used
13429 scmp instead of Fcompare_strings.
13430
134312008-05-04 Juanma Barranquero <lekktu@gmail.com>
13432
13433 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13434
134352008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13436
13437 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13438 Create bitmap context in native byte order.
13439
13440 * macterm.c (XDrawLine)
13441 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13442 context in native byte order.
13443
134442008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13445
13446 * config.in: Regenerate.
13447
13448 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13449 New definitions for Image I/O support.
13450 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13451 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13452 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13453 (mac_data_provider_release_data, image_load_image_io)
13454 [USE_MAC_IMAGE_IO]: New functions.
13455 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13456 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13457 (init_image_func_pointer) [MAC_OSX]: Remove function.
13458 (image_load_quartz2d) [MAC_OSX]: Check availability of
13459 CGImageCreateWithPNGDataProvider at compile time.
13460 Use lowercase `false' for boolean constant.
13461 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13462 Use image_load_image_io.
13463 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13464 Don't check MyCGImageCreateWithPNGDataProvider.
13465 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13466 Don't call init_image_func_pointer.
13467
13468 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13469
13470 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13471 Make variable non-static.
13472 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13473 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13474
13475 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13476 (RED_FROM_ULONG): Mask off higher bits.
13477 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13478
13479 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13480 Include AvailabilityMacros.h.
13481 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13482 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13483
134842008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13485
13486 * chartab.c (Fset_char_table_range): If range is t, really set all
13487 chars to that value.
13488
134892008-05-03 Eli Zaretskii <eliz@gnu.org>
13490
13491 * dired.c (Ffile_attributes): Don't allow the device number become
13492 negative.
13493
134942008-05-02 Daiki Ueno <ueno@unixuser.org>
13495
13496 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13497
134982008-05-02 Juri Linkov <juri@jurta.org>
13499
13500 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13501 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13502 DEFAULT argument as a list of default values in docstrings.
13503
135042008-05-01 Chong Yidong <cyd@stupidchicken.com>
13505
13506 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13507
135082008-05-01 Martin Rudalics <rudalics@gmx.at>
13509
13510 * dispnew.c (change_frame_size_1): Preserve small windows when
13511 shrinking frames by calling set_window_height|width with third
13512 arg 2.
13513
13514 * window.h (struct window): Replace field too_small_ok by field
13515 resize_proportionally.
13516
13517 * window.c (make_window): Initialize resize_proportionally.
13518 (enlarge_window): Temporarily set resize_proportionally to make
13519 sure that shrink_windows does scale the window proportionally.
13520 (shrink_windows): When window has resize_proportionally set try
13521 to shrink it proportionally by stealing from other windows.
13522 (struct saved_window, Fset_window_configuration)
13523 (compare_window_configurations): Handle resize_proportionally.
13524 (WINDOW_TOTAL_SIZE): New macro.
13525 (window_min_size, shrink_windows, size_window): Use it.
13526 (check_min_window_sizes): Remove. Invalid values of
13527 window-min-height|width are handled by window_min_size_2 now.
13528 (size_window, Fsplit_window, enlarge_window)
13529 (adjust_window_trailing_edge, grow_mini_window): Don't call
13530 check_min_window_sizes.
13531 (window_min_size_2, window_min_size_1, window_min_size):
13532 New argument safe_p for retrieving "safe" minimum sizes.
13533 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13534 (adjust_window_trailing_edge, grow_mini_window):
13535 Adjust arguments of window_min_size... functions.
13536 (shrink_windows): Argument min_size removed. New argument
13537 safe_p allows shrinking windows to their safe minimum sizes.
13538 Calculate minimum size and decide whether a window shall be
13539 deleted for each window individually.
13540 (size_window): When nodelete_p equals 2, tell shrink_windows to
13541 delete windows only if their new minimum size is no more safe.
13542 (shrink_window_lowest_first): Call window_min_size_1 to make
13543 sure to preserve modeline of bottom-most window when resizing
13544 the minibuffer.
13545 (Fset_window_configuration, Fcurrent_window_configuration)
13546 (compare_window_configurations): Do not handle
13547 window-min-height|width any more.
13548 (syms_of_window): Clarify window-min-height|width doc-strings.
13549
135502008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13551
13552 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13553 some more. Copy some of the code from Ftry_completions.
13554 Remove special case code that dates back to initial revision when the
13555 slash was only added when necessary and that can't trigger nowadays.
13556
135572008-04-27 Kenichi Handa <handa@m17n.org>
13558
13559 * font.c (font_prop_validate): Signal `error' instead of `font'.
13560
135612008-04-29 Jason Rumney <jasonr@gnu.org>
13562
13563 * w32fns.c (Fw32_battery_status): New defun.
13564 (syms_of_w32fns): Defsubr it.
13565
135662008-04-28 Andreas Schwab <schwab@suse.de>
13567
13568 * dired.c (file_name_completion): Fix another mixing of encoded
13569 and decoded names.
13570
135712008-04-28 Juanma Barranquero <lekktu@gmail.com>
13572
13573 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13574
135752008-04-27 Juanma Barranquero <lekktu@gmail.com>
13576
13577 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13578
135792008-04-27 Andreas Schwab <schwab@suse.de>
13580
13581 * dired.c (file_name_completion): Fix inappropriate mixing of
13582 encoded and decoded names.
13583
13584 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13585
13586 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13587
135882008-04-26 Eli Zaretskii <eliz@gnu.org>
13589
13590 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13591 2008-03-31, it's not needed anymore with `struct stat' definition
13592 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13593 for the same reasons.
13594
135952008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13596
13597 * m/sparc.h: Additional redefinitions for GNU/Linux.
13598
135992008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13600
13601 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13602 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13603 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13604 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13605 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13606 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13607 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13608 Likewise.
13609
13610 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13611 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13612 (mac_ax_number_of_characters): Add externs.
13613 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13614 [USE_MAC_TSM]: Likewise.
13615 (mac_handle_text_input_event) [MAC_OSX]:
13616 Handle kEventTextInputOffsetToPos for no active input area case.
13617 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13618 (mac_handle_document_access_event)
13619 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13620 (install_application_handler) [MAC_OSX]: Register handlers for
13621 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13622 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13623 Register mac_handle_document_access_event.
13624
13625 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13626 Make functions non-static.
13627
136282008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13629
13630 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13631 (read_file_name_completion_ignore_case, insert_default_directory)
13632 (Qdefault_directory): Move to minibuffer.el.
13633 (Fread_file_name): Call the new `read-file-name' instead.
13634
136352008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13636
13637 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13638 Make function non-static.
13639 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13640 Remove function.
13641 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13642 Move to mactoolbox.c.
13643 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13644
13645 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13646 (mac_rect_make): New macro.
13647
13648 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13649 instead of float.
13650 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13651 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13652 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13653 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13654 CGRectMake.
13655 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13656 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13657 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13658 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13659 instead of WindowRef in argument type.
13660 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13661 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13662 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13663 instead of DISPLAY. All uses changed.
13664 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13665 (x_calc_absolute_position): Simplify so as not to use
13666 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13667
13668 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13669 instead of WindowRef in argument type.
13670 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13671 [TARGET_API_MAC_CARBON]: Remove externs.
13672 (create_apple_event, mac_event_parameters_to_lisp)
13673 [TARGET_API_MAC_CARBON]: Add externs.
13674
13675 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13676 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13677 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13678 is clicked.
13679 (x_activate_menubar): Remove extern for saved_menu_event_location.
13680 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13681 Move from mac.c.
13682
136832008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13684
13685 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13686 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13687
136882008-04-23 Jason Rumney <jasonr@gnu.org>
13689
13690 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13691 attributes only for local files.
13692
13693 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13694 default to Qlocal.
13695
136962008-04-22 Juri Linkov <juri@jurta.org>
13697
13698 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13699 read-buffer-to-switch instead of using the letter "B".
13700
137012008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13702
13703 * fileio.c (Qdefault_directory): New variable.
13704 (Fread_file_name): Use it to pass `dir' to the completion functions.
13705
137062008-04-20 Chong Yidong <cyd@stupidchicken.com>
13707
13708 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13709
137102008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13711
13712 * keyboard.c (Vpre_help_message): Remove.
13713 (show_help_echo): Remove default C code.
13714
13715 * dired.c (directory_files_internal, file_name_completion):
13716 Only call ENCODE_FILE if the string is indeed decoded.
13717
137182008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13719
13720 * Makefile.in (TOOLKIT_DEFINES): Remove.
13721 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13722
137232008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13724
13725 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13726 (mactoolbox.o): New target.
13727
13728 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13729 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13730
13731 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13732 Use mac_set_frame_window_background instead of XSetWindowBackground.
13733 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13734 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13735 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13736 instead of SetWindowTitleWithCFString.
13737 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13738 Move function to mactoolbox.c.
13739 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13740 Use mac_set_window_modified instead of SetWindowModified.
13741 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13742 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13743 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13744 FrontNonFloatingWindow. Use mac_activate_window instead of
13745 ActivateWindow. Use mac_active_non_floating_window instead of
13746 ActiveNonFloatingWindow.
13747 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13748 Use mac_show_hourglass and mac_hide_hourglass.
13749 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13750 instead of GetGlobalMouse.
13751 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13752 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13753 Use mac_bring_window_to_front instead of BringToFront.
13754 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13755 mactoolbox.c.
13756 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13757 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13758 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13759 mactoolbox.c.
13760
13761 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13762 (XtPointer): Move typedef from macmenu.c.
13763 (enum button_type): Move enum from macmenu.c.
13764 (widget_value): Move typedef from macmenu.c.
13765 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13766 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13767 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13768 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13769 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13770 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13771 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13772 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13773 (Selection): Move typedef from macselect.c.
13774 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13775 macterm.c.
13776 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13777 (mac_is_window_collapsed, mac_bring_window_to_front)
13778 (mac_send_window_behind, mac_hide_window, mac_show_window)
13779 (mac_collapse_window, mac_front_non_floating_window)
13780 (mac_active_non_floating_window, mac_activate_window)
13781 (mac_move_window_structure, mac_move_window, mac_size_window)
13782 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13783
13784 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13785 (enum mac_menu_kind): Move enum to mactoolbox.c.
13786 (min_menu_id): Move variable to mactoolbox.c.
13787 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13788 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13789 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13790 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13791 [TARGET_API_MAC_CARBON]: Likewise.
13792 (XtPointer): Move typedef to macgui.h.
13793 (enum button_type): Move enum to macgui.h.
13794 (widget_value): Move typedef to macgui.h.
13795 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13796 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13797 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13798 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13799 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13800 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13801 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13802 (popup_activated_flag): Make variable non-static.
13803 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13804 (add_menu_item, fill_menu, dispose_menus):
13805 Move functions to mactoolbox.c.
13806 (restore_show_help_function, menu_target_item_handler)
13807 (install_menu_target_item_handler, mac_handle_dialog_event)
13808 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13809 [TARGET_API_MAC_CARBON]: Likewise.
13810 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13811 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13812 (find_and_call_menu_selection, name_is_separator): Make function
13813 non-static.
13814 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13815 to mactoolbox.c.
13816 (set_frame_menubar): Don't call install_menu_quit_handler.
13817 (menu_item_selection): New variable.
13818 (mac_menu_show): Use create_and_show_popup_menu.
13819 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13820 selection but set variable menu_item_selection. All uses changed.
13821 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13822 Call install_menu_quit_handler. Move to mactoolbox.c.
13823
13824 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13825 (Selection): Move typedef to macgui.h.
13826 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13827 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13828 Make variables non-static.
13829 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13830 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13831 Make functions non-static.
13832 (Vmac_service_selection) [MAC_OSX]: Likewise.
13833 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13834 (mac_valid_selection_target_p, mac_clear_selection)
13835 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13836 (mac_put_selection_value, mac_selection_has_target_p)
13837 (mac_get_selection_value, mac_get_selection_target_list)
13838 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13839 Move functions to mactoolbox.c.
13840 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13841 Likewise.
13842 (copy_scrap_flavor_data, mac_handle_service_event)
13843 (install_service_handler) [MAC_OSX]: Likewise.
13844 (syms_of_macselect) <Vmac_dnd_known_types>:
13845 Use mac_dnd_default_known_types.
13846
13847 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13848 Move to mactoolbox.c.
13849 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13850 (Fx_selection_owner_p): Add EXFUN.
13851 (install_window_handler, remove_window_handler, XSetWindowBackground):
13852 Remove externs.
13853 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13854 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13855 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13856 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13857 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13858 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13859 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13860 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13861 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13862 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13863 (mac_valid_selection_target_p, mac_clear_selection)
13864 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13865 (mac_put_selection_value, mac_selection_has_target_p)
13866 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13867 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13868 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13869 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13870 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13871 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13872 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13873 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13874 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13875
13876 * mactoolbox.c: New file.
13877
138782008-04-18 Jason Rumney <jasonr@gnu.org>
13879
13880 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13881
138822008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13883
13884 * character.c (Fmultibyte_char_to_unibyte):
13885 Return latin1 chars unchanged.
13886
13887 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13888 relocated if it points to `name'.
13889
138902008-04-17 Kenichi Handa <handa@m17n.org>
13891
13892 * data.c (Faset): Allow setting a multibyte character in an
13893 ASCII-only unibyte string.
13894
13895 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13896
138972008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13898
13899 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13900 done in config.h.
13901
139022008-04-16 Juanma Barranquero <lekktu@gmail.com>
13903
13904 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13905 (Fchar_direction): Add usage in the docstring.
13906
139072008-04-15 Chong Yidong <cyd@stupidchicken.com>
13908
13909 * keyboard.c (read_key_sequence): Remove always-true checks.
13910
139112008-04-14 Jason Rumney <jasonr@gnu.org>
13912
13913 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13914 compatibility struct, for better underline positioning.
13915
139162008-04-13 David Hansen <david.hansen@gmx.net>
13917
13918 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13919 string.
13920
139212008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13922
13923 * m/hp800.h (XUINT, XSET): Remove.
13924
139252008-04-12 Juanma Barranquero <lekktu@gmail.com>
13926
13927 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13928 previous change.
13929
139302008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13931
13932 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13933 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13934
139352008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13936
13937 * keymap.h (map_keymap_canonical): Declare.
13938 * xmenu.c (single_keymap_panes): Use it.
13939
139402008-04-11 Glenn Morris <rgm@gnu.org>
13941
13942 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13943 set the target's value to that of the alias.
13944
139452008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13946
13947 * term.c (set_tty_color_mode): Left over typo.
13948
139492008-04-10 Michael Albinus <michael.albinus@gmx.de>
13950
13951 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13952 only after check for file name handler functions. Signal, when
13953 native functionality is not supported.
13954 (syms_of_fileio): Declare it unconditionally.
13955
139562008-04-10 Jason Rumney <jasonr@gnu.org>
13957
13958 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13959 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13960
13961 * w32.c (logon_network_drive): Also logon to remote drives that
13962 are mapped to drive letters.
13963
139642008-04-10 Glenn Morris <rgm@gnu.org>
13965
13966 * xdisp.c (truncate-partial-width-windows): Doc fix.
13967
139682008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13969
13970 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13971 Move functions to minibuffer.el.
13972 (syms_of_fileio): Don't declare them.
13973
139742008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13975
13976 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13977 (syms_of_minibuf): Remove its initialization.
13978
13979 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13980
139812008-04-09 Juanma Barranquero <lekktu@gmail.com>
13982
13983 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13984
139852008-04-09 Jason Rumney <jasonr@gnu.org>
13986
13987 * makefile.w32-in (distclean): Delete makefile too.
13988 (maintainer-clean): New target.
13989
13990 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13991
13992 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13993 for new font backend and composite cases.
13994
139952008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13996
13997 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13998 Most of the code moved to run_timers.
13999 (do_pending_atimers): Call run_timers.
14000 (run_timers): New function.
14001
14002 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14003 run atimers.
14004
14005 * process.c (wait_reading_process_output): The same as above.
14006
140072008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14008
14009 * minibuf.c (last_exact_completion): Remove variable.
14010 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14011 (complete_and_exit_1, complete_and_exit_2)
14012 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14013 (Fdisplay_completion_list, display_completion_list_1)
14014 (Fminibuffer_completion_help, Fself_insert_and_exit)
14015 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14016 minibuffer.el.
14017 (syms_of_minibuf): Remove corresponding initializations.
14018
14019 * keyboard.c (Qdeactivate_mark): New var.
14020 (command_loop_1): Use it to call `deactivate-mark'.
14021 (syms_of_keyboard): Initialize it.
14022
14023 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14024 to another frame.
14025 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14026 Don't call set_tty_color_mode.
14027 (store_frame_param): Reset previous_frame rather than call
14028 set_tty_color_mode.
14029 * term.c (set_tty_color_mode): Rewrite.
14030 * dispextern.h (set_tty_color_mode): New type.
14031 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14032
140332008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14034
14035 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14036 for generic chars, which do not exist any more in emacs-unicode.
14037
140382008-04-08 Michael Albinus <michael.albinus@gmx.de>
14039
14040 * coding.c (detect_coding_emacs_mule)
14041 (Ffind_operation_coding_system): Fix typo.
14042
140432008-04-08 Jason Rumney <jasonr@gnu.org>
14044
14045 * w32uniscribe.c (SNAME): Extract only symbol name.
14046
14047 * w32font.h (struct w32_metric_cache): New struct.
14048 (w32font_info): Use it.
14049 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14050 (CACHE_BLOCKSIZE): New constants.
14051
14052 * w32font.c (Qja, Qko, Qzh): New symbols.
14053 (syms_of_w32font): Initialise them.
14054 (font_matches_spec): Use them to filter by language.
14055 (recompute_cached_metrics): Remove function.
14056 (compute_metrics, clear_cached_metrics): New functions.
14057 (w32font_encode_char): Use them to manage metric cache.
14058 (w32font_text_extents): Cache metrics for all glyphs on demand.
14059 Delay converting glyph indices to WORD until needed.
14060 (w32font_open_internal): Initialize metric cache to empty.
14061 (registry_to_w32_charset): Charset should always be a symbol.
14062 (fill_in_logfont, list_all_matching_fonts): Family should
14063 always be a symbol.
14064
140652008-04-06 Jason Rumney <jasonr@gnu.org>
14066
14067 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14068 Give up if glyph indices not supported. Use uniscribe obtained
14069 ABC widths for individual metrics. Map glyph clusters back to
14070 characters using fClusterStart flag. Return number of glyphs
14071 produced, not chars processed.
14072 (uniscribe_shape): Map char at FROM to current glyph.
14073
140742008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14075
14076 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14077 Use SetMenuItemHierarchicalMenu.
14078
140792008-04-05 Jason Rumney <jasonr@gnu.org>
14080
14081 * image.c (pbm_load): Allow color values up to 65535.
14082 Throw an error if max_color_idx is outside the supported range.
14083 Report an error when image size is invalid.
14084 Read two bytes at a time when raw images have max_color_idx above 255.
14085
aac0c6e3
MR
140862008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14087
14088 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14089 append "CCL: Quitted" when the CCL program is quitted.
14090 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14091
14092 * ccl.h (struct ccl_program): New member quit_silently.
14093
140942008-04-05 Chong Yidong <cyd@stupidchicken.com>
14095
14096 * search.c (compile_pattern_1): Treat non-nil and non-string of
14097 search-spaces-regexp as nil.
14098
14099 * minibuf.c (Fassoc_string): Tweak docstring.
14100
141012008-04-05 Eli Zaretskii <eliz@gnu.org>
14102
14103 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14104 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14105 2008-03-14 to force inode be positive.
14106
14107 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14108 _S_* ones, since we now use our own sys/stat.h.
14109 (stat, fstat): Don't mangle the inode number.
14110 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14111
141122008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14113
14114 * frame.h (struct frame): Give one more bit to `visible' since we use
14115 values larger than 1 to indicate obscured frames on ttys.
14116
14117 * keymap.c (Qkeymap_canonicalize): New var.
14118 (Fmap_keymap_internal): New fun.
14119 (describe_map): Use keymap-canonicalize.
14120
14121 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14122 (Fundo_boundary): Set them.
14123 (syms_of_undo): Initialize them.
14124 (record_point): Use them instead of last_point_position*.
14125 (last_undo_buffer): Change type.
14126
141272008-04-04 Jason Rumney <jasonr@gnu.org>
14128
14129 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14130 (recompute_cached_metrics): Don't set ascent and descent per char.
14131
14132 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14133 (uniscribe_check_otf): Add GC protection before consing.
14134 Rearrange loop for counting features.
14135
141362008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14137
14138 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14139 buffer with byte-size of source buffer.
14140
141412008-04-03 Chong Yidong <cyd@stupidchicken.com>
14142
14143 * callint.c (Fcall_interactively): Handle temporary region even
14144 when shift-select-mode is off.
14145
141462008-04-03 Jason Rumney <jasonr@gnu.org>
14147
14148 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14149
141502008-04-03 Kenichi Handa <handa@m17n.org>
14151
14152 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14153 (CATEGORY_MASK_UTF_16): Likewise.
14154 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14155 binary file.
14156 (detect_coding): Add null-byte detection for a binary file.
14157 (detect_coding_system): Likewise.
14158
141592008-04-03 Jason Rumney <jasonr@gnu.org>
14160
14161 * w32uniscribe.c: New file.
14162
14163 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14164
14165 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14166
14167 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14168 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14169 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14170 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14171 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14172 (Qphonetic): New symbols.
14173 (syms_of_w32font): Initialize them.
14174 (font_supported_scripts): Use them.
14175 (w32font_list_family): List all charsets.
14176 (w32font_text_extents, recompute_cached_metrics): Fix metric
14177 calculations.
14178 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14179 Give opentype fonts their own format.
14180 (font_matches_spec): New arguments backend and logfont.
14181 Handle :otf spec for uniscribe backend.
14182 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14183 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14184
14185 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14186 font backend.
14187 (globals_of_w32fns): Initialize uniscribe font backend.
14188
14189 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14190 dependencies.
14191 (w32uniscribe.$(O)): New file to build.
14192 (FONT_OBJ): Include w32uniscribe.$(O).
14193 (LIBS): Add uniscribe libraries.
14194
14195 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14196
141972008-04-02 Chong Yidong <cyd@stupidchicken.com>
14198
14199 * callint.c (Vshift_select_mode): New var.
14200 (Finteractive): Document new ^ spec.
14201 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14202 is present.
14203
14204 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14205 (command_loop_1): Avoid running the direct display versions of
14206 forward-char and backward-char if shift-selection may occur.
14207 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14208 shift-translation takes place.
14209
14210 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14211 avoid clobbering by define-minor-mode.
14212
14213 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14214 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14215
14216 * syntax.c (Fforward_word): Add ^ interactive spec.
14217
14218 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14219 (Fscroll_right): Add ^ interactive spec.
14220
142212008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14222
14223 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14224
14225 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14226
14227 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14228
142292008-03-31 Juri Linkov <juri@jurta.org>
14230
14231 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14232
142332008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14234
14235 * gtkutil.c (xg_set_geometry): Fix indentation.
14236 (xg_resize_outer_widget): Remove.
14237 (x_wm_size_hint_off): Fix indentation.
14238 (xg_frame_set_char_size): Call flush_and_sync after
14239 gtk_window_resize.
14240 (x_wm_set_size_hint): Pass NULL as geometry window to
14241 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14242 Add menu bar and tool bar height to base height.
14243 (xg_update_frame_menubar, free_frame_menubar)
14244 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14245 (update_frame_tool_bar, free_frame_tool_bar):
14246 Change xg_resize_outer_widget to xg_frame_set_char_size.
14247
142482008-03-30 Michael Albinus <michael.albinus@gmx.de>
14249
14250 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14251 (Fdbus_call_method): New parameter TIMEOUT.
14252 (dbus-send-signal): Optimize UNGCPRO call.
14253
142542008-03-29 Juri Linkov <juri@jurta.org>
14255
14256 * window.c (Fdisplay_buffer): Move call to
14257 Vsplit_window_preferred_function out of conditions that check
14258 if window is eligible for vertical splitting.
14259 When Vsplit_window_preferred_function is non-nil, call it and use
14260 its non-nil return value as window. Otherwise, continue doing
14261 vertical splitting using Fsplit_window with arg horflag=nil.
14262 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14263 default value from `split-window' to nil.
14264
142652008-03-29 Juri Linkov <juri@jurta.org>
14266
14267 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14268 for interactive code letters 'b' and 'B'.
14269
142702008-03-29 Eli Zaretskii <eliz@gnu.org>
14271
14272 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14273 multibyte string.
14274
142752008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14276
14277 * keyboard.c (pending_funcalls): New var.
14278 (timer_check): Run it.
14279 (syms_of_keyboard): Initialize it.
14280 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14281 (Vdelete_terminal_functions): New vars.
14282 (syms_of_terminal): Initialize them.
14283 (Fdelete_terminal): Run delete-terminal-functions.
14284 * xdisp.c (safe_eval): Rewrite.
14285 (safe_call2): New fun.
14286 * frame.c (Qdelete_frame_functions): New var.
14287 (syms_of_frame): Initialize it.
14288 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14289 * lisp.h (safe_call2, pending_funcalls): Declare.
14290
142912008-03-28 Andreas Schwab <schwab@suse.de>
14292
14293 * indent.c (Fmove_to_column): Move declaration before statements.
14294
142952008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14296
14297 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14298 (struct frame): Use bit fields for boolean vars.
14299
14300 * process.c (server_accept_connection): Simplify naming.
14301 (emacs_get_tty_pgrp): Use SDATA.
14302
14303 * coding.c (decode_coding_object): Fix last change.
14304
143052008-03-27 Jason Rumney <jasonr@gnu.org>
14306
14307 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14308
143092008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14310
14311 * charset.c (Fdefine_charset_internal): Change the way of
14312 registering charsets in Vcharset_order_list.
14313 (syms_of_charset): Make the charset `eight-bit' supplementary.
14314
143152008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14316
14317 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14318 operations, to avoid having the difference between pointers
14319 overflow.
14320
143212008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14322
14323 * indent.c (check_display_width): New fun.
14324 (scan_for_column): Use it.
14325
14326 * data.c (syms_of_data): Mark most-positive-fixnum and
14327 most-negative-fixnum as constants.
14328
14329 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14330
14331 * indent.c (scan_for_column): Extract from current_column_1.
14332 Merge with the same code from Fmove_to_column.
14333 (current_column_1, Fmove_to_column): Use it.
14334
143352008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14336
14337 * keymap.c (map_keymap_internal): New fun.
14338 (map_keymap): Use it.
14339 (Fmap_keymap_internal): New fun.
14340 (Fmap_keymap): Remove left-out test from before make_save_value.
14341
14342 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14343
14344 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14345 Use XCAR/XCDR.
14346
14347 * process.h (struct Lisp_Process): Remove filter_multibyte.
14348 * process.c (QCfilter_multibyte): Remove.
14349 (setup_process_coding_systems): Don't use filter_multibyte.
14350 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14351 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14352 (Fset_process_filter_multibyte): Change the coding-system to
14353 approximate the previous behavior.
14354 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14355 coding-system.
14356
14357 * coding.c (decode_coding_object): When not decoding into a buffer,
14358 obey the coding system's preference of (uni|multi)byte.
14359
143602008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14361
14362 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14363 every char is changed and has a different byte-length.
14364 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14365 Fix int -> EMACS_INT.
14366
143672008-03-23 David Hansen <david.hansen@gmx.net>
14368
14369 * dbusbind.c (xd_read_message): Remove extra copying of message
14370 strings. Check for NULL `interface' or `member'.
14371
143722008-03-22 Eli Zaretskii <eliz@gnu.org>
14373
14374 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14375 cFileName a file name that includes `?' characters, use the 8+3
14376 alias in cAlternateFileName instead.
14377
143782008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14379
14380 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14381
143822008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14383
14384 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14385 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14386 work on current_buffer only instead (that was already the case
14387 for some of the code anyway).
14388 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14389 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14390 (SET_PT, SET_PT_BOTH): Adjust.
14391 * intervals.h (set_point, temp_set_point, set_point_both)
14392 (temp_set_point_both): Remove redundant declarations.
14393
143942008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14395
14396 * fileio.c (Finsert_file_contents):
14397 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14398 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14399 when buffer != current_buffer anyway.
14400
144012008-03-20 Andreas Schwab <schwab@suse.de>
14402
14403 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14404 as default.
14405
144062008-03-19 Jason Rumney <jasonr@gnu.org>
14407
14408 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14409 (syms_of_w32fns): Initialize them.
14410 (HOURGLASS_ID): New constant.
14411 (x_window_to_frame): Don't check hourglass_window.
14412 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14413 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14414 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14415 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14416 Only change the cursor if hourglass is not active.
14417 (Fx_create_frame): Initialize frame's current_cursor.
14418 (hourglass_atimer): Remove.
14419 (hourglass_started): New function.
14420 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14421 (show_hourglass): Adapt to w32, changing argument to frame.
14422
14423 * w32term.h (struct w32_output): Remove hourglass_window.
14424 Add current_cursor.
14425
14426 * eval.c (call_debugger, Fsignal):
14427 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14428 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14429 (Fexecute_extended_command, cancel_hourglass_unwind):
14430 * minibuf.c (read_minibuf):
14431 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14432
144332008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14434
14435 * window.c (run_funs): New fun.
14436 (run_window_configuration_change_hook): Use it to run the buffer-local
14437 and the global part of the hook.
14438
14439 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14440 (unwind_format_mode_line): Restore selected window.
14441 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14442
144432008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14444
14445 * editfns.c (Fchar_equal): Check they are valid characters.
14446
14447 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14448
144492008-03-17 Andreas Schwab <schwab@suse.de>
14450
14451 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14452 against a charset.
14453
14454 * lisp.h (Fbuffer_list): Declare.
14455
144562008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14457
aac0c6e3
MR
14458 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14459 handlebox_widget is != 0.
14460
144612008-03-16 Juri Linkov <juri@jurta.org>
14462
14463 * callint.c (Fcall_interactively): For interactive code letters
14464 'b' and 'B' put the buffer list into the list of default "future"
14465 values of the minibuffer.
14466
144672008-03-16 Andreas Schwab <schwab@suse.de>
14468
14469 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14470 modifiers.
14471
14472 * regex.c (re_match_2_internal): Correct matching of a charset
14473 against latin-1 characters.
14474
144752008-03-16 Kenichi Handa <handa@m17n.org>
14476
14477 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14478 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14479 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14480 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14481 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14482 CHAR_STRING_ADVANCE.
14483 (produce_chars): Fix for the case that the source and the
14484 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14485 instead of CHAR_STRING_ADVANCE.
14486 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14487 STRING_CHAR_ADVANCE.
14488
144892008-03-15 Andreas Schwab <schwab@suse.de>
14490
14491 * regex.c (re_match_2_internal): Correct matching of eight bit
14492 characters in unibyte strings.
14493
144942008-03-15 Martin Rudalics <rudalics@gmx.at>
14495
14496 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14497 at end of range when it coincides with the end of the buffer.
14498
144992008-03-14 Eli Zaretskii <eliz@gnu.org>
14500
14501 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14502
14503 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14504
145052008-03-14 Jason Rumney <jasonr@gnu.org>
14506
14507 * editfns.c (initial_tz): New variable.
14508 (syms_of_editfns): Initialize it.
14509 (Fset_time_zone_rule): Set it when first called.
14510 Use it when TZSTRING is nil.
14511
14512 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14513 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14514 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14515 (globals_of_w32fns): Initialize them.
14516 (compute_tip_xy): Use them to position tooltips.
14517
145182008-03-14 Glenn Morris <rgm@gnu.org>
14519
14520 * emacs.c (main): Revert previous change.
14521 (standard_args): Revert -internal-script back to -scriptload,
14522 and remove the long-option form.
14523
145242008-03-13 Glenn Morris <rgm@gnu.org>
14525
14526 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14527 Remove option -enable-font-backend.
14528
145292008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14530
14531 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14532
145332008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14534
14535 * xterm.c (x_connection_closed): For GTK: If this is the last
14536 terminal just exit without closing the display.
14537
145382008-03-11 Jason Rumney <jasonr@gnu.org>
14539
14540 * w32font.c (w32font_full_name): Use floor to round.
14541
f0131492 145422008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14543
14544 * sound.c (alsa_configure): Declare vol at beginning of block.
14545
14546 * fontset.c (Ffontset_info): Remove extra semicolon.
14547
145482008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14549
14550 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14551 size of resulting string.
14552
145532008-03-10 Jason Rumney <jasonr@gnu.org>
14554
14555 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14556
145572008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14558
14559 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14560 Don't pretend as if characters with display property haven't been
14561 consumed for string-replacing-string case.
14562
145632008-03-08 Kim F. Storm <storm@cua.dk>
14564
14565 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14566 (get_next_display_element, next_element_from_string)
14567 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14568
145692008-03-08 Andreas Schwab <schwab@suse.de>
14570
14571 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14572
145732008-03-06 Jason Rumney <jasonr@gnu.org>
14574
14575 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14576 when charset not specified. Only translate ANSI to unicode when
14577 font_type is truetype.
14578 (w32font_coverage_ok): New function.
14579 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14580
145812008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14582
14583 * lread.c (Fread_char): Resolve modifiers.
14584 (Fread_char_exclusive): Likewise.
14585
14586 * character.c (char_resolve_modifier_mask): New function.
14587 (char_string): Use char_resolve_modifier_mask.
14588 (Fchar_resolve_modifiers): New function.
14589 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14590 function.
14591
145922008-03-04 Jason Rumney <jasonr@gnu.org>
14593
14594 * makefile.w32-in: Always include w32font.c in the build.
14595 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14596
145972008-03-04 Andreas Schwab <schwab@suse.de>
14598
14599 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14600 (versionclean): Likewise.
14601
146022008-03-04 Juanma Barranquero <lekktu@gmail.com>
14603
14604 * .cvsignore: Add oo.
14605
146062008-03-03 Andreas Schwab <schwab@suse.de>
14607
14608 * coding.c (decode_coding_object): Inhibit gap shrinking while
14609 decoding in place.
14610
146112008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14612
14613 * w32term.c: Remove unused include "gnu.h".
14614 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14615
14616 * gnu.h: Rename to ...
14617 * emacs-icon.h: ... this.
14618 * xterm.c: Use emacs-icon.h instead of gnu.h.
14619 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14620
146212008-03-03 Juanma Barranquero <lekktu@gmail.com>
14622
14623 * w32font.c: Include math.h.
14624
146252008-03-03 Jason Rumney <jasonr@gnu.org>
14626
14627 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14628 Compute options separately.
14629 (w32font_open_internal): Set glyph_idx before caching metrics.
14630
14631 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14632 Define if system headers don't.
14633 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14634 (w32font_encode_char): Don't declare here.
14635
14636 * w32font.c (Quniscribe, QCformat): New symbols.
14637 (syms_of_w32font): Define them.
14638 (w32font_has_char): Indicate uncertainty.
14639 (w32font_encode_char): Encode as glyph point. Make static.
14640 (recompute_cached_metrics): New function.
14641 (w32font_open_internal): Use it. Set font to use glyph points
14642 initially. Set format based on type of font.
14643 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14644 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14645 on it. Set format based on information available here.
14646 (add_font_entity_to_list): Identify backend based on opentype_only.
14647
146482008-03-02 Andreas Schwab <schwab@suse.de>
14649
14650 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14651
14652 * coding.c (decode_coding_big5, produce_chars):
14653 Fix typos in last change.
14654
146552008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14656
14657 * gnu.h: New icon.
14658
146592008-03-02 Kenichi Handa <handa@m17n.org>
14660
14661 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14662 `dos', don't decode '\r' if that is the last in the source.
14663 (decode_coding_utf_16, decode_coding_emacs_mule)
14664 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14665 (decode_coding_raw_text, decode_coding_charset): Likewise.
14666 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14667
146682008-03-01 Jason Rumney <jasonr@gnu.org>
14669
14670 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14671
146722008-03-01 Kim F. Storm <storm@cua.dk>
14673
14674 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14675
146762008-03-01 Jason Rumney <jasonr@gnu.org>
14677
14678 * w32font.c (w32font_full_name): New function.
14679 (w32font_open_internal): Use it.
14680
146812008-03-01 Kim F. Storm <storm@cua.dk>
14682
14683 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14684
146852008-03-01 Jason Rumney <jasonr@gnu.org>
14686
14687 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14688
146892008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14690
14691 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14692 xg_frame_resized when the event is for the edit widget.
14693
14694 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14695
14696 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14697 set_char_size.
14698 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14699 operations on widgets here. Just set frame size if needed.
14700 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14701 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14702 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14703 the whole frame.
14704 (xg_create_tool_bar): Move attachment of the tool bar to
14705 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14706 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14707
147082008-03-01 Jason Rumney <jasonr@gnu.org>
14709
14710 * w32fns.c (w32_msg_pump): Disable debug code.
14711
147122008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14713
14714 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14715
147162008-02-29 Chong Yidong <cyd@stupidchicken.com>
14717
14718 * xdisp.c (next_overlay_string): Don't set
14719 overlay_strings_at_end_processed_p if we're currently reading from
14720 a display string.
14721
147222008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14723
14724 * xdisp.c (get_overlay_strings_1): Fix typo.
14725
147262008-02-29 Chong Yidong <cyd@stupidchicken.com>
14727
14728 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14729
147302008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14731
14732 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14733
14734 * xdisp.c (display_mode_element): Cancel the previous change.
14735 (decode_mode_spec): Likewise.
14736 (handle_auto_composed_prop): Don't make composition if it->string
14737 is a string.
14738
147392008-02-27 Kim F. Storm <storm@cua.dk>
14740
14741 * lisp.h (GLYPH): Change type from int to struct with separate char
14742 and face_id members.
14743 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14744 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14745 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14746 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14747 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14748 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14749 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14750 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14751 handle new Lisp glyph code encoding, either an integer or a cons.
14752
14753 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14754 (GLYPH_ALIAS): Delete.
14755 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14756 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14757 (GLYPH_FROM_CHAR): Replace macro by ...
14758 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14759
14760 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14761 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14762 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14763 (GLYPH_INVALID_P): New macro.
14764 (spec_glyph_lookup_face): Update prototype.
14765
14766 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14767 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14768 new glyph code encoding.
14769 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14770 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14771
14772 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14773 Adapt to new glyph type and new glyph code encoding.
14774
14775 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14776
14777 * indent.c (current_column, current_column_1, Fmove_to_column)
14778 (compute_motion): Adapt to new glyph code encoding.
14779
14780 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14781
147822008-02-27 Chong Yidong <cyd@stupidchicken.com>
14783
14784 * process.c (wait_reading_process_output): Check for window
14785 changes caused by timers.
14786 Suggested by Johan Bockgård.
14787
147882008-02-27 Glenn Morris <rgm@gnu.org>
14789
14790 * emacs.c (USAGE1): Add `--disable-font-backend'.
14791
147922008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14793
14794 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14795 is made to the buffer.
14796
147972008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14798
14799 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14800 (face_at_string_position):
14801 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14802 (face_at_string_position):
14803 * xdisp.c (display_string, next_overlay_change):
14804 * buffer.h (overlays_at):
14805 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14806 Update callers.
14807
148082008-02-26 Chong Yidong <cyd@stupidchicken.com>
14809
14810 * editfns.c (Fformat): Doc fix.
14811
148122008-02-26 Juanma Barranquero <lekktu@gmail.com>
14813
14814 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14815 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14816 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14817
148182008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14819
14820 * buffer.c (Fbuffer_swap_text): New function.
14821 (syms_of_buffer): Defsubr it.
14822
148232008-02-25 Chong Yidong <cyd@stupidchicken.com>
14824
14825 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14826
148272008-02-25 Jason Rumney <jasonr@gnu.org>
14828
14829 * w32font.c (w32font_draw): Draw one character at a time when padding.
14830
148312008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14832
14833 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14834 Handle a nil arg. Use run_window_configuration_change_hook.
14835 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14836 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14837 Use run_window_configuration_change_hook.
14838
148392008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14840
14841 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14842 1-pixel width.
14843
148442008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14845
14846 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14847 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14848 if the glyph in the font is zero pixel with.
14849
14850 * dispextern.h (struct glyph_string): New member padding_p.
14851
14852 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14853
14854 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14855
14856 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14857
14858 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14859
14860 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14861
148622008-02-25 Jason Rumney <jasonr@gnu.org>
14863
14864 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14865
148662008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14867
14868 Allow fine-grained image-cache flushing.
14869 * dispextern.h (struct image): Add `dependencies' field.
14870 (clear_image_caches): Change arg to Lisp_Object.
14871 * image.c (make_image): Initialize `dependencies' field.
14872 (clear_image_cache): Change arg to allow fine-grained flushing.
14873 Perform the flush even if image-cache-eviction-delay is nil.
14874 (clear_image_caches): Change arg to Lisp_Object.
14875 (Fclear_image_cache): Expand meaning of the argument.
14876 (mark_image): Mark `dependencies' field.
14877 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14878 (lface_hash): Use XHASH rather than XFASTINT.
14879 (face_at_buffer_position): Fix int -> EMACS_INT position.
14880 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14881 (select_frame_for_redisplay): Remove code duplication.
14882 (redisplay_internal): Adapt arg to call to clear_image_caches.
14883
148842008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14885
14886 * s/vms4-0.h:
14887 * s/vms4-2.h:
14888 * s/vms4-4.h:
14889 * s/vms5-5.h: Remove, unused.
14890
14891 * s/irix5-2.h:
14892 * s/irix6-0.h:
14893 * s/riscos5.h:
14894 * s/mach-bsd4-3.h:
14895 * m/mips4.h: Remove files for obsolete systems.
14896
14897 * Makefile.in:
14898 * filelock.c:
14899 * unexmips.c:
14900 * m/hp9000s300.h:
14901 * m/iris4d.h:
14902 * s/aix3-1.h:
14903 * s/hpux.h:
14904 * s/msdos.h:
14905 * s/usg5-0.h:
14906 * s/usg5-2-2.h:
14907 * s/usg5-2.h:
14908 * s/usg5-3.h: Remove references to obsolete variables.
14909
14910 * s/irix5-0.h: Remove, move all the contents ...
14911 * s/irix6-5.h: ... here. Simplify.
14912 * config.in: Regenerate.
14913
149142008-02-24 Jason Rumney <jasonr@gnu.org>
14915
14916 * w32term.c (x_draw_glyph_string_background): Clear the background
14917 manually when cleartype is in use.
14918 (x_draw_glyph_string_foreground): Draw text transparently when
14919 cleartype is in use.
14920
14921 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14922 a font into it unless we have to.
14923
149242008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14925
14926 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14927 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14928
aac0c6e3
MR
149292008-02-18 Jason Rumney <jasonr@gnu.org>
14930
14931 * w32fns.c (Fw32_shell_execute): Encode parameters.
14932
149332008-02-09 Eli Zaretskii <eliz@gnu.org>
14934
14935 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14936
149372008-02-05 Juanma Barranquero <lekktu@gmail.com>
14938
14939 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14940
149412008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14942
14943 * xterm.c (x_set_offset): Don't change the gravity if
14944 CHANGE_GRAVITY is -1.
14945
149462008-02-23 Chong Yidong <cyd@stupidchicken.com>
14947
14948 * fileio.c (auto_save_error_occurred): New var.
14949 (auto_save_error): Set it.
14950 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14951 error occurred.
14952
149532008-02-23 Eli Zaretskii <eliz@gnu.org>
14954
14955 * w32.c (globals_of_w32): Add initializations for
14956 g_b_init_get_sid_sub_authority and
14957 g_b_init_get_sid_sub_authority_count.
14958
149592008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14960
14961 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14962 (font_parse_xlfd): Use them for sanity check.
14963 (Finternal_set_font_style_table): Make sure the table is bijective.
14964
14965 Consolidate the image_cache to the terminal struct.
14966 * termhooks.h (P_): Remove redundant def.
14967 (struct terminal): New field `image_cache'.
14968 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14969 of FRAME_X_IMAGE_CACHE.
14970 * xterm.h (struct x_display_info): Remove image_cache field.
14971 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14972 * w32term.h (struct w32_display_info): Remove image_cache field.
14973 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14974 * macterm.h (struct mac_display_info): Remove image_cache field.
14975 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14976 * xterm.c (x_term_init):
14977 * w32term.c (w32_term_init):
14978 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14979 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14980 Remove declarations.
14981 (clear_image_caches, mark_image_cache): New declarations.
14982 * xfaces.c (clear_face_cache):
14983 * xdisp.c (redisplay_internal): Use clear_image_caches.
14984 * image.c (clear_image_cache): Don't check that a frame is on
14985 a window-system before checking if it shares the same cache.
14986 (clear_image_caches): New function.
14987 (Fclear_image_cache): Use it.
14988 (mark_image): Move from allo.c.
14989 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14990 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14991 (mark_object): Don't call mark_image_cache for frames.
14992 (mark_terminals): Call mark_image_cache.
14993
14994 * lisp.h (Fdelete_terminal): Declare.
14995
14996 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14997 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14998 wrong_type_argument.
14999
150002008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15001
15002 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15003 malayalam.el, and tamil.el. Add sinhala.el.
15004
150052008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15006
15007 * xterm.c (x_connection_closed): Consolidate identical tests.
15008 (x_delete_terminal): Don't crash if called via x_connection_closed.
15009
150102008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15011
15012 * xdisp.c (decode_mode_spec): New arg string.
15013 (display_mode_element): Adjust for the above change.
15014
150152008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15016
15017 * callint.c (Fcall_interactively): Use AREF.
15018
150192008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15020
15021 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15022
150232008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15024
15025 * xfns.c (Fx_show_tip): Set string to " " if empty.
15026
150272008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15028
15029 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15030 with Qt.
15031
150322008-02-17 Kenichi Handa <handa@m17n.org>
15033
15034 * ftfont.c (ftfont_shape): Return Lispy number.
15035
15036 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15037 for GCs.
15038 (Finternal_set_font_selection_order): Call font_update_sort_order
15039 only when enable_font_backend is set.
15040 (realize_x_face): Set face->font_info to that of default face only
15041 when enable_font_backend is set.
15042
15043 * xdisp.c (handle_composition_prop): Set it->c to the fist
15044 character of the composed region.
15045 (fill_composite_glyph_string): Set base_face->font_info to
15046 s->font_info. Get a face for ascii from base_face->ascii_face.
15047 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15048 with a face already decided.
15049 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15050 non-negative.
15051 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15052 call font_prepare_composition unconditionally.
15053
15054 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15055
15056 * xterm.h (struct x_display_info): New member font.
15057
15058 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15059 (x_set_mouse_face_gc, x_new_font): Likewise.
15060 (x_term_init): Setup display_info->font.
15061 (x_delete_terminal): Free display_info->font.
15062
15063 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15064
15065 * ftxfont.c (ftxfont_default_fid): Delete it.
15066 (ftxfont_open): Set xfont->fid to 0.
15067 (ftxfont_end_for_frame): Clear data specific to the frame and the
15068 font-driver.
15069
15070 * xftfont.c (xftfont_default_fid): Delete it.
15071 (xftfont_open): Set xfont->fid to 0.
15072
15073 * fontset.c (FONTSET_OBJLIST): New macro.
15074 (fontset_find_font): Update font-object list of the fontset.
15075 (free_realized_fontset): New function.
15076 (free_face_fontset): Call free_realized_fontset.
15077 (Ffont_info): Call font_close_object only when enable_font_backend
15078 is set.
15079
15080 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15081 [HAVE_NTGUI]: Include w32term.h.
15082 [MAC_OS]: Include macterm.ch.
15083 (font_otf_ValueRecord): Use make_number.
15084 (font_finish_cache): Fix handling of reference count.
15085 (font_clear_cache): Update num_fonts.
15086 (font_open_entity): Update smallest_char_width and
15087 smallest_font_height of the frame.
15088 (font_close_object): Update num_fonts.
15089 (Fclear_font_cache): Fix finding the target cache data.
15090
150912008-02-16 Glenn Morris <rgm@gnu.org>
15092
15093 * fontset.c (Finternal_char_font): Fix compilation warning.
15094
150952008-02-16 Eli Zaretskii <eliz@gnu.org>
15096
15097 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15098 instead of char arrays. Enlarge the size of array passed to
15099 get_token_information.
15100
15101 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15102 warnings.
15103
151042008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15105
15106 * .gdbinit: Don't set `args', it breaks gdb --args.
15107
151082008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15109
15110 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15111 within a narrowed buffer.
15112
151132008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15114
15115 * coding.c (decode_coding_object, encode_coding_object):
15116 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15117
151182008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15119
15120 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15121 hardcoding 1.
15122 (detect_coding_system):
15123 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15124 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15125 * insdel.c (insert_from_gap):
15126 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15127 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15128 (string_to_multibyte):
15129 * character.c (chars_in_text, multibyte_chars_in_text):
15130 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15131
15132 * character.h (FETCH_STRING_CHAR_ADVANCE)
15133 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15134 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15135 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15136
15137 * casefiddle.c (casify_region): Only call after-change and composition
15138 functions on the part of the region that was changed.
15139
15140 * keyboard.c (read_avail_input):
15141 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15142
151432008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15144
15145 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15146 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15147
151482008-02-11 Juanma Barranquero <lekktu@gmail.com>
15149
15150 * w32menu.c (push_submenu_start, push_submenu_end)
15151 (push_left_right_boundary, push_menu_pane, push_menu_item):
15152 * keyboard.c (read_key_sequence): Don't pass args with side effects
15153 to AREF, it fails when compiling with -DENABLE_CHECKING.
15154
151552008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15156
15157 * Makefile.in (${lispsource}international/charprop.el):
15158 Delete this target.
15159
15160 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15161 emacs-unicode-2.
15162
151632008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15164
15165 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15166
151672008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15168
15169 * frame.c (Qnoelisp): New symbol.
15170 (syms_of_frame): Initialize it.
15171 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15172 harmless Elisp code, from a strong `force' from x_connection_closed.
15173 * frame.h (Qnoelisp): Declare.
15174 * xterm.c (x_connection_closed): Pass `noelisp'.
15175
15176 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15177 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15178 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15179 rather than `int' for the type of `type'.
15180
151812008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15182
15183 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15184
15185 * Makefile.in (GNUC): Remove support for gcc-1.x.
15186
151872008-02-10 Richard Stallman <rms@gnu.org>
15188
15189 * lisp.h (ASET): Use AREF, not ASLOT.
15190
151912008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15192
15193 * lisp.h (ASET): Check bounds.
15194
151952008-02-10 Glenn Morris <rgm@gnu.org>
15196
15197 * buffer.c (mode-name): Doc fix.
15198
151992008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15200
15201 * Makefile.in:
15202 * emacs.c:
15203 * gmalloc.c:
15204 * keyboard.c:
15205 * lisp.h:
15206 * m/ibm370aix.h:
15207 * process.c:
15208 * regex.c:
15209 * s/hpux.h:
15210 * sysdep.c:
15211 * sysselect.h:
15212 * systty.h:
15213 * unexec.c:
15214 * w32term.c:
15215 * xsmfns.c:
15216 * xterm.c: Remove code that deals with obsolete variables.
15217
15218 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15219
15220 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15221 nothing else needs it anymore.
15222
152232008-02-09 Eli Zaretskii <eliz@gnu.org>
15224
15225 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15226 instead of unibyte_char_to_multibyte.
15227
152282008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15229
15230 * s/gnu-linux.h: Remove commented out code.
15231
15232 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15233
15234 * Makefile.in: Update what RMS says about using autoconf.
15235 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15236 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15237 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15238 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15239
152402008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15241
15242 * keymap.c (Fkey_description): Move side effect outside of macro call.
15243
15244 * xfaces.c (Finternal_make_lisp_face):
15245 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15246
15247 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15248 (syms_of_fontset): Use ASET.
15249
15250 * fns.c (concat): Move side effect outside of macro call.
15251 (hash_clear): Use ASET.
15252
152532008-02-08 Richard Stallman <rms@gnu.org>
15254
15255 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15256 If FORCE, and frame has a surrogate minibuffer for another frame,
15257 delete the other frame first.
15258
152592008-02-07 Timo Savola <timo.savola@iki.fi>
15260
15261 * xterm.c (x_detect_focus_change): Handle embed client message.
15262 (handle_one_xevent): Ditto.
15263 (handle_one_xevent): If embedded and we get a button press/release,
15264 request focus.
15265 (xembed_set_info, xembed_send_message): New functions.
15266 (x_make_frame_visible): Call xembed_set_info if embedded.
15267 (x_make_frame_invisible): Call xembed_set_info if embedded.
15268 (x_term_init): Initialize Xatom_XEMBED.
15269 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15270 (x_iconify_frame): Ditto.
15271
15272 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15273 (enum xembed_info, enum xembed_message, enum xembed_focus)
15274 (enum xembed_modifier, enum xembed_accelerator): New.
15275 (xembed_set_info, xembed_send_message): Declare.
15276 (FRAME_X_EMBEDDED_P): New.
15277
15278 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15279 gtk_plug_new.
15280
15281 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15282 window ID of a frame.
15283 (x_window): Reparent frame if embedded.
15284 (Fx_create_frame): Don't set border width if embedded.
15285
15286 * emacs.c (USAGE3): Add --parent-id.
15287 (standard_args): Ditto.
15288
152892008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15290
15291 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15292
152932008-02-07 Jim Meyering <meyering@redhat.com>
15294
15295 Use "do...while (0)", not "if (1)...else" in macro definitions.
15296 The latter provokes a warning from gcc about the empty else, when
15297 followed by ";". Also, without that trailing semicolon, it would
15298 silently swallow up any following statement.
15299 * syntax.h (SETUP_SYNTAX_TABLE)
15300 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15301 * buffer.h (DECODE_POSITION): Likewise.
15302 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15303 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15304 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15305 (FETCH_CHAR_ADVANCE): Likewise.
15306 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15307
153082008-02-07 Jim Meyering <meyering@redhat.com>
15309
15310 * lread.c [lint]: Don't include <sys/inode.h>.
15311
153122008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15313
15314 * xselect.c (x_handle_dnd_message):
15315 * xmenu.c (digest_single_submenu, xmenu_show):
15316 * xdisp.c (with_echo_area_buffer_unwind_data)
15317 (format_mode_line_unwind_data, unwind_format_mode_line)
15318 (display_menu_bar):
15319 * eval.c (Ffetch_bytecode):
15320 * doc.c (store_function_docstring):
15321 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15322 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15323 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15324
153252008-02-07 Kenichi Handa <handa@m17n.org>
15326
15327 * ftxfont.c (ftxfont_open): Don't set
15328 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15329
15330 * ftfont.c (ftfont_open): Fix previous change.
15331
153322008-02-06 Jason Rumney <jasonr@gnu.org>
15333
15334 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15335 Use cached metrics for ASCII characters.
15336 (w32font_open_internal): Don't set font's owning_frame.
15337 Cache metrics for ASCII characters.
15338
15339 * w32font.h (struct w32font_info): Add ascii_metrics.
15340 Remove owning_frame.
15341
153422008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15343
15344 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15345 to negative value.
15346
15347 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15348
15349 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15350
15351 * charset.c (syms_of_charset): Set QCtest and Qeq.
15352
153532008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15354
15355 * process.c (Fstart_process):
15356 * callproc.c (Fcall_process): Handle the case where
15357 Funhandled_file_name_directory returns nil.
15358
15359 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15360 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15361 * font.c (check_gstring): Use them and AREF to access the vector before
15362 we know it's really a gstring.
15363 (Ffont_shape_text): Fix typo.
46e722a9 15364 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15365
15366 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15367 Declare.
15368
15369 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15370
153712008-02-05 Jason Rumney <jasonr@gnu.org>
15372
15373 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15374 Set smallest_font_height and smallest_char_width in display info.
15375
153762008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15377
15378 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15379
153802008-02-05 Miles Bader <miles@gnu.org>
15381
15382 * xfaces.c (get_lface_attributes, merge_named_face)
15383 (lookup_named_face, lookup_derived_face, realize_named_face):
15384 Revert 2008-02-01 change by cyd@stupidchicken.com.
15385
153862008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15387
15388 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15389 fallback fonts.
15390 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15391
153922008-02-04 Jason Rumney <jasonr@gnu.org>
15393
15394 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15395 set full_name.
15396 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15397
153982008-02-03 Jason Rumney <jasonr@gnu.org>
15399
15400 * makefile.w32-in (OBJ1): Include font.o here.
15401 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15402
154032008-02-02 Jason Rumney <jasonr@gnu.org>
15404
15405 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15406
154072008-02-01 Jason Rumney <jasonr@gnu.org>
15408
15409 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15410
15411 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15412
154132008-02-01 Andreas Schwab <schwab@suse.de>
15414
15415 * Makefile.in (shortlisp, lisp): Update for rename of
15416 ../lisp/language/myanmar.el.
15417
154182008-02-01 Chong Yidong <cyd@stupidchicken.com>
15419
15420 * xfaces.c (get_lface_attributes): Delete function.
15421 (merge_named_face, lookup_named_face, lookup_derived_face)
15422 (realize_named_face): Call lface_from_face_name directly, and use
15423 the fact that merge_face_vectors does not alter its FROM argument.
15424
154252008-02-01 Jason Rumney <jasonr@gnu.org>
15426
15427 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15428 input in the default locale. Handle non-Unicode multibyte input.
15429
154302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15431
15432 * fontset.c (reorder_font_vector): Exclude nil elements from the
15433 font group. Don't try multiple fonts.
15434 (fontset_font): Adjust for the above change.
15435 (Finternal_char_font): Return nil if the found font doesn't
15436 contain the character ch.
15437
15438 * Makefile.in (lisp, shortlisp): Add cham.el.
15439
154402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15441
15442 * font.h (FONTP): Make it return 1 also for a font-object.
15443
15444 * .gdbinit (xfontset): New function.
15445
15446 * font.c (font_find_for_lface): Check if the character C is
15447 supported or not only for the first font.
15448
15449 * fontset.c (reorder_font_vector): Fix typo.
15450 (fontset_find_font): Don't add a font-spec specifying a script.
15451 Use 0 (not Qt) for the indication of empty font-group. Change the
15452 format of RFONT-DEF. Return Qt if no font in the font-group
15453 support the character.
15454 (fontset_font): Adjust for the above change. If no font was
15455 found the character, remember that.
15456 (face_for_char): Adjust for the change of RFONT-DEF.
15457 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15458 no font for the target.
15459 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15460
154612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15462
15463 * font.c (font_load_for_face): Handle the case that the font in
15464 face->lface is a string.
15465
154662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15467
15468 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15469
154702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15471
15472 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15473 Fix previous change. If the frame is not on a window system,
15474 signal an error.
15475
154762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15477
15478 * coding.c (decode_coding_object, encode_coding_object): Adjust
15479 marker positions after conversion.
15480
15481 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15482
154832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15484
15485 * font.c (font_find_for_lface): Fix the handling of the return
15486 value of font_has_char.
15487 (Ffont_shape_text): Fix previous change.
15488
15489 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15490 (fontset_ref_and_range): Delete it.
15491 (fontset_find_font): Call char_table_ref_and_range instead of
15492 FONTSET_REF_AND_RANGE.
15493 (make_fontset): Don't setup font groups of Latin here.
15494 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15495 (new_fontset_from_font): Make the specified font the default for
15496 all Latin characters.
15497
154982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15499
15500 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15501 is on a window system before accessing the fontset of the frame.
15502
155032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15504
15505 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15506
15507 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15508 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15509
15510 * font.c (Ffont_shape_text): If the font driver doesn't have a
15511 shaper function, make zero-width glyphs to have at least one-pixel
15512 width. Fix setting of `to' field of glyphs.
15513
155142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15515
15516 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15517 glyphs.
15518
15519 * font.h (struct font_driver): Improve docstring of member `shape'.
15520
155212008-02-01 Kenichi Handa <handa@m17n.org>
15522
15523 * composite.c (syms_of_composite): Fix docstring of
15524 auto-composition-function.
15525
15526 * font.h (LGLYPH_SIZE): New macro.
15527
15528 * font.c (Ffont_fill_gstring): Stop filling when a character not
15529 supported by the font is found.
15530 (Ffont_shape_text): When a shape callback function returns nil,
15531 try at most two more times with larger gstring.
15532 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15533
15534 * xdisp.c (handle_auto_composed_prop): Change the argument to
15535 auto-composition-function.
15536
15537 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15538 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15539 Lispy glyph and store it in the lgstring.
15540
15541 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15542
15543 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15544
155452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15546
15547 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15548
15549 * fontset.c (Vfont_encoding_charset_alist): New variable.
15550 (syms_of_fontset): DEFVAR it.
15551 (reorder_font_vector, fontset_find_font): Optimize for the case of
15552 no need of reordering.
15553 (face_for_char): Map the charset property by
15554 Vfont_encoding_charset_alist.
15555
155562008-02-01 Jason Rumney <jasonr@gnu.org>
15557
15558 * w32font.c (logfonts_match): Don't check adstyle here.
15559 (font_matches_spec): Check here against physical font instead.
15560 (add_font_entity_to_list): Avoid some substitutions.
15561
15562 * font.c (font_parse_fcname): Default weight and slant to normal.
15563 (font_score): Prefer normal fonts if weight or slant unspecified.
15564 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15565 match freetype scores.
15566
155672008-02-01 Jason Rumney <jasonr@gnu.org>
15568
15569 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15570 font, as it may have been deleted.
15571 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15572 most common hyphenless variation.
15573 (logfonts_match): Check generic family.
15574 (font_matches_spec): Don't check generic family here.
15575 (fill_in_logfont): Set generic family based on adstyle.
15576
15577 * w32font.h (w32font_get_cache): Update declaration.
15578
155792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15580
15581 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15582
15583 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15584 If none of the new drivers are available, call font_update_drivers
15585 with the old drivers.
15586
15587 * w32font.c (w32font_get_cache): Adjust the argument type.
15588
15589 * xfont.c (xfont_get_cache): Adjust the argument type.
15590
15591 * font.h (struct font_driver): Change argument type of get_cache.
15592
15593 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15594
15595 * font.c (Ffont_get): Fix arguments to Fassoc.
15596 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15597 (font_clear_cache): New function.
15598 (font_list_entities, font_matching_entity): Use font_get_cache.
15599 (font_update_drivers): Call font_clear_cache when finishing a driver.
15600
15601 * fontset.c (fontset_find_font): Fix previous change.
15602
156032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15604
15605 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15606 dpyinfo->font_table.
15607 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15608 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15609
15610 * font.c (font_at): Handle the case that the arg C is negative.
15611 Handle the unibyte case.
15612 (Ffont_at): Call font_at with the arg C -1.
15613
15614 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15615 the position here, and call font_at with the arg C -1.
15616 Don't check the range of the existing composition at the point.
15617
156182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15619
15620 * fontset.c (fontset_add): New args charset_id and family.
15621 Change caller.
15622 (load_font_get_repertory, fontset_find_font): Assume that
15623 font_spec is always a font-spec object.
15624 (Fset_fontset_font): Always store a font-spec object in a fontset.
15625
15626 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15627 instead of get_property_and_range.
15628
156292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15630
15631 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15632 (xftfont_open): Don't keep locking face.
15633 (xftfont_close): Don't unlock face.
15634 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15635
15636 * fontset.c (fontset_find_font): Don't prefer a font of
15637 supplementary charset.
15638
156392008-02-01 Kenichi Handa <handa@m17n.org>
15640
15641 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15642 script, langsys_tag to langsys, new member script.
15643 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15644 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15645 listing to the script specified in that property. Fix arg to
15646 OTF_check_features.
15647
156482008-02-01 Jason Rumney <jasonr@gnu.org>
15649
15650 * w32font.h: New file.
15651
15652 * w32font.c: Include it.
15653 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15654 (w32font_open): Set owning_frame.
15655 (w32font_text_extents): Use owning_frame.
15656 (struct font_callback_data): Add opentype_only field.
15657 (add_font_entity_to_list): Use it to filter fonts.
15658 Don't check against full name.
15659 (w32font_list_internal): New function.
15660 (w32font_list): Use it.
15661 (w32font_match_internal): New function.
15662 (w32font_match): Use it.
15663 (w32font_open_internal): New function.
15664 (w32font_open): Use it.
15665 (w32font_get_cache, w32font_close, w32font_has_char)
15666 (w32font_encode_char, w32font_text_extents, w32font_draw):
15667 Make non-static.
15668
15669 * makefile.w32-in (w32font.o): Depend on w32font.h.
15670
156712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15672
15673 * charset.c (Fdefine_charset_internal): Record a supplementary
15674 charset at the tail of Vcharset_order_list.
15675
15676 * font.c (Ffont_shape_text): Fix the return value.
15677
15678 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15679
15680 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15681
156822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15683
15684 * ftfont.c (struct OpenTypeSpec): New struct.
15685 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15686 (ftfont_get_open_type_spec): New function.
15687 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15688
15689 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15690
156912008-02-01 Jason Rumney <jasonr@gnu.org>
15692
15693 * w32font.c (add_font_entity_to_list): Compare only the beginning
15694 of full name.
15695
156962008-02-01 Kenichi Handa <handa@m17n.org>
15697
15698 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15699 Never return HANDLED_RECOMPUTE_PROPS.
15700
157012008-02-01 Kenichi Handa <handa@m17n.org>
15702
15703 * font.c (font_gstring_produce): Delete it.
15704
15705 * composite.h (COMPOSITION_METHOD):
15706 Handle COMPOSITION_WITH_GLYPH_STRING.
15707
157082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15709
15710 * xfont.c (Qx): Delete.
15711 (syms_of_xfont): Don't initialize Qx.
15712
15713 * composite.h (enum composition_method):
15714 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15715
157162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15717
15718 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15719 (choose_face_font): Accept new form of font-spec.
15720
15721 * frame.h (font_driver_list): Declare it unconditionally.
15722 (struct frame): Define members font_driver_list and font_data_list
15723 unconditionally.
15724
15725 * fontset.c: Include "font.h" unconditionally.
15726 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15727 (Fset_fontset_font): Accept a font-spec object.
15728
15729 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15730 PIXEL_SIZE part a wild card.
15731
15732 * dispextern.h (struct glyph_string): Define members clip and
15733 num_clips unconditionally.
15734 (struct face): Define members font_info and extra unconditionally.
15735
15736 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15737 ftfont_info only when HAVE_LIBOTF is defined.
15738
157392008-02-01 Andreas Schwab <schwab@suse.de>
15740
15741 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15742 and end.
15743
157442008-02-01 Jason Rumney <jasonr@gnu.org>
15745
15746 * w32font.c (w32font_driver): Add new fields.
15747
157482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15749
15750 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15751 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15752 (LIBES): Add @M17N_FLT_CFLAGS@.
15753
15754 * composite.c (compose_text): Don't treat the new style
15755 composition specially.
15756
15757 * emacs.c (main): Call syms_of_font unconditionally.
15758
15759 * font.h (FONT_ENTITY_NOT_LOADABLE)
15760 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15761 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15762 (struct font_driver): New member shape.
15763 (font_registry_charsets): Extern it.
15764 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15765 (font_otf_capability, font_drive_otf): Delete their externs.
15766
15767 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15768 (font_charset_alist, font_registry_charsets): Move from xfont.c
15769 and rename.
15770 (font_prop_validate_otf): New function.
15771 (font_property_table): Register it for QCotf.
15772 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15773 (font_drive_otf): Delete.
15774 (font_prepare_composition): New arg F. Adjust for the change of
15775 lispy gstring.
15776 (font_find_for_lface): New arg C.
15777 (font_load_for_face): Adjust for the change of font_find_for_lface.
15778 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15779 lispy gstring.
15780 (Ffont_shape_text): New function.
15781 (Fopen_font): If the font size is not given, use 12-pixel.
15782 (Ffont_at): New arg STRING.
15783 (syms_of_font): Initalize font_charset_alist.
15784 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15785 conditionally.
15786
15787 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15788 fonts of the same font-spec. Change the format of RFONT-DEF.
15789 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15790 Adjust for the change of RFONT-DEF.
15791 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15792
15793 * ftfont.h: New file.
15794
15795 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15796 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15797 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15798 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15799 font_otf_capability and font_drive_otf, set ftfont_shape.
15800 (ftfont_list): Adjust for the change of :otf property value.
15801 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15802 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15803 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15804 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15805 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15806 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15807
15808 * w32term.c (x_draw_composite_glyph_string_foreground):
15809 Adjust for the change of lispy gstring.
15810
15811 * xdisp.c (handle_composition_prop): Adjust for the change of
15812 lispy gstring. Call a function for auto-composition with the
15813 third arg it->window.
15814 (fill_composite_glyph_string): Adjust for the change of lispy string.
15815 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15816
15817 * xfaces.c (set_font_frame_param): Adjust for the change of
15818 font_find_for_lface.
15819
15820 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15821 (xfont_registry_charsets): Likewise. Change caller.
15822 (syms_of_xfont): Don't handle x_font_charset_alist.
15823
15824 * xftfont.c: Include "ftfont.h".
15825 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15826 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15827 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15828 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15829 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15830 Set xftfont_driver.shape to xftfont_shape.
15831
15832 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15833 the change of lispy gstring.
15834
158352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15836
15837 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15838
158392008-02-01 Jason Rumney <jasonr@gnu.org>
15840
15841 * w32font.c (w32font_draw): Fill background manually.
15842
158432008-02-01 Jason Rumney <jasonr@gnu.org>
15844
15845 * font.c (Qfontp): Remove unused symbol.
15846 (QCantialias): New symbol.
15847 (syms_of_font): Define it.
15848 (font_property_table): Set a validator for QCantialias.
15849
15850 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15851 Define if not already.
15852 (QCfamily): Share with xfaces.c.
15853 (Qstandard, Qsubpixel, Qnatural): New symbols.
15854 (syms_of_w32font): Define them. Don't define QCfamily here.
15855 (w32_antialias_type, lispy_antialias_type): New functions.
15856 (w32_enumfont_pattern_entity): New arg requested_font.
15857 Set antialias parameter if non-default was requested.
15858 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15859
158602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15861
15862 * lread.c (read1): Undo the previous change.
15863
158642008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15865
15866 * frame.c (Fdelete_frame): Call font_update_drivers only when
15867 USE_FONT_BACKEND is defined.
15868
158692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15870
15871 * font.h (struct font_bitmap): New member bits_per_pixel.
15872 (struct font_driver): New members start_for_frame and end_for_frame.
15873 (struct font_data_list): New struct.
15874 (font_put_frame_data, font_get_frame_data): Extern them.
15875
15876 * frame.h (struct frame): New member font_data_list.
15877
15878 * font.c (font_update_drivers): Call driver->start_for_frame and
15879 driver->end_for_frame at proper timings.
15880 (font_put_frame_data, font_get_frame_data): New functions.
15881 (Ffont_spec): Add usage in the docstring.
15882
15883 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15884 (Fdelete_frame): Call font_update_drivers.
15885
15886 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15887 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15888 (xftfont_get_xft_draw): New function.
15889 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15890 (xftfont_end_for_frame): New function.
15891 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15892
15893 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15894 Change argument. Cache GCs in the per-frame data.
15895 (struct ftxfont_frame_data): New struct.
15896 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15897 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15898 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15899 (ftxfont_end_for_frame): New function.
15900 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15901
15902 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15903
159042008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * xselect.c (Vselection_coding_system)
15907 (Vnext_selection_coding_system): Delete them.
15908 (syms_of_xselect): Don't declare selection-coding-system and
15909 next-selection-coding-system. They are declared in select.el.
15910
159112008-02-01 Jason Rumney <jasonr@gnu.org>
15912
15913 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15914
15915 * w32fns.c: Include imm.h.
15916 (get_composition_string_fn, get_ime_context_fn): New optional
15917 system functions.
15918 (globals_of_w32fns): Load them from imm32.dll.
15919 (ignore_ime_char): New flag.
15920 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15921 WM_IME_ENDCOMPOSITION messages.
15922
15923 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15924 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15925
159262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15927
15928 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15929 (READCHAR_REPORT_MULTIBYTE): New macro.
15930 (readchar): New 2nd arg MULTIBYTE.
15931 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15932 Make symbol's name multibyte according to the multibyteness of the
15933 source.
15934
159352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15936
15937 * xfaces.c (face_for_overlay_string): Call lookup_face with
15938 correct arguments (fix of synching with the trunk).
15939
159402008-02-01 Kenichi Handa <handa@m17n.org>
15941
15942 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15943 (font_prop_validate_non_neg, font_prop_validate_spacing):
15944 Delete argument prop_index.
15945 (font_property_table): Change arguments to validater. Change Callers.
15946 (font_lispy_object): Delete.
15947 (font_at): Use font_find_object instead fo font_lispy_object.
15948
159492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15950
15951 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15952 and file names.
15953
159542008-02-01 Jason Rumney <jasonr@gnu.org>
15955
15956 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15957 (font_matches_spec): Remove debug output.
15958 (add_font_entity_to_list): Avoid using substituted fonts.
15959
159602008-02-01 Jason Rumney <jasonr@gnu.org>
15961
15962 * doc.c (Fsnarf_documentation):
15963 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15964
159652008-02-01 Miles Bader <miles@gnu.org>
15966
15967 * dispextern.h (struct glyph_row): Only define "clip" field if
15968 HAVE_WINDOW_SYSTEM is defined.
15969
159702008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15971
15972 Fix up multi-tty merge.
15973
15974 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15975 and indentation.
15976
15977 * xfaces.c (free_realized_face, clear_face_gcs):
15978 Include font_done_for_face in the input_blocked section, just in case.
15979
15980 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15981 (get_char_face_and_encoding): Undo last change and remove the *other*
15982 duplicate definition (i.e. keep the one that's better scoped and that
15983 includes code for the font-backend).
15984
15985 * terminal.c (create_terminal): Default keyboard_coding to
15986 `no-conversion' and terminal_coding to `undecided'.
15987
15988 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15989
15990 * fontset.c (free_realized_fontsets): Check that the table entry does
15991 contain a fontset before trying to compare it to `base'.
15992
15993 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15994 syms_of_charset, and syms_of_coding earlier because init_window_once
15995 now needs Vcoding_system_hash_table to be setup.
15996
15997 * coding.h (default_buffer_file_coding): Remove.
15998
15999 * coding.c (default_buffer_file_coding): Remove.
16000 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16001 than ->symbol, and use the terminal-local coding system.
16002 (syms_of_coding): Don't setup the coding-systems that are not
16003 terminal-local.
16004 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16005
16006 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16007 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16008
16009 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16010 in chartab.c and were re-added here by mistake.
16011 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16012
16013 * doc.c (Fsnarf_documentation):
16014 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16015 src to etc.
16016
16017 * ChangeLog.10: Add mistakenly removed entry.
16018
160192008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16020
16021 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16022
160232008-02-01 Miles Bader <miles@gnu.org>
16024
16025 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16026 Add extra args to FACE_FOR_CHAR.
16027
160282008-02-01 Kenichi Handa <handa@m17n.org>
16029
16030 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16031 in sequence.
16032
16033 * chartab.c (map_sub_char_table, map_char_table): If the range
16034 contains just one character, call the function with that character
16035 even if the depth is not 3.
16036
160372008-02-01 Jason Rumney <jasonr@gnu.org>
16038
16039 * w32font.c (w32font_text_extents): Calculate metrics for the
16040 whole string.
16041
160422008-02-01 Jason Rumney <jasonr@gnu.org>
16043
16044 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16045
160462008-02-01 Jason Rumney <jasonr@gnu.org>
16047
16048 * w32term.c (x_set_glyph_string_clipping): Use
16049 get_glyph_string_clip_rects.
16050 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16051 Adjust for the change of struct glyph_string.
16052
16053 * w32font.c (w32font_draw): Do clipping here.
16054
160552008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * xftfont.c (xftfont_draw): Adjust for the change of struct
16058 glyph_string.
16059
16060 * xterm.c (x_set_glyph_string_clipping): Use
16061 get_glyph_string_clip_rects.
16062 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16063 Adjust for the change of struct glyph_string.
16064
16065 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16066 the resulting clip(s}.
16067 (expose_overlaps): Add arg r. Change callers. Set it to
16068 row->clip temporarily.
16069 (expose_window): Redraw rows overlapping the exposed area.
16070
16071 * dispextern.h (struct glyph_row): New member clip.
16072 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16073 clip_height, new member clip, and num_clips.
16074
160752008-02-01 Kenichi Handa <handa@m17n.org>
16076
16077 * data.c (Fchar_or_string_p): Fix docstring.
16078
160792008-02-01 Kenichi Handa <handa@m17n.org>
16080
16081 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16082 create a temporary XftDraw object.
16083
160842008-02-01 Kenichi Handa <handa@m17n.org>
16085
16086 * font.c (Ffontp): Fix docstring.
16087
16088 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16089 strong evidence of ISO-2022.
16090
160912008-02-01 Kenichi Handa <handa@m17n.org>
16092
16093 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16094 SYNTAX_ENTRY_FOLLOW_PARENT.
16095
160962008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16097
16098 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16099 its type.
16100 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16101 Update to the new type of weak_hash_tables and next_weak.
16102
16103 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16104 a plain C pointer to Lisp_Hash_Table.
16105
16106 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16107 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16108 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16109 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16110 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16111 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16112 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16113 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16114 (GC_EQ): Remove since they've been identical to their non-GC_
16115 alter-egos ever since the markbit was eradicated.
16116
16117 * alloc.c:
16118 * buffer.c:
16119 * buffer.h:
16120 * data.c:
16121 * fileio.c:
16122 * filelock.c:
16123 * fns.c:
16124 * frame.h:
16125 * lisp.h:
16126 * macterm.c:
16127 * print.c:
16128 * process.c:
16129 * w32fns.c:
16130 * w32menu.c:
16131 * w32term.c:
16132 * xfns.c:
16133 * xmenu.c:
16134 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16135
161362008-02-01 Kenichi Handa <handa@m17n.org>
16137
16138 * chartab.c (map_sub_char_table): Make it work for the top-level
16139 char-table. Fix handling of parent char-table.
16140 (map_char_table): Adjust for the above change.
16141
161422008-02-01 Jason Rumney <jasonr@gnu.org>
16143
16144 * w32font.c (Qgdi): Rename from Qw32.
16145
161462008-02-01 Jason Rumney <jasonr@gnu.org>
16147
16148 * w32bdf.c (get_quoted_string): Make function static.
16149
161502008-02-01 Kenichi Handa <handa@m17n.org>
16151
16152 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16153 bigger ascent and descent than those of the font, use them as
16154 font's ascent and descent.
16155
161562008-02-01 Kenichi Handa <handa@m17n.org>
16157
16158 * Makefile.in (${lispsource}international/charprop.el): Move this
16159 target within "#ifdef HAVE_UNIDATA" and "#endif".
16160
161612008-02-01 Kenichi Handa <handa@m17n.org>
16162
16163 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16164 (shortlisp): Add ../lisp/language/tai-viet.el.
16165
161662008-02-01 Ulrich Mueller <ulm@gentoo.org>
16167
16168 * Makefile.in (${lispsource}international/charprop.el): Depend on
16169 temacs${EXEEXT}.
16170
161712008-02-01 Jason Rumney <jasonr@gnu.org>
16172
16173 * w32font.c (w32font_close): Delete the GDI font object.
16174
16175 * w32menu.c: Include character.h.
16176
16177 * w32proc.c: Likewise.
16178
16179 * w32select.c: Likewise.
16180
16181 * makefile.w32-in (w32proc.o): Depend on character.h.
16182
161832008-02-01 Jason Rumney <jasonr@gnu.org>
16184
16185 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16186
16187 * w32menu.c (syms_of_w32menu): Likewise.
16188
16189 * w32proc.c (syms_of_ntproc): Likewise.
16190
16191 * w32select.c (syms_of_w32select): Likewise.
16192
16193 * w32term.c (syms_of_w32term): Likewise.
16194
161952008-02-01 Jason Rumney <jasonr@gnu.org>
16196
16197 * w32font.c (w32font_draw): Delete brush after using it.
16198
161992008-02-01 Jason Rumney <jasonr@gnu.org>
16200
16201 * w32font.c (w32font_open): Don't set font_idx.
16202 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16203 to font settings.
16204 (w32font_draw): Fill background explicitly.
16205
162062008-02-01 Jason Rumney <jasonr@gnu.org>
16207
16208 * w32term.c (w32_initialize): Don't call w32font_initialize.
16209
16210 * w32font.c (w32font_info): Remove subranges.
16211 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16212 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16213 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16214 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16215 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16216 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16217 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16218 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16219 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16220 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16221 New symbols.
16222 (font_callback_data): New struct.
16223 (w32font_list, w32font_match): Use it.
16224 (w32font_open): Don't populate subranges.
16225 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16226 (w32font_encode_char): Always return unicode code-point as-is.
16227 (w32font_text_extents): Supply a transformation matrix to
16228 GetGlyphOutline. Never look up by glyph index. Avoid looping
16229 twice. Use unicode version of GetTexExtentPoint32 instead of
16230 glyph index version.
16231 (set_fonts_frame): Remove.
16232 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16233 set frame parameter. Use backward compatible fake foundries.
16234 Save generic family in extra slot under QCfamily. Make width slot
16235 constant. Save QCspacing value. Save list of scripts instead of
16236 binary subranges.
16237 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16238 (add_font_entity_to_list): Use font_callback_data struct. Filter
16239 unwanted fonts.
16240 (add_one_font_entity_to_list): Use font_callback_data struct.
16241 (w32_registry): Default to iso10646_1.
16242 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16243 string font registries. Don't fill in font name if it is a generic
16244 family name, fill family instead. Use spacing, family and script
16245 extra info to fill pitch, family and charset fields.
16246 (list_all_matching_fonts): Use font_callback_data struct.
16247 (unicode_range_for_char): Remove.
16248 (font_supported_scripts): New function.
16249 (w32font_initialize): Remove.
16250 (syms_of_w32font): Update which symbols are defined.
16251
162522008-02-01 Jason Rumney <jasonr@gnu.org>
16253
16254 * font.c (font_pixel_size): Reverse assq_no_quit args.
16255
16256 * w32term.h (FONT_WIDTH): Report max width, not average.
16257 (FONT_MAX_WIDTH): Remove.
16258 (FONT_AVG_WIDTH): New macro.
16259
16260 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16261 redefinition of FONT_WIDTH.
16262
16263 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16264 (w32_cache_char_metrics): Use FONT_WIDTH.
16265
16266 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16267
162682008-02-01 Jason Rumney <jasonr@gnu.org>
16269
16270 * w32font.c (w32font_open): Make lfHeight negative.
16271
16272 * w32fns.c (x_default_font_parameter): Use new style font name.
16273 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16274
162752008-02-01 Jason Rumney <jasonr@gnu.org>
16276
16277 * w32font.c (QCsubranges): New symbol.
16278 (w32font_open, w32font_has_char): Get subranges from subproperty
16279 of extra.
16280 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16281 (syms_of_w32font): Define :subranges symbol.
16282
16283 * font.c (font_put_extra): Expose externally.
16284
16285 * font.h (font_put_extra): Move declaration from font.c.
16286
16287 * font.c (Ffont_get): Use font driver to determine otf capability.
16288 (adjust_anchor): Check if driver defines anchor_point before using.
16289
16290 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16291 (w32font_draw): Use options.
16292 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16293 Fix detection of truetype fonts.
16294 (registry_to_w32_charset): Handle charsets other than iso8859-1
16295 expressed as lisp symbols.
16296 (w32_registry): Express charset as lisp symbol.
16297 (fill_in_logfont): Reverse pixel and point height logic.
16298 Don't set width here. Set quality to default.
16299
16300 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16301 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16302
16303 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16304 Remove redundant loop and allocation.
16305
16306 * makefile.w32-in (font.o, w32font.o): New objects.
16307 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16308 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16309
16310 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16311 STORE_XCHARB a valid l-value.
16312
16313 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16314 calculations for non-Truetype fonts.
16315 (x_draw_glyph_string): Sync with xterm.c.
16316 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16317 Remove redundant code.
16318 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16319
16320 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16321 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16322
16323 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16324 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16325
16326 * w32font.c: New file for w32 font backend.
16327
163282008-02-01 Kenichi Handa <handa@m17n.org>
16329
16330 * term.c: Don't include "buffer.h" twice.
16331
163322008-02-01 Kenichi Handa <handa@m17n.org>
16333
16334 * character.c (Funibyte_string): New function.
16335 (syms_of_character): Defsubr it.
16336
163372008-02-01 Jason Rumney <jasonr@gnu.org>
16338
16339 * w32term.c [USE_FONT_BACKEND]:
16340 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16341 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16342 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16343 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16344 (x_free_frame_resources): Sync with xterm.c.
16345
163462008-02-01 Andreas Schwab <schwab@suse.de>
16347
16348 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16349 char-table size.
16350
163512008-02-01 Kenichi Handa <handa@m17n.org>
16352
16353 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16354
163552008-02-01 Kenichi Handa <handa@m17n.org>
16356
16357 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16358 font_otf_gpos, add font_drive_otf.
16359
16360 * fontset.c (fontset_find_font): Pay attention to font size
16361 specified for a font.
16362 (reorder_font_vector): Check contents of font_def.
16363
16364 * font.c (struct otf_list): Delete it.
16365 (otf_list): Make it a lisp variable.
16366 (otf_open): Use lispy otf_list.
16367 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16368 (check_otf_features): New function.
16369 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16370 New functions.
16371 (font_drive_otf): New function merging font_otf_gsub and
16372 font_otf_gpos.
16373 (font_open_for_lface): New arg spec. Change argument order.
16374 (font_load_for_face): Adjust for the change of font_open_for_lface.
16375 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16376 Ffont_otf_gpos.
16377 (syms_of_font): Staticpro otf_list. Delete defsubr of
16378 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16379
16380 * xfaces.c (set_font_frame_param): Adjust for the change of
16381 font_open_for_lface.
16382
16383 * font.h (font_open_for_lface): Adjust prototype.
16384 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16385 member otf_drive.
16386 (font_otf_gsub, font_otf_gpos): Delete externs.
16387 (font_drive_otf): Extern it.
16388
163892008-02-01 Kenichi Handa <handa@m17n.org>
16390
16391 * font.c (font_at): If the window W is not on a window system,
16392 return Qnil.
16393
16394 * coding.c (produce_chars, encode_coding): Don't call
16395 insert_from_gap if no characters to produce.
16396
163972008-02-01 Kenichi Handa <handa@m17n.org>
16398
16399 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16400 Fclear_face_cache.
16401
16402 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16403
164042008-02-01 Miles Bader <miles@gnu.org>
16405
16406 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16407 Parse "--disable-font-backend" option.
16408 (standard_args): Add "--disable-font-backend" option.
16409
164102008-02-01 Kenichi Handa <handa@m17n.org>
16411
16412 * fontset.c (fontset_find_font): New function.
16413 (fontset_font): Use fontset_find_font.
16414 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16415 Register the specified font for all Latin characters.
16416 (new_fontset_from_font): Register the specified font for all Latin
16417 characters.
16418 (dump_fontset): For a realized fontset, include the base fontset
16419 name in the returned vector.
16420
164212008-02-01 Kenichi Handa <handa@m17n.org>
16422
16423 * character.h (CHAR_STRING): Cast C to unsigned on calling
16424 char_string.
16425
16426 * character.c (char_string): Type of arg C changed to unsigned.
16427 Signal an error if C is an invalid character code.
16428
16429 * editfns.c (general_insert_function, Fchar_to_string):
16430 Use CHARACTERP, not INTEGERP.
16431
164322008-02-01 Kenichi Handa <handa@m17n.org>
16433
16434 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16435 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16436
16437 * regex.c (analyse_first): Fix for multibyte characters in "case
16438 charset:" and "case categoryspec:".
16439
164402008-02-01 Andreas Schwab <schwab@suse.de>
16441
16442 * Makefile.in (LIBES): Move standard libraries to the end.
16443
164442008-02-01 Kenichi Handa <handa@m17n.org>
16445
16446 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16447 nonzero, don't shrink the buffer nextb.
16448
16449 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16450
16451 * coding.c (coding_alloc_by_making_gap): New arg offset.
16452 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16453 offset.
16454 (decode_coding_iso_2022): Update coding->safe_charsets.
16455 (decode_coding_gap): Temporarily set
16456 current_buffer->text->inhibit_shrinking to 1.
16457
164582008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16461 indexing into elements of s->cmp and s->char2b.
16462
164632008-02-01 Juanma Barranquero <lekktu@gmail.com>
16464
16465 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16466
164672008-02-01 Kenichi Handa <handa@m17n.org>
16468
16469 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16470 target_multibyte instead of multibyte.
16471 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16472 (bcmp_translate): Change the argument name from multibyte to
16473 target_multibyte.
16474
164752008-02-01 Kenichi Handa <handa@m17n.org>
16476
16477 These changes are to compile a regexp into a pattern that can be
16478 used both for multibyte and unibyte targets.
16479
16480 * Makefile.in (search.o): Depend on charset.h.
16481
16482 * character.c (multibyte_char_to_unibyte_safe): New function.
16483
16484 * search.c: Include "charset.h".
16485 (compile_pattern_1): Delete argument multibyte. Don't set
16486 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16487 (compile_pattern): Don't compare cp->buf.target_multibyte.
16488 Compare cp->buf.charset_unibyte.
16489 (compile_pattern): Set cp->buf.target_multibyte.
16490
16491 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16492
16493 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16494
16495 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16496 multibyte. Change callers.
16497 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16498 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16499 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16500 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16501 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16502 (regex_compile): Make the compiled pattern usable both for
16503 multibyte and unibyte targets.
16504 (analyse_first): Make the fastmap usable both for multibyte and
16505 unibyte targets.
16506 (TRANSLATE_VIA_MULTIBYTE): Delete.
16507 (re_match_2_internal): Pay attention to the case that the
16508 multibyteness of bufp and target may be different.
16509
165102008-02-01 Kenichi Handa <handa@m17n.org>
16511
16512 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16513 empty box occupy at least one column width.
16514
165152008-02-01 Miles Bader <miles@gnu.org>
16516
16517 * Makefile.in: Remove redundant HAVE_XFT clause.
16518
165192008-02-01 Kenichi Handa <handa@m17n.org>
16520
16521 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16522
165232008-02-01 Kenichi Handa <handa@m17n.org>
16524
16525 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16526 being nil.
16527
165282008-02-01 Kenichi Handa <handa@m17n.org>
16529
16530 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16531
165322008-02-01 Kenichi Handa <handa@m17n.org>
16533
16534 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16535
165362008-02-01 Kenichi Handa <handa@m17n.org>
16537
16538 * search.c (simple_search): Fix previous change.
16539
165402008-02-01 Kenichi Handa <handa@m17n.org>
16541
16542 * xftfont.c (ftfont_font_format): Extern declaration.
16543
16544 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16545
16546 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16547 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16548
16549 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16550 (ftfont_font_format): Fix previous change.
16551
16552 * font.h (Ffont_xlfd_name): EXFUN it.
16553
16554 * font.c (font_parse_xlfd): Fix the array size of `f'.
16555 (register_font_driver): Use EQ to compare driver->type.
16556
16557 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16558 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16559 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16560
165612008-02-01 Kenichi Handa <handa@m17n.org>
16562
16563 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16564 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16565
165662008-02-01 Kenichi Handa <handa@m17n.org>
16567
16568 * xfont.c (xfont_open): Set font->format.
16569
16570 * xftfont.c (xftfont_open): Set font->format.
16571
16572 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16573 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16574 (ftfont_open): Set font->format.
16575 (ftfont_font_format): New function.
16576
16577 * font.h (struct font): New member format.
16578
16579 * font.c (Qopentype): New variable.
16580 (syms_of_font): Defsym it.
16581 (Fquery_font): Change the format of the last element of the return
16582 value.
16583
165842008-02-01 Kenichi Handa <handa@m17n.org>
16585
16586 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16587 last resort.
16588
165892008-02-01 Kenichi Handa <handa@m17n.org>
16590
16591 * coding.c (detect_coding_charset): Fix detection of multi-byte
16592 charset.
16593
165942008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16595
16596 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16597
165982008-02-01 Kenichi Handa <handa@m17n.org>
16599
16600 * xdisp.c (get_next_display_element): Set it->face_id for the
16601 first component of a composition.
16602 (x_produce_glyphs): Check if the font is changed or not for composition.
16603
166042008-02-01 Kenichi Handa <handa@m17n.org>
16605
16606 * fontset.c (Qlatin): New variable.
16607 (syms_of_fontset): Define it as a lisp symbol.
16608 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16609
166102008-02-01 Kenichi Handa <handa@m17n.org>
16611
16612 * font.c (font_unparse_fcname): Pay attention to the case that
16613 some of font property is a null string.
16614
166152008-02-01 Kenichi Handa <handa@m17n.org>
16616
16617 * term.c: Include "composite.h".
16618 (encode_terminal_code): Output all components of composition.
16619 Check the size of encode_terminal_src.
16620 (produce_glyphs): For composition, call produce_composite_glyph.
16621 (append_composite_glyph, produce_composite_glyph): New functions.
16622
16623 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16624 is not found, get font_info from the current ascii face.
16625
166262008-02-01 Kenichi Handa <handa@m17n.org>
16627
16628 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16629 buffer-file-name to Qnil before calling insert_from_buffer.
16630
16631 * font.c (font_unparse_fcname): Pay attention to the case that
16632 foundry is a null string.
16633
166342008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16637
16638 * font.c (Qunicode_sip): New variable.
16639 (syms_of_font): Declare it as a Lisp symbol.
16640
16641 * font.h (Qunicode_sip): Extern it.
16642
166432008-02-01 Kenichi Handa <handa@m17n.org>
16644
16645 * composite.c (get_composition_id): Pay attention to TAB component.
16646
16647 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16648 TAB. Adjust for the change of s->char2b which always points to
16649 the first element of allocated memory.
16650
16651 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16652
16653 * xdisp.c (handle_composition_prop): Set it->c to the first
16654 non-TAB component.
16655 (fill_composite_glyph_string): Change argument.
16656 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16657 (x_produce_glyphs): Fix handling of left/right padding.
16658
166592008-02-01 Kenichi Handa <handa@m17n.org>
16660
16661 * coding.c (detect_coding_system): Fix for handling off
16662 inhibit_iso_escape_detection. Fix for the case that no coding
16663 system is defined for a specific coding category.
16664
166652008-02-01 Kenichi Handa <handa@m17n.org>
16666
16667 * font.c (font_matching_entity): Delete unused local var.
16668
16669 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16670 opening a font.
16671
16672 * fileio.c (Finsert_file_contents): On recovering a file, assume
16673 Unix-like eol.
16674 (choose_write_coding_system): On auto-saving a file, force
16675 Unix-like eol.
16676
16677 * coding.c (setup_coding_system): Fix setting of
16678 coding->common_flags based on eol_type.
16679 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16680 inherit from it.
16681
166822008-02-01 Kenichi Handa <handa@m17n.org>
16683
16684 * alloc.c (NSTATICS): Increas to 0x600.
16685
166862008-02-01 Kenichi Handa <handa@m17n.org>
16687
16688 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16689 (ftfont_list): Don't check :name property.
16690 (ftfont_match): New function.
16691 (ftfont_pattern_entity): If the pattern doesn't contain
16692 FC_SPACING, don't assume FC_MONO.
16693
16694 * font.h (struct font_driver): New member `match'.
16695 (font_update_drivers): Adjust prototype.
16696
16697 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16698 property of FONT.
16699 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16700 them unconditionally.
16701 (font_matching_entity): New function.
16702 (font_open_by_name): Try font_matching_entity if exact match is
16703 not found.
16704 (font_update_drivers): Delete the arg FONT. Return a list of
16705 actually used backends. Don't free faces, font caches here.
16706 Don't store data in frame parameters. Don't call x_set_font.
16707 (Ffont_spec): Store :name property as is.
16708 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16709 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16710 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16711 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16712 Call font->driver->otf_gsub instead of font_otf_gsub.
16713
16714 * frame.c (x_set_font_backend): Do more works that were done in
16715 font_update_drivers before.
16716
16717 * xfont.c (xfont_match): New function.
16718 (xfont_driver): Set xfont_driver.match to xfont_match.
16719 (xfont_draw): Set font in GC if necessary.
16720
16721 * ftxfont.c (ftxfont_match): New function.
16722 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16723
16724 * xftfont.c (xftfont_match): New function.
16725 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16726
167272008-02-01 Kenichi Handa <handa@m17n.org>
16728
16729 * font.h (struct font): New member scalable.
16730 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16731 (font_otf_gsub): Adjust prototype.
16732
16733 * font.c (font_otf_capability): Fix handling of the default langsys.
16734 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16735 Check the contents of SPEC.
16736 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16737 (check_gstring): New function.
16738 (REPLACEMENT_CHARACTER): New macro.
16739 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16740 glyph codes of GSTRING.
16741 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16742 (font_prepare_composition): Set cmp->glyph_len.
16743 (font_open_entity): Set font->scalable.
16744 (Ffont_get): Handle :otf property.
16745 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16746 functions.
16747 (Fquery_font): Use font->font.full_name.
16748 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16749 Sfont_otf_alternates.
16750
16751 * ftfont.c (ftfont_open): Set font->font.full_name and
16752 font->font.name properly. Fix calculation of font->font.height
16753 and font->min_width.
16754
16755 * ftxfont.c (ftxfont_create_gcs): New function.
16756 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16757 (ftxfont_draw_backgrond): Fix filling region.
16758 (ftxfont_default_fid): New function.
16759 (ftxfont_open): Set xfont->fid to the return value of
16760 ftxfont_default_fid.
16761 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16762 (ftxfont_done_face): Free only GCs that are created by
16763 ftxfont_create_gcs.
16764 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16765
16766 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16767 Clip to src->width, etc (not src->clip_XXX).
16768
16769 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16770 FontBackend frame parameter.
16771
167722008-02-01 Kenichi Handa <handa@m17n.org>
16773
16774 * font.h (struct font_driver_list): New member `on'.
16775 (Fclear_font_cache): EXFUN it.
16776 (font_update_drivers): Extern it.
16777
16778 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16779 (font_list_entities): Check driver_list->on.
16780 (register_font_driver): Initalize `on' member to 0.
16781 (font_update_drivers): New function.
16782 (Fclear_font_cache): Check driver_list->on.
16783
16784 * frame.h (Qfont_backend): Extern it.
16785 (x_set_font_backend): Extern it.
16786
16787 * frame.c (Qfont_backend): New variable.
16788 (frame_parms): New element for font-backend.
16789 (x_set_font_backend): New function.
16790
16791 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16792 FontBackend frame parameter.
16793 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16794 x_set_font_backend.
16795
16796 * xfont.c (xfont_list): Don't try listing by :name property if the
16797 name is not for XLFD.
16798
167992008-02-01 Kenichi Handa <handa@m17n.org>
16800
16801 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16802 (LGLYPH_SET_TO): New macros.
16803 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16804 element of G is vector or not.
16805 (font_at): Extern it.
16806
16807 * font.c: Include window.h.
16808 (font_lispy_object): New function.
16809 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16810 end of valid glyph.
16811 (font_close_object): Fix getting (struct font *).
16812 (font_at): New function.
16813 (Ffont_get): If FONT is a font-object, get entity from it.
16814 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16815 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16816 range check.
16817 (Ffont_at): New function.
16818 (syms_of_font): Defsubr Sfont_at.
16819
16820 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16821 before the entry for Qcomposition.
16822 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16823 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16824 the font in gstring.
16825 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16826 LGLYPH_FORM (g) to detect the end of valid glyph.
16827 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16828 we are composing with gstring.
16829
16830 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16831 Check if adjustment is vector or not.
16832
16833 * Makefile.in (font.o): Make it depends on window.h.
16834
168352008-02-01 Kenichi Handa <handa@m17n.org>
16836
16837 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16838 adjustment is vector or not.
16839
168402008-02-01 Miles Bader <miles@gnu.org>
16841
16842 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16843
168442008-02-01 Kenichi Handa <handa@m17n.org>
16845
16846 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16847 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16848 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16849
16850 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16851 (DEVICE_DELTA): Fix typo.
16852 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16853 LGLYPH format.
16854
16855 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16856 the change of LGLYPH format.
16857
168582008-02-01 Kenichi Handa <handa@m17n.org>
16859
16860 * ftfont.c (ftfont_list): Fix typo.
16861 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16862
168632008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16864
16865 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16866
16867 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16868 xftface_info is non-NULL.
16869
168702008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16871
16872 * ftfont.c (ftfont_list): Move misplaced #endif.
16873
168742008-02-01 Kenichi Handa <handa@m17n.org>
16875
16876 * ftfont.c (ftfont_list): Pay attention to the case that
16877 FC_CAPABILITY is not defined.
16878
168792008-02-01 Kenichi Handa <handa@m17n.org>
16880
16881 * xftfont.c (xftfont_open): Set charset related members to -1.
16882
16883 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16884 QCname.
16885 (ftfont_open): Set charset related members to -1.
16886
16887 * fontset.c (Votf_script_alist): New variable.
16888 (syms_of_fontset): Initialize it.
16889 (fontset_font): Delete unused variable.
16890
16891 * fontset.h (Votf_script_alist): Extern it.
16892
16893 * font.c (font_find_for_lface): Optimize code.
16894
16895 * font.h (font_close_object, font_merge_old_spec): Extern them.
16896
168972008-02-01 Kenichi Handa <handa@m17n.org>
16898
16899 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16900 (syms_of_font): Initialize them.
16901 (font_pixel_size): Allow float value in dpi.
16902 (font_prop_validate_type): Delete.
16903 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16904 Change caller.
16905 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16906 (font_prop_validate_extra): Delete.
16907 (font_prop_validate_spacing): New function.
16908 (font_property_table): Add elements for all known properties.
16909 (get_font_prop_index): Rename from check_font_prop_name. New
16910 argument FROM. Change caller.
16911 (font_prop_validate): Validate all known properties.
16912 (font_put_extra): Delete argument force. Change caller.
16913 (font_expand_wildcards): Make it static. Fix the way of shrinking
16914 the possible range.
16915 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16916 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16917 Change caller.
16918 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16919 (font_parse_fcname): Delete argument merge. Fix parsing of point
16920 size. Don't validate properties values here. Change caller.
16921 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16922 (font_open_by_name): Delete unused variable.
16923 (Ffont_spec): Likewise. Validate property values.
16924 (Ffont_match_p): New function.
16925
16926 * font.h (QCscalable): Extern it.
16927 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16928
16929 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16930
16931 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16932 (xfont_list_pattern): New function.
16933 (xfont_list): Use xfont_list_pattern.
16934
169352008-02-01 Kenichi Handa <handa@m17n.org>
16936
16937 * font.h (Flist_fonts): EXFUN it.
16938
169392008-02-01 Jason Rumney <jasonr@gnu.org>
16940
16941 * w32term.c (w32_initialize): Add back smoothing_type and
16942 smoothing_enabled definitions.
16943
169442008-02-01 Kenichi Handa <handa@m17n.org>
16945
16946 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16947 s->face->font on determining underline position.
16948
169492008-02-01 Kenichi Handa <handa@m17n.org>
16950
16951 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16952 (font_has_char): Accept font-object too.
16953 (font_find_for_lface): Try at first with a size specified in face.
16954
169552008-02-01 Kenichi Handa <handa@m17n.org>
16956
16957 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16958 font_open_by_name.
16959
169602008-02-01 Kenichi Handa <handa@m17n.org>
16961
16962 * font.h (QCspacing, QCdpi): Extern them.
16963 (enum font_spacing): New enum.
16964 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16965
16966 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16967 (QCspacing, QCdpi): New variables.
16968 (syms_of_font): Initialize them.
16969 (font_pixel_size): New function.
16970 (font_put_extra): New function.
16971 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16972 in FONT_EXTRA.
16973 (font_parse_fcname): Handle enumerated values (e.g. bold).
16974 Fix handling font size. Add QCname property that contains only
16975 unknown properties.
16976 (font_score): Change argument. Change caller. Pay attention to
16977 FONT_PIXEL_SIZE_QUANTUM.
16978 (font_sort_entites, font_list_entities, font_find_for_lface)
16979 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16980 (Ffont_spec): Add QCname property that contains only unknown properties.
16981
16982 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16983 include weight in listing pattern, instead check weight of each
16984 listed font. Don't include scalable in pattern. Pay attention to
16985 FONT_PIXEL_SIZE_QUANTUM.
16986
169872008-02-01 Kenichi Handa <handa@m17n.org>
16988
16989 * font.c (font_parse_fcname): Fix parsing of point-size.
16990 (font_unparse_fcname): Produce symbolic names for style properties.
16991 (font_list_entities): Handle float size correctly.
16992 (font_open_by_name): Prefer `normal' property values if the name
16993 doesn't specify them.
16994
16995 * fontset.c (Finternal_char_font): Use font_get_name, not
16996 Ffont_xlfd_name.
16997
16998 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16999 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17000 pattern. Don't force scalable.
17001
17002 * xftfont.c (xftfont_open): For generating a name, start from
17003 96-byte buffer.
17004
170052008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17006
17007 * frame.h (x_new_fontset2): Fix prototype.
17008
170092008-02-01 Kenichi Handa <handa@m17n.org>
17010
17011 * font.h (struct font_driver): Delete member parse_name.
17012 (font_match_p, font_get_spec, font_parse_fcname)
17013 (font_unparse_fcname): Extern them.
17014 (font_get_name): Adjust prototype.
17015
17016 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17017 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17018 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17019 unnecessary checks for weight, slant, and swidth.
17020 (font_parse_fcname): New function.
17021 (font_unparse_fcname): New function.
17022 (font_parse_name): New function.
17023 (font_match_p): New function.
17024 (font_get_name): Change return value to Lisp string.
17025 (font_get_spec): New function.
17026 (Qunspecified, Qignore_defface): Don't extern them.
17027 (font_find_for_lface): Assume that LFACE is fully specified.
17028 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17029 object, use it for FACE.
17030 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17031 driver->parse_name.
17032 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17033
17034 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17035 prototype.
17036
17037 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17038 argument F. Don't call Fnew_fontset. Instead, directly call
17039 make_fontset.
17040
17041 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17042
17043 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17044 of x_new_fontset2.
17045
17046 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17047 (Qsans__serif): New variables.
17048 (ftfont_generic_family_list): New variable.
17049 (syms_of_ftfont): Initialize the above variables.
17050 (ftfont_pattern_entity): Delete argument NAME.
17051 (ftfont_list_generic_family): New function.
17052 (ftfont_parse_name): Delete this function.
17053 (ftfont_list): Try generic family only when FcFontList found no font.
17054 (ftfont_list_family): Fix args to FcObjectSetBuild.
17055
17056 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17057 object in attrs[LFACE_FONT_INDEX].
17058 (set_lface_from_font_name): Cancel all changes for font-backend.
17059 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17060 function.
17061 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17062 font object in QCfont attribute.
17063 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17064 (realize_default_face) [USE_FONT_BACKEND]: Call
17065 set_lface_from_font_and_fontset.
17066
17067 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17068 "fixed", and signal error here if no suitable font was found.
17069
17070 * xfont.c (xfont_parse_name): Delete this function.
17071
17072 * xftfont.c (xftfont_open): Change coding style of error
17073 handling. Generate fontconfig's fontname pattern.
17074
17075 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17076 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17077
17078 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17079 Both args FONTSET and FONT_OBJECT must be existing ones.
17080
170812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17082
17083 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17084
170852008-02-01 Kenichi Handa <handa@m17n.org>
17086
17087 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17088
17089 * font.h (struct font): Fix typo.
17090
17091 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17092 XLFD_XXX_INDEX.
17093 (enum xlfd_field_mask): New enum.
17094 (intern_font_field): Changed argument. Change caller. If digits
17095 are followed by non-digits, return a symbol.
17096 (font_expand_wildcards): New function.
17097 (font_parse_xlfd): Fix wildcard handling.
17098 (Ffont_spec): If :name is specified, reflect the info in the other
17099 properties.
17100
17101 * ftfont.c (ftfont_pattern_entity): Fix typo.
17102 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17103 locale.
17104
171052008-02-01 Kenichi Handa <handa@m17n.org>
17106
17107 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17108
17109 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17110 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17111 registry doesn't specify encoding part.
17112 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17113 (font_open_by_name): At first try parsing the name.
17114 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17115 as Lisp symbols.
17116
17117 * fontset.c (reorder_font_vector): Pay attention to the case that
17118 the 3rd element of font_def is nil.
17119 (fontset_font): For the default fontset, append one more fontset
17120 elements for a script-based font specification. Don't add script
17121 attribute on finding a font.
17122 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17123 font name.
17124 (fontset_ascii_font): If a font can't be opened, return nil.
17125
17126 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17127 (ftfont_pattern_entity): New function.
17128 (ftfont_get_cache): Assume that freetype_font_cache is already
17129 initialized.
17130 (ftfont_list): Handle the case that a file is specified in font
17131 name. Use ftfont_pattern_entity to generate entities.
17132 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17133 (syms_of_ftfont): Initialize freetype_font_cache.
17134
17135 * xftfont.c (xftfont_open): Make the font name fontconfig's
17136 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17137 (xftfont_close): Free font->font.name if not NULL.
17138
17139 * xfont.c (xfont_list): If script is specified for a font, return
17140 null_vector.
17141 (xfont_list_family): Declare argument type.
17142
17143 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17144 name, set LFACE_FONT (lface) to nil.
17145
17146 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17147 return Qnil.
17148
171492008-02-01 Kenichi Handa <handa@m17n.org>
17150
17151 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17152 (standard_args): Add "-enable-font-backend".
17153
171542008-02-01 Kenichi Handa <handa@m17n.org>
17155
17156 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17157 (struct xftdraw_list, xftdraw_list): Delete them.
17158 (register_xftdraw, check_xftdraw): Delete them.
17159 (xftfont_prepare_face): Don't call register_xftdraw.
17160 (xftfont_done_face): Don't call check_xftdraw.
17161 (xftfont_draw): Get background color only when with_background is
17162 nonzero.
17163
17164 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17165
171662008-02-01 Kenichi Handa <handa@m17n.org>
17167
17168 These changes are for the new font handling codes.
17169
17170 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17171 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17172 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17173 (FONTSRC, FONTOBJ): New variables.
17174 (obj): Add $(FONTOBJ).
17175 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17176 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17177 @LIBOTF_LIBS@.
17178 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17179 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17180
17181 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17182
17183 * character.h (Vscript_representative_chars): Extern it.
17184
17185 * character.c (Vscript_representative_chars): New variable.
17186 (syms_of_character): Declare it as a Lisp variable.
17187
17188 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17189 enable_font_backend is nonzero, accept the composition method
17190 COMPOSITION_WITH_GLYPH_STRING.
17191
17192 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17193 enumeration COMPOSITION_WITH_GLYPH_STRING.
17194
17195 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17196 members clip_x, clip_y, clip_width, and clip_height.
17197 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17198
17199 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17200 --enable-font-backend. Call syms_of_font.
17201
17202 * fns.c (assoc_no_quit): New function.
17203
17204 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17205 (face_for_font, new_fontset_from_font)
17206 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17207
17208 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17209 (fontset_font, fontset_ascii, face_for_char)
17210 (make_fontset_for_ascii_face, Ffont_info)
17211 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17212 is nonzero, use font-backend mechanism.
17213 (find_font_encoding): Make it non-static.
17214 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17215 New functions.
17216
17217 * frame.h (struct frame): New members resx and resy.
17218 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17219 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17220
17221 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17222 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17223
17224 * lisp.h (assoc_no_quit): Extern it.
17225
17226 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17227 Through out the file, use FONT_INFO_FROM_FACE instead of
17228 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17229 rif->per_char_metric.
17230 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17231 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17232 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17233 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17234 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17235 nonzero, use font-backend mechanism.
17236 (get_per_char_metric): New function.
17237
17238 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17239 (set_lface_from_font_name)
17240 (set_font_frame_param, free_realized_face)
17241 (prepare_face_for_display, clear_face_gcs)
17242 (Finternal_set_font_selection_order, realize_x_face)
17243 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17244 font-backend mechanism.
17245 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17246 (load_face_font) [USE_FONT_BACKEND]: Abort.
17247 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17248 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17249
17250 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17251 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17252 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17253 nonzero, register all available font drivers. Call
17254 x_default_font_parameter for deciding a font.
17255 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17256
17257 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17258 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17259 (x_set_glyph_string_clipping_exactly)
17260 (x_compute_glyph_string_overhangs)
17261 (x_draw_glyph_string_foreground)
17262 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17263 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17264 enable_font_backend is nonzero, use font-backend mechanism.
17265 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17266
172672008-02-01 Kenichi Handa <handa@m17n.org>
17268
17269 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17270 system_eol_type.
17271 (syms_of_coding): Initialize system_eol_type.
17272
17273 * process.c (Fset_process_coding_system): Inherit system's eol
17274 format if necessary.
17275
172762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17277
17278 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17279
172802008-02-01 Kenichi Handa <handa@m17n.org>
17281
17282 * coding.c (decode_eol): Pay attention to buffer relocation in
17283 del_range_2.
17284 (decode_coding): Call decode_eol before restoring undo_list.
17285
172862008-02-01 Kenichi Handa <handa@m17n.org>
17287
17288 * charset.c (Fdefine_charset_internal): Fix setting of
17289 emacs_mule_bytes.
17290
172912008-02-01 Kenichi Handa <handa@m17n.org>
17292
17293 * keyboard.c (read_char): Check if C is a character or not before
17294 looking up Vkeyboard_translate_table.
17295
172962008-02-01 Kenichi Handa <handa@m17n.org>
17297
17298 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17299 condition to terminate the loop.
17300
173012008-02-01 Kenichi Handa <handa@m17n.org>
17302
17303 * coding.c (produce_composition): Compare charbuf[i] instead of
17304 args[i] against 0.
17305 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17306
173072008-02-01 Kenichi Handa <handa@m17n.org>
17308
17309 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17310 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17311 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17312 detect_coding.
17313 (emacs_mule_char): Handle old style (Emacs 20) component character
17314 of a composition.
17315 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17316 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17317 composition rule.
17318 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17319
173202008-02-01 Kenichi Handa <handa@m17n.org>
17321
17322 * coding.c (encode_coding_ccl): Allocate destination dynamically
17323 when necessary.
17324
173252008-02-01 Kenichi Handa <handa@m17n.org>
17326
17327 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17328 the loop. When quitted, show a proper error message.
17329
173302008-02-01 Kenichi Handa <handa@m17n.org>
17331
17332 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17333 src->clip_head and src->clip_tail temporarily instead of src->hl.
17334
17335 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17336 character sequence.
17337 (Fccl_execute_on_string): Use ASET, not XSET.
17338
173392008-02-01 Kenichi Handa <handa@m17n.org>
17340
17341 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17342
173432008-02-01 Kenichi Handa <handa@m17n.org>
17344
17345 * coding.c (decode_coding): Fix the condition of terminating the
17346 decoding loop.
17347
173482008-02-01 Kenichi Handa <handa@m17n.org>
17349
17350 * data.c (Faset): On setting a character bigger than 255 in a
17351 unibyte string, signal an error instead of make the string multibyte.
17352
173532008-02-01 Kenichi Handa <handa@m17n.org>
17354
17355 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17356 made by a mapping table.
17357
173582008-02-01 Kenichi Handa <handa@m17n.org>
17359
17360 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17361 not.
17362 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17363 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17364
17365 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17366 s->face is NULL or not.
17367
173682008-02-01 Kenichi Handa <handa@m17n.org>
17369
17370 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17371 (x_draw_glyph_string): Fix drawing of right_overhang and
17372 left_overhang around/on cursor.
17373
17374 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17375
173762008-02-01 Kenichi Handa <handa@m17n.org>
17377
17378 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17379
173802008-02-01 Kenichi Handa <handa@m17n.org>
17381
17382 * coding.c (Fdefine_coding_system_internal)
17383 (Fdefine_coding_system_alias): Avoid a duplicated element in
17384 Vcoding_system_alist.
17385
173862008-02-01 Kenichi Handa <handa@m17n.org>
17387
17388 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17389
17390 * coding.c (Qcoding_system_define_form): New variable.
17391 (syms_of_coding): Intern and staticpro it.
17392 (Fcoding_system_p): Check Qcoding_system_define_form.
17393 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17394
17395 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17396 Fcoding_system_p.
17397 (CHECK_CODING_SYSTEM): If ID is not available, call
17398 Fcheck_coding_system.
17399 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17400 Try also Fcheck_coding_system.
17401
174022008-02-01 Kenichi Handa <handa@m17n.org>
17403
17404 * coding.c (code_conversion_restore): GCPRO arg.
17405
174062008-02-01 Kenichi Handa <handa@m17n.org>
17407
17408 * character.c (lisp_string_width): Check multibyteness of STRING.
17409
174102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17411
17412 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17413 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17414 (decode_mac_font_name): Use decode_coding_c_string instead of
17415 decode_coding.
17416 (x_load_font): Initialize fontp->fontset to -1. Set
17417 fontp->encoding_type.
17418
174192008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * search.c (search_buffer): Give up BM search on case-fold-search
17422 if one of a target character has a case-equivalence of different
17423 byte length even if that target charcter is an ASCII.
17424 (simple_search): Fix calculation of byte length of matched text.
17425 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17426
174272008-02-01 Kenichi Handa <handa@m17n.org>
17428
17429 * coding.c (decode_coding): Fix handling of invalid bytes.
17430
174312008-02-01 Kenichi Handa <handa@m17n.org>
17432
17433 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17434 Unicode characters.
17435
174362008-02-01 Kenichi Handa <handa@m17n.org>
17437
17438 * coding.c (encode_coding_object): If a pre-write-conversion
17439 function makes a new buffer, kill it.
17440
174412008-02-01 Kenichi Handa <handa@m17n.org>
17442
17443 * coding.c (QCascii_compatible_p): New variable.
17444 (syms_of_coding): Initialize it.
17445 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17446 calling string_char.
17447 (record_conversion_result): Add `default:' case.
17448 (coding_charset_list): Delete unused variable `coding_type'.
17449 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17450 property in the plist of the coding system.
17451 (Fcoding_system_put): Check QCascii_compatible_p.
17452
174532008-02-01 Miles Bader <miles@gnu.org>
17454
17455 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17456 removed calculation of frame `f', as it's now used.
17457
174582008-02-01 Kenichi Handa <handa@m17n.org>
17459
17460 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17461 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17462 (UNIDATA): New variable.
17463 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17464 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17465 $(RUN_TEMACS) unconditionally.
17466
174672008-02-01 Kenichi Handa <handa@m17n.org>
17468
17469 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17470 (admindir): New variable.
17471 ($(lispsource)international/charprop.el): New target.
17472
174732008-02-01 Miles Bader <miles@gnu.org>
17474
17475 * character.c (chars-in-region): Remove obsolete function.
17476 (syms_of_character): Remove its initialization.
17477
174782008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17479
17480 * w32select.c (validate_coding_system)
17481 (setup_windows_coding_system): New functions.
17482 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17483 setup_windows_coding_system.
17484 (setup_config, Fw32_get_clipboard_data): Use
17485 validate_coding_system.
17486 (Fx_selection_exists): Move call to setup_config to a place
17487 where signals are allowed.
17488
17489 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17490 (Fcheck_coding_system): Add declarations.
17491
174922008-02-01 Kenichi Handa <handa@m17n.org>
17493
17494 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17495
174962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17497
17498 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17499 string as the second argument for x_new_fontset.
17500
175012008-02-01 Kenichi Handa <handa@m17n.org>
17502
17503 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17504 (encode_coding_object): Use safe_call instead of call2.
17505
175062008-02-01 Kenichi Handa <handa@m17n.org>
17507
17508 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17509
17510 * Makefile.in (lisp): Include charprop.el.
17511
175122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17513
17514 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17515 Not sure if it's unnecessary.
17516
175172008-02-01 Steven Tamm <steventamm@mac.com>
17518
17519 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17520 some possibly unnecessary fontset checking code that crashed
17521 when creating a new frame.
17522
175232008-02-01 Kenichi Handa <handa@m17n.org>
17524
17525 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17526 lookup_face.
17527
17528 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17529
17530 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17531
175322008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17535 (coding_charset_list): New function.
17536
17537 * coding.h (coding_charset_list): Extern it.
17538
175392008-02-01 Kenichi Handa <handa@m17n.org>
17540
17541 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17542 concatenation of family and registry.
17543
175442008-02-01 Kenichi Handa <handa@m17n.org>
17545
17546 * character.h (BYTE8_STRING): Fix typo.
17547
17548 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17549 string to multibyte (sync to HEAD).
17550
17551 * casefiddle.c (casify_region): Handle changes in byte-length
17552 using replace_range_2 (sync to HEAD).
17553
175542008-02-01 Andreas Schwab <schwab@suse.de>
17555
17556 * chartab.c (map_char_table): GCPRO table and arg.
17557
175582008-02-01 Kenichi Handa <handa@m17n.org>
17559
17560 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17561 already at limit.
17562
175632008-02-01 Kenichi Handa <handa@m17n.org>
17564
17565 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17566 instead of fast_c_string_match_ignore_case.
17567 (find_font_encoding): Change argument to Lisp_Object. Use
17568 fast_string_match_ignore_case instead of
17569 fast_c_string_match_ignore_case. Change caller.
17570
175712008-02-01 Kenichi Handa <handa@m17n.org>
17572
17573 * xdisp.c (get_next_display_element): In unibyte case, decide to
17574 display in octal form by checking a character by
17575 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17576
17577 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17578
17579 * character.c (unibyte_has_multibyte_table): New variable.
17580
17581 * character.h (unibyte_has_multibyte_table): Extern it.
17582 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17583
175842008-02-01 Kenichi Handa <handa@m17n.org>
17585
17586 * coding.c (encode_coding_iso_2022): Fix handling of charset
17587 annotation.
17588
175892008-02-01 Kenichi Handa <handa@m17n.org>
17590
17591 * coding.c (setup_coding_system): If coding_system is nil, use
17592 Qundecided.
17593 (Fterminal_coding_system): Return nil if terminal coding system is
17594 `undecided'.
17595 (syms_of_coding): Define coding-system `undecided' here. Setup
17596 terminal_coding as `undecided'.
17597
175982008-02-01 Kenichi Handa <handa@m17n.org>
17599
17600 * xdisp.c (message_dolog, set_message_1): Call
17601 unibyte_char_to_multibyte with arg type int.
17602
17603 * lread.c (read1): Fix reading of a char-table.
17604
17605 * print.c (print_object): Include sub char-table in circularities
17606 detection.
17607
176082008-02-01 Kenichi Handa <handa@m17n.org>
17609
17610 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17611 Append the found sequences in car of ARGS instead of prepending.
17612
176132008-02-01 Kenichi Handa <handa@m17n.org>
17614
17615 * fileio.c (report_file_error): Make a unibyte string from
17616 strerror (errorno).
17617 (Fsubstitute_in_file_name): Fix the arg to
17618 unibyte_char_to_multibyte. It is evaluated twice.
17619
176202008-02-01 Kenichi Handa <handa@m17n.org>
17621
17622 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17623
176242008-02-01 Kenichi Handa <handa@m17n.org>
17625
17626 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17627 BOM is not found.
17628 (detect_coding, detect_coding_system): Optimization for ISO-2022
17629 when no 8-bit data is found.
17630
176312008-02-01 Jason Rumney <jasonr@gnu.org>
17632
17633 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17634
176352008-02-01 Kenichi Handa <handa@m17n.org>
17636
17637 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17638 CHARS.
17639
176402008-02-01 Steven Tamm <steventamm@mac.com>
17641
17642 * macterm.c (mac_encode_char): Add charset argument and update
17643 to use encoding_type.
17644 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17645 switch to pure fontset.
17646 (decode_mac_font_name): Temporarily remove decoding.
17647 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17648 (x_load_font): Temporarily remove encoding.
17649
176502008-02-01 Kenichi Handa <handa@m17n.org>
17651
17652 * xfaces.c (Fface_font): If frame is not on a window system,
17653 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17654 refer to face->font.
17655 (split_font_name_into_vector, build_font_name_from_vector)
17656 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17657 when HAVE_WINDOW_SYSTEM is defined.
17658
176592008-02-01 Kenichi Handa <handa@m17n.org>
17660
17661 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17662 (x_produce_glyphs): Fix setting of members of cmp in case
17663 cmp->glyph_len is zero.
17664
17665 * fontset.c (Fset_fontset_font): Fix docstring.
17666 (Ffontset_info): Make it backward compatible. New arg ALL.
17667
176682008-02-01 Kim F. Storm <storm@cua.dk>
17669
17670 * process.c (read_process_output): Grow decoding_buf when needed;
17671 this could cause a crash in allocate_string and compact_small_strings.
17672
176732008-02-01 Kenichi Handa <handa@m17n.org>
17674
17675 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17676
176772008-02-01 Kenichi Handa <handa@m17n.org>
17678
17679 * coding.c (setup_coding_system): Set coding->common_flags
17680 correctly for raw-text.
17681 (consume_chars): On encoding unibyte text by raw-text, don't check
17682 multibyte form.
17683 (encode_coding): On encoding by raw-text, never use translation tables.
17684
17685 * fileio.c (e_write): Short cut for the case of no encoding.
17686
176872008-02-01 Kenichi Handa <handa@m17n.org>
17688
17689 * coding.c (detect_coding, detect_coding_system): Delete unused
17690 variables.
17691
176922008-02-01 Kenichi Handa <handa@m17n.org>
17693
17694 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17695 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17696
176972008-02-01 Kenichi Handa <handa@m17n.org>
17698
17699 * coding.c (Ffind_coding_systems_region_internal): Include
17700 raw-text and no-conversion in the result.
17701
177022008-02-01 Kenichi Handa <handa@m17n.org>
17703
17704 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17705 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17706 FONT_DEF.
17707 (font_def_arg, add_arg, from_arg, to_arg): New args.
17708 (set_fontset_font): Change argument.
17709 (Fset_fontset_font): Fix for the case that TARGET is a script
17710 name and charset name.
17711 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17712
177132008-02-01 Kenichi Handa <handa@m17n.org>
17714
17715 * fontset.c (fontset_font): Rename from fontset_face. Change return
17716 value.
17717 (face_suitable_for_char_p, face_for_char): Adjust for the change
17718 of fontset_font.
17719 (make_fontset_for_ascii_face): Fix setting of the fontset element
17720 for ASCII.
17721 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17722 to get a font name.
17723 (Ffontset_info): Adjust for the change of fontset_font.
17724
17725 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17726
17727 * character.h (LEADING_CODE_LATIN_1_MIN)
17728 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17729
177302008-02-01 Kenichi Handa <handa@m17n.org>
17731
17732 * editfns.c (check_translation): New function.
17733 (Ftranslate_region_internal): Handle M:N mapping.
17734
177352008-02-01 Kenichi Handa <handa@m17n.org>
17736
17737 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17738
177392008-02-01 Kenichi Handa <handa@m17n.org>
17740
17741 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17742 goto invalid_code.
17743 (decode_coding_iso_2022): Fix handling of invalid designation.
17744
17745 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17746 after calling code_conversion_save.
17747
177482008-02-01 Kenichi Handa <handa@m17n.org>
17749
17750 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17751
17752 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17753
17754 * fontset.c: Include "intervals.h".
17755 (fontset_face): Fix comparing of Lisp_Objects.
17756 (free_face_fontset, new_fontset_from_font_name): Fix
17757 Lisp_Object/int mixup.
17758
17759 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17760
17761 * coding.c: Add many prototypes for static functions.
17762 (get_translation_table): Allow max_lookup to be NULL.
17763 (decode_coding, Ffind_coding_systems_region_internal)
17764 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17765 get_translation_table with max_lookup NULL.
17766
177672008-02-01 Kenichi Handa <handa@m17n.org>
17768
17769 * coding.c (get_translation_table): Declare it as Lisp_Object.
17770 (LOOKUP_TRANSLATION_TABLE): New macro.
17771 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17772 instead of CHAR_TABLE_REF.
17773
177742008-02-01 Kenichi Handa <handa@m17n.org>
17775
17776 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17777 annotation data format.
17778 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17779 Change arguments FROM and TO to single argument NCHARS. Change caller.
17780 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17781 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17782 (decode_coding_ccl, decode_coding_charset): Pay attention to
17783 coding->charbuf_used.
17784 (get_translation): New function.
17785 (produce_chars): New arguments translation_table and last_block.
17786 Translate characters here. Return number of carryover chars.
17787 Change caller.
17788 (produce_composition): New argument pos. Change caller.
17789 Adjust for the change of annotation data format.
17790 (produce_charset, produce_annotation): Likewise.
17791 (decode_coding, encode_coding): Don't call translate_chars.
17792 (consume_chars): New arg translation_table. Change caller.
17793 (translate_chars): Delete.
17794 (syms_of_coding): Make translation-table's number of extra slots 2.
17795
177962008-02-01 Kenichi Handa <handa@m17n.org>
17797
17798 * search.c (simple_search): Fix setting this_pos_byte in backward
17799 search.
17800
17801 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17802 byte sequence.
17803 (detect_coding_ccl): Fix setting of the variable valids.
17804
178052008-02-01 Kenichi Handa <handa@m17n.org>
17806
17807 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17808
17809 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17810
17811 * editfns.c (Ftranslate_region_internal): Rename from
17812 Ftranslate_region. Accept a char-table in TABLE.
17813 (syms_of_editfns): Defsubr Stranslate_region_internal.
17814
17815 * xfaces.c (set_lface_from_font_name): If a font is specified for
17816 a frame, generate a fontset from the font.
17817 (build_scalable_font_name): If the scalable font is requested for
17818 a specific size, don't change that size.
17819 (try_font_list): Try a scalable font also in the case that a
17820 pattern string is specified.
17821
178222008-02-01 Kenichi Handa <handa@m17n.org>
17823
17824 * xfaces.c (Fface_font): New optional arg CHARACTER.
17825
178262008-02-01 Kenichi Handa <handa@m17n.org>
17827
17828 * charset.h (CHARSET_OFFSET): New macro.
17829
178302008-02-01 Kenichi Handa <handa@m17n.org>
17831
17832 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17833
17834 * fontset.c (fontset_face): Handle the case that repertory is a
17835 char-table.
17836 (find_font_encoding): Return nil for unknown encoding.
17837 (Fset_fontset_font): Ignore a font of unknown encoding.
17838
178392008-02-01 Kenichi Handa <handa@m17n.org>
17840
17841 * keymap.c (describe_vector): Handle default value of a char table.
17842
17843 * fontset.c (fontset_face): Handle fallback fonts correctly.
17844 (Ffontset_info): Return infomation about fallback fonts.
17845
178462008-02-01 Kenichi Handa <handa@m17n.org>
17847
17848 * fontset.c (FONTSET_DEFAULT): New macro.
17849 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17850 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17851 the case that it is nil.
17852 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17853 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17854
17855 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17856 subset or superset.
17857
178582008-02-01 Kenichi Handa <handa@m17n.org>
17859
17860 * emacs.c (main): Call init_charset after syms_of_XXX.
17861
17862 * charset.c (Vcharset_map_directory): Delete.
17863 (Vcharset_map_path): New variable.
17864 (load_charset_map_from_file): Use Vcharset_map_path instead.
17865 (init_charset): Initialize Vcharset_map_path.
17866 (syms_of_charset): Delete declaration of "charset-map-directory",
17867 add declaration of "charset-map-path".
17868
178692008-02-01 Kenichi Handa <handa@m17n.org>
17870
17871 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17872 ASCII only string.
17873
17874 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17875
17876 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17877 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17878
178792008-02-01 Kenichi Handa <handa@m17n.org>
17880
17881 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17882
17883 * coding.c (QCmnemonic, QCdefalut_char)
17884 (QCdecode_translation_table, QCencode_translation_table)
17885 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17886 (get_translation_table): Return a list of translation tables if
17887 necessary.
17888 (decode_coding): Call get_translation_table with ENCODEP 0.
17889 (char_encodable_p): If translation_table is non-nil, always call
17890 translate_char.
17891 (Fdefine_coding_system_internal): Accept list of translation
17892 tables as :encode-translation-table and :decode-translation-table.
17893 (Fcoding_system_put): New function.
17894 (syms_of_coding): Declare new symbols. Defsubr
17895 Scoding_system_put.
17896 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17897 typically JISX0212.
17898
17899 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17900 when the charset is superset type.
17901
17902 * character.c (translate_char): Accept list of translation tables.
17903
179042008-02-01 Kenichi Handa <handa@m17n.org>
17905
17906 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17907 (CODING_ATTR_TRANS_TBL): New macro.
17908
17909 * coding.c (get_translation_table): New function.
17910 (translate_chars): Fix the bug of skipping annotation data.
17911 (decode_coding, encode_coding): Utilize get_translation_table.
17912 (char_encodable_p, Funencodable_char_position): Translate char if
17913 necessary.
17914 (Ffind_coding_systems_region_internal)
17915 (Fcheck_coding_systems_region): Setup translation table for encode
17916 in a coding system attribute vector in advance.
17917 (Fdefine_coding_system_internal): Allow a symbol as translation
17918 table. For shift-jis type coding system, allow 4th charset.
17919
179202008-02-01 Kenichi Handa <handa@m17n.org>
17921
17922 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17923
17924 * xdisp.c (get_next_display_element): Pass -1 as POS to
17925 FACE_FOR_CHAR if displaying a C-string.
17926
179272008-02-01 Kenichi Handa <handa@m17n.org>
17928
17929 * composite.c (get_composition_id): Handle xoff and yoff in a
17930 composition rule.
17931
17932 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17933 (struct composition): New member lbearing and rbearing.
17934
17935 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17936 (x_get_glyph_overhangs): Handle a composition glyph.
17937 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17938
17939 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17940 composition glyph.
17941
179422008-02-01 Kenichi Handa <handa@m17n.org>
17943
17944 * print.c: Include charset.h.
17945 (Vprint_charset_text_property): New variable.
17946 (Qdefault): Extern it.
17947 (PRINT_STRING_NON_CHARSET_FOUND)
17948 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17949 (print_check_string_result): New variable.
17950 (print_check_string_charset_prop): New function.
17951 (print_prune_charset_plist): New variable.
17952 (print_prune_string_charset): New function.
17953 (print_object): Call print_prune_string_charset if
17954 Vprint_charset_text_property is not t.
17955 (print_interval): Print nothing if interval->plist is nil.
17956 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17957 variable. Init and staticpro print_prune_charset_plist.
17958
179592008-02-01 Kenichi Handa <handa@m17n.org>
17960
17961 * fontset.c (new_fontset_from_font_name): Use the specified font
17962 for all characters in the new fontset.
17963
17964 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17965 OBJECT args.
17966
17967 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17968 OBJECT args for composition too.
17969
17970 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17971 OBJECT args.
17972
179732008-02-01 Kenichi Handa <handa@m17n.org>
17974
17975 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17976
17977 * fontset.c (reorder_font_vector): Adjust for the change of
17978 FONT_DEF format.
17979 (fontset_face): New arg id. Change caller.
17980 (face_for_char): New args pos and object.
17981 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17982 (fs_query_fontset): Check NAME by Fassoc too.
17983 (Fset_fontset_font): Allow non-XLFD font name.
17984 (Ffontset_info): Adjust for the change of FONT_DEF format.
17985
17986 * fontset.h (face_for_char): Adjust prototype.
17987
17988 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17989 (append_space, extend_face_to_end_of_line)
17990 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17991 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17992
17993 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17994 POS and OBJECT args.
17995
17996 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17997 POS and OBJECT args.
17998
179992008-02-01 Jason Rumney <jasonr@gnu.org>
18000
18001 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18002 of GlobalAlloc'ed memory.
18003
180042008-02-01 Kenichi Handa <handa@m17n.org>
18005
18006 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18007
18008 * charset.h (charset_table_used): Delete extern.
18009
18010 * charset.c (charset_table_used): Make it static.
18011 (map_charset_chars): Fix args to c_function with.
18012
18013 * chartab.c (map_sub_char_table_for_charset): Fix args to
18014 c_function with.
18015
18016 * coding.h (enum coding_result_code): Delete
18017 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18018
18019 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18020 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18021 (Vlast_code_conversion_error): New variables.
18022 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18023 (ONE_MORE_BYTE): Record error if any instead of signaling an
18024 error. If non-ASCII multibyte char is found, return the negative
18025 value of the code. All callers changed to check it.
18026 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18027 (record_conversion_result): New function. Change all codes setting
18028 coding->result to call this function.
18029 (detect_coding_utf_8, decode_coding_utf_8)
18030 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18031 Don't use the local variable incomplete.
18032 (emacs_mule_char): Change the second arg to `const'.
18033 (decode_coding): Fix of flushing out unprocessed data.
18034 (make_conversion_work_buffer): Fix making of a work buffer.
18035 (decode_coding_object): Return coding->dst_object.
18036
18037 * fontset.c (set_fontset_font): Fix args.
18038
18039 * lisp.h (CHARACTERBITS): Define as 22.
18040
18041 * process.c (send_process): Be sure to set coding->src_multibyte.
18042
18043 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18044
180452008-02-01 Kenichi Handa <handa@m17n.org>
18046
18047 * xdisp.c (handle_auto_composed_prop): Give limit to
18048 Fnext_single_char_property_change.
18049
180502008-02-01 Kenichi Handa <handa@m17n.org>
18051
18052 * composite.c (syms_of_composite): Don't make the composition hash
18053 table weak.
18054
18055 * fontset.c (Fset_fontset_font): Fix docstring.
18056
18057 * lisp.h (detect_coding_system): Adjust prototype.
18058
18059 * fileio.c (kill_workbuf_unwind): Delete this function.
18060 (Finsert_file_contents): Adjust the call of detect_coding_system.
18061 Get conversion_buffer by code_conversion_save. Use the macro
18062 CODING_MAY_REQUIRE_DECODING. After decoding, update
18063 coding_system.
18064
18065 * coding.h (make_conversion_work_buffer): Delete extern.
18066 (code_conversion_save): Extern it.
18067
18068 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18069 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18070 (decode_coding_utf_8): Don't do eol converion.
18071 (detect_coding_utf_16): Check coding->src_chars, not
18072 coding->src_bytes. Add heuristics for those that have no signature.
18073 (decode_coding_emacs_mule, decode_coding_iso_2022)
18074 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18075 Don't do eol converion.
18076 (adjust_coding_eol_type): Return a new coding system.
18077 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18078 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18079 each change.
18080 (decode_coding): Pay attention to undo_list. Do eol conversion for
18081 all types of coding-systems (if necessary).
18082 (Vcode_conversion_work_buf_list): Delete it.
18083 (Vcode_conversion_reused_workbuf): Rename from
18084 Vcode_conversion_reused_work_buf.
18085 (Vcode_conversion_workbuf_name): New variable.
18086 (reused_workbuf_in_use): New variable.
18087 (make_conversion_work_buffer): Delete the arg DEPTH.
18088 (code_conversion_restore): Change argument to cons.
18089 (code_conversion_save): Delete the argument BUFFER. Change callers.
18090 (detect_coding_system): New argument src_chars. Change callers.
18091 Fix for utf-16 detection.
18092 (init_coding_once): Don't use ISO_carriage_return.
18093 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18094 reused_workbuf_in_use.
18095
180962008-02-01 Kenichi Handa <handa@m17n.org>
18097
18098 * keymap.c (store_in_keymap): Pay attention to the case that idx
18099 is a cons specifying a character range.
18100
181012008-02-01 Kenichi Handa <handa@m17n.org>
18102
18103 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18104 HANDLED_RECOMPUTE_PROPS.
18105
18106 * coding.c (Fdefine_coding_system_internal): Fix checking of
18107 ascii compatibility.
18108
181092008-02-01 Kenichi Handa <handa@m17n.org>
18110
18111 * charset.c (find_charsets_in_text): Delete unused locale variable.
18112 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18113
18114 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18115 Resync charset_list to Vemacs_mule_charset_list.
18116
18117 * keymap.c (store_in_keymap): Pay attention to the case that idx
18118 is a cons specifying a character range.
18119
181202008-02-01 Kenichi Handa <handa@m17n.org>
18121
18122 * composite.c (update_compositions): Bind inhibit-read-only, etc
18123 to t before calling remove-list-of-text-properties.
18124
18125 * print.c (print_object): Always print ASCII chars as is.
18126
181272008-02-01 Kenichi Handa <handa@m17n.org>
18128
18129 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18130
18131 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18132 is a char table.
18133
181342008-02-01 Kenichi Handa <handa@m17n.org>
18135
18136 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18137
181382008-02-01 Kenichi Handa <handa@m17n.org>
18139
18140 * xfaces.c (set_lface_from_font_name): Fix for the case that
18141 FONTNAME is not fontset name.
18142
181432008-02-01 Kenichi Handa <handa@m17n.org>
18144
18145 * fns.c (base64_encode_1): Fix previous change.
18146
181472008-02-01 Kenichi Handa <handa@m17n.org>
18148
18149 * fontset.c (set_fontset_font): New function.
18150 (Fset_fontset_font): If a font is specified for a charset, use
18151 map_charset_chars to store the font spec in a fontset.
18152
181532008-02-01 Kenichi Handa <handa@m17n.org>
18154
18155 * fontset.c (fontset_face): Create a fallback fontset on demand.
18156 (make_fontset): Don't create a fallback fontset here.
18157 (free_face_fontset): Free a fallback fontset (if any) too.
18158 (n_auto_fontsets): Delete this variable.
18159 (auto_fontset_alist): New variable.
18160 (new_fontset_from_font_name): Check auto_fontset_alist.
18161 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18162 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18163 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18164 Defsubr Sfontset_list_all.
18165
181662008-02-01 Kenichi Handa <handa@m17n.org>
18167
18168 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18169
181702008-02-01 Kenichi Handa <handa@m17n.org>
18171
18172 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18173
181742008-02-01 Kenichi Handa <handa@m17n.org>
18175
18176 * editfns.c (Fgoto_char): Fix docstring.
18177
181782008-02-01 Kenichi Handa <handa@m17n.org>
18179
18180 * insdel.c (insert_from_gap): Adjust intervals correctly.
18181
181822008-02-01 Jason Rumney <jasonr@gnu.org>
18183
18184 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18185 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18186 (w32_initialize): Try to load it.
18187 (x_get_font_repertory): Use it if available.
18188 (w32_encode_char): Add shortcut for unicode output.
18189
18190 * w32fns.c (w32_load_system_font): Default charset to -1.
18191 (x_to_w32_charset): Match all fonts for unicode.
18192 (w32_to_x_charset): New parameter matching. Don't return partial
18193 or wildcard charsets.
18194 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18195 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18196 (w32_to_x_font): Match charset to real charset.
18197 (enum_font_cb2): Always list unicode versions.
18198
18199 * makefile.w32-in (temacs): Increase EMHEAP.
18200
182012008-02-01 Jason Rumney <jasonr@gnu.org>
18202
18203 * w32term.c (w32_encode_char): New charset parameter.
18204 font_info.encoding becomes encoding_type.
18205 (x_get_font_repertory): New function. Warning: stub only!
18206 (x_new_font): Return quickly if font already set.
18207 (x_new_fontset): fontsetname parameter is Lisp_Object.
18208 Use new fs_query_fontset. Try new_fontset_from_font_name.
18209 Use fontset_name for return value.
18210
18211 * w32term.h: Declare x_get_font_repertory.
18212
18213 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18214 place of find_charset_in_text. Use encode_coding_object in place
18215 of encode_coding.
18216 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18217 decode_coding.
18218
18219 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18220 of x_new_fontset.
18221 (w32_load_system_font): Initialize charset as unicode.
18222 font_info.encoding becomes encoding_type.
18223 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18224 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18225 (syms_of_w32fns): Set get_font_repertory_func.
18226
18227 * w32console.c: Include character.h. Use terminal_encode_buffer
18228 from term.c.
18229 (write_glyphs): Use new version of encode_terminal_code. Use
18230 encode_coding_object in place of encode_coding.
18231
18232 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18233 encoding becomes encoding_type.
18234
18235 * term.c (terminal_encode_buffer): Make externally visible.
18236
18237 * makefile.w32-in: Add character.h dependancies.
18238 (character.o, chartab.o): New targets.
18239
182402008-02-01 Kenichi Handa <handa@m17n.org>
18241
18242 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18243 CODING_ID_EOL_TYPE.
18244
182452008-02-01 Andreas Schwab <schwab@suse.de>
18246
18247 * coding.c (produce_chars): Revert last change.
18248
182492008-02-01 Kenichi Handa <handa@m17n.org>
18250
18251 * charset.h (charset_unicode): Extern it.
18252
18253 * charset.c (string_xstring_p): Check by (C >= 0x100).
18254 (find_charsets_in_text): Change format of the arc CHARSETS. New
18255 arg MULTIBYTE.
18256 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18257 change of find_charsets_in_text.
18258 (Fsplit_char): Fix doc. Never return unknown.
18259
18260 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18261
18262 * coding.c (Fdefine_coding_system_alias): Update
18263 Vcoding_system_list.
18264
18265 * fontset.c (load_font_get_repertory): Pay attention to the case
18266 that ENCODING of a font is specified by a char-table.
18267
18268 * xterm.c (x_get_font_repertory): Handle the case that the
18269 encoding of font is other than Unicode.
18270
182712008-02-01 Kenichi Handa <handa@m17n.org>
18272
18273 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18274 if a character is encodable by the terminal coding system. If
18275 not, produces proper number of `?'s. Update
18276 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18277 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18278
182792008-02-01 Kenichi Handa <handa@m17n.org>
18280
18281 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18282 variables.
18283 (encode_terminal_code): Change argument. Encode multiple
18284 characters at once. Store the result of encoding in
18285 terminal_encode_buffer.
18286 (write_glyphs, insert_glyphs): Adjust for the change of
18287 encode_terminal_code.
18288 (term_init): Initialize terminal_encode_buffer and
18289 terminal_encode_buf_size.
18290
18291 * coding.c (consume_chars): If coding->src_object is nil, don't
18292 check annotation.
18293
182942008-02-01 Kenichi Handa <handa@m17n.org>
18295
18296 * character.c (char_string): Use ASCII_CHAR_P instead of
18297 SINGLE_BYTE_CHAR_P.
18298
182992008-02-01 Kenichi Handa <handa@m17n.org>
18300
18301 * xdisp.c (handle_auto_composed_prop): Check if the last
18302 characters of auto-composed region is newly composed with the
18303 following characters.
18304 (handle_composition_prop): Fix checking of point being inside
18305 composition.
18306
183072008-02-01 Kenichi Handa <handa@m17n.org>
18308
18309 * fns.c (concat): Don't change multibyteness of the result by
18310 concatenating an 8-bit character.
18311
18312 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18313 multibyteness of the result when newelt is an 8-bit character.
18314
183152008-02-01 Dave Love <fx@gnu.org>
18316
18317 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18318 EMACS_INT.
18319
18320 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18321
18322 * xfaces.c (face_numeric_value): Declare dim size_t.
18323 (Finternal_lisp_face_equal_p): Remove unused f.
18324
18325 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18326 (MATRIX_ROW): Remove unused vars.
18327 (draw_glyphs, x_insert_glyphs, fast_find_position)
18328 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18329 byte/char counts.
18330
18331 * regex.c (regex_compile): Remove unused var.
18332
18333 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18334
18335 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18336 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18337
18338 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18339
18340 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18341
18342 * fileio.c (Fwrite_region): Remove unused var.
18343
18344 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18345 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18346
18347 * composite.c (Fremove_list_of_text_properties): Declare.
18348
18349 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18350 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18351 (coding_inherit_eol_type): Remove unused attrs.
18352 (detect_coding): Cast arg of detect_eol.
18353
18354 * charset.c (syms_of_charset): Remove unused var p.
18355 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18356 byte/char counts.
18357
18358 * casetab.c (set_case_table): Remove unused var.
18359
18360 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18361 unused vars.
18362
183632008-02-01 Dave Love <fx@gnu.org>
18364
18365 * xterm.c (x_bitmap_mask): Declare.
18366
183672008-02-01 Dave Love <fx@gnu.org>
18368
18369 * xterm.c (x_term_init): Fix type error.
18370
18371 * lisp.h: Add Funibyte_char_to_multibyte.
18372
18373 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18374 (Fset_coding_system_priority): Doc fix.
18375
18376 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18377
18378 * indent.c (check_composition): Make start and end EMACS_INT.
18379
18380 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18381
18382 * xdisp.c (handle_composition_prop, check_point_in_composition):
18383 Make buffer positions EMACS_INT.
18384
18385 * composite.c (find_composition, run_composition_function)
18386 (update_compositions, Ffind_composition_internal): Make buffer
18387 positions EMACS_INT.
18388
18389 * composite.h (find_composition, update_compositions): Make
18390 position args EMACS_INT.
18391
18392 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18393
18394 * intervals.c (get_property_and_range):
18395 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18396
18397 * unexalpha.c: Don't include varargs.h.
18398
183992008-02-01 Dave Love <fx@gnu.org>
18400
18401 * coding.h (ENCODE_UTF_8): New.
18402
18403 * Makefile.in (gtkutil.o): Depend on coding.h.
18404
18405 * coding.c (Fset_coding_system_priority): Doc fix.
18406
184072008-02-01 Kenichi Handa <handa@m17n.org>
18408
18409 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18410 the case of auto saving.
18411
184122008-02-01 Andreas Schwab <schwab@suse.de>
18413
18414 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18415 `range' from GC.
18416
184172008-02-01 Kenichi Handa <handa@m17n.org>
18418
18419 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18420
184212008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * fileio.c (choose_write_coding_system): Return a decided coding system.
18424 (Fwrite_region): Set Vlast_coding_system_used to the return value
18425 of choose_write_coding_system.
18426
184272008-02-01 Kenichi Handa <handa@m17n.org>
18428
18429 * charset.c (Fset_charset_priority): Pay attention to duplicated
18430 arguments.
18431
18432 * coding.c (QCcategory): New variable.
18433 (syms_of_coding): Defsym it. Set all elements of
18434 Vcoding_category_table and their symbol values.
18435 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18436 coding-category-XXX, and coding-category-list.
18437 (Fdefine_coding_system_internal): Add category in the plist.
18438
184392008-02-01 Kenichi Handa <handa@m17n.org>
18440
18441 * callproc.c (Fcall_process): Handle carryover correctly.
18442
18443 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18444 (raw_text_coding_system): Check NILP (coding_system).
18445 (coding_inherit_eol_type): Check NILP (coding_system) and
18446 NILP (parent).
18447 (consume_chars): Fix for the case of raw-text.
18448
18449 * process.c (read_process_output): Handle carryover correctly.
18450
184512008-02-01 Dave Love <fx@gnu.org>
18452
18453 * regex.c (re_search_2): Fix last change.
18454
184552008-02-01 Kenichi Handa <handa@m17n.org>
18456
18457 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18458 target_multibyte. Even in a unibyte case, return a converted
18459 multibyte char.
18460 (GET_CHAR_AFTER): New macro.
18461 (PATFETCH): Translate via multibyte char.
18462 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18463 (SETUP_MULTIBYTE_RANGE): New macro.
18464 (regex_compile): Setup compiled code so that its multibyteness
18465 matches that of a target. Fix the handling of "[X-YZ]" using
18466 SETUP_MULTIBYTE_RANGE.
18467 (analyse_first) <charset>: For filling fastmap for all multibyte
18468 characters, don't check by BASE_LEADING_CODE_P.
18469 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18470 the same as RE_MULTIBYTE_P (bufp) now.
18471 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18472 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18473 (TRANSLATE_VIA_MULTIBYTE): New macro.
18474 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18475 It is the same as RE_MULTIBYTE_P (bufp) now.
18476 <exactn>: Translate via multibyte.
18477 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18478 translate it.
18479 <charset, charset_not>: Fetch a character by
18480 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18481 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18482 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18483 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18484 by GET_CHAR_AFTER.
18485 (bcmp_translate): Likewise.
18486
18487 * search.c (compile_pattern): Check the member target_multibyte,
18488 not the member multibyte of buf.
18489
18490 * lread.c (read1): While reading a string, set force_singlebyte
18491 and force_multibyte correctly.
18492
18493 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18494 up of unibyte_to_multibyte_table.
18495
184962008-02-01 Kenichi Handa <handa@m17n.org>
18497
18498 * coding.c (setup_coding_system): If coding has
18499 post-read-conversion or pre-write-conversion, set
18500 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18501 respectively.
18502 (decode_coding_gap): Run post-read-conversion if any.
18503
18504 * fileio.c (Finsert_file_contents): Even if we read into a
18505 unibyte buffer, check if we must decode the result or not.
18506
185072008-02-01 Kenichi Handa <handa@m17n.org>
18508
18509 * coding.c (make_conversion_work_buffer): Change the work buffer
18510 name to the same one as that of Emacs 21.
18511
185122008-02-01 Kenichi Handa <handa@m17n.org>
18513
18514 * coding.h (make_conversion_work_buffer): Adjust prototype.
18515 (code_conversion_restore): Don't extern it.
18516
18517 * coding.c (detected_mask): Delete unused variable.
18518 (decode_coding_iso_2022): Pay attention to the byte sequence of
18519 CTEXT extended segment, and retain those bytes as is.
18520 (decode_coding_ccl): Delete unused variable `valids'.
18521 (setup_coding_system): Delete unused variable `category'.
18522 (consume_chars): Delete unused variable `category'. Make it work
18523 for non-multibyte case.
18524 (make_conversion_work_buffer): Change argument.
18525 (saved_coding): Delete unused variable.
18526 (code_conversion_restore): Don't check saved_coding->destination.
18527 (code_conversion_save): New function.
18528 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18529 instead of record_unwind_protect.
18530 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18531 (detect_coding_system): Delete unused variable `mask'.
18532 (Fdefine_coding_system_internal): Delete unused variable id.
18533
18534 * fileio.c (kill_workbuf_unwind): New function.
18535 (Finsert_file_contents): On replacing, call
18536 make_conversion_work_buffer with correct args, and call
18537 record_unwind_protect with the first arg kill_workbuf_unwind.
18538
18539 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18540
185412008-02-01 Kenichi Handa <handa@m17n.org>
18542
18543 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18544 (fontset_add): Fix for the case that TO is less than TO1.
18545 (Ffontset_info): Don't use fallback fontset on checking the
18546 default fontset.
18547 (dump_fontset): New function for debugging.
18548
18549 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18550 coding_type is Qcharset.
18551
185522008-02-01 Kenichi Handa <handa@m17n.org>
18553
18554 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18555 (map_char_table): Don't inherit the value from the parent on
18556 initializing VAL. Adjust for the above change.
18557
185582008-02-01 Kenichi Handa <handa@m17n.org>
18559
18560 * coding.c (Qsignature, Qendian): Delete these variables.
18561 (syms_of_coding): Don't initialize them.
18562 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18563 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18564 detect_info->found.
18565 (decode_coding_utf_16): Don't detect BOM here.
18566 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18567 is NOT utf_16_without_bom.
18568 (setup_coding_system): For a coding system of type utf-16, check
18569 if the attribute :endian is Qbig or not (not nil or not), and set
18570 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18571 (detect_coding): If coding type is utf-16 and BOM detection is
18572 required, detect it.
18573 (Fdefine_coding_system_internal): For a coding system of type
18574 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18575
185762008-02-01 Kenichi Handa <handa@m17n.org>
18577
18578 * coding.c (coding_set_source): Fix for the case that the current
18579 buffer is different from coding->src_object.
18580 (decode_coding_object): Don't use the conversion work buffer if
18581 DST_OBJECT is a buffer.
18582
185832008-02-01 Dave Love <fx@gnu.org>
18584
18585 * lread.c (read_emacs_mule_char) [len==2]: Index
18586 emacs_mule_charset correctly.
18587
185882008-02-01 Dave Love <fx@gnu.org>
18589
18590 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18591 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18592 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18593 treated specially.)
18594 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18595 (detected_mask): Remove Big5 bits.
18596
185972008-02-01 Kenichi Handa <handa@m17n.org>
18598
18599 The following changes are to make the font rescaling facility
18600 compatible with Emacs 21.
18601
18602 * xfaces.c (Vface_font_rescale_alist): Rename from
18603 Vface_resizing_fonts.
18604 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18605 (font_rescale_ratio): Rename from font_resizing_ratio.
18606 (split_font_name): Set font->rescale_ratio.
18607 (better_font_p): Pay attention to font->rescale_ratio.
18608 (build_scalable_font_name): Likewise. Change RESX, and RESY
18609 fields.
18610 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18611
186122008-02-01 Kenichi Handa <handa@m17n.org>
18613
18614 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18615 (Qutf_16_le): Remove these variables.
18616 (syms_of_coding): Don't DEFSYM them.
18617 (decode_coding_utf_16): Fix handling of BOM.
18618 (encode_coding_utf_16): Fix handling of BOM.
18619
186202008-02-01 Kenichi Handa <handa@m17n.org>
18621
18622 * fileio.c (Finsert_file_contents): On replacing, before decoding
18623 the file into the work buffer, set point of the work buffer to the end.
18624
186252008-02-01 Dave Love <fx@gnu.org>
18626
18627 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18628
186292008-02-01 Dave Love <fx@gnu.org>
18630
18631 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18632 and fix C types.
18633
186342008-02-01 Kenichi Handa <handa@m17n.org>
18635
18636 * xdisp.c (SKIP_GLYPHS): New macro.
18637 (set_cursor_from_row): Pay attention to string display properties.
18638
18639 * category.c (copy_category_entry): Fix for the case that RANGE
18640 is an integer.
18641
18642 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18643
18644 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18645
186462008-02-01 Kenichi Handa <handa@m17n.org>
18647
18648 * charset.c (Fcharset_id_internal): New function.
18649 (syms_of_charset): Defsubr it.
18650
18651 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18652 with the last arg charset_list acquired from coding.
18653 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18654 the attribute coding_attr_ccl_valids.
18655
18656 * coding.h (enum define_coding_ccl_arg_index): Set the first
18657 member coding_arg_ccl_decoder to coding_arg_max.
18658
18659 * ccl.h (ccl_driver): Adjust prototype.
18660
18661 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18662 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18663 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18664 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18665 last arg Qnil.
18666
186672008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18670 call encode_char.
18671
18672 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18673
186742008-02-01 Dave Love <fx@gnu.org>
18675
18676 * composite.c (syms_of_composite): Make composition_hash_table weak.
18677
186782008-02-01 Kenichi Handa <handa@m17n.org>
18679
18680 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18681 (font_name_registry): Don't extern them.
18682 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18683
18684 * fontset.h (Qfontset): Don't extern it.
18685 (new_fontset_from_font_name): Extern it.
18686
18687 * fontset.c: Give 8 extra slots to fontset objects.
18688 (Qfontset_info): New variable.
18689 (syms_of_fontset): Defsym it.
18690 (FONTSET_FALLBACK): New macro.
18691 (fontset_face): Try also the default fontset.
18692 (make_fontset): Realize a fallback fontset from the default fontset.
18693 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18694 using split_font_name_into_vector and build_font_name_from_vector.
18695 (Fset_fontset_font): Access the elements of font_spec by enum
18696 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18697 name by using split_font_name_into_vector.
18698 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18699 generate a proper font name from the fontset name. Update
18700 Vfontset_alias_alist.
18701 (n_auto_fontsets): New variable.
18702 (new_fontset_from_font_name): New function.
18703 (Ffont_info): Store the information about fonts generated from the
18704 default fontset in the first extra slot of the returned char-table.
18705
18706 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18707 (font_name_registry): Delete function.
18708 (split_font_name_into_vector): New function.
18709 (build_font_name_from_vector): New function.
18710 (font_list): The argument REGISTRY is now a list of registry names.
18711 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18712 specifies an explicit font name, return the name as is. Make a
18713 list of registy names.
18714
18715 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18716 of x_new_fontset.
18717 (Fx_create_frame): Don't call x_new_fontset here. Just use
18718 x_list_fonts to check the existence of fonts.
18719
18720 * xterm.h (x_new_fontset): Adjust prototype.
18721
18722 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18723 string. Use new_fontset_from_font_name to create a fontset from a
18724 font name.
18725
187262008-02-01 Kenichi Handa <handa@m17n.org>
18727
18728 * syntax.c (Vfind_word_boundary_function_table): New name for
18729 Vnext_word_boundary_function_table.
18730 (find-word-boundary-function-table): New name for
18731 next-word-boundary-function-table.
18732
187332008-02-01 Dave Love <fx@gnu.org>
18734
18735 * Makefile.in: Fix some dependencies.
18736
18737 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18738 set it to nil before returning.
18739
18740 * composite.c (update_compositions): Fix type error.
18741
18742 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18743
187442008-02-01 Kenichi Handa <handa@m17n.org>
18745
18746 * xterm.c (x_new_font): Optimize for the case that the font is
18747 already set for the frame.
18748
187492008-02-01 Kenichi Handa <handa@m17n.org>
18750
18751 * chartab.c (char_table_ascii): Check if the char table contents
18752 is sub-char-table or not.
18753 (char_table_set, char_table_set_range): Fix argument to
18754 char_table_ascii.
18755
18756 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18757 (detect_coding_utf_8, detect_coding_utf_16)
18758 (detect_coding_emacs_mule, detect_coding_iso_2022)
18759 (detect_coding_sjis, detect_coding_big5)
18760 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18761 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18762 sequence is valid in this coding system. Change callers.
18763 (MAX_ANNOTATION_LENGTH): New macro.
18764 (ADD_ANNOTATION_DATA): New macro.
18765 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18766 ADD_ANNOTATION_DATA. Change the format of annotation data.
18767 (ADD_CHARSET_DATA): New macro.
18768 (emacs_mule_char): New argument ID. Change callers.
18769 (decode_coding_emacs_mule, decode_coding_iso_2022)
18770 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18771 Produce charset annotation data in coding->charbuf.
18772 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18773 to charset annotation data in coding->charbuf.
18774 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18775 coding->common_flags if the coding system is iso-2022 based and
18776 uses designation.
18777 (produce_composition): Adjust for the new annotation data format.
18778 (produce_charset): New function.
18779 (produce_annotation): Handle charset annotation.
18780 (handle_composition_annotation, handle_charset_annotation): New
18781 functions.
18782 (consume_chars): Handle charset annotation. Utilize the above two
18783 functions.
18784 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18785 buffer, get the deleted text as a string and set
18786 coding->src_object to that string.
18787 (detect_coding, detect_coding_system): Use the new struct
18788 coding_detection_info.
18789
18790 * coding.h (struct coding_detection_info): New structure.
18791 (struct coding_system): Adjust prototype of the member `detector'.
18792 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18793
187942008-02-01 Kenichi Handa <handa@m17n.org>
18795
18796 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18797
187982008-02-01 Dave Love <fx@gnu.org>
18799
18800 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18801 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18802 to new local and nullify apropos_accumulate before returning.
18803 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18804
188052008-02-01 Kenichi Handa <handa@m17n.org>
18806
18807 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18808 correctly.
e3eea1fc 18809
aac0c6e3
MR
188102008-02-01 Dave Love <fx@gnu.org>
18811
18812 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18813
188142008-02-01 Kenichi Handa <handa@m17n.org>
18815
18816 The following changes are to make character composition happen
18817 automatically on displaying.
18818
18819 * Makefile.in (lisp, shortlisp): Add composite.elc.
18820
18821 * composite.h (Qauto_composed, Vauto_composition_function)
18822 (Qauto_composition_function): Extern them.
18823
18824 * composite.c (Vcomposition_function_table)
18825 (Qcomposition_function_table): Delete variables.
18826 (Qauto_composed, Vauto_composition_function)
18827 (Qauto_composition_function): New variables.
18828 (run_composition_function): Don't call
18829 compose-chars-after-function.
18830 (update_compositions): Clear `auto-composed' text property.
18831 (compose_chars_in_text): Delete this function.
18832 (syms_of_composite): Staticpro Qauto_composed and
18833 Qauto_composition_function. Declare Vauto_composition_function as
18834 a Lisp variable.
18835
18836 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18837
18838 * xdisp.c (it_props): Add an entry for Qauto_composed.
18839 (handle_auto_composed_prop): New function.
18840
18841 * xselect.c (selection_data_to_lisp_data): Don't call
18842 compose_chars_in_text.
18843
188442008-02-01 Dave Love <fx@gnu.org>
18845
18846 * keyboard.c (read_char): Modify checking around use of
18847 Vkeyboard_translate_table.
18848
18849 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18850 and fix C types.
18851
188522008-02-01 Kenichi Handa <handa@m17n.org>
18853
18854 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18855 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18856 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18857 the case that the last byte is '\r' correctly.
18858 (decode_coding): Flush out the unprocessed data correctly.
18859 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18860
188612008-02-01 Dave Love <fx@gnu.org>
18862
18863 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18864 Add XK_ISO... case.
18865 (xaw_scroll_callback): Revert last change.
18866
188672008-02-01 Kenichi Handa <handa@m17n.org>
18868
18869 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18870
188712008-02-01 Kenichi Handa <handa@m17n.org>
18872
18873 * xfaces.c (Vface_resizing_fonts): New variable.
18874 (struct font_name): New member `resizing_ratio'.
18875 (font_resizing_ratio): New function.
18876 (split_font_name): Set font->resizing_ratio.
18877 (better_font_p): Pay attention to font->resizing_ratio.
18878 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18879 RESX, and RESY fields.
18880 (try_alternative_families): Try scalable fonts if
18881 Vscalable_fonts_allowed is not Qt.
18882 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18883
188842008-02-01 Dave Love <fx@gnu.org>
18885
18886 * xterm.c (xaw_scroll_callback): Cast correctly.
18887
188882008-02-01 Dave Love <fx@gnu.org>
18889
18890 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18891 (lispy_kana_keys): Comment out.
18892 (make_lispy_event) [XK_kana_A]: Comment out.
18893
18894 * xterm.c (xaw_scroll_callback): Cast call_data.
18895 (XTread_socket): Deal with ASCII keysyms.
18896 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18897
188982008-02-01 Dave Love <fx@gnu.org>
18899
18900 * xterm.c (Vx_keysym_table): New.
18901 (syms_of_xterm): Initialize it.
18902 (XTread_socket): Use it.
18903 From head: Eliminate incorrect optimization that tried to avoid
18904 decoding the output of X*LookupString.
18905 (x_get_font_repertory): Delete charset declaration.
18906
189072008-02-01 Kenichi Handa <handa@m17n.org>
18908
18909 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18910 return 0.
18911 (Fdefine_coding_system_internal): Setup
18912 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18913
189142008-02-01 Dave Love <fx@gnu.org>
18915
18916 * coding.c (Fcheck_coding_system): Doc fix.
18917
18918 * editfns.c (Finsert_byte): Return a proper value.
18919
189202008-02-01 Kenichi Handa <handa@m17n.org>
18921
18922 * coding.c (decode_coding): Fix args to translate_chars. Pay
18923 attention to Vstandard_translation_table_for_decode.
18924 (encode_coding): Fix args to translate_chars. Pay attention to
18925 Vstandard_translation_table_for_encode.
18926
18927 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18928 SINGLE_BYTE_CHAR_P.
18929
18930 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18931 not by SINGLE_BYTE_CHAR_P.
18932
18933 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18934 SINGLE_BYTE_CHAR_P.
18935
18936 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18937 SINGLE_BYTE_CHAR_P.
18938
18939 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18940 by SINGLE_BYTE_CHAR_P.
18941
18942 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18943 SINGLE_BYTE_CHAR_P.
18944
189452008-02-01 Dave Love <fx@gnu.org>
18946
18947 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18948
189492008-02-01 Dave Love <fx@gnu.org>
18950
18951 * fns.c (Flanginfo): Fix typo.
18952
18953 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18954
189552008-02-01 Kenichi Handa <handa@m17n.org>
18956
18957 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18958 (detect_coding_emacs_mule, detect_coding_iso_2022)
18959 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18960 incomplete byte sequence. Don't update *mask when correctly detected.
18961 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18962 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18963 (detect_coding, detect_coding_system): Adjust for the changes above.
18964
189652008-02-01 Kenichi Handa <handa@m17n.org>
18966
18967 * character.c (char_string): Rename from
18968 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18969 (string_char): Rename from string_char.
18970
18971 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18972 if C is greater than MAX_3_BYTE_CHAR.
18973 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18974 string_char instead of string_char_with_unification.
18975
189762008-02-01 Dave Love <fx@gnu.org>
18977
18978 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18979
189802008-02-01 Kenichi Handa <handa@m17n.org>
18981
18982 * keymap.c (push_key_description): Pay attention to force_multibyte.
18983
18984 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18985
189862008-02-01 Dave Love <fx@gnu.org>
18987
18988 * charset.c (define_charset_internal): Rename `supprementary'.
18989
18990 * Makefile.in (lisp, shortlisp): Remove latin-N.
18991
189922008-02-01 Dave Love <fx@gnu.org>
18993
18994 * xfns.c (x_window, x_window): Use use_xim.
18995
18996 * xterm.c (use_xim): Initialize.
18997 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18998 (x_term_init): Maybe set use_xim.
18999
19000 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19001
190022008-02-01 Kenichi Handa <handa@m17n.org>
19003
19004 * search.c (search_buffer): Fix case-fold-search of multibyte
19005 characters.
19006 (boyer_moore): Rename the last argument to char_high_bits.
19007
190082008-02-01 Kenichi Handa <handa@m17n.org>
19009
19010 * xdisp.c (display_string): Fix for the case of zero width glyph.
19011
19012 * xfns.c (x_set_font): Change the error message of the case that
19013 x_new_fontset returns Qt.
19014
19015 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19016 (Finternal_set_lisp_face_attribute): Use signal_error for the
19017 error of invalid fontset.
19018
19019 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19020 fontset, return Qt.
19021
190222008-02-01 Dave Love <fx@gnu.org>
19023
19024 * unexelf.c (unexec): Make .got handling not SGI-specific.
19025
19026 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19027
19028 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19029
19030 * keyboard.c (read_key_sequence): Fix type error.
19031
19032 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19033 type error.
19034
19035 * fontset.c (fontset_add): Return Lisp_Object.
19036
190372008-02-01 Dave Love <fx@gnu.org>
19038
19039 * charset.h (charset_ordered_list_tick): Declare extern.
19040
190412008-02-01 Kenichi Handa <handa@m17n.org>
19042
19043 The following changes (and some of 2008-02-01 changes of mine) are
19044 for handling syntax, category, and case conversion for unibyte
19045 characters by converting them to multibyte on the fly. With these
19046 changes, we don't have to setup syntax and case tables for unibyte
19047 characters in each language environment.
19048
19049 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19050 multibyte if necessary.
19051
19052 * bytecode.c (Fbyte_code): Likewise.
19053
19054 * character.h (LEADING_CODE_LATIN_1_MIN)
19055 (LEADING_CODE_LATIN_1_MAX): New macros.
19056 (unibyte_to_multibyte_table): Extern it.
19057 (unibyte_char_to_multibyte): New macro.
19058 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19059 (CHAR_LEADING_CODE): New macro.
19060 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19061
19062 * character.c (unibyte_to_multibyte_table): New variable.
19063 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19064 (multibyte_char_to_unibyte): If C is an eight-bit character,
19065 convert it to the corresponding byte value.
19066
19067 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19068 not 1, signals an error. Update the elements of
19069 unibyte_to_multibyte_table.
19070 (init_charset_once): Initialize unibyte_to_multibyte_table.
19071 (syms_of_charset): Define the charset `iso-8859-1'.
19072
19073 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19074 as is without converting it to unibyte. In a unibyte buffer,
19075 convert C to multibyte before checking the syntax.
19076
19077 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19078
19079 * minibuf.c (Fminibuffer_complete_word): Use the macro
19080 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19081
19082 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19083
19084 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19085 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19086 that is zero, convert an eight-bit char to multibyte.
19087 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19088 non-emacs case.
19089 (PATFETCH): Convert an eight-bit char to multibyte.
19090 (HANDLE_UNIBYTE_RANGE): New macro.
19091 (regex_compile): Setup the compiled pattern for multibyte chars
19092 even if the given regex string is unibyte. Use PATFETCH_RAW
19093 instead of PATFETCH in many places. To handle `charset'
19094 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19095 only for ASCII chars.
19096 (analyse_first) <exactn>: Simplify because the compiled pattern
19097 is multibyte.
19098 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19099 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19100 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19101 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19102 multibyte always 1.
19103 (re_search_2): In emacs, set the locale variable multibyte to 1,
19104 otherwise to 0. New local variable target_multibyte. Check it
19105 to decide the multibyteness of STR1 and STR2. If
19106 target_multibyte is zero, convert unibyte chars to multibyte
19107 before translating and checking fastmap.
19108 (TARGET_CHAR_AND_LENGTH): New macro.
19109 (re_match_2_internal): In emacs, set the locale variable multibyte
19110 to 1, otherwise to 0. New local variable target_multibyte. Check
19111 it to decide the multibyteness of STR1 and STR2. Use
19112 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19113 <charset, charset_not>: If multibyte is nonzero, check fastmap
19114 only for ASCII chars. Call bcmp_translate with
19115 target_multibyte, not with multibyte.
19116 <begline>: Declare the local variable C as `unsigned'.
19117 (bcmp_translate): Change the last arg name to target_multibyte.
19118
19119 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19120 the regexp pattern and the matching target. Set cp->buf.multibyte
19121 to the multibyteness of the regexp pattern. Set
19122 cp->but.target_multibyte to the multibyteness of the matching target.
19123 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19124 FETCH_STRING_CHAR_ADVANCE.
19125 (Freplace_match): Convert unibyte chars to multibyte.
19126
19127 * syntax.c (char_quoted, back_comment, scan_words)
19128 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19129 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19130 unibyte chars to multibyte.
19131 (skip_chars): Delete the arg syntaxp, and move the code for
19132 handling syntaxes to skip_syntaxes. Change callers.
19133 Fix the case that the multibyteness of STRING and the current
19134 buffer doesn't match.
19135 (skip_syntaxes): New function.
19136 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19137 SINGLE_BYTE_CHAR_P.
19138
191392008-02-01 Kenichi Handa <handa@m17n.org>
19140
19141 * xfaces.c (QCfontset): New variable.
19142 (LFACE_FONTSET): New macro.
19143 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19144 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19145 (Finternal_set_lisp_face_attribute)
19146 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19147 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19148 check also LFACE_FONTSET_INDEX.
19149 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19150 attrs[LFACE_FONT_INDEX].
19151 (syms_of_xfaces): Intern and staticpro QCfontset.
19152
19153 * dispextern.h (enum lface_attribute_index): New member
19154 LFACE_FONTSET_INDEX.
19155
19156 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19157
191582008-02-01 Kenichi Handa <handa@m17n.org>
19159
19160 * coding.c (coding_set_destination): Fix coding->destination for
19161 the case converting a region.
19162 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19163 (encode_coding_object): Fix coding->dst_pos and
19164 coding->dst_pos_byte for the case converting a region.
19165
19166 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19167
19168 * character.h (BYTE8_STRING): New macro.
19169
19170 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19171
191722008-02-01 Kenichi Handa <handa@m17n.org>
19173
19174 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19175 characters by octal form.
19176
19177 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19178
19179 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19180 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19181 _fetch_multibyte_char_len.
19182 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19183
19184 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19185
19186 * casefiddle.c (casify_object): Simplify. Handle the case that
19187 the case conversion change the byte length.
19188 (casify_region): Likewise.
19189
19190 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19191
19192 * character.c (_fetch_multibyte_char_len): Delete this variable.
19193 (syms_of_character): Setup Vprintable_chars.
19194
19195 * editfns.c (Fchar_equal): Fix for the unibyte case.
19196 (Finsert_byte): New function.
19197 (syms_of_editfns): Defsubr it.
19198
19199 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19200 of direct code 0x3ffff.
19201
19202 * search.c (Freplace_match): Fix for the unibyte case.
19203
192042008-02-01 Kenichi Handa <handa@m17n.org>
19205
19206 * lread.c (safe_to_load_p): Fix the logic.
19207
19208 * syntax.c (scan_words): Don't treat characters belonging to
19209 different scripts as constituting a word.
19210
19211 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19212
19213 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19214
19215 * emacs.c (main): In the case of --unibyte, instead of aborting on
19216 finding non-empty buffer, make it unibyte.
19217
192182008-02-01 Kenichi Handa <handa@m17n.org>
19219
19220 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19221 to create a fontset.
19222
192232008-02-01 Dave Love <fx@gnu.org>
19224
19225 * character.c (Funibyte_char_to_multibyte): Doc fix.
19226
19227 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19228
192292008-02-01 Kenichi Handa <handa@m17n.org>
19230
19231 * fontset.c (fontset_add): Make the type `int'.
19232 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19233
19234 * character.c (unibyte_char_to_multibyte)
19235 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19236 charset_unibyte, not charset_primary.
19237
19238 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19239
19240 * charset.c (charset_unibyte): Rename from charset_primary.
19241 (Funibyte_charset): Rename from Fprimary_charset.
19242 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19243 (syms_of_charset): Adjust for the above changes.
19244
19245 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19246 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19247 it->multibyte_p is zero.
19248
19249 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19250 Delete extern.
19251
192522008-02-01 Kenichi Handa <handa@m17n.org>
19253
19254 * coding.c (Fdefine_coding_system_internal): Fix category setting
19255 for a coding system of type iso-2022.
19256
192572008-02-01 Kenichi Handa <handa@m17n.org>
19258
19259 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19260
192612008-02-01 Kenichi Handa <handa@m17n.org>
19262
19263 * syntax.c (Vnext_word_boundary_function_table): New variable.
19264 (next-word-boundary-function-table): Declare it as a Lisp variable
19265 in syms_of_syntax.
19266 (scan_words): Call functions in Vnext_word_boundary_function_table
19267 if any.
19268
19269 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19270
19271 * fontset.c (fs_load_font): If fontp->charset is not negative,
19272 return fontp without setting its members.
19273
192742008-02-01 Dave Love <fx@gnu.org>
19275
19276 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19277
19278 * m/sparc.h (HAVE_ALLOCA): Delete.
19279
19280 * s/irix6-5.h: Don't include strings.h.
19281 (bcopy, bzero, bcmp): Don't undef.
19282
19283 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19284
19285 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19286 (TIOCSIGSEND): Don't test IRIX6.
19287 (bcopy, bzero, bcmp): Define conditionally.
19288
192892008-02-01 Kenichi Handa <handa@m17n.org>
19290
19291 * buffer.c (Qas, Qmake, Qto): New variables.
19292 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19293 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19294
19295 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19296 we are inserting a process output into a multibyte buffer.
19297
19298 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19299 multibyte_char_to_unibyte.
19300
19301 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19302 by the primary charset, make it eight-bit char.
19303 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19304
19305 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19306 (charset_8_bit__control, charset_8_bit_graphic)
19307 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19308 (define_charset_internal): New function.
19309 (syms_of_charset): Call define_charset_internal for pre-defined
19310 charsets.
19311
19312 * charset.h (charset_8_bit): Extern it.
19313
19314 * coding.c (make_conversion_work_buffer): Adjust for the change
19315 of Fset_buffer_multibyte.
19316 (encode_coding_raw_text): Increment p0 in the loop.
19317
19318 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19319
19320 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19321 for the change of Fset_buffer_multibyte.
19322
19323 * fns.c (Fstring_to_multibyte): New function.
19324 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19325
193262008-02-01 Dave Love <fx@gnu.org>
19327
19328 * xfns.c (x_put_x_image): Declare args.
19329
19330 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19331 (try_font_list): Declare an arg.
19332
19333 * xdisp.c (message2_nolog, set_message): Declare an arg.
19334
19335 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19336
19337 * syntax.c (scan_sexps_forward): Declare an arg.
19338
19339 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19340 Declare an arg.
19341
19342 * lisp.h (Fnew_fontset): Declare.
19343
19344 * keymap.c (push_key_description): Call CHARACTERP correctly.
19345
19346 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19347 (face_for_char): Delete unused vars.
19348 (Fset_fontset_font): Doc fix. Delete unused vars.
19349
19350 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19351
19352 * composite.c (update_compositions): Declare arg.
19353
19354 * cm.c (calccost, cmgoto): Declare args.
19355
19356 * charset.c: Remove `emacs' conditional. Doc fixes.
19357 (map_char_table_for_charset): Declare.
19358
19359 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19360
19361 * ccl.c: Remove `emacs' conditional.
19362
193632008-02-01 Kenichi Handa <handa@m17n.org>
19364
19365 The following changes are to allow specifying multiple font
19366 patterns for a character range (specified by script or charset).
19367
19368 * Makefile.in (abbrev.o): Depend on syntax.h.
19369 (xfaces.o): Depend on charset.h.
19370
19371 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19372 SINGLE_BYTE_CHAR_P.
19373
19374 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19375
19376 * character.h (Vchar_script_table): Extern it.
19377
19378 * character.c (Vscript_alist): Delete.
19379 (Vchar_script_table, Qchar_script_table): New variable.
19380 (syms_of_character): Declare Vchar_script_table as a lisp variable
19381 and initialize it.
19382
19383 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19384 have property char-table-extra-slots, make no extra slot.
19385
19386 * dispextern.h (struct face): Delete member `charset'.
19387 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19388 SINGLE_BYTE_CHAR_P.
19389 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19390 Add prototypes.
19391 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19392 (generate_ascii_font_name): Rename from generate_ascii_font.
19393
19394 * fontset.h (get_font_repertory_func): New prototype.
19395 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19396 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19397
19398 * fontset.c (Qprepend, Qappend): New variables.
19399 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19400 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19401 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19402 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19403 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19404 (load_font_get_repertory): New functions.
19405 (fontset_set): Delete.
19406 (fontset_face): New arg FACE. Return face ID, not face.
19407 Complete re-write to handle new fontset structure. Change caller.
19408 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19409 (face_for_char): Don't call lookup_face.
19410 (make_fontset_for_ascii_face): New arg FACE.
19411 (fs_load_font): New arg CHARSET_ID. Don't check
19412 Vfont_encoding_alist here.
19413 (find_font_encoding): New function.
19414 (list_fontsets): Use STRINGP, not ! NILP.
19415 (accumulate_script_ranges): New function.
19416 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19417 re-written to handle new fontset structure.
19418 (Ffontset_font): Return a copy of element.
19419 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19420 docstring of font-encoding-alist.
19421
19422 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19423 (Fset_fotset_font): Fix arguments to 5.
19424
19425 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19426
19427 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19428 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19429 (highlight_trailing_whitespace): Adjust for the change of
19430 lookup_named_face.
19431
19432 * xfaces.c: Include charset.h.
19433 (load_face_font): Delete argument C. Change caller.
19434 (generate_ascii_font_name): Rename from generate_ascii_font.
19435 (font_name_registry): New function.
19436 (cache_face): Store ascii faces before non-ascii faces in buckets.
19437 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19438 Lookup only ascii faces.
19439 (lookup_non_ascii_face): New function.
19440 (lookup_named_face): Delete argument C. Change caller.
19441 (lookup_derived_face): Delete argument C. Change caller.
19442 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19443 a string, just call font_list with it.
19444 (choose_face_font): Delete arguments FACE and C. New arg
19445 FONT_SPEC. Change caller.
19446 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19447 Change caller.
19448 (realize_non_ascii_face): New function.
19449 (realize_x_face): Call load_face_font here.
19450 (realize_tty_face): Delete argument C. Change caller.
19451 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19452 get a face ID.
19453 (dump_realized_face): Don't print charset of FACE.
19454
19455 * xfns.c (x_set_font): Always call x_new_fontset and
19456 store_frame_parameter.
19457 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19458 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19459
19460 * xterm.h (x_get_font_repertory): Extern it.
19461
19462 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19463 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19464 it->multibyte_p is zero.
19465 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19466 (x_new_fontset): If FONTSETNAME doesn't match any existing
19467 fontsets, create a new one.
19468 (x_get_font_repertory): New function.
19469
194702008-02-01 Kenichi Handa <handa@m17n.org>
19471
19472 * coding.c (Ffind_coding_systems_region_internal): Detect an
19473 ASCII only string correctly.
19474
19475 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19476 version is 0.
19477
194782008-02-01 Kenichi Handa <handa@m17n.org>
19479
19480 * lread.c: Include "coding.h".
19481 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19482 (load_each_byte, unread_char): New variables.
19483 (readchar_backlog): Delete.
19484 (readchar): Return a character unless load_each_byte is nonzero.
19485 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19486 cons. If unread_char is not -1, simply return it.
19487 (unreadchar): Handle the case that readcharfun is
19488 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19489 (read_multibyte): Delete.
19490 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19491 (read_emacs_mule_char): New functions.
19492 (Fload): Even if the file doesn't have the extension ".elc", if
19493 safe_to_load_p returns a positive version number, assume that the
19494 file contains bytecompiled code. If the version is less than 22,
19495 load the file while decoding multibyte sequences by emacs-mule.
19496 (readevalloop): Don't use readchar_backlog.
19497 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19498 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19499 (read_escape): Delete the arg BYTEREP.
19500 (read1): Set load_each_byte to 1 temporarily while handling
19501 #@NUMBER. Don't call read_multibyte.
19502 (read_vector): Call Fread with a cons. If readcharfun is
19503 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19504 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19505 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19506 and Qload_force_doc_strings.
19507
195082008-02-01 Kenichi Handa <handa@m17n.org>
19509
19510 * xdisp.c (face_before_or_after_it_pos): Call
19511 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19512
195132008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * character.h (TRAILING_CODE_P): New macro.
19516 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19517 (string_char_with_unification): Fix prototype.
19518 (Vscript_alist): Extern it.
19519
19520 * character.c (Vscript_alist): New variable.
19521 (string_char_with_unification, str_as_unibyte)
19522 (string_escape_byte8): Add `const' to local variables.
19523 (syms_of_character): Declare script-alist as a Lisp variable.
19524
19525 * charset.h (Vcharset_ordered_list): Extern it.
19526 (charset_ordered_list_tick): Extern it.
19527 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19528 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19529 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19530 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19531 (Funify_charset): Adjust for the change of Funify_charset.
19532
19533 * charset.c (charset_ordered_list_tick): New variable.
19534 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19535 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19536 deunify intead of unify a charset.
19537 (string_xstring_p): Add `const' to local variables.
19538 (find_charsets_in_text): Add `const' to arguments and local variables.
19539 (encode_char): Adjust for the change of Funify_charset. Fix
19540 detecting of invalid code.
19541 (Fset_charset_priority): Increment charset_ordered_list_tick.
19542 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19543 and TO_CODE.
19544
19545 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19546 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19547 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19548 (decode_coding_ccl, consume_chars)
19549 (Ffind_coding_systems_region_internal)
19550 (Fcheck_coding_systems_region): Add `const' to local variables.
19551
19552 * print.c (print_object): Use octal form for printing the
19553 contents of a bool vector.
19554
195552008-02-01 Dave Love <fx@gnu.org>
19556
19557 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19558 <version == 20>: Refuse to load.
19559
195602008-02-01 Dave Love <fx@gnu.org>
19561
19562 * fns.c: Move coding.h.
19563 (Qcodeset, Qdays, Qmonths): New.
19564 (concat): Use CHARACTERP instead of INTEGERP.
19565 (Flocale_codeset): Delete.
19566 (Flanginfo): New function.
19567 (syms_of_fns): Change accordingly.
19568
19569 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19570
195712008-02-01 Dave Love <fx@gnu.org>
19572
19573 * casetab.c (init_casetab_once, init_casetab_once): Fix
19574 CHAR_TABLE_SET call.
19575
19576 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19577
19578 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19579
19580 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19581 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19582 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19583
19584 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19585
19586 * coding.c (ENCODE_DESIGNATION, decode_eol)
19587 (make_conversion_work_buffer, code_conversion_restore)
19588 (Fdefine_coding_system_internal): Convert Lisp types.
19589 (code_conversion_restore): Use EQ, not ==.
19590 (Fencode_coding_string): Fix code_convert_string call.
19591
19592 * coding.h (code_convert_region): Fix prototype.
19593
19594 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19595
19596 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19597 (Ffontset_info): Convert Lisp types.
19598
19599 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19600
19601 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19602
19603 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19604
19605 * chartab.c: Include "...h", not <...h> in some cases.
19606
19607 * callproc.c (Fcall_process): Remove unused variables.
19608
196092008-02-01 Dave Love <fx@gnu.org>
19610
19611 * coding.c (Fset_coding_system_priority): Allow null arg list.
19612
196132008-02-01 Dave Love <fx@gnu.org>
19614
19615 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19616 (Fself_insert_and_exit): Use CHARACTERP.
19617
19618 * callproc.c (Fcall_process): Remove unused vars.
19619
19620 * xterm.c (XTread_socket): Add extra dead keysyms.
19621
19622 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19623
19624 * dispextern.h: Remove prototypes for redraw_frame,
19625 redraw_garbaged_frames.
19626
19627 * cmds.c (Fself_insert_command): Use CHARACTERP.
19628
19629 * chartab.c (make_sub_char_table): Remove unused var.
19630 (Fset_char_table_default, Fmap_char_table): Doc fix.
19631
19632 * keymap.c (access_keymap): Remove generic char code.
19633 (push_key_description): Use CHARACTERP.
19634
196352008-02-01 Dave Love <fx@gnu.org>
19636
19637 * charset.c: Doc fixes.
19638 (Funify_charset): Extra checking.
19639
196402008-02-01 Dave Love <fx@gnu.org>
19641
19642 * lread.c: Remove some unused variables.
19643 (safe_to_load_p): If safe, return the magic number version byte.
19644 (Fload): Maybe use load-with-code-conversion.
19645
196462008-02-01 Kenichi Handa <handa@m17n.org>
19647
19648 * category.c (Fmodify_category_entry): Don't modify the contents
19649 of category_set for characters out of the range. Avoid
19650 unnecessary modification.
19651
19652 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19653 Vchar_unify_table. The default value of the table is now nil.
19654
19655 * character.c (syms_of_character): Setup Vchar_width_table for
19656 eight-bit-control and raw-byte chars.
19657
19658 * charset.h (enum define_charset_arg_index): Delete
19659 charset_arg_parents and add charset_arg_subset and
19660 charset_arg_superset.
19661 (enum charset_attr_index): Delete charset_parents and add
19662 charset_subset and charset_superset.
19663 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19664 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19665 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19666 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19667 (CHARSET_SUPERSET): New macros.
19668 (charset_work): Extern it.
19669 (ENCODE_CHAR): Use charset_work.
19670 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19671 (map_charset_chars): Extern it.
19672
19673 * charset.c (load_charset_map): Set the default value of encoder
19674 and deunifier char-tables to nil.
19675 (map_charset_chars): Change argument. Change callers. Use
19676 map_char_table_for_charset instead of map_char_table.
19677 (Fmap_charset_chars): New optional args from_code and to_code.
19678 (Fdefine_charset_internal): Adjust for the change of
19679 `define-charset' (:parents -> :subset or :superset).
19680 (charset_work): New variable.
19681 (encode_char, syms_of_charset): Adjust for the change of
19682 Fdefine_charset_internal.
19683 (Ffind_charset_string): Setup the vector `charsets' correctly.
19684
19685 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19686 the previous change.
19687 (char_table_ref_and_range): Adjust for the above change.
19688 (map_sub_char_table_for_charset): New function.
19689 (map_char_table_for_charset): New function.
19690
19691 * keymap.c (describe_vector): Handle a char-table directly here.
19692 (describe_char_table): Delete.
19693
19694 * lisp.h (map_charset_chars): Delete.
19695
196962008-02-01 Dave Love <fx@gnu.org>
19697
19698 * fns.c (count_combining): Comment out (unused).
19699 (Flocale_codeset): New.
19700 (syms_of_fns): Defsubr it.
19701
19702 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19703 (size_t): Remove.
19704
197052008-02-01 Dave Love <fx@gnu.org>
19706
19707 * Makefile.in (chartab.o): Depend on charset.h.
19708
197092008-02-01 Kenichi Handa <handa@m17n.org>
19710
19711 * character.c (syms_of_character): Set the default value of
19712 Vprintable_chars to Qnil.
19713
197142008-02-01 Dave Love <fx@gnu.org>
19715
19716 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19717
197182008-02-01 Kenichi Handa <handa@m17n.org>
19719
19720 * charset.c (load_charset_map): Handle the case that from < to
19721 correctly.
19722
19723 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19724 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19725 Pay attention to raw-8-bit chars.
19726
197272008-02-01 Kenichi Handa <handa@m17n.org>
19728
19729 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19730 It is not bytecompiled now.
19731
19732 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19733 (charset_jisx0208): New variables.
19734 (Fdefine_charset_internal): Setup them if appropriate.
19735 (init_charset_once): Initialize them to -1.
19736
19737 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19738 (charset_jisx0208): Extern them.
19739
19740 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19741 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19742 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19743 (setup_iso_safe_charsets): Fix arguments to Fassq.
19744 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19745 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19746 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19747 (encode_coding_iso_2022): Change the 1st arg to
19748 ENCODE_ISO_CHARACTER to a variable.
19749
197502008-02-01 Kenichi Handa <handa@m17n.org>
19751
19752 * charset.h (enum define_charset_arg_index): New enums
19753 charset_arg_min_code and charset_arg_max_code.
19754 (struct charset): New member char_index_offset.
19755
19756 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19757 Take charset->char_index_offset into account.
19758 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19759 args[charset_arg_max_code]. Setup charset.char_index_offset.
19760 (syms_of_charset): Fix args to Fdefine_charset_internal.
19761
197622008-02-01 Dave Love <fx@gnu.org>
19763
19764 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19765
197662008-02-01 Dave Love <fx@gnu.org>
19767
19768 * coding.c: Doc fixes.
19769 (Fcoding_system_aliases): Fix return value.
19770 (Qmac): Remove (duplicated) definition.
19771
197722008-02-01 Dave Love <fx@gnu.org>
19773
362654a6
JB
19774 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19775 New functions.
aac0c6e3
MR
19776
19777 * character.c (Fstring): Doc fix.
19778
19779 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19780
362654a6 19781 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19782 (font-encoding-alist): Doc fix.
19783
197842008-02-01 Dave Love <fx@gnu.org>
19785
19786 * term.c (costs_set): Declare static, non-initialized for pcc.
19787 (encode_terminal_code): Remove unused var.
19788
19789 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19790 for K&R.
19791
19792 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19793
19794 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19795 (suffixes): Move out of make_subsidiaries for K&R.
19796
19797 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19798
19799 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19800
198012008-02-01 Dave Love <fx@gnu.org>
19802
19803 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19804
19805 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19806
198072008-02-01 Yong Lu <lyongu@asia-infonet.com>
19808
19809 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19810
19811 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19812
198132008-02-01 Kenichi Handa <handa@m17n.org>
19814
19815 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19816 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19817
198182008-02-01 Kenichi Handa <handa@m17n.org>
19819
19820 * coding.c (decode_coding_charset): Adjust for the change of
19821 Fdefine_coding_system_internal.
19822 (Fdefine_coding_system_internal): For a coding system of
19823 `charset' type, store a list of charset IDs in
19824 `charset_attr_charset_valids' element of coding attributes.
19825
198262008-02-01 Kenichi Handa <handa@m17n.org>
19827
19828 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19829 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19830 caller. Handle 2-byte and 3-byte charsets correctly.
19831 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19832 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19833 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19834 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19835 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19836 sequence.
19837 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19838 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19839 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19840 and alt&rule composition.
19841 (decode_coding_iso_2022): Handle composition correctly.
19842 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19843
19844 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19845 re-defining a charset. If the charset has :emacs-mule-id, setup
19846 emacs_mule_bytes.
19847 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19848
198492008-02-01 Kenichi Handa <handa@m17n.org>
19850
19851 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19852 (encode_coding_big5, encode_coding_charset): If coding requires safe
19853 encoding, produce a character specified by
19854 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19855
198562008-02-01 Dave Love <fx@gnu.org>
19857
19858 * xterm.c (XSetIMValues): Declare.
19859
19860 * process.c: Conditionally include sys/wait.h, pty.h.
19861
19862 * print.c (print_object): Fix print format for 64-bit systems.
19863
19864 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19865
19866 * buffer.c (emacs_strerror): Declare.
19867
19868 * fontset.c (Fclear_face_cache): Declare.
19869 (accumulate_font_info): Comment-out (unused).
19870 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19871 variables.
19872
19873 * character.h (string_escape_byte8): Declare.
19874
19875 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19876 unused vars.
19877 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19878 (Fmap_charset_chars): Doc fix.
19879
19880 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19881 (Fset_coding_system_priority, Fset_coding_system_priority)
19882 (Fdefine_coding_system_internal): Doc fix.
19883
198842008-02-01 Dave Love <fx@gnu.org>
19885
19886 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19887
198882008-02-01 Kenichi Handa <handa@m17n.org>
19889
19890 * character.c (string_escape_byte8): Make multibyte string with
19891 correct size.
19892
19893 * charset.c (Fmake_char): Delete unnecessary code.
19894
198952008-02-01 Kenichi Handa <handa@m17n.org>
19896
19897 * xfns.c (x_encode_text): Allocate coding.destination here, and
19898 call encode_coding_object with dst_object Qnil.
19899
19900 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19901 multibyte form correctly.
19902
19903 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19904 against Vfont_encoding_alist.
19905
19906 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19907 handling of charset list.
19908 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19909 (decode_coding_object): Move point to coding->dst_pos before
19910 calling post-read-conversion function.
19911 (encode_coding_object): Give correct arguments to
19912 pre-write-conversion. Ignore the return value of
19913 pre-write-conversion function. Pay attention to the case that
19914 pre-write-conversion changes the current buffer. If dst_object is
19915 Qt, even if coding->src_bytes is zero, allocate at least one byte
19916 to coding->destination.
19917
19918 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19919
19920 * charset.c (Fmake_char): Make it more backward compatible.
19921 (Fmap_charset_chars): Fix docstring.
19922
199232008-02-01 Dave Love <fx@gnu.org>
19924
19925 * coding.c: Doc fixes.
19926 (Fdefine_coding_system_alias): Use names, not symbols, in
19927 coding-system-alist.
19928
199292008-02-01 Kenichi Handa <handa@m17n.org>
19930
19931 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19932 of calling free_realized_face.
19933
199342008-02-01 Yong Lu <lyongu@asia-infonet.com>
19935
19936 * charset.c (read_hex): Don't treat SPC as a comment starter.
19937 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19938 (Fdecode_char): Fix typo.
19939
199402008-02-01 Kenichi Handa <handa@m17n.org>
19941
19942 * charset.h (struct charset): New member `code_space_mask'.
19943
19944 * coding.c (coding_set_source): Delete the local variable beg_byte.
19945 (encode_coding_charset, Fdefine_coding_system_internal):
19946 Delete the local variable charset.
19947 (Fdefine_coding_system_internal): Setup
19948 attrs[coding_attr_charset_valids] correctly.
19949
19950 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19951 member to check if CODE is valid or not.
19952 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19953 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19954 is within the range of charset->min_code and carset->max_code.
19955
199562008-02-01 Dave Love <fx@gnu.org>
19957
19958 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19959
19960 * dispextern.h (generate_ascii_font): Fix return type.
19961
19962 * xfaces.c (generate_ascii_font): Fix arg declaration.
19963
19964 * coding.c (coding_inherit_eol_type)
19965 (Fset_terminal_coding_system_internal)
19966 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19967
199682008-02-01 Kenichi Handa <handa@m17n.org>
19969
19970 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19971 multiple charsets correctly.
19972
199732008-02-01 Kenichi Handa <handa@m17n.org>
19974
19975 * search.c (boyer_moore): Fix handling of multibyte character
19976 translation.
19977
19978 * xdisp.c (display_mode_element): When the variable `elt' is
19979 changed, update `this' and `lisp_string'.
19980
199812008-02-01 Kenichi Handa <handa@m17n.org>
19982
19983 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19984
19985 * callproc.c (Fcall_process): Be sure to give the current buffer
19986 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19987
19988 * charset.c (struct charset_map_entries): New struct.
19989 (load_charset_map): Rename from parse_charset_map. New args
19990 entries and n_entries. Change caller.
19991 (load_charset_map_from_file): Rename from load_charset_map.
19992 Change caller. New arg control_flag. Call load_charset_map at
19993 the tail.
19994 (load_charset_map_from_vector): New function.
19995 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19996 (encode_char): If the charset is compact, change a character index
19997 to a code point.
19998
19999 * coding.c (coding_alloc_by_making_gap): Check the case that the
20000 source and destination are the same correctly.
20001 (decode_coding_raw_text): Set coding->consumed_char and
20002 coding->consumed to 0.
20003 (produce_chars): If coding->chars_at_source is nonzero, update
20004 coding->consumed_char and coding->consumed before calling
20005 alloc_destination.
20006 (Fdefine_coding_system_alias): Register ALIAS in
20007 Vcoding_system_alist.
20008 (syms_of_coding): Define `no-conversion' coding system at the tail.
20009
20010 * fileio.c (Finsert_file_contents): Set coding_system instead of
20011 val. If the current buffer is multibyte, always call
20012 decode_coding_gap.
20013
20014 * xfaces.c (try_font_list): Give higher priority to fontset's
20015 family than face's family.
20016
200172008-02-01 Kenichi Handa <handa@m17n.org>
20018
20019 * callproc.c (Fcall_process): Be sure to give the current buffer
20020 to decode_coding_c_string.
20021
20022 * xfaces.c (try_font_list): Give a family specified in a fontset
20023 higher priority than a family specified in a face.
20024
200252008-02-01 Kenichi Handa <handa@m17n.org>
20026
20027 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20028 Fix arguments to insert_from_buffer.
20029
20030 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20031
200322008-02-01 Kenichi Handa <handa@m17n.org>
20033
20034 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20035 (decode_coding_gap): Set coding->dst_multibyte correctly.
20036
200372008-02-01 Kenichi Handa <handa@m17n.org>
20038
20039 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20040 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20041 (encode_coding_utf_16): Substitute coding->default_char for
20042 non-Unicode characters.
20043 (decode_coding): Don't call record_insert here.
20044 (setup_coding_system): Initialize `surrogate' of
20045 coding->spec.utf_16 to 0.
20046 (EMIT_ONE_BYTE): Fix for multibyte case.
20047
20048 * insdel.c (insert_from_gap): Call record_insert.
20049
200502008-02-01 Kenichi Handa <handa@m17n.org>
20051
20052 * casefiddle.c (casify_region): Fix multibyte case.
20053
20054 * character.c (c_string_width): Add return type `int'.
20055 (char_string_with_unification): Delete arg ADVANCED.
20056
20057 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20058 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20059 (CHAR_STRING_ADVANCE): Make it do-while statement.
20060
20061 * chartab.c (sub_char_table_set_range): Optimize for the case
20062 DEPTH == 3. Add workaround code for a GCC optimization bug.
20063
20064 * charset.c (parse_charset_map): Remove an unused variable.
20065
20066 * coding.c: Delete unused variables.
20067
20068 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20069 earlier. If inserted is zero and the coding system doesn't
20070 require flushing, don't call decode_coding_gap.
20071
20072 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20073
200742008-02-01 Kenichi Handa <handa@m17n.org>
20075
20076 The following changes are for using Unicode as an internal
20077 character model, and use UTF-8 format for buffer/string
20078 representation.
20079
20080 * .gdbinit (xchartable): Adjust for the change of char table structure.
20081 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20082
20083 * Makefile.in (obj): Add character.o and chartab.o.
20084 (lisp, shortlisp): Remove utf-8.elc.
20085 (*.o): For many files, change dependency on charset.h to
20086 character.h, and add dependency on character.h.
20087 (character.o, chartab.o): New targets.
20088
20089 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20090 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20091 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20092 of "charset.h".
20093
20094 * dired.c, filelock.c: Include "character.h".
20095
20096 * alloc.c: Include "character.h" instead of "charset.h".
20097 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20098 (syms_of_alloc): Remove defsubr for Smake_char_table.
20099
20100 * buffer.c: Include "character.h" instead of "charset.h", don't
20101 include "coding.h".
20102 (Fset_buffer_multibyte): Adjust for UTF-8.
20103
20104 * buffer.h: EXFUN Fbuffer_live_p.
20105
20106 * callproc.c: Include "character.h" instead of "charset.h".
20107 (Fcall_process): Big change for the new code-conversion APIs.
20108
20109 * casetab.c: Include "character.h" instead of "charset.h".
20110 (set_canon, set_identity, shuffle): Adjust for the new
20111 map_char_table spec.
20112 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20113 accessing the char table structure.
20114
20115 * chartab.c: New file that implements char table.
20116
20117 * category.c: Include "character.h".
20118 (copy_category_entry): New function.
20119 (copy_category_table): Call map_char_table and copy_category_entry.
20120 (Fmake_category_table): Initialize all top-level slots.
20121 (char_category_set): New function.
20122 (modify_lower_category_set): Delete.
20123 (Fmodify_category_entry): Call char_table_ref_and_range.
20124
20125 * category.h (CATEGORY_SET): Just call char_category_set.
20126
20127 * ccl.c: Include "character.h".
20128 (Qccl, Qcclp): New variables.
20129 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20130 it's less than 256.
20131 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20132 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20133 and DST type.
20134 (ccl_driver): Change types of argument, adjust code accordingly.
20135 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20136 ccl_driver.
20137 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20138
20139 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20140 New members src_multibyte, dst_multibyte, consumed, and produced.
20141 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20142 (CODING_SPEC_CCL_PROGRAM): New macro.
20143 (ccl_driver): Update prototype.
20144 (Qccl, Qcclp, Fccl_program_p): Extern them.
20145 (CHECK_CCL_PROGRAM): New macro.
20146
20147 * character.c, character.h, chartab.c: New files.
20148
20149 * charset.c: Mostly re-written. Move character and multibyte sequence
20150 handling codes to character.c.
20151
20152 * charset.h: Mostly re-written. Move character and multibyte sequence
20153 handling codes to character.h.
20154
20155 * coding.c, coding.h: Mostly re-written.
20156
20157 * composite.c: Include "character.h" instead of "charset.h".
20158 (CHAR_WIDTH): Move to character.h.
20159 (HASH_KEY, HASH_VALUE): Delete.
20160
20161 * composite.h (enum composition_method): Change order of enumeration
20162 symbols.
20163
20164 * data.c: Include "character.h" instead of "charset.h".
20165 (Faref): Call CHAR_TABLE_REF for a char table.
20166 (Faset): Call CHAR_TABLE_SET for a char table.
20167
20168 * dispextern.h (free_realized_face, check_face_attribytes)
20169 (generate_ascii_font): Extern them.
20170 (free_realized_multibyte_face): Delete extern.
20171
20172 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20173 table structure.
20174
20175 * editfns.c: Include "character.h" instead of "charset.h".
20176 (Fchar_to_string): Always call CHAR_STRING.
20177
20178 * emacs.c (main): Call init_charset_once, init_charset,
20179 syms_of_chartab, and syms_of_character.
20180
20181 * fileio.c: Include "character.h" instead of "charset.h".
20182 (Finsert_file_contents): Big change for the new code-conversion API.
20183 (choose_write_coding_system, Fwrite_region): Likewise.
20184 (build_annotations_2): Delete.
20185 (e_write): Big change for the new code-conversion API.
20186
20187 * fns.c: Include "character.h" instead of "charset.h".
20188 (copy_sub_char_table): Move to chartab.c.
20189 (Fcopy_sequence): Call copy_char_table for a char table.
20190 (concat): Delete codes calling count_multibyte.
20191 (string_char_to_byte, string_byte_to_char): Adjust for the new
20192 multibyte form.
20193 (internal_equal): Adjust for the change of char table structure.
20194 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20195 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20196 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20197 (char_table_translate, optimize_sub_char_table)
20198 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20199 chartab.c.
20200 (char_table_ref_and_index): Delete.
20201 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20202 (Fmd5): Call preferred_coding_system instead of accessing
20203 Vcoding_category_list. Adjust for the new code-conversion API.
20204 (syms_of_fns): Move defsubr for char table related functions to
20205 chartab.c.
20206
20207 * fontset.c: Mostly re-written.
20208
20209 * fontset.h (struct font_info): Change type of the member encoding_type.
20210 (enum FONT_SPEC_INDEX): New enum.
20211 (fontset_font_pattern, fs_load_font): Update prototype.
20212 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20213
20214 * indent.c: Include "character.h" instead of "charset.h".
20215 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20216
20217 * insdel.c: Include "character.h" instead of "charset.h".
20218 (copy_text): Don't refer to Vnonascii_translation_table.
20219 (insert_from_gap): New function.
20220
20221 * keyboard.c: Include "character.h" instead of "charset.h".
20222 (command_loop_1): Never call direct_output_forward_char before
20223 a non-ASCII character.
20224 (read_char): If Vkeyboard_translate_table is a char table, always
20225 translate a character.
20226
20227 * keymap.c: Include "character.h".
20228 (store_in_keymap): Handle the case that IDX is a cons.
20229 (Fdefine_key): Handle the case that KEY is a cons and the car part
20230 is also a cons (range).
20231 (push_key_description): Adjust for the new character code.
20232 (describe_vector): Call describe_char_table for a char table.
20233 (describe_char_table): New function.
20234
20235 * keymap.h (describe_char_table): Extern it.
20236
20237 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20238 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20239 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20240 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20241 Delete.
20242 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20243 structure.
20244 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20245 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20246 (CHARTAB_SIZE_BITS_3): New macros.
20247 (chartab_size): Extern it.
20248 (struct Lisp_Char_Table): Re-design.
20249 (struct Lisp_Sub_Char_Table): New structure.
20250 (HASH_KEY, HASH_VALUE): Move from fns.c.
20251 (CHARACTERBITS): Define as 22.
20252 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20253 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20254 (GC_SUB_CHAR_TABLE_P): New macro.
20255 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20256 (code_convert_string_norecord): Deleted extern.
20257 (init_character_once, syms_of_character, init_charset)
20258 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20259
20260 * lread.c: Include "character.h".
20261 (read_multibyte): New arg NBYTES.
20262 (read_escape): Change the meaning of returned *BYTEREP.
20263 (to_multibyte): Delete.
20264 (read1): Adjust the handling of char table and string.
20265
20266 * print.c: Include "character.h" instead of "charset.h".
20267 (print_string): Convert 8-bit raw bytes to octal form by
20268 string_escape_byte8.
20269 (print_object): Adjust for the new multibyte form. Print 8-bit
20270 raw bytes always in octal form. Handle sub char table correctly.
20271
20272 * process.c: Include "character.h" instead of "charset.h".
20273 (read_process_output, send_process): Adjust for the new
20274 code-conversion API.
20275
20276 * puresize.h (BASE_PURESIZE): Increase.
20277
20278 * regex.c: Include "character.h" instead of "charset.h".
20279 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20280 (regex_compile): Accept a range whose starting and ending
20281 character have different leading bytes.
20282 (analyse_first): Adjust for the above change.
20283
20284 * search.c: Include "character.h" instead of "charset.h".
20285 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20286 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20287
20288 * syntax.c: Include "character.h" instead of "charset.h".
20289 (syntax_parent_lookup): Delete.
20290 (Fmodify_syntax_entry): Accept a cons as CHAR.
20291 (skip_chars): Adjust for the new multibyte form.
20292 (init_syntax_once): Call char_table_set_range instead of directly
20293 accessing the structure of a char table.
20294
20295 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20296 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20297 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20298 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20299
20300 * term.c: Include "buffer.h" and "character.h".
20301 (encode_terminal_code, write_glyphs): Adjust for the new
20302 code-conversion API.
20303 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20304
20305 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20306
20307 * xdisp.c: Include "character.h".
20308 (get_next_display_element): Adjust for the new multibyte form.
20309 (disp_char_vector): Adjust for the new char table structure.
20310 (decode_mode_spec_coding): Adjust for the new structure of
20311 coding system.
20312 (decode_mode_spec): Adjust for the new code-conversion API.
20313
20314 * xfaces.c: Include "character.h" instead of "charset.h".
20315 (load_face_font): Adjust for the change of choose_face_font and
20316 FS_LOAD_FONT.
20317 (generate_ascii_font): New function.
20318 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20319 (set_font_frame_param): Adjust for the change of choose_face_font.
20320 (free_realized_face): Make it public.
20321 (free_realized_faces_for_fontset): Rename from
20322 free_realized_multibyte_face. Free also faces realized for ASCII.
20323 (choose_face_font): Change arguments. Adjust for the change of
20324 fontset_font_pattern and FS_LOAD_FONT.
20325
20326 * xfns.c: Include "character.h".
20327 (x_encode_text): Adjust for the new code-conversion API.
20328
20329 * xselect.c: Don't include "charset.h".
20330 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20331
20332 * xterm.c: Include "character.h".
20333 (x_encode_char): New argument CHARSET. Change caller.
20334 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20335 Call ENCODE_CHAR instead of SPLIT_CHAR.
20336 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20337 CHAR_WIDTH instead of CHARSET_WIDTH.
20338 (XTread_socket): Adjust for the new code-conversion API.
20339 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20340 (x_load_font): Adjust for the change of struct font.
20341
203422008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20343
20344 * xfaces.c (face_at_buffer_position): Remove unused vars.
20345
203462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20347
20348 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20349 Fix overflow checking.
20350
203512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20352
20353 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20354 Cancel previous change.
20355
203562008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20357
20358 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20359 ccl->eight_bit_control. Fix check for buffer overflow.
20360 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20361 (ccl_driver): Initialize extra_bytes to 0.
20362
203632008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20364
20365 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20366 return it ORed with ctrl_modifier.
20367
203682008-01-29 Miles Bader <miles@gnu.org>
20369
20370 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20371
203722008-01-28 Jason Rumney <jasonr@gnu.org>
20373
20374 * w32.c (stat): Don't double check for networked drive.
20375
203762008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20377
20378 * window.c (run_window_configuration_change_hook): New function.
20379 Code extracted from set_window_buffer. Set the selected frame.
20380 (set_window_buffer): Use it.
20381 * window.h (run_window_configuration_change_hook): Declare.
20382 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20383
20384 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20385
203862008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20387
20388 * Makefile.in: Remove references to unused macros.
20389
203902008-01-26 Eli Zaretskii <eliz@gnu.org>
20391
20392 * w32.c (g_b_init_get_sid_sub_authority)
20393 (g_b_init_get_sid_sub_authority_count): New static variables.
20394 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20395 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20396 (init_user_info): Use them to retrieve uid and gid.
20397 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20398 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20399 st_uid and st_gid of the file.
20400
204012008-01-26 Jason Rumney <jasonr@gnu.org>
20402
20403 * w32.c (logon_network_drive): New function.
20404 (stat): Use it.
20405
204062008-01-26 Chong Yidong <cyd@stupidchicken.com>
20407
20408 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20409 invisible text covered with an ellipsis.
20410
204112008-01-25 Richard Stallman <rms@gnu.org>
20412
20413 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20414 jump back to beginning. Move some other initializations after that.
20415 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20416 New variables.
20417 (syms_of_xdisp): Init them.
20418
20419 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20420
20421 * buffer.c (reset_buffer_local_variables):
20422 Implement `permanent-local-hook'.
20423 (Qpermanent_local_hook): New variable.
20424 (syms_of_buffer): Init and staticpro it.
20425
204262008-01-25 Michael Albinus <michael.albinus@gmx.de>
20427
20428 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20429
204302008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20431
20432 * fns.c (Fclrhash): Return TABLE.
20433
204342008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20435
20436 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20437 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20438 is set even without positional changes.
20439 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20440
20441 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20442
204432008-01-23 Jason Rumney <jasonr@gnu.org>
20444
20445 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20446
20447 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20448 the unicode range available in MULE by locale-coding-system.
20449 Improve dbcs lead byte detection. Set event timestamp and modifiers
20450 earlier.
20451
204522008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20453
20454 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20455 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20456 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20457 when used on child processes.
20458
204592008-01-21 Michael Albinus <michael.albinus@gmx.de>
20460
20461 * dbusbind.c (Fdbus_method_return_internal): Rename from
20462 Fdbus_method_return.
20463 (Fdbus_unregister_object): Move to dbus.el.
20464 (Fdbus_call_method, Fdbus_method_return_internal)
20465 (Fdbus_send_signal): Improve debug messages.
20466
204672008-01-20 Martin Rudalics <rudalics@gmx.at>
20468
20469 * undo.c (undo_inhibit_record_point): New variable.
20470 (syms_of_undo): Initialize it.
20471 (record_point): Don't record point when undo_inhibit_record_point
20472 is set.
20473
204742008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20475
20476 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20477
20478 * xdisp.c (Qauto_hscroll_mode): New var.
20479 (syms_of_xdisp): Initialize it.
20480 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20481 window's buffer.
20482 (hscroll_windows): Don't check automatic_hscrolling_p here.
20483
20484 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20485 vscroll if we're setting window-buffer to the value it already has.
20486
204872008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20488
20489 * m/intel386.h: Remove references to XENIX.
20490
204912008-01-17 Andreas Schwab <schwab@suse.de>
20492
20493 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20494 instead of HAVE_X86_64_LIB64_DIR.
20495 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20496
204972008-01-17 Glenn Morris <rgm@gnu.org>
20498
20499 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20500 to HAVE_X86_64_LIB64_DIR.
20501
205022008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20503
20504 * s/irix3-3.h:
20505 * s/irix4-0.h:
20506 * s/386-ix.h:
20507 * s/domain.h:
20508 * s/hpux9-x11r4.h:
20509 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20510
20511 * sysdep.c: Remove code containing references to symbols defined
20512 by unsupported systems.
20513
205142008-01-16 Glenn Morris <rgm@gnu.org>
20515
20516 * coding.c (select-safe-coding-system-function): Doc fix.
20517
205182008-01-15 Glenn Morris <rgm@gnu.org>
20519
20520 * config.in: Revert 2008-01-13 change: this is a generated file.
20521
205222008-01-13 Tom Tromey <tromey@redhat.com>
20523
20524 * lisp.h: Fix typo.
20525
205262008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20527
20528 * m/sequent-ptx.h:
20529 * m/sequent.h:
20530 * s/ptx.h:
20531 * s/ptx4-2.h:
20532 * s/ptx4.h: Remove files for systems no longer supported.
20533
20534 * callproc.c (Fcall_process): Fix previous change.
20535
205362008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20537
20538 * unexsunos4.c: Remove file, system not supported anymore.
20539
20540 * m/mips.h:
20541 * m/intel386.h:
20542 * callproc.c:
20543 * config.in:
20544 * ecrt0.c:
20545 * emacs.c:
20546 * fileio.c:
20547 * frame.c:
20548 * getpagesize.h:
20549 * keyboard.c:
20550 * lread.c:
20551 * process.c:
20552 * puresize.h:
20553 * sysdep.c:
20554 * systty.h:
20555 * syswait.h:
20556 * unexec.c:
20557 * xdisp.c:
20558 * alloc.c: Remove code containing references to symbols defined by
20559 unsupported systems.
20560
205612008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20562
20563 * coding.c (detect_coding_mask): Fix previous change.
20564
205652008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20566
20567 * coding.c (detect_coding_iso2022): New arg
20568 latin_extra_code_state. Allow Latin extra codes only
20569 when *latin_extra_code_state is nonzero.
20570 (detect_coding_mask): If there is a NULL byte, detect the encoding
20571 as UTF-16 or binary. If Latin extra codes exist, detect the
20572 encoding as ISO-2022 only when there's no other proper encoding is
20573 found.
20574
205752008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20576
20577 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20578 #ifdef MAC_OS.
20579
205802008-01-08 Richard Stallman <rms@gnu.org>
20581
20582 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20583
205842008-01-06 Nick Roberts <nickrob@snap.net.nz>
20585
20586 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20587 menu bar in parentheses.
20588
205892008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20590
20591 * m/7300.h:
20592 * m/acorn.h:
20593 * m/alliant-2800.h:
20594 * m/alliant.h:
20595 * m/alliant1.h:
20596 * m/alliant4.h:
20597 * m/altos.h:
20598 * m/amdahl.h:
20599 * m/apollo.h:
20600 * m/att3b.h:
20601 * m/aviion-intel.h:
20602 * m/aviion.h:
20603 * m/celerity.h:
20604 * m/clipper.h:
20605 * m/cnvrgnt.h:
20606 * m/convex.h:
20607 * m/cydra5.h:
20608 * m/delta88k.h:
20609 * m/dpx2.h:
20610 * m/dual.h:
20611 * m/elxsi.h:
20612 * m/f301.h:
20613 * m/gould-np1.h:
20614 * m/gould.h:
20615 * m/i860.h:
20616 * m/ibmps2-aix.h:
20617 * m/ibmrt-aix.h:
20618 * m/ibmrt.h:
20619 * m/irist.h:
20620 * m/is386.h:
20621 * m/isi-ov.h:
20622 * m/mega68.h:
20623 * m/mg1.h:
20624 * m/news-r6.h:
20625 * m/news-risc.h:
20626 * m/news.h:
20627 * m/nh3000.h:
20628 * m/nh4000.h:
20629 * m/ns16000.h:
20630 * m/ns32000.h:
20631 * m/nu.h:
20632 * m/orion.h:
20633 * m/orion105.h:
20634 * m/paragon.h:
20635 * m/pfa50.h:
20636 * m/plexus.h:
20637 * m/pyramid.h:
20638 * m/pyrmips.h:
20639 * m/sh3el.h:
20640 * m/sps7.h:
20641 * m/sr2k.h:
20642 * m/stride.h:
20643 * m/sun1.h:
20644 * m/sun2.h:
20645 * m/sun3-68881.h:
20646 * m/sun3-fpa.h:
20647 * m/sun3-soft.h:
20648 * m/sun3.h:
20649 * m/sun386.h:
20650 * m/symmetry.h:
20651 * m/tad68k.h:
20652 * m/tahoe.h:
20653 * m/targon31.h:
20654 * m/tek4300.h:
20655 * m/tekxd88.h:
20656 * m/tower32.h:
20657 * m/tower32v3.h:
20658 * m/ustation.h:
20659 * m/wicat.h:
20660 * m/xps100.h:
20661 * s/cxux.h:
20662 * s/cxux7.h:
20663 * s/dgux.h:
20664 * s/dgux4.h:
20665 * s/dgux5-4-3.h:
20666 * s/dgux5-4r2.h:
20667 * s/esix.h:
20668 * s/esix5r4.h:
20669 * s/hiuxmpp.h:
20670 * s/hiuxwe2.h:
20671 * s/iris3-5.h:
20672 * s/iris3-6.h:
20673 * s/isc2-2.h:
20674 * s/isc3-0.h:
20675 * s/isc4-0.h:
20676 * s/isc4-1.h:
20677 * s/newsos5.h:
20678 * s/newsos6.h:
20679 * s/osf1.h:
20680 * s/osf5-0.h:
20681 * s/riscix1-1.h:
20682 * s/riscix12.h:
20683 * s/sco4.h:
20684 * s/sco5.h:
20685 * s/sunos4-0.h:
20686 * s/sunos4-1.h:
20687 * s/sunos413.h:
20688 * s/sunos4shr.h:
20689 * s/umax.h:
20690 * s/unipl5-2.h:
20691 * s/xenix.h:
20692 * cxux-crt0.s:
20693 * unexapollo.c:
20694 * unexconvex.c:
20695 * unexenix.c:
20696 * unexsni.c: Remove files for systems no longer supported.
20697
20698 * m/intel386.h: Remove references to unsupported systems.
20699
20700 * w32.c (get_emacs_configuration): Remove reference to i860.
20701
20702 * sysdep.c: Remove dead code.
20703
207042008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20705
20706 * s/rtu.h:
20707 * m/masscomp.h: Remove files. Platform is obsolete.
20708
207092008-01-04 Michael Albinus <michael.albinus@gmx.de>
20710
20711 * dbusbind.c (Fdbus_method_return): New function.
20712 (xd_read_message): Add the serial number to the event.
20713 (Fdbus_register_method): Activate the function.
20714
207152008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20716
20717 * keyboard.c (read_key_sequence): Fix typo.
20718
207192008-01-03 Michael Albinus <michael.albinus@gmx.de>
20720
20721 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20722 (xd_signature, xd_append_arg): Handle element type detection for
20723 empty arrays.
20724 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20725 SDATA () calls; this must be solved more general.
20726 (Fdbus_register_signal): Use SBYTES instead of strlen.
20727
207282008-01-03 Magnus Henoch <magnus@zemdatav>
20729
20730 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20731 unsigned int for byte values (necessary for big-endian platform).
20732 (Fdbus_call_method): Handle the case of no returned arguments.
20733
207342007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20735
20736 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20737
207382007-12-31 Magnus Henoch <mange@freemail.hu>
20739
20740 * dbusbind.c (xd_signature): Signature of variant is just "v".
20741
207422007-12-30 Michael Albinus <michael.albinus@gmx.de>
20743
20744 * dbusbind.c: Fix several errors and compiler warnings.
20745 Reported by Tom Tromey <tromey@redhat.com>.
20746 (XD_ERROR, XD_DEBUG_MESSAGE)
20747 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20748 (xd_append_arg): Part for basic D-Bus types rewritten.
20749 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20750 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20751 appropriate.
20752 (xd_read_message): Return Qnil. Don't signal an error; it is not
20753 useful during event reading.
20754 (Fdbus_register_signal): Signal an error if the check for
20755 FUNCTIONP fails.
20756 (Fdbus_register_method): New function. The implementation is not
20757 complete, the call of the function signals an error therefore.
20758 (Fdbus_unregister_object): New function, renamed from
20759 Fdbus_unregister_signal. The initial check signals an error, if
20760 the object is not well formed.
20761
207622007-12-30 Richard Stallman <rms@gnu.org>
20763
20764 * textprop.c (get_char_property_and_overlay):
20765 Signal error if POSITION is out of range in a buffer.
20766
207672007-12-29 Martin Rudalics <rudalics@gmx.at>
20768
20769 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20770 because the original parameters are in pure storage now.
20771
207722007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20773
20774 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20775
207762007-12-22 Eli Zaretskii <eliz@gnu.org>
20777
20778 * callint.c (syms_of_callint) <command-history>: Add reference to
20779 history-length in the doc string.
20780
207812007-12-17 Jason Rumney <jasonr@gnu.org>
20782
20783 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20784 before passing as wParam.
20785
207862007-12-22 Michael Albinus <michael.albinus@gmx.de>
20787
20788 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20789 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20790 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20791 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20792 as number.
20793 (Fdbus_call_method): Fix docstring.
20794
207952007-12-21 Michael Albinus <michael.albinus@gmx.de>
20796
20797 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20798 New macros.
20799 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20800 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20801 Simplify.
20802 (xd_signature): New function.
20803 (xd_append_arg): Compute also signatures. Major rewrite.
20804 (xd_retrieve_arg): Make debug messages friendly.
20805 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20806 Check for signatures of arguments.
20807
208082007-12-19 Michael Albinus <michael.albinus@gmx.de>
20809
20810 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20811 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20812 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20813 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20814 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20815 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20816 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20817 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20818 (xd_retrieve_value): Remove. Functionality included in ...
20819 (xd_append_arg): New function.
20820 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20821
208222007-12-16 Michael Albinus <michael.albinus@gmx.de>
20823
20824 * dbusbind.c (top): Include <stdio.h>.
20825 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20826 dbus_message_new_method_call and dbus_message_new_signal.
20827 (Fdbus_register_signal): Rename unique_name to uname.
20828 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20829 non-existing unique name. Fix typos in matching rule. Return an
20830 object which is useful in Fdbus_unregister_signal.
20831 (Fdbus_unregister_signal): Reimplementation, in order to remove
20832 only the corresponding entry.
20833 (Vdbus_registered_functions_table): Change the order of entries.
20834 Apply these changes in xd_read_message and Fdbus_register_signal.
20835
208362007-12-16 Andreas Schwab <schwab@suse.de>
20837
20838 * fileio.c (Finsert_file_contents): Fix overflow check to not
20839 depend on undefined integer overflow.
20840
208412007-12-14 Jason Rumney <jasonr@gnu.org>
20842
20843 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20844 for characters above 127.
20845
208462007-12-13 Jason Rumney <jasonr@gnu.org>
20847
20848 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20849 before dereferencing array.
20850 (lookup_vk_code): Remove zero comparison.
20851
208522007-12-14 Michael Albinus <michael.albinus@gmx.de>
20853
20854 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20855 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20856 Use `unsigned int' instead of `uint'.
20857 (xd_read_message, Fdbus_register_signal): Split expressions into
20858 multiple lines before operators "&&" and "||", according to the
20859 GNU Coding Standards.
20860
208612007-12-14 Eli Zaretskii <eliz@gnu.org>
20862
20863 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20864
208652007-12-12 Juri Linkov <juri@jurta.org>
20866
20867 * buffer.c (Frename_buffer): In interactive spec replace
20868 `read-buffer' with `read-string' that uses `buffer-name-history'
20869 as history, and the current buffer's name as default.
20870
208712007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20872
20873 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20874 manipulating the backtrace manually.
20875 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20876 (struct backtrace, backtrace_list): Remove.
20877 (command_loop_1): Remove dead var `no_direct'.
20878
20879 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20880 preserve non-built-in buffer-local variables.
20881 (Fkill_all_local_variables): Don't re-create&re-set permanent
20882 buffer-local variables.
20883
208842007-12-09 Juri Linkov <juri@jurta.org>
20885
20886 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20887 Lisp code that uses `read-buffer' with current buffer as default.
20888
208892007-12-08 Michael Albinus <michael.albinus@gmx.de>
20890
20891 * dbusbind.c (xd_read_message): Generate an event for every
20892 registered handler. There might be several handlers registered
20893 for the same signal.
20894 (Fdbus_register_signal): Don't overwrite a registration for the
20895 same signal. Add a new registration if handlers are different.
20896 (Vdbus_registered_functions_table): Rework doc string.
20897
208982007-12-07 Michael Albinus <michael.albinus@gmx.de>
20899
20900 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20901 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20902 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20903 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20904 Unify argument lists.
20905 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20906 arguments and hash table keys. Use unique name for service.
20907 (Fdbus_unregister_signal): Remove checks.
20908 (Vdbus_registered_functions_table): Fix doc string.
20909
209102007-12-05 Magnus Henoch <mange@freemail.hu>
20911
20912 * process.c (make_process): Initialize pty_flag to 0.
20913
209142007-12-05 Jason Rumney <jasonr@gnu.org>
20915
20916 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20917 specified XBMs.
20918
209192007-12-05 Richard Stallman <rms@gnu.org>
20920
20921 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20922
209232007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20924
20925 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20926 New variable.
20927 (mac_try_close_socket) [MAC_OSX]: New function.
20928 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20929 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20930
20931 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20932 Use mac_try_close_socket.
20933
209342007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20935
20936 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20937 reloc_base.
20938 (copy_dysymtab): Compute relocation base here.
20939 (rebase_reloc_address) [__ppc64__]: New function.
20940 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20941 changed.
20942
209432007-12-05 Jason Rumney <jasonr@gnu.org>
20944
20945 * w32proc.c (sys_spawnve): Quote args with wildcards.
20946
209472007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20948
20949 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20950 __objc_* sections.
20951 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20952
209532007-12-05 Michael Albinus <michael.albinus@gmx.de>
20954
20955 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20956 Move check for Vdbus_registered_functions_table to
20957 xd_read_queued_messages.
20958 (xd_read_queued_messages): Protect xd_read_message calls by
20959 internal_condition_case_1.
20960
209612007-12-04 Michael Albinus <michael.albinus@gmx.de>
20962
20963 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20964 Qdbus_system_bus and Qdbus_session_bus, respectively.
20965 (Vdbus_intern_symbols): Remove.
20966 (Vdbus_registered_functions_table): New hash table.
20967 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20968 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20969 Rewrite in order to manage registered functions by hash table
20970 Vdbus_registered_functions_table.
20971
209722007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20973
20974 * xterm.c: Update URL to Window Manager Specification in comment.
20975
209762007-12-02 Michael Albinus <michael.albinus@gmx.de>
20977
20978 * config.in (HAVE_DBUS): Add.
20979
20980 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20981 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20982 (obj): Add $(DBUS_OBJ).
20983 (LIBES): Add $(DBUS_LIBS).
20984 (dbusbind.o): New target.
20985
20986 * dbusbind.c: New file.
20987
20988 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20989
20990 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20991 (Qdbus_event): New Lisp symbol.
20992 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20993 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20994 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20995
20996 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20997
209982007-12-01 Richard Stallman <rms@gnu.org>
20999
21000 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21001
210022007-11-30 Jason Rumney <jasonr@gnu.org>
21003
21004 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21005 (w32con_reset_terminal_modes): Clear screen buffer.
21006 (w32_face_attributes): Don't use color indexes that are out of range.
21007 Only reverse the default colors.
21008
21009 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21010 WINDOWSNT.
21011
21012 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21013
210142007-11-29 Jason Rumney <jasonr@gnu.org>
21015
21016 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21017 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21018 if the terminal colors are initialized.
21019 (unspecified_fg, unspecified_bg): Remove unused declarations.
21020
210212007-11-29 Andreas Schwab <schwab@suse.de>
21022
21023 * keyboard.c (apply_modifiers): Fix typo.
21024
210252007-11-29 Richard Stallman <rms@gnu.org>
21026
21027 * keymap.c (Fcurrent_local_map): Doc fix.
21028
210292007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21030
21031 * s/gnu-kfreebsd.h: New file.
21032
210332007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21034
21035 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21036 Don't cast redundantly.
21037
21038 * keyboard.c (KEY_TO_CHAR): New macro.
21039 (parse_modifiers, apply_modifiers): Accept integer arguments.
21040 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21041 for chars and symbol keys.
21042 After doing such remapping, apply function-key-map again.
21043
210442007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21045
21046 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21047 compiled anymore.
21048
210492007-11-26 Andreas Schwab <schwab@suse.de>
21050
21051 * process.c (list_processes_1): Fix indentation level of the
21052 command column.
21053
210542007-11-23 Andreas Schwab <schwab@suse.de>
21055
21056 * editfns.c (Fformat): Handle %c specially since it requires the
21057 argument to be of type int.
21058
210592007-11-23 Markus Triska <markus.triska@gmx.at>
21060
21061 * emacs.c (main): Call init_editfns before init_process, since
21062 init_process sets Vprocess_connection_type depending on OS release.
21063
210642007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21065
21066 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21067 (find_symbol_value): Use do_symval_forwarding.
21068
21069 * data.c (set_internal): Set the value in the `cons-cell' (for
21070 Buffer_Local_values) not only for frame-local variables.
21071
210722007-11-22 Andreas Schwab <schwab@suse.de>
21073
21074 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21075 values to sprintf.
21076 * keymap.c (Fsingle_key_description): Likewise.
21077 * print.c (print_object): Likewise.
21078
210792007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21080
21081 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21082 file for image is nil.
21083
210842007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21085
21086 * term.c: Include stdarg.h.
21087 (fatal): Implement using varargs.
21088 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21089
210902007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21091
21092 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21093 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21094 Update call to buffer_slot_type_mismatch.
21095 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21096 (buffer_slot_type_mismatch): Update.
21097 * buffer.c (buffer_local_types): Remove.
21098 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21099 (defvar_per_buffer): Set the type in the buffer_objfwd.
21100
211012007-11-21 Jason Rumney <jasonr@gnu.org>
21102
21103 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21104 CreateFileMapping returns NULL on failure.
21105
211062007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21107
21108 * search.c (Fset_match_data): Remove the `evaporate' feature.
21109 (unwind_set_match_data): Don't use the `evaporate' feature.
21110
211112007-11-21 Jason Rumney <jasonr@gnu.org>
21112
21113 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21114
21115 * w32console.c (w32con_write_glyphs): Remove unused variables.
21116
211172007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21118
21119 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21120
21121 * s/darwin.h (MULTI_KBOARD): Remove.
21122
21123 * macfns.c (x_create_tip_frame, Fx_create_frame)
21124 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21125
211262007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21127
21128 * buffer.c (Fbuffer_local_value): Remove redundant test.
21129 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21130 than in `current-buffer' to match the comment.
21131 Do the swap using swap_in_global_binding.
21132
21133 * data.c (store_symval_forwarding, set_internal):
21134 * eval.c (specbind): Remove dead code.
21135
21136 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21137 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21138 Since we do not want to see internal Lisp_*fwd objects here.
21139
211402007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21141
21142 * sysdep.c (init_system_name): Use getaddrinfo if available.
21143
21144 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21145 (x_scroll_bar_note_movement): start, end, with, height in struct
21146 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21147
211482007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21149
21150 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21151
211522007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21153
21154 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21155 This undoes Richard's change of 14-Oct-2002.
21156
21157 * alloc.c (allocate_other_vector):
21158 * lisp.h (allocate_other_vector): Remove.
21159
21160 * window.c (struct save_window_data): Move non-lisp data to the end
21161 and make it `int' rather than Lisp_Object.
21162 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21163 Done wrap/unwrap integer values.
21164 (Fset_window_configuration, compare_window_configurations):
21165 Update use of fields to their new types.
21166
21167 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21168 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21169 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21170 (SET_SCROLL_BAR_X_WINDOW): Remove.
21171 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21172 Access the new x_window field directly.
21173 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21174 Don't wrap/unwrap integers into Lisp_Objects.
21175 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21176 (x_scroll_bar_report_motion):
21177 Don't wrap/unwrap integers into Lisp_Objects.
21178 (x_term_init): Use SDATA.
21179 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21180 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21181 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21182 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21183 * xfns.c (x_set_background_color):
21184 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21185 Access the new x_window field directly.
21186
21187 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21188 (allocate_pseudovector): Make non-static.
21189
21190 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21191 (allocate_pseudovector): Declare.
21192 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21193
211942007-11-15 Andreas Schwab <schwab@suse.de>
21195
21196 * editfns.c (Fformat): Correctly format EMACS_INT values.
21197 Also take precision into account when formatting an integer.
21198
21199 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21200
212012007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21202
21203 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21204 (syms_of_keyboard): Defsubr it.
21205
21206 * data.c (swap_in_global_binding): Fix longstanding bug where
21207 store_symval_forwarding was not called with the right second argument,
21208 thus causing objfwd-ing from being dropped.
21209
212102007-11-14 Juanma Barranquero <lekktu@gmail.com>
21211
21212 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21213 (Fx_display_pixel_height, Fx_display_planes)
21214 (Fx_display_color_cells, Fx_server_max_request_size)
21215 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21216 (Fx_display_visual_class, Fx_display_save_under):
21217 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21218 (Fx_display_pixel_height, Fx_display_planes)
21219 (Fx_display_color_cells, Fx_server_max_request_size)
21220 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21221 (Fx_display_mm_height, Fx_display_mm_width)
21222 (Fx_display_backing_store, Fx_display_visual_class)
21223 (Fw32_select_font, Fx_display_save_under):
21224 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21225 (Fx_display_pixel_height, Fx_display_planes)
21226 (Fx_display_color_cells, Fx_server_max_request_size)
21227 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21228 (Fx_display_save_under): Fix typos in docstrings.
21229
212302007-11-14 Juanma Barranquero <lekktu@gmail.com>
21231
21232 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21233 corresponding to deleted entries; they are an implementation detail.
21234 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21235 Remove variables.
21236 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21237 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21238 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21239 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21240 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21241 (Fw32_define_rgb_color, Fw32_load_color_file)
21242 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21243 Fix typos in docstrings.
21244 (Fx_server_version): Reflow docstring.
21245 (Fw32_shell_execute): Doc fixes.
21246
212472007-11-13 Juanma Barranquero <lekktu@gmail.com>
21248
21249 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21250 if w32_parse_hot_key returned nil.
21251
212522007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21253
21254 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21255
212562007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21257
aac0c6e3
MR
21258 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21259
21260 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21261
21262 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21263 Remove W32_SCROLL_BAR_CLICK_EVENT.
21264
21265 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21266 Add MULTIMEDIA_KEY_EVENT.
21267
21268 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21269 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21270 (make_lispy_event) [WINDOWSNT]: Use it to translate
21271 MULTIMEDIA_KEY_EVENT.
21272
21273 * w32term.h (WM_APPCOMMAND): Define if not already.
21274 (GET_APPCOMMAND_LPARAM): Likewise.
21275
21276 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21277 WM_APPCOMMAND.
21278
21279 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21280 (syms_of_w32fns): Export and initialize it.
21281 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21282
212832007-11-09 Chong Yidong <cyd@stupidchicken.com>
21284
21285 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21286 twice.
21287
21288 * xdisp.c (handle_face_prop): Fix last change.
21289
212902007-11-09 Richard Stallman <rms@gnu.org>
21291
21292 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21293 not just for after-strings and before-strings.
21294 Call face_for_overlay_string and pass the overlay to it.
21295 (handle_display_prop): Determine whether property came from an overlay.
21296 Pass OVERLAY arg to handle_single_display_spec.
21297 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21298 (load_overlay_strings): Fill in it->string_overlays.
21299 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21300
21301 * xfaces.c (face_for_overlay_string): Function renamed from
21302 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21303
21304 * dispextern.h (struct it): New elt string_overlays.
21305 New elt from_overlay, also in stack.
21306 Rearrange a few elements.
21307 (face_for_overlay_string): Decl renamed from
21308 face_at_buffer_position_no_overlays, and add argument.
21309
213102007-11-09 Richard Stallman <rms@gnu.org>
21311
21312 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21313 to get the base face for an overlay string.
21314
21315 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21316
21317 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21318
21319 * xdisp.c (handle_stop): Move some code out of loop.
21320
213212007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21322
21323 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21324 Fix conversion from Lisp object to ATSUFontID.
21325
213262007-11-09 Jason Rumney <jasonr@gnu.org>
21327
21328 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21329
213302007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21331
21332 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21333 Don't assume regions are aligned to page boundary.
21334 (print_load_command_name): Add LC_UUID if defined.
21335
213362007-11-09 Richard Stallman <rms@gnu.org>
21337
21338 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21339
213402007-11-07 Jason Rumney <jasonr@gnu.org>
21341
21342 * s/windows95.h: Remove.
21343
213442007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21345
21346 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21347 abort with a message on unhandled store_type values.
21348
213492007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21350
21351 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21352 Remove HAVE_X11R5 and HAVE_X11R4.
21353
213542007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21355
21356 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21357
213582007-11-01 Johan Bockgård <bojohan@gnu.org>
21359
21360 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21361 Don't set s->stippled_p here, since it has already been set by
21362 x_set_glyph_string_gc from x_draw_glyph_string.
21363
213642007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21365
21366 * sunfns.c: Remove file.
21367
21368 * m/sun386.h:
21369 * m/sun2.h:
21370 * m/sparc.h: Remove Sun windows code.
21371
213722007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21373
21374 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21375 (init_keyboard): Set current_kboard's window-system to nil.
21376 (tty_read_avail_input): Typo.
21377 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21378
213792007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21380
21381 * s/usg5-4.h:
21382 * s/usg5-3.h:
21383 * s/ptx.h:
21384 * m/is386.h:
21385 * m/ibmps2-aix.h:
21386 * Makefile.in: Remove all mentions of X10.
21387
21388 * dispnew.c (syms_of_display): Don't mention version 10.
21389
213902007-10-28 Juanma Barranquero <lekktu@gmail.com>
21391
21392 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21393 ($(BLD)/abbrev.$(O)): Remove.
21394
213952007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21396
21397 Rewrite abbrev.c in Elisp.
21398 * image.c (Qcount): Don't declare as extern.
21399 (syms_of_image): Initialize and staticpro `Qcount'.
21400 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21401 * emacs.c (main): Don't call syms_of_abbrev.
21402 * Makefile.in (obj): Remove abbrev.o.
21403 (abbrev.o): Remove.
21404 * abbrev.c: Remove.
21405
214062007-10-26 Martin Rudalics <rudalics@gmx.at>
21407
21408 * window.c (window_min_size_2): Don't count header-line.
21409
214102007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21411
21412 * frame.h (struct frame): Move all bit fields after the first bit
21413 field to take advantage of the available space. Group all the
21414 chars together to reduce wasted space due to padding.
21415
214162007-10-26 Juanma Barranquero <lekktu@gmail.com>
21417
21418 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21419
21420 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21421 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21422 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21423 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21424 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21425 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21426 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21427 (last_marked, mark_object_loop_halt): Make static.
21428
21429 * frame.c (syms_of_frame) <delete-frame-functions>:
21430 Fix typo in docstring.
21431
214322007-10-25 Juanma Barranquero <lekktu@gmail.com>
21433
21434 * w32.c (init_environment): Fix tiny memory leak.
21435 (w32_get_resource): Remove unused variable `ok'.
21436
214372007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21438
21439 Make `window-system' into a keyboard-local variable (rather than
21440 frame-local as done originally by multi-tty).
21441
21442 * keyboard.h (struct kboard): Add Vwindow_system.
21443 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21444 (mark_kboards): Mark Vwindow_system.
21445
21446 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21447 (init_display): Don't set the obsolete `window-system' frame-param.
21448
21449 * xterm.c (x_term_init):
21450 * w32term.c (w32_create_terminal):
21451 * term.c (init_tty): Set Vwindow_system.
21452 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21453 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21454
21455 * xfns.c (Fx_create_frame, x_create_tip_frame):
21456 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21457 * macfns.c (Fx_create_frame):
21458 Don't set the obsolete `window-system' frame-param.
21459
21460 * frame.h (Qwindow_system): Remove.
21461 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21462 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21463
214642007-10-24 Richard Stallman <rms@gnu.org>
21465
21466 * frame.c (x_figure_window_size): For fullscreen case,
21467 set USPosition | PPosition without clobbering rest of window_prompting.
21468
21469 * keyboard.c (Fcurrent_idle_time): Doc fix.
21470
21471 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21472
214732007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21474
21475 * process.c (unwind_request_sigio): Only define if __ultrix__.
21476
21477 * callproc.c (child_setup): Remove spurious *.
21478
21479 * lisp.h (Fget_text_property): Declare.
21480 (have_menus_p): Declare it here rather than in sys-dep header files.
21481 * macterm.h (have_menus_p):
21482 * msdos.h (have_menus_p):
21483 * xterm.h (have_menus_p): Remove.
21484
21485 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21486 (Fmake_variable_frame_local): Just check the variable's const-ness
21487 rather than checking nil or t.
21488
214892007-10-22 Jason Rumney <jasonr@gnu.org>
21490
21491 * w32fns.c: Include math.h.
21492 (w32_abort): Declaration moved to nt/config.nt.
21493
21494 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21495 (abort): Redefinition moved to nt/config.nt.
21496
21497 * m/windowsnt.h: Remove.
21498
214992007-10-22 Juanma Barranquero <lekktu@gmail.com>
21500
21501 * emacs.c (Fdump_emacs): Fix typo in message.
21502 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21503 <installation-directory>: Reflow docstring.
21504
215052007-10-22 Juri Linkov <juri@jurta.org>
21506
21507 * minibuf.c: Allow minibuffer default to be a list of default values.
21508 With empty input use the first element of this list as returned default.
21509 (string_to_object)
21510 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21511 (read_minibuf): If defalt is cons, set histstring to its car.
21512 (Fread_string): If default_value is cons, set val to its car.
21513 (Fread_buffer): If def is cons, use its car.
21514 (Fcompleting_read): If defalt is cons, set val to its car.
21515
215162007-10-21 Michael Albinus <michael.albinus@gmx.de>
21517
21518 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21519
215202007-10-20 Juanma Barranquero <lekktu@gmail.com>
21521
21522 * doc.c (Fdocumentation): Check for advice in all cases.
21523
215242007-10-19 Chong Yidong <cyd@stupidchicken.com>
21525
21526 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21527
215282007-10-19 Richard Stallman <rms@gnu.org>
21529
21530 * doc.c (Fdocumentation): Check for and handle an advised function.
21531
215322007-10-19 Juanma Barranquero <lekktu@gmail.com>
21533
21534 * process.c (Fset_process_filter): Doc fix.
21535
215362007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21537
21538 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21539 which caused key-translation-map to applied repeatedly (thus breaking
21540 double-mode).
21541
215422007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21543
21544 * xselect.c (x_own_selection, x_handle_selection_clear)
21545 (x_clear_frame_selections):
21546 * w32menu.c (list_of_panes, list_of_items):
21547 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21548 * textprop.c (validate_plist, interval_has_all_properties)
21549 (interval_has_some_properties, interval_has_some_properties_list)
21550 (add_properties, text_property_list):
21551 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21552 * minibuf.c (Fassoc_string):
21553 * macselect.c (x_own_selection, x_clear_frame_selections)
21554 (Fx_disown_selection_internal):
21555 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21556 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21557
215582007-10-17 Chong Yidong <cyd@stupidchicken.com>
21559
21560 * process.c: Link to libs for calling res_init() if available.
21561 (Fmake_network_process): Call res_init() before getaddrinfo or
21562 gethostbyname, if possible.
21563
215642007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21565
21566 * lread.c (read1): Set pvectype for char_tables.
21567
21568 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21569 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21570 Add type checks.
21571 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21572
21573 * alloc.c (free_misc): Use XMISCTYPE.
21574 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21575
215762007-10-17 Glenn Morris <rgm@gnu.org>
21577
21578 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21579 (syms_of_minibuf): Add Qcompletion_ignore_case.
21580 * dired.c (Qcompletion_ignore_case): Change to external.
21581 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21582 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21583 (Fread_file_name): Use it rather than intern'ing.
21584
21585 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21586 (Fread_coding_system): Ignore case of user input.
21587
215882007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21589
21590 * xdisp.c (handle_display_prop): Ignore display specs after
21591 replacing one when string text is being replaced.
21592 (handle_single_display_spec): Pretend as if characters with display
21593 property haven't been consumed only when buffer text is being replaced.
21594
215952007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21596
21597 * xfns.c (Fx_create_frame, Fx_display_list):
21598 * window.c (window_fixed_size_p, enlarge_window)
21599 (shrink_window_lowest_first):
21600 * macterm.c (init_font_name_table):
21601 * macfns.c (Fx_create_frame, Fx_display_list):
21602 * lread.c (close_load_descs):
21603 * keyboard.c (read_char_x_menu_prompt):
21604 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21605 * coding.c (code_convert_region_unwind): Test the type of an object
21606 rather than just !NILP before extracting data from it.
21607
21608 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21609
21610 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21611 (XMISCANY): New macro.
21612 (XMISCTYPE): Use it.
21613 (struct Lisp_Misc_Any): New type.
21614 (union Lisp_Misc): Use it.
21615 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21616 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21617 (find_symbol_value, set_internal, default_value, Fset_default)
21618 (Fmake_variable_buffer_local, Fmake_local_variable)
21619 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21620 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21621 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21622 * alloc.c (allocate_buffer): Set the size and tag.
21623 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21624 Use XMISCANY.
21625 (die): Follow the GNU convention for error messages.
21626 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21627 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21628 tag any more.
21629 (set_buffer_internal_1):
21630 * frame.c (store_frame_param):
21631 * eval.c (specbind):
21632 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21633
21634 * doc.c (Fsnarf_documentation): Simplify.
21635
216362007-10-14 Juanma Barranquero <lekktu@gmail.com>
21637
21638 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21639 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21640
216412007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21642
21643 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21644
216452007-10-14 Juanma Barranquero <lekktu@gmail.com>
21646
21647 * eval.c (do_autoload): Don't save autoloads.
21648
21649 * data.c (Ffset): Save autoload of the function being set.
21650
216512007-10-07 John Paul Wallington <jpw@pobox.com>
21652
21653 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21654 parameter before setting up faces.
21655
216562007-10-13 Eli Zaretskii <eliz@gnu.org>
21657
21658 * ccl.c (Fregister_code_conversion_map):
21659 * keyboard.c (append_tool_bar_item): Reformat last change.
21660
21661 * lisp.h (eabs): Rename from `abs'. All callers changed.
21662
216632007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21664
21665 * buffer.c (add_overlay_mod_hooklist):
21666 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21667 * fontset.c (make_fontset):
21668 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21669 (append_tool_bar_item):
21670 * macmenu.c (grow_menu_items):
21671 * w32menu.c (grow_menu_items):
21672 * xmenu.c (grow_menu_items): Use larger_vector.
21673
216742007-10-13 Eli Zaretskii <eliz@gnu.org>
21675
21676 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21677 selected frame'' on MSDOS).
21678
216792007-10-12 Martin Rudalics <rudalics@gmx.at>
21680
21681 * frame.c (Qexplicit_name): New variable.
21682 (x_report_frame_params): Report it in parameter alist.
21683 (syms_of_frame): Intern and staticpro it.
21684
216852007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21686
21687 * macfns.c (x_create_tip_frame): Set terminal for frame.
21688
216892007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21690
21691 * frame.c (Qenvironment): Remove.
21692 (syms_of_frame) <Qenvironment>: Don't initialize.
21693 (Fdelete_frame): Don't treat the `environment' param specially.
21694 * frame.h (Qenvironment): Don't declare.
21695 * callproc.c (set_initial_environment): Don't set unused frame param.
21696
21697 * frame.c (Fframe_with_environment): Remove.
21698 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21699
21700 * lisp.h (Fframe_with_environment): Don't declare.
21701
217022007-10-10 Juanma Barranquero <lekktu@gmail.com>
21703
21704 * indent.c (indent_tabs_mode, last_known_column)
21705 (last_known_column_modified): Make static.
21706 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21707
217082007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21709
21710 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21711
217122007-10-09 Jason Rumney <jasonr@gnu.org>
21713
21714 * w32term.c (x_set_window_size): Disable code that attempts to tell
21715 Lisp code about a size change before it actually happens.
21716
217172007-10-09 Richard Stallman <rms@gnu.org>
21718
21719 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21720 return HANDLED_RETURN.
21721
217222007-10-08 Martin Rudalics <rudalics@gmx.at>
21723
21724 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21725 when there's an unread command event.
21726
21727 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21728 window autoselection act appropriately when leaving selected frame.
21729 (syms_of_frame): Initialize focus_follows_mouse.
21730 * frame.h (focus_follows_mouse): Extern it.
21731 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21732 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21733 * msdos.c (dos_rawgetc): Likewise.
21734 * w32term.c (w32_read_socket): Likewise.
21735 * xterm.c (handle_one_xevent): Likewise.
21736 * xdisp.c (syms_of_xdisp): In doc-string of
21737 mouse-autoselect-window mention focus-follows-mouse.
21738
217392007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21740
21741 * macterm.c (mac_load_query_font): Fix missing return value.
21742 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21743 Add BLOCK_INPUT.
21744
217452007-10-08 Richard Stallman <rms@gnu.org>
21746
21747 * xdisp.c (get_window_cursor_type): Implement documented behavior
21748 for cursor-in-non-selected-windows = t.
21749
217502007-10-08 Jason Rumney <jasonr@gnu.org>
21751
21752 * w32.c (w32_get_resource): Always close registry keys.
21753
217542007-10-08 Jason Rumney <jasonr@gnu.org>
21755
21756 * makefile.w32-in (LIBS): Add COMCTL32.
21757
21758 * w32fns.c (globals_of_w32fns): Init common controls.
21759
217602007-10-08 Richard Stallman <rms@gnu.org>
21761
21762 * image.c (our_memory_buffer): Rename from omfib_buffer.
21763
217642007-10-08 Richard Stallman <rms@gnu.org>
21765
21766 * buffer.c (Foverlays_at): Doc fix.
21767
217682007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21769
21770 * fns.c (Fplist_put): Preserve uneven tail data.
21771
217722007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21773
21774 * termhooks.h (enum event_kind): Remove trailing comma.
21775
21776 * frame.h (enum): Remove trailing comma.
21777
217782007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21779
21780 * w32proc.c (delete_child): Don't terminate threads of zombies.
21781
217822007-10-08 Martin Rudalics <rudalics@gmx.at>
21783
21784 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21785
21786 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21787 last-repeatable-command.
21788 (init_kboard): Initialize Vlast_repeatable_command.
21789 (command_loop_1): Set it to real_this_command unless that was
21790 bound to an input event.
21791 (mark_kboards): Mark it.
21792
217932007-10-08 Richard Stallman <rms@gnu.org>
21794
21795 * eval.c (condition-case): Doc fix.
21796
217972007-10-08 Masatake YAMATO <jet@gyve.org>
21798
21799 * xfaces.c (tty_supports_face_attributes_p): Fix code
21800 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21801 was copied and not edited.
21802
218032007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21804
21805 Add new `input-decode-map' keymap and use it for terminal
21806 escape sequences.
21807 * keyboard.h (struct kboard): Add Vinput_decode_map.
21808 Remove Vlocal_key_translation_map.
21809 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21810 (init_kboard): Init input-decode-map.
21811 Replace local-key-translation-map back with key-translation-map.
21812 (syms_of_keyboard): Declare input-decode-map.
21813 Remove local-key-translation-map. Update docstrings.
21814 (mark_kboards): Mark Vinput_decode_map.
21815 Don't mark Vlocal_key_translation_map.
21816 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21817 Replace local-key-translation-map back with key-translation-map.
21818 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21819 Bind in input-decode-map rather than function-key-map.
21820
21821 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21822 This was made redundant by the previous introduction of XSETPVECTYPE.
21823
218242007-10-09 Richard Stallman <rms@gnu.org>
21825
21826 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21827
218282007-09-29 Richard Stallman <rms@gnu.org>
21829
21830 * eval.c (internal_condition_case_2, internal_condition_case_1)
21831 (internal_condition_case): Reenable abort if x_catching_errors ()
21832 to see if that really happens and why.
21833
218342007-10-06 Andreas Schwab <schwab@suse.de>
21835
21836 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21837
218382007-10-04 Juanma Barranquero <lekktu@gmail.com>
21839
21840 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21841
218422007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21843
21844 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21845
218462007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21847
21848 * window.h (struct window):
21849 * window.c (struct save_window_data, struct saved_window):
21850 * termhooks.h (struct terminal):
21851 * process.h (struct Lisp_Process):
21852 * frame.h (struct frame):
21853 * buffer.h (struct buffer):
21854 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21855 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21856 The size field of (pseudo)vectors is now unsigned.
21857 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21858
21859 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21860 Turn `count' into an integer.
21861
21862 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21863 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21864 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21865 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21866 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21867
21868 * alloc.c (allocate_pseudovector): New fun.
21869 (ALLOCATE_PSEUDOVECTOR): New macro.
21870 (allocate_window, allocate_terminal, allocate_frame)
21871 (allocate_process): Use it.
21872 (mark_vectorlike): New function.
21873 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21874 (mark_terminals): Use it.
21875 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21876 (Fmake_byte_code): Use XSETPVECTYPE.
21877
21878 * frame.c (Fframe_parameters): Minor simplification.
21879
21880 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21881
21882 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21883
21884 * buffer.c (Fget_buffer_create, init_buffer_once):
21885 * lread.c (defsubr):
21886 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21887
21888 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21889 defined differently in the m/*.h files.
21890 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21891 (XSETPVECTYPE): New macro.
21892 (XSETPSEUDOVECTOR): Use it.
21893
21894 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21895 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21896
21897 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21898 * lread.c (defvar_per_buffer):
21899 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21900
21901 * window.c (candidate_window_p): Only consider as visible frames that
21902 are on the same terminal.
21903
21904 * m/ibms390x.h (MARKBIT): Remove unused macro.
21905
219062007-10-01 Juanma Barranquero <lekktu@gmail.com>
21907
21908 * lread.c (Fload): Fix typo in docstring.
21909
219102007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21911
21912 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21913 of a non-zero value can't yield zero.
21914
219152007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21916
21917 * term.c (term_clear_mouse_face, term_mouse_highlight)
21918 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21919
21920 * print.c (safe_debug_print): Use XHASH.
21921
21922 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21923 Lisp elements such as tags.
21924 (XHASH): New macro.
21925 (EQ): Use it.
21926 (SREF, SSET, STRING_COPYIN): Use SDATA.
21927 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21928
21929 * alloc.c (mark_terminal): Remove left-over declaration.
21930 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21931 (allocate_vectorlike): Remove type argument. Adjust callers.
21932 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21933 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21934
21935 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21936 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21937 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21938 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21939 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21940 Use them.
21941
21942 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21943 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21944 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21945
219462007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21947
21948 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21949 loaded by default.
21950
219512007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21952
21953 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21954 on this tty.
21955 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21956
21957 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21958 Update all users.
21959 (handle_one_term_event): Use Gpm_DrawPointer.
21960 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21961 Signal errors instead of returning nil. Always return nil.
21962 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21963 Make it a noop if gpm-mouse was not activated.
21964 (syms_of_term): Update names.
21965
219662007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21967
21968 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21969 (init_sys_modes): Check that gpm_tty is the current tty.
21970
21971 * alloc.c (allocate_terminal): Set the vector size to only count the
21972 lisp fields. Initialize those to nil.
21973 (mark_object): Don't treat terminals specially.
21974 (mark_terminal): Remove.
21975 (mark_terminals): Use mark_object instead.
21976
21977 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21978 the GC to the beginning.
21979
21980 * indent.h:
21981 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21982
21983 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21984
219852007-09-25 Jason Rumney <jasonr@gnu.org>
21986
21987 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21988
21989 * w32console.c (create_w32cons_output): Remove.
21990
21991 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21992
21993 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21994 (reset_sys_modes): Use reset_terminal_modes_hook.
21995
219962007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21997
21998 * eval.c (do_autoload): Don't output any message.
21999
220002007-09-24 Juri Linkov <juri@jurta.org>
22001
22002 * emacs.c (standard_args): Change priority of "--no-splash"
22003 from 40 to 3. Add "--no-desktop" with the same priority.
22004
220052007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22006
22007 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22008 and optimize the case where they are all 1.
22009
220102007-09-23 Johannes Weiner <hannes@saeurebad.de>
22011
22012 * lisp.h (abs): Define if not defined.
22013 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22014 Don't define `abs', since it's defined in lisp.h.
22015
220162007-09-22 Eli Zaretskii <eliz@gnu.org>
22017
22018 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22019 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22020 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22021 (init_tty): Use DEV_TTY instead of "/dev/tty".
22022 [WINDOWSNT]: No need to protect from NAME arg being null.
22023
220242007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22025
22026 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22027 up the tty state.
22028
220292007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22030
22031 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22032 (gpm_tty): Change its type.
22033 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22034 (gpm_tty): Change its type and initialize it.
22035 (Fterm_open_connection): Check the frame is indeed a tty.
22036 Use the new gpm_tty.
22037 (Fterm_close_connection): Use the new gpm_tty.
22038 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22039 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22040
220412007-09-21 Juanma Barranquero <lekktu@gmail.com>
22042
22043 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22044 underline_color, to draw strike-through.
22045
220462007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22047
22048 * lisp.h (allocate_terminal): Declare.
22049
22050 * window.c (candidate_window_p): Consider frames that are being placed
22051 by the user as somewhere between visible and iconified.
22052 (window_loop): Prefer windows on the current frame.
22053 (Fselect_window): Move the use of select-frame to the beginning so we
22054 can just delegate all the work (it'll call us back anyway).
22055
22056 * frame.c (Qdisplay_environment_variable):
22057 * frame.h (Qdisplay_environment_variable): Delete.
22058
22059 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22060 of the first arg, since that value may be a union.
22061
22062 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22063 parameter rather than Qdisplay_environment_variable. If all else
22064 fails, look for DISPLAY in initial-environment.
22065
220662007-09-21 Glenn Morris <rgm@gnu.org>
22067
22068 * Makefile.in (emacstool): Remove target.
22069 (lisp, shortlisp): Remove termdev.elc.
22070
220712007-09-21 Markus Triska <markus.triska@gmx.at>
22072
22073 * xterm.c (x_delete_display): Compile session management conditionally.
22074
220752007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22076
22077 * callproc.c (getenv_internal_1): New function.
22078 (getenv_internal): Use it.
22079 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22080
22081 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22082 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22083 (Fset_terminal_parameter): Work with dead terminals as well.
22084 (Fmodify_terminal_parameters): Remove.
22085
22086 * terminal.c (get_terminal): Handle terminals.
22087 Make sure the terminal returned is live.
22088 (create_terminal): Use allocate_terminal.
22089 (mark_terminals): Move to alloc.c.
22090 (delete_terminal): Use terminal->name as liveness status.
22091 NULL out fields after freeing their contents.
22092 Don't deallocate the object.
22093 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22094 rather than an int.
22095 (Fterminal_live_p): Accept non-integer arguments.
22096 (Fterminal_list): Return terminal objects rather than an ints.
22097
22098 * alloc.c (enum mem_type): New member for `terminal' objects.
22099 (allocate_terminal): New function.
22100 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22101 Handle terminals.
22102 (mark_terminal): New fun.
22103 (mark_terminals): Move from terminal.c.
22104
22105 * term.c (get_tty_terminal): Don't treat output_initial specially.
22106 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22107 (delete_tty): Use terminal->name as liveness status.
22108
22109 * termhooks.h (struct terminal): Make it into a pseudovector.
22110 Remove `deleted' replaced by checking `name's nullness.
22111
22112 * print.c (print_object): Handle terminals.
22113
22114 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22115 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22116
22117 * frame.c (make_terminal_frame):
22118 * keyboard.c (tty_read_avail_input):
22119 * w32term.c (x_delete_terminal):
22120 * xfns.c (Fx_create_frame, x_create_tip_frame):
22121 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22122
221232007-09-20 Glenn Morris <rgm@gnu.org>
22124
22125 * process.c (Fmake_network_process): Doc fix.
22126
221272007-09-19 Jason Rumney <jasonr@gnu.org>
22128
22129 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22130
221312007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22132
22133 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22134 Fix a C warning regarding variable constness.
22135
22136 * xterm.c (handle_one_xevent): Fix a C warning.
22137
221382007-09-18 Jason Rumney <jasonr@gnu.org>
22139
22140 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22141
221422007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22143
22144 * gtkutil.c (gdpy_def): New variable.
22145 (xg_initialize): Initialize gdpy_def.
22146 (xg_display_close): If no other display exists, set gdpy_def to a
22147 new connection.
22148
221492007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22150
22151 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22152 when we have no file name for the icon.
22153 (xg_tool_bar_expose_callback): Remove.
22154 (xg_create_tool_bar): Don't connect expose signal to
22155 xg_tool_bar_expose_callback.
22156 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22157
221582007-09-16 Andreas Schwab <schwab@suse.de>
22159
22160 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22161 values instead of zapping them.
22162
221632007-09-14 Glenn Morris <rgm@gnu.org>
22164
22165 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22166 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22167 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22168 scope and rename to omfib_buffer for clarity.
22169 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22170
221712007-09-14 Kenichi Handa <handa@m17n.org>
22172
22173 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22174
221752007-09-13 Jason Rumney <jasonr@gnu.org>
22176
22177 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22178
22179 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22180
22181 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22182 (mac_term_init): Call here instead, passing rif.
22183
221842007-09-13 Glenn Morris <rgm@gnu.org>
22185
22186 * s/hpux.h: No longer define `static' as nothing.
22187
221882007-09-13 Johan Bockgård <bojohan@gnu.org>
22189
22190 * callint.c (Fcall_interactively): Remove unused var `fun'.
22191
221922007-09-12 Romain Francoise <romain@orebokech.com>
22193
22194 * window.c (prefer_window_split_horizontally, display_buffer):
22195 Revert 2007-09-08 change.
22196
221972007-09-12 Glenn Morris <rgm@gnu.org>
22198
22199 * alloca.c: Remove file.
22200 * Makefile.in (alloca): Do not undef.
22201 (allocaobj, alloca.o): Remove.
22202 (otherobj): Remove allocaobj.
22203 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22204 * regex.c (C_ALLOCA): Remove all references and code that was only
22205 used when this was defined.
22206 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22207 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22208 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22209
22210 * Makefile.in (SOURCES, unlock, relock): Delete.
22211
22212 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22213 (menu_grab_callback): All uses changed.
22214
22215 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22216 (x_reply_selection_request): All uses changed.
22217
222182007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22219
22220 * lread.c (load_warn_old_style_backquotes): Change message to look
22221 better when it appears in the middle of byte-compiler messages.
22222
222232007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22224
22225 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22226
22227 * xterm.c (x_create_terminal): Add comment.
22228
22229 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22230
222312007-09-10 Richard Stallman <rms@gnu.org>
22232
22233 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22234
222352007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22236
22237 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22238 (DEFUN): Document `intspec', use it instead of `prompt'.
22239
22240 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22241
22242 * data.c (Finteractive_form): If the interactive specification starts
22243 with a `(', use it as a Lisp form.
22244
22245 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22246 name and file modes.
22247
22248 * callint.c (Fcall_interactively): Comment fixes.
22249
222502007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22251
22252 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22253 and compiled functions.
22254
222552007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22256
22257 * window.c (prefer_window_split_horizontally): New variable.
22258 (display_buffer): Consider splitting window horizontally depending
22259 on prefer_window_split_horizontally.
22260
222612007-09-08 Eli Zaretskii <eliz@gnu.org>
22262
22263 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22264
222652007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22266
22267 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22268
22269 * frame.c (x_set_frame_parameters): Check number is positive before
22270 using XFASTINT.
22271
22272 * window.c (freeze_window_start): Don't presume selected_window holds
22273 a window object.
22274 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22275
222762007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22277
22278 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22279
222802007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22281
22282 * window.c (Vsplit_window_preferred_function): New var.
22283 (Fdisplay_buffer): Use it.
22284 (syms_of_window): Export, and initialize it.
22285
222862007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22287
22288 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22289
222902007-09-06 Glenn Morris <rgm@gnu.org>
22291
22292 * gtkutil.c (menu_grab_callback) <cnt>:
22293 * xselect.c (x_reply_selection_request) <cnt>: Move static
22294 variable to file scope.
22295
222962007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22297
22298 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22299 consistent values of selected_frame and selected_window.
22300
223012007-09-04 Jason Rumney <jasonr@gnu.org>
22302
22303 * w32console.c (initialize_w32_display): Zero unused hooks.
22304
223052007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22306
22307 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22308 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22309
223102007-09-04 Jason Rumney <jasonr@gnu.org>
22311
22312 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22313 in w32console.c. Set up input. Remove XXX comments that have been
22314 confirmed as correct.
22315
22316 * s/ms-w32.h (MULTI_KBOARD): Define.
22317
22318 * w32console.c (one_and_only_w32cons): Remove.
22319 (initialize_w32_display): Take terminal argument.
22320
22321 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22322 initialize_w32_display.
22323 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22324
22325 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22326
22327 * keyboard.c (discard_mouse_events): Discard it.
22328 (make_lispy_event): Translate it to a lisp event.
22329 (lispy_wheel_names): Add wheel-left and right events.
22330 (syms_of_keyboard): Enlarge wheel_syms.
22331
22332 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22333 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22334
22335 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22336
22337 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22338 from WM_MOUSEHWHEEL.
22339 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22340
22341 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22342 terminal.
22343
22344 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22345 keyboard for the terminal.
22346
223472007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22348
22349 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22350 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22351 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22352 and resume-tty-function to resume-tty-hook.
22353 (Fsuspend_tty, Fresume_tty): Use new names.
22354
223552007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22356
22357 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22358 if it starts with "n:".
22359
223602007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22361
22362 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22363
223642007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22365
22366 * frame.h:
22367 * frame.c (Qterm_environment_variable): Remove.
22368 (syms_of_frame): Don't init and staticpro it.
22369
22370 * callproc.c (getenv_internal): Remove special case for $TERM.
22371
22372 * callproc.c (Vinitial_environment): New variable.
22373 (set_initial_environment): Initialize it.
22374 (syms_of_callproc): Declare it.
22375 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22376 TERM under which a process runs is never related to the TERM in which
22377 Emacs is running.
22378
223792007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22380
22381 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22382 * s/darwin.h: ... do it here.
22383
223842007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22385
22386 * lisp.h (set_initial_environment): Rename from set_global_environment.
22387
22388 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22389 removed by mistake on the multi-tty branch.
22390
22391 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22392 (Fmodify_frame_parameters): Return a value.
22393
22394 * image.c (png_load): Comment-out var only used in commented-out code.
22395
22396 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22397 before passing it to mark_object.
22398
22399 * xfaces.c (internal_resolve_face_name): Return a value.
22400 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22401
22402 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22403 (x_icon): Comment-out var only used in commented-out code.
22404
224052007-08-29 Romain Francoise <romain@orebokech.com>
22406
22407 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22408 QUIT hasn't been provided.
22409
224102007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22411
22412 * callproc.c (child_setup, getenv_internal): Use the
22413 display-environment-variable and term-environment-variable frame params.
22414 (set_initial_environment): Initialise Vprocess_environment.
22415
22416 * config.in: Disable multi-keyboard support on a mac.
22417
22418 * frame.c (Qterm_environment_variable)
22419 (Qdisplay_environment_variable): New variables.
22420 (syms_of_frame): Intern and staticpro them.
22421 (Fmake_terminal_frame): Disable output method test.
22422
22423 * frame.h: Declare them here.
22424
22425 * macfns.c (x_set_mouse_color): Get rif from the frame.
22426 (x_set_tool_bar_lines): Don't use updating_frame.
22427 (mac_window): Add 2 new parameters for consistency with other systems.
22428 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22429 frame parameters following what is done in X11 and w32. Don't use
22430 FRAME_MAC_DISPLAY_INFO.
22431 (Fx_open_connection, start_hourglass): Remove window-system check.
22432 (x_create_tip_frame): Get the keyboard from the terminal.
22433
22434 * macmenu.c: Reorder includes.
22435 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22436
22437 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22438 terminal parameter.
22439 (x_clear_frame): Add a frame parameter.
22440 (note_mouse_movement): Get rif from the frame.
22441 (mac_term_init): Initialize the terminal.
22442 (mac_initialize): Make static and move terminal initialization ...
22443 (mac_create_terminal): ... to this new function.
22444
22445 * macterm.h (struct mac_display_info): Add terminal.
22446 (mac_initialize): Delete declaration.
22447
22448 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22449
22450 * sysdep.c: Comment out text after #endif.
22451
22452 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22453 is defined. Better initialize ttys in windows. Use terminal
22454 specific mouse_position_hook.
22455
22456 * termhooks.h (union display_info): Add mac_display_info.
22457
22458 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22459 Set the default minibuffer frame, window_system and the rest of the
22460 frame parameters following what is done in X11.
22461
22462 * w32term.c (w32_initialize): Make static.
22463
22464 * xselect.c (x_handle_selection_clear): Only access
22465 terminal->kboard when MULTI_KBOARD is defined.
22466
22467 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22468 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22469
224702007-08-29 Jason Rumney <jasonr@gnu.org>
22471
22472 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22473 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22474
22475 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22476 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22477
22478 * keyboard.c (restore_kboard_configuration): Only define when
22479 MULTI_KBOARD defined.
22480
22481 * makefile.w32-in: Update dependancies from Makefile.in.
22482 (OBJ1): Add terminal.$(O)
22483
22484 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22485 Don't define function body.
22486 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22487
22488 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22489
22490 * w32.c (request_sigio, unrequest_sigio): Remove.
22491
22492 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22493 (w32con_clear_frame, w32con_clear_end_of_line)
22494 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22495 (w32con_delete_glyphs, w32con_set_terminal_window)
22496 (scroll_line, w32_sys_ring_bell): Add frame arg.
22497 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22498 Add terminal arg.
22499 (PICK_FRAME): Remove.
22500 (w32con_write_glyphs): Use frame specific terminal coding.
22501 (one_and_only_w32cons): New global variable.
22502 (initialize_w32_display): Use it for storing hooks.
22503 (create_w32cons_output): New function.
22504
22505 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22506 arg a frame.
22507
22508 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22509 Set window_system.
22510 (x_set_tool_bar_lines): Don't use updating_frame.
22511 (Fx_create_frame): Set terminal and ref count.
22512 (Fx_open_connection): Remove window-system check.
22513
22514 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22515
22516 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22517 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22518 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22519 Add frame arg.
22520 (x_delete_terminal, w32_create_terminal): New functions.
22521 (w32_term_init): Create a terminal.
22522 (w32_initialize): Move terminal specific initialization to
22523 w32_create_terminal.
22524
22525 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22526 (w32_clear_rect, w32_clear_area): Use background from frame.
22527 (w32_display_info): Add terminal.
22528 (w32_sys_ring_bell, x_delete_display): Declare here.
22529
22530 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22531
22532 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22533
225342007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22535
22536 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22537 Fix get_named_tty calls for the controlling tty.
22538
225392007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22540
194d44e7 22541 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22542
225432007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22544
22545 * term.c (tty_insert_glyphs): Add missing first parameter.
22546
225472007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22548
22549 * buffer.c (Fbuffer_list, Fbury_buffer):
22550 Take frame->buried_buffer_list into account.
22551
22552 * cm.c (current_tty): New variable, for cmputc().
22553 (cmputc): Use it.
22554 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22555 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22556 (cmgoto): Add tty parameter. Pass it on to calccost().
22557 Use emacs_tputs() instead of tputs().
22558
22559 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22560 tputs().
22561 (current_tty): New variable, for cmputc().
22562 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22563
22564 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22565 (internal_condition_case, internal_condition_case_1)
22566 (internal_condition_case_2): Don't abort when x_catching_errors.
22567
22568 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22569 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22570 prevent crashes caused by bogus longjmps in read_char.
22571
22572 * keymap.h (Fset_keymap_parent): Add EXFUN.
22573
22574 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22575 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22576 Remove redundant definition.
22577
22578 * macfns.c (x_set_mouse_color, x_make_gc):
22579 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22580
22581 * w32term.c (x_free_frame_resources):
22582 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22583 (w32_initialize): Use the accessor macros for terminal characteristics.
22584
22585 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22586 Use the accessor macros for terminal characteristics.
22587 * msdos.c (internal_terminal_init): Use the accessor macros for
22588 terminal characteristics.
22589 (ScreenVisualBell, internal_terminal_init):
22590 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22591
22592 * termopts.h (no_redraw_on_reenter): Declare.
22593
22594 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22595 (mark_terminals, mark_ttys): Declare.
22596 (Fgarbage_collect): Call them.
22597 (mark_object): Mark buried_buffer_list.
22598
22599 * prefix-args.c: Include stdlib.h for exit.
22600
22601 * syssignal.h: Add comment.
22602
22603 * indent.c: Include stdio.h.
22604
22605 * window.h (Vinitial_window_system): Declare.
22606 (Vwindow_system): Delete declaration.
22607
22608 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22609
22610 * image.c (lookup_image): Don't initialize `c' until the xasserts
22611 have been run.
22612
22613 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22614 FRAME_FOREGROUND_PIXEL.
22615
22616 * print.c (print_preprocess): Don't lose print_depth levels while
22617 iterating.
22618
22619 * widget.c (update_from_various_frame_slots):
22620 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22621
22622 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22623 frames.
22624 (window_internal_height): Remove bogus make_number call.
22625 (init_window_once): Call make_terminal_frame with two zero parameters.
22626
22627 * fileio.c (Fread_file_name): Update comment.
22628
22629 * callint.c (Fcall_interactively):
22630 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22631 Make sure it is correctly unwound.
22632
22633 * xsmfns.c (x_session_close): New function.
22634
22635 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22636 Delete declarations.
22637
22638 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22639 (x_output): Remove background_pixel and foreground_pixel fields.
22640 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22641 (x_delete_device, x_session_close): Declare.
22642
22643 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22644 (read_filtered_event): Call `read_char' with a local
22645 `wrong_kboard_jmpbuf'.
22646
22647 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22648 Don't call single_kboard_state. Use FRAME_RIF.
22649
22650 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22651 systems.
22652
22653 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22654 (Fframe_with_environment, Fset_input_meta_mode)
22655 (Fset_quit_char): EXFUN.
22656 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22657 (init_sys_modes, reset_sys_modes): Update prototypes.
22658 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22659
22660 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22661 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22662 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22663 Delete declarations.
22664 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22665 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22666 New declarations.
22667
22668 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22669 already does that during init_display(). Call syms_of_keymap
22670 before syms_of_keyboard. Call `syms_of_terminal'.
22671 Call set_initial_environment, not set_process_environment.
22672 (shut_down_emacs): Call reset_all_sys_modes() instead of
22673 reset_sys_modes().
22674
22675 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22676 (internal_resolve_face_name, resolve_face_name_error): New functions.
22677 (resolve_face_name): Protect against loops and errors thrown by Fget.
22678 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22679 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22680
22681 * scroll.c: Replace CURTTY() with local variables throughout the
22682 file (where applicable).
22683 (calculate_scrolling, calculate_direct_scrolling)
22684 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22685 characteristics.
22686
22687 * keymap.c (Vfunction_key_map): Remove.
22688 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22689 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22690 (Vkey_translation_map): Remove.
22691 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22692 (Fdescribe_buffer_bindings)
22693 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22694 Update for terminal-local key-translation-map.
22695
22696 * Makefile.in (callproc.o): Update dependencies.
22697 (lisp, shortlisp): Add termdev.elc.
22698 (obj): Add terminal.o.
22699 (terminal.o): Add dependencies.
22700 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22701 (data.o, fns.o): Add termhooks.h dependency.
22702 (SOME_MACHINE_LISP): Add dnd.elc.
22703 (minibuf.o): Fix typo.
22704 Update dependencies.
22705
22706 * data.c (do_symval_forwarding, store_symval_forwarding)
22707 (find_symbol_value): Use the selected frame's keyboard, not
22708 current_kboard.
22709
22710 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22711 Vwindow_system.
22712
22713 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22714 Fmenu_bar_open.
22715 (syms_of_xmenu): Update defsubr.
22716 (mouse_position_for_popup, Fx_popup_menu)
22717 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22718 (set_frame_menubar, free_frame_menubar)
b97439ce 22719 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22720 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22721 an X frame.
22722
22723 * xselect.c (x_own_selection): Abort if not an X frame.
22724 (some_frame_on_display): Check if it is an X frame.
22725 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22726
22727 * coding.c: Include frame.h and termhooks.h.
22728 (terminal_coding, keyboard_coding): Delete.
22729 (Fset_terminal_coding_system_internal)
22730 (Fset_keyboard_coding_system_internal)
22731 (Fkeyboard_coding_system)
22732 (Fterminal_coding_system): Add a terminal parameter.
22733 Get terminal_coding from the terminal.
22734 (init_coding_once): Don't call setup_coding_system here.
22735
22736 * dispextern.h (set_scroll_region, turn_off_insert)
22737 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22738 (tty_clear_end_of_line, tty_setup_colors)
22739 (delete_tty, updating_frame)
22740 (produce_special_glyphs, produce_glyphs, write_glyphs)
22741 (insert_glyphs): Remove.
22742 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22743 (tty_turn_off_highlight, get_tty_size): Add declaration.
22744 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22745
22746 * frame.h (enum output_method): Add output_initial.
22747 (struct x_output): Delete.
22748 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22749 Access foreground_pixel and background_pixel directly from the frame.
22750 (tty_display): Delete.
22751 (struct frame): Add buried_buffer_list, foreground_pixel,
22752 background_pixel and terminal. Delete kboard.
22753 (union output_data): Add tty.
22754 (FRAME_KBOARD): Get the kboard from the terminal.
22755 (FRAME_INITIAL_P): New macro.
22756 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22757 (Qterm_environment_variable, Qdisplay_environment_variable)
22758 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22759 New declarations.
22760
22761 * termchar.h (tty_output, tty_display_info): New structures.
22762 (tty_list): Declare.
22763 (FRAME_TTY, CURTTY): New macros.
22764 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22765 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22766 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22767 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22768
22769 * callproc.c: Include frame.h and termhooks.h, for terminal
22770 parameters.
22771 (add_env): New function.
22772 (child_setup): Use it.
22773 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22774 (getenv_internal): Fix get_terminal_param call.
22775 (Fgetenv_internal, egetenv): Update doc.
22776 (syms_of_callproc): Initialize Vprocess_environment to nil.
22777 Register and initialize them. Remove obsolete defvars. Update doc
22778 strings.
22779 (child_setup): Handle Vlocal_environment_variables.
22780 (getenv_internal): Add terminal parameter.
22781 Handle Vlocal_environment_variables.
22782 (Fgetenv_internal): Add terminal parameter.
22783 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22784 environment in a frame (not terminal) parameter. Update doc strings.
22785 (set_initial_environment): Rename from set_global_environment.
22786 Store Emacs environment in initial frame parameter.
22787
22788 * xdisp.c (redisplay_internal): Update references to
22789 `previous_terminal_frame'.
22790 (display_mode_line, Fformat_mode_line): Replace calls to
22791 `push_frame_kboard' with `push_kboard'.
22792 (get_glyph_string_clip_rects): Add extra parentheses and
22793 braces to prevent compiler warnings.
22794 (calc_pixel_width_or_height): Add xassert to check that the
22795 frame is alive. Don't call `lookup_image' on a termcap frame.
22796 (message2_nolog, message3_nolog, redisplay_internal)
22797 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22798 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22799 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22800 (Fx_display_pixel_width, Fx_display_pixel_height)
22801 (Fx_display_planes, Fx_display_color_cells)
22802 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22803 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22804 (Fx_display_backing_store, Fx_display_visual_class)
22805 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22806 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22807
22808 * xfns.c (x_set_foreground_color x_set_background_color)
22809 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22810 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22811 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22812 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22813 terminal that is being deleted.
22814 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22815 frame parameter, and make sure it overrides any user-supplied setting.
22816 (Fx_close_connection, Fx_synchronize): Unify argument names with
22817 the rest of the DEFUNs.
22818
22819 * dispnew.c (Fsend_string_to_terminal): Update call to
22820 `get_tty_terminal'.
22821 (Fredraw_frame, Fsend_string_to_terminal)
22822 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22823 FRAME_TERMCAP_P and FRAME_TTY.
22824 (window_change_signal): Don't believe width/height values that are
22825 impossibly small.
22826 (Vinitial_window_system): Rename from Vwindow_system.
22827 (termscript, Wcm, rif): Delete.
22828
22829 * termhooks.h (struct terminal): New struct containing the
22830 previously global text display hooks and new members NAME,
22831 DELETED and PARAM_ALIST.
22832 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22833 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22834 (FRAME_RIF): New macros.
22835 (get_terminal_param, get_device): New declarations.
22836 (termscript): Delete declaration.
22837
22838 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22839 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22840 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22841 FRAME_FOREGROUND_PIXEL.
22842 (x_fully_uncatch_errors): Disable definition.
22843 (x_scroll_bar_expose): Fix reference to foreground pixel.
22844 (XTread_socket): Disable loop on all X displays.
22845 (x_delete_terminal): Don't set terminal->deleted and let
22846 delete_terminal delete the frames on the terminal.
22847 (x_delete_display): Doc update to reflect changes in
22848 delete_terminal.
22849 (x_display_info) <terminal>: Move member earlier in the struct.
22850 (deleting_tty): Remove old variable.
22851 (Fsuspend_tty): Call clear_tty_hooks.
22852 (Fresume_tty, init_tty): Call set_tty_hooks.
22853 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22854 errors on X frames.
22855 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22856 (handle_one_xevent): Initialize `f' to NULL.
22857 (x_delete_terminal, x_create_terminal): New functions.
22858 (XTset_terminal_modes, XTreset_terminal_modes)
22859 (XTread_socket, x_connection_closed, x_term_init)
22860 (x_term_init, x_delete_display): Add terminal parameter.
22861 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22862 X connections.
22863
22864 * frame.c: Include termchar.h.
22865 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22866 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22867 (Qdisplay_environment_variable): New vars.
22868 (Fframep): Deal with output_initial.
22869 (Fframe-live-p): Doc fix.
22870 (Fwindow-system): New function.
22871 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22872 (make_terminal_frame): Don't create frames on a terminal that is
22873 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22874 (store_frame_param): Check for found_for_frame before calling XFRAME.
22875 (Fmake_terminal_frame): Handle NULL tty names correctly.
22876 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22877 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22878 frames to refer to a deleted frame in their 'environment parameter.
22879 (Fframe_with_environment): New function.
22880 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22881 (get_future_frame_param): New function.
22882 (Fmake_terminal_frame): Use it.
22883 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22884
22885 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22886 * sysdep.c (reset_sys_modes): Update for renames.
22887
22888 * keyboard.c (tty_read_avail_input): New function.
22889 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22890 (syms_of_keyboard): Defsubr them.
22891 (Fset_input_meta_mode, Fset_quit_char): New functions.
22892 (Fset_input_mode): Split to above functions.
22893 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22894 parameter. Use it in call to `read_char'.
22895 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22896 Set wrong_kboard_jmpbuf correctly in recursive calls.
22897 Use current_kboard to access Vkeyboard_translate_table.
22898 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22899 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22900 Update longjmp invocations. Remember the original current_kboard,
22901 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22902 changes it. Comment out unnecessary calls to
22903 `record_single_kboard_state' and `any_kboard_state'.
22904 Update recursive calls.
22905 (wrong_kboard_jmpbuf): Remove global variable.
22906 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22907 Handle deleted interrupted_kboards correctly; that is a legal
22908 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22909 and read_char calls. Abort if interrupted_kboard died in read_char.
22910 (any_kboard_state, single_kboard_state)
22911 (push_frame_kboard): Remove function.
22912 (pop_kboard): Switch out of single_kboard mode if the kboard has
22913 been deleted. Remove unused variable. Help debugging by not
22914 changing current_kboard unnecessarily. Set current_kboard to the
22915 kboard of the selected frame when the stored kboard object has
22916 been deleted before pop_kboard.
22917 (temporarily_switch_to_single_kboard): Change first parameter to a
22918 frame pointer. Throw an error when caller wants to change kboards
22919 while in single_kboard mode. Don't push_kboard if we weren't in
22920 single kboard state. Don't pop_kboard if we popped into any
22921 kboard state.
22922 (restore_kboard_configuration): Abort if pop_kboard changed the
22923 kboard in single_kboard mode. Call pop_kboard only after setting
22924 up single_kboard mode.
22925 (Frecursive_edit): Switch to single_kboard mode only in nested
22926 command loops.
22927 (cmd_error, command_loop, command_loop_1, timer_check):
22928 Comment out unnecessary call to `any_kboard_state' and
22929 `record_single_kboard_state'.
22930 (delete_kboard): Exit single_kboard mode if we have just deleted
22931 that kboard. Use FRAME_KBOARD.
22932 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22933 `fatal_error_signal'.
22934 (record_single_kboard_state): Don't push_kboard if we weren't in
22935 single kboard state. Don't pop_kboard if we popped into any
22936 kboard state.
22937 (push_frame_kboard): Rename to push_kboard.
22938 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22939 (read_avail_input): Read input from all terminals.
22940 (mark_kboards): Also mark Vkeyboard_translate_table.
22941 (kbd_buffer_store_event_hold): Simplify condition.
22942 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22943 (Vkeyboard_translate_table): Move to struct kboard.
22944 (init_kboard): Initialize Vkeyboard_translate_table.
22945 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22946 Vkeyboard_translate_table. Update doc strings. Update docs of
22947 local-function-key-map and function-key-map.
22948
22949 * terminal.c: New file.
22950
22951 * term.c: Include errno.h.
22952 (Vring_bell_function, device_list, initial_device)
22953 (next_device_id, ring_bell, update_begin, update_end)
22954 (set_terminal_window, cursor_to, raw_cursor_to)
22955 (clear_to_end, clear_frame, clear_end_of_line)
22956 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22957 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22958 (syms_of_term): Move their initialization to terminal.c.
22959 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22960 (Ftty_display_color_cells)
22961 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22962 (clear_tty_hooks, set_tty_hooks)
22963 (init_tty, maybe_fatal): New functions.
22964 (Ftty_type): Return nil if terminal is not on a tty instead of
22965 throwing an error. Doc update.
22966 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22967 Doc update. Initialize new subrs and variables.
22968 (delete_tty): Use terminal->deleted.
22969 (tty_set_terminal_modes): Rename from set_terminal_modes.
22970 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22971 (set_scroll_region): Rename to `tty_set_scroll_region'.
22972 (turn_on_insert): Rename to `tty_turn_on_insert'.
22973 (turn_off_insert): Rename to `tty_turn_off_insert'.
22974 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22975 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22976 (toggle_highligh): Rename to `tty_toggle_highlight'.
22977 (background_highlight): Rename to `tty_background_highlight'.
22978 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22979 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22980 (tty_set_scroll_region, tty_background_highlight)
22981 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22982 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22983 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22984 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22985 Add static modifier.
22986 (tty_reset_terminal_modes, tty_set_terminal_window)
22987 (tty_set_scroll_region, tty_background_highlight)
22988 (tty_highlight_if_desired, tty_cursor_to)
22989 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22990 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22991 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22992 renames.
22993
229942007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22995
22996 * keyboard.c: Qrtl is new.
22997 (parse_tool_bar_item): Handle :rtl keyword.
22998 (syms_of_keyboard): Intern :rtl keyword.
22999
23000 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23001
23002 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23003 so no Lisp code is executed.
23004 (file_for_image, find_rtl_image): New functions.
23005 (xg_get_image_for_pixmap): Use file_for_image.
23006 (update_frame_tool_bar): If direction is RTL, use RTL image if
23007 defined. Use Gtk stock images if defined.
23008
230092007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23010
23011 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23012 for nonexistent or zero-width glyph in composition glyph.
23013
230142007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23015
23016 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23017
23018 * xdisp.c (Finvisible_p): New function.
23019 (syms_of_xdisp): defsubr it.
23020
230212007-08-24 Juanma Barranquero <lekktu@gmail.com>
23022
23023 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23024 Doc fixes.
23025
230262007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23027
23028 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23029
230302007-08-24 Martin Rudalics <rudalics@gmx.at>
23031
23032 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23033 whether decoding has modified buffer contents.
23034
230352007-08-24 Jason Rumney <jasonr@gnu.org>
23036
23037 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23038 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23039 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23040 (init_svg_functions) [HAVE_NTGUI]: New function.
23041 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23042 (svg_load_image): Use them.
23043 (svg_load_image) [HAVE_NTGUI]: Implement background.
23044
230452007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23046
23047 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23048 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23049 (LIBX): Remove @RSVG_LIBS@.
23050 (LIBES): Add $(RSVG_LIBS).
23051
23052 * image.c (svg_load_image): Blend with specified background if exists.
23053 Use IMAGE_BACKGROUND. Add Mac OS Support.
23054
23055 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23056 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23057 Remove macros.
23058 [MAC_OSX] (socket_callback): Do nothing.
23059 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23060 ReceiveNextEvent.
23061 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23062 socket_callback.
23063 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23064
230652007-08-22 Glenn Morris <rgm@gnu.org>
23066
23067 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23068
230692007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23070
23071 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23072
23073 * image.c: Add support for SVG images. Some additional comments
23074 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23075 (svg_image_p): New function to test for SVG image.
23076 (svg_load): New function to load SVG image.
23077 (svg_load_image): New function, helper for svg_load.
23078 (Qsvg): New Lisp_object.
23079 (svg_keyword_index): New enum.
23080 (svg_format): New static `image_keyword' struct.
23081 (svg_type): New static `image_type' struct.
23082 (librsvg/rsvg.h): Include it.
23083
230842007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23085
23086 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23087
230882007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23089
23090 * lread.c (Qold_style_backquotes): New var.
23091 (syms_of_lread): Init and staticpro it.
23092 (load_warn_old_style_backquotes): New fun.
23093 (Fload): Use them to warn about old style backquotes.
23094 (end_of_file_error, Fload): Remove unused vars.
23095
23096 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23097
23098 * lread.c (Vold_style_backquotes): New var.
23099 (syms_of_lread): Init and export it to Elisp.
23100 (read1): Set it when we find an old-style (back)quote.
23101
231022007-08-22 Jason Rumney <jasonr@gnu.org>
23103
23104 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23105
231062007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23107
23108 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23109
231102007-08-19 Richard Stallman <rms@gnu.org>
23111
23112 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23113
231142007-08-19 Andreas Schwab <schwab@suse.de>
23115
23116 * alloc.c (pure): Round PURESIZE up.
23117
231182007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23119
23120 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23121 active frame.
23122
231232007-08-16 Richard Stallman <rms@gnu.org>
23124
23125 * eval.c (Fcommandp): Add parens to clarify.
23126
23127 * minibuf.c (Fall_completions): Use enum for type of table.
23128
23129 * emacs.c (USAGE2): Improve text.
23130
231312007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23132
23133 * term.c (tty_default_color_capabilities): Declare static
23134 variables in file scope, to avoid HPUX compiler problem.
23135
231362007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23137
23138 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23139 to gtk_toolbar_insert.
23140
231412007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23142
23143 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23144
23145 * insdel.c (reset_var_on_error): New fun.
23146 (signal_before_change, signal_after_change):
23147 Use it to reset (after|before)-change-functions to nil in case of error.
23148 Bind inhibit-modification-hooks to t.
23149 Don't bind (after|before)-change-functions to nil while they run.
23150
231512007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23152
23153 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23154 filling pixmap with stippled background.
23155
231562007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23157
23158 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23159 Don't use invisible frame as parent window for repositioning.
23160
231612007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23162
23163 * print.c (new_backquote_output): Rename from old_backquote_output.
23164 (print): Inverse its logic (according to its name) so as to match the
23165 behavior of new_backquote_flag in lread.c.
23166
231672007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23168
23169 * gmalloc.c (posix_memalign): New function.
23170
23171 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23172 ActivateControl/DeactivateControl here.
23173 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23174 frame-notice-user-settings is non-nil.
23175 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23176 for kEventParamFMFontStyle.
23177 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23178 mac_pass_command_to_system and mac_pass_control_to_system here.
23179 (XTread_socket): Call ActivateControl/DeactivateControl here.
23180 (XTread_socket) [TARGET_API_MAC_CARBON]:
23181 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23182 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23183 for window repositioning.
23184
231852007-08-08 Glenn Morris <rgm@gnu.org>
23186
23187 * Replace `iff' in doc-strings and comments.
23188
231892007-08-07 Chong Yidong <cyd@stupidchicken.com>
23190
23191 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23192
231932007-08-07 Martin Rudalics <rudalics@gmx.at>
23194
23195 * fileio.c (Finsert_file_contents): Run format-decode and
23196 after_insert_file_functions on entire buffer when REPLACE is
23197 non-nil and inhibit modification_hooks and point_motion_hooks.
23198 For consistency, run after_insert_file_functions iff something
23199 got inserted. Move signal_after_change and update_compositions
23200 after code running after_insert_file_functions. Make sure that
23201 undo_list doesn't record intermediate steps of the decoding process.
23202
232032007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23204
23205 * emacs.c (main)
23206 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23207 Call malloc_enable_thread on interactive startup.
23208
23209 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23210 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23211 [USE_PTHREAD]: Conditionalize with it.
23212 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23213 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23214 New functions.
23215
232162007-08-06 Chong Yidong <cyd@stupidchicken.com>
23217
23218 * xdisp.c (redisplay_window): When restoring original buffer
23219 position, make sure it is still valid.
23220
23221 * image.c (png_load): Ignore png-supplied background color.
23222
232232007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23224
23225 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23226 Use kCFAbsoluteTimeIntervalSince1970.
23227
23228 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23229 New variable.
23230 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23231 event loop should be quit.
23232 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23233 Quit dialog event loop if quit_dialog_event_loop is set.
23234
23235 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23236 (Selection): New typedef. Use instead of ScrapRef.
23237 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23238 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23239 (mac_clear_selection): Rename from clear_scrap.
23240 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23241 scrap_has_target_type. All uses changed.
23242 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23243 (mac_selection_has_target_p): New functions.
23244 (mac_put_selection_value): Rename from put_scrap_string.
23245 (mac_get_selection_value): Rename from get_scrap_string.
23246 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23247 (put_scrap_private_timestamp, scrap_has_target_type)
23248 (get_scrap_private_timestamp): Remove functions.
23249 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23250 (x_own_selection, x_get_local_selection):
23251 Use mac_valid_selection_value_p.
23252 (x_own_selection): Don't use put_scrap_private_timestamp.
23253 Record OWNERSHIP-INFO into Vselection_alist instead.
23254 (x_get_local_selection): Don't check type if request is local.
23255 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23256 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23257
232582007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23259
23260 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23261 add comment explaining why.
23262
232632007-08-03 Richard Stallman <rms@gnu.org>
23264
23265 * fileio.c (Fvisited_file_modtime): Use make_time.
23266
232672007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23268
23269 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23270 build.
23271
232722007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23273
23274 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23275
232762007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23277
23278 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23279
232802007-07-30 Richard Stallman <rms@gnu.org>
23281
23282 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23283
232842007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23285
23286 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23287
232882007-07-28 Nick Roberts <nickrob@snap.net.nz>
23289
23290 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23291 remote default-directory.
23292
23293 * buffer.c (mode-line-format): Update doc string.
23294
232952007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23296
23297 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23298 scroll bar gap.
23299 (x_scroll_bar_create): Set bar->fringe_extended_p.
23300 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23301 on frame edge. Check fringe background extension. Don't clear
23302 extended fringe background area.
23303
23304 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23305 (w32_fill_area): Enclose multiple statements with do ... while (0).
23306
23307 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23308 Extend fringe background to scroll bar gap.
23309 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23310 Set bar->fringe_extended_p.
23311 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23312 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23313 background extension. Don't clear extended fringe background area.
23314
23315 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23316 New member fringe_extended_p.
23317
233182007-07-25 Glenn Morris <rgm@gnu.org>
23319
23320 * Relicense all FSF files to GPLv3 or later.
23321
23322 * COPYING: Switch to GPLv3.
23323
233242007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23325
23326 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23327
23328 * data.c (Finteractive_form): Check for the presence of an
23329 `interactive-form' symbol property more thoroughly.
23330
23331 * data.c (Finteractive_form): Use an `interactive-form' property if
23332 present, analogous to the function-documentation property.
23333
233342007-07-24 Jason Rumney <jasonr@gnu.org>
23335
23336 * w32fns.c (x_real_positions): Get real position from OS instead of
23337 calculating it.
23338
233392007-07-23 Jason Rumney <jasonr@gnu.org>
23340
23341 * filelock.c (current_lock_owner): Allow for @ sign in username.
23342
233432007-07-22 Nick Roberts <nickrob@snap.net.nz>
23344
23345 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23346 remote default-directory.
23347
23348 * buffer.c (mode-line-format): Describe above case in doc string.
23349
233502007-07-20 Eli Zaretskii <eliz@gnu.org>
23351
23352 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23353 Define if not defined.
23354
233552007-07-18 Jason Rumney <jasonr@gnu.org>
23356
23357 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23358
233592007-07-18 Richard Stallman <rms@gnu.org>
23360
23361 * data.c (Fsetq_default): Doc fix.
23362
23363 * eval.c (Fsetq): Doc fix.
23364
233652007-07-18 Juanma Barranquero <lekktu@gmail.com>
23366
23367 * coding.c (Ffind_operation_coding_system):
23368 * eval.c (For, Fand): Doc fixes.
23369 Reported by Johan Bockgård.
23370
233712007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23372
23373 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23374
23375 * xterm.h: Declare x_ewmh_activate_frame.
23376
23377 * xterm.c (x_ewmh_activate_frame): New function.
23378 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23379
233802007-07-17 Martin Rudalics <rudalics@gmx.at>
23381
23382 * window.c (Fdisplay_buffer): If largest or LRU window is the
23383 only window, split it even if it is not eligible for splitting.
23384 This restores the original behavior broken by the 2007-07-15
23385 change.
23386
233872007-07-17 Glenn Morris <rgm@gnu.org>
23388
23389 * abbrev.c (abbrev_check_chars): New function.
23390 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23391 Call abbrev_check_chars to check abbrev characters are word
23392 constituents. Doc fix.
23393
233942007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23395
23396 * process.c (Fstart_process, Fmake_network_process)
23397 (read_process_output): Fix up last changes.
23398
233992007-07-16 Eli Zaretskii <eliz@gnu.org>
23400
23401 * makefile.w32-in (clean): Don't delete *~.
23402
234032007-07-16 Andreas Schwab <schwab@suse.de>
23404
23405 * window.c (Fdisplay_buffer): Use NILP.
23406 (Fset_window_scroll_bars): Likewise.
23407
234082007-07-15 Martin Rudalics <rudalics@gmx.at>
23409
23410 * window.c (window_min_size_2): New function.
23411 (window_min_size_1, size_window, Fdisplay_buffer)
23412 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23413 windows without mode- or header-lines when window-min-height is
23414 too small.
23415 (size_window): Reset nodelete_p after testing it, following an
23416 earlier note by Kim F. Storm.
23417 (display_buffer): Do not set split_height_threshold to twice the
23418 value of window_min_height to avoid changing the value of a
23419 customizable variable. Rather explicitly check whether the
23420 height of the window that shall be splitted is at least as large
23421 as split_height_threshold.
23422 (Fwindow_full_width_p): New defun.
23423 (syms_of_window): Defsubr it.
23424
23425 * window.h: Add EXFUN for Fwindow_full_width_p.
23426
234272007-07-14 Jason Rumney <jasonr@gnu.org>
23428
23429 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23430
234312007-07-14 Richard Stallman <rms@gnu.org>
23432
23433 * eval.c (maybe_call_debugger): New function.
23434 (find_handler_clause): Use maybe_call_debugger.
23435 Call it when the handler says `debug'.
23436 Eliminate DEBUGGER_VALUE_PTR.
23437 (Fsignal): Eliminate debugger_value.
23438 (Qdebug): New variable.
23439 (syms_of_eval): Initialize it.
23440
234412007-07-14 Juanma Barranquero <lekktu@gmail.com>
23442
23443 * eval.c (Fprogn):
23444 * keyboard.c (Ftrack_mouse):
23445 * print.c (Fwith_output_to_temp_buffer):
23446 * window.c (Fsave_window_excursion): Doc fix.
23447
234482007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23449
23450 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23451
234522007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23453
23454 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23455 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23456 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23457 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23458 Remove unused encoding_carryover.
23459 * process.c: Adjust all functions accordingly.
23460
234612007-07-12 Richard Stallman <rms@gnu.org>
23462
23463 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23464
234652007-07-11 Jason Rumney <jasonr@gnu.org>
23466
23467 * makefile.w32-in (LIBS): Include OLE32.
23468
23469 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23470 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23471
234722007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23473
23474 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23475 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23476 from a Lisp_Object into a bare pointer.
23477 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23478 Adjust the code correspondingly.
23479
23480 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23481
23482 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23483 (term_show_mouse_face): Remove unused var `j'.
23484 (handle_one_term_event): Remove unused vars `i' and `j'.
23485 Don't cast return value of ttyname since it's not necessary.
23486
234872007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23488
23489 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23490 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23491
23492 * fns.c (map_char_table): Use an array of int for `indices' rather than
23493 an array of Lisp_Objects (which are only ever integers anyway).
23494 (Fmap_char_table): Update caller.
23495 * lisp.h: Update prototype.
23496 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23497 * fontset.c (Ffontset_info):
23498 * casetab.c (set_case_table): Update callers.
23499
23500 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23501
23502 * keymap.c (struct accessible_keymaps_data)
23503 (struct where_is_internal_data): New structures.
23504 (accessible_keymaps_1, where_is_internal_1): Use them to change
23505 interface to adhere to the one used by map_keymap.
23506 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23507 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23508
23509 * keymap.h (map_keymap_function_t): More informative prototype.
23510
235112007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23512
23513 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23514 (looking_at_1): Don't change search_regs and last_thing_searched
23515 if `inhibit-changing-match-data' is non-nil.
23516 (string_match_1, search_buffer, set_search_regs): Likewise.
23517 (syms_of_search): Add Lisp level definition for
23518 `inhibit-changing-match-data' and set it to nil.
23519 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23520 start and end of the match, instead of using values in search_regs.
23521
235222007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23523
23524 * minibuf.c (Fcompleting_read): New value `confirm-only'
23525 for `require-match'.
23526
235272007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23528
23529 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23530 part of the 2007-06-27 change to syms_of_fileio.
23531
235322007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23533
23534 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23535 Check WINDOWP before using XWINDOW. Consolidate return statements.
23536
235372007-06-27 Richard Stallman <rms@gnu.org>
23538
23539 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23540
235412007-06-27 Juanma Barranquero <lekktu@gmail.com>
23542
23543 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23544
235452007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23546
23547 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23548 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23549 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23550 (_free_internal, memalign): Use them.
23551 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23552 Initialize to PTHREAD_MUTEX_INITIALIZER.
23553 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23554 (morecore_nolock): Rename from morecore. All uses changed.
23555 Use only nolock versions of internal allocation functions.
23556 (_malloc_internal_nolock, _realloc_internal_nolock)
23557 (_free_internal_nolock): New functions created from
23558 _malloc_internal, _realloc_internal, and _free_internal.
23559 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23560 Copy hook value to automatic variable before its use.
23561 (memalign): Copy hook value to automatic variable before its use.
23562
235632007-06-26 Kenichi Handa <handa@m17n.org>
23564
23565 * coding.c (Ffind_operation_coding_system): Docstring improved.
23566 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23567
235682007-06-25 David Kastrup <dak@gnu.org>
23569
23570 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23571 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23572 cater for additional parameter.
23573
23574 * keymap.h: Adjust number of parameters to `current-active-maps'.
23575
23576 * doc.c (Fsubstitute_command_keys): Adjust call of
23577 `current-active-maps'.
23578
235792007-06-25 David Kastrup <dak@gnu.org>
23580
23581 * callint.c (Fcall_interactively): Make the parsing of interactive
23582 specs somewhat more readable.
23583
235842007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23585
23586 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23587 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23588 if extended background has already been filled.
23589
235902007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23591
23592 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23593 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23594
23595 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23596 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23597 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23598 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23599 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23600 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23601 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23602 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23603 Run timers during dialog popup.
23604 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23605
236062007-06-21 Jason Rumney <jasonr@gnu.org>
23607
23608 * image.c (convert_mono_to_color_image): Swap fore and background.
23609
236102007-06-20 Jason Rumney <jasonr@gnu.org>
23611
23612 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23613 (w32_free_bdf_font): Unmap memory not handle.
23614
236152007-06-20 Sam Steingold <sds@gnu.org>
23616
23617 * gmalloc.c (__morecore): Fix the declaration to comply with the
23618 definition.
23619
236202007-06-20 Juanma Barranquero <lekktu@gmail.com>
23621
23622 * w32term.c (w32_delete_display): Remove leftover declaration.
23623 (w32_define_cursor, w32_initialize): Make static.
23624
23625 * w32.c (_wsa_errlist): Fix typo in error message.
23626 (init_environment): Ignore any environment variable from the
23627 registry having a null value.
23628
236292007-06-20 Glenn Morris <rgm@gnu.org>
23630
23631 * Makefile.in (LIBGIF): Default to -lgif.
23632
236332007-06-17 Jason Rumney <jasonr@gnu.org>
23634
23635 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23636 unicode strings.
23637
236382007-06-16 Juanma Barranquero <lekktu@gmail.com>
23639
23640 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23641 Fix typo in docstring.
23642
236432007-06-16 Eli Zaretskii <eliz@gnu.org>
23644
23645 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23646 and their keybindings.
23647
236482007-06-15 Chong Yidong <cyd@stupidchicken.com>
23649
23650 * composite.c (update_compositions): Fix last fix.
23651
236522007-06-14 Jason Rumney <jasonr@gnu.org>
23653
23654 * w32.c (get_process_times_fn): New function pointer.
23655 (globals_of_w32): Intialize it if present in kernel32.dll.
23656 (w32_get_internal_run_time): New function.
23657
23658 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23659
236602007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23661
23662 * composite.c (update_compositions): Check the validness of
23663 compositions.
23664
236652007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23666
23667 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23668 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23669
23670 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23671 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23672
23673 * macgui.h (USE_MAC_TOOLBAR): New define.
23674
23675 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23676 Return immediately unless popup is activated.
23677
23678 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23679 background to scroll bar gap.
23680 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23681 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23682 scroll bars on frame edge. Check fringe background extension.
23683 Don't clear extended fringe background area.
23684 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23685 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23686 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23687 [USE_MAC_TOOLBAR]: New macros.
23688 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23689 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23690 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23691 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23692 [USE_MAC_TOOLBAR]: New functions.
23693 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23694 manually if previous repositioning has failed.
23695 (mac_handle_keyboard_event): Use precomputed event kind.
23696 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23697 as tool bar item click. Handle mouse movement over tool bar items.
23698
23699 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23700 toolbar_win_gravity.
23701 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23702 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23703 Add externs.
23704
23705 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23706 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23707
237082007-06-14 Chong Yidong <cyd@stupidchicken.com>
23709
23710 * image.c (search_image_cache): Remove unused variable.
23711
237122007-06-13 Chong Yidong <cyd@stupidchicken.com>
23713
23714 * xfns.c, xmenu.c: Link to xaw3d if available.
23715
237162007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23717
23718 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23719 frame_foreground and frame_background.
23720
23721 * image.c (lookup_image): Save frame foreground and background colors.
23722 (search_image_cache): Check if saved and current frame colors match.
23723
237242007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23725
23726 * regex.c (regex_compile): Remove the `regnum' counter.
23727 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23728
237292007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23730
23731 * term.c: Include intervals.h to declare Fget_text_property.
23732
237332007-06-10 Jason Rumney <jasonr@gnu.org>
23734
23735 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23736
237372007-06-08 Juanma Barranquero <lekktu@gmail.com>
23738
23739 * callint.c (Fcall_interactively):
23740 * editfns.c (Fdelete_and_extract_region):
23741 * fileio.c (Fread_file_name):
23742 * fns.c (Fmapconcat):
23743 * keyboard.c (cmd_error_internal):
23744 * keymap.c (Fkey_description):
23745 * lread.c (openp):
23746 * minibuf.c (read_minibuf):
23747 * search.c (wordify):
23748 * sunfns.c (sel_read):
23749 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23750 * xfns.c (x_default_scroll_bar_color_parameter):
23751 * xmenu.c (menu_help_callback):
23752 * xselect.c (Fx_get_atom_name):
23753 * xterm.c (x_term_init): Use empty_unibyte_string.
23754
237552007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23756
23757 * alloc.c (init_strings): Initialize canonical empty strings.
23758 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23759 canonical empty string when the requested size is 0.
23760
23761 * emacs.c (empty_unibyte_string): Rename from empty_string.
23762 (empty_multibyte_string): New canonical empty string.
23763 (syms_of_emacs): Don't initialize empty_string.
23764
23765 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23766 string, if appropriate.
23767 (empty_unibyte_string, empty_multibyte_string): New externs.
23768 (empty_string): Remove extern.
23769
23770 * lread.c (syms_of_lread): Use empty_unibyte_string.
23771
237722007-06-07 Jason Rumney <jasonr@gnu.org>
23773
23774 * s/ms-w32.h: Don't define HAVE_TZNAME.
23775
23776 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23777
237782007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23779
23780 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23781
23782 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23783 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23784
23785 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23786 Don't call next handler.
23787 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23788 Remove argument. Install handler to application.
23789 (set_frame_menubar): Don't change deep_p.
23790 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23791 FRAME_OUTER_TO_INNER_DIFF_Y.
23792 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23793 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23794 [HAVE_DIALOGS]: New macros.
23795 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23796 Use them.
23797 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23798
23799 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23800 init_service_handler. All callers changed. Return OSStatus value.
23801
23802 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23803 All callers changed so as not to call SetPortWindowPort.
23804 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23805 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23806 mac_draw_string_common.
23807 (mac_draw_image_string_qd): Likewise.
23808 (mac_draw_string_common): Use them. Add INLINE.
23809 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23810 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23811 GetGlobalMouse.
23812 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23813 and FRAME_OUTER_TO_INNER_DIFF_Y.
23814 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23815 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23816 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23817 repositioning window to mac_handle_window_event.
23818 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23819 saving window location to mac_handle_window_event
23820 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23821 (install_menu_target_item_handler): Remove argument in extern.
23822 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23823 Also accept command events.
23824 (do_keystroke): New function created from XTread_socket.
23825 (init_command_handler): Remove functions.
23826 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23827 and save window location by kEventWindowShowing and kEventWindowHiding
23828 handlers here. Don't call next handler for window state change and
23829 focus events.
23830 (mac_handle_application_event, mac_handle_keyboard_event)
23831 [TARGET_API_MAC_CARBON]: New functions.
23832 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23833 kEventWindowShowing and kEventWindowHiding events. Move installation
23834 of mouse, font, text input and menu target item handlers to
23835 install_application_handler.
23836 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23837 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23838 New function.
23839 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23840 Register it.
23841 (XTread_socket) [TARGET_API_MAC_CARBON]:
23842 Consolidate SendEventToEventTarget calls.
23843 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23844 Move application activation handler to mac_handle_application_event.
23845 Move keyboard handler to mac_handle_keyboard_event.
23846 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23847 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23848 init_command_handler. Call install_application_handler.
23849
23850 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23851 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23852
238532007-06-07 Glenn Morris <rgm@gnu.org>
23854
23855 * emacs.c (main): Use `emacs-copyright' in --version output.
23856
238572007-06-06 Chong Yidong <cyd@stupidchicken.com>
23858
23859 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23860
238612007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23862
23863 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23864
23865 * macgui.h: Replace WindowPtr with WindowRef.
23866
23867 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23868 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23869 Replace ControlHandle with ControlRef.
23870 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23871
23872 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23873 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23874 Replace ControlHandle with ControlRef.
23875 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23876 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23877
23878 * macterm.h (struct scroll_bar): Rename member control_handle_low
23879 and control_handle_high to control_ref_low and control_ref_high.
23880 All uses changed.
23881 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23882 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23883 respectively. All uses changed.
23884 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23885 (install_window_handler, remove_window_handler): Replace WindowPtr
23886 with WindowRef in externs.
23887
238882007-06-05 Juanma Barranquero <lekktu@gmail.com>
23889
23890 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23891
238922007-06-03 Nick Roberts <nickrob@snap.net.nz>
23893
23894 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23895
23896 * frame.c (Fmouse_position, Fmouse_pixel_position):
23897 Condition on HAVE_GPM too.
23898
23899 * term.c (term_mouse_highlight): Remove unused variables.
23900 (Fterm_open_connection): Set gpm_zerobased to 1.
23901 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23902 Use zero based co-ordinates.
23903 (handle_one_term_event): Report a drag as mouse movement too.
23904
23905 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23906
239072007-06-03 Chong Yidong <cyd@stupidchicken.com>
23908
23909 * image.c (search_image_cache): New function. Require background
23910 color match if background color is unspecified in the image spec.
23911 (uncache_image, lookup_image): Use it.
23912
239132007-06-01 Juanma Barranquero <lekktu@gmail.com>
23914
23915 * window.c (Fshrink_window): Reflow docstring.
23916
239172007-06-02 Chong Yidong <cyd@stupidchicken.com>
23918
23919 * Version 22.1 released.
23920
239212007-06-01 Richard Stallman <rms@gnu.org>
23922
23923 * xfns.c (x_encode_text): Add GCPRO.
23924
239252007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23926
23927 * xfns.c (x_set_name_internal): Save encoded name before
23928 x_encode_text in case string data is relocated.
23929
239302007-05-31 Richard Stallman <rms@gnu.org>
23931
23932 * buffer.c (syms_of_buffer): Doc fix.
23933
239342007-05-30 Nick Roberts <nickrob@snap.net.nz>
23935
23936 * sysdep.c (init_sys_modes): Add rather than replace with
23937 O_NONBLOCK.
23938
23939 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23940 term_mouse_moveto.
23941
23942 * termhooks.h (term_mouse_moveto): New extern.
23943
23944 * term.c (mouse_face_window): Rename...
23945 (Qmouse_face_window): ...to this.
23946 (term_show_mouse_face, term_clear_mouse_face)
23947 (term_mouse_highlight): Use Qmouse_face_window.
23948 (term_mouse_moveto): New function.
23949 (term_mouse_position): Make it work.
23950 (syms_of_term): Uncomment assignment to mouse_position_hook.
23951 Staticpro Qmouse_face_window.
23952
239532007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23954
23955 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23956 around current_column call.
23957
239582007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23959
23960 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23961 * xdisp.c (next_element_from_buffer):
23962 * window.c (delete_window):
23963 * term.c (term_mouse_highlight):
23964 * msdos.c (getdefdir):
23965 * macterm.c (mac_create_bitmap_from_bitmap_data)
23966 (init_font_name_table):
23967 * fns.c (Fsxhash):
23968 * data.c (Fmake_local_variable):
23969 * ccl.c (ccl_driver): Likewise.
23970
239712007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23972
23973 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23974 Call mac_wakeup_from_rne on window size change.
23975
239762007-05-25 Chong Yidong <cyd@stupidchicken.com>
23977
23978 * image.c (uncache_image): Fix typo.
23979
239802007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23981
23982 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23983
239842007-05-22 Richard Stallman <rms@gnu.org>
23985
23986 * xterm.c (x_connection_closed): Remove NO_RETURN.
23987
239882007-05-22 Martin Rudalics <rudalics@gmx.at>
23989
23990 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23991
239922007-05-21 Chong Yidong <cyd@stupidchicken.com>
23993
23994 * image.c (uncache_image): New function.
23995 (Fimage_refresh): New function.
23996
239972007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23998
23999 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24000
240012007-05-20 Nick Roberts <nickrob@snap.net.nz>
24002
24003 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24004 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24005
240062007-05-20 Nick Roberts <nickrob@snap.net.nz>
24007
24008 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24009 conditional on [HAVE_GPM_H].
24010
240112007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24012
24013 * syntax.c (skip_chars): Update syntax-table only after we checked that
24014 the new location is valid.
24015
240162007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24017
24018 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24019 mac_get_window_bounds.
24020
240212007-05-20 Nick Roberts <nickrob@snap.net.nz>
24022
24023 * Makefile.in (LIBGPM): Allow it to be set from configure.
24024 If set then link Emacs with it.
24025
24026 * config.in: Regenerate.
24027
24028 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24029 New externs.
24030
24031 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24032 Include gpm.h.
24033 (handle_one_term_event, term_gpm): New externs.
24034
24035 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24036 and allow it to be interrupted by SIGIO.
24037
24038 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24039 (wait_reading_process_output): Wait on gpm_fd too.
24040 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24041 (add_gpm_wait_descriptor_called_flag): New variable.
24042 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24043
24044 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24045 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24046 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24047 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24048 (make_lispy_event): Add case GPM_CLICK_EVENT.
24049 (read_avail_input): Handle mouse input.
24050
24051 * term.c (write_glyphs_with_face): New function.
24052 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24053 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24054 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24055 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24056 (last_mouse_x, last_mouse_y): New variables.
24057 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24058 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24059 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24060 (Fterm_close_connection): New functions.
24061 (term_init): Initialise mouse_face_window.
24062
240632007-05-19 Chong Yidong <cyd@stupidchicken.com>
24064
24065 * xdisp.c (redisplay_window): If first window line is a
24066 continuation line, recompute the new window start instead of
24067 recentering.
24068
240692007-05-18 Glenn Morris <rgm@gnu.org>
24070
24071 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24072 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24073
240742007-05-17 Glenn Morris <rgm@gnu.org>
24075
24076 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24077
240782007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24079
24080 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24081 dead key repeat and up events.
24082
240832007-05-14 Chong Yidong <cyd@stupidchicken.com>
24084
24085 * image.c (pbm_load): Check image size for monochrome pbm.
24086
240872007-05-13 Chong Yidong <cyd@stupidchicken.com>
24088
24089 * xterm.c (XTread_socket): Revert last change.
24090
240912007-05-12 Chong Yidong <cyd@stupidchicken.com>
24092
24093 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24094
24095 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24096
240972007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24098
24099 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24100 mixup (YAILOM).
24101
241022007-05-07 Andreas Schwab <schwab@suse.de>
24103
24104 * keymap.c (Flookup_key): Fix typo in last change.
24105
241062007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24107
24108 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24109 mapping for unibyte strings.
24110
241112007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24112
24113 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24114 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24115
241162007-04-29 Richard Stallman <rms@gnu.org>
24117
24118 * insdel.c (replace_range): For undo, record insertion first.
24119
241202007-04-29 Andreas Schwab <schwab@suse.de>
24121
24122 * lisp.h (VECSIZE): Use OFFSETOF.
24123
241242007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24125
24126 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24127 disabled lines.
24128
241292007-04-28 Richard Stallman <rms@gnu.org>
24130
24131 * lread.c (read_escape): In a string, \s is always space.
24132
241332007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24134
24135 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24136
24137 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24138 submenu for menu bar items.
24139
24140See ChangeLog.10 for earlier changes.
24141
24142;; Local Variables:
24143;; coding: utf-8
24144;; add-log-time-zone-rule: t
aac0c6e3
MR
24145;; End:
24146
e3eb1dae 24147 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24148
24149 This file is part of GNU Emacs.
24150
24151 GNU Emacs is free software: you can redistribute it and/or modify
24152 it under the terms of the GNU General Public License as published by
24153 the Free Software Foundation, either version 3 of the License, or
24154 (at your option) any later version.
24155
24156 GNU Emacs is distributed in the hope that it will be useful,
24157 but WITHOUT ANY WARRANTY; without even the implied warranty of
24158 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24159 GNU General Public License for more details.
24160
24161 You should have received a copy of the GNU General Public License
24162 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24163
24164;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40