Minor simplification.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e9b7ab96
JD
12010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xfns.c (x_default_font_parameter): Try to open font from system
4 before using it (bug#6478). Rename got_from_gconf to got_from_system.
5
32a679fd
JD
62010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
7
8 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
9
70c4cfbb
EZ
102010-06-20 Eli Zaretskii <eliz@gnu.org>
11
12 * xdisp.c (try_scrolling): When scroll-conservatively is set to
13 most-positive-fixnum, be extra accurate when scrolling window
14 start, to avoid missing the cursor line.
15
ad5a12b5
EZ
162010-06-19 Eli Zaretskii <eliz@gnu.org>
17
18 * xdisp.c (try_scrolling): Compute the limit for searching point
19 in forward scroll from scroll_max, instead of an arbitrary limit
20 of 10 screen lines. See
21 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
22 and
23 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
24 for details.
25
2a64315a 262010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
27
28 * editfns.c (Fbyte_to_string): Pacify compiler.
29
288cf4e9
SM
302010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
31
32 * lread.c (read1): Phase out old-style backquotes a bit more.
33
6e6e5760
EZ
342010-06-12 Eli Zaretskii <eliz@gnu.org>
35
cbc4fd20
EZ
36 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
37 bidimirror.h.
38
39 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
40
317fbf33
EZ
41 * bidi.c (bidi_initialize): Remove explicit initialization of
42 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 43 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 44 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
45
46 * biditype.h: New file.
47
cbc4fd20
EZ
48 * bidimirror.h: New file.
49
6e6e5760
EZ
50 * window.c (syms_of_window): Doc fix (bug#6409).
51
4176cba2
RF
522010-06-12 Romain Francoise <romain@orebokech.com>
53
54 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
55 ediff-hook.
56
cb4bfcb5
GM
572010-06-10 Glenn Morris <rgm@gnu.org>
58
64c60c2f
GM
59 * editfns.c (Fbyte_to_string): Pacify compiler.
60
cb4bfcb5
GM
61 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
62
e454a4a3
SM
632010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
64
65 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
66 Check `object's type before accessing its guts.
67
c1b1acc2
DN
682010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
69
70 * s/usg5-4.h: Fix previous change.
71 Suggested by Lawrence Mitchell <wence@gmx.li>
72
657d4c0b
AS
732010-06-08 Andreas Schwab <schwab@linux-m68k.org>
74
75 * minibuf.c (Fall_completions): Add more checks.
76
9b27fd9f
JB
772010-06-08 Juanma Barranquero <lekktu@gmail.com>
78
79 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
80
a99ebb40
DN
812010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
82
d7c5d87d
DN
83 * lread.c (X_OK): Remove, unused.
84
0263a941
DN
85 * dispnew.c: Remove obsolete comment.
86
a99ebb40
DN
87 Remove INCLUDED_FCNTL.
88 * xterm.c (INCLUDED_FCNTL):
89 * callproc.c (INCLUDED_FCNTL):
90 * alloc.c (INCLUDED_FCNTL):
91 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
92 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
93
13b5221f
MR
942010-06-07 Martin Rudalics <rudalics@gmx.at>
95
96 * window.c (Fselect_window): Move `record_buffer' up to the
97 beginning of this function, so the buffer gets recorded
98 even if the selected window does not change.
99 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
100
5220357f
JB
1012010-06-07 Juanma Barranquero <lekktu@gmail.com>
102
103 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
104 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
105
3085237c
DN
1062010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
107
108 Remove BSTRING related code, all platforms define it.
109 * s/usg5-4.h (BSTRING): Remove definition.
110 * s/template.h (BSTRING):
111 * s/msdos.h (BSTRING):
112 * s/ms-w32.h (BSTRING):
113 * s/hpux10-20.h (BSTRING):
114 * s/gnu-linux.h (BSTRING):
115 * s/darwin.h (BSTRING):
116 * s/cygwin.h (BSTRING):
117 * s/bsd-common.h (BSTRING):
118 * s/aix4-2.h (BSTRING): Likewise.
119 * sysdep.c: Remove code depending on BSTRING not being defined.
120
409f2919
JB
1212010-06-05 Juanma Barranquero <lekktu@gmail.com>
122
123 Remove obsolete macro BASE_LEADING_CODE_P.
124 * character.h (BASE_LEADING_CODE_P): Remove.
125 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
126 * buffer.c (Fset_buffer_multibyte):
127 * indent.c (scan_for_column, compute_motion):
128 * insdel.c (count_combining_before, count_combining_after):
129 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
130
087fc47a
JB
1312010-06-04 Juanma Barranquero <lekktu@gmail.com>
132
133 Turn `directory-sep-char' into a noop.
134
135 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
136 (DIRECTORY_SEP): Define unconditionally.
137
138 * s/ms-w32.h (DIRECTORY_SEP): Remove.
139
140 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
141 call dostounix_filename directly.
142
143 * fileio.c (CORRECT_DIR_SEPS): Remove.
144 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
145 (Fsubstitute_in_file_name): Use dostounix_filename instead.
146 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
147 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
148
149 * w32proc.c (CORRECT_DIR_SEPS): Remove.
150 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
151
0eb7675e
AS
1522010-06-03 Andreas Schwab <schwab@linux-m68k.org>
153
154 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 155 address. (Bug#6346)
0eb7675e 156
78edd3b7
JB
1572010-06-03 Juanma Barranquero <lekktu@gmail.com>
158
159 * ccl.c (Fccl_program_p): Fix typo in docstring.
160
eb697db5
DN
1612010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
162
163 Move UNEXEC definition to autoconf.
164 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
165 * s/sol2-10.h (UNEXEC):
166 * s/irix6-5.h (UNEXEC):
167 * s/hpux10-20.h (UNEXEC):
168 * s/gnu-linux.h (UNEXEC):
169 * s/darwin.h (UNEXEC):
170 * s/cygwin.h (UNEXEC):
171 * s/bsd-common.h (UNEXEC):
172 * s/aix4-2.h (UNEXEC):
173 * m/alpha.h (UNEXEC): Likewise.
174 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
175
aa3830c4
JB
1762010-06-03 Juanma Barranquero <lekktu@gmail.com>
177
178 Remove obsolete pre-unicode2 macros.
179 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
180 * composite.c (composition_reseat_it):
181 * data.c (Faset):
182 * fns.c (Ffillarray):
183 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
184 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
185
d234d13e
JL
1862010-06-03 Juri Linkov <juri@jurta.org>
187
188 * buffer.c (Fother_buffer): Add CHECK_FRAME.
189 (Fswitch_to_buffer): Remove unused variable `err'.
190
0d4bcf4d
GM
1912010-06-03 Glenn Morris <rgm@gnu.org>
192
e23dc1e2
GM
193 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
194
05b09564
GM
195 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
196 now that AH_BOTTOM does it.
197
824e2978
GM
198 * m/hp800.h (HAVE_ALLOCA):
199 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
200
0d4bcf4d
GM
201 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
202 Remove NOT_C_CODE tests, it is always true now.
203
c55d2abf
DN
2042010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
205
08a494a3
DN
206 Fix config.h includes.
207 * xsettings.c:
208 * xgselect.c:
209 * nsterm.m:
210 * nsselect.m:
211 * nsimage.m:
212 * nsfont.m:
213 * nsfns.m:
214 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
215 other files do.
216
75934b1d
DN
217 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
218
9f32a766
DN
219 * s/sol2-6.h: Remove obsolete comments.
220
c55d2abf
DN
221 Remove unnecessary alloca.h includes.
222 * keymap.c: Do not include alloca.h, config.h does that.
223 * sysdep.c: Likewise. Do not define fwrite, not used.
224
06ac62b4
SM
2252010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
226
227 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
228 the HAVE_TERMIO where it belongs (bug#6149).
229
1ab8293c
SM
2302010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
231
232 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
233 of bug#6305).
234
6dcfd253
EZ
2352010-05-30 Eli Zaretskii <eliz@gnu.org>
236
237 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
238 state is always cached (bug#6306).
239
6d26bbb2
EZ
2402010-05-29 Eli Zaretskii <eliz@gnu.org>
241
06fa4a23
EZ
242 Fix cursor motion in bidi-reordered continued lines.
243 * xdisp.c (try_cursor_movement): Backup to non-continuation line
244 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
245 over continuation lines in bidi-reordered buffers. Return
246 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
247 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
248
f5783df3
MA
2492010-05-28 Michael Albinus <michael.albinus@gmx.de>
250
251 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
252
7d56b2dd
KH
2532010-05-28 Kenichi Handa <handa@m17n.org>
254
255 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
256 Don't sheck SPEC if it is nil.
257 (font_list_entities): Call font_delete_unmatched if
b925d231 258 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 259
e58d4ff7
GM
2602010-05-28 Glenn Morris <rgm@gnu.org>
261
262 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
263
f1a5d776
CY
2642010-05-27 Chong Yidong <cyd@stupidchicken.com>
265
266 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
267 whether to trash.
268 (internal_delete_file, Frename_file): Callers changed.
269 (delete_by_moving_to_trash): Doc fix.
270 (Fdelete_directory_internal): Don't move to trash.
271
272 * callproc.c (delete_temp_file):
273 * buffer.c (Fkill_buffer): Callers changed.
274
275 * lisp.h: Update prototype.
276
f44a59e6
CY
2772010-05-27 Chong Yidong <cyd@stupidchicken.com>
278
279 * xdisp.c (redisplay_window): After redisplay, check if point is
280 still valid before setting it (Bug#6177).
281
81ac4f35
GM
2822010-05-27 Glenn Morris <rgm@gnu.org>
283
284 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
285 Convert comments to Makefile format.
286
287 * Makefile.in (bootstrap-clean): No more Makefile.c.
288
ccd89fb3
GM
2892010-05-26 Glenn Morris <rgm@gnu.org>
290
90278cb6
GM
291 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
292 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
293
ccd89fb3
GM
294 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
295 Remove.
296 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
297
b7050583
KH
2982010-05-26 Kenichi Handa <handa@m17n.org>
299
300 * composite.c (composition_compute_stop_pos): Fix condition for
301 backward scanning.
302
e5458003
GM
3032010-05-25 Glenn Morris <rgm@gnu.org>
304
c345fe90
GM
305 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
306 Move before TEMACS_LDFLAGS.
307 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
308 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
309
2e0689ab
GM
310 * Makefile.in (NOT_C_CODE): No longer define.
311 (config.h): No longer include.
312
8009a5e8
GM
313 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
314 variables it may reference.
315
e5458003
GM
316 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
317 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
318
10f72a37
KH
3192010-05-25 Kenichi Handa <handa@m17n.org>
320
321 * dispextern.h (struct composition_it): New members rule_idx and
322 charpos.
323
324 * xdisp.c (set_iterator_to_next): While scanning backward, assume
325 that the character positions of IT point the last character of the
326 current grapheme cluster.
327 (next_element_from_composition): Don't change character positions
328 of IT.
329 (append_composite_glyph): Set glyph->charpos to
330 it->cmp_it.charpos.
331
332 * composite.c (autocmp_chars): Change the first argument to RULE,
333 and try composition with RULE only.
334 (composition_compute_stop_pos): Record the index number of the
335 composition rule in CMP_IT->rule_idx.
336 (composition_reseat_it): Call autocmp_chars repeatedly until the
337 correct rule of the composition is found.
338 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
339 is at the last character of the current grapheme cluster when
340 CMP_IT->reversed_p is nonzero.
341
171eda53 3422010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 343
171eda53
SM
344 * editfns.c (Fbyte_to_string): New function.
345
66a9f7f4
SM
3462010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
347
348 * process.c (Fmake_network_process): Set :host to nil if it's not used.
349 Suggested by Masatake YAMATO <yamato@redhat.com>.
350
d8c315d1
EZ
3512010-05-23 Eli Zaretskii <eliz@gnu.org>
352
171eda53 353 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 354
f5b416d2 3552010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
356
357 * s/netbsd.h: If terminfo is found, use it in preference to
358 termcap. (Bug#6190) [Backport from trunk]
359
0416466c
EZ
3602010-05-19 Eli Zaretskii <eliz@gnu.org>
361
11117830 362 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
363
364 * dispextern.h (struct glyph_row): New members minpos and maxpos.
365 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
366 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
367 and maxpos members instead of start.pos and end.pos, respectively.
368
369 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
370 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
371 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
372 (try_window_reusing_current_matrix, try_window_id):
373 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
374 (init_from_display_pos, init_iterator): Use EMACS_INT for
375 character and byte positions.
66a9f7f4 376 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
377 arguments for minimum and maximum buffer positions seen by
378 display_line for this row. Don't use iterator to find the
379 position following the maximum one; instead, increment the
11117830
EZ
380 position found by display_line directly. Fix logic; eol_pos
381 should be tested before the rest. Handle the case of characters
382 delivered from display vector (bug#6036). Fix tests related to
383 it->method. Handle the truncated_on_right_p rows.
384 (RECORD_MAX_MIN_POS): New macro.
385 (display_line): Use it to record the minimum and maximum buffer
386 positions for glyphs in the row being assembled. Record the
387 position of the newline that terminates the line. If word wrap is
388 in effect, restore minimum and maximum positions seen up to the
389 wrap point, when iterator returns to it.
390 (try_window_reusing_current_matrix): Give up if in bidi-reordered
391 row and cursor not already at point. Restore original pre-bidi
392 code for unidirectional buffers.
d36fe237
EZ
393
394 * dispnew.c (increment_row_positions, check_matrix_invariants):
395 Increment and check row->start.pos and row->end.pos, in addition
396 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
397
11117830
EZ
398 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
399 Display truncated_on_left_p and truncated_on_right_p flags.
400 Formatting fixes.
401 (pmtxrows): Display the ordinal number of each row. Don't display
402 rows beyond the last one.
403
404 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
405 it is not copied by bidi_copy_it.
406
6e83d800
EZ
4072010-05-22 Eli Zaretskii <eliz@gnu.org>
408
409 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
410 (Bug#6237)
411
110683ad
CY
4122010-05-22 Chong Yidong <cyd@stupidchicken.com>
413
414 * image.c (Fimage_flush): Rename from image-refresh.
415
98fe5161
CY
4162010-05-21 Chong Yidong <cyd@stupidchicken.com>
417
418 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
419 just one window.
420
421 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
422 (clear_image_cache): If the number of cached images is unusually
423 large, decrease the cache eviction delay (Bug#6230).
424
e8752c66
GM
4252010-05-21 Glenn Morris <rgm@gnu.org>
426
66dbf213
GM
427 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
428 Move these rules to ns.mk.
429 * ns.mk: New file.
430
04384b2d
GM
431 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
432
e8752c66
GM
433 * Makefile.in (CANNOT_DUMP): New, set by configure.
434 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
435
2e2bbddb
JL
4362010-05-20 Juri Linkov <juri@jurta.org>
437
438 * fileio.c (Fdelete_file): Change interative spec to use
439 `read-file-name' like in `find-file-read-args' where the default
440 value is `default-directory' instead of `buffer-file-name'.
441 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
442
31c4aaf6
KR
4432010-05-20 Kevin Ryde <user42@zip.com.au>
444
445 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
446 (Voverriding_terminal_local_map, Vsystem_key_alist)
447 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
448
9d5cf9b6
GM
4492010-05-20 Glenn Morris <rgm@gnu.org>
450
451 * Makefile.in (DEPDIR): New constant.
452 (DEPFLAGS): Set with configure, not cpp.
453 (MKDEPDIR): New, set by configure.
454 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
455 (clean): Use $DEPDIR.
456 (deps_frag): Include from configure.
457 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
458 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
459
ead6f8f5
EZ
460 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
461 reallocation of the cache. (Bug#6210)
462
7f34aec3
GM
4632010-05-19 Glenn Morris <rgm@gnu.org>
464
d494e8f2
GM
465 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
466
c1d0dcfd
GM
467 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
468 (GNULIB_VAR): Remove.
469 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
470
471 * m/ibms390x.h (LINKER):
472 * m/macppc.h (LINKER) [GNU_LINUX]:
473 * s/aix4-2.h (ORDINARY_LINK):
474 * s/cygwin.h (LINKER):
475 * s/darwin.h (ORDINARY_LINK):
476 * s/gnu.h (ORDINARY_LINK):
477 * s/netbsd.h (LINKER):
478 * s/usg5-4.h (ORDINARY_LINK):
479 Move to configure.
480
7f34aec3
GM
481 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
482
754790b6
CY
4832010-05-18 Chong Yidong <cyd@stupidchicken.com>
484
485 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
486 prevent stack overflow if number of arguments is too large
487 (Bug#6214).
488
161e44d1
JB
4892010-05-18 Juanma Barranquero <lekktu@gmail.com>
490
491 * charset.c (load_charset_map_from_file): Don't call close after fclose.
492
be4ff9da
GM
4932010-05-18 Glenn Morris <rgm@gnu.org>
494
9539dc5d
GM
495 * s/gnu-linux.h: Combine two conditionals.
496
497 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
498 $(POST_ALLOC_OBJ).
499
40dc6bf4
GM
500 * Makefile.in (RALLOC_OBJ): New, set by configure.
501 (rallocobj): Replace with the previous variable.
502 (otherobj): Use $RALLOC_OBJ.
503
504 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
505 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
506
be4ff9da
GM
507 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
508 (gmallocobj, vmlimitobj): Replace with previous two variables.
509 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
510
16455a85
GM
5112010-05-17 Glenn Morris <rgm@gnu.org>
512
513 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
514 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
515
5fdb7468
GM
5162010-05-16 Glenn Morris <rgm@gnu.org>
517
7ca1f3f9
GM
518 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
519
7541dad5
GM
520 * Makefile.in (clean): Get rid of HAVE_NS conditional.
521
da53fab9
GM
522 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
523 trailing "/".
524
b02a6645
GM
525 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
526 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
527
8877ca0f
GM
528 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
529 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
530 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
531 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
532 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
533
5fdb7468
GM
534 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
535 Remove ${STARTFLAGS}, nothing ever sets it.
536
95adb4b1
DN
5372010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
538
539 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
540
676b6304
GM
5412010-05-16 Glenn Morris <rgm@gnu.org>
542
9beab9ce
GM
543 * Makefile.in (LIBX_BASE): Always define.
544
8a95f0e7
GM
545 * Makefile.in (LIBX_OTHER): Move out of cpp section.
546
676b6304
GM
547 * Makefile.in (LIBXT): Always define.
548
6e546d18
GM
5492010-05-15 Glenn Morris <rgm@gnu.org>
550
4235ca47 551 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 552
6e546d18
GM
553 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
554 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
555
8c5ff6dd
KR
5562010-05-15 Ken Raeburn <raeburn@raeburn.org>
557
560bb7ae 558 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
559 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
560
8b4eb796
KR
561 * emacs.c (main): Initialize initial-environment and
562 process-environment before generating from env, not after.
563
8c5ff6dd
KR
564 Handle --version reasonably in CANNOT_DUMP configuration.
565 * emacs.c (emacs_version, emacs_copyright): New string variables.
566 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
567 (syms_of_emacs): Defvar them, and initialize them from the C
568 string variables.
569 (main): If initialization hasn't been done, print initial version
570 info from the C strings, instead of starting an interactive session.
571
dbd3f723
EZ
5722010-05-15 Eli Zaretskii <eliz@gnu.org>
573
d20e1419
EZ
574 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
575 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
576 (bidi_paragraph_init): Remove redundant assertion that we are at
577 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
578
579 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
580 (syms_of_xdisp): Defsubr it.
581
d36fe237
EZ
582 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
583
dbd3f723
EZ
584 * Makefile.in: Fix MSDOS-related comments.
585
02be533b
GM
5862010-05-15 Glenn Morris <rgm@gnu.org>
587
1a82cca9
GM
588 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
589 (really-lwlib, really-oldXMenu): Always define.
590 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
591
3df7b338
GM
592 * Makefile.in: Simplify cpp conditional.
593
2b5f541b
GM
594 * Makefile.in (${ns_appdir}): Simplify using umask.
595
02be533b
GM
596 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
597
4e2db1fe
SM
5982010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
599
600 * eval.c (specbind): Remove left-over duplicate test.
601 Disallow let-binding frame-local vars. Add comment.
602
4b292a22
EZ
6032010-05-14 Eli Zaretskii <eliz@gnu.org>
604
2fe72643 605 Make the cache of bidi iterator states dynamically allocated.
1edbd309 606 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
607 (bidi_init_it): Call it.
608 (bidi_cache_iterator_state): Enlarge the cache if needed.
609
4e2db1fe 610 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
611 bidi_get_next_char_visually. All callers changed.
612
82ebc97b
KH
6132010-05-14 Kenichi Handa <handa@m17n.org>
614
615 * dispextern.h (struct composition_it): New member reversed_p.
616
617 * composite.c (composition_compute_stop_pos): Search backward if
618 ENDPOS < CHARPOS.
619 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
620 Set CMP_IT->reversed_p.
b4b6e17e 621 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 622
4e2db1fe
SM
623 * xdisp.c (set_iterator_to_next):
624 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
625 scanning backward. Call composition_compute_stop_pos if scan
626 direction is changed.
627 (next_element_from_buffer): Call composition_compute_stop_pos with
628 negative ENDPOS if we are scanning backward.
629 (next_element_from_composition): Pay attention to
630 IT->cmp_it.reversed_p.
631
0e5d7800
KH
6322010-05-14 Kenichi Handa <handa@m17n.org>
633
560bb7ae 634 * font.c (font_range): Return the range for the font found at first.
0e5d7800 635
cb027b32
GM
6362010-05-14 Glenn Morris <rgm@gnu.org>
637
177b0288
GM
638 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
639
fbc00890
GM
640 * Makefile.in (mktime, X11, register): Move undefs to configure.
641
f14d1dfd
GM
642 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
643 (MSDOS_X_OBJ): New variable.
644 (MSDOS_SUPPORT_REAL): New constant.
645 (MSDOS_SUPPORT): Set as a variable, not with cpp.
646 (obj): Use MSDOS_X_OBJ.
647 (lisp): Use MSDOS_SUPPORT as a variable.
648
11842bd8
GM
649 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
650 (GPM_MOUSE_SUPPORT): Now it's a constant.
651 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
652 not cpp.
653
489d31a4 654 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 655 (ns_appresdir): Remove, unused.
e20f1f07 656
489d31a4
GM
657 * Makefile.in (SHELL): Move outside cpp section.
658
cb027b32
GM
659 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
660
5a903aa9
GM
6612010-05-13 Glenn Morris <rgm@gnu.org>
662
3369c79f
GM
663 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
664 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
665
d5e982a6
GM
666 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
667 HAVE_WINDOW_SYSTEM must be too.
668
6192e163
GM
669 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
670 (lisp): Remove WINNT_SUPPORT.
671
472c5d6b
GM
672 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
673 Let configure set these variables (to empty) in this case as well.
674
0116466b
GM
675 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
676 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
677
5a903aa9
GM
678 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
679 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
680 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
681 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
682 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 683 the values output by configure.
5a903aa9
GM
684 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
685
1a0d7c06
GM
6862010-05-12 Glenn Morris <rgm@gnu.org>
687
b5457f14
GM
688 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
689 (LINKER_WAS_SPECIFIED): Remove.
690
1a0d7c06
GM
691 * Makefile.in (LIB_GCC): Set using configure, not cpp.
692 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
693 * m/arm.h (LIB_GCC) [GNU_LINUX]:
694 * s/cygwin.h (LIB_GCC):
695 * s/freebsd.h (LIB_GCC):
696 * s/gnu-linux.h (LIB_GCC):
697 * s/msdos.h (LIB_GCC):
698 * s/netbsd.h (LIB_GCC):
699 Move to configure.
700
3ffd4615 7012010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
702
703 * ftfont.c: Fix incorrect parentheses of #if condition for
704 definining M17N_FLT_USE_NEW_FEATURE.
705
acddf8ae
GM
7062010-05-11 Glenn Morris <rgm@gnu.org>
707
708 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
709 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
710
ae5e04fa
EZ
7112010-05-10 Eli Zaretskii <eliz@gnu.org>
712
713 * xdisp.c (init_iterator): Don't turn on bidi reordering in
714 unibyte buffers. See
715 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
716
7490175b
GM
7172010-05-10 Glenn Morris <rgm@gnu.org>
718
97efb629
GM
719 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
720 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
721 (LIBES): Use LIBS_SYSTEM as a variable.
722 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
723 * s/aix4-2.h (LIBS_SYSTEM):
724 * s/freebsd.h (LIBS_SYSTEM):
725 * s/hpux10-20.h (LIBS_SYSTEM):
726 * s/sol2-6.h (LIBS_SYSTEM):
727 * s/unixware.h (LIBS_SYSTEM):
728 Move to configure.
729
7490175b
GM
730 * s/aix4-2.h (MAIL_USE_LOCKF):
731 * s/bsd-common.h (MAIL_USE_FLOCK):
732 * s/darwin.h (MAIL_USE_FLOCK):
733 * s/gnu-linux.h (MAIL_USE_FLOCK):
734 * s/irix6-5.h (MAIL_USE_FLOCK):
735 * s/template.h (MAIL_USE_FLOCK):
736 Move to configure.
737
0235128c 7382010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
739
740 * Version 23.2 released.
741
0235128c 7422010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
743
744 * composite.c (autocmp_chars): Save point as marker before calling
745 auto-composition-function (Bug#5984).
746
747 * lisp.h (restore_point_unwind): Add prototype.
748
749 * fileio.c (restore_point_unwind): Remove static attribute.
750
0235128c 7512010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
752
753 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
754 new feature of libotf and m17n-flt.
0235128c
SM
755 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
756 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
757 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
758 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
759 that OUT is NULL. Use OTF_drive_gsub_with_log and
760 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
761 OTF_drive_gpos.
762 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
763 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
764 Setup mflt_enable_new_feature and mflt_try_otf.
765
4721152c
J
7662010-05-08 Jan Djärv <jan.h.d@swipnet.se>
767
768 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
769
770 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
771 box and toolbar (Bug #6139).
772 (xg_create_tool_bar): Remove comment (Bug #6139).
773 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
774 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
775
ee0a16cf
JB
7762010-05-08 Juanma Barranquero <lekktu@gmail.com>
777
778 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
779 Update dependencies.
780
96d79611
EZ
7812010-05-08 Eli Zaretskii <eliz@gnu.org>
782
783 * fringe.c (update_window_fringes): Set up truncation bitmaps for
784 R2L lines.
785
40c17879
GM
7862010-05-08 Glenn Morris <rgm@gnu.org>
787
7b42b29f
GM
788 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
789
40c17879
GM
790 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
791 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
792 (termcapobj): Replace with TERMCAP_OBJ.
793 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
794 (LIBES): Use LIBS_TERMCAP as a variable.
795
796 * s/freebsd.h (osreldate.h): No longer include, since this file
797 does not use __FreeBSD_version any more.
798
799 * s/aix4-2.h (TERMINFO):
800 * s/cygwin.h (TERMINFO):
801 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
802 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
803 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
804 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
805 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
806 * s/irix6-5.h (TERMINFO):
807 * s/netbsd.h (LIBS_TERMCAP):
808 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
809 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
810 * s/usg5-4.h (TERMINFO):
811 Move to configure.
812
94b612ad
SM
8132010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
814
815 * eval.c (unbind_to): Don't unbind a local binding into the global
816 binding when the local binding disappeared. Inversely, don't unbind
817 a global binding into a newly created local binding.
818 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
819 can specify the frame to use, when applicable. Adjust callers.
820
15e12598
VB
8212010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
822 Stefan Monnier <monnier@iro.umontreal.ca>
823
824 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
825
f724825e
EZ
8262010-05-07 Eli Zaretskii <eliz@gnu.org>
827
5cba3209
EZ
828 * w32fns.c: Include w32.h.
829 (Fw32_shell_execute): Decode the error message before passing it
830 to `error'. (Bug#6126)
831
d16bdfc3
EZ
832 * msdos.c (dos_set_window_size):
833 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
834 instead of `XSYMBOL (foo)->value'.
835
59d93e87
EZ
8362010-05-07 Eli Zaretskii <eliz@gnu.org>
837
9fdec8bc
EZ
838 Fix the MS-DOS build, broken by autoconfiscation.
839
840 * Makefile.in: Don't use Make-style comments past the "start of
841 cpp stuff" line.
842 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
843
844 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
845 edited directly by msdos/sed1v2.inp).
f724825e 846
2f86b22b
GM
8472010-05-07 Glenn Morris <rgm@gnu.org>
848
849 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
850 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
851 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
852 move out of cpp section.
853 * s/freebsd.h (LD_SWITCH_SYSTEM):
854 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
855 * s/netbsd.h (LD_SWITCH_SYSTEM):
856 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
857
49ebbd65
DN
8582010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
859
860 Define LIB_STANDARD and START_FILES using autoconf.
861 * s/usg5-4.h (LIB_STANDARD):
862 * s/netbsd.h (START_FILES):
863 * s/irix6-5.h (LIB_STANDARD):
864 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
865 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
866 * s/freebsd.h (START_FILES):
867 * s/darwin.h (START_FILES):
868 * s/cygwin.h (START_FILES):
869 * s/aix4-2.h (LIB_STANDARD):
870 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
871 * Makefile.in (STARTFILES): Rename to START_FILES, define using
872 autoconf, not cpp.
873
d43c06d6
DN
8742010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
875
28823648
DN
876 Remove NEED_BSDTTY and NEED_UNISTD_H.
877 * s/hpux10-20.h (NEED_BSDTTY): Remove.
878 * s/aix4-2.h (NEED_UNISTD_H): Remove.
879 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
880 <sys/ptyio.h> and <unistd.h>.
881
aca00430
DN
882 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
883
d43c06d6
DN
884 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
885 * s/gnu.h (START_FILES): Remove empty definition.
886
3e56b11d
JD
8872010-05-06 Jan Djärv <jan.h.d@swipnet.se>
888
889 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
890
e3cf0cde
GM
8912010-05-06 Glenn Morris <rgm@gnu.org>
892
893 * Makefile.in (CPP, LN_S): Remove unused variables.
894
774b9a60
SM
8952010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
896
897 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
898
4ab92842
LM
8992010-05-05 Lawrence Mitchell <wence@gmx.li>
900
901 * m/sparc.h: Fix typo in earlier change.
902
178f2507
SM
9032010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
904
905 Misc tweaks.
906 * eval.c (Fdefvaralias): Remove unintended nested if.
907 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
908
80f00217 9092010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
910
911 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
912
ef03a4e6
DN
9132010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
914
58eb6cf0
DN
915 Remove BSD_PGRPS.
916 * s/bsd-common.h (BSD_PGRPS): Remove undef.
917 * s/gnu-linux.h (BSD_PGRPS): Remove.
918 * term.c (dissociate_if_controlling_tty):
919 * sysdep.c (narrow_foreground_group, widen_foreground_group)
920 (init_sys_modes, reset_sys_modes):
921 * emacs.c (main):
922 * callproc.c (Fcall_process, child_setup): Remove code depending
923 on BSD_PGRPS.
924
ef03a4e6
DN
925 Remove POSIX_SIGNALS.
926 * s/usg5-4.h (POSIX_SIGNALS):
927 * s/netbsd.h (POSIX_SIGNALS):
928 * s/msdos.h (POSIX_SIGNALS):
929 * s/ms-w32.h (POSIX_SIGNALS):
930 * s/hpux11.h (POSIX_SIGNALS):
931 * s/gnu.h (POSIX_SIGNALS):
932 * s/gnu-linux.h (POSIX_SIGNALS):
933 * s/freebsd.h (POSIX_SIGNALS):
934 * s/darwin.h (POSIX_SIGNALS):
935 * s/cygwin.h (POSIX_SIGNALS):
936 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
937 * s/unixware.h:
938 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
939 * process.c (create_process):
940 * syssignal.h:
941 * sysdep.c (wait_for_termination, init_signals):
942 * process.c (create_process):
943 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
944 remove all code that assumes the contrary.
945
49628785
GM
9462010-05-04 Glenn Morris <rgm@gnu.org>
947
27a2cdfc
GM
948 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
949 variable.
950 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
951 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
952 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
953 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
954 LD_SWITCH_SYSTEM_tmp.
955 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
956 New variables, set by configure.
957
eb21eab5
GM
958 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
959 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
960 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
961 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
962 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
963
49628785
GM
964 * s/aix4-2.h (C_SWITCH_SYSTEM):
965 * m/alpha.h (C_SWITCH_MACHINE):
966 Move to configure.in.
967 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
968 New variables, set by configure.
969 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
970 $c_switch_machine and $c_switch_system.
971
7dff330b
DN
9722010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
973
974 * s/hpux10-20.h (LIB_STANDARD): New definition.
975 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
976 on it, not used anymore.
977
53967e09
CY
9782010-05-03 Chong Yidong <cyd@stupidchicken.com>
979
980 * eval.c (internal_condition_case_n): Rename from
981 internal_condition_case_2.
982 (internal_condition_case_2): New function.
983
984 * xdisp.c (safe_call): Use internal_condition_case_n.
985
986 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
987 (internal_delete_file, Frename_file): Callers changed.
988
989 * buffer.c (Fkill_buffer):
990 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
991
992 * lisp.h: Update prototypes.
993
3dee6fdb
GM
9942010-05-03 Glenn Morris <rgm@gnu.org>
995
996 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
997 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
998 (LIBXT): Set with configure, not cpp.
999 (LIBX): Remove.
1000 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1001
a101e0fb
DN
10022010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1003
1004 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1005 The FreeBSD is not needed, the default works, Solaris version is
1006 not needed, and the remaining case is not supported by configure.
1007
f63d0028
JD
10082010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1009
1010 * xsmfns.c (CHDIR_OPT): New define.
1011 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1012 restarting emacs.
1013
1014 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1015 shut_down_emacs.
1016
1017 * emacs.c (USAGE1): Mention --chdir.
1018 (main): Handle --chdir.
1019 (standard_args): Add --chdir.
1020 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1021 #5552).
1022
e4814a9f
DN
10232010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1024
cd03c74a
DN
1025 Remove LD_SWITCH_MACHINE.
1026 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1027 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1028
c3a398a1
DN
1029 Clean up IRIX code.
1030 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1031 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1032
87e7285c
DN
1033 Clean up AIX code.
1034 * m/ibmrs6000.inp: Remove file, unused.
1035 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1036 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1037 definition ...
1038 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1039
80f00217
JB
1040 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1041 unused.
e4814a9f 1042
59ca28de
EZ
10432010-05-01 Eli Zaretskii <eliz@gnu.org>
1044
197daef4
EZ
1045 Emulate POSIX_SIGNALS on MS-Windows.
1046
1047 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1048 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1049
1050 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1051 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1052 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1053
80f00217
JB
1054 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1055 New stubs.
197daef4 1056
af7c7572
EZ
1057 Miscellaneous fixes of bidi display.
1058
59ca28de
EZ
1059 * xdisp.c (find_row_end): New function, refactored from display_line.
1060 (display_line): Use it.
017ea819
EZ
1061 (extend_face_to_end_of_line): In almost-filled rows, extend only
1062 if the row is R2L and not continued.
166e930d 1063 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1064 Preserve overlay and string info in row->end.
166e930d
EZ
1065 (insert_left_trunc_glyphs): Support addition of left truncation
1066 glyphs to R2L rows.
b47e0dcf 1067 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1068 glyph between adjacent windows. Fix a crash when a display string
1069 is continued to the next line. Don't return zero if cursor was
1070 found by `cursor' property of a display string.
b47e0dcf
EZ
1071 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1072 test for that explicitly.
59ca28de 1073
7acac9f4
GM
10742010-05-01 Glenn Morris <rgm@gnu.org>
1075
1076 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1077 for clarity.
1078 (OTHER_OBJ): Remove.
1079 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1080 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1081
45841e65
KK
10822010-05-01 Karel Klíč <kklic@redhat.com>
1083
1084 * fileio.c (Ffile_selinux_context): Context functions may return null.
1085
afc61943
DN
10862010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1087
80f00217 1088 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1089
5a1bb006
GM
10902010-04-30 Glenn Morris <rgm@gnu.org>
1091
1092 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1093 (OTHER_OBJ): Define as a separate variable, for clarity.
1094
210af043
J
10952010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1096
1097 * xsettings.c: include limits.h and update file comment.
1098
0a7df391
GM
10992010-04-30 Glenn Morris <rgm@gnu.org>
1100
d5096f16
GM
1101 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1102 Set with configure, not cpp.
1103 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1104
7eb1ac33
GM
1105 * Makefile.in (mallocobj): Remove.
1106 (otherobj): Simplify using @OTHER_OBJ@.
1107
517d086b
GM
1108 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1109 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1110 Don't bother making nsgui.h dependency platform-specific.
1111
0a7df391
GM
1112 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1113
d6d23852
SM
11142010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1115
d2630aef
SM
1116 * process.c (read_process_output, exec_sentinel): Don't burp if the
1117 sentinel/filter kills the current buffer (bug#6060).
1118
f9dddf52 1119 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1120 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1121 Remove unused var `args'.
1122 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1123 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1124 * doc.c (store_function_docstring): Use XSETCAR.
1125
f1e3642a
GM
11262010-04-28 Glenn Morris <rgm@gnu.org>
1127
faf535f8
GM
1128 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1129 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1130
c40f9449
GM
1131 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1132
658f86ca
GM
1133 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1134 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1135
bc0b5f61
GM
1136 * Makefile.in (FONT_OBJ): New, set by configure.
1137 (FONT_DRIVERS): Use $FONT_OBJ.
1138
294c50a0
GM
1139 * Makefile.in (LIBXMU): Set with configure, not cpp.
1140 * s/aix4-2.h (LIBXMU):
1141 * s/hpux10-20.h (LIBXMU):
1142 Remove definition, now set in configure.
1143
e6ec4e99
GM
1144 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1145
f1e3642a
GM
1146 * m/amdx86-64.h [i386]: Move this test to configure.in.
1147
c6ea2936
GM
11482010-04-27 Glenn Morris <rgm@gnu.org>
1149
8fdac2c3
GM
1150 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1151 * s/unixware.h (NEED_LIBW): Remove definition.
1152
986fb647
GM
1153 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1154 (TOOLKIT_LIBW): New, set by configure.
1155 (@X_TOOLKIT_TYPE@): No longer define it.
1156
c6ea2936
GM
1157 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1158 (MOTIF_LIBW): Set with configure, not cpp.
1159 * s/aix4-2.h (LIB_MOTIF):
1160 * s/gnu-linux.h (LIB_MOTIF):
1161 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1162
aaa36002
DN
11632010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1164
1165 Reduce CPP usage.
1166 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1167 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1168 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1169 definitions and undefs. Inline definitions in the only user.
1170 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1171
b678dd8b
GM
11722010-04-27 Glenn Morris <rgm@gnu.org>
1173
76cda504
GM
1174 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1175 since the defaults (set by the system file) are fine in most cases.
1176 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1177 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1178 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1179 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1180 Remove definitions, since they are set correctly in s/gnu-linux.h.
1181 * s/freebsd.h (START_FILES, LIB_STANDARD):
1182 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1183 * s/hpux10-20.h (START_FILES):
1184 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1185 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1186
b678dd8b
GM
1187 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1188 (MOTIF_LIBW): Use $LIBXP.
1189 (otherobj): Use $WIDGET_OBJ.
1190
9452ded1
DN
11912010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1192
7e10844c
DN
1193 * Makefile.in (LIBS_MACHINE): Remove, unused.
1194
9452ded1
DN
1195 Use autoconf instead of cpp for LIB_MATH.
1196 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1197 * s/cygwin.h (LIB_MATH): Likewise.
1198 * Makefile.in (LIB_MATH): Do not define with cpp.
1199 (LIBES): Use autoconf for LIB_MATH.
1200
fcebfc6a
KH
12012010-04-26 Kenichi Handa <handa@m17n.org>
1202
1203 * composite.c (Ffind_composition_internal): Fix the return value
1204 for an automatic composition.
1205
39e2ad1b
DN
12062010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1207
1208 Remove all NO_ARG_ARRAY uses.
1209 * fns.c (concat2, concat3, nconc2):
1210 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1211 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1212 * m/xtensa.h (NO_ARG_ARRAY):
1213 * m/template.h (NO_ARG_ARRAY):
1214 * m/sparc.h (NO_ARG_ARRAY):
1215 * m/sh3.h (NO_ARG_ARRAY):
1216 * m/mips.h (NO_ARG_ARRAY):
1217 * m/macppc.h (NO_ARG_ARRAY):
1218 * m/iris4d.h (NO_ARG_ARRAY):
1219 * m/intel386.h (NO_ARG_ARRAY):
1220 * m/ibms390x.h (NO_ARG_ARRAY):
1221 * m/ibms390.h (NO_ARG_ARRAY):
1222 * m/ibmrs6000.h (NO_ARG_ARRAY):
1223 * m/ia64.h (NO_ARG_ARRAY):
1224 * m/hp800.h (NO_ARG_ARRAY):
1225 * m/arm.h (NO_ARG_ARRAY):
1226 * m/amdx86-64.h (NO_ARG_ARRAY):
1227 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1228
adf4f59c
EZ
12292010-04-25 Eli Zaretskii <eliz@gnu.org>
1230
6bdf5d65
EZ
1231 * xdisp.c (display_line): Don't assume 2nd call to
1232 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1233 (iterate_out_of_display_property): New function, body from pop_it.
1234 (pop_it): Use it.
adf4f59c 1235
dfbbda83
GM
12362010-04-24 Glenn Morris <rgm@gnu.org>
1237
1238 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1239 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1240 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1241 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1242
2d4018aa
EZ
12432010-04-24 Eli Zaretskii <eliz@gnu.org>
1244
a49884a6
EZ
1245 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1246 use `get_next_display_element' and `set_iterator_to_next' to
1247 advance to the next character, when looking for the character that
1248 begins the next row.
1249
76db6fcc 1250 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1251 definition of "struct Lisp_Symbol".
1252
70eab5c1
GM
12532010-04-24 Glenn Morris <rgm@gnu.org>
1254
1255 * Makefile.in (CRT_DIR): New variable, set by configure.
1256 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1257 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1258
1ad4cc3d
DN
12592010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1260
e769f484
DN
1261 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1262
4196ff33
DN
1263 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1264
879b0ee4
DN
1265 Remove redundant flags.
1266 * s/freebsd.h (C_SWITCH_SYSTEM):
1267 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1268 * s/netbsd.h (C_SWITCH_SYSTEM):
1269 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1270 of these.
1271
03cbbcb8
DN
1272 Simplify m/intel386.h.
1273 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1274 user: ecrt0.c.
1275 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1276 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1277 the only user: s/unixware.h.
1278 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1279 from m/intel386.h.
1280 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1281 moved here from m/intel386.h.
1282
1ad4cc3d
DN
1283 * m/mips.h: Remove #if 0 code.
1284
8785b888
EZ
12852010-04-23 Eli Zaretskii <eliz@gnu.org>
1286
728588cc
EZ
1287 Fix display of composed characters from L2R scripts in bidi buffers.
1288 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1289 After advancing IT past the composition, resync the bidi iterator
1290 with IT's position. (Bug#5977)
1291
a63f80b4
DN
12922010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1293
1294 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1295 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1296
ff5dec5c
SM
12972010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1298
1299 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1300
8785b888
EZ
13012010-04-23 Eli Zaretskii <eliz@gnu.org>
1302
58ccf243 1303 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1304 * xdisp.c (pop_it): When the stack is popped after displaying
1305 from a string, bidi-iterate to exit from the text portion covered
1306 by the `display' property or overlay. (Bug#5988, bug#5920)
1307
feeb1604
DN
13082010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1309
8e324eb6
DN
1310 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1311 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1312
809fcaba
DN
1313 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1314 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1315
ed710380
DN
1316 Simplify STARTFILES definition.
1317 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1318 relying on Makefile.in to define it.
1319 * s/cygwin.h (START_FILES): Likewise.
1320 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1321
feeb1604
DN
1322 Clean up Solaris code.
1323 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1324 (LIB_MOTIF): Remove, configure takes care of this.
1325 (NOT_USING_MOTIF): Remove, unused.
1326 * xrdb.c: Remove #if 0-ed #include.
1327 (SYSV): Remove conditional for old SysV.
1328 * sysdep.c (closedir): Remove conditional code for Solaris,
1329 Solaris has closedir.
1330
a0d0b563
JD
13312010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1332
1333 * xsettings.c (read_and_apply_settings): Check if current_font is
1334 NULL before strcmp (Bug#6001).
1335
56bae7c7
DN
13362010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1337
1338 Clean up HP-UX files.
1339 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1340 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1341 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1342 * s/hpux10-20.h: ... to the only user, here.
1343
372b7a95
EZ
13442010-04-21 Eli Zaretskii <eliz@gnu.org>
1345
1346 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1347 use buffer-local values of paragraph-start and paragraph-separate.
1348 <paragraph_start_re, paragraph_separate_re>: Rename from
1349 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1350 (Bug#5992)
1351
f904c0f9
JD
13522010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1353
1354 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1355 current_tool_bar_style are new.
1356 (store_config_changed_event): Rename from store_font_changed_event.
1357 (XSETTINGS_TOOL_BAR_STYLE): New define.
1358 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1359 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1360 HAVE_XFT.
1361 (something_changedCB): store_font_changed_event is now
1362 store_config_changed_event
1363 (parse_settings): Rename from parse_xft_settings. Read
1364 non-xft xsettings outside #ifdef HAVE_XFT.
1365 (read_settings): Renamed from read_xft_settings.
1366 (apply_xft_settings): Take current settings as parameter. Do not
1367 call read_(xft)_settings.
1368 (read_and_apply_settings): New function.
1369 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1370 read_and_apply_settings if there are settings to be read.
1371 (init_xsettings): Renamed from init_xfd_settings.
1372 Call read_and_apply_settings unconditionally.
1373 (xsettings_initialize): Call init_xsettings.
1374 (Ftool_bar_get_system_style): New function.
1375 (syms_of_xsettings): Define Qmonospace_font_name and
1376 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1377 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1378 dynamic-setting.
31a01b90 1379 Move misplaced HAVE_GCONF
f904c0f9
JD
1380
1381 * xsettings.h (Ftool_bar_get_system_style): Declare.
1382
1383 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1384 Qtext, Qboth, Qboth_horiz are new.
1385 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1386 Vtool_bar_style, tool_bar_max_label_size.
1387
1388 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1389
1390 * keyboard.c: QClabel is new.
1391 (parse_tool_bar_item): Take out QClabel from tool bar items.
1392 Try to construct a label if ther is no QClabel.
1393 (syms_of_keyboard): Intern :label as QClabel.
1394
1395 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1396 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1397 New.
1398
1399 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1400 dynamic-setting.el.
1401
1402 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1403 (xg_make_tool_item, xg_show_toolbar_item): New function.
1404 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1405 Call xg_make_tool_item to make a tool bar item.
1406 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1407
1408 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1409 into account for toolbars.
1410
c632dfda
JD
14112010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1412
1413 * data.c (make_blv): Declarations before code (Bug#5993).
1414
10efe302
GM
14152010-04-21 Glenn Morris <rgm@gnu.org>
1416
1417 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1418 Define using autoconf, not cpp.
1419 (LIBXSM): New variable, set by autoconf.
1420 (LIBXT): Use $LIBXSM.
1421
4285ac5a
DN
14222010-04-21 Dan Nicolaescu <local_user@dannlt>
1423
3ec759e7
DN
1424 Remove NOMULTIPLEJOBS, unused.
1425 * s/template.h (NOMULTIPLEJOBS):
1426 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1427
4285ac5a
DN
1428 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1429 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1430 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1431 detects -znocombreloc and passes it to the linker
1432 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1433
2807228d
GM
14342010-04-21 Glenn Morris <rgm@gnu.org>
1435
1436 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1437
574c05e2
KK
14382010-04-21 Karel Klíč <kklic@redhat.com>
1439
1440 * Makefile.in (LIBSELINUX_LIBS): New.
1441 (LIBES): Add $LIBSELINUX_LIBS.
1442 * eval.c, lisp.h (call7): New function.
1443 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1444 (Ffile_selinux_context, Fset_file_selinux_context):
1445 New functions.
1446 (Fcopy_file): New parameter preserve-selinux-context.
1447 (Frename_file): Preserve selinux context when renaming by copy-file.
1448
91eac4bb 14492010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 1450 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1451
50426a04
JB
1452 Don't depend on cm.c or termcap.c on Windows, use stubs.
1453 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1454 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1455 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1456 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1457 (sys_tputs, sys_tgetstr): New stubs.
1458 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1459 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1460
938efb77
JB
14612010-04-20 Juanma Barranquero <lekktu@gmail.com>
1462
1463 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1464
b4bf28b7
SM
14652010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1466
8b1e1112
SM
1467 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1468 Just signal a warning rather than an error when inside a let.
1469 (Fmake_variable_frame_local): Add the same test.
1470
933ac235
SM
1471 * font.c (syms_of_font): Make the style table vars read-only.
1472
b4bf28b7
SM
1473 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1474 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1475
1476 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1477
93d68d0c
EZ
14782010-04-20 Eli Zaretskii <eliz@gnu.org>
1479
1480 Fix R2L paragraph display on TTY.
1481
1482 * xdisp.c (unproduce_glyphs): New function.
1483 (display_line): Use it when produced glyphs are discarded from R2L
1484 glyph rows.
1485 (append_composite_glyph): In R2L rows, prepend the glyph rather
1486 than appending it.
1487
1488 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1489 rather than append it. Set up the resolved_level and bidi_type
1490 attributes of the appended glyph.
283ccc18
EZ
1491 (produce_special_glyphs): Mirror the backslash continuation
1492 character in R2L lines.
93d68d0c 1493
283ccc18 1494 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1495
283ccc18
EZ
1496 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1497 append_stretch_glyph.
1498 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1499 off-by-one error in computing x at end of text in the row.
1500 (append_stretch_glyph): In reversed row, prepend the glyph rather
1501 than append it. Set resolved_level and bidi_type of the glyph.
1502 (extend_face_to_end_of_line): If the row is reversed, prepend a
1503 stretch glyph whose width is such that the rightmost glyph will be
1504 drawn at the right margin of the window. Fix off-by-one error on
1505 TTY frames in testing whether a line needs face extension. Fix
1506 face extension at ZV. If this is the last glyph row, use
1507 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1508 region face.
1509 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1510 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1511 row->continuation_lines_width.
283ccc18
EZ
1512 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1513 are at ZV. Fixes a crash when reseated to ZV by
1514 try_window_reusing_current_matrix.
45903529
EZ
1515 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1516 which happens with R2L glyph rows. Fixes a crash when inserting a
1517 character at end of an R2L line.
283ccc18
EZ
1518 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1519 treat them as having zero-width characters. Improve comments.
1520 Don't reverse pos_before and pos_after for reversed glyph rows.
1521 Set cursor.x to negative value when the cursor might be on the
1522 left fringe.
1523 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1524 left fringe, not the right one.
f951a506
EZ
1525 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1526 (erase_phys_cursor): For reversed cursor_row, support cursor on
1527 the left fringe.
1528
283ccc18
EZ
1529 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1530 of continuation indicators on the fringes.
1531 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1532 left fringe.
1533
f951a506
EZ
1534 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1535 draw cursor on the left fringe.
1536
1537 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1538 cursor on the left fringe.
1539
f951a506
EZ
1540 * dispnew.c (update_text_area): Handle reversed desired rows when
1541 the cursor is on the left fringe.
1542 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1543 below, not by 0, for when the cursor is on the left fringe.
1544
3bb49aaf
JD
15452010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1546
1547 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1548 widget is a scrollbar.
1549
c0be27fd
KH
15502010-04-20 Kenichi Handa <handa@m17n.org>
1551
1552 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1553 only when the arg CHARSET_LIST is nil.
1554
ce5b453a
SM
15552010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1556
1557 Make variable forwarding explicit rather the using special values.
1558 Basically, this makes the structure of buffer-local values and object
1559 forwarding explicit in the type of Lisp_Symbols rather than use
1560 special Lisp_Objects for that. This tends to lead to slightly more
1561 verbose code, but is more C-like, simpler, and makes it easier to make
1562 sure we handled all cases, among other things by letting the compiler
1563 help us check it.
1564 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1565 Removing forwarding objects.
1566 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1567 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1568 explicit rather than hiding them inside Lisp_Object "values".
1569 (XFWDTYPE): New macro.
1570 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1571 (XBUFFER_LOCAL_VALUE): Remove.
1572 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1573 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1574 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1575 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1576 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1577 Remove the Lisp_Misc_* header.
1578 (struct Lisp_Buffer_Local_Value): Redefine.
1579 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1580 (struct Lisp_Misc_Any): Add filler to get the right size.
1581 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1582 Lisp_Intfwd.
1583 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1584 (DEFVAR_KBOARD): Allocate a forwarding object.
1585 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1586 (let_shadows_global_binding_p): New function.
1587 (union Lisp_Val_Fwd): New type.
1588 (make_blv): New function.
1589 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1590 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1591 (swap_in_symval_forwarding, find_symbol_value, Fset)
1592 (let_shadows_buffer_binding_p, set_internal, default_value)
1593 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1594 (Fkill_local_variable, Fmake_variable_frame_local)
1595 (Flocal_variable_p, Flocal_variable_if_set_p)
1596 (Fvariable_binding_locus):
1597 * xdisp.c (select_frame_for_redisplay):
1598 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1599 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1600 * frame.c (store_frame_param):
1601 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1602 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1603 value structure.
1604 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1605 (clone_per_buffer_values): Only adjust markers into the current buffer.
1606 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1607 (Fbuffer_local_value, set_buffer_internal_1)
1608 (swap_out_buffer_local_variables):
1609 Adapt to the new symbol value structure.
1610 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1611 (defvar_per_buffer): Take a new arg for the fwd object.
1612 (buffer_lisp_local_variables): Return a proper alist (different fix
1613 for bug#4138).
1614 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1615 (Fgarbage_collect): Don't handle buffer_defaults specially.
1616 (mark_object): Handle new symbol value structure rather than the old
1617 special Lisp_Misc_* objects.
1618 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1619 * term.c (set_tty_color_mode):
1620 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1621 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1622 a buffer_local_flags.
1623 * print.c (print_object): Get rid of impossible forwarding objects.
1624
fd3998ff
EZ
16252010-04-19 Eli Zaretskii <eliz@gnu.org>
1626
1627 * bidi.c (bidi_get_type, bidi_get_category)
1628 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1629 (bidi_type_of_next_char, bidi_level_of_next_char):
1630 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1631
e42cd1a7
JB
16322010-04-19 Juanma Barranquero <lekktu@gmail.com>
1633
1634 * dired.c (Ffile_attributes): Fix typo in docstring.
1635
6e104790 16362010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1637
1638 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1639 NSInteger (Bug#5811).
1640
6e104790 16412010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1642
1643 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1644 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1645
6e104790 16462010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1647
1648 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1649
6e104790
SM
16502010-04-19 Chong Yidong <cyd@stupidchicken.com>
1651
1652 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1653 terminal frames (Bug#5837).
1654
37dcfea0
EZ
16552010-04-19 Eli Zaretskii <eliz@gnu.org>
1656
d1da276f
EZ
1657 * .gdbinit (xsubchartable): New command.
1658
37dcfea0
EZ
16592010-04-19 Eli Zaretskii <eliz@gnu.org>
1660
1661 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1662 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1663 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1664 and
1665 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1666
e9515805
SM
16672010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1668
1669 * alloc.c (Fpurecopy): Hash-cons if requested.
1670 (syms_of_alloc): Update purify-flag docstring.
1671
22aa44a8
JD
16722010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1673
1674 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1675 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1676
ebb5722e
EZ
16772010-04-17 Eli Zaretskii <eliz@gnu.org>
1678
1679 Fix a crash when an NSM character is inserted at BEGV.
1680
1681 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1682 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1683 NEUTRAL_B or UNKNOWN_BT.
1684
0f4442ef
EZ
16852010-04-16 Eli Zaretskii <eliz@gnu.org>
1686
1687 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1688 other rows with cursor unless they are different from this row and
1689 this row is part of a continued line. (Bug#5943)
1690
7d4e45f8
DN
16912010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1692
1693 * s/freebsd.h: Restore osreldate.h include.
1694 Suggested by Naohiro Aota.
1695
5ba5ec85
J
16962010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1697
1698 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1699
20af301d
CY
17002010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1701
1702 * s/cygwin.h: Avoid linking against static libgcc.
1703
a4b000fb
JL
17042010-04-15 Juri Linkov <juri@jurta.org>
1705
1706 * window.c: Add Qscroll_command.
1707 Remove Vscroll_preserve_screen_position_commands.
1708 (window_scroll_pixel_based, window_scroll_line_based): Check the
1709 `scroll-command' property on the last command instead of searching
1710 the last command in Vscroll_preserve_screen_position_commands.
1711 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1712 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1713 (scroll-preserve-screen-position): Doc fix.
1714 (Vscroll_preserve_screen_position_commands): Remove variable.
1715
bc319ba4
DN
17162010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1717
6bb24457
DN
1718 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1719
19d4c244
DN
17202010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1721
1722 Reduce cpp use in Makefile.in.
1723 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1724 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1725 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1726 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1727 (CRT0_COMPILE): Remove, inline it in the only user.
1728
32129746
JL
17292010-04-14 Juri Linkov <juri@jurta.org>
1730
1731 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1732 `scroll-up-command' and `M-v' from `scroll-down' to
1733 `scroll-down-command'.
1734
9013a7f8
JL
17352010-04-14 Juri Linkov <juri@jurta.org>
1736
1737 * window.c (Vscroll_preserve_screen_position_commands): New variable
1738 with the default value as the list of Qscroll_down and Qscroll_up.
1739 (window_scroll_pixel_based, window_scroll_line_based): Search the
1740 last command in the list Vscroll_preserve_screen_position_commands
1741 instead of comparing with Qscroll_up and Qscroll_down.
1742
4bef8d26
JD
17432010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1744
92848133
JD
1745 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1746 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1747 does that.
1748
4bef8d26
JD
1749 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1750 to zero.
1751
58b963f7
SM
17522010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1753
84164a0d
SM
1754 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1755
2b0a91e7
SM
1756 Try to solve the problem of spurious EOF chars in long lines of text
1757 sent to interactive subprocesses.
1758 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1759 (system_process_attributes): Remove unused var `ttotal'.
1760 * process.c (send_process): Don't bother breaking long line with EOF
1761 chars when talking to ttys any more.
1762 (wait_reading_process_output): Output a warning when called in such
1763 a way that it could block without being interruptible.
1764
58b963f7
SM
1765 Try to detect file modification within the same second.
1766 * buffer.h (struct buffer): New field modtime_size.
1767 * buffer.c (reset_buffer): Initialize it.
1768 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1769 (Fverify_visited_file_modtime): Check it.
1770 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1771 (Fset_visited_file_modtime): Set (or clear) it.
1772
01f5787b
SM
17732010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1774
1775 * process.c (status_notify): Remove unused var `ro'.
1776
83725342
JD
17772010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1778
1779 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1780 more than one visual (Bug#5938).
1781
b9465836
DN
17822010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1783
50426a04
JB
1784 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1785 Undefine.
b9465836 1786
8d9c8ece
DN
17872010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1788
b1f52161
DN
1789 Remove C_SWITCH_SYSTEM_TEMACS.
1790 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1791 (malloc, realloc, free): Use emacs, not temacs for conditional
1792 definition.
1793
1794 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1795 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1796
8d9c8ece
DN
1797 Use autoconf, not cpp for some variables.
1798 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1799 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1800 (ALL_CFLAGS): Use them as make variables.
1801 (really-lwlib, really-oldXMenu): Do not pass them.
1802
1ecb2d3f
JD
18032010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1804
1805 * xmenu.c (apply_systemfont_to_dialog): New.
1806 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1807
3a4fa2f2
SM
18082010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1809
97e53006
SM
1810 * process.c (exec_sentinel): Preserve current-buffer.
1811
3a4fa2f2
SM
1812 * process.c (read_process_output): Move the save-current-buffer to
1813 apply to both the filter and the non-filter branches.
1814
88df7221
DN
18152010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1816
1817 * s/msdos.h (UNEXEC): New definition.
1818
5634ff85
YM
18192010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1820
6eff5c3d
YM
1821 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1822 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1823
1824 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1825 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1826 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1827 TRY_WINDOW_CHECK_MARGINS.
1828
1829 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1830 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1831 width only when it is for padding.
5634ff85 1832
b13aef54
J
18332010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1834
1835 * xfns.c (Fx_show_tip): Call try_window in a loop until
1836 fonts_changed_p is zero (Bug#2423).
1837
21d28484
EZ
18382010-04-08 Eli Zaretskii <eliz@gnu.org>
1839
1840 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1841 the end of TEXT_AREA. (Bug#5856)
1842
0269ef77
JD
18432010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1844
1845 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1846 HAVE_GCONF.
1847
5930fe97
EZ
18482010-04-08 Eli Zaretskii <eliz@gnu.org>
1849
1850 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1851 prev.orig_type, for resolving type of NSM. (Bug#5858)
1852
99852628
JD
18532010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1854
1855 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1856 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1857 in current_font.
1858 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1859 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1860 New functions.
1861 (syms_of_xsettings): Initialize current_font.
1862 defsubr Sfont_get_system_normal_font.
99852628
JD
1863
1864 * xsettings.h (Ffont_get_system_normal_font,
1865 xsettings_get_system_normal_font): Declare.
1866
1867 * xfns.c (extern xlwmenu_default_font): Remove.
1868 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1869 to xlwmenu.c.
1870
1871 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1872 menu items in UTF-8.
1873
1874 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1875 (apply_systemfont_to_menu): New function.
1876 (set_frame_menubar, create_and_show_popup_menu): Call
1877 apply_systemfont_to_menu.
1878
7fc874c4
J
18792010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1880
1881 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1882 FRAME_LINE_TO_PIXEL_Y.
1883
1884 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1885 pixelwidth/height.
1886
863bf481
DN
18872010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1888
5e5a3b92
DN
1889 Simplify code for HP machines.
1890 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1891 for GNU_LINUX, not needed.
1892 (UNEXEC, NEED_BSDTTY): Move definitions...
1893 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1894
863bf481
DN
1895 * m/iris4d.h (UNEXEC): Move definition ...
1896 * s/irix6-5.h (UNEXEC): ... here.
1897
3e6bec3b
JD
18982010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1899
1900 * xfns.c (set_machine_and_pid_properties): New function.
1901 (Fx_create_frame): Call set_machine_and_pid_properties.
1902
2912322b
SM
19032010-04-03 Eli Zaretskii <eliz@gnu.org>
1904
1502b819
EZ
1905 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1906 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1907 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1908
2912322b
SM
1909 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1910 in this function. (Bug#5703)
1911
19122010-04-03 Chong Yidong <cyd@stupidchicken.com>
1913
1914 * nsterm.h: Fix last change.
1915
c435b432
DN
19162010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1917
a568f507
DN
1918 * m/intel386.h (NO_REMAP): Move definition ...
1919 * s/msdos.h (NO_REMAP): ... here.
1920
4cd9f6c2
DN
1921 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1922
c435b432
DN
1923 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1924 used on those platforms.
1925
42a2c622
DN
19262010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1927
1928 Remove extern errno declarations.
1929 * xterm.c:
1930 * xrdb.c:
1931 * w32term.c:
1932 * unexec.c:
1933 * unexaix.c:
1934 * sysdep.c:
1935 * process.c:
1936 * lread.c:
1937 * keyboard.c:
1938 * floatfns.c:
1939 * filelock.c:
1940 * fileio.c:
1941 * emacs.c (main):
1942 * ecrt0.c:
1943 * dispnew.c:
1944 * callproc.c:
1945 * buffer.c: Remove errno extern declarations.
1946 * s/netbsd.h (NEED_ERRNO): Remove.
1947
8224f93d
DN
19482010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1949
1950 Remove all uses of LIBX11_SYSTEM.
1951 * Makefile.in (LIBX11_SYSTEM): Remove.
1952 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1953 instead.
1954
814062c7
EZ
19552010-04-01 Eli Zaretskii <eliz@gnu.org>
1956
ed68db4d
EZ
1957 Remove support for DJGPP v1.x (bug#5813).
1958
1959 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1960 * s/msdos.h:
1961 * unexec.c (make_hdr, copy_text_and_data):
1962 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1963 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1964 (IT_set_terminal_modes, __write, _rename, gethostname)
1965 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1966 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1967 the value of __DJGPP__.
ed68db4d
EZ
1968 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1969 compatibility code.
8224f93d
DN
1970 * lread.c:
1971 * gmalloc.c (memalign):
1972 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1973 * emacs.c (main):
1974 * dosfns.c (init_dosfns):
ed68db4d
EZ
1975 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1976
52f4d8d5
EZ
19772010-04-01 Eli Zaretskii <eliz@gnu.org>
1978
814062c7
EZ
1979 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1980 string with `cursor' property comes from an `after-string'
1981 overlay. (Bug#5816)
1982
0dc2e11d
GM
19832010-04-01 Glenn Morris <rgm@gnu.org>
1984
1985 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1986 Define as Makefile variables.
1987 (LIBX): Use above variables rather than directly using autoconf.
1988
1d29df59
DN
19892010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1990
1991 Clean up BSD_SYSTEM use.
1992 * xterm.c:
1993 * process.c:
1994 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1995 for including <sys/ioctl.h>.
1996 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1997 code is only used for MSDOS.
1998
1546c559
JL
19992010-03-31 Juri Linkov <juri@jurta.org>
2000
2001 * image.c: Add `Qextension_data'.
2002 (syms_of_image): Initialize and staticpro `Qextension_data'.
2003 (Fimage_metadata): Rename from `Fimage_extension_data'.
2004 (gif_load): Put GIF extension data to the property
2005 `Qextension_data'.
2006
6521c534
CY
20072010-03-31 Chong Yidong <cyd@stupidchicken.com>
2008
2009 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2010 * nsterm.h: Fix prototype.
2011
52c30783
EZ
20122010-03-31 Eli Zaretskii <eliz@gnu.org>
2013
2014 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2015 trailing whitespace in right-to-left rows.
2016
855a0da7
SM
20172010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2018
2019 Get rid of the direct_output optimizations.
2020 * keyboard.c (nonundocount): Remove extern declaration.
2021 (command_loop_1): Remove brittle optimisation for cheap and
2022 common operations.
2023 * xdisp.c (redisplay_internal): Don't bother checking
2024 redisplay_performed_directly_p any more.
2025 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2026 any more.
2027 * dispnew.c (redisplay_performed_directly_p)
2028 (direct_output_for_insert, direct_output_forward_char):
2029 * dispextern.h (redisplay_performed_directly_p)
2030 (direct_output_for_insert, direct_output_forward_char): Remove.
2031 * cmds.c (nonundocount): Make it static.
2032
85738751 20332010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2034
2035 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2036
85738751 20372010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2038
2039 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2040 invisible (Bug#5766).
2041
85738751 20422010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2043
855a0da7
SM
2044 * xdisp.c (x_consider_frame_title, update_window_cursor):
2045 Remove HAVE_NS conditionals.
194d44e7 2046 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2047
2048 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2049 filename for the title.
2050 (ns_set_doc_edited): Do nothing if the selected window is a
2051 minibuffer window.
2052
2053 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2054 ns_set_doc_edited.
2055
2056 * nsterm.m: Remove unneeded prototype.
2057
85738751 20582010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2059
2060 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2061 in the DOC file. (Bug#5336)
2062
85738751 20632010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2064
2065 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2066
75d1428c
SM
20672010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2068
2069 * window.c (keys_of_window): Remove redundant/overridden bindings.
2070
82043cfb
EZ
20712010-03-30 Eli Zaretskii <eliz@gnu.org>
2072
2073 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2074 Restore original behavior when the iterator is not bidi_p.
2075
b5dd0ae7
DN
20762010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2077
2078 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2079
bd924a5d
EZ
20802010-03-30 Eli Zaretskii <eliz@gnu.org>
2081
2082 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2083 are outside the range of cached character positions.
2084
3580374b
JB
20852010-03-30 Juanma Barranquero <lekktu@gmail.com>
2086
2087 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2088
a7b02820
EZ
20892010-03-30 Eli Zaretskii <eliz@gnu.org>
2090
2091 Initial support for bidirectional editing.
2092
2093 * Makefile.in (obj): Include bidi.o.
2094 (bidi.o): New target.
2095
2096 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2097 ($(BLD)/bidi.$(O)): New target.
2098
2099 * bidi.c: New file.
2100
2101 * buffer.h (struct buffer): New members bidi_display_reordering
2102 and bidi_paragraph_direction.
2103
2104 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2105 and bidi_paragraph_direction.
2106 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2107 and bidi-paragraph-direction.
2108 (Fbuffer_swap_text): Swap the values of
2109 bidi_display_reordering and bidi_paragraph_direction.
2110
2111 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2112 (bidi_type_t, bidi_dir_t): New types.
2113 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2114 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2115 prev_stop, base_level_stop, and eol_pos.
2116 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2117 (IT_STACK_SIZE): Enlarge to 5.
2118 (struct glyph_row): New member reversed_p.
2119 <string_buffer_position>: Update prototype.
2120 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2121 glyph_row if bidi_it.paragraph_dir == R2L.
2122 (struct glyph): New members resolved_level and bidi_type.
2123
2124 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2125 processing or buffer's direction is right-to-left.
2126 (prepare_desired_row): Preserve the reversed_p flag.
2127 (row_equal_p): Compare the reversed_p attributes as well.
2128
2129 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2130 bidi_init_it and set it->paragraph_embedding from the current
2131 buffer's value of bidi_paragraph_direction.
2132 (reseat_1): Initialize bidi_it.first_elt.
2133 (set_iterator_to_next, next_element_from_buffer): Use the value of
2134 paragraph_embedding to determine the paragraph direction.
2135 (set_iterator_to_next): Under bidi reordering, call
2136 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2137 new_paragraph flag is set in the bidi iterator.
2138 (next_element_from_buffer): If bidi_it.first_elt is set,
2139 initialize paragraph direction and find the first character to
2140 display in the visual order. If reseated to a middle of a line,
2141 prime the bidi iterator starting at the line's beginning. Handle
2142 the situation where we overstepped stop_charpos due to
2143 non-linearity of the bidi iteration. Likewise for when we back up
2144 beyond the previous stop_charpos. When moving across stop_charpos,
2145 record it in prev_stop.
2146 (display_line): Set row->end and it->start for the next row to the
2147 next character in logical order. Always extend reversed_p rows to
2148 the end of line, even if they end at ZV. Copy the reversed_p flag
2149 to the next glyph row. Keep calling set_cursor_from_row for
2150 bidi-reordered rows even if we already have a possible candidate
2151 for cursor position. Set row_end after all the row's glyphs have
2152 been produced, by looping over the glyphs. Record the position
2153 after EOL in it->eol_pos, and use it to set end_pos of the last
2154 row produced for a continued line.
2155 <Qright_to_left, Qleft_to_right>: New variables.
2156 (syms_of_xdisp): Initialize and staticpro them.
2157 (string_buffer_position_lim): New function.
2158 (string_buffer_position): Most of code moved to
2159 string_buffer_position_lim. Last argument and return value are
2160 now EMACS_INT; all callers changed.
2161 (set_cursor_from_row): Rewritten to support bidirectional text and
2162 reversed glyph rows.
2163 (text_outside_line_unchanged_p, try_window_id): Disable
2164 optimizations if we are reordering bidirectional text and the
2165 paragraph direction can be affected by the change.
2166 (append_glyph, append_composite_glyph)
2167 (produce_image_glyph, append_stretch_glyph): Set the
2168 resolved_level and bidi_type members of each glyph.
2169 (append_glyph): If the glyph row is reversed, prepend the glyph
2170 rather than appending it.
2171 (handle_stop_backwards): New function.
2172 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2173 (reseat): call handle_stop_backwards to recompute prev_stop and
2174 base_level_stop for the new position.
2175 (handle_invisible_prop): Under bidi iteration, skip invisible text
2176 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2177 paragraph direction. Update IT->prev_stop after skipping
2178 invisible text.
2179 (move_it_in_display_line_to): New variables prev_method
2180 and prev_pos. Compare for strict equality in
2181 BUFFER_POS_REACHED_P.
2182 (try_cursor_movement): Examine all the candidate rows that occlude
2183 point, to return the best match. If rows are bidi-reordered
2184 and point moved backwards, back up to the row that is not a
2185 continuation line, and start looking for a suitable row from
2186 there.
2187
2188 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2189 rather than appending, if the glyph_row's reversed_p flag is set.
2190 Set the resolved_level and bidi_type members of each glyph.
2191
2192 * .gdbinit (pbiditype): New command.
2193 (pgx): Use it to display bidi level and type of the glyph.
2194 (pitx): Display some bidi information about the iterator.
2195 (prowlims, pmtxrows): New commands.
2196
32a8894e
DN
21972010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2198
2199 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2200 * s/usg5-4.h (LIBS_DEBUG):
2201 * s/irix6-5.h (C_DEBUG_SWITCH):
2202 * s/gnu-linux.h (LIBS_DEBUG):
2203 * s/darwin.h (LIBS_DEBUG):
2204 * s/bsd-common.h (LIBS_DEBUG):
2205 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2206 * m/iris4d.h (LIBS_DEBUG):
2207 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2208
2209 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2210 (LIBS_DEBUG): Remove definition.
2211
649dbf36
CY
22122010-03-27 Chong Yidong <cyd@stupidchicken.com>
2213
2214 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2215 Windows.
2216
cad4261f
YM
22172010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2218
2219 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2220 `connect' (Bug#5723).
2221
cd591dbc
HE
22222010-03-25 Helmut Eller <eller.helmut@gmail.com>
2223
2224 * process.c (Fmake_network_process): Call `select' for interrupted
2225 `connect' rather than creating new socket (Bug#5173).
2226
e867cb5d 22272010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2228
2229 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2230
2231 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2232
2233 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2234
e867cb5d 22352010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2236
2237 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2238 XLoadQueryFont.
2239
e867cb5d 22402010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2241
2242 * coding.c (decode_coding_ccl): Fix previous change for the
2243 multibyte case.
fb608df3
KH
2244 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2245 case that the output buffer is fullfilled.
2246 (encode_coding): Setup ccl program here.
fbdc1721 2247
5845f0ed
DN
22482010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2249
814fb708
DN
2250 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2251
5845f0ed
DN
2252 Simplify LIBS_MACHINE definitions.
2253 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2254 * m/iris4d.h (LIBS_MACHINE): Likewise.
2255 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2256 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2257 * s/netbsd.h: Remove commented out code.
5845f0ed 2258
b7064064
DN
22592010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2260
df7734b2
DN
2261 Remove dead code dealing with POSIX_SIGNALS.
2262 * atimer.c (set_alarm): Remove dead code, all USG systems define
2263 POSIX_SIGNALS.
2264 * data.c (arith_error): Likewise.
2265 * keyboard.c (input_available_signal, handle_user_signal)
2266 (interrupt_signal): Likewise.
2267 * process.c (sigchld_handler): Likewise.
2268 (create_process): Remove if 0 code. Remove HPUX conditional when
2269 !defined (POSIX_SIGNALS), it cannot be true.
2270 * syssignal.h: Remove USG5_4 and USG conditionals when
2271 !POSIX_SIGNALS, they cannot be true.
2272
b7064064
DN
2273 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2274 NO_SOCK_SIGIO, not used anymore.
2275
55da5ee3
DN
22762010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2277
0be96e3a
DN
2278 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2279 support vax on BSDs.
2280
55da5ee3
DN
2281 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2282 * s/aix4-2.h (ORDINARY_LINK): ... here.
2283
c0282183
AS
22842010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2285
82c3d67a
AS
2286 * Makefile.in (abs_builddir): Define.
2287 (bootstrap_exe): Use it.
2288 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2289
3613edce
SM
22902010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2291
2292 * Makefile.in (bootstrap_exe): Use an absolute name.
2293
7f110ddc
DN
22942010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2295
22e87574
DN
2296 Remove support for old GNU/Linux using libc version 5.
2297 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2298 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2299
05a670e6
DN
2300 Consolidate redundant definitions in s/bsd-common.h.
2301 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2302 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2303 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2304 doing it in all files that include this one.
2305 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2306 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2307 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2308 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2309 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2310 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2311 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2312 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2313 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2314
2968f561
DN
2315 Consolidate redundant definitions.
2316 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2317 it's undefined in all files that include this one.
2318 (POSIX_SIGNALS): Define here instead of doing it in all files that
2319 include this one.
2320 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2321 (POSIX_SIGNALS): Do not define.
2322 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2323 (POSIX_SIGNALS): Do not define.
2324 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2325 (POSIX_SIGNALS): Do not define.
2326
15d25dc0
DN
2327 Remove support for old UNIX System V systems.
2328 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2329 * s/usg-5-4-2.h: Remove.
2330
07e339e4
DN
2331 Remove support for Solaris on PPC and for old versions.
2332 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2333 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2334 that cancel each other.
2335 * s/sol2-3.h:
2336 * s/sol2-4.h:
2337 * s/sol2-5.h: Remove.
2338 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2339 (NO_REMAP): Remove, unused.
2340 (UNEXEC): Move definition ...
2341 * s/aix4-2.h (UNEXEC): ... here.
2342
7f110ddc
DN
2343 * s/openbsd.h: Remove support for non-ELF and for systems that do
2344 not support shared libraries.
2345 * s/netbsd.h:
2346 * s/freebsd.h: Likewise.
2347
605f35cd
DN
23482010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2349
2350 Remove non-working support for lynxos 3.0.
2351 * s/lynxos.h: Remove file.
2352
2353 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2354 COFF_BSD_SYMBOLS, nothing defines it anymore.
2355
aed71cf4
DN
23562010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2357
2358 Remove obsolete uses of HAVE_SHM.
2359 * emacs.c (standard_args):
2360 (Fdump_emacs):
2361 (syms_of_emacs): Remove code depending on HAVE_SHM.
2362
2363 * alloc.c: Remove HAVE_SHM dependent definition.
2364
2365 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2366
aded53ff
GM
23672010-03-18 Glenn Morris <rgm@gnu.org>
2368
17284745
GM
2369 * emacs.c (USAGE4): Hard-code bug address.
2370 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2371 (bug_reporting_address): Remove.
2372 (main): Don't call bug_reporting_address.
2373
aded53ff
GM
2374 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2375 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2376
303500aa
CY
23772010-03-15 Chong Yidong <cyd@stupidchicken.com>
2378
2379 * xfns.c (Fx_create_frame):
2380 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2381 on left.
2382
cef3058f
CY
23832010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2384
2385 * editfns.c (Fformat): Account for string precision when computing
2386 field width (Bug#5710).
2387
a647d59d
CY
23882010-03-12 Chong Yidong <cyd@stupidchicken.com>
2389
4fa42018
CY
2390 * xfns.c (Fx_create_frame): Set default to Qright.
2391
a647d59d
CY
2392 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2393 all window systems.
2394
6da23aaa
EZ
23952010-03-12 Eli Zaretskii <eliz@gnu.org>
2396
a96f6398 2397 These changes remove termcap.c from the build on Posix platforms.
83d02def 2398 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2399 (MSDOS_OBJ): ...to here.
2400 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2401 now identical to when LIBS_TERMCAP is defined.
2402
2403 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2404
2405 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2406
a96f6398 2407 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2408
288f9fc0
CY
24092010-03-10 Chong Yidong <cyd@stupidchicken.com>
2410
2411 * Branch for 23.2.
2412
d48cd3f4
SM
24132010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2414
2415 Cleanup setup of gl_state in various parts of the code.
2416 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2417 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2418 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2419 (skip_chars):
2420 * regex.c (regex_compile): Use it.
2421 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2422 it's now set in regex_compile when/if we need it.
2423
618db430
SM
24242010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2425
c0335e02
SM
2426 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2427 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2428 (QUIT): Use it to consolidate code and remove redundancy.
2429 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2430
254c06a8
SM
2431 * regex.c (regex_compile): Setup gl_state as well.
2432
618db430
SM
2433 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2434 (in_classes): Use CONSP before XCAR/XCDR.
2435
233f0c9f
CY
24362010-03-03 Chong Yidong <cyd@stupidchicken.com>
2437
2438 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2439 definitions, so that keyboard macros are correctly handled
2440 (Bug#5481).
2441
75f80e63
EZ
24422010-03-02 Eli Zaretskii <eliz@gnu.org>
2443
2444 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2445 text that could be relocated inside the call to emacs_mule_char.
2446 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2447 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2448
dcfb9bc4
KH
24492010-03-02 Kenichi Handa <handa@m17n.org>
2450
fc9a17bc
KH
2451 * character.c (parse_str_as_multibyte): Fix handling of the
2452 multibyte form of raw-bytes.
2453 (str_as_multibyte): Likewise.
2454
dcfb9bc4
KH
2455 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2456 form of raw-bytes.
2457
412c01b6
CY
24582010-02-28 Chong Yidong <cyd@stupidchicken.com>
2459
2460 * charset.c (load_charset_map_from_file)
2461 (load_charset_map_from_vector): Zero out allocated
2462 charset_map_entries before using them.
2463
df7e1ea0
AS
24642010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2465
2466 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2467
fe69a722
CY
24682010-02-27 Chong Yidong <cyd@stupidchicken.com>
2469
4ed28cf4
CY
2470 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2471 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2472
7379cfce
KH
24732010-02-26 Kenichi Handa <handa@m17n.org>
2474
f88cc4d6
KH
2475 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2476
7379cfce
KH
2477 * xdisp.c (reseat_to_string): Fix previous change.
2478
cf2fdcfb
CY
24792010-02-26 David Reitter <david.reitter@gmail.com>
2480
2481 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2482 Lisp_Object (Bug#4736).
2483
cc6c7c75
KH
24842010-02-25 Kenichi Handa <handa@m17n.org>
2485
2486 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2487
32e737d7
JD
24882010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2489
2490 * xterm.c (XTflash): Move declarations before statements.
2491
2492 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2493 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2494 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2495 (xg_create_tool_bar): Remove unused variables.
2496 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2497 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2498
676cae9f
CY
24992010-02-21 Chong Yidong <cyd@stupidchicken.com>
2500
2501 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2502
886cc2b8
SM
25032010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2504
2505 * term.c (fatal): Add a final \n if needed (bug#5596).
2506
ddb2d8e2
CY
25072010-02-18 Chong Yidong <cyd@stupidchicken.com>
2508
2509 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2510
2a4f8d3d
GM
25112010-02-18 Glenn Morris <rgm@gnu.org>
2512
2513 * callint.c (Finteractive): Doc fix.
2514
ebaf11b6
KH
25152010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2516
886cc2b8
SM
2517 * coding.c (record_conversion_result):
2518 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2519 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2520 memory allocation error.
2521
d0396581
KH
25222010-02-17 Kenichi Handa <handa@m17n.org>
2523
886cc2b8
SM
2524 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2525 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2526 (decode_coding): Setup ccl program here. Keep looping when the
2527 decoder stopped because the output buffer is
2528 fullfilled (bug#5534).
2529
2530 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2531
98599f74
JD
25322010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2533
471e4f04 2534 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2535 bug #5571.
886cc2b8 2536 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2537 overdrawn.
98599f74 2538
182659ae
JD
25392010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2540
2541 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2542 doing_interact here.
2543 (ice_connection_closed): New function.
2544 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2545 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2546 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2547 returns I/O error.
2548 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2549 bug #5512.
2550
9be32c4e 25512010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2552
2553 * nsfont.m (nsfont_open): The system's value for the font descent
2554 is negative, so round it down to avoid clipping.
2555
a2f3eb19
CY
25562010-02-06 Chong Yidong <cyd@stupidchicken.com>
2557
2558 * charset.c (load_charset_map_from_file)
2559 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2560 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2561
3088147c
CY
25622010-02-05 Chong Yidong <cyd@stupidchicken.com>
2563
2564 * charset.c (load_charset_map_from_file): Allocate large
2565 charset_map_entries structure on the heap rather than the stack.
2566 (Bug#5526).
2567
b57d9029
KH
25682010-01-31 Kenichi Handa <handa@m17n.org>
2569
2570 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2571 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2572
c67d885b
CY
25732010-01-31 Chong Yidong <cyd@stupidchicken.com>
2574
2575 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2576 <deactivated@gmail.com> (Bug#3605).
2577
8fab2362
CY
25782010-01-31 David De La Harpe Golden <david@harpegolden.net>
2579
2580 * fileio.c (Frename_file): Correctly rename symlinks to
2581 directories (Bug#5496).
2582
cb2a62f2
CY
25832010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2584
2585 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2586
944c7a26
AS
25872010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2588
2589 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2590
c024ac08
CY
25912010-01-29 Chong Yidong <cyd@stupidchicken.com>
2592
2593 * frame.c (DEFAULT_ROWS): Change default to 35.
2594
2595 * xfns.c (x_default_font_parameter): Change default XFT font to
2596 monospace-10 (Bug#3643).
2597
af93af83
EZ
25982010-01-29 Eli Zaretskii <eliz@gnu.org>
2599
2600 * w32inevt.c (key_event): Remove unnecessary comparison of
2601 event->uChar.AsciiChar with 128.
2602
ca0eb708
CY
26032010-01-28 Chong Yidong <cyd@stupidchicken.com>
2604
b242dbfc
CY
2605 * fileio.c (Frename_file): Fix last change (Bug#5487).
2606
ca0eb708
CY
2607 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2608
2609 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2610
45d45af5
JD
26112010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2612
2613 * xfns.c (Fx_create_frame): Remove window size matching code from
2614 2010-01-15.
a73f9c9d 2615 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 2616
7e233730
JR
26172010-01-27 Jason Rumney <jasonr@gnu.org>
2618
2619 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2620 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2621
86e893e3
KH
26222010-01-27 Kenichi Handa <handa@m17n.org>
2623
2624 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2625 pattern string (Bug#4209).
86e893e3 2626
8719abec
CY
26272010-01-27 David De La Harpe Golden <david@harpegolden.net>
2628
2629 * fileio.c (Frename_file): Call copy-directory and
2630 delete-directory for directories, in order to handle cross-device
2631 renaming (Bug#3353).
2632
844794c8
JD
26332010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2634
aa3e13b5 2635 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2636 sizes 24 and 10. Bug #3643.
844794c8 2637
bd4b5750
SM
26382010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2639
8dc1adf6 2640 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2641 * keymap.c (shadow_lookup): Add `remap' arg.
2642 (describe_map, describe_vector): Update calls to shadow_lookup.
2643 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2644 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2645 perform remapping during shadow_lookup check of remapped_sequences.
2646
285d07e2
CY
26472010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2648
2649 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2650 png_check_sig, which has been removed in libpng 1.4.
2651
c6d09b8d
CY
26522010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2653
2654 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2655 lacks this header file).
2656
3d782998
YM
26572010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2658
2659 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2660 as in Emacs 22.
2661
2aff7c53
YM
26622010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2663
2664 * lisp.h (make_pure_string): String pointer arg now points to const.
2665
2666 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2667 args now point to const.
2668
74327f7a
EZ
26692010-01-22 Eli Zaretskii <eliz@gnu.org>
2670
2671 * lread.c (Fload): Don't treat files without .elc extension as
2672 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2673 them. (bug#5303)
2674
4d1e6632
KH
26752010-01-20 Kenichi Handa <handa@m17n.org>
2676
2677 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2678 treat the source as actual byte sequence.
2679
1fdede8f
AM
26802010-01-19 Alan Mackenzie <acm@muc.de>
2681
2682 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2683 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2684 `signal_after_change_p' to `coherent_change_p', and make the
2685 invocation of `modify_region' conditional on it.
2686
67477f30
JD
26872010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2688
2689 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2690 for debug purpose.
2691 (syms_of_xsettings): Declare xft-settings.
2692
244b023e
CY
26932010-01-18 Chong Yidong <cyd@stupidchicken.com>
2694
2695 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2696
617364fe
CY
26972010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2698
2699 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2700
4fe22cdf
CY
27012010-01-16 Chong Yidong <cyd@stupidchicken.com>
2702
2703 * emacs.c (standard_args): Adjust arg priorities to reflect how
2704 they are processed in startup.el.
2705
e118d2be
AS
27062010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2707
2708 * Makefile.in (lisp, shortlisp): Update.
2709
523ae620
SM
27102010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2711
2712 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2713 code, link the new kboard into all_kboard before running Lisp code,
2714 and protect the new terminal with GCPRO (Bug#5365).
2715 (x_term_init): Remove unused var `atom'.
2716 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2717
f0d13888
JD
27182010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2719
2720 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2721 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2722 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2723 this. Bug #3643.
f0d13888 2724
cc320f07
KH
27252010-01-15 Kenichi Handa <handa@m17n.org>
2726
2727 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2728
7ffdf101
CY
27292010-01-15 Chong Yidong <cyd@stupidchicken.com>
2730
2731 * nsterm.m (Qnone): Define.
2732
2733 * nsfns.m (Qnone): Move definition to nsterm.m.
2734
d12bd917
KH
27352010-01-14 Kenichi Handa <handa@m17n.org>
2736
2737 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2738 systems.
2739
d9a7c140
KH
27402010-01-14 Kenichi Handa <handa@m17n.org>
2741
2742 Make auto-composition work on all buffers even if they are
2743 fundamental mode.
2744
2745 * composite.c (Vauto_composition_mode): New variable.
2746 (composition_compute_stop_pos): Check Vauto_composition_mode
2747 instead of Vauto_composition_function.
2748 (composition_adjust_point, Ffind_composition_internal): Likewise.
2749 (syms_of_composite): Declare Lisp variable
2750 "auto-composition-mode" here.
2751
63286bb2
CY
27522010-01-13 Chong Yidong <cyd@stupidchicken.com>
2753
2754 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2755 during call to vendor-specific-keysyms (Bug#5365).
2756
c2623ee7
YM
27572010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2758
2759 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2760 Call SIGNAL_THREAD_CHECK (Bug#5333).
2761
2762 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2763 Call SIGNAL_THREAD_CHECK.
2764
0b5397c2
SM
27652010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2766
2767 Try to fix bug#5314. This is probably not the final word, tho.
2768 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2769 recent-auto-save-p as a side-effect.
2770 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2771 * buffer.c (Fkill_buffer, reset_buffer):
2772 * editfns.c (Fsubst_char_in_region):
2773 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2774 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2775
dc954cb2
KH
27762010-01-13 Kenichi Handa <handa@m17n.org>
2777
2778 Display buffer name, etc. in mode line by composing correctly.
2779
2780 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2781 STRING is not nil.
0b5397c2 2782 (display_mode_element): Adjust for the change of
dc954cb2
KH
2783 decode_mode_spec and display_line.
2784 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2785 (display_string): Handle the case that STRING is non-null and
2786 LISP_STRING is not nil.
2787
0b5397c2
SM
2788 * xterm.c (x_draw_composite_glyph_string_foreground):
2789 Pay attention to s->face->overstrike.
dc954cb2
KH
2790
2791 * composite.c (composition_reseat_it): Don't check PT if STRING is
2792 non nil.
2793
4a00eaca
YM
27942010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2795
2796 * keyboard.c (read_char): Don't apply previous change when current
2797 buffer is unchanged by command execution.
2798
60abb287
JD
27992010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2800
2801 * keyboard.c (read_char): Return after executing from special map.
2802
893db5bc
GM
28032010-01-12 Glenn Morris <rgm@gnu.org>
2804
2805 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2806 bug-gnu-emacs rather than emacs-pretest-bug.
2807
4d03ece0
CY
28082010-01-11 Chong Yidong <cyd@stupidchicken.com>
2809
2810 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2811 initializing the Lisp variables that depend on them.
2812
1df47e38
YM
28132010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2814
2815 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2816 Clear areas that will not be updated after change of menu bar lines.
2817 Clear the menu bar window's current matrix when the window gets empty.
2818
2f1c6384
CY
28192010-01-09 Chong Yidong <cyd@stupidchicken.com>
2820
e398c61c
CY
2821 * intervals.h, textprop.c (extend_property_ranges): Return value
2822 and args changed. Discard properties that begin at or after the
2823 new end (Bug#5306).
2824
2825 * editfns.c (Fformat): Caller changed.
2826
e5a29a10
CY
2827 * nsterm.m (ns_set_default_prefs): Delete function.
2828 (syms_of_nsterm): Initialize ns_command_modifier,
2829 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2830 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2831
2f1c6384
CY
2832 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2833 position (Bug#4040).
2834
d427a9fa
EZ
28352010-01-09 Eli Zaretskii <eliz@gnu.org>
2836
2837 * editfns.c (Ffloat_time): Doc fix.
2838
21b9df2f
JD
28392010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2840
2841 * xfns.c (Fx_create_frame): Don't create frame larger than display
2842 by default bug#3643.
2843
4b00d3b1
YM
28442010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2845
2846 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2847 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2848 windows above internal border.
2849
2850 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2851 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2852 windows above internal border.
2853
2854 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2855 tool bar windows specially.
2856
2857 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2858
2859 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2860 specially.
2861 (XTflash): Take account of menu bar height.
2862
2863 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2864 specially.
2865
5075d853
JD
28662010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2867
ac146f82 2868 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2869 also be true before we can return early (bug #5339).
2870
474217c8
CY
28712010-01-06 David Reitter <david.reitter@gmail.com>
2872
2873 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2874 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2875 (Bug#3233).
2876
c0e6d47d
JD
28772010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2878
d0cf45b7
JD
2879 * font.c (font_open_entity): Enable chache and call cached_font_ok
2880 for the driver if defined.
2881 (QCuser_spec): New symbol.
2882 (font_spec_from_name): Save name as user-spec.
2883 (font_load_for_lface): Keep user-spec instead of name.
2884 (font_open_by_name): Save name as user-spec.
2885 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2886 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2887
2888 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2889 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2890 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2891
2892 * font.h (struct font_driver): Add cached_font_ok.
2893
c0e6d47d
JD
2894 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2895
7c583cd8
JD
28962010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2897
2898 * xterm.c (x_new_font): Move code for setting rows/cols before
2899 resizing ...
ac146f82 2900 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2901
2902 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2903 (xg_frame_resized, xg_frame_set_char_size):
2904 Call xg_clear_under_internal_border.
7c583cd8 2905 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2906
03f77f0a
CY
29072010-01-05 Chong Yidong <cyd@stupidchicken.com>
2908
2909 * keyboard.c (read_key_sequence): Catch keyboard switch after
2910 making a new tty frame (Bug#5095).
2911
2a1ef5be
KH
29122010-01-05 Kenichi Handa <handa@m17n.org>
2913
2914 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2915
e3eb1dae
SM
29162010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2917
2918 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2919 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2920 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2921
777013f2
MA
29222010-01-03 Michael Albinus <michael.albinus@gmx.de>
2923
2924 * dbusbind.c (xd_add_watch): Improve debug message.
2925 (xd_remove_watch): Improve debug message. If DATA is the session
2926 bus, unset D-Bus session environment.
2927 (Fdbus_init_bus): Pass the bus as argument to
2928 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2929
8932b1c2
CY
29302010-01-01 Chong Yidong <cyd@stupidchicken.com>
2931
87231e2c
CY
2932 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2933
4801c5fa
CY
2934 * lread.c (syms_of_lread): Make it clearer that these are the
2935 names of loaded files (Bug#5068).
2936
8932b1c2
CY
2937 * eval.c (run_hook_with_args): Handle the case where the global
2938 value has the obsolete single-function form (Bug#5026).
2939
11e3c684
CY
29402009-12-27 Chong Yidong <cyd@stupidchicken.com>
2941
2942 * minibuf.c (Fall_completions): Minor optimization.
2943
5b28ce35
EZ
29442009-12-26 Eli Zaretskii <eliz@gnu.org>
2945
5ce6e4f4
JB
2946 * .gdbinit (pgx): Fix display of composite glyphs.
2947 Display cmp.from and cmp.to as well.
2948 (pitx): Fix last change.
5b28ce35 2949
bcffff46
KH
29502009-12-25 Kenichi Handa <handa@m17n.org>
2951
2952 * composite.h (composition_adjust_point): Update prototype.
2953
2954 * composite.c (composition_reseat_it): Don't make a composition
2955 spanning over point.
2956 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2957 composable characters.
2958 (composition_adjust_point): New arg NEW_PT. Callers changed.
2959
2960 * keyboard.c (command_loop_1): Force redisplay if the last point
2961 was within a composition.
2962 (adjust_point_for_property): Don't adjust point for automatic
2963 composition when called after buffer modification.
2964
3f670e9a
EZ
29652009-12-19 Eli Zaretskii <eliz@gnu.org>
2966
5ce6e4f4
JB
2967 * .gdbinit (pitx): Don't use enum names, use their values.
2968 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2969 (pgx): Don't use enum names, use their values.
2970 (pitmethod): New helper command.
2971 (pitx): Use it to display iteration method.
2972 (pgrowit): New command.
2973
ad903955
EZ
2974 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2975
3f670e9a
EZ
2976 Update dependencies in Makefile.in.
2977
2978 * Makefile.in (alloc.o): Depend on termhooks.h.
2979 (atimer.o): Depend on blockinput.h.
2980 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2981 and frame.h.
2982 (callint.o): Depend on systime.h, coding.h, and composite.h.
2983 (callproc.o): Depend on buffer.h.
2984 (casefiddle.o): Don't depend on charset.h.
2985 (casetab.o): Depend on character.h.
2986 (ccl.o): Depend on composite.h.
2987 (chartab.o): Depend on ccl.h.
2988 (cm.o): Depend on dispextern.h.
2989 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2990 (coding.o): Don't depend on $(INTERVALS_H).
2991 (composite.o): Don't depend on dispextern.h explicitly (it's in
2992 $(INTERVALS_H)). Depend on ccl.h.
2993 (data.o): Depend on systime.h, coding.h, composite.h,
2994 dispextern.h, font.h, and ccl.h.
2995 (dired.o): Depend on composite.h.
2996 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2997 composite.h (it's in $(INTERVALS_H)).
2998 (doc.o): Depend on systime.h, coding.h, and composite.h.
2999 (editfns.o): Don't depend explicitly on dispextern.h.
3000 (emacs.o): Depend on frame.h and coding.h.
3001 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3002 (fileio.o): Depend on frame.h and commands.h. Don't depend
3003 explicitly on dispextern.h.
3004 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3005 composite.h.
3006 (fns.o): Don't depend on termhooks.h.
3007 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3008 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3009 coding.h, $(INTERVALS_H), window.h, xterm.h.
3010 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3011 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3012 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3013 fontset.h, ccl.h, and ftfont.h.
3014 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3015 (gtkutil.o): Depend on dispextern.h and composite.h.
3016 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3017 termhooks.h, and ccl.h.
3018 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3019 (intervals.o): Depend on systime.h and coding.h.
3020 (keyboard.o): Depend on composite.h and coding.h.
3021 (keymap.o): Depend on coding.h and frame.h.
3022 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3023 (macros.o): Depend on systime.h, coding.h, and composite.h.
3024 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3025 and atimer.h.
3026 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3027 dispextern.h explicitly.
0b5397c2
SM
3028 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3029 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3030 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3031 (regex.o): Don't depend on charset.h.
3032 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3033 (search.o): Don't depend explicitly on composite.h.
3034 (sound.o): Depend on atimer.h and systime.h.
3035 (syntax.o): Don't depend explicitly on composite.h.
3036 (sysdep.o): Depend on coding.h and composite.h.
3037 (term.o): Depend on xterm.h and buffer.h.
3038 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3039 (textprop.o): Don't depend on dispextern.h explicitly.
3040 (undo.o): Depend on dispextern.h.
3041 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3042 dispextern.h and composite.h explicitly.
3043 (xdisp.o): Depend on ccl.h.
3044 (xfaces.o): Depend on coding.h and ccl.h.
3045 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3046 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3047 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3048 ftfont.h.
3049 (xgselect.o): New dependency.
3050 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3051 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3052 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3053 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3054 (xsmfns.o): Depend on frame.h and dispextern.h.
3055 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3056 sysselect.h.
3057
7a6f7fea
AS
30582009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3059
3060 * font.c (Fclear_font_cache): Pass correct cache argument to
3061 font_clear_cache.
3062
f4c21026
AS
30632009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3064
3065 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3066 twice.
3067
f7ab0997
CY
30682009-12-15 Chong Yidong <cyd@stupidchicken.com>
3069
3070 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3071 calling file-remote-p. Reported by Jim Meyering.
3072
fa8e045a
MA
30732009-12-15 Michael Albinus <michael.albinus@gmx.de>
3074
3075 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3076 avoid compiler warnings. (Bug #5217)
fa8e045a 3077
a63dba42
KH
30782009-12-14 Kenichi Handa <handa@m17n.org>
3079
3080 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3081 in 8-bit encoding.
3082
5ce6e4f4 30832009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3084
3085 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3086 tooltip windows.
3087
223e5fc6
JD
30882009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3089
36acb2a7
JD
3090 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3091 Xatom_net_window_type.
3092
3093 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3094 Xatom_net_window_type.
3095
b8f00677
JD
3096 * xterm.c (my_log_handler): New function.
3097 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3098 so we can filter out buggy messages. (Bug #5120).
b8f00677 3099
e5f0bc9a
JD
3100 * xterm.c (xg_scroll_callback): Parameter list changed,
3101 use parameter GtkScrollType to determine scroll/line/page.
3102 Only allow dragging if a button < 4 is grabbed (bug #5177).
3103 (xg_end_scroll_callback): New function.
3104 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3105 xg_create_scroll_bar.
3106
3107 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3108 (scroll_end_callback): Remove.
3109 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3110 button-release-event. Replace value-changed event with change-value,
3111 bug #5177,
3112 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3113 bug #5177.
3114
3115 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3116 (xg_create_scroll_bar): Add GCallback end_callback.
3117
223e5fc6
JD
3118 * xftfont.c (QClcdfilter): New variable.
3119 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3120 (syms_of_xftfont): Initialize QClcdfilter.
3121
3c055b77
JD
31222009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3123
3124 * xsettings.c (struct xsettings): Add member seen.
3125 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3126 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3127 (apply_xft_settings): Only update Xft settings with what member seen
3128 indicates as new.
3129
05fe33ff
EZ
31302009-12-12 Eli Zaretskii <eliz@gnu.org>
3131
3132 * dispextern.h (struct text_pos): Use EMACS_INT;
3133 (struct glyph): Use EMACS_INT for charpos.
3134 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3135 region_beg_charpos, region_end_charpos,
3136 redisplay_end_trigger_charpos, and also for
3137 iterator_stack_entry.end_charpos and
3138 iterator_stack_entry.stop_charpos.
3139
e8d7886a
JD
31402009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3141
5ce6e4f4 3142 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3143 (xg_create_scroll_bar): Call scroll_end_callback on button release
3144 event (bug #5177).
3145 (xg_event_is_for_scrollbar): != replaced with ==.
3146
d0db2ec8
KH
31472009-12-12 Kenichi Handa <handa@m17n.org>
3148
3149 * ftfont.c (struct ftfont_info): New member matrix.
3150 (ftfont_open): Setup xftfont_info->matrix.
3151 (MFLTFontFT): New member matrix.
3152 (FLOOR, CEIL, ROUND): New macros.
3153 (ftfont_get_metrics): Handle matrix transformation.
3154 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3155
3156 * xftfont.c (struct xftfont_info): New member matrix.
3157 (xftfont_open): Setup xftfont_info->matrix.
3158
31592009-12-10 Kenichi Handa <handa@m17n.org>
3160
3161 * xdisp.c (append_space_for_newline): Consider face-remapping.
3162
2cc7b62f
AS
31632009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3164
b87dd913
AS
3165 * xsettings.c: Include "keyboard.h".
3166
eba5eb94
AS
3167 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3168
2cc7b62f
AS
3169 Fix implicit function declarations.
3170 * cmds.c: Include "frame.h".
3171 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3172 * frame.h: Move declaration of delete_frame outside of
3173 HAVE_WINDOW_SYSTEM.
3174
a4ef73c8
CY
31752009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3176
3177 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3178
3179 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3180 GTK builds.
3181
944a300c
AS
31822009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3183
3184 * unexelf.c (unexec): Don't search for .data twice.
3185
022eef62
CY
31862009-12-05 Chong Yidong <cyd@stupidchicken.com>
3187
426ac949
CY
3188 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3189 if push failed.
3190 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3191 of push_display_prop (Bug#5000).
3192
022eef62
CY
3193 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3194 value of font_list_entities (Bug#5085).
3195
be95bee9
JB
31962009-12-04 Juanma Barranquero <lekktu@gmail.com>
3197
3198 Fix `string-to-number' to deal consistently with integers and floats.
3199 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3200 trailing characters, not just whitespace.
3201 (read1): Pass new arg 0 to keep old behavior.
3202 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3203 trailing chars, as it is already done for integers. Doc fixes.
3204 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3205
24c2d7ce
EZ
32062009-12-04 Eli Zaretskii <eliz@gnu.org>
3207
0b5397c2
SM
3208 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3209 Delete unused enumeration value.
24c2d7ce 3210
7e694795
EZ
32112009-12-03 Eli Zaretskii <eliz@gnu.org>
3212
3213 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3214
84b31826
SM
32152009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3216
3217 * process.c (Fmake_network_process): Fix up the tests for
3218 "connectionless socket", so they DTRT for seqpacket sockets as well.
3219
f00c449b
SM
32202009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3221
3222 * process.c (Qseqpacket): New symbol.
3223 (HAVE_SEQPACKET): New macro.
3224 (Fmake_network_process): Accept new :type `seqpacket'.
3225 (init_process): Add `seqpacket' feature when applicable.
3226 (syms_of_process): Initialize Qseqpacket.
3227
8096a0ff
YM
32282009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3229
3230 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3231 if entity is Qnil.
3232
3e0de07f
SM
32332009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3234
3235 * print.c (print_preprocess): Preprocess the key_and_value table of
3236 hashtables, even tho they're "hidden" (bug#5082).
3237
abeafb2a
JD
32382009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3239
3240 * frame.c (frame_make_pointer_invisible)
3241 (frame_make_pointer_visible): Declare f before statements.
3242
4bf47195
EZ
32432009-11-28 Eli Zaretskii <eliz@gnu.org>
3244
3245 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3246 omitted dependencies on lisp.h.
3247
c525b3f2
JD
32482009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3249
ece2d4ed
JD
3250 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3251 is NULL.
3252
3253 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3254
3255 * frame.c (frame_make_pointer_invisible)
3e0de07f 3256 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3257 frame.
3258
c525b3f2
JD
3259 * search.c (simple_search): Remove warning by making *p const.
3260
2f00e299
DN
32612009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3262
3263 * xdisp.c (power_letter): Remove duplicate const.
3264
084b049b
JD
32652009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3266
a1fadc6f
JD
3267 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3268
5ce6e4f4 3269 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3270 defaults (bug #5025).
3271
28259cac
SM
32722009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3273
3274 * insdel.c (adjust_markers_for_delete): Move it in the
3275 right direction! (bug#4803)
3276
e8e14166
YM
32772009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3278
3279 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3280
3281 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3282
86677b58
GM
32832009-11-24 Glenn Morris <rgm@gnu.org>
3284
3285 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3286
581e51e8
JD
32872009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3288
cfc86c7a
JD
3289 * Makefile.in: Must create deps for ecrt0.o in its rule.
3290
581e51e8
JD
3291 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3292 because that is what Gtk+ font dialog understands.
3293
3294 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3295 of Fcopy_sequence.
3296 (font_open_by_name): Put name given into QCname for font-object returned.
3297
3298 * frame.c (x_set_font): Save original font name as frame parameter
3299 font-parameter.
3300
3301 * xsettings.c (set_default_xft_settings): New function.
3302 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3303 is found.
3304
8b264ecb
AS
33052009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3306
3307 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3308 searching backwards through multibyte buffer.
3309
872870b2
JD
33102009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3311
3312 * xterm.c: #include xgselect.h.
3313 (x_initialize): Call xgselect_initialize.
3314
3315 * xsettings.c (something_changedCB): C++ comments => C comments.
3316 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3317 does that now.
3318
3319 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3320 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3321 (scroll_bar_button_cb): Remove.
5ce6e4f4 3322 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3323 event.
3324 (xg_create_scroll_bar): Don't bind button-press-event and
3325 button-release-event.
3326
3327 * process.c: Include xgselect.h if defined (USE_GTK) ||
3328 defined (HAVE_GCONF).
3329 (wait_reading_process_output): Call xg_select for the same condition.
3330
3331 * xgselect.c (xg_select): New function to better integrate with
3332 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3333
3334 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3335
3336 * Makefile.in (XOBJ): Add xgselect.o.
3337
62a6e103
AS
33382009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3339
0b5397c2
SM
3340 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3341 Remove ignored second argument. All callers changed.
62a6e103
AS
3342 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3343 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3344 * xdisp.c (string_char_and_length): Likewise.
3345
b0ca0f33
DN
33462009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3347
3348 * xterm.c (x_new_font):
3349 * print.c (print_object):
3350 * cmds.c (Fself_insert_command): Move declarations before statements.
3351
dd5a6279
CY
33522009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3353
3354 * s/cygwin.h: Remove unneeded linker flags.
3355
4a8e097d
JD
33562009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3357
0d1d0d26
JD
3358 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3359
3360 * xsettings.h: Declare xsettings_get_system_font.
3361
3362 * xsettings.c (xsettings_get_system_font): New function.
3363 (init_gconf): No use initiating gconf unless we have Xft also.
3364 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3365 HAVE_GCONF.
3366
4a8e097d
JD
3367 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3368 add a blank entry so it doesn't collapse into nothing.
3369
8ab1650e
SM
33702009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3371
3372 * lread.c (Funintern): Comment out last change.
3373
82c602f0
RS
33742009-11-19 Richard Stallman <rms@gnu.org>
3375
3376 * lread.c (Funintern): Error if symbol is t or nil.
3377
87e32266
SM
33782009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3379
3380 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3381 representation of Lisp integers.
3382 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3383
1b9ac145
AS
33842009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3385
3386 * lisp.h: Remove declaration of Ffont_get_system_font.
3387 * xfns.c: Move include of "xsettings.h".
3388 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3389
dfb3c4c6
JD
33902009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3391
87e32266
SM
3392 * xsettings.c (something_changedCB, Ffont_get_system_font):
3393 Check use_system_font.
dfb3c4c6
JD
3394 (syms_of_xsettings): DEFVAR font-use-system-font.
3395
9370c1d8
AS
33962009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3397
25fe851a
AS
3398 * xfns.c (x_default_font_parameter): Remove dead assignment.
3399
9370c1d8
AS
3400 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3401
637fa988
JD
34022009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3403
87e32266 3404 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3405 not have FC_LCD_*. #define them if not there.
a6eb20d8 3406
87e32266 3407 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3408
637fa988
JD
3409 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3410
3411 * xterm.c (handle_one_xevent): Call xft_settings_event for
3412 ClientMessage, PropertyNotify and DestroyNotify.
3413 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3414 Call xsettings_initialize.
3415
3416 * xftfont.c (xftfont_fix_match): New function.
3417 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3418 Call xftfont_fix_match after XftFontMatch.
3419
3420 * xfont.c (xfont_driver): Initialize all members.
3421
87e32266
SM
3422 * xfns.c (x_default_font_parameter):
3423 Try font from Ffont_get_system_font.
637fa988
JD
3424 Do not get font from x_default_parameter if we got one from
3425 Ffont_get_system_font.
87e32266 3426 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3427
3428 * w32font.c (w32font_driver): Initialize all members.
3429
3430 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3431
3432 * lisp.h: Declare syms_of_xsettings.
3433
87e32266
SM
3434 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3435 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3436
3437 * ftfont.c (ftfont_filter_properties): New function.
3438
3439 * frame.c (x_set_font): Remove unused variable lval.
3440
87e32266 3441 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3442
3443 * font.c (font_put_extra): Don't return if val is nil, it means
3444 boolean option is off.
3445 (font_parse_fcname): Collect all extra properties in extra_props
3446 and call filter_properties for all drivers with extra_props and
3447 font as parameter.
87e32266
SM
3448 (font_open_entity): Do not use cache, it does not pick up new
3449 fontconfig settings like hinting.
637fa988
JD
3450 (font_load_for_lface): If spec had a name in it, store it in entity.
3451
a73f9c9d 3452 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3453
3454 * config.in: HAVE_GCONF is new.
3455
3456 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3457 xsettings.o is new.
3458
5a942932
KH
34592009-11-17 Kenichi Handa <handa@m17n.org>
3460
3461 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3462 back to the default font in case that no suitable font is found.
3463
b7c7a4d1
SM
34642009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3465
3466 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3467 Suggested by Chad Brown <yandros@mit.edu>.
3468 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3469
072f1e39
JD
34702009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3471
3472 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3473
5d1e70a2
AS
34742009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3475
87e32266 3476 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3477
a53cfbe5
JD
34782009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3479
473a99b7
JD
3480 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3481 has a parent.
3482
a53cfbe5 3483 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3484 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3485
3486 * config.in: Generated (AUTO_DEPEND).
3487
f04bb9b2
MA
34882009-11-13 Michael Albinus <michael.albinus@gmx.de>
3489
b7c7a4d1 3490 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3491 Vdbus_registered_functions_table, because it contains also
3492 properties. Fix docstring.
b7c7a4d1 3493 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3494
8f11f7ec
SM
34952009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3496
3497 * alloc.c (mark_object): Don't reprocess marked strings.
3498 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3499 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3500
8a605fe8
KH
35012009-11-13 Kenichi Handa <handa@m17n.org>
3502
8f11f7ec 3503 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3504 semantics of Vword_combining_categories.
3505 (Vword_combining_categories): Describe the slight change of the
3506 semantics.
3507
241c4680
EZ
35082009-11-13 Eli Zaretskii <eliz@gnu.org>
3509
3510 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3511
3512 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3513
5d58e44c
SM
35142009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3515
3516 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3517
5e13f9d3
JB
35182009-11-12 Juanma Barranquero <lekktu@gmail.com>
3519
3520 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3521
cf54c754
DR
35222009-11-11 David Reitter <david.reitter@gmail.com>
3523
3524 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3525 variables to fix 2009-11-09 change.
3526
a4ada374
DN
35272009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3528
91433552
DN
3529 * process.c (ifflag_def): Make flag_sym constant.
3530 (Fnetwork_interface_info): Use a constant pointer.
3531 (ifflag_table):
3532 * xfns.c (cursor_bits):
3533 * xdisp.c (power_letter):
3534 * termcap.c (speeds, esctab):
3535 * sysdep.c (baud_convert):
3536 * keyboard.c (lispy_accent_codes, modifier_names):
3537 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3538 (jpeg_format, tiff_format, gif_format, svg_format)
3539 (interlace_start, interlace_increment, gs_format):
3540 * gtkutil.c (separator_names):
3541 * fringe.c (swap_nibble):
3542 * fns.c (base64_value_to_char, base64_char_to_value):
3543 * fileio.c (make_temp_name_tbl):
3544 * coding.c (suffixes): Make constant.
3545
f4265f6c
DN
3546 * frame.c (make_initial_frame):
3547 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3548 build_string.
3549 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3550
04420943
DN
3551 * s/freebsd.h:
3552 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3553
0a5d24ae
DN
3554 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3555 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3556
a4ada374
DN
3557 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3558 * xterm.c (syms_of_xterm):
3559 * xfaces.c (syms_of_xfaces):
3560 * xdisp.c (syms_of_xdisp):
3561 * lread.c (syms_of_lread):
3562 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3563 build_string.
91433552 3564
a4ada374
DN
3565 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3566
af98fc7f
SM
35672009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3568
8ab1650e 3569 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3570
e90292a9
JD
35712009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3572
3573 * keyboard.h: Declare timer_check.
3574
3575 * keyboard.c (timer_check_2): New function that does what the old
3576 timer_check did.
3577 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3578 returned, i.e. don't return -1 with timers pending.
3579
3580 * process.c: Remove extern declaration of timer_check.
3581
3582 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3583 even if timer_check returned -1.
3584
af98fc7f
SM
3585 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3586 xg_dialog_data.
e90292a9
JD
3587 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3588 the event loop.
3589 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3590 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3591 Destroy the dialog after xg_dialog_run.
3592
045b83c0
SM
35932009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3594
3595 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3596
1fb99a3a
JD
35972009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3598
3599 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3600
04e452cb
JB
36012009-11-09 Juanma Barranquero <lekktu@gmail.com>
3602
3603 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3604
ef7417fd
SM
36052009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3606
3607 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3608 w32menu.c, and nsmenu.m.
3609 Simplify the obsolete case where position is nil.
3610 (cleanup_popup_menu): New function, moved from nsmenu.m.
3611 (struct skp): Remove slot `notreal'.
3612 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3613 adjust callers.
3614 (single_menu_item): Adjust call to parse_menu_item.
3615 (syms_of_menu): Defsubr x-popup-menu.
3616 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3617 (keymap_panes): Don't export any more.
3618 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3619 (xmenu_show): Declare.
3620 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3621 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3622 * keyboard.h (parse_menu_item): Update declaration.
3623 * xmenu.c (Fx_popup_menu): Remove.
3624 (syms_of_xmenu): Don't defsubr x-popup-menu.
3625 * w32menu.c (Fx_popup_menu): Remove.
3626 (syms_of_w32menu): Don't defsubr x-popup-menu.
3627 * nsmenu.m (cleanup_popup_menu): Remove.
3628 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3629 moved to menu.c's Fx_popup_menu.
3630 (Fx_popup_menu): Remove.
3631 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3632 menu_items (it's done in menu.c already).
3633
424d6179
SM
36342009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3635
3636 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3637 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3638
c0df13a6 36392009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3640
3641 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3642 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3643 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3644 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3645
2de9f71c
SM
36462009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3647
3648 Let integers use up 2 tags to give them one extra bit and thus double
3649 their range.
3650 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3651 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3652 New macros.
3653 (enum Lisp_Type): Use them. Give explicit values.
3654 (Lisp_Type_Limit): Remove.
3655 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3656 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3657 Pay attention to USE_2_TAGS_FOR_INTS.
3658 (INTEGERP): Use LISP_INT_TAG_P.
3659 * fns.c (internal_equal): Simplify the default case.
3660 (sxhash): Use case_Lisp_Int.
3661 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3662 any more.
3663 (Ftype_of): Use case_Lisp_Int.
3664 (store_symval_forwarding): Take into account the fact that Ints can
3665 now have more than one tag.
3666 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3667 buffer_slot_type_mismatch):
3668 * xfaces.c (face_attr_equal_p):
3669 * print.c (print_object):
3670 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3671 Use case_Lisp_Int.
3672
323637a2
EZ
36732009-11-06 Eli Zaretskii <eliz@gnu.org>
3674
7ac65b38
EZ
3675 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3676
323637a2
EZ
3677 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3678 warning.
3679
e511451f
JD
36802009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3681
3682 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3683
3684 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3685
3686 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3687 ButtonPressRelease and MotionNotify (bug#4870).
3688
5e2327cf
DN
36892009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3690
5adc433e
DN
3691 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3692
d67b4f80
DN
3693 * xterm.c (syms_of_xterm):
3694 * xselect.c (syms_of_xselect):
3695 * xmenu.c (syms_of_xmenu):
3696 * xfns.c (syms_of_xfns):
3697 * xfaces.c (syms_of_xfaces):
3698 * xdisp.c (syms_of_xdisp):
3699 * window.c (syms_of_window):
3700 * w32fns.c (syms_of_w32fns):
3701 * undo.c (syms_of_undo):
3702 * textprop.c (syms_of_textprop):
3703 * terminal.c (syms_of_terminal):
3704 * syntax.c (syms_of_syntax):
3705 * sound.c (syms_of_sound):
3706 * search.c (syms_of_search):
3707 * print.c (syms_of_print):
3708 * minibuf.c (syms_of_minibuf):
3709 * macros.c (syms_of_macros):
3710 * keymap.c (syms_of_keymap, initial_define_key)
3711 (initial_define_lispy_key):
3712 * keyboard.c (syms_of_keyboard):
3713 * insdel.c (syms_of_insdel):
3714 * image.c (syms_of_image):
3715 * fringe.c (syms_of_fringe):
3716 * frame.c (syms_of_frame):
3717 * fontset.c (syms_of_fontset):
3718 * fns.c (syms_of_fns):
3719 * fns.c (syms_of_fns):
3720 * fileio.c (syms_of_fileio):
3721 * fileio.c (syms_of_fileio):
3722 * eval.c (syms_of_eval):
3723 * doc.c (syms_of_doc):
3724 * dispnew.c (syms_of_display):
3725 * dired.c (syms_of_dired):
3726 * dbusbind.c (syms_of_dbusbind):
3727 * data.c (syms_of_data):
3728 * composite.c (syms_of_composite):
3729 * coding.c (syms_of_coding):
3730 * cmds.c (syms_of_cmds):
3731 * charset.c (define_charset_internal, syms_of_character):
3732 * ccl.c (syms_of_ccl):
3733 * category.c (syms_of_category, init_category_once):
3734 * casetab.c (syms_of_casetab):
3735 * casefiddle.c (syms_of_casefiddle):
3736 * callint.c (syms_of_callint):
3737 * bytecode.c (syms_of_bytecode):
3738 * buffer.c (keys_of_buffer, syms_of_buffer):
3739 * alloc.c (syms_of_alloc):
3740 * process.c (syms_of_process, init_process):
3741 * lread.c (syms_of_lread, init_obarray):
3742 * font.c (build_style_table):
3743 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3744 intern_c_string, calls to make_pure_string with
3745 make_pure_c_string. Use pure_cons instead of Fcons.
3746
5e2327cf
DN
3747 * process.c (socket_options): Make it const.
3748 (set_socket_option, init_process): Use a const pointer.
3749
3750 * lread.c (intern_c_string): New function.
3751 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3752 (defvar_int): Uset it. Make the name const char*.
3753
3754 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3755 (defvar_int): Update prototypes.
3756 (DEFUN, EXFUN): Support for prototypes is now required.
3757 (intern_c_string): New prototype.
3758 (struct Lisp_Subr): Make symbol_name constant.
3759
3760 * font.c (struct table_entry): Remove unused member. Make NAMES
3761 constant.
3762 (weight_table, slant_table, width_table): Make constant.
3763
3764 * emacs.c (struct standard_args): Make name and longname constant.
3765
3766 * character.h (DEFSYM): Use intern_c_string.
3767
a56eaaef
DN
37682009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3769
3770 * alloc.c (make_pure_c_string): New function.
3771
3772 * eval.c (Fautoload): Purecopy all arguments.
3773
f6a07420
KH
37742009-11-05 Kenichi Handa <handa@m17n.org>
3775
3776 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3777 the buffer in case of replace.
3778
5d28d4b1
DN
37792009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3780
3781 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3782
b349d111
SM
37832009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3784
d528b1ce
SM
3785 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3786 when applicable (bug#4851).
3787
b349d111
SM
3788 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3789 (P_): Support for prototypes is now required.
3790
c38eb027
CY
37912009-10-31 Chong Yidong <cyd@stupidchicken.com>
3792
3793 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3794 (Bug#4827).
3795
0405f8d9
EZ
37962009-10-30 Eli Zaretskii <eliz@gnu.org>
3797
d528b1ce 3798 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3799
ca0a881a
DN
38002009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3801
3802 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3803
d528b1ce
SM
3804 * lread.c (Fload): Purecopy the file name when building
3805 Vpreloaded_file_list.
ca0a881a 3806
47e0e0e4
JR
38072009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3808
3809 * w32fns.c (syms_of_w32fns): Change default value of
3810 w32-scroll-lock-modifier to nil. (Bug#2827)
3811
057bce6f
JB
38122009-10-26 Juanma Barranquero <lekktu@gmail.com>
3813
782a943e 3814 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3815
242bc74c
AS
38162009-10-26 Andreas Schwab <schwab@redhat.com>
3817
3818 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3819
522d013a
JB
38202009-10-26 Juanma Barranquero <lekktu@gmail.com>
3821
3822 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3823 For delta < 0, skip check that only makes sense when the mini-window
3824 is going to be enlarged. (Bug#4534)
3825
18060980
CY
38262009-10-25 Chong Yidong <cyd@stupidchicken.com>
3827
3828 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3829 string in menu maps (Bug#4471).
3830
fec8f0fe
CY
38312009-10-24 Chong Yidong <cyd@stupidchicken.com>
3832
3833 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3834 FRAME_NS_VIEW on terminal frames (Bug#4765).
3835
10d66ec0
AS
38362009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3837
1cae01f7
AS
3838 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3839 DBUS_TYPE_UINTnn separately to get proper sign extension.
3840
58a12889
AS
3841 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3842 can properly handle unsigned types.
d528b1ce 3843 (make_uid, make_gid): Remove.
58a12889 3844
987c9327
AS
3845 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3846 types again.
3847
522d013a 3848 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3849 (system_process_attributes): Likewise.
3850
905a9ed3
DN
38512009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3852
3853 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3854
3855 * eval.c (Fautoload): Purecopy the filename. Simplify.
3856
3857 * category.c (Fdefine_category): Purecopy docstring.
3858
a599b3e8
AS
38592009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3860
7b792fc9
AS
3861 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3862
a599b3e8
AS
3863 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3864
b35ac83e
CY
38652009-10-23 Chong Yidong <cyd@stupidchicken.com>
3866
3867 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3868 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3869 (Bug#4775).
3870
e8903e00
SM
38712009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3872
3873 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3874 (init_fileio_once):
3875 * lisp.h (init_fileio_once): Remove.
3876 * emacs.c (main): Don't call init_fileio_once.
3877
8f43cbf3
DN
38782009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3879
3880 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3881
26898943
AS
38822009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3883
3884 * doprnt.c (doprnt): Fix overflow check.
3885
5c646d5a
JD
38862009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3887
3132a7ea
JD
3888 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3889
5c646d5a
JD
3890 * xterm.h (x_wait_for_event): Declare it.
3891
3892 * xterm.c (pending_event_wait): New variable.
3893 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3894 see pending_event_wait.eventtype.
3895 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3896 (x_new_font): Call change_frame_size with new rows/columns before we
3897 try to resize the frame.
5c646d5a 3898 (x_wait_for_event): New function.
d528b1ce
SM
3899 (x_set_window_size_1): Don't change gravity unless change_gravity
3900 is set.
5c646d5a
JD
3901 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3902 don't change frame size, instead wait for the ConfigureNotify.
3903 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3904 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3905 (x_initialize): Initialize pending_event_wait.
3906
3907 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3908 size.
3909
3910 * widget.c (EmacsFrameSetValues): Add comment.
3911 (EmacsFrameSetCharSize): Just call x_set_window_size.
3912
3913 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3914 x_wait_for_event.
d528b1ce 3915 (flush_and_sync): Remove again.
5c646d5a
JD
3916 (xg_get_font_name): Suggest monospace if no previous font is known.
3917
e9c1637d
SM
39182009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3919
3920 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3921 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3922
5a72cccb
YM
39232009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3924
3925 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3926 processing pending events when event is filtered for input method.
ab04798f 3927 (Bug#3681)
5a72cccb 3928
2629aa37
JB
39292009-10-20 Juanma Barranquero <lekktu@gmail.com>
3930
3931 * fns.c: Add #endif accidentally removed in previous change.
3932
c3417a74
DN
39332009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3934
3935 * fns.c: Remove code for unsupported system: MAC_OS.
3936 * image.c: Likewise. Include setjmp.h.
3937
9685cef2
JD
39382009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3939
3940 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3941 pixel -1 (bug #4742).
3942
d7306fe6
DN
39432009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3944
019d2c4c
DN
3945 * process.c (create_pty): Remove conditionals for no longer
3946 supported systems: UNIPLUS and RTU.
3947
ee6bacd4
DN
3948 * xterm.c:
3949 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3950
d7306fe6
DN
3951 * alloc.c: Do not define struct catchtag.
3952 * eval.c: Move struct catchtag definition ...
3953 * lisp.h: ... here.
3954
3955 * image.c: Move png.h #include earlier to avoid warnings.
3956
3957 * xterm.c:
3958 * xsmfns.c:
3959 * xselect.c:
3960 * xrdb.c:
3961 * xmenu.c:
3962 * xftfont.c:
3963 * xfont.c:
3964 * xfns.c:
3965 * xfaces.c:
3966 * xdisp.c:
3967 * window.c:
3968 * widget.c:
3969 * w32xfns.c:
3970 * w32uniscribe.c:
3971 * w32term.c:
3972 * w32select.c:
3973 * w32reg.c:
3974 * w32proc.c:
3975 * w32menu.c:
3976 * w32inevt.c:
3977 * w32heap.c:
3978 * w32font.c:
3979 * w32fns.c:
3980 * w32console.c:
3981 * w32.c:
3982 * w16select.c:
3983 * vm-limit.c:
3984 * unexsol.c:
3985 * unexec.c:
3986 * unexcw.c:
3987 * unexaix.c:
3988 * undo.c:
3989 * tparam.c:
3990 * textprop.c:
3991 * terminfo.c:
3992 * terminal.c:
3993 * termcap.c:
3994 * term.c:
3995 * syntax.c:
3996 * sound.c:
3997 * sheap.c:
3998 * search.c:
3999 * scroll.c:
4000 * region-cache.c:
4001 * regex.c:
4002 * ralloc.c:
4003 * process.c:
4004 * print.c:
b024548b
DN
4005 * nsterm.m:
4006 * nsselect.m:
4007 * nsmenu.m:
4008 * nsimage.m:
4009 * nsfont.m:
4010 * nsfns.m:
d7306fe6
DN
4011 * msdos.c:
4012 * minibuf.c:
4013 * menu.c:
4014 * marker.c:
4015 * macros.c:
4016 * keymap.c:
4017 * keyboard.c:
4018 * intervals.c:
4019 * insdel.c:
4020 * indent.c:
4021 * gtkutil.c:
4022 * ftxfont.c:
4023 * ftfont.c:
4024 * fringe.c:
4025 * frame.c:
4026 * fontset.c:
4027 * font.c:
4028 * fns.c:
4029 * floatfns.c:
4030 * filelock.c:
4031 * fileio.c:
4032 * emacs.c:
4033 * editfns.c:
4034 * dosfns.c:
4035 * doprnt.c:
4036 * doc.c:
4037 * dispnew.c:
4038 * dired.c:
4039 * dbusbind.c:
4040 * data.c:
4041 * composite.c:
4042 * coding.c:
4043 * cmds.c:
4044 * cm.c:
4045 * chartab.c:
4046 * charset.c:
4047 * character.c:
4048 * ccl.c:
4049 * category.c:
4050 * casetab.c:
4051 * casefiddle.c:
4052 * callproc.c:
4053 * callint.c:
4054 * bytecode.c:
4055 * buffer.c:
4056 * atimer.c: Include setjmp.h. (Bug#4643)
4057
fd5f21e6
SM
40582009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4059
4c0354d7
SM
4060 Remove leftover table unibyte_to_multibyte_table.
4061 * character.c (unibyte_to_multibyte_table): Remove.
4062 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4063 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4064 * character.h (UNIBYTE_TO_CHAR): New macro.
4065 (MAKE_CHAR_MULTIBYTE): Use it.
4066 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4067 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4068 (message_dolog, set_message_1):
4069 * search.c (Freplace_match):
4070 * editfns.c (Fcompare_buffer_substrings):
4071 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4072 (concat):
4073 * insdel.c (copy_text, count_size_as_multibyte):
4074 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4075 * term.c (produce_glyphs):
4076 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4077 * regex.c (RE_CHAR_TO_MULTIBYTE):
4078 * cmds.c (internal_self_insert):
4079 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4080
fd5f21e6
SM
4081 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4082
4418646e
DN
40832009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4084
4085 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4086
35f5c1d2
JB
40872009-10-16 Juanma Barranquero <lekktu@gmail.com>
4088
4089 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4090
a0cd8f6b
AR
40912009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4092
4093 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4094 still needed under Tiger.
4095
4096 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4097
4098 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4099 __Apple__.
4100
4101 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4102
01a8d3fa
KH
41032009-10-15 Kenichi Handa <handa@m17n.org>
4104
4105 * print.c (print_object): Escape a symbol like "2E10" too.
4106
bf6c75c9 41072009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4108
4109 Cleanups and changes for 64-bit compile under Snow Leopard.
4110 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4111
4112 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4113
c5959062 4114 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4115 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4116 cast argument.
4117 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4118 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4119
4120 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4121
4122 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4123 where appropriate.
4124
4125 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4126 where appropriate.
6e4780c5
JB
4127 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4128 Use stringWithUTF8String.
bf6c75c9
AR
4129 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4130
6e4780c5
JB
4131 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4132 Add formal protocol mention to inheritance.
bf6c75c9
AR
4133 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4134
6e4780c5
JB
4135 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4136 Fix printf format.
bf6c75c9
AR
4137 (ns_query_color): Use CGFloat where appropriate.
4138 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4139 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4140 argument.
4141
3d87f118
AR
4142 * config.in (NS_HAVE_NSINTEGER): Drop.
4143
a95c8102
AR
4144 * dbusbind.c (dbus-method-return-internal)
4145 (dbus-method-error-internal): Use long format in printf, and cast
4146 argument.
4147
4148 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4149 in printf, and cast argument.
4150
6873acca 4151 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4152 cast argument.
4153
9ec6f100
GM
41542009-10-11 Glenn Morris <rgm@gnu.org>
4155
4156 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4157
5be883cd
JD
41582009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4159
4160 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4161 menu bar with a small width so it doesn't enlarge the frame.
4162
d7a39b51
JB
41632009-10-08 Juanma Barranquero <lekktu@gmail.com>
4164
4165 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4166
0c2b6f8e
GM
41672009-10-06 Glenn Morris <rgm@gnu.org>
4168
4169 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4170 SOME_MACHINE_LISP (this enters indirectly via DOC).
4171
e02131a2
EZ
41722009-10-05 Eli Zaretskii <eliz@gnu.org>
4173
4174 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4175
b4744254
EZ
41762009-10-04 Eli Zaretskii <eliz@gnu.org>
4177
4178 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4179 Doc fix.
4180
dbf64827
JB
41812009-10-03 Martin Rudalics <rudalics@gmx.at>
4182
4183 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4184
e9a0aef8
MA
41852009-10-02 Michael Albinus <michael.albinus@gmx.de>
4186
d528b1ce 4187 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4188 used anymore outside fileio.c.
4189
4190 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4191
64eb2b56
JB
41922009-10-01 Juanma Barranquero <lekktu@gmail.com>
4193
4194 * lisp.h (Qdelete_directory_internal):
4195 Declare, instead of Qdelete_directory.
4196
4197 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4198
9d28c33e
SM
41992009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4200
4201 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4202
9d8f3bd9
MA
42032009-10-01 Michael Albinus <michael.albinus@gmx.de>
4204
9d28c33e 4205 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4206 Fdelete_directory. It is not a command anymore. It has no file
4207 name handler.
4208
9694740b
SM
42092009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4210
4211 * xdisp.c (get_next_display_element): Use an enum in last change.
4212
748e162f
KH
42132009-09-28 Kenichi Handa <handa@m17n.org>
4214
9694740b 4215 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4216 unibyte_display_via_language_environment in handling
4217 Vnobreak_char_display.
4218
17efd58d
AR
42192009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4220
4221 * nsterm.h (ns_app_name): New extern variable.
4222
4223 * nsterm.m (ns_app_name): New variable.
4224 (ns_term_init): Set and use it.
4225 (ns_term_shutdown): Use it.
4226
4227 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4228 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4229
4230 * nsfns.m (ns_set_name_iconic, ns_set_name)
4231 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4232 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4233
9694740b
SM
4234 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4235 Remove double-casting in client_data comparison.
31c2d412 4236
3208cb35
YM
42372009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4238
4239 * keyboard.c (make_lispy_event): Remember last wheel direction.
4240 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4241
b7d552d6
GM
42422009-09-26 Glenn Morris <rgm@gnu.org>
4243
4244 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4245 internal.elc. Add term/pc-win.elc.
4246 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4247 term/x-win.elc.
4248 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4249 term/w32-win.elc.
4250 (NS_SUPPORT): New.
4251 (lisp): Add NS_SUPPORT.
4252 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4253
4ff670a8
DR
42542009-09-25 David Reitter <david.reitter@gmail.com>
4255
4256 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4257 on Mac OS X 10.6+ (bug#4513).
4258
feabfb6c
JB
42592009-09-24 Juanma Barranquero <lekktu@gmail.com>
4260
4261 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4262 some parts of Emacs code (like font selection) don't grok them.
4263 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4264
de59072a
AS
42652009-09-24 Andreas Schwab <schwab@redhat.com>
4266
4267 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4268
a489517b
JB
42692009-09-24 Juanma Barranquero <lekktu@gmail.com>
4270
4271 * dired.c (Fdirectory_files): Fix typo in docstring.
4272
0592970c
AR
42732009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4274
4275 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4276 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4277 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4278 under GNUstep.
4279 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4280
4281 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4282 glyph advancement.
4283
48e8a88b
AR
42842009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4285
4286 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4287 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4288
4289 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4290 deleted (bug #4492).
4291
e14f0a78
AR
4292 * nsfont.m (Vns_reg_to_script): New lisp variable.
4293 (syms_of_nsfont): Declare it.
4294 (ns_registry_to_script): New function.
4295 (ns_get_req_script): Call it.
4296 (ns_findfonts): Don't give up on non-unicode registry.
4297
4298 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4299
5b650faa
SM
43002009-09-20 Tom Tromey <tromey@redhat.com>
4301
4302 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4303 batch mode (bug#4228).
4304
a489517b 43052009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4306
4307 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4308 carefully. (Bug #4339)
0bae4e09 4309
fcfe06f3
CY
43102009-09-18 Chong Yidong <cyd@stupidchicken.com>
4311
d798ba87 4312 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4313
31642728
AR
43142009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4315
4316 * emacs.c (inhibit_x_resources): Update doc string for NS.
4317 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4318 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4319
4320 * nsterm.h (ns_no_defaults): Remove.
4321
4322 * nsterm.m (ns_no_defaults): Remove.
4323 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4324 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4325 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4326 don't update the NSWindow itself.
4327 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4328 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4329
4330 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4331 ns_use_qd_smoothing.
4332
4333 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4334 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4335 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4336 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4337
8686ac71
JB
43382009-09-17 Juanma Barranquero <lekktu@gmail.com>
4339
4340 * emacs.c (inhibit_x_resources): New variable.
4341 (main) [HAVE_NS]: Don't process --quick command line option.
4342 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4343
4344 * lisp.h (inhibit_x_resources): Declare it extern.
4345
4346 * w32reg.c (x_get_string_resource):
4347 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4348
e227ba05
EZ
43492009-09-17 Eli Zaretskii <eliz@gnu.org>
4350
362654a6
JB
4351 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4352 Add lisp/term/internal.elc.
e227ba05 4353
742d40e8
SM
43542009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4355
4356 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4357 (bug#4461).
4358
005bd5a2
DN
43592009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4360
4361 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4362
4363 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4364 (OBJECTS_MACHINE): Remove, unused.
4365
f9af9719
SM
43662009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4367
4368 * frame.c (x_get_resource_string): Remove unused.
4369
0307c7d2
JD
43702009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4371
4372 * xterm.c (x_new_font): Call change_frame_size before calling
4373 x_set_window_size, in case frame size won't change.
4374
4375 * frame.c (x_set_font): Remove dead code.
4376
428b13d6
SM
43772009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4378
4379 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4380
5766c380
SM
43812009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4382
4383 * lread.c (Fload): Don't output a message after loading an obsolete
4384 package any more (done in Lisp now).
4385
2fd0161b
CY
43862009-09-12 Chong Yidong <cyd@stupidchicken.com>
4387
4388 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4389
bc5e75b6
SM
43902009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4391
4392 * keymap.c (Fwhere_is_internal): Use nconc2.
4393
c31c985e
AM
43942009-09-11 Alan Mackenzie <acm@muc.de>
4395
4396 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4397 batch mode.
4398
78012bd2
AS
43992009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4400
4401 * xdisp.c (display_mode_element): Detect cycles.
4402
9d889332
SM
44032009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4404
4405 * keymap.c (where_is_internal): Don't erroneously return nil right after
4406 filling the cache.
4407 (where_is_internal_1): Fix up typo.
4408
7ab5d780
GM
44092009-09-11 Glenn Morris <rgm@gnu.org>
4410
4411 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4412 share a common doc-string.
4413
5238a749
SM
44142009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4415
66d77eda
SM
4416 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4417 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4418
5238a749
SM
4419 * keymap.c (QCadvertised_binding): New constant.
4420 (syms_of_keymap): Initialize it.
4421 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4422 if applicable.
4423
19f48442
SM
44242009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4425
50d4ba39
SM
4426 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4427 (parse_menu_item): Streamline since bindings are recomputed all the
4428 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4429 more and don't support lmenu's menu-alias any more either.
4430
a88a5372
SM
4431 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4432 (where_is_internal): Strip it down to only traverse the keymaps.
4433 Move the cache handling from Fwhere_is_internal to here.
4434 (Fwhere_is_internal): Move the handling of remapping and the choice of
4435 the best binding from where_is_internal to here.
4436 Unify the cached/noncached paths, so remapping is also handled
4437 correctly when the cache is used, and so the cache can be used to
4438 speed up remap-handling when applicable.
4439 Give preference to non-remapped bindings.
4440 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4441 non-remapped bindings.
4442 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4443 command remapping.
4444
19f48442
SM
4445 * xdisp.c (display_mode_element): Move list length limit from 50 to
4446 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4447
599498c3 44482009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4449
4450 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4451
f9b7b5ac
SM
44522009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4453
a53af587
JB
4454 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4455 (Bug#4334)
4456
f9b7b5ac
SM
4457 * keymap.c (where_is_internal): Filter out shadowed remappings.
4458 Assume that where_is_internal returns unshadowed bindings to simplify
4459 the code and get rid of the gotos. Use ASIZE.
4460
04f4b72d
JD
44612009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4462
4da146f2
JD
4463 * xterm.c (x_focus_changed): If we get a focusout and pointer
4464 is invisible, make it visible.
4465
04f4b72d
JD
4466 * xterm.h: Remove condition for declaration of
4467 x_*_window_to_frame.
4468
7cef7ce3
SM
44692009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4470
4471 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4472 initial terminal as well.
4473
a54fa5b7
JD
44742009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4475
4476 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4477 x_menubar_window_to_frame.
a54fa5b7 4478
50426a04 4479 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4480 (XTmouse_position): Do not return valid positions
4481 for clicks in the menubar and the toolbar for Gtk+.
4482
4483 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4484 if the widget for the event has the same top level as a frame,
4485 return the frame.
4486 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4487 internal windows, bug #4122.
4488 (x_non_menubar_window_to_frame): Remove.
4489
5a021dd0
GM
44902009-09-02 Glenn Morris <rgm@gnu.org>
4491
4492 * buffer.c (default-major-mode): Move most of the doc from here...
4493 (major-mode): ... to here.
4494
548fe2f3
NR
44952009-08-30 Nick Roberts <nickrob@snap.net.nz>
4496
4497 * process.c (wait_reading_process_output): Keep the descriptor
4498 when pty is used by a non-child process, e.g., in I/O buffer of
4499 GDB this allows inferior to be restarted.
4500
e0840eef
EZ
45012009-08-29 Eli Zaretskii <eliz@gnu.org>
4502
4503 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4504 both branches into one.
4505
82e98df4
SM
45062009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4507
4508 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4509 (main): Use enable-multibyte-characters rather than
4510 default-enable-multibyte-characters. Output a warning message when
4511 running a unibyte session.
4512
890617cb
YM
45132009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4514
4515 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4516 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4517 (copy_data_segment): Also copy __program_vars section.
4518 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4519 (dump_it) [LC_DYLD_INFO]: Use it.
4520
4521 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4522
e7adeadc
EZ
45232009-08-28 Eli Zaretskii <eliz@gnu.org>
4524
4525 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4526 $(SRC)/buildobj.h.
4527 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4528 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4529 $(SRC)/buildobj.h.
4530 (clean): Add buildobj.h.
4531
3ed8bbdc
TZ
45322009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4533
4534 * print.c (print_object): Set escapeflag to 1 when printing
4535 hashtable keys and values.
4536
155a6764
SM
45372009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4538
4539 * lread.c (read_integer): Use doubles (and potentially return a float
4540 number) as we do in string-to-number.
4541 (read1): Use strtol to read integers, signal errors on strtol's
4542 overflow and use floats if strtol's output is too large for
4543 Elisp integers.
4544
877610de
EZ
45452009-08-27 Eli Zaretskii <eliz@gnu.org>
4546
4547 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4548 (make-buildobj-SH): Fix last change.
4549 (SRC): Move to before where it's first used.
4550
ef73e7be
KH
45512009-08-27 Kenichi Handa <handa@m17n.org>
4552
550c8289
KH
4553 * process.c (send_process): Use encode_coding_object instead of
4554 encode_coding_string to perform eol-conversion even if the string
4555 is unibyte.
4556
60afa08d
KH
4557 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4558 character.
4559
ef73e7be 4560 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4561 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4562
7b3a82d7
DN
45632009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4564
5654bf63
DN
4565 * callproc.c (Fcall_process): Remove always true #if.
4566
7b3a82d7
DN
4567 * lisp.h: Replace #if 0 code for checking with text pointing to
4568 the --enable-checking configure flag.
4569
4570 * emacs.c (main): Mention the --enable-profiling configure flag
4571 instead of using CFLAGS.
4572
878bde49
KR
45732009-08-26 Ken Raeburn <raeburn@raeburn.org>
4574
4575 * Makefile.in (buildobj.h): New target.
4576 (doc.o): Depend on it.
4577 (temacs${EXEEXT}): Don't generate buildobj.lst.
4578 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4579 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4580 ($(BLD)/doc.$(O)): Depend on it.
4581 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4582 provided by Eli Zaretskii.)
4583 ($(TEMACS)): Don't generate buildobj.lst.
4584 * doc.c: Include buildobj.h.
4585 (buildobj): New static variable.
4586 (Fsnarf_documentation): Use it, instead of opening and reading
4587 buildobj.lst.
4588
1574224c
MA
45892009-08-25 Michael Albinus <michael.albinus@gmx.de>
4590
4591 * dbusbind.c (Fdbus_call_method)
4592 (Fdbus_call_method_asynchronously): Use English numeric format for
4593 timeout values in doc string.
4594
d9da2f45
KH
45952009-08-25 Kenichi Handa <handa@m17n.org>
4596
ef73e7be
KH
4597 * alloc.c (mark_char_table): New function.
4598 (mark_object): Use mark_char_table for a char-table.
4599
d9da2f45
KH
4600 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4601 (CHAR_TABLE_REF): Use it.
4602
c8edcc01
KR
46032009-08-23 Ken Raeburn <raeburn@raeburn.org>
4604
4605 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4606 before invoking the newly build emacs to check for load-path
4607 shadowing.
4608
7763401b
GM
46092009-08-22 Glenn Morris <rgm@gnu.org>
4610
4611 * Makefile.in (bootstrap_exe): New variable.
4612 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4613 Use ${bootstrap_exe}.
4614
729eadda
EZ
46152009-08-22 Eli Zaretskii <eliz@gnu.org>
4616
4617 * coding.h (encode_coding_string): Don't encode unibyte strings.
4618 (Bug#4047)
4619
eb4c6ace
MA
46202009-08-22 Michael Albinus <michael.albinus@gmx.de>
4621
4622 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4623
4624 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4625 intended as hotfix only.
4626 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4627
36e34d1b
AR
46282009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4629
4630 * nsterm.m (ns_get_color): Update documentation properly for last
4631 change, and clean up loose ends in the code left by it. Fix
4632 longstanding bug with 16-bit hex parsing, and add support for
4633 yet another X11 format (rgb:r/g/b) for compatibility.
4634 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4635 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4636
f983eb8a
SM
46372009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4638
4639 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4640
3f56d3c6
MA
46412009-08-20 Michael Albinus <michael.albinus@gmx.de>
4642
4643 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4644 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4645 (xd_initialize, xd_pending_messages): Check, whether
4646 $DBUS_SESSION_BUS_ADDRESS is set.
4647
fb641d68
YM
46482009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4649
4650 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4651
4652 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4653
cf59a374
GM
46542009-08-20 Glenn Morris <rgm@gnu.org>
4655
4656 * emacs.c (system-type): Doc fix.
4657
1373f3be
SM
46582009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4659
4660 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4661 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4662
058ed861
MA
46632009-08-18 Michael Albinus <michael.albinus@gmx.de>
4664
1373f3be
SM
4665 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4666 New functions.
058ed861
MA
4667 (xd_initialize): Revert change from 2009-08-16.
4668
563a866e 46692009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4670
4671 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4672 font-group vector, return nil.
5fc05db0 4673
e42bdf01
CY
46742009-08-17 Chong Yidong <cyd@stupidchicken.com>
4675
4676 * process.c (status_notify): Don't perform redisplay.
4677 (Fdelete_process, list_processes_1, process_send_signal):
4678 Expliticly perform redisplay.
4679 (wait_reading_process_output): Always check process status, but
4680 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4681
4230ab74
KR
46822009-08-17 Ken Raeburn <raeburn@raeburn.org>
4683
1373f3be 4684 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4685 (XFLOAT_INIT): New macro for storing a float value.
4686 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4687 * fns.c (sxhash): Copy out the value of a float in order to
4688 examine its bytes.
4689 * dbusbind.c (xd_append_arg): Likewise.
4690
4230ab74
KR
4691 * emacs.c (main): Don't call syms_of_data twice.
4692
a0645cdd
MA
46932009-08-16 Michael Albinus <michael.albinus@gmx.de>
4694
4695 * dbusbind.c (xd_initialize): Add connection file descriptor to
4696 input_wait_mask, in order to let select() detect, whether a new
4697 message has been arrived.
ca4f31ea 4698 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4699
485db0ba
MA
47002009-08-15 Michael Albinus <michael.albinus@gmx.de>
4701
1373f3be
SM
4702 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4703 New functions.
485db0ba
MA
4704
4705 * lisp.h (xd_pending_messages): Declare.
4706
4707 * keyboard.c (readable_events): Call xd_pending_messages.
4708
b5b98ff4
CY
47092009-08-15 Chong Yidong <cyd@stupidchicken.com>
4710
1373f3be 4711 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4712
f8354c6e
CY
4713 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4714
b5b98ff4
CY
4715 * buffer.c (set_buffer_internal_1)
4716 (swap_out_buffer_local_variables): Check for unbound local
4717 variables (Bug#4138).
4718
8b9fc636
EZ
47192009-08-14 Eli Zaretskii <eliz@gnu.org>
4720
4721 * process.c (create_pty): Fix last change.
4722
ce959360
CY
47232009-08-13 Chong Yidong <cyd@stupidchicken.com>
4724
4725 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4726 (xbm_load_image): Caller changed.
64b807c9 4727 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4728
c7baf7e9
NR
47292009-08-13 Nick Roberts <nickrob@snap.net.nz>
4730
4731 * process.c (create_pty): New function.
4732 (Fstart_process): Use it to allow Emacs to just associate a pty
4733 with the buffer. See associated change in gdb-mi.el.
4734 (list_processes_1): Deal with no program name.
4735 (start_process_unwind): Use pid == -2 to mean no process.
4736
1ac9108a
SM
47372009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4738
4739 * cmds.c (nonundocount): New global variable.
4740 (keys_of_cmds): Initialize it.
4741 (Fself_insert_command): Use it to combine upto 20 sequential chars
4742 into a single undo entry, just like the Qself_insert_command code in
4743 keyboard.c does.
4744 Call frame_make_pointer_invisible, also like the Qself_insert_command
4745 code in keyboard.c does.
4746 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4747 than its own local replacement for it.
4748
e267324c
KR
47492009-08-10 Ken Raeburn <raeburn@raeburn.org>
4750
1ac9108a 4751 * fns.c (concat): Don't re-set string length to its current value.
77437343 4752
1ac9108a
SM
4753 * coding.h (decode_coding_string, encode_coding_string):
4754 Use SBYTES macro.
f0bed503 4755
1ac9108a 4756 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4757 (doprnt): Merge with doprnt1, discarding lispstrings code.
4758 * lisp.h (doprnt_lisp): Don't declare.
4759
416e006d
JL
47602009-08-07 Juri Linkov <juri@jurta.org>
4761
4762 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4763
6f7d5780
DN
47642009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4765
4766 * print.c (syms_of_print): Undo previous change.
4767
f19a0f5b
TZ
47682009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4769
4770 * lread.c (read1, syms_of_lread): Read hashtables back from the
4771 readable format.
4772
4773 * print.c (print_preprocess, print_object): Print hashtables fully
4774 and readably.
4775 (syms_of_print): Provide 'hashtable-print-readable.
4776
b9173dc2
AR
47772009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4778
4779 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4780 no family set.
4781 (nsfont_open): Handle case when entity has no family.
4782
1586503c
AR
47832009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4784
4785 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4786 element, not a list, for match case.
4787
087048cd
KH
47882009-07-28 Kenichi Handa <handa@m17n.org>
4789
4790 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4791 rigidly.
4792
4793 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4794 font_parse_xlfd. Check font properties more rigidly.
4795
780c2506
DN
47962009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4797
31fd7c5c
JB
4798 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4799 bsd-common.h.
780c2506 4800
a8c0cc18
KH
48012009-07-27 Kenichi Handa <handa@m17n.org>
4802
4803 * xfaces.c (face_with_height): Call font_clear_prop.
4804
4fbe2306
CY
48052009-07-26 Chong Yidong <cyd@stupidchicken.com>
4806
111d9af3
CY
4807 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4808
4809 * xterm.c (x_term_init): Use Qx.
4810
4fbe2306
CY
4811 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4812
1ac9108a 4813 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4814 (ns_get_color): Revert 2009-07-16 change.
4815
beb0b7f9
EZ
48162009-07-25 Eli Zaretskii <eliz@gnu.org>
4817
4818 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4819 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4820
2baf5e76
KR
48212009-07-25 Ken Raeburn <raeburn@raeburn.org>
4822
1ac9108a
SM
4823 * coding.h (decode_coding_string, encode_coding_string):
4824 Use SCHARS macro.
8890e5f5 4825
2baf5e76 4826 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4827 (load_depth): Delete.
2baf5e76
KR
4828 (Qload_in_progress): New variable.
4829 (load_unwind): Don't reference load_depth or load_in_progress.
4830 (Fload): Likewise; specbind Qload_in_progress instead.
4831 (init_lread): Don't initialize load_depth.
4832 (syms_of_lread): Initialize and protect Qload_in_progress.
4833
1395c6f5
AR
48342009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4835
4836 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4837
4e2f36cf
AR
48382009-07-23 Yavor Doganov <yavor@gnu.org>
4839
4840 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4841
5dd9a6f7
AR
48422009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4843
4844 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4845 Bugs 3792, 3720, 2402.
4846 (ns_lookup_indexed_color): Check for bad index.
4847 (ns_index_color): Init unused slot to 0.
4848 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4849 Bug 3714, possibly 3082.
5dd9a6f7 4850
c902b920
JR
48512009-07-22 Jason Rumney <jasonr@gnu.org>
4852
1ac9108a
SM
4853 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4854 Position IME window at cursor (Bug#2570).
c902b920
JR
4855 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4856 (globals_of_w32fns): Dynamically load functions required above.
4857
4858 * w32term.c (w32_draw_window_cursor): Send message to reposition
4859 any IME window.
4860
090101cf
CY
48612009-07-21 Chong Yidong <cyd@stupidchicken.com>
4862
4863 * fileio.c: Revert 2009-07-16 changes.
4864 (Vauto_save_include_big_deletions): New variable.
4865 (Fdo_auto_save): Disable auto-save only if
4866 auto-save-include-big-deletions is nil.
4867
e6583e3d
CY
48682009-07-21 Chong Yidong <cyd@stupidchicken.com>
4869
4870 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4871 the overflowed pixels into account (Bug#3879).
4872
ece435a5
KR
48732009-07-21 Ken Raeburn <raeburn@raeburn.org>
4874
4875 * lread.c (load_depth): New variable.
4876 (Fload, load_unwind, init_lread): Set it to the load recursion
4877 depth; set load_in_progress as a simple boolean based on the
4878 current load_depth. (Bug#3892)
4879
40b2d973
AR
48802009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4881
4882 * nsfont.m (ns_has_attribute): Remove.
4883 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4884
10be7e0d
JL
48852009-07-18 Juri Linkov <juri@jurta.org>
4886
4887 * process.c (Fset_process_query_on_exit_flag): Mention killing
4888 a buffer in docstring.
4889
fa055055
KH
48902009-07-17 Kenichi Handa <handa@m17n.org>
4891
4892 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4893
042f7b69
YM
48942009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4895
4896 * nsfns.m (Fns_set_alpha): Remove function.
4897 (syms_of_nsfns): Don't defsubr it.
4898
4899 * nsterm.m (ns_get_color): Remove incompatible color formats.
4900 (ns_color_to_lisp): Generate #rrggbb color format string.
4901
4be941e3
RS
49022009-07-16 Richard Stallman <rms@gnu.org>
4903
4904 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4905 (Fset_buffer_auto_saved): Handle save_length = -2.
4906
4e6b227d
CY
49072009-07-16 Chong Yidong <cyd@stupidchicken.com>
4908
4909 * xterm.c (Qx_gtk_map_stock): New var.
4910
4911 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4912 of calling intern each time.
4913
a1856973
YM
49142009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4915
4916 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4917 does tiling.
4918
4919 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4920
497e54d8
KH
49212009-07-14 Kenichi Handa <handa@m17n.org>
4922
72d36834
KH
4923 * font.c (font_vconcat_entity_vectors): New function.
4924 (struct font_sort_data): New member font_driver_preference.
4925 (font_compare): Check font_driver_preference.
4926 (font_sort_entities): The format of the first argument changed.
4927 (font_delete_unmatched): Likewise.
4928 (font_list_entities): The return type changed.
4929 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4930 (font_find_for_lface): Adjuste for the above changes.
4931 Don't suppress the checking of C even if the repertory supports it.
4932 (Flist_fonts): Adjust for the above changes.
72d36834 4933
1ac9108a
SM
4934 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4935 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4936 Reject a font who has adstyle property that is different from a
4937 langname derived from registry property.
1ac9108a 4938 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4939
b6046155
EZ
49402009-07-13 Eli Zaretskii <eliz@gnu.org>
4941
4942 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4943 local copy of dirfilename.
4944
fb6b6049
KH
49452009-07-13 Kenichi Handa <handa@m17n.org>
4946
e2402a5e
KH
4947 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4948 against max_char.
4949
fb6b6049
KH
4950 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4951 calling XSYMBOL (sym).
4952
65156807
EZ
49532009-07-11 Eli Zaretskii <eliz@gnu.org>
4954
1ac9108a
SM
4955 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4956 New function.
4957 (directory_files_internal) [WINDOWSNT]:
4958 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4959 the filesystem of the directory is fast or slow.
4960
4961 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4962 file name.
4963 (is_slow_fs): New function.
4964 (stat): Use it to determine whether to issue more system calls to
4965 get accurate file attributes, when w32-get-true-file-attributes is
4966 `local'.
4967
e0ab5fcf
JD
49682009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4969
4970 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4971 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4972 parameter font-parameter as default to the font dialog.
4973
784ceded
KH
49742009-07-10 Kenichi Handa <handa@m17n.org>
4975
4976 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4977
fb8edc0b
EZ
49782009-07-09 Eli Zaretskii <eliz@gnu.org>
4979
1ac9108a 4980 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4981
fb8edc0b
EZ
4982 * w32.c (stat): Treat UNC file names as residing on remote
4983 drives. (Bug#3542)
4984
635c75b1
KH
49852009-07-09 Kenichi Handa <handa@m17n.org>
4986
4987 * fontset.c (fontset_find_font): Fix previous change.
4988
c1d5ce94
MA
49892009-07-08 Michael Albinus <michael.albinus@gmx.de>
4990
4991 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4992 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4993 error flag.
4994
edb61b39
KH
49952009-07-08 Kenichi Handa <handa@m17n.org>
4996
374bf7e4
KH
4997 * fontset.c (fontset_find_font): Fix the logic of handling
4998 charset_matched.
4999 (font_for_char): Delete unused var.
5000 (generate_ascii_font_name): Delete it.
5001
edb61b39
KH
5002 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5003
5004 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5005 (encode_coding_sjis): Fix the code range check.
5006
0f3f018c
CY
50072009-07-07 Chong Yidong <cyd@stupidchicken.com>
5008
5009 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5010 (Fexpand_file_name): Copy string data properly (Bug#3772).
5011
fcaf6f3a
JD
50122009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5013
5014 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5015 first MapNotify.
5016
6809ca75
KH
50172009-07-07 Kenichi Handa <handa@m17n.org>
5018
5019 * character.h (unibyte_has_multibyte_table): Delete extern.
5020 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5021
5022 * charset.c (Fset_charset_priority): Update charset_unibyte.
5023 (syms_of_charset): Initialize charset_unibyte.
5024
5025 * character.c (unibyte_has_multibyte_table): Delete it.
5026 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5027 charset_unibyte.
5028 (multibyte_char_to_unibyte_safe): Likewise.
5029 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5030
1ac9108a 5031 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5032 (x_produce_glyphs): Likewise.
5033
5034 * .gdbinit (xcharset): Fix the treating $arg0.
5035
ad9e2d54
EZ
50362009-07-04 Eli Zaretskii <eliz@gnu.org>
5037
5038 Emulation of `getloadavg' on MS-Windows.
50426a04 5039 * w32.c: Include float.h.
ad9e2d54
EZ
5040 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5041 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5042 (get_native_system_info, get_system_times): New functions.
5043 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5044 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5045 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5046 g_b_init_get_system_times, and num_of_processors.
5047
0a3472c7
JR
50482009-07-03 Jason Rumney <jasonr@gnu.org>
5049
5050 * w32term.c (w32_initialize): Use standard types.
5051
80904120
EZ
50522009-07-03 Eli Zaretskii <eliz@gnu.org>
5053
5054 * dired.c (Ffile_attributes): Decode user and group names by the
5055 locale's encoding. (Bug#3443)
5056
6978862d
DN
50572009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5058
f8d23104
DN
5059 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5060 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5061
5062 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5063
5064 * term.c (init_tty): Remove spurious #ifdef.
5065
6978862d
DN
5066 * m/mips.h: Mention this file is also used for netbsd.
5067 * m/pmax.h: Remove file.
5068
e044e4fc
JD
50692009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5070
5071 * xterm.h (struct x_display_info): Add invisible_cursor.
5072 (struct x_output): Add current_cursor.
5073
5074 * xterm.c (XTtoggle_invisible_pointer): New function.
5075 (x_define_frame_cursor): Don't define cursor if invisible or the
5076 same as before. Set current_cursor.
5077 (x_create_terminal): Set toggle_invisible_pointer_hook.
5078
5079 * xfns.c (make_invisible_cursor): New function.
5080 (x_set_mouse_color): Call make_invisible_cursor.
5081 Set current_cursor.
5082 (x_window): Set current_cursor.
5083
5084 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5085
5086 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5087 inserting a character.
5088 (read_avail_input): Call frame_make_pointer_visible.
5089
5090 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5091 (frame_make_pointer_invisible, frame_make_pointer_visible):
5092 New functions.
e044e4fc
JD
5093 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5094
5095 * frame.h: Declare frame_make_pointer_invisible and
5096 frame_make_pointer_visible.
5097 (struct frame): Add pointer_invisible.
5098
574c8efa
JD
50992009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5100
7b507248
JD
5101 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5102 frame isn't visible.
5103 (xg_frame_resized): If width/height is -1, get size of window
5104 from X server.
5105
5106 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5107 for MapNotify.
5108
835bdaa7 5109 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5110 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5111 (flush_and_sync): Reintroduce.
574c8efa 5112
3f1c6666 51132009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5114
31fd7c5c 5115 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5116
5117 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5118 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5119
5120 * frame.h: Declare Qsticky.
5121
cad9ef74
JD
5122 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5123
5124 * nsfns.m (ns_frame_parm_handlers): Ditto.
5125
5126 * frame.c: Declare Qsticky.
5127 (frame_parms): Add sticky.
5128
5129 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5130
5131 * xterm.h: Declare x_set_sticky.
5132
5133 * xterm.c (x_set_sticky): New function.
5134
69b16610
JD
5135 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5136 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5137 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5138
5139 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5140
5141 * frame.c: Qmaximized is new.
5142 (x_set_frame_parameters): Do not handle fullscreen specially.
5143 Only set width and height if explicitly set.
5144 (x_set_fullscreen): Handle Qmaximized.
5145 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5146 (syms_of_frame): Initialize Qmaximized.
5147
1ac9108a
SM
5148 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5149 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5150
5151 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5152 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5153 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5154 set gravity to NorthWestGravity when USE_GTK.
5155 (set_wm_state): New function.
31fd7c5c 5156 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5157 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5158 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5159 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5160 to x_real_positions and x_fullscreen_adjust.
5161
5162 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5163 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5164 flush_and_sync.
5165 (xg_height_changed): New function.
5166 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5167 and gtk_window_set_policy. Set frame gravity after parsing the
5168 geometry string.
3f1c6666
JD
5169 (xg_update_frame_menubar, free_frame_menubar)
5170 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5171 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5172 Remove calls to xg_frame_set_char_size.
5173
fd503d99
KH
51742009-07-01 Kenichi Handa <handa@m17n.org>
5175
5176 * keyboard.c (decode_keyboard_code): New function.
5177 (tty_read_avail_input): Decode the input bytes if necessary.
5178
1ac9108a
SM
5179 * coding.c (setup_coding_system):
5180 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5181 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5182 use Qno_conversion.
5183
24ed93fb
YM
51842009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5185
5186 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5187
99061dfc
CY
51882009-06-30 Chong Yidong <cyd@stupidchicken.com>
5189
1ac9108a 5190 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5191
ff90fbde
JR
51922009-06-30 Jason Rumney <jasonr@gnu.org>
5193
5194 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5195 is already loaded.
5196 Set user model ID if supported (bug#1849).
5197
5f445726
JM
51982009-06-29 Jim Meyering <meyering@redhat.com>
5199
5200 Remove useless if-before-xfree test.
5201 * nsfont.m (nsfont_close): Remove useless test.
5202 * term.c (delete_tty): Likewise.
5203 * w32.c (system_process_attributes): Likewise.
5204 * w32font.c (w32font_close): Likewise.
5205 * xfaces.c (x_free_gc): Likewise.
5206 * xselect.c (buffer): Likewise.
5207
b9607587
AS
52082009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5209
5210 * process.c (send_process): Keep decoded string in a local
5211 variable and protect it from GC. (Bug#3521)
5212
89ba96f4
EZ
52132009-06-28 Eli Zaretskii <eliz@gnu.org>
5214
5215 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5216 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5217
098a1589
CY
52182009-06-28 Chong Yidong <cyd@stupidchicken.com>
5219
485422be
CY
5220 * xdisp.c (start_display, handle_face_prop)
5221 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5222 (redisplay_window, try_window_id, produce_image_glyph):
5223 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5224
098a1589
CY
5225 * xterm.c (x_update_window_begin, x_new_focus_frame)
5226 (x_scroll_bar_handle_click, handle_one_xevent)
5227 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5228 (x_make_frame_visible, x_make_frame_invisible)
5229 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5230 code chunks that are now obsolete.
5231
78c38319
MA
52322009-06-28 Michael Albinus <michael.albinus@gmx.de>
5233
5234 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5235 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5236 for hours, when optimzation is enabled.
5237 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5238 (xd_read_message): Make them static.
5239
4189ed40
CY
52402009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5241
5242 * term.c (turn_on_face): Allow simultaneously bold and dim
5243 terminal faces (Bug#3530).
5244
cd9b5e16
CY
52452009-06-27 Chong Yidong <cyd@stupidchicken.com>
5246
4e23bedb
CY
5247 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5248
cd9b5e16
CY
5249 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5250 truncation glyphs (Bug#3686).
5251
07cc3c35
GM
52522009-06-27 Glenn Morris <rgm@gnu.org>
5253
5254 * m/pmax.h: Restore file, with only netbsd portions.
5255
31fd7c5c 52562009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5257
cd9b5e16 5258 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5259
42d4a64f
KH
52602009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5261
5262 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5263 the arg FORCE_SYMBOL.
5264
930fe55b 52652009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5266
5267 * fontset.c (fontset_find_font): When a usable rfont_def is found
5268 in a fallback font-group, make it the first element of the group.
5269
57ebc3fd
CY
52702009-06-24 Chong Yidong <cyd@stupidchicken.com>
5271
5272 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5273
f084f942
KH
52742009-06-24 Kenichi Handa <handa@m17n.org>
5275
5276 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5277 set for C.
5278 (fontset_font): Record the availability of a font for C both in
5279 the realized fontsets of the current one and the default one.
5280
2f686c87
DN
52812009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5282
5283 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5284 conditional, it is always defined on AIX.
5285
666e158e
MB
52862009-06-23 Miles Bader <miles@gnu.org>
5287
5288 * window.c (Vrecenter_redisplay): New variable.
5289 (syms_of_window): Initialize it.
5290 (Qtty): New extern declaration.
5291 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5292
c6da7cd2
JM
52932009-06-23 Jim Meyering <meyering@redhat.com>
5294
1ac9108a
SM
5295 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5296 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5297 pointer dereferences are guaranteed to be valid.
c6da7cd2 5298
678dca3d
KH
52992009-06-23 Kenichi Handa <handa@m17n.org>
5300
74d75424
KH
5301 * emacs.c (main): Call init_font ().
5302
5303 * font.h (Vfont_log): Extern it.
5304 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5305
5306 * font.c (font_sort_entities, font_list_entities)
5307 (font_matching_entity, font_open_entity)
5308 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5309 (Vfont_log): Delete static.
5310 (font_log_env_checked): Delete this variable.
5311 (font_add_log): Don't check font_log_env_checked.
5312 (font_deferred_log): Check Vfont_log.
5313 (init_font): New function.
5314
678dca3d
KH
5315 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5316
5317 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5318
5319 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5320
5321 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5322
5323 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5324 (face_for_char): Don't call font_deferred_log here.
5325 (font_for_char): Likewise.
5326
8a668709
CY
53272009-06-22 Chong Yidong <cyd@stupidchicken.com>
5328
9a01ee33
CY
5329 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5330 rather than its background_width for drawing the overline and
5331 underline (Bug#489).
5332
5333 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5334 rather than its background_width for drawing the overline and
5335 underline (Bug#489).
ec7c9926
CY
5336 (xg_default_icon_file): New variable.
5337 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5338 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5339
8a668709
CY
5340 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5341 (load_overlay_strings): Remove externs.
5342 (fast_find_position): Function deleted.
5343 (mouse_face_from_buffer_pos): New function, based on
5344 fast_find_position. Correctly handle before-strings,
5345 display-strings, and after-strings (Bug#1220).
5346 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5347
4d4c02d8
CY
53482009-06-21 Chong Yidong <cyd@stupidchicken.com>
5349
1ac9108a 5350 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5351 (move_it_in_display_line_to, move_it_in_display_line_to)
5352 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5353
70243478
CY
53542009-06-21 Chong Yidong <cyd@stupidchicken.com>
5355
5356 * Branch for 23.1.
5357
13087e59
JR
53582009-06-21 Jason Rumney <jasonr@gnu.org>
5359
5360 * w32term.c (keyboard_codepage): New static variable.
5361 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5362 (w32_read_socket) [WM_CHAR]: Use it to decode character
5363 input (bug#3237).
5364 (w32_initialize): Initialize it.
5365 (codepage_for_locale): New function.
5366
4735b74e
KR
53672009-06-20 Ken Raeburn <raeburn@raeburn.org>
5368
5369 * process.c (status_message): Pass Faset index argument as a lisp
5370 object, so as to work with USE_LISP_UNION_TYPE.
5371
0e727afa
YM
53722009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5373
5374 * coding.c (Ffind_coding_systems_region_internal):
5375 Cache checked characters.
5376
cf299835
KH
53772009-06-18 Kenichi Handa <handa@m17n.org>
5378
1ac9108a 5379 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5380
90f20d94
AS
53812009-06-18 Andreas Schwab <aschwab@redhat.com>
5382
5383 * xdisp.c (redisplay_internal): Check that the frame is still
5384 live after redisplay of its windows.
5385 (redisplay_windows): Check that the window is still live.
5386
7f1faf1c
KH
53872009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5388
5389 * coding.c (detect_coding_utf_16): Fix previous change.
5390
cc13543e
KH
53912009-06-16 Kenichi Handa <handa@m17n.org>
5392
5393 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5394 UTF-16 by checking the dispersion of Eth and Oth bytes.
5395
977b85f4
AS
53962009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5397
5398 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5399
66bd43d1
KH
54002009-06-15 Kenichi Handa <handa@m17n.org>
5401
5402 * process.c (status_message): Fix previous change. Be sure to
5403 decode a localized string.
5404
cb5ca9c5
YM
54052009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5406
5407 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5408 add comment explaining why.
5409
ec7709ba 54102009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5411
ec7709ba 5412 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5413
4b7f335c
AR
54142009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5415
5416 * nsfont.m (ns_attribute_value): Remove.
5417 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5418 (ns_has_attribute): Shrink the normal range.
5419 (ns_findfonts): Don't worry about requested spec in determining
5420 need for synthItal.
e41820ee 5421 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5422
73b26103
SZ
54232009-06-14 Seiji Zenitani <zenitani@mac.com>
5424
5425 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5426
5753e4da
KH
54272009-06-11 Kenichi Handa <handa@m17n.org>
5428
5429 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5430 overhang for the static composition case.
5431
3561b671
KH
54322009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5433
5753e4da
KH
5434 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5435 overhang for the automatic composition case.
5436
3561b671
KH
5437 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5438 composition case.
5439
852bbd41
CY
54402009-06-10 Chong Yidong <cyd@stupidchicken.com>
5441
5442 * xdisp.c (get_next_display_element): When handling wrap-prefix
5443 and line-prefix, treat \n as a control character (bug#3502).
5444
9903d1e6
KH
54452009-06-10 Kenichi Handa <handa@m17n.org>
5446
5447 * font.c (font_parse_family_registry): Fix for one-char foundry.
5448 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5449
0bcbaaaa
CY
54502009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5451
5452 * process.c (status_message): Fix handling of multibyte signal
5453 string (Bug#3499).
5454
40aa3f13
JM
54552009-06-09 Jim Meyering <meyering@redhat.com>
5456
1f80c7e2
CY
5457 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5458 color name is missing.
40aa3f13 5459
72d51285
KH
54602009-06-09 Kenichi Handa <handa@m17n.org>
5461
5462 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5463 FROM-CODE and TO-CODE are codepoints of CHARSET.
5464
c1d04d84
AR
54652009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5466
5467 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5468
54692009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5470
5471 Changes to support :script/:lang/:otf in NS font driver.
5472 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5473 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5474 indicate not part of font driver interface, and change callers.
5475 (ns_get_family): Remove pointless null check.
5476 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5477 ns_spec_to_descriptor, ns_descriptor_to_entity.
5478 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5479 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5480 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5481 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5482 (ns_get_req_script, ns_accumulate_script_ranges)
5483 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5484 New functions.
5485 (nsfont_list, nsfont_match): Use ns_findfonts.
5486 (nsfont_open): Use font descriptor instead of traits.
5487 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5488 (dump_glyphstring): Rename to ns_dump_glyphstring.
5489
c7eb9816
AR
5490 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5491
c1d04d84
AR
5492 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5493
5494 * fontset.c (fontset_from_font): Remove NS-specific code.
5495
ec7709ba 54962009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5497
5498 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5499 nonactive windows.
5500
31fd7c5c 55012009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5502
1ac9108a 5503 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5504
68852c13 55052009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5506
5507 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5508
6756cd1d
CY
55092009-06-07 Chong Yidong <cyd@stupidchicken.com>
5510
5511 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5512 account for the overflowing of newlines into the last glyph on the
5513 display line (Bug#3482).
5514
28bf482a
DR
55152009-06-05 David Reitter <david.reitter@gmail.com>
5516
ec7709ba
JB
5517 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5518 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5519 Fns_selection_exists_p, Fns_selection_owner_p.
5520
fdb55376
JR
55212009-06-03 Jason Rumney <jasonr@gnu.org>
5522
5523 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5524 available. (Bug#3379)
5525
05129fbe
KH
55262009-05-29 Kenichi Handa <handa@m17n.org>
5527
1ac9108a
SM
5528 * coding.c (get_translation_table):
5529 Check Venable_character_translation.
05129fbe 5530
ec7709ba 55312009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5532
ec7709ba
JB
5533 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5534 (x_make_frame_visible): Move frame to front rather than calling
15891144 5535 ns_raise_frame().
ec7709ba 5536 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5537 isn't key window.
ec7709ba 5538 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5539 drawRect may be called by NSView even if the frame is hidden.
5540
ec7709ba
JB
5541 * nsfns.m (Fx_create_frame): Follow other ports in
5542 determining visibility; default to t. Ensure async_visible is set.
15891144 5543
21f73755
EZ
55442009-05-23 Eli Zaretskii <eliz@gnu.org>
5545
5546 * dired.c (Ffile_attributes): Doc fix.
5547
34001e41
CY
55482009-05-22 Chong Yidong <cyd@stupidchicken.com>
5549
5550 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5551
46306a17
SM
55522009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5553
5554 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5555 and xfont_scratch_props.
5556 (syms_of_xfont): Do it here instead.
5557 (xfont_find_ccl_program): Delete, unused.
5558 (xfont_open): Delete unused var `i'.
5559
ef6e0694
KH
55602009-05-21 Kenichi Handa <handa@m17n.org>
5561
5562 * fontset.c (Qlatin): Don't make it static.
5563
46306a17
SM
5564 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5565 New functions.
ef6e0694
KH
5566 (xfont_scripts_cache, xfont_scratch_props): New variables.
5567 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5568 (xfont_list_pattern): Argument changed. Callers changed.
5569 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5570 (xfont_list): Don't reject a font spec with :script property.
5571 (xfont_has_char): Fix setting of encoding.
5572 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5573 xfont_scratch_props.
5574
55752009-05-19 Kenichi Handa <handa@m17n.org>
5576
46306a17 5577 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5578 Callers changed.
5579
55802009-05-18 Kenichi Handa <handa@m17n.org>
5581
5582 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5583
ac71ced7
SM
55842009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5585
5586 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5587 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5588
1c6d1051
YM
55892009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5590
5591 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5592 (x_delete_terminal): Dissociate resource database from display and
5593 then call XrmDestroyDatabase before closing display.
5594
9b9b779c
AR
55952009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5596
5597 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5598 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5599 whether selected frame is viable before raising it (based on patch
5600 by David Reitter), and improve commentary.
5601 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5602
cccd42d5
KH
56032009-05-15 Kenichi Handa <handa@m17n.org>
5604
5605 * font.c (Ffont_spec): Check arguments.
5606
337fbd17
CY
56072009-05-14 Chong Yidong <cyd@stupidchicken.com>
5608
5609 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5610 weight when testing attributes (Bug#3282).
5611
47a6002f
JD
56122009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5613
5614 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5615 what we expect to get in the next ConfigureNotify event.
5616
9cb363db
YM
5617 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5618 before Xft one (Bug#1696).
5619
b9126609
CY
56202009-05-07 David Reitter <david.reitter@gmail.com>
5621
5622 * nsfns.m (Fx_display_planes): Compute bitplanes using
5623 NSBitsPerPixelFromDepth (Bug#3207).
5624
27a69fd9
CY
56252009-05-10 Chong Yidong <cyd@stupidchicken.com>
5626
5627 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5628
00f37552
TTN
56292009-05-10 Ulrich Mueller <ulm@gentoo.org>
5630
5631 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5632
2d82a920
DR
56332009-05-07 David Reitter <david.reitter@gmail.com>
5634
ec7709ba
JB
5635 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5636 Respect mouse face background.
2d82a920 5637
46b0d52d
DR
56382009-05-07 David Reitter <david.reitter@gmail.com>
5639
ec7709ba
JB
5640 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5641 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5642 in ns_update_begin and ns_update_end.
5643
ce1b23bb
SM
56442009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5645
5996e1b7
SM
5646 * nsfns.m (ns_get_screen): Rewrite.
5647 Don't presume selected-frame is of type `ns'.
5648
ba98e3a0
SM
5649 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5650 all drivers.
5651
ce1b23bb
SM
5652 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5653
bcda200f
YM
56542009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5655
5656 * keyboard.h (add_user_signal): Fix typo in extern.
5657
5658 * lisp.h (add_user_signal): Remove extern.
5659
5660 * unexelf.c (unexec): Consider a section to precede the .bss section
5661 if its addresses overlap that of .bss.
5662 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5663 instead of dumping process.
5664
864660a2
SM
56652009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5666
5667 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5668
50da4e56
SM
56692009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5670
5671 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5672
51520a1a
DN
56732009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5674
5675 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5676 any statements.
5677
409ea3a1
AS
56782009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5679
59c4c60f
AS
5680 * process.c (read_process_output): Make sure the current buffer is
5681 always restored.
5682
409ea3a1
AS
5683 * coding.c (record_conversion_result): Don't modify
5684 Vlast_code_conversion_error for successful result.
5685 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5686
56f00ed2
KH
56872009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5688
5689 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5690 (load_charset_map): Remove unnecessary code.
56f00ed2 5691
4491c9d2
DR
56922009-04-30 David Reitter <david.reitter@gmail.com>
5693
35f5b128 5694 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5695 through f24.
5696
6970f632
CY
56972009-04-30 Chong Yidong <cyd@stupidchicken.com>
5698
5699 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5700
5701 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5702 face_at_buffer_position.
5703 (face_before_or_after_it_pos, get_next_display_element)
5704 (note_mouse_highlight): Update face_at_buffer_position call.
5705
5706 * term.c (term_mouse_highlight):
5707 * msdos.c (IT_note_mouse_highlight):
5708 * fontset.c (Finternal_char_font):
35f5b128 5709 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5710
5711 * dispextern.h (face_at_buffer_position): Update prototype.
5712
0c616f63
KH
57132009-04-30 Kenichi Handa <handa@m17n.org>
5714
35f5b128 5715 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5716
ad3aaf33
AS
57172009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5718
5719 * callproc.c (Fcall_process): Fix GC protection. Make sure
5720 current buffer is always restored.
5721
c3c963a0
YM
57222009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5723
5724 * atimer.c (init_atimer): Also clear stopped_atimers.
5725
5726 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5727
7e3386cb
YM
5728 * process.c (create_process): Clean up merger residues of
5729 2008-07-17 change.
5730
91f68422
CY
57312009-04-29 Ulrich Mueller <ulm@gentoo.org>
5732
5733 * lread.c (Vread_circle): New variable.
5734 (read1): Disable recursive read if Vread_circle is nil.
5735
24b34550
KH
57362009-04-29 Kenichi Handa <handa@m17n.org>
5737
5738 * fontset.h (set_default_ascii_font): Delete extern.
5739
5740 * fontset.c (set_default_ascii_font): Delete this unused function.
5741
5742 * frame.c (x_set_font): When ARG is a font-object, check if the
5743 font-object matches with the ASCII font-spec of the frame's
9c358bda 5744 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5745
77bf07e1
AS
57462009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5747
5748 * fns.c (Flocale_info): Protect vector from GC during decoding.
5749
5750 * process.c (Fstart_process): Protect argv strings from GC during
5751 encoding.
5752
2c55aacf
AS
57532009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5754
5755 * sysdep.c: Include <ctype.h>.
5756
b892d3c9
DR
57572009-04-27 David Reitter <david.reitter@gmail.com>
5758
35f5b128 5759 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5760 Remove commented-out code.
5761
9d0644c4
JB
57622009-04-26 Johan Bockgård <bojohan@gnu.org>
5763
5764 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5765
b7053016
JR
57662009-04-25 Jason Rumney <jasonr@gnu.org>
5767
5768 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5769
4e8231f3
YM
57702009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5771
5772 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5773 Swap bytes in short integer if fringe bitmap width > 8.
5774
493dcf2c
KH
57752009-04-23 Kenichi Handa <handa@m17n.org>
5776
5777 * xfaces.c (Fx_list_fonts): If a font size is specified in
5778 PATTERN, set it in returned scalable fonts.
5779
401e9e57
CY
57802009-04-22 Chong Yidong <cyd@stupidchicken.com>
5781
708e05dc
CY
5782 * keyboard.c (Fset_input_meta_mode): Doc fix.
5783
5784 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5785
1ac9108a 5786 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5787
5788 * coding.c (Fterminal_coding_system): Doc fix.
5789
5790 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5791 (Fx_display_pixel_height, Fx_display_planes)
5792 (Fx_display_color_cells, Fx_server_max_request_size)
5793 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5794 (Fx_display_mm_height, Fx_display_mm_width)
5795 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5796 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5797 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5798 (check_x_display_info): Handle terminal objects instead of
5799 terminal ids.
5800
401e9e57
CY
5801 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5802 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5803 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5804 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5805
df80c7f0
KH
58062009-04-21 Kenichi Handa <handa@m17n.org>
5807
5a8f12af 5808 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5809 (font_score): Check AVGWIDTH too.
908567ef 5810
df80c7f0
KH
5811 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5812 worst case.
1ac9108a
SM
5813 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5814 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5815
705af33f
JR
58162009-04-19 Jason Rumney <jasonr@gnu.org>
5817
5818 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5819 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5820
5821 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5822 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5823 get_phys_cursor_geometry.
5824
b71ac3dd 5825 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5826 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5827 using get_phys_cursor_geometry.
5828
5829 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5830 correctly calculated.
5831
dc2933eb
JD
58322009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5833
1ac9108a
SM
5834 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5835 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5836 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5837 is deprecated.
5838
973e7849
AS
58392009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5840
5841 * font.c (font_put_frame_data): Use xfree instead of free.
5842
314d66f4
JB
58432009-04-17 Juanma Barranquero <lekktu@gmail.com>
5844
5845 * w32font.c (Qja, Qko): Remove declarations.
5846 (syms_of_w32font): Don't DEFSYM them.
5847
cf702558
CY
58482009-04-17 Chong Yidong <cyd@stupidchicken.com>
5849
5850 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5851
5852 * font.h (Qja, Qko): Extern them.
5853
5854 * ftfont.c (Qja, Qko): Remove declarations.
5855
5856 * xfont.c (Qja, Qko): Remove declarations.
5857
b50504f5
KH
58582009-04-17 Kenichi Handa <handa@m17n.org>
5859
bde25748
KH
5860 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5861 string from a vector to handle Latin-1 characters correctly.
5862
b50504f5
KH
5863 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5864 entity even if the cache hits.
5865
f4646fff
AS
58662009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5867
5868 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5869 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5870
e7deaab0
AS
5871 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5872 * lisp.h: Adjust prototypes.
5873
0a0e7d49
CY
58742009-04-16 Chong Yidong <cyd@stupidchicken.com>
5875
5876 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5877 change (Bug#3003).
5878
3c908a57
KH
58792009-04-16 Kenichi Handa <handa@m17n.org>
5880
1ac9108a 5881 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5882
5883 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5884 adstyle.
5885
5886 * ftfont.c (Qja, Qko): Don't make them static.
5887 (enum ftfont_cache_for): New enum.
5888 (fc_charset_table): Undo the previous change.
5889 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5890 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5891 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5892 non-scarable font, try to get AVERAGE_WIDTH.
5893 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5894 Change ft_face_cache from a list of a hash-table. Don't check
5895 `ja' and `ko' adstyle here.
5896 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5897 FTFONT_CACHE_FOR_CHARET.
5898 (ftfont_get_charset): Undo the previous change.
1ac9108a 5899 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5900 (ftfont_close): Likewise.
5901 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5902
5903 * font.c (font_sort_entites): Change the meaning of the arg
5904 BEST-ONLY. Don't optimize for VEC of lenght 1.
5905 (font_select_entity): Just return the value of font_sort_entites.
5906
5907 * xfaces.c (merge_face_vectors): Reflect font properties in
5908 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5909 font_clear_prop if a face attribute doesn't change.
5910
3c908a57
KH
5911 * charset.h (charset_ksc5601): Extern it.
5912
5913 * charset.c (charset_ksc5601): New variable.
5914 (Fdefine_charset_internal): Set charset_ksc5601.
5915 (init_charset_once): Initialize charset_ksc5601 to -1.
5916
d65859c3
DN
59172009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5918
5919 * fileio.c (history_delete_duplicates): Remove unused declaration.
5920
5921 * callint.c (history_delete_duplicates): New declaration.
5922 (Fcall_interactively): Remove command history duplicates when
5923 history_delete_duplicates is true.
5924
3ba010e5
EZ
59252009-04-14 Eli Zaretskii <eliz@gnu.org>
5926
5927 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5928
06f19b91
KH
59292009-04-14 Kenichi Handa <handa@m17n.org>
5930
5931 * font.c (Ffont_info): Fix docstring. Fix the second element of
5932 the returned value (bug#2949).
5933
2cce8bfc
CY
59342009-04-14 Chong Yidong <cyd@stupidchicken.com>
5935
5936 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5937
d156542d
KH
59382009-04-14 Kenichi Handa <handa@m17n.org>
5939
5940 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5941 encoding charset is ascii_compatible.
5942
5943 * charset.c (Fdefine_charset_internal): Make charset
5944 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5945 code_offset is 0, and covers all ASCII characters.
5946
86fa089e
SM
59472009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5948
5949 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5950 (ns_string_to_pasteboard_internal):
5951 * nsmenu.m (process_dialog):
5952 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5953 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5954 * lisp.h (Fx_load_color_file): Declare.
5955
a8a3728b
KH
59562009-04-13 Kenichi Handa <handa@m17n.org>
5957
1ac9108a 5958 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5959 (font_select_entity): Suppress the code to optimize for the same
5960 kind of fonts.
5961 (font_load_for_lface): Get a font that supports at least ASCII
5962 characters.
5963
5964 * ftfont.c (Qja, Qko): New variables.
5965 (fc_charset_table): Delete uniquifier data for iso8859-1.
5966 (ftfont_get_latin1_charset): New function.
5967 (get_adstyle_property): New function.
5968 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5969 bitmap fonts.
5970 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5971 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5972 `ko' or `ja'.
5973 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5974 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5975 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5976 property.
5977 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5978 (syms_of_ftfont): DEFSYM Qja and Qko.
5979
483670b5
KH
59802009-04-09 Kenichi Handa <handa@m17n.org>
5981
12b55765
KH
5982 * charset.c (map_charset_chars): For a charset of `superset'
5983 method, fix calculation of code range.
5984
483670b5
KH
5985 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5986 from the list of extra properties.
5987 (font_clear_prop): Be sure to delete `:name' font property.
5988
57d3b93b
KH
59892009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5990
b4b2c2ca
YM
5991 * dispnew.c (redraw_overlapping_rows): Fix detection of
5992 overlapping for topmost and bottommost rows.
5993
1ac9108a 5994 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5995
472c3609
JR
59962009-04-06 Jason Rumney <jasonr@gnu.org>
5997
5998 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5999
ab193662
KH
60002009-04-06 Kenichi Handa <handa@m17n.org>
6001
6002 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6003
6004 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6005
0c26f026
KH
60062009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6007
6008 * ftfont.c (ftfont_open): Fix checking of the return value of
6009 FT_Load_Char. Fix setting font->underline_thickness.
6010
e173bbce
CY
60112009-04-04 Chong Yidong <cyd@stupidchicken.com>
6012
6013 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6014 (Fterminal_parameters, Fterminal_parameter)
6015 (Fset_terminal_parameter): In doc string, refer to terminal
6016 objects rather than terminal ids.
6017
693a2698
EZ
60182009-04-04 Eli Zaretskii <eliz@gnu.org>
6019
6020 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6021 ret_lim_data. (Bug#2867)
6022
d5221487
CY
60232009-04-03 Chong Yidong <cyd@stupidchicken.com>
6024
6025 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6026 so they don't get wider than the window, matching 2006-01-23
6027 change to the partner function in xdisp.c (Bug#2800).
6028
223509a3
KH
60292009-04-03 Kenichi Handa <handa@m17n.org>
6030
6031 * print.c (print_object): Make each lowest sub_char_table start a
6032 new line (Bug#2866).
6033
74fcd0b1
KH
60342009-04-02 Kenichi Handa <handa@m17n.org>
6035
6036 * fontset.c (fontset_font): Record no-font when a fontset
6037 explicitly tells not to try another font-specs.
6038
c542407d
SM
60392009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6040
6041 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6042
e3869731
KH
60432009-03-30 Kenichi Handa <handa@m17n.org>
6044
d8d2f142
KH
6045 * fontset.c (fontset_from_font): Specify only registry in a
6046 font-spec for all characters supported by that registry.
6047
e3869731
KH
6048 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6049 even if HAVE_M17N_FLT is not defined.
6050
5da5f805
CY
60512009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6052
6053 * ftfont.c: Conditionalize prototyping and use of
6054 ftfont_variation_glyphs.
6055
ab226c50
SM
60562009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6057
9628fed7
SM
6058 * frame.c (delete_frame): Work around compiler bug.
6059
6060 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6061 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6062 Some more EMACS_INT.
6063 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6064
6065 * xdisp.c (dump_glyph): Fix typo.
6066
ae19ba7c
SM
6067 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6068 (adjust_markers_gap_motion, adjust_markers_for_delete)
6069 (adjust_markers_for_insert, adjust_point)
6070 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6071 (make_gap, copy_text, count_size_as_multibyte, insert)
6072 (insert_and_inherit, insert_before_markers)
6073 (insert_before_markers_and_inherit, insert_1)
6074 (count_combining_before, count_combining_after, insert_1_both)
6075 (insert_from_string, insert_from_string_before_markers)
6076 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6077 (insert_from_buffer_1, adjust_after_replace)
6078 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6079 (replace_range_2, del_range, del_range_1, del_range_byte)
6080 (del_range_both, del_range_2, modify_region)
6081 (prepare_to_modify_buffer, signal_before_change)
6082 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6083 for buffer positions and sizes.
6084 * lisp.h: Adjust prototypes accordingly.
6085
6086 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6087 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6088 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6089
ab226c50
SM
6090 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6091
46dfb8fb
JD
60922009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6093
6094 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6095 lines and columns so we keep the same pixel height and width.
6096
6097 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6098 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6099 (x_handle_net_wm_state): New function to update frame parameter
6100 fullscreen.
6101 (x_term_init): Initialize atoms for _NET_WM_STATE.
6102
6103 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6104
d347e494
SM
61052009-03-27 Kevin Ryde <user42@zip.com.au>
6106
6107 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6108 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6109 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6110 (Fgpm_mouse_stop): Pass that new parameter.
6111 * termhooks.h (close_gpm): Adjust prototype.
6112
84db11d6
SM
61132009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6114
c95a5008
SM
6115 * lisp.h (Fx_focus_frame): Declare.
6116
84db11d6
SM
6117 * callint.c (Fcall_interactively): For '^' just delegate the work to
6118 handle-shift-selection.
6119 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6120
0a1958d6
CY
61212009-03-24 Chong Yidong <cyd@stupidchicken.com>
6122
0bfdff23
CY
6123 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6124
0a1958d6
CY
6125 * data.c (Qinteractive_form): New variable.
6126 (Finteractive_form): Use it.
6127
6128 * eval.c (Fcommandp): Use Qinteractive_form.
6129
58aec0d6
JR
61302009-03-24 Jason Rumney <jasonr@gnu.org>
6131
6132 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6133 Calculate total size precisely. Decode environment variables
6134 before substituting. (Bug#38)
6135
553dd618
KH
61362009-03-24 Kenichi Handa <handa@m17n.org>
6137
6138 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6139 encoding (Bug#2722).
553dd618 6140
c39ea606
JD
61412009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6142
6143 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6144 that gdpy is set.
6145
bc9b2b5e
AM
61462009-03-22 Alan Mackenzie <acm@muc.de>
6147
6148 * callint.c (Finteractive): Clarify the doc string - even
6149 promptless elements need \n separators.
6150
9f995a76
JR
61512009-03-22 Jason Rumney <jasonr@gnu.org>
6152
6153 * w32term.c (syms_of_w32term): Doc fix for
6154 x-use-underline-position-properties.
6155
22749e9a
EZ
61562009-03-21 Eli Zaretskii <eliz@gnu.org>
6157
6158 * w32.c (getpwuid): Change argument type to unsigned.
6159 (struct w32_id): Change type of `rid' member to unsigned.
6160 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6161 argument ID to unsigned. All callers changed.
6162 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6163
e00553bf
EZ
61642009-03-20 Eli Zaretskii <eliz@gnu.org>
6165
6166 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6167 negative, produce a float value.
6168
6169 * dired.c (make_uid, make_gid): New functions.
6170 (Ffile_attributes): Use them to avoid negative UID and GID.
6171
f761d6b6
JB
61722009-03-20 Juanma Barranquero <lekktu@gmail.com>
6173
6174 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6175 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6176 Fix typos in docstrings.
6177
d507f8d7
KH
61782009-03-19 Kenichi Handa <handa@m17n.org>
6179
6180 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6181 changed, use font_load_for_lface to get a new font object.
6182 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6183
6184 * frame.c (x_set_font): Handle the case that ARG is a cons.
6185
c68845e0
GM
61862009-03-19 Glenn Morris <rgm@gnu.org>
6187
6188 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6189
bfa49dd1
CY
61902009-03-19 Chong Yidong <cyd@stupidchicken.com>
6191
6192 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6193
8458d4c1
KH
61942009-03-19 Kenichi Handa <handa@m17n.org>
6195
6196 * charset.c (load_charset_map_from_file): When a mapfile can't be
6197 loaded, signal an error.
6198
78e7d1fe
EZ
61992009-03-18 Eli Zaretskii <eliz@gnu.org>
6200
6201 * dired.c (Ffile_attributes): Make sure UID and GID are always
6202 positive, even if the value is too large for a positive EMACS_INT.
6203 Doc fix.
6204
6205 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6206
5da9fdfa
YM
62072009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6208
6209 * xmenu.c (xdialog_show): Move Fredisplay call ...
6210 (Fx_popup_dialog): ... here.
6211
7519c40d
SM
62122009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6213
6214 * dired.c (file_name_completion): Disable the first optimization just
6215 installed, since it is not implemented correctly.
6216
2cd298e2
SM
62172009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6218
6219 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6220 only if the entry can affect bestmatch.
2cd298e2
SM
6221 Stop the search early, as Ftry_completion already does.
6222
48d37adf
CY
62232009-03-17 Chong Yidong <cyd@stupidchicken.com>
6224
e10c9c93 6225 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6226
9286b16a
CY
62272009-03-15 Chong Yidong <cyd@stupidchicken.com>
6228
6229 * keyboard.c (parse_menu_item): Don't display remappings as menu
6230 equivalent bindings (Bug#788).
6231
f7b146dc
JR
62322009-03-15 Jason Rumney <jasonr@gnu.org>
6233
6234 * w32term.h (WM_EMACS_PAINT): New message.
6235 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6236 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6237 before passing to lisp thread. (Bug#950)
6238
f761d6b6 62392009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6240
d93f9575
CY
6241 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6242 variable as it was never reset.
6243 (ns_term_init): Remove initialization of Lisp-settable defaults
6244 and ns_expand_space.
6245 (-setPanelFromDefaultValues): Remove ns_expand_space.
6246 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6247 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6248 i.e. no additional spacing, similar to Carbon port.
6249
d93f9575
CY
6250 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6251 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6252
305018ec
JD
62532009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6254
6255 * sound.c (alsa_configure): Remove call to deprecated
6256 snd_pcm_sw_params_set_xfer_align.
6257
f761d6b6 62582009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6259
6260 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6261 after clicking in a detached tool bar.
6262 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6263
46e722a9
SM
62642009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6265
348db3dd
SM
6266 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6267 int/Lisp_Object mixup).
46e722a9 6268
a3d16f39
KH
62692009-03-13 Kenichi Handa <handa@m17n.org>
6270
6271 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6272 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6273 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6274 (set_fontset_font): Change ARG to a vector. Handle range_list in
6275 ARG correctly.
6276 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6277 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6278 the above change.
6279 (fontset_from_font): Fix previous change.
fe24f56a 6280 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6281 entry. If FONTSET is the default fontset, don't set the extra
6282 slot of the returning char-table.
6283
b066e6b6
JB
62842009-03-12 Juanma Barranquero <lekktu@gmail.com>
6285
6286 * nsfns.m (Fx_close_connection): Doc fix.
6287 (Fns_do_applescript): Reflow docstring.
6288 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6289 (Fx_display_pixel_width, Fx_display_pixel_height)
6290 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6291 Fix typos in docstrings.
6292 (Fns_set_alpha): Fix typos in error messages.
6293
d472514e 62942009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6295
d472514e 6296 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6297 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6298 were used for such events.
6299
d472514e
JB
6300 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6301 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6302
d472514e 6303 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6304 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6305
fb930676
KH
63062009-03-11 Kenichi Handa <handa@m17n.org>
6307
ff85581a
KH
6308 * font.h (font_open_by_spec): Extern it.
6309
c50b7e98
KH
6310 * font.c (font_open_by_spec): New function.
6311 (font_open_by_name): Use font_open_by_spec.
6312
fb930676
KH
6313 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6314 fontset of the frame.
6315
6316 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6317 modify the default font of frames that use this fontset.
6318 (num_auto_fontsets): New variable.
6319 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6320 name. Be sure to set FONTSET_ASCII to the correct font name.
6321 (update_auto_fontset_alist): New function.
6322
df4e8455
JB
63232009-03-11 Juanma Barranquero <lekktu@gmail.com>
6324
6325 * makefile.w32-in: Update dependencies.
6326
0a375797
AR
63272009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6328
6329 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6330
61313fa3
SM
63312009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6332
6333 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6334
b55103fb
CY
63352009-03-10 Chong Yidong <cyd@stupidchicken.com>
6336
6337 * lread.c (Feval_buffer): Doc fix.
6338
dde2559c
KH
63392009-03-09 Kenichi Handa <handa@m17n.org>
6340
6341 * charset.c (Qfile_name_handler_alist): Extern it.
6342 (load_charset_map_from_file): Temporarily bind
6343 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6344
df4e8455 63452009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6346
47f588bb
GM
6347 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6348 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6349
4ddf94bd
AR
63502009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6351
4c9bdfc2
AR
6352 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6353 (x_set_window_size): Change back to calculated method of setting
6354 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6355 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6356 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6357
fe41ae9e
AR
6358 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6359
4c9bdfc2
AR
6360 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6361 accelerator in parens under GNUstep.
6362
825d0875
KH
63632009-03-06 Kenichi Handa <handa@m17n.org>
6364
6365 These changes are to detect incorrect composition sequence without
f3b3be74 6366 looking ahead the source. (Bug#2370)
825d0875
KH
6367
6368 * coding.h: Include "composite.h".
6369 (enum compisition_state): New enum.
6370 (struct compisition_status): New struct.
6371 (struct iso_2022_spec): New member cmp_status.
6372 (struct emacs_mule_spec): New struct.
6373 (struct coding_system): New members ctext_extended_segment_len and
6374 embedded_utf_8. Change the union member
6375 spec.emacs_mule_full_support to spec.emacs_mule.
6376
6377 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6378 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6379 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6380 (ADD_COMPOSITION_DATA): New arg nbytes.
6381 (emacs_mule_char): New arg cmp_status.
6382 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6383 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6384 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6385 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6386 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6387 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6388 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6389 (EMACS_MULE_COMPOSITION_END): New macro.
6390 (emacs_mule_finish_composition): New function.
6391 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6392 (decode_coding_emacs_mule): Avoid long looking ahead while
6393 handling composition.
6394 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6395 (ENCODE_COMPOSITION_RULE): New macro.
6396 (finish_composition): New function.
6397 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6398 (DECODE_COMPOSITION_START): New implementation.
6399 (DECODE_COMPOSITION_END): Likewise.
6400 (STORE_COMPOSITION_RULE): New macro.
6401 (decode_coding_iso_2022): Avoid long looking ahead while handling
6402 composition, CTEXT extended segment, and embedded UTF-8.
6403 (setup_coding_system): For a coding of type iso-2022, reset
6404 CODING_ISO_EXTSEGMENT_LEN (coding) and
6405 CODING_ISO_EMBEDDED_UTF_8 (coding).
6406 (get_translation): Delete arguments last_block, from_nchars,
6407 to_nchars. Callers changed.
6408 (produce_chars): Don't modify charbuf. Adjusted for the change of
6409 get_translation.
98a326f7 6410 (produce_composition): Adjust for the new annotation sequence.
825d0875 6411 (handle_composition_annotation): Likewise.
98a326f7 6412 (consume_chars): Adjust for the change of get_translation.
825d0875 6413
ccbc4452
AR
64142009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6415
4ddf94bd 6416 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6417
988a7ddb
KH
64182009-03-05 Kenichi Handa <handa@m17n.org>
6419
6420 * font.c (font_select_entity): New function.
6421 (font_find_for_lface): Use font_select_entity to select a font.
6422
6423 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6424 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6425 font with C restriction.
6426
98a326f7 64272009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6428
be1bce46 6429 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6430
10ea2b82
JR
64312009-03-04 Jason Rumney <jasonr@gnu.org>
6432
2c93b248 6433 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6434 characters that have already been read. (Bug#2569)
2c93b248 6435
10ea2b82
JR
6436 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6437 Log an error message if check_image_size failed.
6438 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6439 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6440
71a0c011
EZ
64412009-03-02 Eli Zaretskii <eliz@gnu.org>
6442
6443 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6444 when decoding process output.
6445
2f63bba8
RS
64462009-03-01 Richard M Stallman <rms@gnu.org>
6447
6448 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6449
6450 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6451
0a9564cb
EZ
64522009-02-28 Eli Zaretskii <eliz@gnu.org>
6453
6454 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6455 (decode_coding_emacs_mule, decode_coding_iso_2022)
6456 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6457 (decode_coding_raw_text, decode_coding_charset)
6458 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6459 Honor inhibit-eol-conversion. (Bug #2186)
6460
449148b3
JR
64612009-02-28 Jason Rumney <jasonr@gnu.org>
6462
6463 * coding.c (detect_coding_charset): If not checking latin extra,
6464 fail on characters between 0x80 and 0xA0. (Bug#2354)
6465
a4aee864
EZ
64662009-02-28 Eli Zaretskii <eliz@gnu.org>
6467
6468 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6469 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6470
d88bee5a
GM
64712009-02-27 Glenn Morris <rgm@gnu.org>
6472
6473 * callint.c (Finteractive): Doc fix.
6474
a808f22d
KH
64752009-02-27 Kenichi Handa <handa@m17n.org>
6476
6477 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6478
caf8d60c
CY
64792009-02-27 Chong Yidong <cyd@stupidchicken.com>
6480
6481 * font.c (font_style_to_value): Set value for unknown symbols to
6482 100 instead of 255.
b61137ea
CY
6483 (weight_table, slant_table, width_table): Treat "unspecified" as
6484 the default value.
caf8d60c 6485
1a0de25c
JB
64862009-02-26 Juanma Barranquero <lekktu@gmail.com>
6487
6488 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6489
8fc45744
JB
64902009-02-25 Juanma Barranquero <lekktu@gmail.com>
6491
107bd7d1
JB
6492 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6493 error as soon as a recursive load is detected.
8fc45744 6494
f097e223
AR
64952009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6496
6497 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6498 before caching.
6499
8810a12f
KH
65002009-02-24 Kenichi Handa <handa@m17n.org>
6501
6502 * fontset.c (fontset_find_font): Fix the condition for checking
6503 unavailable font.
6504
2c7d1565
GM
65052009-02-24 Glenn Morris <rgm@gnu.org>
6506
6507 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6508 whitespace that confuses documentation.
6509
a20878b6
MB
65102009-02-23 Miles Bader <miles@gnu.org>
6511
6512 * process.c (Flist_system_processes, Fprocess_attributes)
6513 (syms_of_process): Rename `system-process-attributes' to
6514 `process-attributes'.
6515
b3b58c01
AS
65162009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6517
1b3b981b
AS
6518 * coding.h (struct coding_system): Make safe_charsets a pointer to
6519 unsigned char.
6520 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6521 being 255.
6522 (SAFE_CHARSET_P): Likewise.
6523 (setup_iso_safe_charsets): Properly setup safe_charsets.
6524 (Fdefine_coding_system_internal): Likewise.
6525 (setup_coding_system): Likewise. Remove unneeded casts.
6526 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6527 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6528 unneeded casts.
6529
b3b58c01
AS
6530 * insdel.c (del_range_2): Don't modify gap contents when called
6531 from decode_coding_object. (Bug#1809)
6532
0b6f228c
CY
65332009-02-21 Chong Yidong <cyd@stupidchicken.com>
6534
6535 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6536 Qfont_object.
6537 (Ftype_of): Recognize font objects.
6538
6539 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6540
6541 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6542 moved to data.c.
6543
52f8870b
AR
65442009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6545
6546 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6547 async_iconified. Based on a patch by Christian Lynbech
6548 <christian.lynbech@tieto.com>.
6549 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6550
7087d5e9
GM
65512009-02-20 Glenn Morris <rgm@gnu.org>
6552
6553 * syntax.c (Fskip_chars_forward): Fix doc typo.
6554
41d2ceef
CY
65552009-02-20 Chong Yidong <cyd@stupidchicken.com>
6556
6557 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6558
1a3b7ca6
CY
65592009-02-19 Chong Yidong <cyd@stupidchicken.com>
6560
6561 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6562
73cce38d
KH
65632009-02-19 Kenichi Handa <handa@m17n.org>
6564
6565 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6566 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6567
a51092ee
DN
65682009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6569
6570 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6571
c423ecca
KH
65722009-02-18 Kenichi Handa <handa@m17n.org>
6573
6574 * font.c (font_check_otf_features): Fix handling of `nil' element.
6575 (Ffont_spec): Describe :lang and :otf in the docstring.
6576
4c1958f4
AS
65772009-02-16 Andreas Schwab <schwab@suse.de>
6578
6579 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6580 string.
6581
5704f39a
KH
65822009-02-16 Kenichi Handa <handa@m17n.org>
6583
6584 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6585 (Bug#1723)
5704f39a 6586
8f0085aa
CY
65872009-02-14 Chong Yidong <cyd@stupidchicken.com>
6588
a057d86a 6589 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6590
6591 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6592 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6593
aff01dd9
EZ
65942009-02-14 Eli Zaretskii <eliz@gnu.org>
6595
6596 * msdos.c (MAX_SCREEN_BUF): New macro.
6597 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6598 Encode the entire run of glyphs sharing the same face, instead of
6599 doing that one glyph at a time (fixes a bug with displaying
6600 double-size characters).
6601
ba301db3
AR
66022009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6603
6604 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6605
6606 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6607 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6608 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6609
6610 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6611 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6612
51d861de
SM
66132009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6614
ac146f82 6615 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6616 invisible areas.
6617
7fed8996
JR
66182009-02-12 Jason Rumney <jasonr@gnu.org>
6619
631ea4fb
JR
6620 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6621 (add_font_entity_to_list): Call check_face_name even when family
6622 is unspecified.
6623
cb4a3e42
JR
6624 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6625 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6626 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6627
7fed8996 6628 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6629 raster fonts. (Bug#2219)
7fed8996 6630
895416e3
KH
66312009-02-12 Kenichi Handa <handa@m17n.org>
6632
6633 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6634 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6635 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6636 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6637 (find_automatic_composition): While looking forward and backward,
6638 check static composition. Fix where to stop looking forward.
6639 (composition_adjust_point): Fix checking of static composition.
6640 (Fcomposition_get_gstring): Pay attention to
1dacf998 6641 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6642
6643 * lisp.h (fast_looking_at): Extern it.
6644
6645 * search.c (fast_looking_at): New function.
6646
51d861de 6647 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6648 <struct glyph>.u.cmp.to.
6649 (append_composite_glyph): Likewise.
6650
51d861de 6651 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6652 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6653 composition.
51d861de 6654 (append_composite_glyph): Adjust for the change of
895416e3
KH
6655 <strcut glyph>.u.cmp.to.
6656
8510724d
JB
66572009-02-11 Juanma Barranquero <lekktu@gmail.com>
6658
6659 * casetab.c (init_casetab_once):
6660 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6661 * font.c (font_update_lface):
6662 * fontset.c (Fnew_fontset):
6663 * ftfont.c (ftfont_drive_otf):
6664 * xfont.c (xfont_open):
6665 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6666
294fa707
SM
66672009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6668
6669 * fileio.c (Fwrite_region): !NILP -> CONSP.
6670
b5bfebec
AS
66712009-02-10 Andreas Schwab <schwab@suse.de>
6672
6673 * process.c (send_process): Properly relocate pointer into data
adab88bd 6674 when using encoded data. (Bug#2272)
b5bfebec 6675
cb84a2be
KH
66762009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6677
6678 * coding.c (detect_coding_charset): Fix previous change.
6679
89e09428
JR
66802009-02-08 Jason Rumney <jasonr@gnu.org>
6681
6682 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6683 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6684
4470a277
AS
66852009-02-07 Andreas Schwab <schwab@suse.de>
6686
6687 * unexelf.c (unexec): Fix error message.
6688
3175b12a
AR
66892009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6690
6691 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6692 when modal window is active. (Bug #2152)
3175b12a
AR
6693 (applicationShouldTerminate:): Remove now-unneeded while loop
6694 around NSRunAlertPanel.
6695
6696 * nsmenu.m (popupSession): New file-global variable.
6697 (pop_down_menu): End the popupSession before closing dialog.
6698 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6699 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6700 don't query NSApp for events (just sleep instead).
6701
8434d0b8
EZ
67022009-02-07 Eli Zaretskii <eliz@gnu.org>
6703
51d861de
SM
6704 * coding.c (syms_of_coding) <translation-table-for-input>:
6705 Modify doc string to discourage use for character code unification.
8434d0b8 6706
aa82edfd
CY
67072009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6708
6709 * atimer.c (run_timers): Update pending_atimers.
6710
2d283c7c
CY
67112009-02-06 Chong Yidong <cyd@stupidchicken.com>
6712
eb306cab
CY
6713 * image.c (svg_load_image): Fix last change.
6714
2d283c7c
CY
6715 * xfns.c (Fx_create_frame): Signal an error if no font is
6716 found (Bug#2147).
6717
4d8e170e
JB
67182009-02-05 Juanma Barranquero <lekktu@gmail.com>
6719
6720 * character.c (syms_of_character) <script-representative-chars>:
6721 Fix typo in docstring.
6722
c96169a0
AR
67232009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6724
6725 * nsmenu.m (pop_down_menu): New function.
6726 (ns_popup_dialog): Call it on unwind.
6727 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6728 call timer_check() (Bug#2154).
6729 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6730 handling_signal is set.
6731 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6732
31fd7c5c 6733 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6734
6735 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6736
6737 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6738
51d861de
SM
6739 * keyboard.c (poll_for_input_1, handle_async_input):
6740 Set handling_signal under HAVE_NS.
c96169a0 6741
aacd8ba1
GM
67422009-02-04 Glenn Morris <rgm@gnu.org>
6743
6744 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6745
4cb75c4b
KH
67462009-02-04 Kenichi Handa <handa@m17n.org>
6747
6748 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6749
6750 * charset.c (Fchar_charset): New optional arg restriction.
6751
6752 * coding.h (coding_system_charset_list): Extern it.
6753
6754 * coding.c (coding_system_charset_list): New function.
6755
6756 * composite.c: Include coding.h and termhooks.h.
6757 (composition_gstring_p): Fix for the terminal case.
6758 (composition_gstring_width): Likewise.
6759 (fill_gstring_body): Likewise.
6760 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6761 the frame.
6762 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6763 is within a composition.
867d4bb3 6764 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6765
6766 * term.c (encode_terminal_code): Fix handling of composition.
6767 (produce_composite_glyph): For static composition, get pixel_width
6768 from struct composition.
6769
826ba17e
AS
67702009-02-02 Andreas Schwab <schwab@suse.de>
6771
6772 * unexelf.c (unexec): Handle unaligned bss offset.
6773
8ad093db
AR
67742009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6775
6776 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6777 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6778
8ad093db
AR
6779 * keyboard.c (handle_interrupt): Don't call
6780 quit_throw_to_read_char() under NS.
d0a76a6e 6781
8ad093db
AR
6782 * blockinput.h: Remove NS-specific code.
6783
4d18a7a2
DN
67842009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6785
db878925
DN
6786 * dispnew.c (window_change_signal): Don't try to get the size of a
6787 suspended tty frame.
6788 * term.c (Fresume_tty): Resize if the size has changed while the
6789 tty was suspended.
6790
4d18a7a2
DN
6791 * alloc.c (mark_stack): Properly conditionalize previous change.
6792
8984df7c
JB
67932009-01-30 Juanma Barranquero <lekktu@gmail.com>
6794
6795 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6796 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6797 Remove; this code is not used on Windows.
6798
75f4f1ac
EZ
67992009-01-30 Eli Zaretskii <eliz@gnu.org>
6800
6801 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6802 EOLs that also has stray ^M characters.
6803
07a1e794
JB
68042009-01-30 Juanma Barranquero <lekktu@gmail.com>
6805
6806 * atimer.c (run_timers, alarm_signal_handler):
6807 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6808 * w32inevt.c (w32_console_read_socket):
6809 * w32term.c (w32_read_socket):
6810 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6811
a8b11cc9
CY
68122009-01-30 Chong Yidong <cyd@stupidchicken.com>
6813
6814 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6815 Initialize it as a relative filename pattern.
6816 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6817 (Fcall_process_region): Simplify temp file creation using
6818 temporary-file-directory.
6819
c279587b
EZ
68202009-01-29 Eli Zaretskii <eliz@gnu.org>
6821
6822 * msdos.c: Rename pending_signals to msdos_pending_signals.
6823 (sig_suspender, sigprocmask): Adjust.
6824
a8fe3242
CY
68252009-01-29 Chong Yidong <cyd@stupidchicken.com>
6826
6827 * keyboard.c (pending_signals): New var.
6828 (poll_for_input, input_available_signal, init_keyboard): Set it.
6829 (process_pending_signals): New function.
6830
6831 * lisp.h (QUIT): Check pending_signals instead of
6832 interrupt_input_pending. Use process_pending_signals.
6833
51d861de 6834 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6835
51d861de 6836 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6837
6838 * sysdep.c (emacs_write): Use process_pending_signals.
6839
6840 * xterm.c (XTread_socket): Update pending_signals.
6841
6842 * w32term.c (w32_read_socket): Update pending_signals.
6843
6844 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6845
6570a1c4
KH
68462009-01-29 Kenichi Handa <handa@m17n.org>
6847
6848 * xftfont.c (xftfont_has_char): New function.
6849 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6850
d72a4afa
AR
68512009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6852
6853 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6854 under GNUstep.
6855 (ns_query_color): New declaration.
6856
6857 * nsterm.m (ns_confirm_quit): New variable.
6858 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6859 (EmacsApp-applicationShouldTerminate:): Use it.
6860 (EmacsPrefsController): Let user set it.
6861 (ns_query_color): New function.
6862 (ns_defined_color): Use it.
6863 (ns_initialize): Drop.
6864 (ns_term_init): Add two lines from ns_initialize(), and set
6865 input_interrupt_mode to nil.
6866
6867 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6868 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6869
9fe78804
KH
68702009-01-28 Kenichi Handa <handa@m17n.org>
6871
6872 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6873 (fontset_get_font_group): Remember that no font-group is specified
6874 for C.
9fe78804 6875
fa57de36
CY
68762009-01-27 Chong Yidong <cyd@stupidchicken.com>
6877
930600e9
CY
6878 * fns.c (concat): Check for string overflow (bug#1787).
6879
fa57de36
CY
6880 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6881 Quadruple undo limits (bug#1501).
6882
7179ce7b
KH
68832009-01-27 Kenichi Handa <handa@m17n.org>
6884
6885 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6886 directly use GT_Get_Char_index.
6887
6888 * xftfont.c (struct xftfont_info): New member `index'.
6889
6890 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6891 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6892
5be8fcc0
CY
68932009-01-26 Kenichi Handa <handa@m17n.org>
6894
6895 * fontset.c (fontset_find_font): Fix handling of non-cons return
6896 value of fontset_get_font_group.
6897 (fontset_font): Revert last change.
6898
19ae3e61
JR
68992009-01-26 Jason Rumney <jasonr@gnu.org>
6900
6901 * w32font.c (w32font_list_internal): Return quickly if registry is
6902 unknown. Simplify final return.
6903 (add_font_entity_to_list): Break complex logic down into more
6904 manageable chunks. Move unknown registry check to
6905 w32font_list_internal.
6906
8612b71a
AR
69072009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6908
6909 Changes to remove Feval calls from GUI under NS.
6910
d8038940
JB
6911 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6912 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6913 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6914
6915 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6916 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6917 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6918 instead of NON_ASCII_KEYSTROKE_EVENT.
6919 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6920 (EmacsApp-applicationShouldTerminate:): Query user.
6921 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6922 instead of Feval.
6923
6924 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6925
6926 * keyboard.c (kbd_buffer_get_event): Check for it.
6927 (keys_of_keyboard): Define lispy keys for
6928 ns-put/unput-working-text.
6929
6930 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6931 versions.
6932 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6933
6288ae55
CY
69342009-01-25 Chong Yidong <cyd@stupidchicken.com>
6935
6936 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6937 setting current_buffer directly. (Bug#2044)
6288ae55 6938
289e7f8f
CY
69392009-01-24 Chong Yidong <cyd@stupidchicken.com>
6940
5ce87308 6941 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6942 any work. (Bug#1952, bug#1990).
5ce87308 6943
64cc3cf6 6944 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6945
b3243e6f
AR
69462009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6947
6948 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6949 (ns_no_defaults): New declaration.
6950 (main): Use it.
e0d2e69a 6951
d900b2af 6952 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6953
d900b2af 6954 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6955
d900b2af
AR
6956 * nsterm.m (ns_no_defaults): New variable.
6957 (ns_initialize): Don't read defaults when ns_no_defaults.
6958 (EmacsView-readSelectionFromPasteboard:)
6959 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6960 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6961 (ns_dumpglyphs_stretch): New function.
6962 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6963 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6964
e0d2e69a
AR
6965 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6966
3ac71f5d
CY
69672009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6968
6969 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6970 call for Sparc64.
6971
3fe53a83
AR
69722009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6973
6974 * nsfns.m:
6975 * nsgui.h:
6976 * nsmenu.m:
6977 * nsselect.m:
6978 * nsterm.h:
6979 * nsterm.m: Remove '23' comments that indicated code added during
6980 update from emacs-20 -> emacs-23.
6981
10f87c6f 69822009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6983
6984 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6985 ns_alternate_modifier. (Bug#1217)
a3b53a85 6986
c7cef62d
AR
6987 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6988 Display all shortcuts, including those w/o super modifier.
6989
575fb8bd
AR
6990 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6991
918b848b
CY
69922009-01-22 Chong Yidong <cyd@stupidchicken.com>
6993
6994 * fileio.c (Vwrite_region_post_annotation_function)
6995 (Vwrite_region_annotation_buffers): New vars.
6996 (build_annotations_unwind): Just reset
6997 Vwrite_region_annotation_buffers.
6998 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6999 Call write-region-post-annotation-function.
7000 (build_annotations): Add to Vwrite_region_annotation_buffers if
7001 buffer changes.
7002
a39e2539
AR
70032009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7004
7005 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7006 Tiger.
51d861de
SM
7007 * nsfns.m (ns_do_applescript):
7008 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7009
35ed44db
AR
70102009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7011
7012 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7013
cbe0b5bf
AR
70142009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7015
7016 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7017
6049d3a0
AR
7018 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7019
7020 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7021 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7022 handle Ctrl-tab. (Bug#1841)
7023 (ns_get_color): Use unsigned long long for scanned hex string value.
7024 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7025 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7026 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7027 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7028 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7029 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7030 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7031
d3810c21 7032 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7033 DPI. (Bug#1316)
d3810c21
AR
7034 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7035 values in onTiger section.
4c7077c3 7036
e301e634
CY
70372009-01-19 Chong Yidong <cyd@stupidchicken.com>
7038
7f82490b
CY
7039 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7040 Check return value of font_spec_from_name.
64cc3cf6 7041 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7042
7043 * font.c (font_spec_from_name): Return Qnil if font name could not
7044 be parsed.
7045 (font_parse_name): Treat a `?' character as part of an XLFD.
7046
e301e634
CY
7047 * fns.c (Fsubstring): Doc fix.
7048
1c0db158
KH
70492009-01-19 Kenichi Handa <handa@m17n.org>
7050
51d861de 7051 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7052 (ftfont_list): Likewise.
7053
acf20901
JB
70542009-01-18 Juanma Barranquero <lekktu@gmail.com>
7055
fff4e459
JB
7056 * dbusbind.c (Fdbus_register_signal):
7057 * process.c (conv_sockaddr_to_lisp):
7058 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7059
acf20901
JB
7060 * callproc.c (Fgetenv_internal): Doc fix.
7061
e7abcdfb
CY
70622009-01-16 Chong Yidong <cyd@stupidchicken.com>
7063
7064 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7065 it is not even used.
7066
b60861e6
GM
70672009-01-16 Glenn Morris <rgm@gnu.org>
7068
7069 * font.c (Ffont_variation_glyphs): Silence compiler.
7070
8db52afe
JB
70712009-01-15 Juanma Barranquero <lekktu@gmail.com>
7072
7073 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7074 Reported by David Robinow <drobinow@gmail.com>.
7075
4cddb209
KH
70762009-01-15 Kenichi Handa <handa@m17n.org>
7077
51d861de 7078 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7079
f247f67b
JR
70802009-01-14 Jason Rumney <jasonr@gnu.org>
7081
7082 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7083 never a fontset. (Bug#1562)
f247f67b 7084
f56a4450
KH
70852009-01-14 Kenichi Handa <handa@m17n.org>
7086
7087 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7088 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7089
4e99855e
CY
70902009-01-13 Chong Yidong <cyd@stupidchicken.com>
7091
7092 * font.c (font_clear_prop): If clearing the family, clear the font
7093 width index too.
7094
fff4e459 7095 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7096
24f01470
JB
70972009-01-12 Juanma Barranquero <lekktu@gmail.com>
7098
7099 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7100 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7101 functions, use sizeof.
7102
a41240a3
MR
71032009-01-12 Martin Rudalics <rudalics@gmx.at>
7104
7105 * keyboard.c (read_char): Fix case where last_nonmenu_event
7106 returned a bad value with submenus. (Bug#447)
7107
944636b8
CY
71082009-01-12 Chong Yidong <cyd@stupidchicken.com>
7109
7110 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7111 family, clear the font width index too.
7112
0dad7c6f
JR
71132009-01-11 Jason Rumney <jasonr@gnu.org>
7114
7115 * keyboard.c (cmd_error_internal): Exit when errors occur before
7116 frame creation and not in daemon mode. (Bug#1836)
7117
7c2363af
CY
71182009-01-10 Chong Yidong <cyd@stupidchicken.com>
7119
7120 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7121 of a display vector, backtrack.
7122 (try_window_reusing_current_matrix): Check glyph type before
7123 referencing charpos member.
7124
97b1b294
EZ
71252009-01-10 Eli Zaretskii <eliz@gnu.org>
7126
7127 Fix Bug #876:
7128
7129 * coding.c (inhibit_null_byte_detection): New variable.
7130 (detect_coding, detect_coding_system): Don't pay attention to null
7131 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7132 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7133 <inhibit-iso-escape-detection>: Doc fix.
7134
4624b6e3
JR
71352009-01-09 Jason Rumney <jasonr@gnu.org>
7136
7137 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7138 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7139 Only report Unicode Plane 2 fonts as unicode-sip.
7140
323b840c
CY
71412009-01-09 Chong Yidong <cyd@stupidchicken.com>
7142
51d861de
SM
7143 * xfaces.c (Fx_font_family_list): Delete function.
7144 Move compatibility version to faces.el.
323b840c 7145
51d861de 7146 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7147
eba7400d
MR
71482009-01-09 Martin Rudalics <rudalics@gmx.at>
7149
7150 * frame.c (x_set_frame_parameters): Remember requested value for
7151 fullscreen before it's reset by the parameter handler.
7152
4b09796d
GM
71532009-01-09 Glenn Morris <rgm@gnu.org>
7154
7155 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7156 (last_command_event): ... and update all users.
4b09796d
GM
7157 (last_input_char): For clarity, rename to...
7158 (last_input_event): ... and update all users.
7159 (last-command-char, last-input-char): Move to subr.el as aliases.
7160 * cmds.c, commands.h: Update for last_command_char rename.
7161
14ccea62
CY
71622009-01-08 Chong Yidong <cyd@stupidchicken.com>
7163
51d861de 7164 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7165
5f004711
JR
71662009-01-08 Jason Rumney <jasonr@gnu.org>
7167
7168 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7169 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7170 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7171 Don't declare.
fff4e459 7172 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7173 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7174
b71f6f73
KH
71752009-01-07 Kenichi Handa <handa@m17n.org>
7176
50b06221 7177 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7178 remember the coding system used for decoding in
50b06221
KH
7179 coding_system (Bug#1039).
7180
b71f6f73 7181 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7182 breaking the loop. (Bug#870)
b71f6f73
KH
7183 (decode_coding_utf_16, decode_coding_emacs_mule)
7184 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7185 (decode_coding_charset): Likewise.
7186
56f668f7
MR
71872009-01-05 Martin Rudalics <rudalics@gmx.at>
7188
7189 * frame.c (x_set_frame_parameters): Make sure height (width) get
7190 applied when fullwidth (fullheight) is set. (Bug#1522)
7191
5da9424d
JB
71922009-01-04 Juanma Barranquero <lekktu@gmail.com>
7193
7194 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7195 (utc_base): Declare as ULONGLONG, not long double.
7196 (convert_time_raw): Delete.
7197 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7198 (initialize_utc_base): New function.
7199 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7200 (convert_from_time_t): Use initialize_utc_base; compute result with
7201 64-bit arithmetic.
7202 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7203
c4605e09
EZ
72042009-01-03 Eli Zaretskii <eliz@gnu.org>
7205
9acef61c 7206 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7207 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7208 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7209 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7210 [!subprocesses]: Define.
7211 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7212 (Flist_system_processes, Fsystem_process_attributes)
7213 [!subprocesses]: Call list_system_processes and
7214 system_process_attributes instead of returning Qnil.
7215
9acef61c
JB
7216 * dosfns.c (system_process_attributes, list_system_processes):
7217 New functions.
c4605e09
EZ
7218
7219 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7220
7221 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7222 Don't use the default (no-op) implementation.
7223
8b7d0a16
JR
72242009-01-03 Jason Rumney <jasonr@gnu.org>
7225
a6d46bc1
JR
7226 * keyboard.c (parse_modifiers_uncached): Wheel events are
7227 clicks (bug#687).
7228
8b7d0a16
JR
7229 * w32term.c (x_query_colors, x_query_color): New functions.
7230
7231 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7232 (svg_load_image): Cast returned pointers from dynamically loaded
7233 functions. Eliminate W32 specific code.
7234
bfe11752
DN
72352009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7236
89e2438a
DN
7237 * nsfns.m (x_set_foreground_color, x_set_background_color)
7238 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7239 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7240 x_ prefix instead of ns_. Update references.
7241 (syms_of_nsfns): Add a FIXME comment.
7242
7243 * nsterm.m (x_set_cursor_type): New prototype.
7244 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7245
bfe11752
DN
7246 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7247 for Solaris instead of incorrectly providing Qutime and Qcutime.
7248
031da700
EZ
72492009-01-02 Eli Zaretskii <eliz@gnu.org>
7250
7251 * w32.c (process_times): Compute sum of utime and stime.
7252 (system_process_attributes): Add Qtime to the alist.
7253
7254 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7255 and add them to the alist.
7256
7257 * process.c (top level) <Qtime, Qctime>: New variables.
7258 (syms_of_process): staticpro them.
7259 (Fsystem_process_attributes): Add their documentation to the doc
7260 string.
7261
7262 * process.h: Declare Qtime and Qctime.
7263
df23bf08
JR
72642009-01-02 Jason Rumney <jasonr@gnu.org>
7265
9acef61c 7266 * image.c (Qgobject): New symbol.
df23bf08
JR
7267 (syms_of_image): Initialize it.
7268 (init_svg_functions): Load some functions from gobject library.
7269
5bbdf7aa
DN
72702009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7271
7272 * frame.c (make_terminal_frame): Remove redundant code and useless
7273 block.
7274
63136da6
AS
72752009-01-01 Andreas Schwab <schwab@suse.de>
7276
7277 * process.c (conv_sockaddr_to_lisp): Add workaround for
7278 getsockname bug on BSD.
7279
9ef69046
CY
72802009-01-01 Chong Yidong <cyd@stupidchicken.com>
7281
d6fafbe0
CY
7282 * xfns.c (x_create_tip_frame): Set border width of the X window.
7283
51d861de 7284 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7285
f9c34147
JR
72862009-01-01 Jason Rumney <jasonr@gnu.org>
7287
9acef61c 7288 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7289 Don't block input, as per earlier xterm.c changes.
7290
f5497e45
AR
72912008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7292
7293 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7294 (ns_appkit_version_int): New function.
7295 (x-server-version): Use ns_appkit_version_int and follow 21+
7296 convention of returning 3 integers.
7297
c19cab20
KH
72982008-12-30 Kenichi Handa <handa@m17n.org>
7299
7300 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7301 (CHAR_SURROGATE_PAIR_P): New macro.
7302
7303 * font.h (struct font_driver): New member get_variation_glyphs.
7304
9acef61c 7305 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7306 (Ffont_variation_glyphs): New function.
7307 (syms_of_font): Defsubr it.
7308
7309 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7310 ftfont_variation_glyphs.
7311 (setup_otf_gstring): New function.
7312 (ftfont_drive_otf): Use it.
7313 (ftfont_shape_by_flt): Handle variation selector.
7314 (ftfont_variation_glyphs): New function.
7315
28cd591f
MR
73162008-12-30 Martin Rudalics <rudalics@gmx.at>
7317
7318 * frame.c (Vemacs_iconified): Remove.
7319
7f714baf
JR
73202008-12-30 Jason Rumney <jasonr@gnu.org>
7321
7322 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7323 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7324
9d2d22ab
CY
73252008-12-30 Chong Yidong <cyd@stupidchicken.com>
7326
7327 * indent.c (Fvertical_motion): Don't advance iterator if we have
7328 reseated to the desired position.
7329
7330 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7331 checking for pos match.
7332
545312c2
KH
73332008-12-30 Kenichi Handa <handa@m17n.org>
7334
1ede3eb6
KH
7335 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7336 just get the low 8-bit of the code.
7337
545312c2
KH
7338 * font.c (font_intern_prop): Validate str as multibyte.
7339
bd7bbf29
DN
73402008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7341
31e0750e
DN
7342 * dispextern.h (struct face): Move lface and hash from the middle
7343 of bitfields.
7344
bd7bbf29
DN
7345 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7346
b5672e7c
DN
73472008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7348
7349 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7350 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7351 instead of intervals.h.
7352
d704470f
AS
73532008-12-26 Andreas Schwab <schwab@suse.de>
7354
7355 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7356 cons.
7357
54b33868
MR
73582008-12-26 Martin Rudalics <rudalics@gmx.at>
7359
7360 * textprop.c (Qminibuffer_prompt): New variable.
7361 (syms_of_textprop): Initialize it.
7362 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7363 in minibuffer-prompt face. (Bug#1662)
7364
40b615d6
JR
73652008-12-25 Jason Rumney <jasonr@gnu.org>
7366
7367 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7368
baae5c2d
JR
73692008-12-24 Jason Rumney <jasonr@gnu.org>
7370
7371 * ralloc.c (r_alloc_reset_variable): New function.
7372
7373 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7374 record of what points where. (Bug#716)
baae5c2d 7375
a9051c88
DN
73762008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7377
7378 * minibuf.c (read_minibuf): Follow the non-interactive case when
7379 running as a daemon, before detaching.
7380
8b146312
AS
73812008-12-22 Andreas Schwab <schwab@suse.de>
7382
7383 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7384 * gtkutil.c (free_widget_value): Use xfree instead of free.
7385
56f2de10
MR
73862008-12-22 Martin Rudalics <rudalics@gmx.at>
7387
7388 * frame.c (delete_frame): New function derived from
7389 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7390 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7391 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7392 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7393 * frame.h: Extern delete_frame.
7394 * window.c (window_loop):
7395 * terminal.c (delete_terminal):
7396 * xterm.c (x_connection_closed):
7397 * xfns.c (Fx_hide_tip):
9acef61c 7398 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7399
1fc200d6
JR
74002008-12-21 Jason Rumney <jasonr@gnu.org>
7401
7402 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7403 when character maps to .notdef character.
7404
5e252df2
SM
74052008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7406
7407 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7408
99b72cc4
JR
74092008-12-20 Jason Rumney <jasonr@gnu.org>
7410
7411 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7412 a graphical frame on Windows. (Bug#1325)
99b72cc4 7413
acc49a52
JD
74142008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7415
7416 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7417
6ea15123
CY
74182008-12-20 Chong Yidong <cyd@stupidchicken.com>
7419
7420 * minibuf.c (Fread_buffer): Doc fix.
7421
b2dab6c8
JR
74222008-12-20 Jason Rumney <jasonr@gnu.org>
7423
54ea0c87 7424 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7425 server name in UNC paths. (Bug#719)
54ea0c87 7426
b2dab6c8 7427 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7428 charbuf. (Bug#1035)
b2dab6c8 7429
6d1921be
DN
74302008-12-19 Daniel Engeler <engeler@gmail.com>
7431
7432 * sysdep.c (serial_configure): Fix typo.
7433
53934c98
DN
74342008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7435
7436 * sysdep.c: Include alloca.h.
f4f634e8
DN
7437 (system_process_attributes): Add implementation for Solaris.
7438
7439 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7440
06e111a6
DN
74412008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7442
7443 Reorganize implementation of Flist_system_processes and
7444 Fsystem_process_attributes. No functional changes.
7445 * process.c: Don't #include pwd.h, grp.h and limits.h.
7446 (Flist_system_processes): Just call list_system_processes.
7447 (Fsystem_process_attributes): Just call system_process_attributes.
7448 (procfs_list_system_processes, time_from_jiffies)
7449 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7450 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7451
7452 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7453 (list_system_processes): Rename from
7454 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7455 Provide a do nothing implementation.
7456 (system_process_attributes): Rename from
7457 procfs_list_system_processes.
7458 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7459 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7460
7461 * w32.c (list_system_processes): Rename from
7462 w32_list_system_processes.
7463 (system_process_attributes): Rename from
7464 w32_system_process_attributes.
7465
7466 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7467
7468 * process.h (w32_list_system_processes)
7469 (w32_system_process_attributes): Remove.
362654a6
JB
7470 (list_system_processes, system_process_attributes):
7471 New prototypes.
06e111a6 7472
6a705b23
KH
74732008-12-19 Kenichi Handa <handa@m17n.org>
7474
7475 * xfont.c (xfont_decode_coding_xlfd): New function.
7476 (xfont_encode_coding_xlfd): New function.
7477 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7478 (xfont_list): Decode and encode XLFD by iso-8859-1.
7479 (xfont_match): Likewise.
7480 (xfont_list_family): Likewise.
7481 (xfont_open): Likewise.
7482
d66c0241 7483 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7484 names are utf-8.
7485
d66c0241 7486 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7487 names are utf-8.
7488
5a130941
JD
74892008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7490
7491 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7492 changed.
bfd20325
JD
7493 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7494 clicked on a detached tool bar button.
5a130941 7495
fd95644b
DN
74962008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7497
7498 * emacs.c (main): Print and error and exit when no data is read
7499 from the pipe.
7500
e6eee6ae
JR
75012008-12-17 Jason Rumney <jasonr@gnu.org>
7502
7503 * w32font.c (w32font_has_char): Always return -1.
7504
a35dd56b
KH
75052008-12-16 Kenichi Handa <handa@m17n.org>
7506
7507 * font.c (font_open_entity): Fix previous change.
7508
0e3635c2
DN
75092008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7510
7511 * process.c: Include <limits.h>.
7512
d4835507 75132008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7514
7515 * font.c (font_update_drivers): Fix mistake in reconstructing the
7516 driver list.
7517
75182008-12-16 Chong Yidong <cyd@stupidchicken.com>
7519
7520 * font.c (font_clear_cache): Fix format of font cache data.
7521
e2cbc401
CY
75222008-12-15 Chong Yidong <cyd@stupidchicken.com>
7523
7524 * xftfont.c (xftfont_open): Free Xft font pattern if
7525 XftFontOpenPattern fails.
7526
7527 * xterm.c (x_free_frame_resources): Remove extraneous call to
7528 free_frame_faces.
7529
b131d535
CY
75302008-12-13 Chong Yidong <cyd@stupidchicken.com>
7531
7532 * xterm.c (x_delete_display): Move xim_close_dpy call to
7533 x_delete_terminal.
7534 (x_delete_terminal): Call xim_close_dpy.
7535
e6df5336
JR
75362008-12-13 Jason Rumney <jasonr@gnu.org>
7537
7538 * w32font.c (intern_font_name): New function.
7539 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7540 (w32font_open_internal, Fx_select_font): Decode font name.
7541 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7542
7543 * w32font.h (intern_font_name): Declare new function.
7544
7545 * w32uniscribe.c (add_opentype_font_name_to_list):
7546 Use intern_font_name.
7547
20d68145
CY
75482008-12-13 Chong Yidong <cyd@stupidchicken.com>
7549
9f2554de
CY
7550 * frame.c (Fdelete_frame): Call free_font_driver_list.
7551
3d9bec9a
CY
7552 * font.c (free_font_driver_list): Implement missing function.
7553
20d68145
CY
7554 * w32term.c (w32_term_init): Don't initialize the image cache
7555 here; it will be done in init_frame_faces.
7556
7557 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7558 (struct x_display_info): Remove unused member null_pixel. New
7559 member xim_callback_data.
7560
7561 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7562 (xim_initialize): Save pointer to callback function data.
7563 (xim_close_dpy): Free callback function data. Call XCloseIM,
7564 reverting 2008-11-04 change by David Smith.
7565 (x_term_init): Don't initialize the image cache here; it will be
7566 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7567 (x_delete_display): Free x_dnd_atoms member.
7568
96f9306b
KH
75692008-12-13 Kenichi Handa <handa@m17n.org>
7570
6dec9044
JB
7571 * font.c (font_rescale_ratio): Moved from xfaces.c.
7572 Argument type changed. Handle a font-spec too.
96f9306b 7573 (font_score): Check Vface_font_rescale_alist.
6dec9044 7574 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7575
7576 * xfaces.c (font_rescale_ratio): Moved to font.c.
7577
8d5b4964
CY
75782008-12-13 Chong Yidong <cyd@stupidchicken.com>
7579
7580 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7581
e6df5336
JR
75822008-12-12 Jason Rumney <jasonr@gnu.org>
7583
7584 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7585 Vwindow_system_version to the real w32 major version.
7586
97c6058a
DN
75872008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7588
7589 * term.c (init_tty): Move setting the terminal name before the
7590 potential user: maybe_fatal.
7591
ec4e88d7
CY
75922008-12-11 Chong Yidong <cyd@stupidchicken.com>
7593
d4835507
JB
7594 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7595 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7596
b4233ec9
JR
75972008-12-11 Jason Rumney <jasonr@gnu.org>
7598
8ec71e23 7599 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7600 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7601
b4233ec9 7602 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7603 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7604
011a0143
JB
76052008-12-11 Juanma Barranquero <lekktu@gmail.com>
7606
7607 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7608
3c309f34
JB
76092008-12-11 Juanma Barranquero <lekktu@gmail.com>
7610
7611 * process.c (Fsystem_process_attributes, syms_of_process):
7612 Fix typo in name of Ssystem_process_attributes.
7613 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7614
fedc6ab5
JB
76152008-12-11 Juanma Barranquero <lekktu@gmail.com>
7616
7617 * syntax.c (Fmodify_syntax_entry): Doc fix.
7618
ba3de0e8
JB
76192008-12-10 Juanma Barranquero <lekktu@gmail.com>
7620
7621 * font.c (Ffont_spec): Move usage to end of docstring.
7622
174f1c74
JR
76232008-12-10 Jason Rumney <jasonr@gnu.org>
7624
7625 * w32font.c (Qcham): New symbol.
7626 (font_supported_scripts): Add cham, and comments for other new
7627 scripts in bitfield from OpenType spec.
9d32f818
JR
7628 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7629 contain characters beyond the bmp.
174f1c74 7630
7b649478
KH
76312008-12-10 Kenichi Handa <handa@m17n.org>
7632
7633 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7634 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7635 Qunicode_sip.
7636
2133e2d1
JB
76372008-12-10 Juanma Barranquero <lekktu@gmail.com>
7638
7639 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7640 (Fcoding_system_put): Use QCdefault_char.
7641 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7642
9af886ee
CY
76432008-12-09 Chong Yidong <cyd@stupidchicken.com>
7644
74d819eb
CY
7645 * xftfont.c (syms_of_xftfont): Fix typo.
7646
4ccfa1c0 7647 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7648
7c19d3ae
DN
76492008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7650
7651 * emacs.c (main): Close daemon_pipe on exec.
7652
567826bb
CY
76532008-12-08 Chong Yidong <cyd@stupidchicken.com>
7654
7655 * termchar.h (struct tty): New members termcap_term_buffer and
7656 termcap_strings_buffer.
7657
7658 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7659 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7660 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7661 All callers changed.
7662 (init_tty): Store termcap data and string buffers in new struct
7663 tty members termcap_term_buffer and termcap_strings_buffer.
7664 (delete_tty): Free them.
4ccfa1c0 7665 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7666
aa96c42b
SZ
76672008-12-07 Seiji Zenitani <zenitani@mac.com>
7668
7669 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7670 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7671
b7e1d896
CY
76722008-12-06 Chong Yidong <cyd@stupidchicken.com>
7673
7674 * coding.c (make_conversion_work_buffer): Disable buffer
7675 modification hooks in the work buffer.
7676
b5ec91a5
EZ
76772008-12-05 Eli Zaretskii <eliz@gnu.org>
7678
7679 * process.c (procfs_system_process_attributes): If `nread' has a
7680 negative value, assign zero to it.
7681
a5d2a52b
CY
76822008-12-05 Chong Yidong <cyd@stupidchicken.com>
7683
68c5540b 7684 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7685
7bf1bb21
KH
76862008-12-05 Kenichi Handa <handa@m17n.org>
7687
7688 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7689 second character is a combining character.
7690
2fdc7d00
EZ
76912008-12-05 Eli Zaretskii <eliz@gnu.org>
7692
7693 * process.c (procfs_system_process_attributes): Don't use cmd,
7694 cmdsize, and q without initializing them first.
7695
bf6bfba8
JR
76962008-12-04 Jason Rumney <jasonr@gnu.org>
7697
7698 * w32font.c (w32font_draw): Initialize orig_clip before getting
7699 it, and delete it when finished.
7700
a3b1a468
DN
77012008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7702
7703 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7704 case when running as a daemon before detaching.
7705
8b8be8eb
JB
77062008-12-03 Juanma Barranquero <lekktu@gmail.com>
7707
805f2638 7708 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7709
b1bde622
KH
77102008-12-03 Kenichi Handa <handa@m17n.org>
7711
e500c47d
KH
7712 * font.c (font_at): Set `multibyte' at first.
7713
ca516334
KH
7714 * coding.c (decode_coding_charset): Check type of an element of
7715 vector VALIDS.
7bf1bb21 7716 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7717
4ccfa1c0 7718 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7719 (font_for_char): Likewise.
7720
1e5ecd37
CY
77212008-12-03 Chong Yidong <cyd@stupidchicken.com>
7722
d5b01609 7723 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7724 (font_update_lface): Handle fonts with corrupted size specs,
7725 i.e. non-int and non-float.
d5b01609 7726
11e3a6e4 7727 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7728 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7729 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7730
ab06788b
CY
7731 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7732
1e5ecd37 7733 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7734 underline_minimum_offset for underline position.
1e5ecd37 7735
63c125ab
DN
77362008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7737
7738 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7739
7740 * character.c (c_string_width): Specify the type for LEN.
7741
3a8406e1
KH
77422008-12-03 Kenichi Handa <handa@m17n.org>
7743
4ccfa1c0 7744 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7745 (decode_coding_utf_8): Likewise.
4ccfa1c0 7746 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7747 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7748
651df7d9
CY
77492008-12-02 Chong Yidong <cyd@stupidchicken.com>
7750
7751 * keyboard.c (make_lispy_position): Only use PT if the selected
7752 window is current.
7753
1f625c6c
AS
77542008-12-02 Andreas Schwab <schwab@suse.de>
7755
f7741ce9
AS
7756 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7757
1f625c6c
AS
7758 * doprnt.c (doprnt1): Fix size of charbuf.
7759
92bc2678
CY
77602008-12-02 Chong Yidong <cyd@stupidchicken.com>
7761
7762 * keyboard.c (timer_check): Revert last change.
7763
93b9e8cc
JB
77642008-12-02 Juanma Barranquero <lekktu@gmail.com>
7765
7766 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7767
fd7a37d5
JB
77682008-12-01 Juanma Barranquero <lekktu@gmail.com>
7769
7770 * makefile.w32-in: Update dependencies.
7771 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7772
c115043b
AS
77732008-12-01 Andreas Schwab <schwab@suse.de>
7774
7775 * font.c (register_font_driver): Use xmalloc.
7776 (font_put_frame_data): Likewise.
7777
f5668d2a
CY
77782008-12-01 Chong Yidong <cyd@stupidchicken.com>
7779
860d96be
CY
7780 * xfaces.c (realize_x_face): Make abort condition clearer.
7781
f5668d2a
CY
7782 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7783
379c17e7
CY
77842008-11-30 Chong Yidong <cyd@stupidchicken.com>
7785
7786 * keyboard.c (timer_check): After a timer runs, ensure that the
7787 selected window's buffer is current.
7788
35f36d65
JB
77892008-11-30 Juanma Barranquero <lekktu@gmail.com>
7790
f952c61c
JB
7791 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7792 It was accidentally restored by the Unicode merge.
7793
35f36d65
JB
7794 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7795
b23077df
JB
77962008-11-29 Juanma Barranquero <lekktu@gmail.com>
7797
7798 * w32proc.c: Include "coding.h".
7799 (Fw32_short_file_name): Encode filename passed to Windows API.
7800 (Fw32_long_file_name): Encode filename passed to Windows API and
7801 decode back the result. (Bug#1433)
7802
b8ebe9dd
KH
78032008-11-29 Kenichi Handa <handa@m17n.org>
7804
8cc53f96
KH
7805 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7806 not before accessing it.
7807
b8ebe9dd
KH
7808 * charset.c (Fdefine_charset_internal): After calculating
7809 min_char, max_char, and fastmap, copy the charset structure again.
7810 (encode_char): Fix the previous change.
7811
59bc82c0
SZ
78122008-11-28 Seiji Zenitani <zenitani@mac.com>
7813
7814 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7815
7816 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7817
7818 * nsterm.m (x_set_frame_alpha): New function.
7819
32247e3d
EZ
78202008-11-27 Eli Zaretskii <eliz@gnu.org>
7821
7822 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7823
b003e5ff
JB
78242008-11-27 Juanma Barranquero <lekktu@gmail.com>
7825
7826 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7827 pointer to check_face_name.
7828
708550f5
KH
78292008-11-27 Kenichi Handa <handa@m17n.org>
7830
7831 * category.h (SET_CATEGORY_SET): Call set_category_set.
7832 (set_category_set): Extern it.
7833
7834 * category.c (hash_get_category_set): New function.
7835 (Fmodify_category_entry): Adjusted for the change of
7836 char_table_ref_and_range. Call hash_get_category_set to get a
7837 category set to store in the table.
7838
7839 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7840 Funify_charset.
7841
2ae37cf0 7842 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7843 (DECODE_CHAR): Check if the decoder vector is ready.
7844 (ENCODE_CHAR): Check if the encoder char-table is ready.
7845 (maybe_unify_char): Extern it.
7846
7847 * charset.c (Vchar_unified_charset_table): Delete it.
7848 (inhibit_load_charset_map): New variable.
7849 (temp_charset_work): New variable.
7850 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7851 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7852 New macros.
7853 (load_charset_map): Meaning of control_flag changed. If
7854 inhibit_load_charset_map is nonzero, setup a table in
7855 temp_charset_work.
7856 (load_charset): New argument control_flag.
7857 (map_charset_for_dump): New function.
7858 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7859 map_charset_for_dump.
7860 (Fdefine_charset_internal): If the charset method is MAP, load
7861 mapping tables by calling load_charset.
7862 (Funify_charset): Don't load a mapping table but directly set
7863 Vchar_unify_table.
7864 (maybe_unify_char): New function.
7865 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7866 Handle the case of inhibit_load_charset_map being nonzero.
7867 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7868 Handle the case of inhibit_load_charset_map being nonzero.
7869 (Fclear_charset_maps): Just free temp_charset_work.
7870 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7871 variable.
7872
7873 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7874 change of char_table_ref_and_range.
7875 (char_table_ref_and_range): Change the meaning of argument FROM
7876 and TO. Now the caller must provide initial values for *FROM
7877 and *TO.
7878
7879 * fontset.c (fontset_add): Adjusted for the change of
7880 char_table_ref_and_range.
7881 (fontset_get_font_group): Likewise.
7882 (Ffontset_info): Likewise.
7883
7884 * keymap.c (describe_vector): Adjusted for the change of
7885 char_table_ref_and_range. For char-table, put boundary between
7886 non-ASCII and 8-bit characters.
7887
7888 * print.c (print_object): For bool-vector, delete unnecessary
7889 check of ASCII_BYTE_P.
7890
9196133b
JR
78912008-11-26 Jason Rumney <jasonr@gnu.org>
7892
7893 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7894 leading in font height. (Bug#879)
9196133b 7895
9f688acf
GM
78962008-11-26 Glenn Morris <rgm@gnu.org>
7897
7898 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7899 redefinition with ifdef. (Bug#1383)
7900
90d19aff
AR
79012008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7902
7903 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7904
4ccfa1c0 79052008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7906
7907 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7908 New EmacsView methods.
7909 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7910 Fixes bug #1048,1357,1414.
7911
79122008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7913
7914 Fix bug #1362.
7915 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7916 is not an indexed color.
7917 * nsterm.m (free_indexed_color): Add argument checking.
7918 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7919
e7d5ecb3
CY
79202008-11-24 Chong Yidong <cyd@stupidchicken.com>
7921
7922 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7923 Document confirm-after-completion value for
7924 minibuffer-completion-confirm.
7925
c285743c
JR
79262008-11-24 Jason Rumney <jasonr@gnu.org>
7927
7928 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7929 warning.
7930
b0857706
JR
79312008-11-23 Jason Rumney <jasonr@gnu.org>
7932
7933 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7934 restored before returning.
7935
7936 * w32font.c (check_face_name): New function.
7937 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7938 fonts. (Bug#642)
b0857706 7939
ee50ff07
MR
79402008-11-22 Martin Rudalics <rudalics@gmx.at>
7941
7942 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7943 confirm-nonexistent-file-or-buffer in doc-string.
7944
b8ff72fa
SM
79452008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7946
7947 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7948 Fix copy/paste typo. Add checks.
7949
cee53ed4
KH
79502008-11-21 Kenichi Handa <handa@m17n.org>
7951
7952 * coding.c (detect_coding_iso_2022): Reject invalid composition
7953 sequence.
7954 (DECODE_COMPOSITION_START): If the current source is the last
7955 block, and the current composition doesn't end, regard this
7956 sequence as invalid.
7957 (decode_coding_iso_2022): Handle invalid composition sequence.
7958
f6ef1e65
MR
79592008-11-20 Martin Rudalics <rudalics@gmx.at>
7960
7961 * window.c (coordinates_in_window): Don't return
7962 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7963 line when the window is not the rightmost one. (Bug#1372)
7964
e08b1705
MR
79652008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7966
7967 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7968
ad98e89f
EZ
79692008-11-15 Eli Zaretskii <eliz@gnu.org>
7970
7971 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7972 and bright_bg if noninteractive is non-zero.
7973
fb098a4b
CY
79742008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7975
7976 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7977 x_draw_glyph_string_background.
7978
7979 * w32term.c (x_draw_glyph_string): Likewise.
7980
ce952b6e
CY
79812008-11-15 Chong Yidong <cyd@stupidchicken.com>
7982
7983 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7984 the next glyph string once past the overhang width.
7985
7986 * nsterm.m (ns_draw_glyph_string): Likewise.
7987
7988 * w32term.c (x_draw_glyph_string): Likewise.
7989
26ea7079
CY
79902008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7991
7992 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7993 double file close.
7994
1c33c906
MR
79952008-11-14 Martin Rudalics <rudalics@gmx.at>
7996
7997 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7998 dedicated status of window before attempting to display another
7999 buffer in it.
8000
8fc29035
JB
80012008-11-14 Juanma Barranquero <lekktu@gmail.com>
8002
8003 * msdos.c (Fmsdos_long_file_names):
8004 (syms_of_msdos) <dos-unsupported-char-glyph>:
8005 * dosfns.c (Fint86): Fix typos in docstrings.
8006
55fb4286
EZ
80072008-11-14 Eli Zaretskii <eliz@gnu.org>
8008
8009 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8010
3fda0315
KY
80112008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8012
8013 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8014
7e849c17
CY
80152008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8016
8017 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8018
8019 * frame.h: Negative alpha means "don't touch".
8020
8021 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8022
8023 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8024
b9fd67bd
DN
80252008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8026
8027 * hftctl.c:
8028 * chpdef.h:
8029 * acldef.h: Remove files used only for systems no longer supported.
8030
8031 * Makefile.in: Fix .o alphabetical ordering.
8032 (hftctl.o): Remove dependency, file removed.
8033 (keymap.o, print.o): Depend on charset.h.
8034
d5998e03
KH
80352008-11-10 Kenichi Handa <handa@m17n.org>
8036
2ae37cf0 8037 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8038
be70e183
CY
80392008-11-08 Chong Yidong <cyd@stupidchicken.com>
8040
8041 * dired.c (file_name_completion): If completion_ignore_case is
8042 enabled, ignore case when checking completion-regexp-list.
8043
7cf94eac
EZ
80442008-11-08 Eli Zaretskii <eliz@gnu.org>
8045
8046 * vm-limit.c (get_lim_data): Fix last change.
8047
ee107a89
KH
80482008-11-08 Kenichi Handa <handa@m17n.org>
8049
8050 * character.c (Fget_byte): New function.
8051 (syms_of_character): Defsubr Fget_byte.
8052
5fd15622
CY
80532008-11-07 Chong Yidong <cyd@stupidchicken.com>
8054
8055 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8056 cursor position is valid after scrolling.
8057
13d62fad
JB
80582008-11-06 Juanma Barranquero <lekktu@gmail.com>
8059
8060 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8061
a1dd2936
GM
80622008-11-06 Glenn Morris <rgm@gnu.org>
8063
8064 * xterm.c (handle_one_xevent): Don't let popup menus cause
8065 mouse-autoselect-window related window switching. (Bug#1261)
8066
860cd236
CY
80672008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8068
8069 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8070
653a3150
AS
80712008-11-04 Andreas Schwab <schwab@suse.de>
8072
8073 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8074
870f5cac
CY
80752008-11-03 Chong Yidong <cyd@stupidchicken.com>
8076
8077 * xfns.c (Fx_wm_set_size_hint): New function.
8078
1e02f3cb
MR
80792008-11-03 Martin Rudalics <rudalics@gmx.at>
8080
8081 * textprop.c (Fprevious_single_char_property_change): Return 0
8082 when there's no change in a string. (Bug#1301)
8083
e630dfc6
MR
80842008-11-02 Martin Rudalics <rudalics@gmx.at>
8085
8086 * frame.c (do_switch_frame): New argument NORECORD passed to
8087 Fselect_window.
8088 (Fselect_frame): New argument NORECORD passed to
8089 do_switch_frame.
8090 (Fset_frame_selected_window): New argument NORECORD passed to
8091 Fselect_frame.
8092 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8093 in call of do_switch_frame.
8094 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8095 Handle NORECORD argument in call of Fselect_frame.
8096 * lisp.h (do_switch_frame, Fselect_frame)
8097 (Fset_frame_selected_window): Adjust declarations.
8098 * window.c (select_frame_norecord): New function.
8099 (run_window_configuration_change_hook): Use it and call
8100 Fselect_frame with NORECORD set.
8101 (Fselect_window): Pass NORECORD to Fselect_frame.
8102 (Fset_window_configuration): Handle NORECORD argument in call of
8103 do_switch_frame.
8104 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8105 Fset_frame_selected_window.
8106 * keyboard.c (command_loop_1): Handle NORECORD in call of
8107 Fselect_frame (currently ifdefd).
8108
9020b223
GM
81092008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8110
8111 * emacs.c (USAGE2): Untabify.
8112
793ffee8
SM
81132008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8114
8115 * composite.c (fill_gstring_header): Fix copy/paste typo.
8116
ab6d1131
MR
81172008-10-31 Martin Rudalics <rudalics@gmx.at>
8118
8119 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8120 (Fother_window): Rename argument and rewrite doc-string.
8121 (select_window_norecord): Fix return value. (Bug#1276)
8122
601a9cf1
JB
81232008-10-30 Juanma Barranquero <lekktu@gmail.com>
8124
8125 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8126 new frames overriding foreground for tooltips. Based on similar patch
8127 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8128
813b0652
CY
81292008-10-29 Chong Yidong <cyd@stupidchicken.com>
8130
8131 * emacs.c (Fdaemon_initialized): Initialize nfd.
8132
4414f58f
MR
81332008-10-29 Martin Rudalics <rudalics@gmx.at>
8134
8135 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8136 (Fwindow_text_height): Clarify doc-strings.
8137 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8138 doc-string of window-scroll-functions.
8139
ecdcaa09
RS
81402008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8141
8142 * category.c (syms_of_category): Fix typo in docstring.
8143
23fe745a
JB
81442008-10-28 Juanma Barranquero <lekktu@gmail.com>
8145
8146 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8147 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8148 Fix typos in docstrings.
8149
ff808935
DN
81502008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8151
8152 * emacs.c (daemon_pipe): Make non-static.
8153 (IS_DAEMON): Move definition ...
8154 * lisp.h (IS_DAEMON): ... here.
8155 (daemon_pipe): Declare.
8156 (is_daemon): Remove.
8157 * dispnew.c (init_display): Use IS_DAEMON.
8158
fc012771
SM
81592008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8160
8161 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8162 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8163
8164 * emacs.c (is_daemon): Remove.
8165 (main): Don't set is_daemon.
8166 (IS_DAEMON): New macro.
8167 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8168 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8169 parent exits.
8170 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8171
d8bdbe6f
CY
81722008-10-27 Chong Yidong <cyd@stupidchicken.com>
8173
d1a072bf
CY
8174 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8175 over-sized glyph, draw it with the default glyph width.
8176
e2e325aa
CY
8177 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8178 glyph, draw it with the default glyph width.
8179
8180 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8181 glyph, draw it with the default glyph width.
8182
d8bdbe6f
CY
8183 * xdisp.c (try_scrolling): When computing the distance from the
8184 scroll margin to PT, try moving some distance past the window
8185 bottom before giving up.
8186
7bfac547
MR
81872008-10-27 Martin Rudalics <rudalics@gmx.at>
8188
8189 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8190 (Fset_window_buffer): Explain in doc-string that a window can be
8191 "strongly" dedicated to its buffer.
8192
4ff029f6
DN
81932008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8194
8195 * emacs.c (daemon_name): New variable.
8196 (main): Deal with --daemon=SERVER_NAME.
8197 (Fdaemonp): Return a name if one was passed to --daemon.
8198
5790ef40
DN
81992008-10-26 Romain Francoise <romain@orebokech.com>
8200
f9bd0df9 8201 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8202 (main): Create a pipe before forking, make the parent exit only after
8203 the child has closed its end of the pipe. Move closing the
8204 descriptors ...
8205 (Fdaemon_initialized): ... here. New function.
8206
f5385255
SM
82072008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8208
4d632321
SM
8209 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8210 the previous unoptimized table.
8211
f5385255
SM
8212 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8213 the distinction between non-nil and non-t value of `dedicated'.
8214
6c56a0f3
CY
82152008-10-25 Chong Yidong <cyd@stupidchicken.com>
8216
8217 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8218 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8219
fec89261
MR
82202008-10-25 Martin Rudalics <rudalics@gmx.at>
8221
8222 * window.c (Fget_buffer_window, Fdelete_windows_on)
8223 (Freplace_buffer_in_windows): Make buffer argument optional and
8224 rename to buffer_or_name.
8225
34fcddd0
CY
82262008-10-24 Chong Yidong <cyd@stupidchicken.com>
8227
f5385255
SM
8228 * xdisp.c (handle_single_display_spec, handle_display_prop):
8229 Undo 2005-05-16 change.
34fcddd0
CY
8230 (handle_stop): Pop iterator if it's loaded with an empty string.
8231 (get_overlay_strings_1): Don't save iterator if it's loaded with
8232 an empty string (bug#1201).
8233
064766f2
KH
82342008-10-24 Kenichi Handa <handa@m17n.org>
8235
8236 * ftfont.c (ftfont_otf_features): Fix previous change.
8237 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8238 calling ftfont_otf_features.
8239
f9bd0df9 82402008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8241
8242 * font.c (font_match_p): Fix for the case that a vector of
8243 characters is in script-representative-chars.
8244
1dae9197
MA
82452008-10-24 Michael Albinus <michael.albinus@gmx.de>
8246
8247 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8248 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8249 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8250 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8251 macro. (Bug#1186)
1dae9197 8252
f9bd0df9 82532008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8254
8255 * s/sol2-10.h: New file.
8256
878a4584
JB
82572008-10-23 Juanma Barranquero <lekktu@gmail.com>
8258
8259 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8260 poor beast has survived 9+ years and the jump from xterm.c!).
8261
cd265ca6
MR
82622008-10-23 Martin Rudalics <rudalics@gmx.at>
8263
8264 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8265 Reword doc-string.
f5385255 8266 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8267
472a4dc9
JB
82682008-10-23 Juanma Barranquero <lekktu@gmail.com>
8269
8270 * character.c (syms_of_character) <script-representative-chars>:
8271 <unicode-category-table>: Doc fixes.
8272
159bd5a2
NF
82732008-10-23 Noah Friedman <friedman@splode.com>
8274
8275 * coding.c (make_conversion_work_buffer): Check that
8276 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8277 Fget_buffer_create.
8278
49f9c344
KH
82792008-10-23 Kenichi Handa <handa@m17n.org>
8280
8281 * font.c (font_add_log): Check the values of extra properties.
8282
12bb3111
MR
82832008-10-22 Martin Rudalics <rudalics@gmx.at>
8284
8285 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8286 Reword doc-string.
8287 (Fset_window_parameter): Use NILP.
8288 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8289 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8290
bbeb4e99
JB
82912008-10-22 Juanma Barranquero <lekktu@gmail.com>
8292
8293 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8294
82952008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8296
8297 * nsfns.m (ns_appkit_version): New function.
8298 (x-server-version): Use it.
8299 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8300 (x-server-vendor): Don't check_ns().
8301
8302 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8303
a9b555d3
JB
83042008-10-22 Juanma Barranquero <lekktu@gmail.com>
8305
8306 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8307 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8308
4626499f
KH
83092008-10-22 Kenichi Handa <handa@m17n.org>
8310
e3681952
KH
8311 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8312 scripts.
8313
4626499f
KH
8314 * category.c (word_boundary_p): Check scripts instead of charset.
8315 Handle nil value in word-separating-categories and
8316 word-combining-categories.
8317 (syms_of_category): Fix docstrings of word-separating-categories
8318 and word-combining-categories.
8319
1560f91a
EZ
83202008-10-21 Eli Zaretskii <eliz@gnu.org>
8321
8322 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8323 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8324
f4668441
MR
83252008-10-21 Martin Rudalics <rudalics@gmx.at>
8326
8327 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8328 Rename arg "buffer" to "buffer_or_name".
8329 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8330 it optional.
8331 (no_switch_window): Remove since the return value is not used.
a9b555d3 8332 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8333 Consider window as dedicated when Fwindow_dedicated_p returns a
8334 non-nil value.
8335 * lisp.h: Remove prototype for no_switch_window.
8336
fd75ddb2
JD
83372008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8338
8339 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8340 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8341
07295713
KH
83422008-10-21 Kenichi Handa <handa@m17n.org>
8343
8344 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8345 check Vlatin_extra_code_table.
8346
712adc82
EZ
83472008-10-20 Eli Zaretskii <eliz@gnu.org>
8348
8349 * fileio.c (Fset_file_modes): Doc fix.
8350
f549eb0b
MA
83512008-10-19 Michael Albinus <michael.albinus@gmx.de>
8352
8353 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8354 in arrays.
8355
aac0c6e3
MR
83562008-10-19 Martin Rudalics <rudalics@gmx.at>
8357
8358 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8359 Mention kill-buffer in doc-string.
8360 (Fset_window_buffer): Reinsert tem check removed in last commit.
8361 (Fenlarge_window, Fshrink_window): Have argument names and
8362 doc-string follow Elisp manual more closely.
8363
83642008-10-18 Eli Zaretskii <eliz@gnu.org>
8365
8366 * fileio.c (Fset_file_modes): Doc fix.
8367
83682008-10-18 Martin Rudalics <rudalics@gmx.at>
8369
8370 * window.c (Fwindow_width, Fset_window_start)
8371 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8372 (Fdelete_windows_on, Freplace_buffer_in_windows):
8373 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8374 (Fwindow_dedicated_p): Make window argument optional.
8375 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8376 (Fset_window_buffer): Respect any non-nil dedicated value for
8377 window. Rename "buffer" argument to "buffer_or_name".
8378
83792008-10-18 Ulrich Mueller <ulm@gentoo.org>
8380
8381 * m/sh3.h: New file, machine description for SuperH.
8382
83832008-10-17 Martin Rudalics <rudalics@gmx.at>
8384
8385 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8386
83872008-10-17 Kenichi Handa <handa@m17n.org>
8388
8389 * ftfont.c (ftfont_otf_features): Fix indexing
8390 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8391
83922008-10-16 Magnus Henoch <mange@freemail.hu>
8393
8394 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8395 (Fdbus_call_method_asynchronously): Ditto.
8396 This change makes C-h f display the argument list.
8397
83982008-10-16 Chong Yidong <cyd@stupidchicken.com>
8399
8400 * fileio.c (Fexpand_file_name): Doc fix.
8401
8402 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8403 of :foreground and :background equivalent to unspecified (20.x
8404 compatibility).
8405
84062008-10-15 Eli Zaretskii <eliz@gnu.org>
8407
8408 * buffer.c (syms_of_buffer): Doc fix.
8409
84102008-10-14 Kenichi Handa <handa@m17n.org>
8411
8412 * font.c (font_clear_prop): When clearing font width, clear the
8413 average width field too.
8414
84152008-10-12 Andreas Schwab <schwab@suse.de>
8416
8417 * ftfont.c (ftfont_shape_by_flt): Make static.
8418 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8419
8420 * font.c: Don't include <m17n-flt.h>.
8421
84222008-10-10 Eli Zaretskii <eliz@gnu.org>
8423
8424 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8425
84262008-10-09 Eli Zaretskii <eliz@gnu.org>
8427
8428 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8429 away code.
8430
84312008-10-09 Chong Yidong <cyd@stupidchicken.com>
8432
8433 * dispnew.c (update_text_area): Avoid looping due to large glyph
8434 overhangs (bug#1070).
8435
84362008-10-09 Kenichi Handa <handa@m17n.org>
8437
8438 * fontset.c (face_for_char): If face->fontset is negative, just
8439 return ascii_face.
8440
f5385255
SM
8441 * font.c (font_delete_unmatched): Fix previous change.
8442 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8443
84442008-10-09 Martin Rudalics <rudalics@gmx.at>
8445
8446 * frame.c (Fraise_frame): On text-only terminals select frame in
8447 order to make it visible. (Bug#1061)
8448
84492008-10-08 Chong Yidong <cyd@stupidchicken.com>
8450
8451 * fontset.c (fontset_find_font): Check frame validity.
8452
84532008-10-07 Chong Yidong <cyd@stupidchicken.com>
8454
a9b555d3 8455 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8456 (xg_display_close): Allow Emacs to close all displays (bug#985).
8457
84582008-10-06 Andreas Schwab <schwab@suse.de>
8459
f5385255 8460 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8461
84622008-10-06 Chong Yidong <cyd@stupidchicken.com>
8463
f5385255 8464 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8465
a9b555d3 8466 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8467
8468 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8469 during initialization.
8470
84712008-10-04 Eli Zaretskii <eliz@gnu.org>
8472
8473 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8474 whole thing on MSDOS frames as well as on a TTY.
8475
8476 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8477 well as for TTY.
8478 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8479 well as on a TTY.
8480
8481 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8482 as well as for TTY.
8483
8484 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8485
8486 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8487 MSDOS frames as well.
8488
84892008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8490
8491 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8492 correct arguments.
b71ac3dd 8493 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8494
84952008-10-03 Glenn Morris <rgm@gnu.org>
8496
8497 * emacs.c (USAGE1): Add --daemon.
8498
84992008-10-02 Eli Zaretskii <eliz@gnu.org>
8500
8501 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8502 100, so it's in percents as advertised.
8503
85042008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8505
8506 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8507 (ns_output.current_cursor, ns_output.desired_cursor)
8508 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8509 (FRAME_NEW_CURSOR_COLOR): Remove.
8510
8511 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8512 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8513 enumeration (HOLLOW_BOX_CURSOR, etc.).
8514
8515 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8516 (draw_window_cursor): Simplify code.
f5385255
SM
8517 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8518 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8519 updates manually.
a9b555d3
JB
8520 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8521 Use core Emacs cursor types.
aac0c6e3 8522
b8ff72fa 8523 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8524
85252008-10-02 Martin Rudalics <rudalics@gmx.at>
8526
8527 * process.c (Faccept_process_output): Fix doc-string.
8528
85292008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8530
8531 * gmalloc.c (__sbrk): Also define for uClibc.
8532
8533 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8534 for uClibc.
8535
85362008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8537
8538 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8539 styles.
8540 (nsfont_open): Reenable the cache.
8541
85422008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8543
8544 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8545 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8546
85472008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8548
8549 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8550 a suspended terminal.
8551
85522008-09-30 Michael Albinus <michael.albinus@gmx.de>
8553
8554 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8555
85562008-09-30 Eli Zaretskii <eliz@gnu.org>
8557
8558 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8559
85602008-09-30 Chong Yidong <cyd@stupidchicken.com>
8561
8562 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8563 in a continued line coincides with a line beginning.
8564
85652008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8566
8567 * nsfont.m (nsfont_trait_distance): Fix bug.
8568 (nsfont_list): Return a list rather than a vector (syncs with Handa
8569 changes of 2008-05-14).
8570 (nsfont_open): Improve logging.
8571
85722008-09-29 Andreas Schwab <schwab@suse.de>
8573
8574 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8575
85762008-09-28 Martin Rudalics <rudalics@gmx.at>
8577
8578 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8579 name as char-resolve-modifiers.
8580 Reported by: Markus Triska <markus.triska@gmx.at>
8581
85822008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8583
8584 * dispnew.c (init_display): Return earlier when running as a daemon.
8585
85862008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8587
8588 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8589
85902008-09-27 Eli Zaretskii <eliz@gnu.org>
8591
8592 * composite.c (Fcomposition_get_gstring)
8593 (Fcompose_region_internal, Fcompose_string_internal)
8594 (Ffind_composition_internal): Doc fix.
8595 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8596 (syms_of_composite) <auto-composition-function>: Doc fix.
8597 (syms_of_composite) <composition-function-table>: Doc fix.
8598
85992008-09-25 Chong Yidong <cyd@stupidchicken.com>
8600
8601 * search.c (wordify): New argument for lax word-ends.
8602 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8603
86042008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8605
8606 * lisp.h (is_daemon): Declare.
8607 * dispnew.c (init_display): Do not try to initialize the terminal
8608 when running as a daemon.
8609
86102008-09-22 Chong Yidong <cyd@stupidchicken.com>
8611
8612 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8613 x_display_pixel_height.
8614
86152008-09-22 Martin Rudalics <rudalics@gmx.at>
8616
8617 * undo.c (record_point): Don't call Fundo_boundary for first
8618 change. (Bug#731)
8619
86202008-09-22 Juanma Barranquero <lekktu@gmail.com>
8621
8622 * emacs.c (Fdaemonp): Doc fix.
8623
86242008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8625
8626 * emacs.c (main): Place #ifdef in the proper place.
8627
86282008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8629
8630 * emacs.c (standard_args): Add --daemon.
8631 (main): Disconnect from the terminal when --daemon is passed.
8632 (is_daemon): New variable.
8633 (Fdaemonp): New function.
8634 (syms_of_emacs): Defsubr it.
8635
86362008-09-20 Chong Yidong <cyd@stupidchicken.com>
8637
8638 * xdisp.c (get_next_display_element): Handle string display
8639 correctly when checking for the end of a box run.
8640
86412008-09-20 Glenn Morris <rgm@gnu.org>
8642
8643 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8644 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8645 (Frename_file): Avoid copying to trash if a rename involves
8646 a delete. (Bug#964).
8647
86482008-09-20 Eli Zaretskii <eliz@gnu.org>
8649
8650 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8651 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8652 frames as well as termcap frames.
8653 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8654 get_named_tty.
8655
86562008-09-19 Eli Zaretskii <eliz@gnu.org>
8657
8658 * process.c (procfs_system_process_attributes): Fix cmdline in
8659 case /proc/PID/cmdline is empty.
8660
8661 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8662 x_display_pixel_height.
8663
86642008-09-19 Juanma Barranquero <lekktu@gmail.com>
8665
8666 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8667
8668 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8669 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8670
86712008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8672
8673 * dispextern.h (struct it): Move line_wrap away from the middle of
8674 bitfields. Move voffset in struct iterator_stack_entry after the
8675 bitfields. Move tab_width near after another short.
8676
86772008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8678
8679 * frame.h (struct frame): Move alpha from the middle of bitfields.
8680
8681 * window.h (struct window): Move frozen_window_start_p after the
8682 rest of the bitfields to reduce padding.
8683
86842008-09-18 Chong Yidong <cyd@stupidchicken.com>
8685
8686 * xterm.h (x_display_info): Remove `height' and `width' members.
8687
8688 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8689
8690 * w32term.h (w32_display_info): Remove `height', `width',
8691 `height_in', and `width_in' members.
8692
b8ff72fa
SM
8693 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8694 New functions.
aac0c6e3
MR
8695 (x_calc_absolute_position): Use them.
8696 (x_term_init): Omit removed `height' and `width' members.
8697
b8ff72fa
SM
8698 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8699 New functions.
aac0c6e3
MR
8700 (w32_read_socket, x_calc_absolute_position): Use them.
8701 (w32_initialize_display_info, w32_term_init): Omit removed members
8702 of w32_display_info.
8703
b8ff72fa
SM
8704 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8705 New functions.
8706 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8707
b8ff72fa
SM
8708 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8709 New functions.
aac0c6e3
MR
8710 (x_calc_absolute_position): Use them.
8711 (x_term_init): Omit removed `height' and `width' members.
8712
8713 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8714 (compute_tip_xy):
8715 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8716 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8717 x_display_pixel_width.
8718
87192008-09-18 Kenichi Handa <handa@m17n.org>
8720
8721 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8722 (composition_compute_stop_pos): Fix handling of static composition.
8723 (Fcomposition_get_gstring): Check FROM and TO at first.
8724
87252008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8726
46e722a9 8727 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8728 mixup (YAILOM).
8729
87302008-09-17 Chong Yidong <cyd@stupidchicken.com>
8731
8732 * indent.c (Fvertical_motion): Use position reported by iterator
8733 instead of PT for determining screen motion (bug#943).
8734
87352008-09-17 Romain Francoise <romain@orebokech.com>
8736
8737 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8738
87392008-09-17 Kenichi Handa <handa@m17n.org>
8740
8741 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8742
8743 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8744 if necessary.
8745
87462008-09-16 Kenichi Handa <handa@m17n.org>
8747
8748 * coding.c (make_conversion_work_buffer): Avoid calling
8749 Fget_buffer_create if it is not necessary.
8750
87512008-09-15 Martin Rudalics <rudalics@gmx.at>
8752
8753 * window.c (Fselect_window): Don't update window_select_count and
8754 use_time when norecord is not nil.
8755
87562008-09-14 Kenichi Handa <handa@m17n.org>
8757
8758 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8759 specpdl_ptr.
8760
87612008-09-12 Kenichi Handa <handa@m17n.org>
8762
8763 * indent.c (scan_for_column): Don't handle automatic composition
8764 if the current buffer is not associated with a window.
8765
8766 * composite.c (composition_reseat_it): If the current buffer is
8767 not associated with a window, ignore the automatic composition.
8768 (find_automatic_composition): Likewise.
8769
87702008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8771
8772 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8773 (Fgpm_mouse_stop): Use it.
8774 * termhooks.h (close_gpm): Declare.
8775 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8776 connection if Gpm_GetEvent fails.
8777
8778 * window.c (set_window_buffer): Always preserve current-buffer.
8779
87802008-09-12 Glenn Morris <rgm@gnu.org>
8781
8782 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8783
87842008-09-11 Glenn Morris <rgm@gnu.org>
8785
8786 * charset.c (charset-map-path): Doc fix.
8787
87882008-09-10 Kenichi Handa <handa@m17n.org>
8789
8790 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8791
8792 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8793 compose a grapheme cluster with the preceding base glyph.
8794
8795 * composite.c (composition_compute_stop_pos): Fix previous change.
8796 Reset cmp_it->id to -1 at first.
8797
87982008-09-10 Glenn Morris <rgm@gnu.org>
8799
8800 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8801
88022008-09-09 Chong Yidong <cyd@stupidchicken.com>
8803
8804 * keyboard.c (read_key_sequence): Reapply translation maps when
8805 switching keyboards.
8806
88072008-09-09 Kenichi Handa <handa@m17n.org>
8808
8809 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8810 characters.
8811
8812 * composite.c (FORWARD_CHAR): Fix calculation
8813 of (POSITION).pos_byte.
8814 (composition_compute_stop_pos): Limit the search of composition to
8815 at most 500 characters ahead. If we reach the limit or find a
8816 newline, set cmp_it->ch to -2 and return 0.
8817 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8818
88192008-09-08 Kenichi Handa <handa@m17n.org>
8820
8821 * indent.c (Fvertical_motion): Be sure to set
8822 it_overshoot_expected if it.cmp_it.id is non-negative.
8823
88242008-09-07 Andreas Schwab <schwab@suse.de>
8825
8826 * callproc.c (Fcall_process): Don't hold references to string data
8827 across garbage collection. Move initialisation of new_argv down
8828 to avoid compiler bug.
8829
88302008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8831
8832 * process.c (Fsystem_process_attributes): Doc fix.
8833
88342008-09-07 Chong Yidong <cyd@stupidchicken.com>
8835
8836 * callproc.c (Fcall_process): Canonicalize current directory name.
8837
8838 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8839 iterator advances to the next line if the current line ends in a
8840 continued tab.
8841
88422008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8843
8844 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8845 member to point to cmp_from.
8846
8847 * xdisp.c: Doc fix for references to gidx data member.
8848
88492008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8850
8851 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8852
88532008-09-07 Kenichi Handa <handa@m17n.org>
8854
8855 * composite.c (FORWARD_CHAR): Check STOP after
8856 incrementing (POSITION).pos.
8857
88582008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8859
8860 * process.c (Fsystem_process_attributes): Doc fix.
8861
88622008-09-06 Chong Yidong <cyd@stupidchicken.com>
8863
8864 * keyboard.c (Ftop_level): Doc fix.
8865
88662008-09-06 Eli Zaretskii <eliz@gnu.org>
8867
8868 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8869 minibuffer, don't let lower part of menu invade the echo area.
8870
8871 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8872 "char *q" to access menu text and advance through it. Revert the
8873 change that displayed ">" instead of ASCII character 0x10.
8874
88752008-09-05 Eli Zaretskii <eliz@gnu.org>
8876
8877 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8878 toggle boxes and radio buttons on MS-DOS as well.
8879
88802008-09-05 Kenichi Handa <handa@m17n.org>
8881
8882 * composite.c (autocmp_chars): Check lookback count.
8883 (composition_compute_stop_pos): Set cmp_it->lookback.
8884 (composition_reseat_it): Check lookback count.
8885 (struct position_record): New struct.
8886 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8887 (find_automatic_composition): New function.
8888 (composition_adjust_point): Use find_automatic_composition.
8889
8890 * dispextern.h (struct composition_it): New member lookback.
8891
88922008-09-02 Chong Yidong <cyd@stupidchicken.com>
8893
8894 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8895 if moving by a single line.
8896
88972008-09-02 Andreas Schwab <schwab@suse.de>
8898
8899 * xterm.c (x_delete_display): Fix merge error.
8900
8901 * fileio.c (Fexpand_file_name): Remove unused variables.
8902
89032008-09-02 Eli Zaretskii <eliz@gnu.org>
8904
8905 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8906 storage on all platforms, not just on DOS_NT.
8907
89082008-09-02 Jason Rumney <jasonr@gnu.org>
8909
b8ff72fa
SM
8910 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8911 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8912
89132008-09-01 Chong Yidong <cyd@stupidchicken.com>
8914
8915 * xfaces.c (Finternal_set_alternative_font_family_alist)
8916 (Finternal_set_alternative_font_registry_alist): Properly copy
8917 entire alist structure.
8918
89192008-09-01 Kenichi Handa <handa@m17n.org>
8920
d66c0241 8921 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8922 representative chars of the script is a vector.
d66c0241
JB
8923 (ftfont_list): Handle the case where the representative chars of
8924 the script is a vector.
aac0c6e3
MR
8925
8926 * character.c (syms_of_character): Docstring of
8927 script-representative-chars fixed.
8928
89292008-08-31 Eli Zaretskii <eliz@gnu.org>
8930
8931 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8932 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8933 the menu. Allocate larger buffer for `text', to account for
8934 possible ^C characters.
8935
89362008-08-31 Martin Rudalics <rudalics@gmx.at>
8937
8938 * xdisp.c (prepare_menu_bars): Don't call
8939 Vwindow_size_change_functions with arg Qt.
8940
89412008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8942
8943 * font.h (font_range):
8944 * fileio.c (report_file_error):
46e722a9
SM
8945 * composite.c (composition_update_it): Yet another int/Lisp_Object
8946 mixup (YAILOM).
aac0c6e3
MR
8947
89482008-08-30 Glenn Morris <rgm@gnu.org>
8949
8950 * data.c (Fmake_variable_frame_local): Doc fix.
8951
8952 * frame.c (Fmodify_frame_parameters): Doc fix.
8953
89542008-08-30 Eli Zaretskii <eliz@gnu.org>
8955
8956 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8957 needed by GetTokenInformation.
8958 (w32_system_process_attributes): Check return values of all system
8959 APIs.
8960
8961 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8962 only when the state changes.
8963 (IT_update_begin, IT_update_end): Add termscript trace.
8964
8965 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8966 clipboard is unavailable. Set dst to NULL if it doesn't point to
8967 malloc'ed data.
8968 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8969 passing random values to xfree.
8970
8971 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8972 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8973
89742008-08-29 Jason Rumney <jasonr@gnu.org>
8975
8976 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8977
89782008-08-29 Eli Zaretskii <eliz@gnu.org>
8979
8980 * composite.c (fill_gstring_body): Avoid compiler warnings.
8981
8982 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8983 LGLYPH_SET_CODE to avoid compiler warnings.
8984
2ae37cf0 8985 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8986
8987 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8988
8989 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8990 LGLYPH_SET_CODE.
8991
89922008-08-29 Kenichi Handa <handa@m17n.org>
8993
8994 * fileio.c (report_file_error): Don't downcase the first character
8995 of errstring if it is still unibyte.
8996
89972008-08-29 Kenichi Handa <handa@m17n.org>
8998
8999 These changes are to re-implement the automatic composition so
9000 that it doesn't use text properties.
9001
9002 * Makefile.in (ftfont.o): Depend on composite.h.
9003 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9004
9005 * character.h (Vunicode_category_table): Extern it.
9006
9007 * character.c (Vunicode_category_table): New variable.
9008 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9009
9010 * chartab.c (optimize_sub_char_table): Perform more greedy
9011 optimization.
9012
b8ff72fa
SM
9013 * composite.h (enum composition_method):
9014 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9015 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9016 (Vcomposition_function_table): Extern it.
9017 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9018 (composition_gstring_put_cache, composition_gstring_from_id)
9019 (composition_gstring_p, composition_gstring_width)
9020 (composition_compute_stop_pos, composition_reseat_it)
9021 (composition_update_it, composition_adjust_point): Extern them.
9022 (Fcomposition_get_gstring): EXFUN it.
9023
d66c0241 9024 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9025 (Vcomposition_function_table)
9026 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9027 (gstring_hash_table, gstring_work, gstring_work_headers):
9028 New variables.
aac0c6e3
MR
9029 (gstring_lookup_cache, composition_gstring_put_cache)
9030 (composition_gstring_from_id, composition_gstring_p)
9031 (composition_gstring_width, fill_gstring_header)
9032 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9033 (composition_reseat_it, composition_update_it)
b8ff72fa 9034 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9035 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9036 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9037 Defsubr composition_get_gstring.
aac0c6e3
MR
9038
9039 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9040 cmp_id.
9041 (struct glyph_string): Delete the member gidx. New members
9042 cmp_id, cmp_from, and cmp_to.
9043 (enum it_method): Delete GET_FROM_COMPOSITION.
9044 (struct composition_it): New struct.
9045 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9046 Delete c, len, cmp_id, cmp_len in u.comp.
9047
9048 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9049 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9050 (enum lglyph_indices): Likewise.
b8ff72fa 9051 (font_range): Adjust extern.
aac0c6e3
MR
9052 (font_fill_lglyph_metrics): Extern it.
9053
9054 * font.c (QCf): New variable.
9055 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9056 (font_prepare_composition): Delete this function.
9057 (font_range): Type and arguments changed.
9058 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9059 (font_fill_lglyph_metrics): New function.
b8ff72fa 9060 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9061 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9062 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9063 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9064
9065 * fontset.h (font_for_char): Extern it.
9066
9067 * fontset.c (font_for_char): New function.
9068
9069 * ftfont.c: Include composite.h.
9070 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9071 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9072
9073 * indent.c: Include composite.h and dispextern.h.
9074 (check_composition): Delete this function.
9075 (scan_for_column): Handle composition by
9076 composition_compute_stop_pos, composition_reseat_it, and
9077 composition_update_it.
9078 (compute_motion): Likewise.
9079 (Fvertical_motion): Fix checking of composition.
9080
9081 * keyboard.c (adjust_point_for_property): Check composition by
9082 composition_adjust_point.
9083
b8ff72fa 9084 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9085 struct glyph_string.
9086
b8ff72fa
SM
9087 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9088 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9089 struct glyph.
9090 (produce_composite_glyph): Likewise.
9091
b8ff72fa
SM
9092 * w32term.c (x_draw_composite_glyph_string_foreground):
9093 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9094 (x_draw_glyph_string): Likewise.
9095
9096 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9097 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9098
9099 * xdisp.c: Include font.h.
9100 (it_props): Delete the entry for Qauto_composed.
9101 (init_iterator): Initialize it->cmp_it.id to -1.
9102 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9103 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9104 (handle_auto_composed_prop): Delete it.
9105 (handle_composition_prop): Handle only static composition.
9106 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9107 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9108 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9109 (pop_it): Likewise.
9110 (get_next_element): Delete next_element_from_composition.
9111 (CHAR_COMPOSED_P): New macro.
9112 (get_next_display_element): For automatic composition, get a face
9113 from the font in the glyph-string.
9114 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9115 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9116 (next_element_from_string): Check if the character at the current
9117 position is composed by CHAR_COMPOSED_P.
9118 (next_element_from_buffer): Likewise.
d66c0241
JB
9119 (next_element_from_composition): Adjust for the change of struct it.
9120 Update it->cmp_it.
b8ff72fa
SM
9121 (dump_glyph): Adjust for the change of struct glyph.
9122 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9123 it and struct glyph. Don't handle automatic composition here.
9124 (fill_gstring_glyph_string): New function.
9125 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9126 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9127 (BUILD_GSTRING_GLYPH_STRING): New macro.
9128 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9129 automatic composition.
b8ff72fa 9130 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9131 struct glyph.
b8ff72fa 9132 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9133
b8ff72fa 9134 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9135 the change of struct glyph_string.
9136 (x_draw_glyph_string): Likewise.
9137
91382008-08-29 Glenn Morris <rgm@gnu.org>
9139
9140 * buffer.c (word-wrap): Doc fix.
9141 * xdisp.c (truncate-partial-width-windows): Doc fix.
9142 Increase default to 50.
9143
91442008-08-29 Chong Yidong <cyd@stupidchicken.com>
9145
9146 * xdisp.c (update_tool_bar_unwind): New function.
9147 (update_tool_bar): Temporarily set selected frame before building
9148 tool-bar items.
9149
91502008-08-28 Michael Albinus <michael.albinus@gmx.de>
9151
9152 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9153 snprintf, respectively.
9154 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9155
91562008-08-28 Chong Yidong <cyd@stupidchicken.com>
9157
9158 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9159 LDFLAGS to GNUstep CC invocation.
9160
91612008-08-27 Chong Yidong <cyd@stupidchicken.com>
9162
9163 * indent.c (Fvertical_motion): Revert last change. Handle the
9164 general case where we are moving forward, and PT spans multiple
9165 screen lines.
9166
9167 * eval.c (find_handler_clause): Temporarily increase
9168 max-lisp-eval-depth while printing the backtrace buffer, to
9169 guarantee that help-mode code can run.
9170
91712008-08-27 Eli Zaretskii <eliz@gnu.org>
9172
9173 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9174 colors under -rv.
9175 (IT_set_frame_parameters): Don't swap foreground and background
9176 colors if `(reverse . t)' is present in the frame properties.
9177 (internal_terminal_init): Call init_frame_faces only for the
9178 initial frame.
9179
91802008-08-27 Andreas Schwab <schwab@suse.de>
9181
9182 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9183
91842008-08-27 Andreas Schwab <schwab@suse.de>
9185
9186 * search.c (search_buffer): Set char_base to zero only at the end.
9187
91882008-08-27 Kenichi Handa <handa@m17n.org>
9189
b8ff72fa 9190 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9191
91922008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9193
9194 * xterm.c (x_term_init): Temporarily hide the partially
9195 initialized terminal while calling vendor-specific-keysyms.
9196
91972008-08-26 Eli Zaretskii <eliz@gnu.org>
9198
9199 * msdos.c (internal_terminal_init): Most initializations done only
9200 once, especially initial_screen_colors[] and termscript open.
9201
92022008-08-26 Chong Yidong <cyd@stupidchicken.com>
9203
9204 * eval.c (Fcondition_case): Doc fix.
9205
9206 * widgetprv.h (EmacsFramePart): Change font member to the new font
9207 struct.
9208
9209 * widget.c: Include character.h and font.h for XSETFONT.
9210 (setup_frame_gcs): Compute X font id from font struct, just once.
9211
92122008-08-26 Eli Zaretskii <eliz@gnu.org>
9213
9214 * term.c (get_named_tty): Fix last change.
9215
92162008-08-26 Chong Yidong <cyd@stupidchicken.com>
9217
9218 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9219 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9220
92212008-08-25 Eli Zaretskii <eliz@gnu.org>
9222
9223 * frame.c (do_switch_frame): Mark previously displayed frame as
9224 obscured for FRAME_MSDOS_P frames as well.
9225
92262008-08-24 Eli Zaretskii <eliz@gnu.org>
9227
9228 * frame.c (make_terminal_frame): Initialize f->terminal,
9229 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9230 Set the top frame to newly created frame.
9231 (Fmake_terminal_frame): Reuse the_only_display_info.
9232
9233 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9234 estimating available memory.
9235
b97439ce 92362008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9237
9238 * nsterm.m (ns_draw_window_cursor): Don't call
9239 NSDisableScreenUpdates and NSEnableScreenUpdates on
9240 non-NS_IMPL_COCOA systems.
9241
92422008-08-23 Andreas Schwab <schwab@suse.de>
9243
9244 * process.c (procfs_system_process_attributes): Fix use of
9245 uninitialized variables.
9246
92472008-08-23 Eli Zaretskii <eliz@gnu.org>
9248
9249 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9250
9251 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9252 calling tty-set-up-initial-frame-faces.
9253
b8ff72fa
SM
9254 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9255 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9256
9257 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9258 addition to output_termcap.
9259
9260 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9261
9262 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9263 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9264 highlight.
9265
9266 * process.c [!subprocesses]: Define QCname.
9267 (syms_of_process): Intern and staticpro it.
9268
9269 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9270 Adjust for changes in encoding/decoding routines.
9271 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9272 encode_coding and decode_coding.
9273
b8ff72fa 9274 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9275
9276 * dosfns.c: Include frame.h before termhooks.h.
9277 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9278 variable termscript.
9279
9280 * s/msdos.h (USER_FULL_NAME): Define.
9281 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9282
9283 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9284 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9285 pw->pw_gecos.
9286
9287 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9288 SELECTED_FRAME as additional (1st) argument.
9289 (tty_read_avail_input): Handle output_msdos_raw in
9290 addition to output_termcap.
9291
9292 * msdos.c: Include frame.h before termhooks.h.
9293 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9294 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9295 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9296 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9297 (IT_set_terminal_modes, IT_reset_terminal_modes)
9298 (IT_set_frame_parameters): Use tty->termscript instead of a global
9299 variable termscript.
9300 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9301 global variable terminal_coding. Don't refer to
9302 Vnonascii_translation_table.
9303 (internal_terminal_init): Set Vwindow_system in current_kboard.
9304 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9305 Announce date and time of session start, if termscript is open.
9306 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9307 term.c:init_tty). Open termscript only of not already open.
9308 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9309 here instead of dos_ttraw. Don't initialize display if this is an
9310 initial tty. Don't set FRAME_FONT.
9311 (Vwindow_system_version): Bump to 23.
9312 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9313 is available, set up mouse_position_hook.
9314 (dos_ttraw, IT_set_terminal_modes): If called with initial
9315 terminal, do nothing.
9316 (IT_set_frame_parameters): Handle the Qtty_type frame
9317 parameter by calling internal_terminal_init.
9318 (dos_set_window_size, show_mouse_face)
9319 (clear_mouse_face, IT_note_mode_line_highlight)
9320 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9321 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9322 (initialize_msdos_display): New function.
9323 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9324 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9325 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9326 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9327 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9328 (request_sigio, unrequest_sigio): Don't define, now defined on
9329 sysdep.c.
9330 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9331
9332 * term.c [MSDOS]: Include msdos.h.
9333 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9334 conditional to DOS_NT. Allow only one call to this function in a
9335 session. Don't allocate a new struct tty_display_info; instead,
9336 reuse the_only_display_info. Call get_tty_size to get screen
9337 dimensions. Call init_baud_rate to set bad_rate.
9338 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9339 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9340 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9341 (get_tty_terminal, get_named_tty, Ftty_type)
9342 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9343 output_termcap.
b8ff72fa
SM
9344 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9345 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9346 only when subprocesses are supported.
aac0c6e3
MR
9347
9348 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9349 f->output_data.x.
9350 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9351 terminal devices.
9352
5582fbc7 9353 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9354 x_output.
9355 (FRAME_FONT): Use output_data.tty.
9356 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9357 (struct x_display_info): Rename from display_info. Update all users in
9358 msdos.c.
aac0c6e3 9359 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9360 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9361 (dos_ttraw): Update prototype.
9362
9363 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9364 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9365
93662008-08-23 Jason Rumney <jasonr@gnu.org>
9367
9368 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9369 (fn_TIFFSetDirectory): New library function used.
9370 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9371 (tiff_load): Use :index to select among multiple images. Set count
9372 property when multiple images exist.
9373 (gif_format): Use :index, not :image.
9374
93752008-08-23 Chong Yidong <cyd@stupidchicken.com>
9376
9377 * xdisp.c (try_scrolling): Check INT_MAX instead of
9378 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9379 to obtain INT_MAX.
9380
93812008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9382
9383 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9384
93852008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9386
9387 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9388 GNUstep library location.
9389
93902008-08-21 Chong Yidong <cyd@stupidchicken.com>
9391
9392 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9393 before using it.
9394
9395 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9396
93972008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9398
9399 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9400 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9401 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9402 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9403 (EmacsApp-cursor_blink_handler): Remove declaration.
9404 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9405 match 01 Feb 2008 changes in xterm.c.
9406 (ns_read_socket): Add cast to avoid warning.
9407 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9408 GNUstep.
9409
94102008-08-20 Chong Yidong <cyd@stupidchicken.com>
9411
9412 * xselect.c (x_get_foreign_selection): Return nil if desired
9413 selection could not be obtained, instead of signalling an error.
9414
94152008-08-20 David Reitter <david.reitter@gmail.com>
9416
9417 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9418 * nsterm.m: Remove ns-specific code for cursor blinking.
9419 (ns_draw_window_cursor): Clear cursor properly rather than
9420 redrawing the area. Respect width of bar cursors.
9421 These changes enable the use of generic blink-cursor-mode and
9422 generic cursor types in NS and support smooth cursor movements (do
9423 not blink off after command).
9424 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9425 Nextstep, too.
9426
94272008-08-19 Kenichi Handa <handa@m17n.org>
9428
9429 * font.c (Vfont_log_deferred): New variable.
9430 (font_add_log): Check Vfont_log_deferred.
9431 (font_deferred_log): New function.
9432
9433 * font.h (font_deferred_log): Extern it.
9434
9435 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9436 for sorting.
9437 (face_for_char): Use deferred log.
9438
94392008-08-18 Kenichi Handa <handa@m17n.org>
9440
9441 * fontset.c (face_for_char): Add font log.
9442
9443 * font.c (font_add_log): Add the font properties :script, :lang,
9444 and :otf in the log.
9445
94462008-08-17 Chong Yidong <cyd@stupidchicken.com>
9447
9448 * xdisp.c: Remove dead code.
9449 (handle_invisible_prop, next_overlay_string): Defer call to
9450 setup_for_ellipsis.
9451 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9452
94532008-08-15 Chong Yidong <cyd@stupidchicken.com>
9454
9455 * xfaces.c (lookup_derived_face): Properly handle possible zero
9456 return value of get_lface_attributes.
9457 (merge_faces): Don't tell lookup_derived_face to signal an error
9458 if face is not found.
9459
9460 * dired.c (Fdirectory_files): Doc fix.
9461
9462 * process.c (make_process): Initialize kill_without_query struct
9463 member.
9464
94652008-08-15 Eli Zaretskii <eliz@gnu.org>
9466
9467 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9468 Alternative calculation of totphys for Visual Studio 6.
9469
9470 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9471
9472 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9473 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9474 All users changed.
9475 (stat): Only root directory passed to GetDriveType. Allow RAM
9476 disk as well as local fixed disk when w32-get-true-file-attributes
9477 is set to `local'.
9478 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9479 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9480 (w32_cached_id, w32_add_to_cache): New functions.
9481 (get_name_and_id): Look account names in the cache before calling
9482 lookup_account_sid.
9483 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9484 New initialization flags.
9485 (globals_of_w32): Initialize them to zero.
9486 (w32_system_process_attributes): Use w32_cached_id and
9487 w32_add_to_cache.
9488
94892008-08-14 Lawrence Mitchell <wence@gmx.li>
9490
9491 * lread.c (Fread_char, Fread_char_exclusive): If no character
9492 event is read before timeout is reached, return nil, rather than
9493 converting to a number.
9494
94952008-08-14 Chong Yidong <cyd@stupidchicken.com>
9496
9497 * fns.c (use_dialog_box): Doc fix.
9498
9499 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9500 on OS X.
9501
95022008-08-13 Chong Yidong <cyd@stupidchicken.com>
9503
9504 * frame.c (Qns_parse_geometry): New var.
9505 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9506
95072008-08-11 Chong Yidong <cyd@stupidchicken.com>
9508
9509 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9510 space character in calculating tabs.
9511
95122008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9513
9514 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9515
95162008-08-10 Glenn Morris <rgm@gnu.org>
9517
9518 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9519 silence gcc "limited range of data type" warnings in some
9520 make_fixnum_or_float calls.
9521
95222008-08-09 Eli Zaretskii <eliz@gnu.org>
9523
9524 * w32.c (w32_system_process_attributes): If the process does not
9525 exist, return nil.
9526
9527 * w32.c: Include thelp32.h, psapi.h and coding.h.
9528 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9529 declarations.
9530 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9531 (Process32Next_Proc): New typedefs.
9532 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9533 (g_b_init_process32_next, g_b_init_open_thread_token)
9534 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9535 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9536 (g_b_init_get_process_working_set_size)
9537 (g_b_init_global_memory_status_ex): New static variables.
9538 (globals_of_w32): Initialize them.
9539 (create_toolhelp32_snapshot, process32_first, process32_next)
9540 (open_thread_token, impersonate_self, revert_to_self)
9541 (get_process_memory_info, get_process_working_set_size)
9542 (global_memory_status, global_memory_status_ex): New wrapper
9543 functions.
9544 (w32_list_system_processes, w32_system_process_attributes)
9545 (enable_privilege, restore_privilege, ltime, process_times):
9546 New functions.
9547 (convert_time_raw): New function.
9548 (convert_time): Remove conversion of FILETIME into time in 100
9549 nsec units, call convert_time_raw instead.
9550
9551 * process.h (w32_list_system_processes, w32_system_process_attributes):
9552 Add prototypes.
9553 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9554 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9555 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9556 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9557
9558 * process.c (Fsystem_process_attributes): Doc fix.
9559
95602008-08-08 Chong Yidong <cyd@stupidchicken.com>
9561
9562 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9563 a continued multi-char glyph; if so, advance to the actual glyph.
9564
95652008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9566
9567 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9568
9569 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9570 (.m.o): Use it.
9571 * config.in: Regenerate.
9572
95732008-08-07 Chong Yidong <cyd@stupidchicken.com>
9574
9575 * xdisp.c (redisplay_window): Revert last change.
9576 (try_window): Check bottom scroll margin too.
9577
95782008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9579
9580 * config.in: Regenerate.
9581
9582 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9583 -list-load-path-shadows'.
9584 (nsgui.h): Reduce number of things depending on it.
9585
95862008-08-06 Chong Yidong <cyd@stupidchicken.com>
9587
9588 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9589 instead of window-end which does the wrong thing at eob.
9590 (try_cursor_movement): Minor optimization.
9591 (redisplay_window): If scroll margin is defined, don't assume
9592 window doesn't need scrolling.
9593
95942008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9595
9596 * config.in: Regenerate.
9597
9598 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9599 (mostlyclean): Don't delete *.d under NS.
9600
9601 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9602
96032008-08-06 Kenichi Handa <handa@m17n.org>
9604
9605 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9606
96072008-08-06 Andreas Schwab <schwab@suse.de>
9608
9609 * config.in: Regenerate.
9610
96112008-08-05 Chong Yidong <cyd@stupidchicken.com>
9612
9613 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9614 forcing a window start.
9615
9616 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9617 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9618
96192008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9620
9621 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9622 argument.
9623
96242008-08-05 Juanma Barranquero <lekktu@gmail.com>
9625
9626 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9627 <scroll-down-aggressively, before-change-functions>:
9628 <after-change-functions>: Reflow docstrings.
9629
96302008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9631 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9632
9633 Dock menu customization, based on a patch by Ken Raeburn, plus some
9634 other fixes.
9635 * nsmenu.m (dockMenu): New variable.
9636 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9637
9638 * nsterm.h (dockMenu): Declare.
9639
9640 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9641 (ns_term_init): Initialize dockMenu.
9642 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9643 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9644 left.
9645
9646 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9647
96482008-08-04 Chong Yidong <cyd@stupidchicken.com>
9649
9650 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9651
9652 * config.in: Regenerate.
9653
96542008-08-04 Seiji Zenitani <zenitani@mac.com>
9655
9656 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9657
96582008-08-04 Chong Yidong <cyd@stupidchicken.com>
9659
9660 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9661
96622008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9663
9664 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9665
9666 * keyboard.h: Comment an #endif.
9667
9668 * lisp.h (have_menus_p): Adjust comment.
9669
9670 * menu.c (find_and_return_menu_selection): Fix comparison with
9671 client_data.
9672
9673 * nsmenu.m (popup_activated_flag): New variable.
9674 (popup_activated): New function.
9675 (menu-or-popup-active-p): New exported lisp definition.
9676 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9677 when popup done.
9678 (ns_popup_dialog): Set popup_activated_flag.
9679
9680 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9681 version for GNUstep (handled by conditional typedef in nsterm.m).
9682 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9683 in rgb.txt).
9684
9685 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9686
9687 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9688
9689 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9690
9691 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9692 shortcircuit if popup_activated like GTK and X toolkit.
9693
9694 * m/inter386.h: Change DARWIN to DARWIN_OS.
9695
9696 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9697 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9698 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9699 comment on NO_SOCK_SIGIO.
9700
97012008-08-03 Chong Yidong <cyd@stupidchicken.com>
9702
9703 * nsterm.m (windowDidResize): Remove stopModal call.
9704
97052008-08-03 Andreas Schwab <schwab@suse.de>
9706
9707 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9708 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9709
97102008-08-02 Chong Yidong <cyd@stupidchicken.com>
9711
9712 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9713 Don't use uninitialized pointer variable when using getrlimit.
9714
97152008-08-02 Jason Rumney <jasonr@gnu.org>
9716
9717 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9718
97192008-08-02 Eli Zaretskii <eliz@gnu.org>
9720
9721 * alloc.c (NSTATICS): Bump to 0x640.
9722
9723 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9724
9725 * lisp.h: Add prototype for directory_files_internal.
9726
9727 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9728 New functions.
9729 (syms_of_process): Defsubr them. Add initializations for various
9730 Q* symbols used in procfs_system_process_attributes.
9731 (procfs_list_system_processes, procfs_system_process_attributes)
9732 [HAVE_PROCFS]: New functions.
9733 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9734 (procfs_get_total_memory): New functions.
9735
97362008-08-01 Juanma Barranquero <lekktu@gmail.com>
9737
9738 * xfaces.c (Fx_load_color_file): Fix previous change;
9739 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9740
97412008-08-01 Michael Albinus <michael.albinus@gmx.de>
9742
9743 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9744
97452008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9746
9747 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9748
97492008-08-01 Chong Yidong <cyd@stupidchicken.com>
9750
9751 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9752
9753 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9754 define NSApplicationDelegateReplySuccess.
9755 (EmacsView -converstationIdentifier): Use long instead of
9756 NSInteger for GNUstep, since it doesn't have NSInteger.
9757
9758 * xmenu.c: Revert last change.
9759
9760 * keyboard.h: Fix last change.
9761
97622008-08-01 Juanma Barranquero <lekktu@gmail.com>
9763
9764 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9765 on Windows.
9766
97672008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9768
9769 Warning clearing and clean-up in NS port.
9770 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9771 Add prototypes.
9772 * nsgui.h (FACE_DEFAULT): Remove, unused.
9773 (XGCValues): Change colors to unsigned long.
9774 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9775 nsterm.m.
9776 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9777 (ns_list_fonts): Remove, unused.
9778 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9779 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9780 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9781 (nsfont_draw): Compare face colors to 0, not nil.
9782 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9783 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9784 (-addSubmenuWithTitle:): Use NSMenuItem class.
9785 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9786 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9787 (ns_clip_to_row): Make gc arg a BOOL.
9788 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9789 ns_clip_to_row() call.
9790 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9791 used). Cast FRAME_FONT assignments.
9792 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9793 (ns_string_to_lispmod): Change arg to const char.
9794 (ns_term_init): Use NSMenuItem class.
9795 (EmacsApp -openFile:): Move to different section of file.
9796 (EmacsApp -application:openFiles:): Don't return a value, call
9797 -replyToOpenOrPrint:.
9798 (EmacsView -keyDown:): Fix up cast.
9799 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9800 (EmacsView -menuDown:): Cast tag in call to
9801 find_and_call_menu_selection().
9802 (ns_list_fonts): Remove, unused.
9803 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9804 (ns_fontname_to_xlfd): Make static.
9805 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9806 Remove prototypes (now in keyboard.h).
9807 (next_menubar_widget_id): Remove, unused.
9808 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9809 Remove prototypes (now in keyboard.h).
9810 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9811
98122008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9813
9814 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9815 (floatfns.o): Depend on syssignal.h.
9816 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9817
9818 * systty.h: Fix previous change that removed BSD_TERMIOS.
9819 Add comments to #ifdefs.
9820
98212008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9822
9823 * w32fns.c (w32-load-color-file): Remove.
9824 (x-open-connection): Use renamed Fx_load_color_file.
9825 * xfaces.c (x-load-color-file): Add.
9826 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9827 Emacs.clr.
9828 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9829
98302008-07-31 Michael Albinus <michael.albinus@gmx.de>
9831
9832 * dbusbind.c (Fdbus_call_method_asynchronously)
9833 (Fdbus_method_error_internal): New defuns.
9834 (xd_read_message): Handle also reply messages.
9835 (Vdbus_registered_functions_table): Extend docstring.
9836
98372008-07-31 Juanma Barranquero <lekktu@gmail.com>
9838
9839 * keyboard.c (gobble_input): Fix previous change.
9840
98412008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9842
9843 * bitmaps/README:
9844 * xfns.c:
9845 * termcap.c:
9846 * term.c:
9847 * syswait.h:
9848 * systty.h:
9849 * systime.h:
9850 * syssignal.h:
9851 * sysdep.c:
9852 * process.h:
9853 * process.c:
9854 * print.c:
9855 * ndir.h:
9856 * lread.c:
9857 * keyboard.c:
9858 * getpagesize.h:
9859 * floatfns.c:
9860 * fileio.c:
9861 * emacs.c:
9862 * doc.c:
9863 * dispnew.c:
9864 * dired.c:
9865 * data.c:
9866 * callproc.c:
9867 * buffer.c:
9868 * README:
9869 * Makefile.in:
9870 * s/template.h:
9871 * s/msdos.h:
9872 * m/vax.h: Remove VMS support.
9873 * s/vms.h:
9874 * vlimit.h:
9875 * uaf.h:
9876 * temacs.opt:
9877 * param.h:
9878 * ioctl.h: Remove file.
9879
98802008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9881
9882 * s/ms-w32.h (MULTI_KBOARD): Remove.
9883 * xterm.c:
9884 * xselect.c:
9885 * xfns.c:
9886 * window.c:
9887 * w32term.c:
9888 * w32fns.c:
9889 * terminal.c:
9890 * termhooks.h:
9891 * term.c:
9892 * sysdep.c:
9893 * keyboard.h:
9894 * keyboard.c:
9895 * frame.h:
9896 * frame.c:
9897 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9898 * config.in: Regenerate.
9899
99002008-07-30 Jason Rumney <jasonr@gnu.org>
9901
9902 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9903
9904 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9905 (w32font_open_internal): Get unicode version of textmetrics.
9906 Don't enable or disable glyph indices here.
9907 (w32font_open): Disable use of glyph indices.
9908
9909 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9910
99112008-07-30 Chong Yidong <cyd@stupidchicken.com>
9912
9913 * minibuf.c (Vread_buffer_function): Doc fix.
9914
99152008-07-30 John Paul Wallington <jpw@pobox.com>
9916
9917 * minibuf.c (read_buffer_completion_ignore_case): New var.
9918 (Fread_buffer): Use it.
9919
99202008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9921
9922 * systty.h (sensemode): Remove empty #if. Remove reference to
9923 BSD_TERMIOS, unused.
9924
9925 * sysdep.c: Remove reference to DGUX.
9926 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9927
9928 * config.in: Regenerate.
9929
99302008-07-30 Jason Rumney <jasonr@gnu.org>
9931
9932 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9933
99342008-07-29 Jason Rumney <jasonr@gnu.org>
9935
9936 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9937 is populated.
9938 (uniscribe_encode_char): Always use uniscribe.
9939 Avoid using context if cache is populated.
9940
99412008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9942
9943 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9944 open menu.
9945
9946 * gtkutil.c (menu_nav_ended): Remove.
9947 (create_menus): Remove signal connect for menu_nav_ended.
9948
99492008-07-28 Chong Yidong <cyd@stupidchicken.com>
9950
9951 * xdisp.c (redisplay_window): Check return value of
9952 compute_window_start_on_continuation_line before forcing a window
9953 start.
9954
99552008-07-28 Jason Rumney <jasonr@gnu.org>
9956
9957 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9958
9959 * w32term.c (w32_enable_unicode_output, cleartype_active):
9960 Remove obsolete display options.
9961 (x_draw_glyph_string_background): Don't use old cleartype_active
9962 workaround.
9963 (w32_initialize): Remove cleartype_active initialization.
9964 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9965
99662008-07-28 Andreas Schwab <schwab@suse.de>
9967
9968 * lisp.h (init_weak_hash_tables, syms_of_font)
9969 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9970 (remove_hash_entry): Don't declare.
9971 * eval.c (maybe_call_debugger): Make static and move before use.
9972 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9973 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9974 * xterm.h (x_set_frame_alpha): Declare.
9975
99762008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9977
9978 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9979 (create_menus): Connect selection-done to menu_nav_ended.
9980
99812008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9982
9983 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9984 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9985 parameter with read of 'alpha' one.
9986 (Qns_frame_parameter): Remove.
5582fbc7 9987 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9988 (next-selection-coding-system, Vselection_coding_system)
9989 (Vnext_selection_coding_system): Drop.
9990
99912008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9992
9993 * nsfns.m (do-applescript, do_applescript): Rename to
9994 ns-do-applescript, ns_do_applescript, and move within file.
9995
99962008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9997
9998 Remove support for Mac Carbon.
9999 * mactoolbox.c:
10000 * macterm.h:
10001 * macterm.c:
10002 * macselect.c:
10003 * macmenu.c:
10004 * macgui.h:
10005 * macfns.c:
10006 * mac.c: Remove file.
10007 * s/darwin.h:
10008 * m/intel386.h:
10009 * xfaces.c:
10010 * xdisp.c:
10011 * window.c:
10012 * tparam.c:
10013 * termhooks.h:
10014 * termcap.c:
10015 * term.c:
10016 * syssignal.h:
10017 * sysselect.h:
10018 * sysdep.c:
10019 * process.c:
10020 * lread.c:
10021 * lisp.h:
10022 * keyboard.c:
10023 * image.c:
10024 * fringe.c:
10025 * frame.h:
10026 * frame.c:
10027 * fontset.c:
10028 * font.h:
10029 * font.c:
10030 * fns.c:
10031 * fileio.c:
10032 * emacs.c:
10033 * dispnew.c:
10034 * dispextern.h:
10035 * config.in:
10036 * atimer.c:
2ae37cf0 10037 * Makefile.in: Remove code for Carbon.
aac0c6e3 10038
f0131492 100392008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10040
10041 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10042
100432008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10044
10045 * macterm.h (kCGBitmapByteOrder32Host): New define for
10046 non-universal SDKs.
10047
10048 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10049 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10050
10051 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10052 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10053
100542008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10055
10056 * w32inevt.c: Include dispextern.h.
10057
100582008-07-26 Andreas Schwab <schwab@suse.de>
10059
10060 * print.c (print_object): Fix off-by-one in last change.
10061
100622008-07-25 Juanma Barranquero <lekktu@gmail.com>
10063
10064 * term.c (syms_of_term): Don't initialize default_orig_pair,
10065 default_set_foreground and default_set_background on Windows.
10066
100672008-07-25 Jason Rumney <jasonr@gnu.org>
10068
10069 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10070 ScriptItemize. Clean up return value checking. Remove unused
10071 variables.
10072 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10073 shaping engine.
10074
10075 * w32font.c (w32font_has_char): Handle the case where we can't
10076 determine the script for a character.
10077
100782008-07-25 Chong Yidong <cyd@stupidchicken.com>
10079
10080 * term.c (syms_of_term): Initialize default_orig_pair,
10081 default_set_foreground, and default_set_background.
10082
10083 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10084 clash (bug#86).
10085 (getloadavg): Callers changed.
10086
10087 * image.c (svg_load_image): Fix last change.
10088 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10089 image size is valid. Use g_object_unref instead of deprecated
10090 rsvg_handle_free to free rsvg handle.
10091 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10092
100932008-07-25 Jason Rumney <jasonr@gnu.org>
10094
10095 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10096 surrogates before looking up glyph index.
10097 (w32font_text_extents): Encode as surrogates if falling back to
10098 functions that need UTF-16 wide chars.
10099
10100 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10101 BMP as surrogates before looking up glyph index.
10102
101032008-07-25 Chong Yidong <cyd@stupidchicken.com>
10104
10105 * image.c (svg_load_image): Check for failure in return value of
10106 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10107
101082008-07-25 Jason Rumney <jasonr@gnu.org>
10109
10110 * w32font.c (Fx_select_font): Reverse sense of second arg.
10111
101122008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10113
10114 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10115 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10116
10117 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10118 (PURESIZE): Use it.
10119
101202008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10121
10122 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10123 * m/alpha.h (TEXT_END):
10124 * m/ibmrs6000.h (TEXT_END):
10125 * m/macppc.h (TEXT_END):
10126 * s/darwin.h (TEXT_END):
10127 * s/msdos.h (TEXT_END): Remove, unused.
10128 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10129 * s/cygwin.h: Remove comment.
10130
10131 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10132 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10133 * m/intel386.h (DOT_GLOBAL_START):
10134 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10135 (USG): Remove, file not used on USG platforms.
10136
10137 * Makefile.in (HAVE_X11): Remove empty #else.
10138
101392008-07-24 Andreas Schwab <schwab@suse.de>
10140
10141 * fileio.c (Finsert_file_contents): Properly adjust undo list
10142 after format conversion.
10143
101442008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10145
10146 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10147 (menu_nav_ended): Remove.
10148 (create_menus): Remove signal connect for menu_nav_ended.
10149 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10150 create_menus.
10151 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10152
101532008-07-23 Jason Rumney <jasonr@gnu.org>
10154
10155 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10156 with opened font.
10157 (w32font_open): Set font type to gdi.
10158
10159 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10160
101612008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10162
10163 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10164 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10165 defines it.
10166 * unexec.c (ADDR_CORRECT): Define unconditionally.
10167
10168 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10169
10170 * unexec.c: Remove code depending on !COFF and USG, the file is
10171 not used for such systems.
10172
10173 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10174 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10175 (LD_SWITCH_SYSTEM_1): Remove, update users.
10176
10177 * s/darwin.h (DATA_END):
10178 * m/intel386.h (DATA_END):
10179 * m/ibmrs6000.h (DATA_END):
10180 * m/alpha.h (DATA_END): Remove, unused.
10181
10182 * config.in: Regenerate.
10183 * s/ms-w32.h (subprocesses): Define unconditionally.
10184 * s/template.h (subprocesses): Update comment.
10185 * s/vms.h (subprocesses):
10186 * s/usg5-4.h (subprocesses):
10187 * s/hpux10-20.h (subprocesses):
10188 * s/gnu-linux.h (subprocesses):
10189 * s/cygwin.h (subprocesses):
10190 * s/bsd-common.h (subprocesses):
10191 * s/aix4-2.h (subprocesses):
10192 * s/darwin.h (subprocesses): Do not define, defined by default now.
10193
10194 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10195 Remove all references.
10196 (temacs): Add GNUstep specific ld flags.
10197
10198 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10199 similarly to what X does.
10200
102012008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10202
10203 * nsfns.m (x-list-fonts): Remove.
10204 (syms_of_nsfns): Drop the x-list-fonts declaration.
10205 * nsterm.m: Get rid of remaining "//" comments.
10206
102072008-07-22 Chong Yidong <cyd@stupidchicken.com>
10208
10209 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10210
10211 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10212 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10213 (Fns_own_selection_internal, Fx_disown_selection_internal)
10214 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10215
10216 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10217 ... */' style of docstrings. Doc fixes.
10218
102192008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10220
10221 * terminfo.c (UP, BC, PC): Undo previous change.
10222
10223 * nsfns.m: Rename ns prefixed functions/variables to the
10224 corresponding x versions. Update references.
10225
102262008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10227
10228 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10229
102302008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10231
10232 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10233 Remove forwarding functions.
10234 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10235 non-static.
10236 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10237 non-static.
10238 (ns_frame_parm_handlers): Use the new names.
10239 (syms_of_nsfns): Move to the end of file.
10240
10241 * nsterm.m (syms_of_nsterm): Move to the end of file.
10242
10243 * dispnew.c (init_display): Remove code for X10.
10244
102452008-07-22 Jason Rumney <jasonr@gnu.org>
10246
10247 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10248 bare drive.
10249
102502008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10251
10252 * nsterm.m (syms_of_nsterm): Remove debugging println.
10253
102542008-07-22 David Reitter <david.reitter@gmail.com>
10255
10256 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10257 Carbon implementation of the same functionality: execute arbitrary
10258 AppleScript code.
10259
102602008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10261
10262 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10263 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10264 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10265 (Fx_display_mm_height, Fx_display_mm_width)
10266 (Fx_display_backing_store, Fx_display_visual_class)
10267 (Fx_display_save_under, Fx_open_connection)
10268 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10269 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10270 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10271 (Fx_display_pixel_width, Fx_display_pixel_height)
10272 (Fx_display_usable_bounds, Fx_display_planes)
10273 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10274 ... */' style of docstrings.
10275
102762008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10277
10278 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10279 on this platform.
10280 (mips):
10281 * m/iris4d.h (mips): Do not define.
10282 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10283
10284 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10285
10286 * image.c:
10287 * nsfns.m:
10288 * nsselect.m:
10289 * nsterm.h:
10290 * nsterm.m: Rename ns prefixed functions/variables to the
10291 corresponding x versions. Update references.
10292
10293 * m/ibms390x.h (NO_REMAP): Do not undefine.
10294
10295 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10296
102972008-07-21 Chong Yidong <cyd@stupidchicken.com>
10298
10299 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10300 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10301 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10302 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10303 (Fns_display_mm_height, Fns_display_mm_width)
10304 (Fns_display_backing_store, Fns_display_visual_class)
10305 (Fns_display_save_under, Fns_open_connection)
10306 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10307 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10308 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10309 (Fns_display_pixel_width, Fns_display_pixel_height)
10310 (Fns_display_usable_bounds, Fx_display_planes)
10311 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10312
103132008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10314
10315 * print.c (print_object): Check print_depth before searching for
10316 circularities.
10317
103182008-07-21 Michael Albinus <michael.albinus@gmx.de>
10319
10320 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10321 only sprintf.
10322
103232008-07-21 Kenichi Handa <handa@m17n.org>
10324
10325 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10326
103272008-07-20 Andreas Schwab <schwab@suse.de>
10328
10329 * syntax.c (find_start_pos, find_start_value)
10330 (find_start_value_byte, find_start_begv, find_defun_start)
10331 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10332
103332008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10334
10335 * s/sol2-3.h: Insert contents of s/sol2.h.
10336 (LD_SWITCH_SYSTEM): Remove redundant definition.
10337 * s/sol2.h: Remove, unused.
10338
103392008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10340
10341 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10342
103432008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10344
10345 * Makefile.in (ns_appdir): Fix typo in find command.
10346
103472008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10348
10349 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10350
10351 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10352 added not supported anymore.
10353
10354 * s/usg5-4-2.h (LIBS_SYSTEM):
10355 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10356
10357 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10358 * s/lynxos.h (GETPGRP_NO_ARG):
10359 * s/hpux10-20.h (NO_SIOCTL_H):
10360 * s/gnu.h (GETPGRP_NO_ARG):
10361 * s/gnu-linux.h (NO_SIOCTL_H):
10362 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10363 * s/cygwin.h (GETPGRP_NO_ARG):
10364 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10365 (C_DEBUG_SWITCH): Remove duplicate definition.
10366
10367 * m/ibms390.h: Remove boilerplate comments.
10368
10369 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10370
10371 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10372 (wait_reading_process_output): Remove code for SunOS, platform not
10373 supported anymore. Use SOLARIS2 instead of sun.
10374
103752008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10376
10377 * font.c (font_open_by_name): Under NS, default lface height to zero.
10378 (font_open_for_lface): Under NS, set size based on frame fontsize.
10379 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10380 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10381
103822008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10383
10384 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10385 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10386 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10387 YES/NO.
10388 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10389 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10390 * Makefile.in (clean): Clear out build destination dir.
10391
103922008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10393
10394 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10395 xterm, xselect.
10396 * lisp.h: Remove declaration of hash_remove.
10397 * nsgui.h: Remove redefinitions of hash_remove.
10398 * fns.c (hash_remove): Rename to hash_remove_from_table.
10399
104002008-07-19 Seiji Zenitani <zenitani@mac.com>
10401
10402 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10403 strdup() the family UTF8String before modifying it.
10404
104052008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10406
10407 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10408 NS_FACE_BACKGROUND with 0 instead of nil.
10409 * nsfont.m (nsfont_draw): Same.
10410
104112008-07-19 Chong Yidong <cyd@stupidchicken.com>
10412
10413 * nsfns.m (ns_set_background_color): Fix crash.
10414
104152008-07-18 Chong Yidong <cyd@stupidchicken.com>
10416
10417 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10418
104192008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10420
10421 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10422
104232008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10424
10425 * gtkutil.c: Include <config.h> instead of "config.h".
10426
10427 * lisp.h (Foverlay_buffer): Add EXFUN.
10428
10429 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10430 child process to complete child_setup. Undo 2005-09-21 change.
10431
10432 * s/darwin.h: Mention setsid after vfork.
10433
104342008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10435
10436 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10437 Depend on macgui.h.
10438
10439 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10440 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10441
10442 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10443 and f19.
10444 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10445
10446 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10447 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10448 Remove enumerators.
10449
10450 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10451 Check if FACE_FROM_ID returns NULL.
10452
104532008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10454
10455 * w32inevt.c (change_frame_size): Remove extern declaration.
10456 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10457 change_frame_size.
10458
104592008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10460
10461 * getloadavg.c: Revert last change (2008-07-15).
10462
104632008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10464
10465 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10466 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10467 from configure.
10468
104692008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10470
10471 * s/sol2.h:
10472 * s/sol2-4.h: Reorganize conditionals.
10473
10474 * ecrt0.c: Remove code depending on m68000, not used anymore.
10475
10476 * fns.c (hash_remove): Make static.
10477 * lisp.h (hash_remove): Don't prototype.
10478
10479 * m/ibmrs6000.h:
10480 * m/ibms390x.h:
10481 * m/macppc.h: Remove boilerplate comments.
10482
10483 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10484 Solaris, which does not need them.
10485
10486 * m/vax.h: Remove comments about unsupported systems.
10487
10488 * s/darwin.h: Reorganize ifdefs.
10489
104902008-07-17 Andreas Schwab <schwab@suse.de>
10491
10492 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10493
104942008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10495
10496 Use SDATA. Follow coding convention of placing operators at
10497 beginning of next line rather than end of previous line, and placing
10498 spaces around infix operators.
10499
10500 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10501 in case it was defined already.
10502 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10503 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10504 ns_default.
10505 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10506 Lisp_Objects.
10507 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10508 (ns_defined_color, ns_color_to_lisp): Declare.
10509 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10510 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10511 it's accepted even with USE_LISP_UNION_TYPE.
10512 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10513 (update_frame_tool_bar): Remove apparently obsolete tests for
10514 non-integerness of f->tool_bar_lines.
10515 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10516 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10517 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10518 (nsfont_open): Don't confuse NULL for Qnil.
10519 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10520 * menu.h (find_and_call_menu_selection):
10521 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10522 (find_and_return_menu_selection): Always return something.
10523 * frame.h: Include dispextern.h for Display_Info.
10524 (display_x_get_resource): Declare.
10525
105262008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10527
10528 * syntax.c: Remove stdio.h include accidentally introduced in
10529 Emacs.app commit.
10530 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10531 NS_IMPL_COCOA.
10532 * keyboard.c (handle_async_input, input_available_signal): Remove
10533 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10534
105352008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10536
10537 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10538 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10539 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10540 Use SDATA.
10541
10542 * keymap.c: Remove all NS-specific code.
10543 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10544 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10545 where_is_preferred_modifier, return a different value depending on how
10546 preferred is the binding.
10547 (where_is_internal): Adjust accordingly.
10548 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10549 Adjust to new preferred_sequence_p.
10550 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10551 * keyboard.c (parse_solitary_modifier): Not static any more.
10552 * keyboard.h (parse_solitary_modifier): Declare.
10553
105542008-07-16 Andreas Schwab <schwab@suse.de>
10555
10556 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10557 of easymenu.
10558
105592008-07-16 Chong Yidong <cyd@stupidchicken.com>
10560
10561 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10562 that we don't move off the line.
10563
105642008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10565
10566 * keyboard.c (Qsuper): Remove.
10567 (parse_menu_item): Don't call where_is_internal specially for NS.
10568
105692008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10570
10571 * s/gnu-linux.h: Remove boilerplate comments.
10572
10573 * m/alpha.h (__ELF__): Consolidate conditions.
10574
10575 * m/m68k.h (linux): Use GNU_LINUX instead.
10576 Remove boilerplate comments.
10577
10578 * m/intel386.h: Undo refactoring from previous change.
10579 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10580 too, remove dead code.
10581 (linux): Use GNU_LINUX instead.
10582
105832008-07-16 Jason Rumney <jasonr@gnu.org>
10584
10585 * w32gui.h: Repeat 26 June changes lost by last change.
10586
105872008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10588
10589 * systty.h: Remove code for Aix on 386, unsupported platform.
10590
10591 * s/ms-w32.h: Remove boilerplate comments.
10592 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10593
10594 * s/gnu-linux.h (TERM): Remove support.
10595 (HAVE_SYSVIPC): Remove, unused.
10596 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10597 for this system.
10598
10599 * process.c: Remove support for IRIS, unused.
10600 Remove support for TERM, not relevant anymore.
10601
10602 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10603 used with the definition.
10604
10605 * s/aix4-2.h (static): Do not undef.
10606
10607 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10608 only used on Aix.
10609 (HAVE_SYSVIPC): Remove, unused.
10610
10611 * m/hp800.h (CANNOT_DUMP): Do not undef.
10612
10613 * m/alpha.h: Fix comment.
10614
10615 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10616 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10617 used by this configuration.
10618 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10619 * unexec.c: Remove code depending on HPUX and
10620 USG_SHARED_LIBRARIES, not used with this file. Remove code
10621 depending on IRIS, unused. Remove if 0-ed code.
10622
10623 * s/template.h: Remove comments about static.
10624
10625 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10626 Remove if 0-ed code.
10627 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10628 were the same as the default.
10629 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10630 Remove boilerplate comments.
10631 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10632 (HAVE_SYSVIPC): Remove, unused.
10633 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10634
10635 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10636 Remove boilerplate comments.
10637 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10638 Remove boilerplate comments.
10639 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10640 Remove boilerplate comments.
10641 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10642
10643 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10644 USG systems which do not use DATA_SEG_BITS.
10645 Refactor code. Remove boilerplate comments.
10646
10647 * m/ibms390.h:
10648 * m/m68k.h:
10649 * s/bsd-common.h:
10650 * s/cygwin.h:
10651 * s/darwin.h:
10652 * s/freebsd.h:
10653 * s/gnu.h:
10654 * s/msdos.h: Remove boilerplate comments.
10655
10656 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10657 do not use this file.
aac0c6e3
MR
10658 (IRIS_4D): Remove, unused.
10659
10660 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10661 do not use this file.
aac0c6e3
MR
10662 (SIGN_EXTEND_CHAR):
10663 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10664 * unexmips.c: Remove file, unused.
10665
10666 * editfns.c (Fuser_full_name): Replace the only use of
10667 USER_FULL_NAME with its value.
10668 * config.in: Regenerate.
10669
106702008-07-16 David Reitter <david.reitter@gmail.com>
10671
10672 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10673 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10674
106752008-07-16 Glenn Morris <rgm@gnu.org>
10676
10677 * emacs.c (system-type): Doc fix.
10678
106792008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10680
10681 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10682 If the cache doesn't work, let's fix it, rather than work around it.
10683
106842008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10685
10686 * Makefile.in: Correct additions for nsfont.o in last commit.
10687 * nsfont.m: New file (forgot last commit).
10688
106892008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10690
10691 * callproc.c (set_initial_environment): Initialize
10692 Vprocess_environment under CANNOT_DUMP (fixes crash when
10693 batch-compiling for bootstrap).
10694
106952008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10696 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10697
10698 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10699 fix crash due to different init order.
10700
107012008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10702
10703 Changes and additions for NeXTstep windowing system (Cocoa and
10704 GNUstep) support.
10705
10706 * Makefile.in:
10707 * config.in: Support defines and build commands for NS port.
10708 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10709 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10710 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10711 windowing.
10712 (struct face): Add synth_ital field.
10713 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10714 (init_display): Initialize Vinitial_window_system to "ns" when so
10715 compiled.
10716 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10717 (display_arg): Use under NS.
10718 (main): Under NS, allocate autorelease pool and handle command line
10719 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10720 (standard_args): Add NS-specific args.
10721 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10722 * font.c (DEFAULT_ENCODING): New variable.
10723 (font_find_for_lface): Use it.
10724 (syms_of_font): Load syms_of_nsfont under NS.
10725 * font.h: Declare nsfont_driver when compiled under NS.
10726 * fontset.c: When compiling under NS, include nsterm.h.
10727 (fontset_from_font): Autoconstruct fontset under NS.
10728 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10729 symbol, document and use it.
10730 (do_switch_frame): When for_deletion under Cocoa, add
10731 Fraise_frame(Qnil).
10732 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10733 (x_get_arg): Allow "yes" and "no" as boolean values.
10734 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10735 Qright under Cocoa.
10736 (focus-follows-mouse): Default to 0 under NS.
10737 * frame.h (enum output_method): Add output_ns.
10738 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10739 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10740 (FRAME_WINDOW_P): NS-specific definition.
10741 * fringe.c (max_used_fringe_bitmap): Make public.
10742 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10743 (getloadavg): Use NeXT code under descendant OS's.
10744 * image.c (includes and header section, x_create_bitmap_from_data)
10745 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10746 (image_background_transparent, x_clear_image_1)
10747 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10748 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10749 (x_to_xcolors, x_from_xcolors, x_disable_image)
10750 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10751 other GUIs, including XPM support using code originally written for
10752 Carbon GUI.
10753 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10754 using NS API.
10755 (image_ascent): Use font metrics macros instead of direct struct field
10756 access.
10757 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10758 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10759 Also, handle NS as GTK for menu bar purposes.
10760 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10761 toolkit where they differ.
10762 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10763 use cachelist, still needed under NS.
10764 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10765 (struct widget_value): Define it here for menu.c.
10766 * keymap.c (includes): Include modifier internals.
10767 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10768 NS.
10769 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10770 support for preferring sequences using certain modifiers, specified by
10771 the FIRSTONLY argument.
10772 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10773 under NS GNUstep implementation.
10774 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10775 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10776 * menu.c: Include nsterm.h under NS.
10777 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10778 (free_menubar_widget_tree_value, update_submenu_strings)
10779 (find_and_call_menu_selection): Treat NS as X and NT.
10780 (find_and_return_menu_selection): New function, used for popup menus.
10781 * nsgui.h:
10782 * nsterm.h:
10783 * nsfns.m:
10784 * nsimage.m:
10785 * nsmenu.m:
10786 * nsselect.m:
10787 * nsterm.m: New files.
10788 * process.c (wait_reading_process_output): Under NS, call ns_select()
10789 instead of plain select().
10790 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10791 beginning of buffer.
10792 * sysselect.h (init_process): Rename when compiling under Cocoa to
10793 avoid name conflict.
10794 * termhooks.h (display_info): Add ns_display_info to union.
10795 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10796 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10797 COCOA environment.
10798 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10799 unexec() signature. (Note, this will dump, but the resulting file
10800 crashes; unexosx is used instead; keeping around for reference and
10801 possible aid in getting dump working under GNUstep.)
10802 * w32gui.h (button_type, widget_value): Remove definitions (now in
10803 keyboard.h).
10804 * window.c: Include nsterm.h when compiling under NS.
10805 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10806 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10807 other GUI windowing systems.
10808 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10809 GTK.
10810 (x_consider_frame_title): Under NS, set icon type and frame
10811 modified-state indicator; use ns_set_name_as_filename() when using
10812 formatted title.
10813 (update_window_cursor): Make public when compiling under NS.
10814 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10815 (hourglass_atimer, Vhourglass_delay
10816 * xfaces.c (header section, init_frame_faces, clear_font_table)
10817 (defined_color, unload_color, x_face_list_fonts)
10818 (prepare_face_for_display): Add NS support parallel to other GUIs.
10819 Emulate GCs like other non-X GUIs.
10820 (split_font_name): Don't lowercase font name under NS.
10821 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10822 under NS.
10823 * s/darwin.h: Add support for compilation under NS.
10824
108252008-07-15 Jason Rumney <jasonr@gnu.org>
10826
10827 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10828 (w32_show_hourglass): Rename from show_hourglass.
10829 (w32_hide_hourglass): Rename from hide_hourglass.
10830 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10831 (Vhourglass_delay): Declare extern.
10832 (hourglass_started): Remove.
10833
10834 * xdisp.c (Vhourglass_delay): Remove static.
10835 (hourglass_started, start_hourglass, cancel_hourglass):
10836 Don't include these versions on WINDOWSNT.
10837
108382008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10839
10840 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10841 variables (formerly in xfns.c).
10842 (show_hourglass, hide_hourglass): New prototypes (same).
10843 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10844 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10845 in xfns.c).
10846 (syms_of_xdisp): Declare/initialize display-hourglass,
10847 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10848 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10849 formerly in xfns.c.
10850 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10851 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10852 (start_hourglass, cancel_hourglass): Remove.
10853 (show_hourglass, hide_hourglass): Remove prototypes and static
10854 modifiers.
10855 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10856 hourglass_atimer, hourglass_shown_p declaration/initialization.
10857 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10858 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10859 (start_hourglass, cancel_hourglass): Remove.
10860 (show_hourglass, hide_hourglass): Remove prototypes and static
10861 modifiers.
10862 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10863 hourglass_atimer, hourglass_shown_p declaration/initialization.
10864 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10865 (DEFAULT_HOURGLASS_DELAY): Remove.
10866 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10867 hourglass_shown_p declaration/initialization.
10868
108692008-07-14 Jason Rumney <jasonr@gnu.org>
10870
10871 * w32fns.c (w32_get_arg): Remove wrapper function.
10872 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10873 directly.
10874 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10875
108762008-07-14 Kenichi Handa <handa@m17n.org>
10877
10878 * xfont.c (xfont_open): Add workaround for X's bug.
10879
108802008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10881
10882 * fontset.c: Include <stdio.h> unconditionally.
10883
108842008-07-13 Michael Albinus <michael.albinus@gmx.de>
10885
10886 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10887 for filtering.
10888
108892008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10890
10891 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10892
10893 * m/macppc.h:
10894 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10895
10896 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10897 (SPECIAL_EMACS_INT):
10898 * m/ia64.h (SPECIAL_EMACS_INT):
10899 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10900 * s/gnu.h (NLIST_STRUCT):
10901 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10902 * s/gnu-linux.h (LINUX):
10903 * s/msdos.h (HAVE_FACES):
10904 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10905
10906 * systty.h:
10907 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10908 anymore.
10909
109102008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10911
10912 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10913 always defined as int.
10914
10915 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10916 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10917 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10918 * s/freebsd.h (HAVE_WAIT_HEADER):
10919 * s/bsd-common.h (HAVE_UNION_WAIT):
10920 * s/aix4-2.h (HAVE_WAIT_HEADER):
10921 * m/mips.h (HAVE_UNION_WAIT):
10922 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10923 (COFF, static): Do not define, they are undefined later in the file.
10924
10925 * process.c (update_status): Don't use a union.
10926 (status_convert):
10927 (sigchld_handler): Use int instead of WAITTYPE.
10928
109292008-07-12 Chong Yidong <cyd@stupidchicken.com>
10930
10931 * indent.c (Fvertical_motion): Restore hscroll before moving to
10932 goal column.
10933
109342008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10935
10936 * lisp.h: Remove left over code.
10937
109382008-07-11 Andreas Schwab <schwab@suse.de>
10939
10940 * lisp.h: Fix logic in last change.
10941
10942 * menu.h: New file.
10943 * menu.c: Include it.
10944 * xmenu.c: Likewise.
10945 * Makefile.in: Update dependencies.
10946
109472008-07-11 Kenichi Handa <handa@m17n.org>
10948
10949 * fontset.c (fontset_from_font): Cancel the previous change.
10950
109512008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10952
10953 * lisp.h:
10954 * w32heap.c:
10955 * emacs.c:
10956 * alloc.c: Replace all references of NO_UNION_TYPE with
10957 USE_LISP_UNION_TYPE.
10958
10959 * m/xtensa.h (NO_UNION_TYPE):
10960 * m/vax.h (NO_UNION_TYPE):
10961 * m/template.h (NO_UNION_TYPE):
10962 * m/sparc.h (NO_UNION_TYPE):
10963 * m/mips.h (NO_UNION_TYPE):
10964 * m/macppc.h (NO_UNION_TYPE):
10965 * m/m68k.h (NO_UNION_TYPE):
10966 * m/iris4d.h (NO_UNION_TYPE):
10967 * m/intel386.h (NO_UNION_TYPE):
10968 * m/ibms390x.h (NO_UNION_TYPE):
10969 * m/ibms390.h (NO_UNION_TYPE):
10970 * m/ibmrs6000.h (NO_UNION_TYPE):
10971 * m/ia64.h (NO_UNION_TYPE):
10972 * m/hp800.h (NO_UNION_TYPE):
10973 * m/arm.h (NO_UNION_TYPE):
10974 * m/amdx86-64.h (NO_UNION_TYPE):
10975 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10976 defining it the same.
10977
109782008-07-10 Chong Yidong <cyd@stupidchicken.com>
10979
10980 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10981
109822008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10983
10984 * fileio.c:
50426a04 10985 * sysdep.c:
aac0c6e3
MR
10986 * systty.h:
10987 * m/ibmrs6000.h:
10988 * m/iris4d.h:
10989 * s/aix4-2.h:
10990 * s/freebsd.h:
10991 * s/gnu-linux.h:
10992 * s/hpux10-20.h:
10993 * s/hpux11.h:
10994 * s/netbsd.h:
10995 * s/sol2-3.h:
10996 * s/sol2-4.h:
10997 * s/sol2.h:
10998 * s/usg5-4.h:
10999 * s/vms.h: Remove references to unused variables.
11000
110012008-07-10 Andreas Schwab <schwab@suse.de>
11002
11003 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11004 pattern before matching the generic family.
11005
110062008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11007
11008 * unexec.c:
11009 * s/vms.h:
11010 * s/usg5-4-2.h:
11011 * s/sol2-5.h:
11012 * s/freebsd.h:
11013 * s/darwin.h: Remove dead code.
11014
11015 * m/template.h:
11016 * m/sparc.h:
11017 * m/mips.h:
11018 * m/m68k.h:
11019 * m/iris4d.h:
11020 * m/intel386.h:
11021 * m/ibms390x.h:
11022 * m/ibms390.h:
11023 * m/ia64.h:
11024 * m/hp800.h:
11025 * m/arm.h:
11026 * m/amdx86-64.h: Remove dead code and references to unused
11027 and compiler defined symbols.
11028
11029 * unexmips.c:
11030 * unexelf.c: Remove references to desupported systems.
11031
11032 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11033
11034 * m/powermac.h: Remove boilerplate comments.
11035 (NO_REMAP): Remove unused definition.
11036
11037 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11038 define them.
11039
110402008-07-10 Kenichi Handa <handa@m17n.org>
11041
11042 * xfont.c (xfont_open): Log the reason of failure.
11043
110442008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11045
11046 * fontset.c (fontset_get_font_group):
11047 * font.c (font_check_otf): Specify argument types.
11048
110492008-07-09 Kenichi Handa <handa@m17n.org>
11050
11051 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11052 non-ASCII char is found.
11053
11054 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11055 (reorder_font_vector): Change the arg preferred_family to font.
11056 Prefer the spec matching with font.
11057 (fontset_get_font_group): New function.
11058 (fontset_find_font): Change the format of an element of a realized
11059 fontset. Use fontset_get_font_group.
11060 (fontset_font): Try the current fontset, the default fontset, the
11061 fallbacks of the current fontset, and the fallbacks of the default
11062 fontset in this order.
11063 (face_for_char): Delete the shortcut to use the current font.
11064 (fontset_from_font): Don't set fonts for Latin in the fontset.
11065
11066 * font.h (font_make_object, font_match_p): Adjust prototypes.
11067
11068 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11069
11070 * font.c (font_make_object): New arg entity and pixelsize.
11071 (font_check_otf_features, font_check_otf): New functions.
11072 (font_match_p): Check :lang, :script, and :otf properties.
11073
11074 * xfont.c (xfont_open): Adjust it for the change of
11075 font_make_object.
11076 (xfont_text_extents): Fix initial setting of metrics.
11077
11078 * ftfont.c (struct ftfont_info): New member index, delete member
11079 fc_charset_idx. Make the member order compatible with struct
11080 xftfont_info.
11081 (fc_charset_table): Change charset names to registry names.
11082 (ftfont_pattern_entity): Delete the args registry and
11083 fc_charset_idx. Change the value of :font-entity property
11084 to (FONTNAME . INDEX). Always set :registry property to
11085 `iso10646-1'.
11086 (struct ftfont_cache_data): New struct.
11087 (ftfont_lookup_cache): New arg for_face.
11088 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11089 (ftfont_driver): Set the member otf_capability.
11090 (ftfont_get_charset): Adjust it for the change of
11091 fc_charset_table.
11092 (OTF_TAG_SYM): New macro.
11093 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11094 for the change of fc_charset_table.
11095 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11096 ftfont_pattern_entity. Add FC_INDEX to objset.
11097 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11098 and ftfont_pattern_entity.
11099 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11100 font_make_object, struct ftfont_info.
11101 (ftfont_has_char): Use ftfont_get_fc_charset.
11102 (ftfont_otf_features, ftfont_otf_capability): New functions.
11103 (ftfont_shape): Use ftfont_get_otf.
11104 (ftfont_text_extents): Fix initial setting of metrics.
11105
11106 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11107 member order compatible with struct ftfont_info.
11108 (xftfont_open): Add FC_CHARSET to the pattern. Set
11109 xftfont_info->ft_size. Don't unlock the face. Check BDF
11110 properties if appropriate.
11111 (xftfont_close): Unlock the face.
11112 (xftfont_anchor_point, xftfont_shape): Deleted.
11113 (syms_of_xftfont): Don't set members anchor_point and shape of
11114 xftfont_driver.
11115
11116 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11117 font_make_object.
11118
11119 * w32font.c (w32font_open): Adjust it for the change of
11120 font_make_object.
11121 (w32font_open_internal): Don't set properties of font_object here.
11122
111232008-07-08 Chong Yidong <cyd@stupidchicken.com>
11124
11125 * macfns.c (x_create_tip_frame):
11126 * w32fns.c (x_create_tip_frame):
11127 * xfns.c (x_create_tip_frame): Pass parameter argument to
11128 face-set-after-frame-default.
11129
11130 * xfaces.c (Finternal_merge_in_global_face): Save merged
11131 attributes for the default face back into the face vector.
11132
111332008-07-08 Andreas Schwab <schwab@suse.de>
11134
11135 * fontset.h: Declare fontset_from_font. Don't declare
11136 new_fontset_from_font and fontset_from_font_name.
11137 * xterm.c: Include "fontset.h".
11138 * Makefile.in (xterm.o): Update dependencies.
11139
111402008-07-08 Glenn Morris <rgm@gnu.org>
11141
11142 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11143 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11144
111452008-07-07 Chong Yidong <cyd@stupidchicken.com>
11146
11147 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11148 (x_set_frame_parameters): Don't bind it.
11149
111502008-07-07 Juanma Barranquero <lekktu@gmail.com>
11151
11152 * w32fns.c (map_w32_filename): Declare extern.
11153
111542008-07-07 Jason Rumney <jasonr@gnu.org>
11155
11156 * w32term.c (WS_EX_LAYERED): Define if not already.
11157
111582008-07-06 Chong Yidong <cyd@stupidchicken.com>
11159
11160 * xfaces.c (set_font_frame_param): Don't try to set the font
11161 parameter if it is still unspecified in the lface.
11162
111632008-07-05 Chong Yidong <cyd@stupidchicken.com>
11164
11165 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11166 face if it didn't already exist.
11167
11168 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11169
111702008-07-05 Andreas Schwab <schwab@suse.de>
11171
11172 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11173
111742008-07-05 Chong Yidong <cyd@stupidchicken.com>
11175
11176 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11177 word-wrapping.
11178 (IT_DISPLAYING_WHITESPACE): New macro.
11179 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11180 when word-wrapping. Simplify word-wrapping logic. Use correct
11181 pixel positions when saving copies of the iterator.
11182 (display_line): Use proper wrap point if the last character on a
11183 line was preceded by whitespace.
11184
111852008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11186
11187 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11188
111892008-07-04 Kenichi Handa <handa@m17n.org>
11190
11191 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11192
11193 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11194
111952008-07-02 Jason Rumney <jasonr@gnu.org>
11196
11197 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11198 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11199
11200 * xdisp.c (next_element_from_display_vector): Move assignment out
11201 of if statement.
11202
112032008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11204
11205 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11206
11207 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11208 (syms_of_fileio): Initialize and export them.
11209 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11210
11211 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11212 (Fsystem_move_file_to_trash): New function.
11213 (syms_of_w32fns): Export it to lisp.
11214
112152008-07-01 Jason Rumney <jasonr@gnu.org>
11216
11217 * w32font.c (w32font_text_extents): Don't count overhang as part
11218 of width.
11219
112202008-06-30 Miles Bader <miles@gnu.org>
11221
11222 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11223 Add `avoid_cursor_p' field.
11224
11225 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11226 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11227 (append_glyph, append_composite_glyph, produce_image_glyph)
11228 (append_stretch_glyph): Initialize avoid_cursor_p.
11229 (get_it_property): Rename from `get_line_height_property'.
11230 (x_produce_glyphs): Use get_it_property.
11231 (handle_line_prefix, push_display_prop): New functions.
11232 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11233 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11234 New variables.
11235 (syms_of_xdisp): Initialize them.
11236
112372008-06-30 Kenichi Handa <handa@m17n.org>
11238
11239 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11240 XftDefaultSubstitute (they are called in XftFontMatch).
11241 (xftfont_open): Fix args to ftfont_font_format.
11242
11243 * ftfont.c (fc_charset_table): New member lang.
11244 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11245 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11246 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11247 (ftfont_open): Fix args to ftfont_font_format.
11248 (ftfont_font_format): New arg filename.
11249
112502008-06-30 Chong Yidong <cyd@stupidchicken.com>
11251
11252 * xfaces.c (Finternal_merge_in_global_face): If default face was
11253 modified, realize it again. Update the font face attribute.
11254
112552008-06-29 Jason Rumney <jasonr@gnu.org>
11256
11257 * w32term.c (x_set_frame_alpha): Fix logic.
11258
112592008-06-29 Kenichi Handa <handa@m17n.org>
11260
11261 * fontset.c (Finternal_char_font): Return font-object instead of
11262 font-name.
11263
11264 * composite.c (get_composition_id): Fix the width calculation for TAB.
11265
112662008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11267
11268 * indent.c (Fvertical_motion): Properly handle float column arg.
11269
112702008-06-28 Jason Rumney <jasonr@gnu.org>
11271
11272 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11273 (pfnSetLayeredWindowAttributes): New function pointer.
11274 (w32_initialize): Initialize it when supported.
11275 (x_set_frame_alpha): New function.
11276
11277 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11278 (w32_frame_parm_handlers): Set alpha handler.
11279
11280 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11281
112822008-06-27 Jason Rumney <jasonr@gnu.org>
11283
11284 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11285 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11286 (w32_to_x_charset, x_to_w32_charset)
11287 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11288 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11289 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11290 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11291 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11292 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11293 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11294 (Qw32_charset_unicode): Remove.
11295 (syms_of_w32fns): Update for above changes.
11296
11297 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11298 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11299 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11300 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11301 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11302 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11303 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11304 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11305 (syms_of_w32font): Update for above changes.
11306
113072008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11308
11309 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11310 removed #if.
11311 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11312
113132008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 11314 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11315
11316 * makefile.w32-in (LOCAL_FLAGS):
11317 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11318
11319 * sysdep.c (_spawnlp, _getpid):
11320 Declare with explicit _cdecl instead of _CRTAPI1.
11321
11322 * editfns.c (Fget_internal_run_time):
11323 Check for WINDOWSNT with #ifdef, not #if.
11324
113252008-06-26 Jason Rumney <jasonr@gnu.org>
11326
11327 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11328
11329 * w32term.c (x_draw_glyph_string_foreground)
11330 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11331 Use FONT_HANDLE macro.
11332 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11333
11334 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11335 (uniscribe_encode_char): Use FONT_HANDLE macro.
11336
11337 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11338 (w32font_text_extents): Use precast w32_font.
11339 (w32font_close): Free cached metrics.
11340 (w32font_open_internal): Allocate space for name on stack.
11341
113422008-06-26 Chong Yidong <cyd@stupidchicken.com>
11343
11344 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11345
113462008-06-26 Jason Rumney <jasonr@gnu.org>
11347
11348 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11349 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11350
113512008-06-26 Juanma Barranquero <lekktu@gmail.com>
11352
11353 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11354
113552008-06-26 Jason Rumney <jasonr@gnu.org>
11356
11357 * w32bdf.c, w32bdf.h: Remove obsolete files.
11358
11359 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11360
11361 * w32gui.h: Don't include w32bdf.h.
11362 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11363 Remove obsolete font support.
11364
11365 * w32font.h (struct w32font_info): Remove compat_w32_font.
11366 Add hfont member.
11367 (FONT_COMPAT): Remove obsolete macro.
11368
11369 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11370 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11371 (w32font_open_internal): Remove compat code. Set new hfont member.
11372 (Fx_select_font): Use new hfont member.
11373
11374 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11375 (uniscribe_encode_char): Use new hfont member.
11376
11377 * w32term.c (x_draw_glyph_string_foreground)
11378 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11379 (x_draw_glyph_string): Use metrics in w32font_info.
11380
113812008-06-26 Kenichi Handa <handa@m17n.org>
11382
11383 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11384
113852008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11386
11387 * unexnext.c:
11388 * m/ews4800.h:
11389 * m/hp9000s300.h:
11390 * m/ibm370aix.h:
11391 * m/mips-siemens.h:
11392 * m/ncr386.h:
11393 * m/next.h:
11394 * m/pmax.h:
11395 * m/powerpcle.h:
11396 * m/tandem-s2.h:
11397 * s/386bsd.h:
11398 * s/bsd386.h:
11399 * s/bsd4-1.h:
11400 * s/bsd4-2.h:
11401 * s/bsdos2-1.h:
11402 * s/bsdos2.h:
11403 * s/bsdos3.h:
11404 * s/bsdos4.h:
11405 * s/nextstep.h:
11406 * s/ultrix4-3.h:
11407 * s/usg5-0.h:
11408 * s/usg5-2-2.h:
11409 * s/usg5-2.h:
11410 * s/usg5-4-3.h:
11411 * s/ux4800.h:
11412 * s/uxpds.h:
11413 * s/uxpv.h: Remove support for obsolete systems.
11414 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11415 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11416 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11417 Remove, insert contents in s/aix4-2.h.
11418 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11419 * s/bsd4-3.h: Rename to ...
11420 * s/bsd-common.h: ... this.
11421 * data.c:
11422 * doc.c:
11423 * ecrt0.c:
11424 * emacs.c:
11425 * fileio.c:
11426 * floatfns.c:
11427 * keyboard.c:
11428 * mem-limits.h:
11429 * print.c:
11430 * process.c:
11431 * sysdep.c:
11432 * syssignal.h:
11433 * systty.h:
11434 * syswait.h:
11435 * term.c:
11436 * unexec.c:
11437 * unexelf.c:
11438 * unexhp9k800.c:
11439 * m/hp800.h:
11440 * m/ibmrs6000.h:
11441 * m/mips.h:
11442 * m/vax.h:
11443 * s/darwin.h:
11444 * s/freebsd.h:
11445 * s/gnu.h:
11446 * s/ms-w32.h:
11447 * s/msdos.h:
11448 * s/netbsd.h:
11449 * s/template.h: Remove references to obsolete variables.
11450
11451 * Makefile.in: Add dependencies for all unexec files.
11452 (admindir): Remove unused variable.
11453 (UNEXEC_SRC): Remove references.
11454
114552008-06-25 Chong Yidong <cyd@stupidchicken.com>
11456
11457 * xfns.c (x_default_font_parameter): If Xft is available, first
11458 try Monospace-12 for the default font.
11459
114602008-06-25 Jason Rumney <jasonr@gnu.org>
11461
11462 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11463
114642008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11465
11466 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11467
11468 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11469
114702008-06-25 Juanma Barranquero <lekktu@gmail.com>
11471
11472 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11473 <scroll-conservatively>: Fix typo in docstring.
11474
11475 * xselect.c (Fx_send_client_event): Doc fix.
11476
114772008-06-25 Kenichi Handa <handa@m17n.org>
11478
11479 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11480
11481 * font.c (font_parse_fcname): Remove unused variables.
11482 (font_sort_entites): Delete the arg SPEC. Caller changed.
11483 Fix for the case of ! best_only.
11484 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11485
11486 * lisp.h (Fstring_to_unibyte): EXFUN it.
11487
11488 * character.h (str_to_unibyte): Extern it.
11489
11490 * character.c (str_to_unibyte): New function.
11491
11492 * fns.c (Fstring_to_unibyte): New function.
11493 (syms_of_fns): Defsubr it.
11494
114952008-06-24 Kenichi Handa <handa@m17n.org>
11496
11497 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11498 DPI too.
11499 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11500
115012008-06-24 Andreas Schwab <schwab@suse.de>
11502
11503 * Makefile.in (${lispsource}loaddefs.el): Rename from
11504 ../lisp/loaddefs.el.
11505 (bootstrap-clean): Do what distclean does but don't remove
11506 Makefile.
11507 (distclean): Depend on bootstrap-clean and remove Makefile.
11508
115092008-06-24 Chong Yidong <cyd@stupidchicken.com>
11510
11511 * buffer.h (struct buffer): New member word_wrap.
11512
11513 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11514 word-wrap.
11515 (init_buffer_once): Initialize them.
11516
11517 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11518 line_wrap enum possessing three possible values.
11519
11520 * termopts.h: Replace truncate_partial_width_windows with
11521 Vtruncate_partial_width_windows.
11522
11523 * dispnew.c (direct_output_for_insert): Avoid direct output when
11524 inserting a space with word wrap on.
11525
11526 * indent.c (compute_motion): Obey integer values of
11527 truncate-partial-width-windows.
11528
11529 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11530 replacing truncate_partial_width_windows.
11531 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11532 truncate only if the window width is below that integer.
11533 (start_display, resize_mini_window, produce_stretch_glyph)
11534 (display_string, move_it_in_display_line_to): Use line_wrap.
11535 (back_to_previous_visible_line_start, reseat_1): Reset
11536 string_from_display_prop_p.
11537 (display_line): Extend default face to end of line when wrapping.
11538
115392008-06-24 Kim F. Storm <storm@cua.dk>
11540
11541 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11542 to wrap continued lines at word boundaries.
11543
115442008-06-24 Jason Rumney <jasonr@gnu.org>
11545
11546 * font.c (Ffont_face_attributes): Multiply pixel size before point
11547 conversion to avoid multiplying rounding error.
11548
115492008-06-23 Jason Rumney <jasonr@gnu.org>
11550
11551 * w32term.c (x_draw_glyph_string_background)
11552 (x_draw_glyph_string): Remove old bdf font code.
11553
11554 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11555
115562008-06-22 Kenichi Handa <handa@m17n.org>
11557
11558 * font.c (font_find_for_lface): Try the adstyle specified in
11559 the property of LFACE_FONT of LFACE (if any).
11560
115612008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11562 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11563
11564 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11565
115662008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11567
11568 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11569 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11570 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11571 (witness-emacs): Remove.
11572 (lisp, shortlisp): Move loaddefs.el earlier.
11573 (mostlyclean): Forget about witness-emacs.
11574
115752008-06-22 Glenn Morris <rgm@gnu.org>
11576
11577 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11578 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11579
115802008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11581
11582 * Makefile.in (PRECOMP): Remove.
11583 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11584 (witness-emacs): Run `compile-first'.
11585 (.el.elc): Use the new compile-onefile target.
11586
115872008-06-21 Kenichi Handa <handa@m17n.org>
11588
11589 * xftfont.c (xftfont_open): Handle QCembolden only when
11590 FC_EMBOLDEN is defined.
11591
115922008-06-21 Andreas Schwab <schwab@suse.de>
11593
11594 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11595 (.el.elc): Likewise.
11596
115972008-06-21 Miles Bader <miles@gnu.org>
11598
11599 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11600 build dir, not the lisp source dir.
11601
116022008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11603
11604 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11605 (bootstrapclean): Remove.
11606 (.el.elc): New rule.
11607 (PRECOMP): New var.
11608 (../lisp/subdirs.el): Remove.
11609 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11610 (witness-emacs): New target.
11611 (mostlyclean): Remove witness-emacs as well.
11612 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11613 Add witness-emacs dependency.
11614
116152008-06-20 Chong Yidong <cyd@stupidchicken.com>
11616
11617 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11618 defined by the font.
11619
116202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11621
11622 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11623 (bootstrap-clean): New target that keeps TAGS around.
11624 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11625 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11626
116272008-06-20 Jason Rumney <jasonr@gnu.org>
11628
11629 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11630 Remove obsolete font code.
11631
11632 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11633 to determine language support.
11634
116352008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11636
11637 * sysdep.c (cfsetspeed): New fun extracted from the code.
11638 (cfmakeraw): Move before first use.
11639
116402008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11641
11642 * sysdep.c (cfmakeraw): Provide fallback implementation.
11643 (serial_configure): Provide fallback implementation of cfsetspeed.
11644
116452008-06-20 Kenichi Handa <handa@m17n.org>
11646
11647 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11648 the pattern.
11649
11650 * fontset.c (fontset_from_font): Copy font_spec before changing
11651 the elements.
11652
11653 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11654
116552008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11656
11657 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11658 for explicit `font' parameters.
11659
11660 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11661
116622008-06-19 Kenichi Handa <handa@m17n.org>
11663
11664 * frame.c: Include <ctype.h>.
11665 (x_set_font_backend): Allow spacing characters in the X resource
11666 for FontBackend.
11667
116682008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11669
11670 * w32fns.c, xfns.c (Qfont_param): New var.
11671 (syms_of_w32fns): Initialize it.
11672 (x_default_font_parameter): Record explicit `font' into
11673 `font-parameter'.
11674
116752008-06-18 Kenichi Handa <handa@m17n.org>
11676
11677 * font.c (font_parse_xlfd): Fix previous change.
11678 (font_parse_fcname): Don't use :fc-unknown-spec.
11679 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11680 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11681 (font_add_log): Prepend the driver name to the resulting fonts.
11682
11683 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11684 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11685 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11686
11687 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11688 (QCembolden): New variables.
11689 (syms_of_xftfont): DEFSYM them.
11690 (xftfont_open): Call XftFontMatch. Don't trust the result of
11691 XftTextExtents8 if the pixel_size is less than 5.
11692
116932008-06-18 Andreas Schwab <schwab@suse.de>
11694
11695 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11696 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11697
116982008-06-18 Jason Rumney <jasonr@gnu.org>
11699
11700 * w32font.c (w32font_list, w32font_match): Add logging.
11701
11702 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11703
117042008-06-17 Chong Yidong <cyd@stupidchicken.com>
11705
11706 * font.c (font_parse_fcname): Store divider characters for
11707 unknown-spec list. For known key symbols, intern using correct
11708 symbol name.
11709
117102008-06-17 Kenichi Handa <handa@m17n.org>
11711
11712 * xfaces.c (realize_default_face): If the frame is not on window
11713 system, set the fontset of face to nil.
11714
117152008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11716
11717 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11718
117192008-06-16 Juanma Barranquero <lekktu@gmail.com>
11720
11721 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11722 (build_font_name_from_vector): Delete externs.
11723
11724 * xfaces.c (struct font_name): Don't declare.
11725
117262008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11727
11728 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11729
117302008-06-16 Chong Yidong <cyd@stupidchicken.com>
11731
11732 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11733
117342008-06-16 Juanma Barranquero <lekktu@gmail.com>
11735
11736 * font.c (Ffont_spec): Fix usage in docstring.
11737 (Ffont_face_attributes): Doc fix.
11738
117392008-06-16 Andreas Schwab <schwab@suse.de>
11740
11741 * font.c (Ffont_face_attributes): Fix definition.
11742
117432008-06-16 Jason Rumney <jasonr@gnu.org>
11744
11745 * font.h (font_style_symbolic_from_value): Remove.
11746
11747 * font.c (font_style_symbolic_from_value): Remove.
11748 (font_style_symbolic): Revert to pre 2008-06-13 version.
11749
11750 * w32font.c (w32_to_fc_weight): New function.
11751 (w32font_full_name, logfont_to_fcname): Use it.
11752
117532008-06-16 Kenichi Handa <handa@m17n.org>
11754
11755 * font.c (font_check_object): Delete it.
11756 (font_clear_cache): Check if a font-object is alive.
11757 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11758 font-object to nil.
11759 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11760 (font_at): Don't call font_check_object.
11761 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11762
117632008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11764
11765 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11766
117672008-06-16 Chong Yidong <cyd@stupidchicken.com>
11768
11769 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11770
117712008-06-15 Chong Yidong <cyd@stupidchicken.com>
11772
11773 * font.c (font_parse_fcname): Only one decimal point.
11774 (font_unparse_fcname): Handle data in family and foundry indices
11775 as symbols, not strings.
11776 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11777
11778 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11779
11780 * font.h (font_unparse_gtkname): Add prototype.
11781
117822008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11783
11784 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11785
117862008-06-15 Andreas Schwab <schwab@suse.de>
11787
11788 * font.c (font_update_drivers): Fix crash when no drivers match.
11789
117902008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11791
11792 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11793 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11794
117952008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11796
11797 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11798
117992008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11800
11801 * process.c (Fserial_process_configure, Fprocess_send_eof):
11802 Use EQ to compare Lisp_Objects.
11803
118042008-06-13 Jason Rumney <jasonr@gnu.org>
11805
11806 * w32fns.c (Fw32_select_font): Remove old font API function.
11807
11808 * w32font.c (logfont_to_fcname): New function.
11809 (Fx_select_font): New font dialog function compatible with
11810 GTK/fontconfig version.
11811
11812 * font.c (font_style_symbolic_from_value): New function.
11813 (font_style_symbolic): Use it.
11814
11815 * font.h (font_style_symbolic_from_value): Declare new function.
11816
118172008-06-13 Juanma Barranquero <lekktu@gmail.com>
11818
11819 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11820 <font-width-table>: Fix typos in docstrings.
11821
118222008-06-13 Daniel Engeler <engeler@gmail.com>
11823
11824 These changes add serial port access.
11825 * process.c: Add HAVE_SERIAL.
11826 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11827 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11828 (list_processes_1, select_wrapper, Fstop_process)
11829 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11830 (status_notify): Modify to handle serial processes.
11831 [HAVE_SERIAL] (Fserial_process_configure)
11832 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11833 New functions.
11834 * process.h (struct Lisp_Process): Add `type'.
11835 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11836 New functions.
11837 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11838 serial ports.
b71ac3dd 11839 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11840 * w32.h: Add FILE_SERIAL.
11841 (struct _child_process): Add ovl_read, ovl_write.
11842
118432008-06-13 Kenichi Handa <handa@m17n.org>
11844
11845 * dispextern.h (enum lface_attribute_index): New member
11846 LFACE_FOUNDRY_INDEX.
11847
11848 * font.c (font_score): Delete arg alternate_families. Check only
11849 weight, slant, width, and size. Ignore the difference of alias
11850 style symbols.
11851 (font_sort_entites): Adjust for the above change. Reflect the
11852 order of font-driver to scores.
11853 (font_list_entities): Don't check alternate_familes here.
11854 (font_clear_prop): Handle foundry.
11855 (font_update_lface): Don't parse "foundry-family" form here.
11856 Handle FONT_FOUNDRY_INDEX.
11857 (font_find_for_lface): Likewise. Handle alternate families here.
11858 If registry is nil, try iso8859-1 and ascii-0.
11859 (font_open_for_lface): Pay attention to size in ENTITY.
11860 (font_open_by_name): Simplify by calling font_load_for_lface.
11861 (free_font_driver_list): Delete it.
11862 (font_update_drivers): Preserve the order of backends.
11863 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11864 of font_score and font_sort_entites.
11865 (font_update_sort_order): Likewise.
11866
11867 * xfaces.c (LFACE_FOUNDRY): New macro.
11868 (check_lface_attrs): Check foundry.
11869 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11870 (merge_face_vectors): Check foundry.
11871 (merge_face_ref): Likewise.
11872 (Finternal_set_lisp_face_attribute): Likewise.
11873 (x_update_menu_appearance): Likewise.
11874 (Finternal_get_lisp_face_attribute): Likewise.
11875 (lface_hash): Likewise.
11876 (lface_same_font_attributes_p): Likewise.
11877 (x_supports_face_attributes_p): Likewise.
11878 (tty_supports_face_attributes_p): Likewise.
11879 (Finternal_set_alternative_font_family_alist): Intern strings.
11880 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11881 (realize_default_face): Set LFACE_FOUNDRY (lface).
11882
11883 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11884 font-driver at first.
11885
11886 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11887
118882008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11889
11890 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11891
118922008-06-12 Jim Meyering <meyering@redhat.com>
11893
11894 Make unexec_free handle NULL the same way free does.
11895 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11896
118972008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11898
11899 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11900 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11901 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11902 (WEAK_ALIAS): Simplify.
11903 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11904 when searching a unibyte buffer.
11905
119062008-06-12 Chong Yidong <cyd@stupidchicken.com>
11907
11908 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11909
119102008-06-12 Juanma Barranquero <lekktu@gmail.com>
11911
11912 * w32font.c: Include ctype.h.
11913
119142008-06-11 Jason Rumney <jasonr@gnu.org>
11915
11916 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11917 misreported as space.
11918 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11919 as aliases for registry iso10646-1.
11920
119212008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11922
11923 * buffer.c (clone_per_buffer_values): Skip `name'.
11924
119252008-06-11 Chong Yidong <cyd@stupidchicken.com>
11926
11927 * font.c (font_parse_fcname): Fix last change; accept decimal
11928 points in font size.
11929
119302008-06-10 Jason Rumney <jasonr@gnu.org>
11931
11932 * w32uniscribe.c (add_opentype_font_name_to_list):
11933 Skip non unicode fonts.
11934
119352008-06-10 Chong Yidong <cyd@stupidchicken.com>
11936
11937 * xfns.c (Fx_font_dialog): New function.
11938
11939 * gtkutil.c (xg_dialog_response_cb): Rename from
11940 xg_file_response_callback.
11941 (pop_down_dialog): Rename from pop_down_file_dialog.
11942 (xg_get_file_name): Callers changed.
11943 (xg_get_font_name): New function.
11944
11945 * gtkutil.h (xg_get_font_name): Insert prototype.
11946
119472008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11948
11949 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11950 x_underline_minimum_display_offset.
11951 (syms_of_xdisp): Declare it here rather than in xterm.c.
11952 * dispextern.h (underline_minimum_offset): Declare it.
11953 * w32term.c (x_draw_glyph_string): Use it.
11954 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11955 (syms_of_xterm): Don't declare it any more.
11956 (x_draw_glyph_string): Adjust to the new name.
11957
8719abec 119582008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11959
11960 * xterm.c (x_underline_minimum_display_offset): New var.
11961 (x_draw_glyph_string): Use it.
11962 (syms_of_xterm): Declare it.
11963
119642008-06-10 Chong Yidong <cyd@stupidchicken.com>
11965
11966 * font.c (font_parse_fcname): Accept GTK-style font names too.
11967
119682008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11969
11970 * dired.c (file_name_completion): Don't return t if the match is exact
11971 but with different capitalization.
11972 * minibuf.c (Ftry_completion): Simplify.
11973
11974 * window.c (Vwindow_point_insertion_type): New var.
11975 (set_window_buffer): Use it.
11976 (syms_of_window): Init and export it to Lisp.
11977
119782008-06-10 Kenichi Handa <handa@m17n.org>
11979
11980 * font.h (font_intern_prop): Prototype adjusted.
11981
11982 * font.c (font_intern_prop): New arg force_symbol.
11983 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11984 Adjust for the change of font_intern_prop.
11985
11986 * ftfont.c (ftfont_pattern_entity):
11987 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11988 (w32_registry):
11989 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11990 the change of font_intern_prop.
11991
119922008-06-09 Juanma Barranquero <lekktu@gmail.com>
11993
11994 * w32menu.c (digest_single_submenu): Declare extern.
11995
119962008-06-09 Jason Rumney <jasonr@gnu.org>
11997
11998 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11999
12000 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12001 (parse_single_submenu): Remove.
12002 (digest_single_submenu): Remove.
12003 (syms_of_w32menu): Don't initialise variables that have moved
12004 to menu.c.
12005 (set_frame_menubar): Sync with version in xmenu.c.
12006 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12007
12008 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12009 Make static again.
12010
120112008-06-09 Jason Rumney <jasonr@gnu.org>
12012
12013 Changes to w32 files related to the move of common menu code
12014 to menu.c on 2008-06-08 by Chong Yidong.
12015
12016 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12017 defs to w32gui.h.
12018 (single_keymap_panes, push_menu_item, push_menu_pane):
12019 Make globally visible.
12020
12021 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12022 (local_free, malloc_widget_value, free_widget_value)
12023 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12024 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12025 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12026 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12027 (menu_items, menu_items_allocated, menu_items_used)
12028 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12029 (init_menu_items, finish_menu_items, discard_menu_items)
12030 (grow_menu_items, push_submenu_start, push_submenu_end)
12031 (push_left_right_boundary, push_menu_pane, push_menu_item)
12032 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12033 (free_menubar_widget_tree_value, parse_single_submenu)
12034 (update_submenu_strings): Remove functions.
12035 (xmalloc_widget_value): Remove and declare extern.
12036
12037 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12038 (OBJ1): Build it.
12039
12040 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12041 (local_heap, local_alloc, local_free, malloc_widget_value)
12042 (free_widget_value): Define here.
12043
120442008-06-09 Kenichi Handa <handa@m17n.org>
12045
12046 * font.h (Qascii_0): Extern it.
12047
12048 * font.c (Qascii_0): New variable.
12049 (syms_of_font): DEFSYM it.
12050 (font_open_by_name): If the registry "iso8859-1" fails, try also
12051 "ascii-0".
12052
12053 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12054
120552008-06-08 Kenichi Handa <handa@m17n.org>
12056
12057 * .gdbinit (xfont): New command.
12058
120592008-06-08 Andreas Schwab <schwab@suse.de>
12060
12061 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12062 * Makefile.in (menu.o): Update dependencies.
12063
12064 * Makefile.in (obj): Always add menu.o.
12065 * emacs.c (main): Always call syms_of_menu.
12066 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12067
120682008-06-08 Chong Yidong <cyd@stupidchicken.com>
12069
12070 * Makefile.in: Compile menu.c.
12071
12072 * lisp.h: Declare syms_of_menu.
12073
12074 * emacs.c (main): Call syms_of_menu.
12075
12076 * keyboard.h: Relocate platform-independent menu definitions from
12077 xmenu.c.
12078
12079 * menu.c: New file. Relocate platform-independent menu
12080 definitions from xmenu.c. Suggested by Adrian Robert.
12081
12082 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12083 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12084 (menu_items_used, menu_items_n_panes)
12085 (menu_items_submenu_depth): Move to keyboard.h.
12086 (init_menu_items, finish_menu_items, unuse_menu_items)
12087 (discard_menu_items, restore_menu_items, save_menu_items)
12088 (grow_menu_items, push_submenu_start, push_submenu_end)
12089 (push_left_right_boundary, push_menu_pane, push_menu_item)
12090 (keymap_panes, single_keymap_panes, single_menu_item)
12091 (list_of_panes, list_of_items, find_and_call_menu_selection)
12092 (xmalloc_widget_value, free_menubar_widget_value_tree)
12093 (parse_single_submenu, digest_single_submenu)
12094 (update_submenu_strings): Move to menu.c.
12095
120962008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12097
12098 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12099
121002008-06-06 Miles Bader <miles@gnu.org>
12101
12102 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12103 face, not frame default.
12104
121052008-06-05 Martin Rudalics <rudalics@gmx.at>
12106
12107 * window.c (pop_up_windows, pop_up_frames)
12108 (display_buffer_reuse_frames, Vpop_up_frame_function)
12109 (Vdisplay_buffer_function, Veven_window_heights)
12110 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12111 (Vspecial_display_function, Vsame_window_buffer_names)
12112 (Vsame_window_regexps, split_height_threshold)
12113 (Vsplit_window_preferred_function): Move those vars to window.el.
12114 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12115 (Fdisplay_buffer): Move those functions to window.el.
12116 (syms_of_window): Remove corresponding declarations.
12117 (display_buffer): New function.
12118 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12119 * dispnew.c (Flast_nonminibuf_frame): New function.
12120 * buffer.c (Fpop_to_buffer): Move to window.el.
12121
121222008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12123
12124 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12125
121262008-06-05 Kenichi Handa <handa@m17n.org>
12127
12128 * coding.c (detect_coding): Fix previous change.
12129 (detect_coding_system): Likewise.
12130
121312008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12132
12133 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12134
12135 * keymap.c (Vminibuffer_local_filename_must_match_map):
12136 Rename from Vminibuffer_local_must_match_filename_map.
12137 (syms_of_keymap):
12138 * minibuf.c (Fcompleting_read): Adjust accordingly.
12139 * commands.h: Rename declaration as well.
12140
121412008-06-05 Kenichi Handa <handa@m17n.org>
12142
12143 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12144 family name.
12145 (Ffont_put): Likewise.
12146
12147 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12148 current font-spec.
12149
12150 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12151 is unspecified.
12152
12153 * xfaces.c (realize_x_face): If the font-related face attributes
12154 are the same as those of default face, realize a new fontset from
12155 default->fontset.
12156 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12157
121582008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12159
12160 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12161 (move_it_in_display_line): New wrapper.
12162
12163 * window.c (window_scroll_pixel_based_preserve_x)
12164 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12165 (window_scroll_pixel_based, window_scroll_line_based):
12166 Use them to preserve column positions.
12167 (syms_of_window): Initialize them.
12168
12169 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12170 (HPOS . VPOS) pair.
12171
12172 * dispextern.h (move_it_in_display_line): Declare.
12173
121742008-06-05 Juanma Barranquero <lekktu@gmail.com>
12175
12176 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12177 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12178 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12179
121802008-06-04 Juanma Barranquero <lekktu@gmail.com>
12181
12182 * window.c (Fset_window_parameter): Doc fix.
12183 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12184
121852008-06-04 Joakim Verona <joakim@verona.se>
12186
12187 * window.h (struct window): Add new member window_parameters.
12188
12189 * window.c (Fwindow_parameters, Fwindow_parameter)
12190 (Fset_window_parameter): New defuns.
12191 (syms_of_window): Defsubr the new defuns.
12192 (make_window): Initialize window_parameters to nil.
12193
121942008-06-04 John Paul Wallington <jpw@pobox.com>
12195
12196 * eval.c (Fdefmacro): Doc fix.
12197
121982008-06-04 Kenichi Handa <handa@m17n.org>
12199
12200 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12201 Be sure to call setup_coding_system when we find a proper coding system.
12202 (detect_coding_system): Fix handling of coding->head_ascii.
12203
122042008-06-03 Andreas Schwab <schwab@suse.de>
12205
12206 * font.c (font_prop_validate_spacing): Fix last change.
12207
122082008-06-03 Kenichi Handa <handa@m17n.org>
12209
12210 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12211 (font_parse_fcname): Fix handling of unknown key.
12212
12213 * xfont.c (xfont_list): Try an alias.
12214
12215 * charset.c (char_charset): Return NULL if the arg charset_list is
12216 specified and C doesn't belong to any of them.
12217
122182008-06-02 Chip Coldwell <coldwell@redhat.com>
12219
12220 * font.c (font_pixel_size): Don't take cdr of an integer.
12221
122222008-06-02 Jim Meyering <meyering@redhat.com>
12223
12224 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12225 * alloc.c (xfree): Return right away for a NULL arg.
12226 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12227 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12228 * mac.c (create_apple_event_from_event_ref): Likewise.
12229 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12230 Likewise.
12231 * doprnt.c (doprnt1): Likewise.
12232 * frame.c (frame): Likewise.
12233 * keyboard.c (wipe_kboard): Likewise.
12234 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12235 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12236 * term.c (tty_default_color_capabilities, maybe_fatal)
12237 (delete_tty): Likewise.
12238 * w16select.c (string): Likewise.
12239 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12240 * w32bdf.c (w32_free_bdf_font): Likewise.
12241 * w32fns.c (w32_unload_font): Likewise.
12242 * w32font.c (w32font_close): Likewise.
12243 * window.c (size_window): Likewise.
12244 * xselect.c (receive_incremental_selection): Likewise.
12245 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12246 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12247 * w32.c (stat): Likewise.
12248
12249 Remove useless if-before-free tests.
12250 * editfns.c (Fset_time_zone_rule): Likewise.
12251 * lread.c (nosuffix): Likewise.
12252 * ralloc.c (get_bloc): Likewise.
12253 * regex.c (reg_free): Likewise.
12254 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12255 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12256 * xsmfns.c (smc_save_yourself_CB): Likewise.
12257
122582008-06-02 Kenichi Handa <handa@m17n.org>
12259
12260 * font.c (font_find_for_lface): Handle float font size.
12261 (font_open_for_lface): Likewise.
12262
12263 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12264 comparing the properties.
12265
122662008-06-01 Jason Rumney <jasonr@gnu.org>
12267
12268 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12269 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12270 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12271 Don't add empty script list.
12272 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12273
122742008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12275
12276 * Makefile.in (dot, dotdot): Remove, update users.
12277 ".." has been used elsewhere in the file for a long time.
12278 (LIBXT_STATIC): Remove conditional based on unused variable.
12279
122802008-06-01 Miles Bader <miles@gnu.org>
12281
12282 * xfaces.c (Vface_remapping_alist): New variable.
12283 (syms_of_xfaces): Initialize it.
12284 (enum named_merge_point_kind): New type.
12285 (struct named_merge_point): Add `named_merge_point_kind' field.
12286 (push_named_merge_point): Make cycle detection respect different
12287 named-merge-point kinds.
12288 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12289 Remove face-name alias resolution.
12290 (lface_from_face_name): New definition using
12291 `lface_from_face_name_no_resolve'.
12292 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12293 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12294 (get_lface_attributes): New definition that layers face-remapping on
12295 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12296 (lookup_basic_face): New function.
12297 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12298 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12299 `get_lface_attributes'.
12300 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12301 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12302 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12303
12304 * xdisp.c (init_iterator): Pass base_face_id through
12305 `lookup_basic_face' when we actually use it as a face-id.
12306 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12307 DEFAULT_FACE_ID.
12308
12309 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12310 lookup the initial face-id.
12311
12312 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12313
123142008-06-01 Juanma Barranquero <lekktu@gmail.com>
12315
12316 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12317 (Fremove_text_properties): Fix typos in docstrings.
12318
123192008-05-31 Kenichi Handa <handa@m17n.org>
12320
12321 * font.c (font_list_entities): Fix the car part of data to be
12322 stored in the cache.
12323
12324 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12325
123262008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12327
12328 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12329 Add a `test' argument so another predicate than `equal' can be used.
12330 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12331 (map_char_table): Remove unused vars `c' and `i'.
12332 * lisp.h (Foptimize_char_table): Adjust declaration.
12333 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12334
123352008-05-30 Kenichi Handa <handa@m17n.org>
12336
12337 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12338 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12339 defined.
12340
123412008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12342
12343 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12344 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12345 frame-local settings for the same variable.
12346
123472008-05-30 Kenichi Handa <handa@m17n.org>
12348
12349 * fontset.c (Ffont_info): Move to font.c.
12350 (syms_of_fontset): Delete defsubr of Sfont_info.
12351
12352 * font.c (font_style_to_value, font_score): Delete casting of the
12353 args to xstcasecmp.
12354 (register_font_driver): Increment num_font_drivers only when
12355 registering the driver globally.
12356 (Ffont_info): Move from fontset.c. Handle a font object too.
12357 (syms_of_font): Defsubr Sfont_info.
12358
123592008-05-29 Kenichi Handa <handa@m17n.org>
12360
12361 * coding.h (enum define_coding_utf8_arg_index): New enum.
12362 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12363 coding_attr_utf_bom.
12364 (enum utf_bom_type): Rename from utf_16_bom_type.
12365 (struct utf_16_spec): Adjust for the above change.
12366 (struct coding_system): Add utf_8_bom in `spec' union.
12367
12368 * coding.c (CODING_UTF_8_BOM): New macro.
12369 (enum coding_category): Delete coding_category_utf_8, add
12370 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12371 coding_category_utf_8_sig.
12372 (CATEGORY_MASK_UTF_8): Delete it.
12373 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12374 (CATEGORY_MASK_UTF_8_SIG): New macros.
12375 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12376 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12377 CATEGORY_MASK_UTF_8_SIG.
12378 (CATEGORY_MASK_UTF_8): New macro.
12379 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12380 (detect_coding_utf_8): Check BOM.
12381 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12382 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12383 (encode_coding_utf_16): Likewise.
12384 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12385 (detect_coding, detect_coding_system): Handle utf-8-auto.
12386 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12387 (syms_of_coding): Fix setting up of Vcoding_category_table.
12388
123892008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12390
12391 * process.c (Faccept_process_output): If `millisec' is non-nil,
12392 `seconds' default to 0.
12393 (wait_reading_process_output): Also return non-nil if we read output
12394 from a non-running process.
12395
123962008-05-29 Jason Rumney <jasonr@gnu.org>
12397
12398 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12399 `raster' specified.
12400 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12401 in the uniscribe backend, but disallow any font that has no
12402 unicode subrange support.
12403
124042008-05-29 Juanma Barranquero <lekktu@gmail.com>
12405
12406 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12407 Fix typos in docstrings.
12408
124092008-05-29 Kenichi Handa <handa@m17n.org>
12410
12411 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12412 (Fx_family_fonts): Set frame correctly.
12413
124142008-05-28 Jason Rumney <jasonr@gnu.org>
12415
12416 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12417
124182008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12419
12420 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12421 calling build_annotations.
12422
124232008-05-28 Juanma Barranquero <lekktu@gmail.com>
12424
12425 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12426 (Fencode_coding_string):
12427 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12428 <latin-extra-code-table>: Fix typos in docstrings.
12429 (syms_of_coding) <coding-system-alist>: Doc fix.
12430 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12431
124322008-05-28 Kenichi Handa <handa@m17n.org>
12433
12434 * fontset.c (Ffont_info): Don't call font_close_object.
12435
12436 * font.c (font_parse_family_registry): Use Ffont_put to validate
12437 foundry and family.
12438 (font_delete_unmatched): Don't check spacing.
12439 (font_list_entities): Add spacing to the spec to list fonts.
12440
12441 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12442 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12443
12444 * coding.c (encode_coding_raw_text): Fix previous change.
12445 (encode_coding_object): When the dst_object is a buffer and is
12446 different from src_object, move gap to PT.
12447
124482008-05-27 Chong Yidong <cyd@stupidchicken.com>
12449
12450 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12451
124522008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12453
12454 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12455 all branches. Compute it differently.
12456
12457 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12458
124592008-05-27 Juanma Barranquero <lekktu@gmail.com>
12460
12461 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12462 into "else if () ... else ...".
12463
124642008-05-27 Jason Rumney <jasonr@gnu.org>
12465
12466 * w32font.c (w32font_open_internal): Determine if glyph indices
12467 are likely to work here.
12468
124692008-05-27 Chong Yidong <cyd@stupidchicken.com>
12470
12471 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12472 draw overlap glyphs with appropriate highlighting.
12473
124742008-05-27 Kenichi Handa <handa@m17n.org>
12475
12476 * xfont.c (xfont_open): Fix calculation of font->average_width.
12477
124782008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12479
12480 * casefiddle.c (casify_object): Try to guess better whether the
12481 argument is a byte or a char.
12482
124832008-05-26 Andreas Schwab <schwab@suse.de>
12484
12485 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12486 Always send multiples of format size.
12487
12488 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12489
124902008-05-26 Jason Rumney <jasonr@gnu.org>
12491
12492 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12493 (compute_metrics): Don't set failure if we just cleared the cache.
12494 (w32_weight_table): Remove unused variable.
12495 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12496 backwards compatibility.
12497
124982008-05-25 Kenichi Handa <handa@m17n.org>
12499
12500 * w32term.c (x_draw_glyph_string):
12501 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12502
12503 * xfaces.c: Delete unused function prototypes.
12504 (xstrlwr, font_frame): Delete them.
12505 (clear_face_cache): Delete unused variable.
12506
12507 * xftfont.c (xftfont_open): Delete unused variable.
12508 If underline_thickness is not 1, adjust underline_position.
12509
12510 * ftxfont.c (ftxfont_open): Delete unused variable.
12511
12512 * fontset.c (face_for_char): Optimize for the case of no charset
12513 property.
12514
12515 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12516 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12517 (otf_open, font_otf_capability, generate_otf_features)
12518 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12519 Comment out by surrounding "#if 0" and "#endif" for the moment.
12520 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12521 (syms_of_font): Codes for accessing above commented out.
12522
125232008-05-24 Eli Zaretskii <eliz@gnu.org>
12524
12525 * w32proc.c: Include dispextern.h.
12526
12527 * w32.c: Include dispextern.h.
12528
125292008-05-23 Juanma Barranquero <lekktu@gmail.com>
12530
12531 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12532 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12533 Fix typos in docstrings.
12534
125352008-05-23 Jason Rumney <jasonr@gnu.org>
12536
12537 * xsmfns.c: Remove includes that are already included by config.h.
12538
125392008-05-23 Kenichi Handa <handa@m17n.org>
12540
12541 * charset.c (Qemacs, charset_emacs): New variables.
12542 (char_charset): Fix for non-Unicode characters.
12543 (syms_of_charset): Define charset_emacs.
12544
12545 * w32term.c (x_draw_glyph_string): Be sure to update
12546 s->underline_thickness and s->underline_position. Be sure to draw
12547 underline within the current line area.
12548
12549 * xterm.c (x_draw_glyph_string): Be sure to update
12550 s->underline_thickness and s->underline_position. Be sure to draw
12551 underline within the current line area.
12552
12553 * fontset.c: Delete unused variables and add casting for char *
12554 throughout the file.
12555 (fontset_font): Try the fallback fonts of the current fontset
12556 before consulting the default fontset.
12557
12558 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12559
12560 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12561
125622008-05-22 Jason Rumney <jasonr@gnu.org>
12563
12564 * font.c: Don't include strings.h.
12565
12566 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12567
12568 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12569 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12570 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12571 to call xstrcasecmp.
12572
12573 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12574
12575 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12576
12577 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12578
12579 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12580
125812008-05-22 Kenichi Handa <handa@m17n.org>
12582
12583 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12584
12585 * font.c (font_prop_validate_style): Adjust for the format
12586 change of font_style_table.
12587
12588 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12589 two args.
12590
12591 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12592 two args.
12593
125942008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12595
12596 * minibuf.c (keys_of_minibuf): Delete.
12597 * lisp.h (keys_of_minibuf): Delete.
12598 * emacs.c (main): Don't call keys_of_minibuf.
12599
126002008-05-22 Kenichi Handa <handa@m17n.org>
12601
12602 * ftfont.c (ftfont_resolve_generic_family): Rename from
12603 ftfont_list_generic_family. Return a single family for each
12604 generic family.
12605 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12606 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12607 Call font_add_log.
12608 (ftfont_match): Call font_add_log.
12609
12610 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12611 (FONT_DEBUG): Define it.
12612 (font_add_log): Extern it.
12613 (font_assert): Rename from xassert.
12614
12615 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12616 (xfont_list_family): Call font_add_log.
12617 (xfont_match): Likewise.
12618 (memq_no_quit): Delete.
12619
12620 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12621 call of Ffont_xlfd_name.
12622
12623 * xfaces.c (struct table_entry, slant_table, weight_table)
12624 (swidth_table): Move to font.c.
12625
12626 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12627 xassert are changed to font_assert. Delete many unused variables.
12628 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12629 New variables.
12630 (struct table_entry): Move from xfaces.c and modified.
12631 (weight_table, slant_table, width_table): Move from xfaces.c and
12632 contents adjusted for the change of struct table_entry.
12633 (font_style_to_value, font_style_symbolic): Adjust for the
12634 format change of font_style_table.
12635 (font_parse_family_registry): Don't overwrite existing foundry and
12636 family of font_spec.
12637 (font_score): Fix calculation of diff for sizes.
12638 (font_sort_entites): Call font_add_log.
12639 (font_delete_unmatched): Return a newly created list.
12640 (font_list_entities): Fix previous change. Call font_add_log.
12641 (font_matching_entity, font_open_entity, font_close_entity):
12642 Call font_add_log.
12643 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12644 (Finternal_set_font_style_table): Delete.
12645 (BUILD_STYLE_TABLE): New macro.
12646 (build_style_table): New function.
12647 (Vfont_log, font_log_env_checked): New variables.
12648 (font_add_log): New function.
12649 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12650 Declare Lisp variables "font-weight-table", "font-slant-table",
12651 "font-width-table", and "font-log". Initialize font_style_table.
12652
126532008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12654
12655 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12656
126572008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12658 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12659
12660 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12661 (Vframe_alpha_lower_limit): New variable.
12662 (x_set_alpha): New function.
12663
12664 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12665
12666 * xfns.c (x-create-frame, Qalpha):
12667 Initialize the frame parameter `alpha'.
12668 * xterm.c (OPAQUE, OPACITY): New.
12669 (x_set_frame_alpha): New function.
12670 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12671
12672 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12673 * w32fns.c (w32_frame_parm_handlers): Likewise.
12674
126752008-05-20 Jason Rumney <jasonr@gnu.org>
12676
12677 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12678 truetype fonts to opentype list.
12679
126802008-05-20 Juanma Barranquero <lekktu@gmail.com>
12681
12682 * fontset.c (Ffontset_info): Doc fix.
12683 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12684 <ignore-relative-composition>: Fix typos in docstrings.
12685
12686 * font.c (syms-of-font) <font-encoding-alist>:
12687 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12688 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12689 (Ffont_otf_alternates): Doc fixes.
12690
126912008-05-20 Kenichi Handa <handa@m17n.org>
12692
12693 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12694 font.h through out the file.
12695 (FONT_DRIVERS): Rename from FONTOBJ.
12696 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12697 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12698
12699 * emacs.c (main): Call syms_of_font unconditionally.
12700
12701 * font.h (find_font_encoding): Extern it.
12702
12703 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12704 fontset.c.
194d44e7 12705 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12706 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12707 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12708 only when HAVE_WINDOW_SYSTEM is defined.
12709 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12710 when HAVE_WINDOW_SYSTEM is defined.
12711
12712 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12713 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12714
12715 * xfaces.c: Include font.h unconditionally.
12716 (merge_face_ref, merge_face_vectors)
12717 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12718
127192008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12720
12721 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12722 indirect_variable.
12723 * eval.c (lisp_indirect_variable): New fun.
12724 (Fuser_variable_p): Use it.
12725
127262008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12727
12728 * lisp.h (indirect_variable):
12729 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12730 Use Lisp_Symbol pointers rather than Lisp_Object.
12731 Adjust callers.
12732 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12733 To this end, change calling-convention.
12734
12735 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12736 if some non-hidden buffers are selected by string&pred.
12737
127382008-05-19 Chong Yidong <cyd@stupidchicken.com>
12739
12740 * process.c (wait_reading_process_output): Always check status
12741 when in batch mode.
12742
127432008-05-19 Kenichi Handa <handa@m17n.org>
12744
12745 * font.c (font_list_entities): Fix handling of cache.
12746 (font_matching_entity): Likewise.
12747
12748 * ftfont.c (cs_iso8859_1): Delete.
12749 (ft_face_cache): New variable.
12750 (struct ftfont_info): New member fc_charset_idx.
12751 (ftfont_build_basic_charsets): Delete.
12752 (fc_charset_table): New variable.
12753 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12754 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12755 Callers changed.
12756 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12757 (ftfont_spec_pattern): New argument fc_charset_idx.
12758 Check registry more rigidly. Change callers.
12759 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12760 change of :font-entity property of the font.
12761
12762 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12763 property of the font.
12764
127652008-05-18 Juanma Barranquero <lekktu@gmail.com>
12766
12767 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12768 (Funencodable_char_position, Fcheck_coding_systems_region)
12769 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12770 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12771 (Ffind_operation_coding_system, Fset_coding_system_priority)
12772 (Fcoding_system_eol_type): Doc fixes.
12773
127742008-05-17 Glenn Morris <rgm@gnu.org>
12775
12776 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12777
127782008-05-16 Eli Zaretskii <eliz@gnu.org>
12779
12780 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12781 and st_gid.
12782
12783 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12784 HAVE_WINDOW_SYSTEM is not defined.
12785
12786 * xfaces.c (merge_face_ref, merge_face_vectors)
12787 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12788 HAVE_WINDOW_SYSTEM is defined.
12789 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12790
127912008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12792
12793 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12794
127952008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12796
12797 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12798
127992008-05-15 Kenichi Handa <handa@m17n.org>
12800
12801 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12802 preference.
12803
128042008-05-15 Glenn Morris <rgm@gnu.org>
12805
12806 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12807
128082008-05-15 Chong Yidong <cyd@stupidchicken.com>
12809
12810 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12811 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12812
12813 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12814
128152008-05-15 Kenichi Handa <handa@m17n.org>
12816
12817 * ftfont.c (ftfont_list): Downcase family name to check generic
12818 families.
12819
12820 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12821 font-spec for QCfont value.
12822
12823 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12824 buffer. Check the return value of it.
12825
128262008-05-14 Jason Rumney <jasonr@gnu.org>
12827
12828 * w32term.c (w32_get_glyph_overhangs): Remove.
12829 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12830
128312008-05-14 Kenichi Handa <handa@m17n.org>
12832
12833 * font.c (font_prop_validate): Make nil a valid value.
12834 (font_clear_cache): Check if the cached vector of entities is nil
12835 or not.
12836
128372008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12838
12839 * emacs.c (main_thread): Conditionalize on
12840 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12841 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12842
12843 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12844 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12845 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12846
128472008-05-14 Kenichi Handa <handa@m17n.org>
12848
12849 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12850 has no corresponding coding system.
12851
128522008-05-14 Jason Rumney <jasonr@gnu.org>
12853
12854 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12855
12856 * w32font.h (w32font_open_internal): Update declaration.
12857
12858 * w32font.c (w32font_open_internal): Change last argument from
12859 w32font_info struct to font object. Fill in font object from
12860 font_entity. Get Outline metrics if possible. Use them to
12861 calculate underline position and thickness. Use xlfd name as name
12862 property. Don't set codepage.
12863 (w32font_open): Pass font_object to w32font_open_internal. Don't
12864 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12865 (w32font_draw): Use s->font.
12866 (clear_cached_metrics): Don't clear non-existent blocks.
12867
12868 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12869 font was not found.
12870 (x_draw_glyph_string): Use underline position and thickness from font.
12871
12872 * w32uniscribe.c (uniscribe_open): Pass font_object to
12873 w32font_open_internal.
12874
128752008-05-14 Kenichi Handa <handa@m17n.org>
12876
12877 These changes are to delete all legacy font-handling codes, and
12878 make Emacs use only font-backends.
12879
12880 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12881 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12882
12883 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12884
12885 * charset.h (Vcharset_non_preferred_head)
12886 (Vcurrent_iso639_language): Extern them.
12887
12888 * charset.c (Vcharset_non_preferred_head): New variable.
12889 (Vcurrent_iso639_language): New variable.
12890 (syms_of_charset): Declare it as a Lisp variable.
12891 (char_charset): Don't check non preferred charsets. As a last
12892 resort, return charset_unicode.
12893 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12894
12895 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12896 conditionals. Don't check enable_font_backend. Delete all codes
12897 used only when USE_FONT_BACKEND is not defined.
12898
12899 * dispextern.h (struct glyph_string): Change type of `font' to
12900 `struct font *'.
12901 (struct glyph_string): New member underline_position and
12902 underline_thickness.
12903 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12904 (struct face): Change type of `font' to `struct font *'. Remove
12905 members `font_name', `font_info_id'.
12906 (per_char_metric, encode_char): Delete externs.
12907 (calc_pixel_width_or_height): Adjust the prototype.
12908
12909 * emacs.c (enable_font_backend): Delete extern.
12910 (main): Don't set enable_font_backend. Don't check the command
12911 line argument "-disable-font-backend".
12912
12913 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12914 (enum font_property_index): New members FONT_DPI_INDEX,
12915 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12916 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12917 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12918 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12919 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12920 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12921 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12922 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12923 (struct font_spec, struct font_entity): New structs.
12924 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12925 (struct font): Many members from old "struct font_info" moved to
12926 here. Members font and entity deleted.
12927 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12928 the new font-related objects.
12929 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12930 (CHECK_FONT_GET_OBJECT): Likewise.
12931 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12932 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12933 (struct font_driver): New members case_sensitive anc check. Type
12934 of the member list and open changed.
12935 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12936 (font_symbolic_width, font_find_object, font_get_spec)
12937 (font_set_lface_from_name): Delete extern.
12938 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12939
12940 * font.c: Include <strings.h>.
12941 (enable_font_backend): Delete it.
12942 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12943 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12944 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12945 (null_string): Delete it.
12946 (null_vector): Make it static.
12947 (font_family_alist): Delete it.
12948 (Qnormal): Extern it.
12949 (QCextra, QClanguage): Delete it.
12950 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12951 (font_make_spec, font_make_entity, font_make_object)
12952 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12953 the string. Callers changed.
12954 (font_pixel_size): Adjusted for the format change of font-related
12955 objects.
12956 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12957 (font_style_to_value, font_style_symbolic): New function.
12958 (build_font_family_alist): Delete it.
12959 (font_registry_charsets): Use Fassoc_string instead of
12960 assq_no_quit.
12961 (font_prop_validate_symbol): Don't return null_string.
12962 (font_prop_validate_style): Adjusted for the change of
12963 style-related values in a font vector.
12964 (font_property_table): Delete entries for QClanguage and
12965 QCantialias, add entries for QCavgwidth.
12966 (get_font_prop_index): Delete the 2nd argument FROM.
12967 (font_prop_validate): Arguments changed.
12968 (font_put_extra): Adjusted for the change of font-related objects.
12969 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12970 (font_parse_fcname, font_unparse_fcname)
12971 (font_prepare_composition): Likewise.
12972 (font_parse_family_registry): Renamed from font_merge_old_spec.
12973 (otf_open): Delete the 1st arg entity.
12974 (font_otf_capability): Adjusted for the above change.
12975 (font_score): New arg alternate_families. Adjusted for the change
12976 of font-related objects.
12977 (font_sort_entites): New arg best_only.
12978 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12979 Delete them.
12980 (font_match_p): Check alternate families.
12981 (font_find_object): Delete it.
12982 (font_check_object): New function.
12983 (font_clear_cache): Adjusted for the change of font-related objects.
12984 (font_delete_unmatched): New arg.
12985 (font_list_entities): Call font_driver->list with a spec that
12986 doesn't specify style-related properties.
12987 (font_matching_entity): Arguments changed. Caller changed.
12988 (font_open_entity): Adjusted for the change of font-related objects.
12989 (font_close_object, font_has_char, font_encode_char)
12990 (font_get_name, font_get_spec): Likewise.
12991 (font_spec_from_name, font_clear_prop, font_update_lface):
12992 New functions.
12993 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12994 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12995 (font_at): Adjusted for the change of font-related objects.
12996 (font_range): New function.
12997 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12998 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12999 (Fcopy_font_spec, Fmerge_font_spec): New function.
13000 (Ffont_family_list): Renamed from list-families.
13001 (Finternal_set_font_style_table): Arguments changed.
13002 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13003 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13004 change of font-related objects.
13005 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13006
13007 * fontset.h (struct font_info): Delete it. Most members go to
13008 struct font.
13009 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13010 (enum FONT_SPEC_INDEX): Delete it.
13011 (font_info, list_fonts_func, load_font_func, query_font_func)
13012 (set_frame_fontset_func, find_ccl_program_func)
13013 (get_font_repertory_func, new_fontset_from_font_name): Delete
13014 externs.
13015 (fontset_from_font_name): Extern it.
13016 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13017 (FONT_INFO_FROM_FACE): Deleted.
13018 (face_for_font): Adjust prototype.
13019
13020 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13021 conditionals. Don't check enable_font_backend. Delete all codes
13022 used only when USE_FONT_BACKEND is not defined.
13023 (get_font_info_func, list_font_func, load_font_func)
13024 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13025 (get_font_repertory_func): Delete them.
13026 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13027 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13028 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13029 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13030 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13031 (fontset_compare_rfontdef): New function.
13032 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13033 rfont-defs by qsort. Adjusted for the change of font-group vector.
13034 (load_font_get_repertory): Deleted.
13035 (fontset_find_font): Use new macros to ref/set elements of
13036 font-def and rfont-def.
13037 (fontset_font): Fix the timing of remembering that no font for C.
13038 (free_face_fontset): Do nothing if the face has no fontset.
13039 (face_suitable_for_char_p): Use new macros to ref/set elements of
13040 rfont-def.
13041 (face_for_char): Likewise. Call face_for_char with font_object.
13042 (fs_load_font): Delete. Delete #pragma surrounding it.
13043 (fs_query_fontset): Use strcasecmp instead of strcmp.
13044 (generate_ascii_font_name): Adjusted for the format change of
13045 font-spec.
13046 (Fset_fontset_font): Likewise. Use new macros to set elements of
13047 font-def.
13048 (Fnew_fontset): Use font_unparse_xlfd to generate
13049 FONTSET_ASCII (fontset).
13050 (new_fontset_from_font_name): Deleted.
13051 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13052 a fontset is already created for the font. FIx updating of
13053 Vfontset_alias_alist.
13054 (fontset_ascii_font): Deleted.
13055 (Ffont_info): Adjusted for the format change of font-spec.
13056 (Finternal_char_font): Likewise.
13057 (Ffontset_info): Likewise.
13058 (syms_of_fontset): Don't check load_font_func.
13059
13060 * fns.c (internal_equal): Handle PREV_FONT.
13061
13062 * frame.h: Delete USE_FONT_BACKEND conditional.
13063
13064 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13065 conditionals. Don't check enable_font_backend. Delete all codes
13066 used only when USE_FONT_BACKEND is not defined.
13067 (x_set_font): Call x_new_font, not x_new_fontset2.
13068 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13069 already set for the frame.
13070
13071 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13072 a font-entity by font_make_entity. Use font_intern_prop instead
13073 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13074 font property. If a font is scalable, set avgwidth property to 0.
13075 Set font-entity property by font_put_extra.
13076 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13077 (ffont_driver): Adjusted for the change of struct font_driver.
13078 (ftfont_spec_pattern): New function.
13079 (ftfont_list): Return a list, not vector.
13080 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13081 (ftfont_list_family): Don't downcase names.
13082 (ftfont_free_entity): Deleted.
13083 (ftfont_open): Return a font-object. Adjusted for the change of
13084 struct font. Get underline_thickness and underline_position from
13085 font property. Don't update dpyinfo->smallest_font_height and
13086 dpyinfo->smallest_char_width.
13087 (ftfont_close): Don't free `struct font'.
13088 (ftfont_has_char): Adjusted for the format change of font-entity.
13089 (ftfont_encode_char, ftfont_text_extents): Likewise.
13090
13091 * ftxfont.c (ftxfont_list): Return a list, not vector.
13092 (ftxfont_open): Return a font-object. Adjusted for the change of
13093 struct font. Get underline_thickness and underline_position from
13094 font property. Don't update dpyinfo->smallest_font_height and
13095 dpyinfo->smallest_char_width.
13096 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13097 (ftxfont_draw): Adjusted for the change of struct font.
13098
13099 * image.c (image_ascent): Don't include "charset.h". Include
13100 "character.h" and "font.h".
13101
13102 * lisp.h (enum pvec_type): New member PREV_FONT.
13103 (Fassoc_string): EXFUN it.
13104
13105 * print.c: Include font.h.
13106 (print_object): Handle font-related objects.
13107
13108 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13109 conditionals. Don't check enable_font_backend. Delete all codes
13110 used only when USE_FONT_BACKEND is not defined.
13111 (handle_auto_composed_prop): Do nothing if it->f is not on a
13112 window system. Check how many following characters can be
13113 displayed by the same font.
13114 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13115 'struct font *'.
13116 (get_char_face_and_encoding): Assign the whole encoding task to
13117 the `encode-char' method of a font driver.
13118 (fill_composite_glyph_string): Adjusted for the change of `struct
13119 face' and `struct glyph_string'.
13120 (fill_glyph_string): Likewise.
13121 (get_per_char_metric): Arguments changed.
13122 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13123 and `struct glyph_string'.
13124 (produce_stretch_glyph, calc_line_height_property)
13125 (x_produce_glyphs): Likewise.
13126
13127 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13128 conditionals. Don't check enable_font_backend. Delete all codes
13129 used only when USE_FONT_BACKEND is not defined. Use
13130 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13131 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13132 (Qp): Extern them.
13133 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13134 Deleted.
13135 (struct font_name): Deleted.
13136 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13137 (compare_fonts_by_sort_order): New function.
13138 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13139 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13140 Deleted.
13141 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13142 compare_fonts_by_sort_order.
13143 (Fx_font_family_list): Call Ffont_family_list.
13144 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13145 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13146 (face_symbolic_slant, face_symbolic_swidth)
13147 (split_font_name_into_vector, build_font_name_from_vector)
13148 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13149 (font_rescale_ratio, split_font_name, build_font_name)
13150 (free_font_names, sort_fonts, x_face_list_fonts)
13151 (face_font_available_p, sorted_font_list, cmp_font_names)
13152 (font_list_1, concat_font_list, font_list, remove_duplicates):
13153 Deleted.
13154 (Fx_list_fonts): Use Ffont_list.
13155 (LFACE_AVGWIDTH): Deleted.
13156 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13157 by FONTP.
13158 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13159 (set_lface_from_font_name): Delete it.
13160 (set_lface_from_font): Renamed from
13161 set_lface_from_font_and_fontset. Caller changed. Don't set
13162 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13163 for face.
13164 (merge_face_vectors): Copy font-spec if necessary.
13165 Clear properties of the font-spec if necessary.
13166 (merge_face_ref): Clear properties of the font-spec if necessary.
13167 (Finternal_set_lisp_face_attribute): Likewise.
13168 (set_font_frame_param): Use font_load_for_lface to load a
13169 font-object, and call Fmodify_frame_parameters with it.
13170 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13171 font name by Ffont_xlfd_name.
13172 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13173 QCslant, and QCwidth.
13174 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13175 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13176 Compare fonts by EQ.
13177 (lookup_non_ascii_face): Deleted.
13178 (face_for_font): The 2nd argument changed.
13179 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13180 Check atomic font properties by case insensitive.
13181 (realize_non_ascii_face): Set face->overstrike correctly.
13182 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13183 (dump_realized_face): Get font name from
13184 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13185
13186 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13187 conditionals. Don't check enable_font_backend. Delete all codes
13188 used only when USE_FONT_BACKEND is not defined.
13189 (xic_create_xfontset): Original code deleted and renamed from
13190 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13191 (x_make_gc): Don't set GCFont in GCs.
13192 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13193 opened by "fixed".
13194 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13195 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13196 get_font_repertory_func.
13197
13198 * xfont.c: Include <stdlib.h> and "ccl.h".
13199 (struct xfont_info): New structure.
13200 (xfont_query_font): Deleted.
13201 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13202 moved from xterm.c.
13203 (xfont_driver): Adjusted for the change of struct font_driver.
13204 (compare_font_names): New function.
13205 (xfont_list_pattern): Sort font names case insensitively. Make
13206 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13207 (xfont_list): Return a list, not vector.
13208 (xfont_match): If the font doesn't have QCname property, generate
13209 a name from the other font properties.
13210 (xfont_open): Return a font-object. Adjusted for the change of
13211 struct font. Get underline_thickness and underline_position from
13212 font property. Don't update dpyinfo->smallest_font_height and
13213 dpyinfo->smallest_char_width.
13214 (xfont_close): Don't free struct font.
13215 (xfont_prepare_face): Adjusted for the change of struct font.
13216 (xfont_done_face): Deleted.
13217 (xfont_has_char): Adjusted for the change of struct font.
13218 (xfont_encode_char, xfont_draw): Likewise.
13219 (xfont_check): New function.
13220
13221 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13222 callback function.
13223 (xftfont_match): Adjusted for the format change of font-entity.
13224 (xftfont_open): Adjusted for the format change of font-entity and
13225 font-object. Adjusted for the change of struct font. Return a
13226 font-object. Don't update dpyinfo->smallest_font_height and
13227 dpyinfo->smallest_char_width.
13228 (xftfont_close): Block input while calling XftFontClose.
13229 (xftfont_prepare_face): Don't block input while calling
13230 xftfont_get_colors. Adjusted for the change of struct font.
13231 (xftfont_shape): Return value of error case fixed.
13232
13233 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13234
13235 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13236 conditionals.
13237 (FONT_WIDTH): Return (f)->max_width.
13238 (struct x_display_info): Delete member `font'.
13239 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13240 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13241 (struct x_output): Change type of `font' to `struct font *'.
13242
13243 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13244 conditionals. Don't check enable_font_backend. Delete all codes
13245 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13246 (x_per_char_metric, x_encode_char): Deleted.
13247 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13248 (x_compute_glyph_string_overhangs): Adjusted for the change of
13249 `struct face'.
13250 (x_draw_glyph_string_foreground)
13251 (x_draw_composite_glyph_string_foreground): Likewise.
13252 (x_draw_glyph_string): Likewise. Use font->underline_position and
13253 font->underline_thickness.
13254 (x_new_font): Renamed from x_new_fontset2.
13255 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13256 (x_check_font): Call `check' method of a font driver.
13257 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13258 (x_query_font, x_get_font_repertory): Deleted.
13259 (x_find_ccl_program): Renamed and moved to xfont.c.
13260 (x_redisplay_interface): Adjusted for the change of `struct
13261 redisplay_interface'.
13262
13263 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13264 conditionals. Don't check enable_font_backend. Delete all codes
13265 used only when USE_FONT_BACKEND is not defined. Surround non-used
13266 code by "#ifdef OLD_FONT" and "endif".
13267 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13268
13269 * w32font.h (struct w32font_info): New member.
13270 (FONT_COMPAT): New macro.
13271 (w32font_open_internal): Prototype adjusted.
13272
13273 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13274 OLD_FONT" and "endif".
13275
13276 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13277 conditionals. Don't check enable_font_backend. Delete all codes
13278 used only when USE_FONT_BACKEND is not defined.
13279 (w32font_open): Return a font-object. Make a font-object by
13280 font_make_object. Adjusted for the change of struct w32font_info.
13281 (w32font_close): Don't free struct font. Adjusted for the change
13282 of struct w32font_info.
13283 (w32font_encode_char, w32font_text_extents, w32font_draw):
13284 Adjusted for the change of struct w32font_info.
13285 (w32font_draw): Likewise.
13286 (w32font_list_internal): Return a list, not vector.
13287 (w32font_open_internal): Change the 4th arg to font-object.
13288 Adjusted for the change of struct w32font_info and font-object format.
13289 (add_font_name_to_list): Don't downcase names.
13290 (w32_enumfont_pattern_entity): Make a font-entity by
13291 font_make_entity. Adjusted for the format change of font-entity.
13292 Use FONT_SET_STYLE to set a style-related font property. If a
13293 font is scalable, set avgwidth property to 0. Set font-entity
13294 property by font_put_extra.
13295 (font_matches_spec): Adjusted for the format change of font-entity.
13296 (w32_weight_table, w32_decode_weight): New variables.
13297 (w32_encode_weight): New function.
13298 (fill_in_logfont): Adjusted for the format change of font-spec.
13299 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13300 weight value.
13301 (w32font_driver): Adjusted for the change of struct font_driver.
13302
13303 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13304 conditionals. Don't check enable_font_backend. Surround non-used
13305 code by "#ifdef OLD_FONT" and "endif".
13306 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13307 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13308
13309 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13310 conditionals. Don't check enable_font_backend. Delete all codes
13311 used only when USE_FONT_BACKEND is not defined. Surround non-used
13312 code by "#ifdef OLD_FONT" and "endif".
13313
13314 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13315 (uniscribe_open): Return value changed to font-object.
13316 Adjusted for the format change of font-object.
13317 (uniscribe_otf_capability): Adjusted for the change of struct font.
13318 (add_opentype_font_name_to_list): Don't downcase names.
13319 (uniscribe_font_driver): Adjusted for the change of struct
13320 font_driver.
13321
133222008-05-13 Chong Yidong <cyd@stupidchicken.com>
13323
13324 * dispnew.c (update_frame_1): Check if tty output is still valid
13325 before flushing it.
13326
133272008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13328
13329 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13330 to Gtk+ menus.
13331
133322008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13333
13334 * dired.c (file_name_completion): Tweak the code so as to always do it
13335 in a single pass. Tighten the scope of some variables.
13336
13337 * dired.c (Qdefault_directory): New var.
13338 (file_name_completion): Use it instead of Fexpand_file_name.
13339 (syms_of_dired): Initialize it.
13340
133412008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13342
13343 * fileio.c (double_dollars): Remove dead code.
13344
133452008-05-10 Eli Zaretskii <eliz@gnu.org>
13346
13347 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13348 Mention w32-get-true-file-attributes in doc string.
13349
13350 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13351
133522008-05-09 Glenn Morris <rgm@gnu.org>
13353
13354 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13355 2008-04-23.
13356
133572008-05-09 Eli Zaretskii <eliz@gnu.org>
13358
13359 Support for reporting owner and group of each file on MS-Windows:
13360 * dired.c (stat_uname, stat_gname): New functions, with special
13361 implementation for w32.
13362 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13363
13364 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13365 (dflt_group_name): New static variable.
13366 (dflt_group): Rename from the_group.
13367 (init_user_info): Init dflt_group fields. Get user's group name
13368 from LookupAccountSid.
13369 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13370 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13371 New initialization states.
13372 (globals_of_w32): Initialize them to zero. Initialize the default
13373 group name to "None".
13374 (GetFileSecurity_Name): New global var, the name of the function
13375 to call for GetFileSecurity.
13376 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13377 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13378 (get_file_security, get_security_descriptor_owner)
13379 (get_security_descriptor_group, is_valid_sid)
13380 (get_file_security_desc, get_rid, get_name_and_id)
13381 (get_file_owner_and_group): New functions.
13382 (stat): Use get_file_security_desc and get_file_owner_and_group to
13383 report the owner and primary group of each file. Don't ignore the
13384 high 32 bits of file's size, now that st_size is 64-bit wide.
13385 Fix test when to get true file attributes.
13386 (init_user_info): Use get_rid instead of equivalent inline code.
13387 (fstat): Don't ignore the high 32 bits of file's size.
13388
133892008-05-09 Chong Yidong <cyd@stupidchicken.com>
13390
13391 * image.c (png_load): Use correct bit-depth for setting background
13392 color.
13393
133942008-05-08 Eli Zaretskii <eliz@gnu.org>
13395
13396 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13397 epa-hook.elc.
13398
133992008-05-08 Juanma Barranquero <lekktu@gmail.com>
13400
13401 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13402
134032008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13404
13405 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13406 because the original parameters are in pure storage now.
13407 (mac_window): Remove unused params. Update callers.
13408
134092008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13410
13411 * lread.c (substitute_object_recurse): Use lower-level primitives.
13412 Don't signal errors when traversing sub-char-tables.
13413 Don't loop over all the possible characters when traversing char-tables.
13414
13415 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13416 just like we do in print.c.
13417
134182008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13419
13420 * minibuf.c (Ftry_completion): Remove code left over from when we used
13421 scmp instead of Fcompare_strings.
13422
134232008-05-04 Juanma Barranquero <lekktu@gmail.com>
13424
13425 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13426
134272008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13428
13429 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13430 Create bitmap context in native byte order.
13431
13432 * macterm.c (XDrawLine)
13433 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13434 context in native byte order.
13435
134362008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13437
13438 * config.in: Regenerate.
13439
13440 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13441 New definitions for Image I/O support.
13442 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13443 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13444 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13445 (mac_data_provider_release_data, image_load_image_io)
13446 [USE_MAC_IMAGE_IO]: New functions.
13447 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13448 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13449 (init_image_func_pointer) [MAC_OSX]: Remove function.
13450 (image_load_quartz2d) [MAC_OSX]: Check availability of
13451 CGImageCreateWithPNGDataProvider at compile time.
13452 Use lowercase `false' for boolean constant.
13453 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13454 Use image_load_image_io.
13455 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13456 Don't check MyCGImageCreateWithPNGDataProvider.
13457 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13458 Don't call init_image_func_pointer.
13459
13460 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13461
13462 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13463 Make variable non-static.
13464 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13465 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13466
13467 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13468 (RED_FROM_ULONG): Mask off higher bits.
13469 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13470
13471 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13472 Include AvailabilityMacros.h.
13473 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13474 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13475
134762008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13477
13478 * chartab.c (Fset_char_table_range): If range is t, really set all
13479 chars to that value.
13480
134812008-05-03 Eli Zaretskii <eliz@gnu.org>
13482
13483 * dired.c (Ffile_attributes): Don't allow the device number become
13484 negative.
13485
134862008-05-02 Daiki Ueno <ueno@unixuser.org>
13487
13488 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13489
134902008-05-02 Juri Linkov <juri@jurta.org>
13491
13492 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13493 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13494 DEFAULT argument as a list of default values in docstrings.
13495
134962008-05-01 Chong Yidong <cyd@stupidchicken.com>
13497
13498 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13499
135002008-05-01 Martin Rudalics <rudalics@gmx.at>
13501
13502 * dispnew.c (change_frame_size_1): Preserve small windows when
13503 shrinking frames by calling set_window_height|width with third
13504 arg 2.
13505
13506 * window.h (struct window): Replace field too_small_ok by field
13507 resize_proportionally.
13508
13509 * window.c (make_window): Initialize resize_proportionally.
13510 (enlarge_window): Temporarily set resize_proportionally to make
13511 sure that shrink_windows does scale the window proportionally.
13512 (shrink_windows): When window has resize_proportionally set try
13513 to shrink it proportionally by stealing from other windows.
13514 (struct saved_window, Fset_window_configuration)
13515 (compare_window_configurations): Handle resize_proportionally.
13516 (WINDOW_TOTAL_SIZE): New macro.
13517 (window_min_size, shrink_windows, size_window): Use it.
13518 (check_min_window_sizes): Remove. Invalid values of
13519 window-min-height|width are handled by window_min_size_2 now.
13520 (size_window, Fsplit_window, enlarge_window)
13521 (adjust_window_trailing_edge, grow_mini_window): Don't call
13522 check_min_window_sizes.
13523 (window_min_size_2, window_min_size_1, window_min_size):
13524 New argument safe_p for retrieving "safe" minimum sizes.
13525 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13526 (adjust_window_trailing_edge, grow_mini_window):
13527 Adjust arguments of window_min_size... functions.
13528 (shrink_windows): Argument min_size removed. New argument
13529 safe_p allows shrinking windows to their safe minimum sizes.
13530 Calculate minimum size and decide whether a window shall be
13531 deleted for each window individually.
13532 (size_window): When nodelete_p equals 2, tell shrink_windows to
13533 delete windows only if their new minimum size is no more safe.
13534 (shrink_window_lowest_first): Call window_min_size_1 to make
13535 sure to preserve modeline of bottom-most window when resizing
13536 the minibuffer.
13537 (Fset_window_configuration, Fcurrent_window_configuration)
13538 (compare_window_configurations): Do not handle
13539 window-min-height|width any more.
13540 (syms_of_window): Clarify window-min-height|width doc-strings.
13541
135422008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13543
13544 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13545 some more. Copy some of the code from Ftry_completions.
13546 Remove special case code that dates back to initial revision when the
13547 slash was only added when necessary and that can't trigger nowadays.
13548
135492008-04-27 Kenichi Handa <handa@m17n.org>
13550
13551 * font.c (font_prop_validate): Signal `error' instead of `font'.
13552
135532008-04-29 Jason Rumney <jasonr@gnu.org>
13554
13555 * w32fns.c (Fw32_battery_status): New defun.
13556 (syms_of_w32fns): Defsubr it.
13557
135582008-04-28 Andreas Schwab <schwab@suse.de>
13559
13560 * dired.c (file_name_completion): Fix another mixing of encoded
13561 and decoded names.
13562
135632008-04-28 Juanma Barranquero <lekktu@gmail.com>
13564
13565 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13566
135672008-04-27 Juanma Barranquero <lekktu@gmail.com>
13568
13569 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13570
135712008-04-27 Andreas Schwab <schwab@suse.de>
13572
13573 * dired.c (file_name_completion): Fix inappropriate mixing of
13574 encoded and decoded names.
13575
13576 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13577
13578 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13579
135802008-04-26 Eli Zaretskii <eliz@gnu.org>
13581
13582 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13583 2008-03-31, it's not needed anymore with `struct stat' definition
13584 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13585 for the same reasons.
13586
135872008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13588
13589 * m/sparc.h: Additional redefinitions for GNU/Linux.
13590
135912008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13592
13593 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13594 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13595 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13596 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13597 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13598 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13599 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13600 Likewise.
13601
13602 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13603 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13604 (mac_ax_number_of_characters): Add externs.
13605 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13606 [USE_MAC_TSM]: Likewise.
13607 (mac_handle_text_input_event) [MAC_OSX]:
13608 Handle kEventTextInputOffsetToPos for no active input area case.
13609 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13610 (mac_handle_document_access_event)
13611 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13612 (install_application_handler) [MAC_OSX]: Register handlers for
13613 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13614 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13615 Register mac_handle_document_access_event.
13616
13617 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13618 Make functions non-static.
13619
136202008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13621
13622 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13623 (read_file_name_completion_ignore_case, insert_default_directory)
13624 (Qdefault_directory): Move to minibuffer.el.
13625 (Fread_file_name): Call the new `read-file-name' instead.
13626
136272008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13628
13629 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13630 Make function non-static.
13631 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13632 Remove function.
13633 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13634 Move to mactoolbox.c.
13635 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13636
13637 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13638 (mac_rect_make): New macro.
13639
13640 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13641 instead of float.
13642 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13643 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13644 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13645 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13646 CGRectMake.
13647 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13648 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13649 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13650 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13651 instead of WindowRef in argument type.
13652 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13653 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13654 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13655 instead of DISPLAY. All uses changed.
13656 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13657 (x_calc_absolute_position): Simplify so as not to use
13658 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13659
13660 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13661 instead of WindowRef in argument type.
13662 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13663 [TARGET_API_MAC_CARBON]: Remove externs.
13664 (create_apple_event, mac_event_parameters_to_lisp)
13665 [TARGET_API_MAC_CARBON]: Add externs.
13666
13667 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13668 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13669 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13670 is clicked.
13671 (x_activate_menubar): Remove extern for saved_menu_event_location.
13672 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13673 Move from mac.c.
13674
136752008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13676
13677 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13678 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13679
136802008-04-23 Jason Rumney <jasonr@gnu.org>
13681
13682 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13683 attributes only for local files.
13684
13685 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13686 default to Qlocal.
13687
136882008-04-22 Juri Linkov <juri@jurta.org>
13689
13690 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13691 read-buffer-to-switch instead of using the letter "B".
13692
136932008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13694
13695 * fileio.c (Qdefault_directory): New variable.
13696 (Fread_file_name): Use it to pass `dir' to the completion functions.
13697
136982008-04-20 Chong Yidong <cyd@stupidchicken.com>
13699
13700 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13701
137022008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13703
13704 * keyboard.c (Vpre_help_message): Remove.
13705 (show_help_echo): Remove default C code.
13706
13707 * dired.c (directory_files_internal, file_name_completion):
13708 Only call ENCODE_FILE if the string is indeed decoded.
13709
137102008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13711
13712 * Makefile.in (TOOLKIT_DEFINES): Remove.
13713 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13714
137152008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13716
13717 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13718 (mactoolbox.o): New target.
13719
13720 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13721 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13722
13723 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13724 Use mac_set_frame_window_background instead of XSetWindowBackground.
13725 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13726 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13727 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13728 instead of SetWindowTitleWithCFString.
13729 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13730 Move function to mactoolbox.c.
13731 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13732 Use mac_set_window_modified instead of SetWindowModified.
13733 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13734 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13735 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13736 FrontNonFloatingWindow. Use mac_activate_window instead of
13737 ActivateWindow. Use mac_active_non_floating_window instead of
13738 ActiveNonFloatingWindow.
13739 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13740 Use mac_show_hourglass and mac_hide_hourglass.
13741 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13742 instead of GetGlobalMouse.
13743 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13744 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13745 Use mac_bring_window_to_front instead of BringToFront.
13746 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13747 mactoolbox.c.
13748 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13749 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13750 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13751 mactoolbox.c.
13752
13753 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13754 (XtPointer): Move typedef from macmenu.c.
13755 (enum button_type): Move enum from macmenu.c.
13756 (widget_value): Move typedef from macmenu.c.
13757 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13758 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13759 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13760 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13761 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13762 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13763 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13764 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13765 (Selection): Move typedef from macselect.c.
13766 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13767 macterm.c.
13768 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13769 (mac_is_window_collapsed, mac_bring_window_to_front)
13770 (mac_send_window_behind, mac_hide_window, mac_show_window)
13771 (mac_collapse_window, mac_front_non_floating_window)
13772 (mac_active_non_floating_window, mac_activate_window)
13773 (mac_move_window_structure, mac_move_window, mac_size_window)
13774 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13775
13776 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13777 (enum mac_menu_kind): Move enum to mactoolbox.c.
13778 (min_menu_id): Move variable to mactoolbox.c.
13779 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13780 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13781 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13782 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13783 [TARGET_API_MAC_CARBON]: Likewise.
13784 (XtPointer): Move typedef to macgui.h.
13785 (enum button_type): Move enum to macgui.h.
13786 (widget_value): Move typedef to macgui.h.
13787 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13788 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13789 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13790 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13791 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13792 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13793 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13794 (popup_activated_flag): Make variable non-static.
13795 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13796 (add_menu_item, fill_menu, dispose_menus):
13797 Move functions to mactoolbox.c.
13798 (restore_show_help_function, menu_target_item_handler)
13799 (install_menu_target_item_handler, mac_handle_dialog_event)
13800 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13801 [TARGET_API_MAC_CARBON]: Likewise.
13802 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13803 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13804 (find_and_call_menu_selection, name_is_separator): Make function
13805 non-static.
13806 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13807 to mactoolbox.c.
13808 (set_frame_menubar): Don't call install_menu_quit_handler.
13809 (menu_item_selection): New variable.
13810 (mac_menu_show): Use create_and_show_popup_menu.
13811 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13812 selection but set variable menu_item_selection. All uses changed.
13813 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13814 Call install_menu_quit_handler. Move to mactoolbox.c.
13815
13816 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13817 (Selection): Move typedef to macgui.h.
13818 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13819 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13820 Make variables non-static.
13821 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13822 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13823 Make functions non-static.
13824 (Vmac_service_selection) [MAC_OSX]: Likewise.
13825 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13826 (mac_valid_selection_target_p, mac_clear_selection)
13827 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13828 (mac_put_selection_value, mac_selection_has_target_p)
13829 (mac_get_selection_value, mac_get_selection_target_list)
13830 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13831 Move functions to mactoolbox.c.
13832 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13833 Likewise.
13834 (copy_scrap_flavor_data, mac_handle_service_event)
13835 (install_service_handler) [MAC_OSX]: Likewise.
13836 (syms_of_macselect) <Vmac_dnd_known_types>:
13837 Use mac_dnd_default_known_types.
13838
13839 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13840 Move to mactoolbox.c.
13841 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13842 (Fx_selection_owner_p): Add EXFUN.
13843 (install_window_handler, remove_window_handler, XSetWindowBackground):
13844 Remove externs.
13845 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13846 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13847 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13848 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13849 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13850 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13851 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13852 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13853 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13854 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13855 (mac_valid_selection_target_p, mac_clear_selection)
13856 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13857 (mac_put_selection_value, mac_selection_has_target_p)
13858 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13859 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13860 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13861 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13862 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13863 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13864 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13865 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13866 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13867
13868 * mactoolbox.c: New file.
13869
138702008-04-18 Jason Rumney <jasonr@gnu.org>
13871
13872 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13873
138742008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13875
13876 * character.c (Fmultibyte_char_to_unibyte):
13877 Return latin1 chars unchanged.
13878
13879 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13880 relocated if it points to `name'.
13881
138822008-04-17 Kenichi Handa <handa@m17n.org>
13883
13884 * data.c (Faset): Allow setting a multibyte character in an
13885 ASCII-only unibyte string.
13886
13887 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13888
138892008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13890
13891 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13892 done in config.h.
13893
138942008-04-16 Juanma Barranquero <lekktu@gmail.com>
13895
13896 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13897 (Fchar_direction): Add usage in the docstring.
13898
138992008-04-15 Chong Yidong <cyd@stupidchicken.com>
13900
13901 * keyboard.c (read_key_sequence): Remove always-true checks.
13902
139032008-04-14 Jason Rumney <jasonr@gnu.org>
13904
13905 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13906 compatibility struct, for better underline positioning.
13907
139082008-04-13 David Hansen <david.hansen@gmx.net>
13909
13910 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13911 string.
13912
139132008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13914
13915 * m/hp800.h (XUINT, XSET): Remove.
13916
139172008-04-12 Juanma Barranquero <lekktu@gmail.com>
13918
13919 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13920 previous change.
13921
139222008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13923
13924 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13925 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13926
139272008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13928
13929 * keymap.h (map_keymap_canonical): Declare.
13930 * xmenu.c (single_keymap_panes): Use it.
13931
139322008-04-11 Glenn Morris <rgm@gnu.org>
13933
13934 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13935 set the target's value to that of the alias.
13936
139372008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13938
13939 * term.c (set_tty_color_mode): Left over typo.
13940
139412008-04-10 Michael Albinus <michael.albinus@gmx.de>
13942
13943 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13944 only after check for file name handler functions. Signal, when
13945 native functionality is not supported.
13946 (syms_of_fileio): Declare it unconditionally.
13947
139482008-04-10 Jason Rumney <jasonr@gnu.org>
13949
13950 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13951 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13952
13953 * w32.c (logon_network_drive): Also logon to remote drives that
13954 are mapped to drive letters.
13955
139562008-04-10 Glenn Morris <rgm@gnu.org>
13957
13958 * xdisp.c (truncate-partial-width-windows): Doc fix.
13959
139602008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13961
13962 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13963 Move functions to minibuffer.el.
13964 (syms_of_fileio): Don't declare them.
13965
139662008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13967
13968 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13969 (syms_of_minibuf): Remove its initialization.
13970
13971 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13972
139732008-04-09 Juanma Barranquero <lekktu@gmail.com>
13974
13975 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13976
139772008-04-09 Jason Rumney <jasonr@gnu.org>
13978
13979 * makefile.w32-in (distclean): Delete makefile too.
13980 (maintainer-clean): New target.
13981
13982 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13983
13984 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13985 for new font backend and composite cases.
13986
139872008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13988
13989 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13990 Most of the code moved to run_timers.
13991 (do_pending_atimers): Call run_timers.
13992 (run_timers): New function.
13993
13994 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13995 run atimers.
13996
13997 * process.c (wait_reading_process_output): The same as above.
13998
139992008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14000
14001 * minibuf.c (last_exact_completion): Remove variable.
14002 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14003 (complete_and_exit_1, complete_and_exit_2)
14004 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14005 (Fdisplay_completion_list, display_completion_list_1)
14006 (Fminibuffer_completion_help, Fself_insert_and_exit)
14007 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14008 minibuffer.el.
14009 (syms_of_minibuf): Remove corresponding initializations.
14010
14011 * keyboard.c (Qdeactivate_mark): New var.
14012 (command_loop_1): Use it to call `deactivate-mark'.
14013 (syms_of_keyboard): Initialize it.
14014
14015 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14016 to another frame.
14017 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14018 Don't call set_tty_color_mode.
14019 (store_frame_param): Reset previous_frame rather than call
14020 set_tty_color_mode.
14021 * term.c (set_tty_color_mode): Rewrite.
14022 * dispextern.h (set_tty_color_mode): New type.
14023 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14024
140252008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14026
14027 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14028 for generic chars, which do not exist any more in emacs-unicode.
14029
140302008-04-08 Michael Albinus <michael.albinus@gmx.de>
14031
14032 * coding.c (detect_coding_emacs_mule)
14033 (Ffind_operation_coding_system): Fix typo.
14034
140352008-04-08 Jason Rumney <jasonr@gnu.org>
14036
14037 * w32uniscribe.c (SNAME): Extract only symbol name.
14038
14039 * w32font.h (struct w32_metric_cache): New struct.
14040 (w32font_info): Use it.
14041 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14042 (CACHE_BLOCKSIZE): New constants.
14043
14044 * w32font.c (Qja, Qko, Qzh): New symbols.
14045 (syms_of_w32font): Initialise them.
14046 (font_matches_spec): Use them to filter by language.
14047 (recompute_cached_metrics): Remove function.
14048 (compute_metrics, clear_cached_metrics): New functions.
14049 (w32font_encode_char): Use them to manage metric cache.
14050 (w32font_text_extents): Cache metrics for all glyphs on demand.
14051 Delay converting glyph indices to WORD until needed.
14052 (w32font_open_internal): Initialize metric cache to empty.
14053 (registry_to_w32_charset): Charset should always be a symbol.
14054 (fill_in_logfont, list_all_matching_fonts): Family should
14055 always be a symbol.
14056
140572008-04-06 Jason Rumney <jasonr@gnu.org>
14058
14059 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14060 Give up if glyph indices not supported. Use uniscribe obtained
14061 ABC widths for individual metrics. Map glyph clusters back to
14062 characters using fClusterStart flag. Return number of glyphs
14063 produced, not chars processed.
14064 (uniscribe_shape): Map char at FROM to current glyph.
14065
140662008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14067
14068 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14069 Use SetMenuItemHierarchicalMenu.
14070
140712008-04-05 Jason Rumney <jasonr@gnu.org>
14072
14073 * image.c (pbm_load): Allow color values up to 65535.
14074 Throw an error if max_color_idx is outside the supported range.
14075 Report an error when image size is invalid.
14076 Read two bytes at a time when raw images have max_color_idx above 255.
14077
aac0c6e3
MR
140782008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14079
14080 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14081 append "CCL: Quitted" when the CCL program is quitted.
14082 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14083
14084 * ccl.h (struct ccl_program): New member quit_silently.
14085
140862008-04-05 Chong Yidong <cyd@stupidchicken.com>
14087
14088 * search.c (compile_pattern_1): Treat non-nil and non-string of
14089 search-spaces-regexp as nil.
14090
14091 * minibuf.c (Fassoc_string): Tweak docstring.
14092
140932008-04-05 Eli Zaretskii <eliz@gnu.org>
14094
14095 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14096 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14097 2008-03-14 to force inode be positive.
14098
14099 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14100 _S_* ones, since we now use our own sys/stat.h.
14101 (stat, fstat): Don't mangle the inode number.
14102 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14103
141042008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14105
14106 * frame.h (struct frame): Give one more bit to `visible' since we use
14107 values larger than 1 to indicate obscured frames on ttys.
14108
14109 * keymap.c (Qkeymap_canonicalize): New var.
14110 (Fmap_keymap_internal): New fun.
14111 (describe_map): Use keymap-canonicalize.
14112
14113 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14114 (Fundo_boundary): Set them.
14115 (syms_of_undo): Initialize them.
14116 (record_point): Use them instead of last_point_position*.
14117 (last_undo_buffer): Change type.
14118
141192008-04-04 Jason Rumney <jasonr@gnu.org>
14120
14121 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14122 (recompute_cached_metrics): Don't set ascent and descent per char.
14123
14124 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14125 (uniscribe_check_otf): Add GC protection before consing.
14126 Rearrange loop for counting features.
14127
141282008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14129
14130 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14131 buffer with byte-size of source buffer.
14132
141332008-04-03 Chong Yidong <cyd@stupidchicken.com>
14134
14135 * callint.c (Fcall_interactively): Handle temporary region even
14136 when shift-select-mode is off.
14137
141382008-04-03 Jason Rumney <jasonr@gnu.org>
14139
14140 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14141
141422008-04-03 Kenichi Handa <handa@m17n.org>
14143
14144 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14145 (CATEGORY_MASK_UTF_16): Likewise.
14146 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14147 binary file.
14148 (detect_coding): Add null-byte detection for a binary file.
14149 (detect_coding_system): Likewise.
14150
141512008-04-03 Jason Rumney <jasonr@gnu.org>
14152
14153 * w32uniscribe.c: New file.
14154
14155 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14156
14157 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14158
14159 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14160 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14161 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14162 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14163 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14164 (Qphonetic): New symbols.
14165 (syms_of_w32font): Initialize them.
14166 (font_supported_scripts): Use them.
14167 (w32font_list_family): List all charsets.
14168 (w32font_text_extents, recompute_cached_metrics): Fix metric
14169 calculations.
14170 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14171 Give opentype fonts their own format.
14172 (font_matches_spec): New arguments backend and logfont.
14173 Handle :otf spec for uniscribe backend.
14174 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14175 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14176
14177 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14178 font backend.
14179 (globals_of_w32fns): Initialize uniscribe font backend.
14180
14181 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14182 dependencies.
14183 (w32uniscribe.$(O)): New file to build.
14184 (FONT_OBJ): Include w32uniscribe.$(O).
14185 (LIBS): Add uniscribe libraries.
14186
14187 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14188
141892008-04-02 Chong Yidong <cyd@stupidchicken.com>
14190
14191 * callint.c (Vshift_select_mode): New var.
14192 (Finteractive): Document new ^ spec.
14193 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14194 is present.
14195
14196 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14197 (command_loop_1): Avoid running the direct display versions of
14198 forward-char and backward-char if shift-selection may occur.
14199 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14200 shift-translation takes place.
14201
14202 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14203 avoid clobbering by define-minor-mode.
14204
14205 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14206 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14207
14208 * syntax.c (Fforward_word): Add ^ interactive spec.
14209
14210 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14211 (Fscroll_right): Add ^ interactive spec.
14212
142132008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14214
14215 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14216
14217 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14218
14219 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14220
142212008-03-31 Juri Linkov <juri@jurta.org>
14222
14223 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14224
142252008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14226
14227 * gtkutil.c (xg_set_geometry): Fix indentation.
14228 (xg_resize_outer_widget): Remove.
14229 (x_wm_size_hint_off): Fix indentation.
14230 (xg_frame_set_char_size): Call flush_and_sync after
14231 gtk_window_resize.
14232 (x_wm_set_size_hint): Pass NULL as geometry window to
14233 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14234 Add menu bar and tool bar height to base height.
14235 (xg_update_frame_menubar, free_frame_menubar)
14236 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14237 (update_frame_tool_bar, free_frame_tool_bar):
14238 Change xg_resize_outer_widget to xg_frame_set_char_size.
14239
142402008-03-30 Michael Albinus <michael.albinus@gmx.de>
14241
14242 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14243 (Fdbus_call_method): New parameter TIMEOUT.
14244 (dbus-send-signal): Optimize UNGCPRO call.
14245
142462008-03-29 Juri Linkov <juri@jurta.org>
14247
14248 * window.c (Fdisplay_buffer): Move call to
14249 Vsplit_window_preferred_function out of conditions that check
14250 if window is eligible for vertical splitting.
14251 When Vsplit_window_preferred_function is non-nil, call it and use
14252 its non-nil return value as window. Otherwise, continue doing
14253 vertical splitting using Fsplit_window with arg horflag=nil.
14254 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14255 default value from `split-window' to nil.
14256
142572008-03-29 Juri Linkov <juri@jurta.org>
14258
14259 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14260 for interactive code letters 'b' and 'B'.
14261
142622008-03-29 Eli Zaretskii <eliz@gnu.org>
14263
14264 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14265 multibyte string.
14266
142672008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14268
14269 * keyboard.c (pending_funcalls): New var.
14270 (timer_check): Run it.
14271 (syms_of_keyboard): Initialize it.
14272 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14273 (Vdelete_terminal_functions): New vars.
14274 (syms_of_terminal): Initialize them.
14275 (Fdelete_terminal): Run delete-terminal-functions.
14276 * xdisp.c (safe_eval): Rewrite.
14277 (safe_call2): New fun.
14278 * frame.c (Qdelete_frame_functions): New var.
14279 (syms_of_frame): Initialize it.
14280 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14281 * lisp.h (safe_call2, pending_funcalls): Declare.
14282
142832008-03-28 Andreas Schwab <schwab@suse.de>
14284
14285 * indent.c (Fmove_to_column): Move declaration before statements.
14286
142872008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14288
14289 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14290 (struct frame): Use bit fields for boolean vars.
14291
14292 * process.c (server_accept_connection): Simplify naming.
14293 (emacs_get_tty_pgrp): Use SDATA.
14294
14295 * coding.c (decode_coding_object): Fix last change.
14296
142972008-03-27 Jason Rumney <jasonr@gnu.org>
14298
14299 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14300
143012008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14302
14303 * charset.c (Fdefine_charset_internal): Change the way of
14304 registering charsets in Vcharset_order_list.
14305 (syms_of_charset): Make the charset `eight-bit' supplementary.
14306
143072008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14308
14309 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14310 operations, to avoid having the difference between pointers
14311 overflow.
14312
143132008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14314
14315 * indent.c (check_display_width): New fun.
14316 (scan_for_column): Use it.
14317
14318 * data.c (syms_of_data): Mark most-positive-fixnum and
14319 most-negative-fixnum as constants.
14320
14321 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14322
14323 * indent.c (scan_for_column): Extract from current_column_1.
14324 Merge with the same code from Fmove_to_column.
14325 (current_column_1, Fmove_to_column): Use it.
14326
143272008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14328
14329 * keymap.c (map_keymap_internal): New fun.
14330 (map_keymap): Use it.
14331 (Fmap_keymap_internal): New fun.
14332 (Fmap_keymap): Remove left-out test from before make_save_value.
14333
14334 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14335
14336 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14337 Use XCAR/XCDR.
14338
14339 * process.h (struct Lisp_Process): Remove filter_multibyte.
14340 * process.c (QCfilter_multibyte): Remove.
14341 (setup_process_coding_systems): Don't use filter_multibyte.
14342 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14343 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14344 (Fset_process_filter_multibyte): Change the coding-system to
14345 approximate the previous behavior.
14346 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14347 coding-system.
14348
14349 * coding.c (decode_coding_object): When not decoding into a buffer,
14350 obey the coding system's preference of (uni|multi)byte.
14351
143522008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14353
14354 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14355 every char is changed and has a different byte-length.
14356 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14357 Fix int -> EMACS_INT.
14358
143592008-03-23 David Hansen <david.hansen@gmx.net>
14360
14361 * dbusbind.c (xd_read_message): Remove extra copying of message
14362 strings. Check for NULL `interface' or `member'.
14363
143642008-03-22 Eli Zaretskii <eliz@gnu.org>
14365
14366 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14367 cFileName a file name that includes `?' characters, use the 8+3
14368 alias in cAlternateFileName instead.
14369
143702008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14371
14372 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14373
143742008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14375
14376 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14377 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14378 work on current_buffer only instead (that was already the case
14379 for some of the code anyway).
14380 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14381 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14382 (SET_PT, SET_PT_BOTH): Adjust.
14383 * intervals.h (set_point, temp_set_point, set_point_both)
14384 (temp_set_point_both): Remove redundant declarations.
14385
143862008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14387
14388 * fileio.c (Finsert_file_contents):
14389 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14390 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14391 when buffer != current_buffer anyway.
14392
143932008-03-20 Andreas Schwab <schwab@suse.de>
14394
14395 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14396 as default.
14397
143982008-03-19 Jason Rumney <jasonr@gnu.org>
14399
14400 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14401 (syms_of_w32fns): Initialize them.
14402 (HOURGLASS_ID): New constant.
14403 (x_window_to_frame): Don't check hourglass_window.
14404 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14405 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14406 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14407 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14408 Only change the cursor if hourglass is not active.
14409 (Fx_create_frame): Initialize frame's current_cursor.
14410 (hourglass_atimer): Remove.
14411 (hourglass_started): New function.
14412 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14413 (show_hourglass): Adapt to w32, changing argument to frame.
14414
14415 * w32term.h (struct w32_output): Remove hourglass_window.
14416 Add current_cursor.
14417
14418 * eval.c (call_debugger, Fsignal):
14419 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14420 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14421 (Fexecute_extended_command, cancel_hourglass_unwind):
14422 * minibuf.c (read_minibuf):
14423 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14424
144252008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14426
14427 * window.c (run_funs): New fun.
14428 (run_window_configuration_change_hook): Use it to run the buffer-local
14429 and the global part of the hook.
14430
14431 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14432 (unwind_format_mode_line): Restore selected window.
14433 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14434
144352008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14436
14437 * editfns.c (Fchar_equal): Check they are valid characters.
14438
14439 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14440
144412008-03-17 Andreas Schwab <schwab@suse.de>
14442
14443 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14444 against a charset.
14445
14446 * lisp.h (Fbuffer_list): Declare.
14447
144482008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14449
aac0c6e3
MR
14450 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14451 handlebox_widget is != 0.
14452
144532008-03-16 Juri Linkov <juri@jurta.org>
14454
14455 * callint.c (Fcall_interactively): For interactive code letters
14456 'b' and 'B' put the buffer list into the list of default "future"
14457 values of the minibuffer.
14458
144592008-03-16 Andreas Schwab <schwab@suse.de>
14460
14461 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14462 modifiers.
14463
14464 * regex.c (re_match_2_internal): Correct matching of a charset
14465 against latin-1 characters.
14466
144672008-03-16 Kenichi Handa <handa@m17n.org>
14468
14469 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14470 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14471 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14472 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14473 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14474 CHAR_STRING_ADVANCE.
14475 (produce_chars): Fix for the case that the source and the
14476 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14477 instead of CHAR_STRING_ADVANCE.
14478 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14479 STRING_CHAR_ADVANCE.
14480
144812008-03-15 Andreas Schwab <schwab@suse.de>
14482
14483 * regex.c (re_match_2_internal): Correct matching of eight bit
14484 characters in unibyte strings.
14485
144862008-03-15 Martin Rudalics <rudalics@gmx.at>
14487
14488 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14489 at end of range when it coincides with the end of the buffer.
14490
144912008-03-14 Eli Zaretskii <eliz@gnu.org>
14492
14493 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14494
14495 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14496
144972008-03-14 Jason Rumney <jasonr@gnu.org>
14498
14499 * editfns.c (initial_tz): New variable.
14500 (syms_of_editfns): Initialize it.
14501 (Fset_time_zone_rule): Set it when first called.
14502 Use it when TZSTRING is nil.
14503
14504 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14505 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14506 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14507 (globals_of_w32fns): Initialize them.
14508 (compute_tip_xy): Use them to position tooltips.
14509
145102008-03-14 Glenn Morris <rgm@gnu.org>
14511
14512 * emacs.c (main): Revert previous change.
14513 (standard_args): Revert -internal-script back to -scriptload,
14514 and remove the long-option form.
14515
145162008-03-13 Glenn Morris <rgm@gnu.org>
14517
14518 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14519 Remove option -enable-font-backend.
14520
145212008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14522
14523 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14524
145252008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14526
14527 * xterm.c (x_connection_closed): For GTK: If this is the last
14528 terminal just exit without closing the display.
14529
145302008-03-11 Jason Rumney <jasonr@gnu.org>
14531
14532 * w32font.c (w32font_full_name): Use floor to round.
14533
f0131492 145342008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14535
14536 * sound.c (alsa_configure): Declare vol at beginning of block.
14537
14538 * fontset.c (Ffontset_info): Remove extra semicolon.
14539
145402008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14541
14542 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14543 size of resulting string.
14544
145452008-03-10 Jason Rumney <jasonr@gnu.org>
14546
14547 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14548
145492008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14550
14551 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14552 Don't pretend as if characters with display property haven't been
14553 consumed for string-replacing-string case.
14554
145552008-03-08 Kim F. Storm <storm@cua.dk>
14556
14557 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14558 (get_next_display_element, next_element_from_string)
14559 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14560
145612008-03-08 Andreas Schwab <schwab@suse.de>
14562
14563 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14564
145652008-03-06 Jason Rumney <jasonr@gnu.org>
14566
14567 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14568 when charset not specified. Only translate ANSI to unicode when
14569 font_type is truetype.
14570 (w32font_coverage_ok): New function.
14571 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14572
145732008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14574
14575 * lread.c (Fread_char): Resolve modifiers.
14576 (Fread_char_exclusive): Likewise.
14577
14578 * character.c (char_resolve_modifier_mask): New function.
14579 (char_string): Use char_resolve_modifier_mask.
14580 (Fchar_resolve_modifiers): New function.
14581 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14582 function.
14583
145842008-03-04 Jason Rumney <jasonr@gnu.org>
14585
14586 * makefile.w32-in: Always include w32font.c in the build.
14587 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14588
145892008-03-04 Andreas Schwab <schwab@suse.de>
14590
14591 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14592 (versionclean): Likewise.
14593
145942008-03-04 Juanma Barranquero <lekktu@gmail.com>
14595
14596 * .cvsignore: Add oo.
14597
145982008-03-03 Andreas Schwab <schwab@suse.de>
14599
14600 * coding.c (decode_coding_object): Inhibit gap shrinking while
14601 decoding in place.
14602
146032008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14604
14605 * w32term.c: Remove unused include "gnu.h".
14606 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14607
14608 * gnu.h: Rename to ...
14609 * emacs-icon.h: ... this.
14610 * xterm.c: Use emacs-icon.h instead of gnu.h.
14611 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14612
146132008-03-03 Juanma Barranquero <lekktu@gmail.com>
14614
14615 * w32font.c: Include math.h.
14616
146172008-03-03 Jason Rumney <jasonr@gnu.org>
14618
14619 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14620 Compute options separately.
14621 (w32font_open_internal): Set glyph_idx before caching metrics.
14622
14623 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14624 Define if system headers don't.
14625 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14626 (w32font_encode_char): Don't declare here.
14627
14628 * w32font.c (Quniscribe, QCformat): New symbols.
14629 (syms_of_w32font): Define them.
14630 (w32font_has_char): Indicate uncertainty.
14631 (w32font_encode_char): Encode as glyph point. Make static.
14632 (recompute_cached_metrics): New function.
14633 (w32font_open_internal): Use it. Set font to use glyph points
14634 initially. Set format based on type of font.
14635 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14636 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14637 on it. Set format based on information available here.
14638 (add_font_entity_to_list): Identify backend based on opentype_only.
14639
146402008-03-02 Andreas Schwab <schwab@suse.de>
14641
14642 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14643
14644 * coding.c (decode_coding_big5, produce_chars):
14645 Fix typos in last change.
14646
146472008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14648
14649 * gnu.h: New icon.
14650
146512008-03-02 Kenichi Handa <handa@m17n.org>
14652
14653 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14654 `dos', don't decode '\r' if that is the last in the source.
14655 (decode_coding_utf_16, decode_coding_emacs_mule)
14656 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14657 (decode_coding_raw_text, decode_coding_charset): Likewise.
14658 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14659
146602008-03-01 Jason Rumney <jasonr@gnu.org>
14661
14662 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14663
146642008-03-01 Kim F. Storm <storm@cua.dk>
14665
14666 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14667
146682008-03-01 Jason Rumney <jasonr@gnu.org>
14669
14670 * w32font.c (w32font_full_name): New function.
14671 (w32font_open_internal): Use it.
14672
146732008-03-01 Kim F. Storm <storm@cua.dk>
14674
14675 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14676
146772008-03-01 Jason Rumney <jasonr@gnu.org>
14678
14679 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14680
146812008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14682
14683 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14684 xg_frame_resized when the event is for the edit widget.
14685
14686 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14687
14688 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14689 set_char_size.
14690 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14691 operations on widgets here. Just set frame size if needed.
14692 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14693 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14694 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14695 the whole frame.
14696 (xg_create_tool_bar): Move attachment of the tool bar to
14697 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14698 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14699
147002008-03-01 Jason Rumney <jasonr@gnu.org>
14701
14702 * w32fns.c (w32_msg_pump): Disable debug code.
14703
147042008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14705
14706 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14707
147082008-02-29 Chong Yidong <cyd@stupidchicken.com>
14709
14710 * xdisp.c (next_overlay_string): Don't set
14711 overlay_strings_at_end_processed_p if we're currently reading from
14712 a display string.
14713
147142008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14715
14716 * xdisp.c (get_overlay_strings_1): Fix typo.
14717
147182008-02-29 Chong Yidong <cyd@stupidchicken.com>
14719
14720 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14721
147222008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14723
14724 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14725
14726 * xdisp.c (display_mode_element): Cancel the previous change.
14727 (decode_mode_spec): Likewise.
14728 (handle_auto_composed_prop): Don't make composition if it->string
14729 is a string.
14730
147312008-02-27 Kim F. Storm <storm@cua.dk>
14732
14733 * lisp.h (GLYPH): Change type from int to struct with separate char
14734 and face_id members.
14735 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14736 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14737 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14738 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14739 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14740 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14741 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14742 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14743 handle new Lisp glyph code encoding, either an integer or a cons.
14744
14745 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14746 (GLYPH_ALIAS): Delete.
14747 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14748 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14749 (GLYPH_FROM_CHAR): Replace macro by ...
14750 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14751
14752 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14753 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14754 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14755 (GLYPH_INVALID_P): New macro.
14756 (spec_glyph_lookup_face): Update prototype.
14757
14758 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14759 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14760 new glyph code encoding.
14761 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14762 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14763
14764 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14765 Adapt to new glyph type and new glyph code encoding.
14766
14767 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14768
14769 * indent.c (current_column, current_column_1, Fmove_to_column)
14770 (compute_motion): Adapt to new glyph code encoding.
14771
14772 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14773
147742008-02-27 Chong Yidong <cyd@stupidchicken.com>
14775
14776 * process.c (wait_reading_process_output): Check for window
14777 changes caused by timers.
14778 Suggested by Johan Bockgård.
14779
147802008-02-27 Glenn Morris <rgm@gnu.org>
14781
14782 * emacs.c (USAGE1): Add `--disable-font-backend'.
14783
147842008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14785
14786 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14787 is made to the buffer.
14788
147892008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14790
14791 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14792 (face_at_string_position):
14793 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14794 (face_at_string_position):
14795 * xdisp.c (display_string, next_overlay_change):
14796 * buffer.h (overlays_at):
14797 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14798 Update callers.
14799
148002008-02-26 Chong Yidong <cyd@stupidchicken.com>
14801
14802 * editfns.c (Fformat): Doc fix.
14803
148042008-02-26 Juanma Barranquero <lekktu@gmail.com>
14805
14806 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14807 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14808 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14809
148102008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14811
14812 * buffer.c (Fbuffer_swap_text): New function.
14813 (syms_of_buffer): Defsubr it.
14814
148152008-02-25 Chong Yidong <cyd@stupidchicken.com>
14816
14817 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14818
148192008-02-25 Jason Rumney <jasonr@gnu.org>
14820
14821 * w32font.c (w32font_draw): Draw one character at a time when padding.
14822
148232008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14824
14825 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14826 Handle a nil arg. Use run_window_configuration_change_hook.
14827 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14828 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14829 Use run_window_configuration_change_hook.
14830
148312008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14832
14833 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14834 1-pixel width.
14835
148362008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14837
14838 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14839 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14840 if the glyph in the font is zero pixel with.
14841
14842 * dispextern.h (struct glyph_string): New member padding_p.
14843
14844 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14845
14846 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14847
14848 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14849
14850 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14851
14852 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14853
148542008-02-25 Jason Rumney <jasonr@gnu.org>
14855
14856 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14857
148582008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14859
14860 Allow fine-grained image-cache flushing.
14861 * dispextern.h (struct image): Add `dependencies' field.
14862 (clear_image_caches): Change arg to Lisp_Object.
14863 * image.c (make_image): Initialize `dependencies' field.
14864 (clear_image_cache): Change arg to allow fine-grained flushing.
14865 Perform the flush even if image-cache-eviction-delay is nil.
14866 (clear_image_caches): Change arg to Lisp_Object.
14867 (Fclear_image_cache): Expand meaning of the argument.
14868 (mark_image): Mark `dependencies' field.
14869 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14870 (lface_hash): Use XHASH rather than XFASTINT.
14871 (face_at_buffer_position): Fix int -> EMACS_INT position.
14872 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14873 (select_frame_for_redisplay): Remove code duplication.
14874 (redisplay_internal): Adapt arg to call to clear_image_caches.
14875
148762008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14877
14878 * s/vms4-0.h:
14879 * s/vms4-2.h:
14880 * s/vms4-4.h:
14881 * s/vms5-5.h: Remove, unused.
14882
14883 * s/irix5-2.h:
14884 * s/irix6-0.h:
14885 * s/riscos5.h:
14886 * s/mach-bsd4-3.h:
14887 * m/mips4.h: Remove files for obsolete systems.
14888
14889 * Makefile.in:
14890 * filelock.c:
14891 * unexmips.c:
14892 * m/hp9000s300.h:
14893 * m/iris4d.h:
14894 * s/aix3-1.h:
14895 * s/hpux.h:
14896 * s/msdos.h:
14897 * s/usg5-0.h:
14898 * s/usg5-2-2.h:
14899 * s/usg5-2.h:
14900 * s/usg5-3.h: Remove references to obsolete variables.
14901
14902 * s/irix5-0.h: Remove, move all the contents ...
14903 * s/irix6-5.h: ... here. Simplify.
14904 * config.in: Regenerate.
14905
149062008-02-24 Jason Rumney <jasonr@gnu.org>
14907
14908 * w32term.c (x_draw_glyph_string_background): Clear the background
14909 manually when cleartype is in use.
14910 (x_draw_glyph_string_foreground): Draw text transparently when
14911 cleartype is in use.
14912
14913 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14914 a font into it unless we have to.
14915
149162008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14917
14918 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14919 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14920
aac0c6e3
MR
149212008-02-18 Jason Rumney <jasonr@gnu.org>
14922
14923 * w32fns.c (Fw32_shell_execute): Encode parameters.
14924
149252008-02-09 Eli Zaretskii <eliz@gnu.org>
14926
14927 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14928
149292008-02-05 Juanma Barranquero <lekktu@gmail.com>
14930
14931 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14932
149332008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14934
14935 * xterm.c (x_set_offset): Don't change the gravity if
14936 CHANGE_GRAVITY is -1.
14937
149382008-02-23 Chong Yidong <cyd@stupidchicken.com>
14939
14940 * fileio.c (auto_save_error_occurred): New var.
14941 (auto_save_error): Set it.
14942 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14943 error occurred.
14944
149452008-02-23 Eli Zaretskii <eliz@gnu.org>
14946
14947 * w32.c (globals_of_w32): Add initializations for
14948 g_b_init_get_sid_sub_authority and
14949 g_b_init_get_sid_sub_authority_count.
14950
149512008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14952
14953 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14954 (font_parse_xlfd): Use them for sanity check.
14955 (Finternal_set_font_style_table): Make sure the table is bijective.
14956
14957 Consolidate the image_cache to the terminal struct.
14958 * termhooks.h (P_): Remove redundant def.
14959 (struct terminal): New field `image_cache'.
14960 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14961 of FRAME_X_IMAGE_CACHE.
14962 * xterm.h (struct x_display_info): Remove image_cache field.
14963 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14964 * w32term.h (struct w32_display_info): Remove image_cache field.
14965 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14966 * macterm.h (struct mac_display_info): Remove image_cache field.
14967 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14968 * xterm.c (x_term_init):
14969 * w32term.c (w32_term_init):
14970 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14971 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14972 Remove declarations.
14973 (clear_image_caches, mark_image_cache): New declarations.
14974 * xfaces.c (clear_face_cache):
14975 * xdisp.c (redisplay_internal): Use clear_image_caches.
14976 * image.c (clear_image_cache): Don't check that a frame is on
14977 a window-system before checking if it shares the same cache.
14978 (clear_image_caches): New function.
14979 (Fclear_image_cache): Use it.
14980 (mark_image): Move from allo.c.
14981 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14982 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14983 (mark_object): Don't call mark_image_cache for frames.
14984 (mark_terminals): Call mark_image_cache.
14985
14986 * lisp.h (Fdelete_terminal): Declare.
14987
14988 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14989 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14990 wrong_type_argument.
14991
149922008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14993
14994 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14995 malayalam.el, and tamil.el. Add sinhala.el.
14996
149972008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14998
14999 * xterm.c (x_connection_closed): Consolidate identical tests.
15000 (x_delete_terminal): Don't crash if called via x_connection_closed.
15001
150022008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15003
15004 * xdisp.c (decode_mode_spec): New arg string.
15005 (display_mode_element): Adjust for the above change.
15006
150072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15008
15009 * callint.c (Fcall_interactively): Use AREF.
15010
150112008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15012
15013 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15014
150152008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15016
15017 * xfns.c (Fx_show_tip): Set string to " " if empty.
15018
150192008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15020
15021 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15022 with Qt.
15023
150242008-02-17 Kenichi Handa <handa@m17n.org>
15025
15026 * ftfont.c (ftfont_shape): Return Lispy number.
15027
15028 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15029 for GCs.
15030 (Finternal_set_font_selection_order): Call font_update_sort_order
15031 only when enable_font_backend is set.
15032 (realize_x_face): Set face->font_info to that of default face only
15033 when enable_font_backend is set.
15034
15035 * xdisp.c (handle_composition_prop): Set it->c to the fist
15036 character of the composed region.
15037 (fill_composite_glyph_string): Set base_face->font_info to
15038 s->font_info. Get a face for ascii from base_face->ascii_face.
15039 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15040 with a face already decided.
15041 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15042 non-negative.
15043 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15044 call font_prepare_composition unconditionally.
15045
15046 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15047
15048 * xterm.h (struct x_display_info): New member font.
15049
15050 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15051 (x_set_mouse_face_gc, x_new_font): Likewise.
15052 (x_term_init): Setup display_info->font.
15053 (x_delete_terminal): Free display_info->font.
15054
15055 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15056
15057 * ftxfont.c (ftxfont_default_fid): Delete it.
15058 (ftxfont_open): Set xfont->fid to 0.
15059 (ftxfont_end_for_frame): Clear data specific to the frame and the
15060 font-driver.
15061
15062 * xftfont.c (xftfont_default_fid): Delete it.
15063 (xftfont_open): Set xfont->fid to 0.
15064
15065 * fontset.c (FONTSET_OBJLIST): New macro.
15066 (fontset_find_font): Update font-object list of the fontset.
15067 (free_realized_fontset): New function.
15068 (free_face_fontset): Call free_realized_fontset.
15069 (Ffont_info): Call font_close_object only when enable_font_backend
15070 is set.
15071
15072 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15073 [HAVE_NTGUI]: Include w32term.h.
15074 [MAC_OS]: Include macterm.ch.
15075 (font_otf_ValueRecord): Use make_number.
15076 (font_finish_cache): Fix handling of reference count.
15077 (font_clear_cache): Update num_fonts.
15078 (font_open_entity): Update smallest_char_width and
15079 smallest_font_height of the frame.
15080 (font_close_object): Update num_fonts.
15081 (Fclear_font_cache): Fix finding the target cache data.
15082
150832008-02-16 Glenn Morris <rgm@gnu.org>
15084
15085 * fontset.c (Finternal_char_font): Fix compilation warning.
15086
150872008-02-16 Eli Zaretskii <eliz@gnu.org>
15088
15089 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15090 instead of char arrays. Enlarge the size of array passed to
15091 get_token_information.
15092
15093 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15094 warnings.
15095
150962008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15097
15098 * .gdbinit: Don't set `args', it breaks gdb --args.
15099
151002008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15101
15102 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15103 within a narrowed buffer.
15104
151052008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15106
15107 * coding.c (decode_coding_object, encode_coding_object):
15108 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15109
151102008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15111
15112 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15113 hardcoding 1.
15114 (detect_coding_system):
15115 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15116 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15117 * insdel.c (insert_from_gap):
15118 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15119 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15120 (string_to_multibyte):
15121 * character.c (chars_in_text, multibyte_chars_in_text):
15122 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15123
15124 * character.h (FETCH_STRING_CHAR_ADVANCE)
15125 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15126 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15127 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15128
15129 * casefiddle.c (casify_region): Only call after-change and composition
15130 functions on the part of the region that was changed.
15131
15132 * keyboard.c (read_avail_input):
15133 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15134
151352008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15136
15137 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15138 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15139
151402008-02-11 Juanma Barranquero <lekktu@gmail.com>
15141
15142 * w32menu.c (push_submenu_start, push_submenu_end)
15143 (push_left_right_boundary, push_menu_pane, push_menu_item):
15144 * keyboard.c (read_key_sequence): Don't pass args with side effects
15145 to AREF, it fails when compiling with -DENABLE_CHECKING.
15146
151472008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15148
15149 * Makefile.in (${lispsource}international/charprop.el):
15150 Delete this target.
15151
15152 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15153 emacs-unicode-2.
15154
151552008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15156
15157 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15158
151592008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15160
15161 * frame.c (Qnoelisp): New symbol.
15162 (syms_of_frame): Initialize it.
15163 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15164 harmless Elisp code, from a strong `force' from x_connection_closed.
15165 * frame.h (Qnoelisp): Declare.
15166 * xterm.c (x_connection_closed): Pass `noelisp'.
15167
15168 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15169 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15170 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15171 rather than `int' for the type of `type'.
15172
151732008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15174
15175 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15176
15177 * Makefile.in (GNUC): Remove support for gcc-1.x.
15178
151792008-02-10 Richard Stallman <rms@gnu.org>
15180
15181 * lisp.h (ASET): Use AREF, not ASLOT.
15182
151832008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15184
15185 * lisp.h (ASET): Check bounds.
15186
151872008-02-10 Glenn Morris <rgm@gnu.org>
15188
15189 * buffer.c (mode-name): Doc fix.
15190
151912008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15192
15193 * Makefile.in:
15194 * emacs.c:
15195 * gmalloc.c:
15196 * keyboard.c:
15197 * lisp.h:
15198 * m/ibm370aix.h:
15199 * process.c:
15200 * regex.c:
15201 * s/hpux.h:
15202 * sysdep.c:
15203 * sysselect.h:
15204 * systty.h:
15205 * unexec.c:
15206 * w32term.c:
15207 * xsmfns.c:
15208 * xterm.c: Remove code that deals with obsolete variables.
15209
15210 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15211
15212 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15213 nothing else needs it anymore.
15214
152152008-02-09 Eli Zaretskii <eliz@gnu.org>
15216
15217 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15218 instead of unibyte_char_to_multibyte.
15219
152202008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15221
15222 * s/gnu-linux.h: Remove commented out code.
15223
15224 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15225
15226 * Makefile.in: Update what RMS says about using autoconf.
15227 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15228 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15229 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15230 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15231
152322008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15233
15234 * keymap.c (Fkey_description): Move side effect outside of macro call.
15235
15236 * xfaces.c (Finternal_make_lisp_face):
15237 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15238
15239 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15240 (syms_of_fontset): Use ASET.
15241
15242 * fns.c (concat): Move side effect outside of macro call.
15243 (hash_clear): Use ASET.
15244
152452008-02-08 Richard Stallman <rms@gnu.org>
15246
15247 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15248 If FORCE, and frame has a surrogate minibuffer for another frame,
15249 delete the other frame first.
15250
152512008-02-07 Timo Savola <timo.savola@iki.fi>
15252
15253 * xterm.c (x_detect_focus_change): Handle embed client message.
15254 (handle_one_xevent): Ditto.
15255 (handle_one_xevent): If embedded and we get a button press/release,
15256 request focus.
15257 (xembed_set_info, xembed_send_message): New functions.
15258 (x_make_frame_visible): Call xembed_set_info if embedded.
15259 (x_make_frame_invisible): Call xembed_set_info if embedded.
15260 (x_term_init): Initialize Xatom_XEMBED.
15261 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15262 (x_iconify_frame): Ditto.
15263
15264 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15265 (enum xembed_info, enum xembed_message, enum xembed_focus)
15266 (enum xembed_modifier, enum xembed_accelerator): New.
15267 (xembed_set_info, xembed_send_message): Declare.
15268 (FRAME_X_EMBEDDED_P): New.
15269
15270 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15271 gtk_plug_new.
15272
15273 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15274 window ID of a frame.
15275 (x_window): Reparent frame if embedded.
15276 (Fx_create_frame): Don't set border width if embedded.
15277
15278 * emacs.c (USAGE3): Add --parent-id.
15279 (standard_args): Ditto.
15280
152812008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15282
15283 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15284
152852008-02-07 Jim Meyering <meyering@redhat.com>
15286
15287 Use "do...while (0)", not "if (1)...else" in macro definitions.
15288 The latter provokes a warning from gcc about the empty else, when
15289 followed by ";". Also, without that trailing semicolon, it would
15290 silently swallow up any following statement.
15291 * syntax.h (SETUP_SYNTAX_TABLE)
15292 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15293 * buffer.h (DECODE_POSITION): Likewise.
15294 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15295 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15296 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15297 (FETCH_CHAR_ADVANCE): Likewise.
15298 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15299
153002008-02-07 Jim Meyering <meyering@redhat.com>
15301
15302 * lread.c [lint]: Don't include <sys/inode.h>.
15303
153042008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15305
15306 * xselect.c (x_handle_dnd_message):
15307 * xmenu.c (digest_single_submenu, xmenu_show):
15308 * xdisp.c (with_echo_area_buffer_unwind_data)
15309 (format_mode_line_unwind_data, unwind_format_mode_line)
15310 (display_menu_bar):
15311 * eval.c (Ffetch_bytecode):
15312 * doc.c (store_function_docstring):
15313 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15314 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15315 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15316
153172008-02-07 Kenichi Handa <handa@m17n.org>
15318
15319 * ftxfont.c (ftxfont_open): Don't set
15320 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15321
15322 * ftfont.c (ftfont_open): Fix previous change.
15323
153242008-02-06 Jason Rumney <jasonr@gnu.org>
15325
15326 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15327 Use cached metrics for ASCII characters.
15328 (w32font_open_internal): Don't set font's owning_frame.
15329 Cache metrics for ASCII characters.
15330
15331 * w32font.h (struct w32font_info): Add ascii_metrics.
15332 Remove owning_frame.
15333
153342008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15335
15336 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15337 to negative value.
15338
15339 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15340
15341 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15342
15343 * charset.c (syms_of_charset): Set QCtest and Qeq.
15344
153452008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15346
15347 * process.c (Fstart_process):
15348 * callproc.c (Fcall_process): Handle the case where
15349 Funhandled_file_name_directory returns nil.
15350
15351 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15352 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15353 * font.c (check_gstring): Use them and AREF to access the vector before
15354 we know it's really a gstring.
15355 (Ffont_shape_text): Fix typo.
46e722a9 15356 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15357
15358 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15359 Declare.
15360
15361 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15362
153632008-02-05 Jason Rumney <jasonr@gnu.org>
15364
15365 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15366 Set smallest_font_height and smallest_char_width in display info.
15367
153682008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15369
15370 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15371
153722008-02-05 Miles Bader <miles@gnu.org>
15373
15374 * xfaces.c (get_lface_attributes, merge_named_face)
15375 (lookup_named_face, lookup_derived_face, realize_named_face):
15376 Revert 2008-02-01 change by cyd@stupidchicken.com.
15377
153782008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15379
15380 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15381 fallback fonts.
15382 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15383
153842008-02-04 Jason Rumney <jasonr@gnu.org>
15385
15386 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15387 set full_name.
15388 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15389
153902008-02-03 Jason Rumney <jasonr@gnu.org>
15391
15392 * makefile.w32-in (OBJ1): Include font.o here.
15393 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15394
153952008-02-02 Jason Rumney <jasonr@gnu.org>
15396
15397 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15398
153992008-02-01 Jason Rumney <jasonr@gnu.org>
15400
15401 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15402
15403 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15404
154052008-02-01 Andreas Schwab <schwab@suse.de>
15406
15407 * Makefile.in (shortlisp, lisp): Update for rename of
15408 ../lisp/language/myanmar.el.
15409
154102008-02-01 Chong Yidong <cyd@stupidchicken.com>
15411
15412 * xfaces.c (get_lface_attributes): Delete function.
15413 (merge_named_face, lookup_named_face, lookup_derived_face)
15414 (realize_named_face): Call lface_from_face_name directly, and use
15415 the fact that merge_face_vectors does not alter its FROM argument.
15416
154172008-02-01 Jason Rumney <jasonr@gnu.org>
15418
15419 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15420 input in the default locale. Handle non-Unicode multibyte input.
15421
154222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15423
15424 * fontset.c (reorder_font_vector): Exclude nil elements from the
15425 font group. Don't try multiple fonts.
15426 (fontset_font): Adjust for the above change.
15427 (Finternal_char_font): Return nil if the found font doesn't
15428 contain the character ch.
15429
15430 * Makefile.in (lisp, shortlisp): Add cham.el.
15431
154322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15433
15434 * font.h (FONTP): Make it return 1 also for a font-object.
15435
15436 * .gdbinit (xfontset): New function.
15437
15438 * font.c (font_find_for_lface): Check if the character C is
15439 supported or not only for the first font.
15440
15441 * fontset.c (reorder_font_vector): Fix typo.
15442 (fontset_find_font): Don't add a font-spec specifying a script.
15443 Use 0 (not Qt) for the indication of empty font-group. Change the
15444 format of RFONT-DEF. Return Qt if no font in the font-group
15445 support the character.
15446 (fontset_font): Adjust for the above change. If no font was
15447 found the character, remember that.
15448 (face_for_char): Adjust for the change of RFONT-DEF.
15449 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15450 no font for the target.
15451 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15452
154532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15454
15455 * font.c (font_load_for_face): Handle the case that the font in
15456 face->lface is a string.
15457
154582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15459
15460 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15461
154622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15463
15464 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15465 Fix previous change. If the frame is not on a window system,
15466 signal an error.
15467
154682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15469
15470 * coding.c (decode_coding_object, encode_coding_object): Adjust
15471 marker positions after conversion.
15472
15473 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15474
154752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15476
15477 * font.c (font_find_for_lface): Fix the handling of the return
15478 value of font_has_char.
15479 (Ffont_shape_text): Fix previous change.
15480
15481 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15482 (fontset_ref_and_range): Delete it.
15483 (fontset_find_font): Call char_table_ref_and_range instead of
15484 FONTSET_REF_AND_RANGE.
15485 (make_fontset): Don't setup font groups of Latin here.
15486 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15487 (new_fontset_from_font): Make the specified font the default for
15488 all Latin characters.
15489
154902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15491
15492 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15493 is on a window system before accessing the fontset of the frame.
15494
154952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15496
15497 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15498
15499 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15500 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15501
15502 * font.c (Ffont_shape_text): If the font driver doesn't have a
15503 shaper function, make zero-width glyphs to have at least one-pixel
15504 width. Fix setting of `to' field of glyphs.
15505
155062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15507
15508 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15509 glyphs.
15510
15511 * font.h (struct font_driver): Improve docstring of member `shape'.
15512
155132008-02-01 Kenichi Handa <handa@m17n.org>
15514
15515 * composite.c (syms_of_composite): Fix docstring of
15516 auto-composition-function.
15517
15518 * font.h (LGLYPH_SIZE): New macro.
15519
15520 * font.c (Ffont_fill_gstring): Stop filling when a character not
15521 supported by the font is found.
15522 (Ffont_shape_text): When a shape callback function returns nil,
15523 try at most two more times with larger gstring.
15524 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15525
15526 * xdisp.c (handle_auto_composed_prop): Change the argument to
15527 auto-composition-function.
15528
15529 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15530 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15531 Lispy glyph and store it in the lgstring.
15532
15533 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15534
15535 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15536
155372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15538
15539 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15540
15541 * fontset.c (Vfont_encoding_charset_alist): New variable.
15542 (syms_of_fontset): DEFVAR it.
15543 (reorder_font_vector, fontset_find_font): Optimize for the case of
15544 no need of reordering.
15545 (face_for_char): Map the charset property by
15546 Vfont_encoding_charset_alist.
15547
155482008-02-01 Jason Rumney <jasonr@gnu.org>
15549
15550 * w32font.c (logfonts_match): Don't check adstyle here.
15551 (font_matches_spec): Check here against physical font instead.
15552 (add_font_entity_to_list): Avoid some substitutions.
15553
15554 * font.c (font_parse_fcname): Default weight and slant to normal.
15555 (font_score): Prefer normal fonts if weight or slant unspecified.
15556 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15557 match freetype scores.
15558
155592008-02-01 Jason Rumney <jasonr@gnu.org>
15560
15561 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15562 font, as it may have been deleted.
15563 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15564 most common hyphenless variation.
15565 (logfonts_match): Check generic family.
15566 (font_matches_spec): Don't check generic family here.
15567 (fill_in_logfont): Set generic family based on adstyle.
15568
15569 * w32font.h (w32font_get_cache): Update declaration.
15570
155712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15572
15573 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15574
15575 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15576 If none of the new drivers are available, call font_update_drivers
15577 with the old drivers.
15578
15579 * w32font.c (w32font_get_cache): Adjust the argument type.
15580
15581 * xfont.c (xfont_get_cache): Adjust the argument type.
15582
15583 * font.h (struct font_driver): Change argument type of get_cache.
15584
15585 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15586
15587 * font.c (Ffont_get): Fix arguments to Fassoc.
15588 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15589 (font_clear_cache): New function.
15590 (font_list_entities, font_matching_entity): Use font_get_cache.
15591 (font_update_drivers): Call font_clear_cache when finishing a driver.
15592
15593 * fontset.c (fontset_find_font): Fix previous change.
15594
155952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15596
15597 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15598 dpyinfo->font_table.
15599 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15600 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15601
15602 * font.c (font_at): Handle the case that the arg C is negative.
15603 Handle the unibyte case.
15604 (Ffont_at): Call font_at with the arg C -1.
15605
15606 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15607 the position here, and call font_at with the arg C -1.
15608 Don't check the range of the existing composition at the point.
15609
156102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15611
15612 * fontset.c (fontset_add): New args charset_id and family.
15613 Change caller.
15614 (load_font_get_repertory, fontset_find_font): Assume that
15615 font_spec is always a font-spec object.
15616 (Fset_fontset_font): Always store a font-spec object in a fontset.
15617
15618 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15619 instead of get_property_and_range.
15620
156212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15622
15623 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15624 (xftfont_open): Don't keep locking face.
15625 (xftfont_close): Don't unlock face.
15626 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15627
15628 * fontset.c (fontset_find_font): Don't prefer a font of
15629 supplementary charset.
15630
156312008-02-01 Kenichi Handa <handa@m17n.org>
15632
15633 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15634 script, langsys_tag to langsys, new member script.
15635 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15636 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15637 listing to the script specified in that property. Fix arg to
15638 OTF_check_features.
15639
156402008-02-01 Jason Rumney <jasonr@gnu.org>
15641
15642 * w32font.h: New file.
15643
15644 * w32font.c: Include it.
15645 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15646 (w32font_open): Set owning_frame.
15647 (w32font_text_extents): Use owning_frame.
15648 (struct font_callback_data): Add opentype_only field.
15649 (add_font_entity_to_list): Use it to filter fonts.
15650 Don't check against full name.
15651 (w32font_list_internal): New function.
15652 (w32font_list): Use it.
15653 (w32font_match_internal): New function.
15654 (w32font_match): Use it.
15655 (w32font_open_internal): New function.
15656 (w32font_open): Use it.
15657 (w32font_get_cache, w32font_close, w32font_has_char)
15658 (w32font_encode_char, w32font_text_extents, w32font_draw):
15659 Make non-static.
15660
15661 * makefile.w32-in (w32font.o): Depend on w32font.h.
15662
156632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15664
15665 * charset.c (Fdefine_charset_internal): Record a supplementary
15666 charset at the tail of Vcharset_order_list.
15667
15668 * font.c (Ffont_shape_text): Fix the return value.
15669
15670 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15671
15672 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15673
156742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15675
15676 * ftfont.c (struct OpenTypeSpec): New struct.
15677 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15678 (ftfont_get_open_type_spec): New function.
15679 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15680
15681 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15682
156832008-02-01 Jason Rumney <jasonr@gnu.org>
15684
15685 * w32font.c (add_font_entity_to_list): Compare only the beginning
15686 of full name.
15687
156882008-02-01 Kenichi Handa <handa@m17n.org>
15689
15690 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15691 Never return HANDLED_RECOMPUTE_PROPS.
15692
156932008-02-01 Kenichi Handa <handa@m17n.org>
15694
15695 * font.c (font_gstring_produce): Delete it.
15696
15697 * composite.h (COMPOSITION_METHOD):
15698 Handle COMPOSITION_WITH_GLYPH_STRING.
15699
157002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15701
15702 * xfont.c (Qx): Delete.
15703 (syms_of_xfont): Don't initialize Qx.
15704
15705 * composite.h (enum composition_method):
15706 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15707
157082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15709
15710 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15711 (choose_face_font): Accept new form of font-spec.
15712
15713 * frame.h (font_driver_list): Declare it unconditionally.
15714 (struct frame): Define members font_driver_list and font_data_list
15715 unconditionally.
15716
15717 * fontset.c: Include "font.h" unconditionally.
15718 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15719 (Fset_fontset_font): Accept a font-spec object.
15720
15721 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15722 PIXEL_SIZE part a wild card.
15723
15724 * dispextern.h (struct glyph_string): Define members clip and
15725 num_clips unconditionally.
15726 (struct face): Define members font_info and extra unconditionally.
15727
15728 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15729 ftfont_info only when HAVE_LIBOTF is defined.
15730
157312008-02-01 Andreas Schwab <schwab@suse.de>
15732
15733 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15734 and end.
15735
157362008-02-01 Jason Rumney <jasonr@gnu.org>
15737
15738 * w32font.c (w32font_driver): Add new fields.
15739
157402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15741
15742 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15743 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15744 (LIBES): Add @M17N_FLT_CFLAGS@.
15745
15746 * composite.c (compose_text): Don't treat the new style
15747 composition specially.
15748
15749 * emacs.c (main): Call syms_of_font unconditionally.
15750
15751 * font.h (FONT_ENTITY_NOT_LOADABLE)
15752 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15753 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15754 (struct font_driver): New member shape.
15755 (font_registry_charsets): Extern it.
15756 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15757 (font_otf_capability, font_drive_otf): Delete their externs.
15758
15759 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15760 (font_charset_alist, font_registry_charsets): Move from xfont.c
15761 and rename.
15762 (font_prop_validate_otf): New function.
15763 (font_property_table): Register it for QCotf.
15764 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15765 (font_drive_otf): Delete.
15766 (font_prepare_composition): New arg F. Adjust for the change of
15767 lispy gstring.
15768 (font_find_for_lface): New arg C.
15769 (font_load_for_face): Adjust for the change of font_find_for_lface.
15770 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15771 lispy gstring.
15772 (Ffont_shape_text): New function.
15773 (Fopen_font): If the font size is not given, use 12-pixel.
15774 (Ffont_at): New arg STRING.
15775 (syms_of_font): Initalize font_charset_alist.
15776 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15777 conditionally.
15778
15779 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15780 fonts of the same font-spec. Change the format of RFONT-DEF.
15781 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15782 Adjust for the change of RFONT-DEF.
15783 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15784
15785 * ftfont.h: New file.
15786
15787 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15788 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15789 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15790 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15791 font_otf_capability and font_drive_otf, set ftfont_shape.
15792 (ftfont_list): Adjust for the change of :otf property value.
15793 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15794 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15795 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15796 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15797 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15798 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15799
15800 * w32term.c (x_draw_composite_glyph_string_foreground):
15801 Adjust for the change of lispy gstring.
15802
15803 * xdisp.c (handle_composition_prop): Adjust for the change of
15804 lispy gstring. Call a function for auto-composition with the
15805 third arg it->window.
15806 (fill_composite_glyph_string): Adjust for the change of lispy string.
15807 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15808
15809 * xfaces.c (set_font_frame_param): Adjust for the change of
15810 font_find_for_lface.
15811
15812 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15813 (xfont_registry_charsets): Likewise. Change caller.
15814 (syms_of_xfont): Don't handle x_font_charset_alist.
15815
15816 * xftfont.c: Include "ftfont.h".
15817 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15818 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15819 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15820 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15821 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15822 Set xftfont_driver.shape to xftfont_shape.
15823
15824 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15825 the change of lispy gstring.
15826
158272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15828
15829 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15830
158312008-02-01 Jason Rumney <jasonr@gnu.org>
15832
15833 * w32font.c (w32font_draw): Fill background manually.
15834
158352008-02-01 Jason Rumney <jasonr@gnu.org>
15836
15837 * font.c (Qfontp): Remove unused symbol.
15838 (QCantialias): New symbol.
15839 (syms_of_font): Define it.
15840 (font_property_table): Set a validator for QCantialias.
15841
15842 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15843 Define if not already.
15844 (QCfamily): Share with xfaces.c.
15845 (Qstandard, Qsubpixel, Qnatural): New symbols.
15846 (syms_of_w32font): Define them. Don't define QCfamily here.
15847 (w32_antialias_type, lispy_antialias_type): New functions.
15848 (w32_enumfont_pattern_entity): New arg requested_font.
15849 Set antialias parameter if non-default was requested.
15850 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15851
158522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15853
15854 * lread.c (read1): Undo the previous change.
15855
158562008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15857
15858 * frame.c (Fdelete_frame): Call font_update_drivers only when
15859 USE_FONT_BACKEND is defined.
15860
158612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15862
15863 * font.h (struct font_bitmap): New member bits_per_pixel.
15864 (struct font_driver): New members start_for_frame and end_for_frame.
15865 (struct font_data_list): New struct.
15866 (font_put_frame_data, font_get_frame_data): Extern them.
15867
15868 * frame.h (struct frame): New member font_data_list.
15869
15870 * font.c (font_update_drivers): Call driver->start_for_frame and
15871 driver->end_for_frame at proper timings.
15872 (font_put_frame_data, font_get_frame_data): New functions.
15873 (Ffont_spec): Add usage in the docstring.
15874
15875 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15876 (Fdelete_frame): Call font_update_drivers.
15877
15878 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15879 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15880 (xftfont_get_xft_draw): New function.
15881 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15882 (xftfont_end_for_frame): New function.
15883 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15884
15885 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15886 Change argument. Cache GCs in the per-frame data.
15887 (struct ftxfont_frame_data): New struct.
15888 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15889 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15890 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15891 (ftxfont_end_for_frame): New function.
15892 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15893
15894 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15895
158962008-02-01 Kenichi Handa <handa@m17n.org>
15897
15898 * xselect.c (Vselection_coding_system)
15899 (Vnext_selection_coding_system): Delete them.
15900 (syms_of_xselect): Don't declare selection-coding-system and
15901 next-selection-coding-system. They are declared in select.el.
15902
159032008-02-01 Jason Rumney <jasonr@gnu.org>
15904
15905 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15906
15907 * w32fns.c: Include imm.h.
15908 (get_composition_string_fn, get_ime_context_fn): New optional
15909 system functions.
15910 (globals_of_w32fns): Load them from imm32.dll.
15911 (ignore_ime_char): New flag.
15912 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15913 WM_IME_ENDCOMPOSITION messages.
15914
15915 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15916 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15917
159182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15919
15920 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15921 (READCHAR_REPORT_MULTIBYTE): New macro.
15922 (readchar): New 2nd arg MULTIBYTE.
15923 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15924 Make symbol's name multibyte according to the multibyteness of the
15925 source.
15926
159272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15928
15929 * xfaces.c (face_for_overlay_string): Call lookup_face with
15930 correct arguments (fix of synching with the trunk).
15931
159322008-02-01 Kenichi Handa <handa@m17n.org>
15933
15934 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15935 (font_prop_validate_non_neg, font_prop_validate_spacing):
15936 Delete argument prop_index.
15937 (font_property_table): Change arguments to validater. Change Callers.
15938 (font_lispy_object): Delete.
15939 (font_at): Use font_find_object instead fo font_lispy_object.
15940
159412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15942
15943 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15944 and file names.
15945
159462008-02-01 Jason Rumney <jasonr@gnu.org>
15947
15948 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15949 (font_matches_spec): Remove debug output.
15950 (add_font_entity_to_list): Avoid using substituted fonts.
15951
159522008-02-01 Jason Rumney <jasonr@gnu.org>
15953
15954 * doc.c (Fsnarf_documentation):
15955 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15956
159572008-02-01 Miles Bader <miles@gnu.org>
15958
15959 * dispextern.h (struct glyph_row): Only define "clip" field if
15960 HAVE_WINDOW_SYSTEM is defined.
15961
159622008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15963
15964 Fix up multi-tty merge.
15965
15966 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15967 and indentation.
15968
15969 * xfaces.c (free_realized_face, clear_face_gcs):
15970 Include font_done_for_face in the input_blocked section, just in case.
15971
15972 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15973 (get_char_face_and_encoding): Undo last change and remove the *other*
15974 duplicate definition (i.e. keep the one that's better scoped and that
15975 includes code for the font-backend).
15976
15977 * terminal.c (create_terminal): Default keyboard_coding to
15978 `no-conversion' and terminal_coding to `undecided'.
15979
15980 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15981
15982 * fontset.c (free_realized_fontsets): Check that the table entry does
15983 contain a fontset before trying to compare it to `base'.
15984
15985 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15986 syms_of_charset, and syms_of_coding earlier because init_window_once
15987 now needs Vcoding_system_hash_table to be setup.
15988
15989 * coding.h (default_buffer_file_coding): Remove.
15990
15991 * coding.c (default_buffer_file_coding): Remove.
15992 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15993 than ->symbol, and use the terminal-local coding system.
15994 (syms_of_coding): Don't setup the coding-systems that are not
15995 terminal-local.
15996 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15997
15998 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15999 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16000
16001 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16002 in chartab.c and were re-added here by mistake.
16003 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16004
16005 * doc.c (Fsnarf_documentation):
16006 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16007 src to etc.
16008
16009 * ChangeLog.10: Add mistakenly removed entry.
16010
160112008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16012
16013 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16014
160152008-02-01 Miles Bader <miles@gnu.org>
16016
16017 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16018 Add extra args to FACE_FOR_CHAR.
16019
160202008-02-01 Kenichi Handa <handa@m17n.org>
16021
16022 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16023 in sequence.
16024
16025 * chartab.c (map_sub_char_table, map_char_table): If the range
16026 contains just one character, call the function with that character
16027 even if the depth is not 3.
16028
160292008-02-01 Jason Rumney <jasonr@gnu.org>
16030
16031 * w32font.c (w32font_text_extents): Calculate metrics for the
16032 whole string.
16033
160342008-02-01 Jason Rumney <jasonr@gnu.org>
16035
16036 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16037
160382008-02-01 Jason Rumney <jasonr@gnu.org>
16039
16040 * w32term.c (x_set_glyph_string_clipping): Use
16041 get_glyph_string_clip_rects.
16042 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16043 Adjust for the change of struct glyph_string.
16044
16045 * w32font.c (w32font_draw): Do clipping here.
16046
160472008-02-01 Kenichi Handa <handa@m17n.org>
16048
16049 * xftfont.c (xftfont_draw): Adjust for the change of struct
16050 glyph_string.
16051
16052 * xterm.c (x_set_glyph_string_clipping): Use
16053 get_glyph_string_clip_rects.
16054 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16055 Adjust for the change of struct glyph_string.
16056
16057 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16058 the resulting clip(s}.
16059 (expose_overlaps): Add arg r. Change callers. Set it to
16060 row->clip temporarily.
16061 (expose_window): Redraw rows overlapping the exposed area.
16062
16063 * dispextern.h (struct glyph_row): New member clip.
16064 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16065 clip_height, new member clip, and num_clips.
16066
160672008-02-01 Kenichi Handa <handa@m17n.org>
16068
16069 * data.c (Fchar_or_string_p): Fix docstring.
16070
160712008-02-01 Kenichi Handa <handa@m17n.org>
16072
16073 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16074 create a temporary XftDraw object.
16075
160762008-02-01 Kenichi Handa <handa@m17n.org>
16077
16078 * font.c (Ffontp): Fix docstring.
16079
16080 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16081 strong evidence of ISO-2022.
16082
160832008-02-01 Kenichi Handa <handa@m17n.org>
16084
16085 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16086 SYNTAX_ENTRY_FOLLOW_PARENT.
16087
160882008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16089
16090 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16091 its type.
16092 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16093 Update to the new type of weak_hash_tables and next_weak.
16094
16095 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16096 a plain C pointer to Lisp_Hash_Table.
16097
16098 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16099 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16100 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16101 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16102 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16103 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16104 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16105 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16106 (GC_EQ): Remove since they've been identical to their non-GC_
16107 alter-egos ever since the markbit was eradicated.
16108
16109 * alloc.c:
16110 * buffer.c:
16111 * buffer.h:
16112 * data.c:
16113 * fileio.c:
16114 * filelock.c:
16115 * fns.c:
16116 * frame.h:
16117 * lisp.h:
16118 * macterm.c:
16119 * print.c:
16120 * process.c:
16121 * w32fns.c:
16122 * w32menu.c:
16123 * w32term.c:
16124 * xfns.c:
16125 * xmenu.c:
16126 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16127
161282008-02-01 Kenichi Handa <handa@m17n.org>
16129
16130 * chartab.c (map_sub_char_table): Make it work for the top-level
16131 char-table. Fix handling of parent char-table.
16132 (map_char_table): Adjust for the above change.
16133
161342008-02-01 Jason Rumney <jasonr@gnu.org>
16135
16136 * w32font.c (Qgdi): Rename from Qw32.
16137
161382008-02-01 Jason Rumney <jasonr@gnu.org>
16139
16140 * w32bdf.c (get_quoted_string): Make function static.
16141
161422008-02-01 Kenichi Handa <handa@m17n.org>
16143
16144 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16145 bigger ascent and descent than those of the font, use them as
16146 font's ascent and descent.
16147
161482008-02-01 Kenichi Handa <handa@m17n.org>
16149
16150 * Makefile.in (${lispsource}international/charprop.el): Move this
16151 target within "#ifdef HAVE_UNIDATA" and "#endif".
16152
161532008-02-01 Kenichi Handa <handa@m17n.org>
16154
16155 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16156 (shortlisp): Add ../lisp/language/tai-viet.el.
16157
161582008-02-01 Ulrich Mueller <ulm@gentoo.org>
16159
16160 * Makefile.in (${lispsource}international/charprop.el): Depend on
16161 temacs${EXEEXT}.
16162
161632008-02-01 Jason Rumney <jasonr@gnu.org>
16164
16165 * w32font.c (w32font_close): Delete the GDI font object.
16166
16167 * w32menu.c: Include character.h.
16168
16169 * w32proc.c: Likewise.
16170
16171 * w32select.c: Likewise.
16172
16173 * makefile.w32-in (w32proc.o): Depend on character.h.
16174
161752008-02-01 Jason Rumney <jasonr@gnu.org>
16176
16177 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16178
16179 * w32menu.c (syms_of_w32menu): Likewise.
16180
16181 * w32proc.c (syms_of_ntproc): Likewise.
16182
16183 * w32select.c (syms_of_w32select): Likewise.
16184
16185 * w32term.c (syms_of_w32term): Likewise.
16186
161872008-02-01 Jason Rumney <jasonr@gnu.org>
16188
16189 * w32font.c (w32font_draw): Delete brush after using it.
16190
161912008-02-01 Jason Rumney <jasonr@gnu.org>
16192
16193 * w32font.c (w32font_open): Don't set font_idx.
16194 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16195 to font settings.
16196 (w32font_draw): Fill background explicitly.
16197
161982008-02-01 Jason Rumney <jasonr@gnu.org>
16199
16200 * w32term.c (w32_initialize): Don't call w32font_initialize.
16201
16202 * w32font.c (w32font_info): Remove subranges.
16203 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16204 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16205 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16206 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16207 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16208 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16209 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16210 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16211 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16212 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16213 New symbols.
16214 (font_callback_data): New struct.
16215 (w32font_list, w32font_match): Use it.
16216 (w32font_open): Don't populate subranges.
16217 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16218 (w32font_encode_char): Always return unicode code-point as-is.
16219 (w32font_text_extents): Supply a transformation matrix to
16220 GetGlyphOutline. Never look up by glyph index. Avoid looping
16221 twice. Use unicode version of GetTexExtentPoint32 instead of
16222 glyph index version.
16223 (set_fonts_frame): Remove.
16224 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16225 set frame parameter. Use backward compatible fake foundries.
16226 Save generic family in extra slot under QCfamily. Make width slot
16227 constant. Save QCspacing value. Save list of scripts instead of
16228 binary subranges.
16229 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16230 (add_font_entity_to_list): Use font_callback_data struct. Filter
16231 unwanted fonts.
16232 (add_one_font_entity_to_list): Use font_callback_data struct.
16233 (w32_registry): Default to iso10646_1.
16234 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16235 string font registries. Don't fill in font name if it is a generic
16236 family name, fill family instead. Use spacing, family and script
16237 extra info to fill pitch, family and charset fields.
16238 (list_all_matching_fonts): Use font_callback_data struct.
16239 (unicode_range_for_char): Remove.
16240 (font_supported_scripts): New function.
16241 (w32font_initialize): Remove.
16242 (syms_of_w32font): Update which symbols are defined.
16243
162442008-02-01 Jason Rumney <jasonr@gnu.org>
16245
16246 * font.c (font_pixel_size): Reverse assq_no_quit args.
16247
16248 * w32term.h (FONT_WIDTH): Report max width, not average.
16249 (FONT_MAX_WIDTH): Remove.
16250 (FONT_AVG_WIDTH): New macro.
16251
16252 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16253 redefinition of FONT_WIDTH.
16254
16255 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16256 (w32_cache_char_metrics): Use FONT_WIDTH.
16257
16258 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16259
162602008-02-01 Jason Rumney <jasonr@gnu.org>
16261
16262 * w32font.c (w32font_open): Make lfHeight negative.
16263
16264 * w32fns.c (x_default_font_parameter): Use new style font name.
16265 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16266
162672008-02-01 Jason Rumney <jasonr@gnu.org>
16268
16269 * w32font.c (QCsubranges): New symbol.
16270 (w32font_open, w32font_has_char): Get subranges from subproperty
16271 of extra.
16272 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16273 (syms_of_w32font): Define :subranges symbol.
16274
16275 * font.c (font_put_extra): Expose externally.
16276
16277 * font.h (font_put_extra): Move declaration from font.c.
16278
16279 * font.c (Ffont_get): Use font driver to determine otf capability.
16280 (adjust_anchor): Check if driver defines anchor_point before using.
16281
16282 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16283 (w32font_draw): Use options.
16284 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16285 Fix detection of truetype fonts.
16286 (registry_to_w32_charset): Handle charsets other than iso8859-1
16287 expressed as lisp symbols.
16288 (w32_registry): Express charset as lisp symbol.
16289 (fill_in_logfont): Reverse pixel and point height logic.
16290 Don't set width here. Set quality to default.
16291
16292 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16293 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16294
16295 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16296 Remove redundant loop and allocation.
16297
16298 * makefile.w32-in (font.o, w32font.o): New objects.
16299 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16300 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16301
16302 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16303 STORE_XCHARB a valid l-value.
16304
16305 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16306 calculations for non-Truetype fonts.
16307 (x_draw_glyph_string): Sync with xterm.c.
16308 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16309 Remove redundant code.
16310 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16311
16312 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16313 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16314
16315 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16316 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16317
16318 * w32font.c: New file for w32 font backend.
16319
163202008-02-01 Kenichi Handa <handa@m17n.org>
16321
16322 * term.c: Don't include "buffer.h" twice.
16323
163242008-02-01 Kenichi Handa <handa@m17n.org>
16325
16326 * character.c (Funibyte_string): New function.
16327 (syms_of_character): Defsubr it.
16328
163292008-02-01 Jason Rumney <jasonr@gnu.org>
16330
16331 * w32term.c [USE_FONT_BACKEND]:
16332 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16333 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16334 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16335 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16336 (x_free_frame_resources): Sync with xterm.c.
16337
163382008-02-01 Andreas Schwab <schwab@suse.de>
16339
16340 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16341 char-table size.
16342
163432008-02-01 Kenichi Handa <handa@m17n.org>
16344
16345 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16346
163472008-02-01 Kenichi Handa <handa@m17n.org>
16348
16349 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16350 font_otf_gpos, add font_drive_otf.
16351
16352 * fontset.c (fontset_find_font): Pay attention to font size
16353 specified for a font.
16354 (reorder_font_vector): Check contents of font_def.
16355
16356 * font.c (struct otf_list): Delete it.
16357 (otf_list): Make it a lisp variable.
16358 (otf_open): Use lispy otf_list.
16359 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16360 (check_otf_features): New function.
16361 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16362 New functions.
16363 (font_drive_otf): New function merging font_otf_gsub and
16364 font_otf_gpos.
16365 (font_open_for_lface): New arg spec. Change argument order.
16366 (font_load_for_face): Adjust for the change of font_open_for_lface.
16367 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16368 Ffont_otf_gpos.
16369 (syms_of_font): Staticpro otf_list. Delete defsubr of
16370 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16371
16372 * xfaces.c (set_font_frame_param): Adjust for the change of
16373 font_open_for_lface.
16374
16375 * font.h (font_open_for_lface): Adjust prototype.
16376 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16377 member otf_drive.
16378 (font_otf_gsub, font_otf_gpos): Delete externs.
16379 (font_drive_otf): Extern it.
16380
163812008-02-01 Kenichi Handa <handa@m17n.org>
16382
16383 * font.c (font_at): If the window W is not on a window system,
16384 return Qnil.
16385
16386 * coding.c (produce_chars, encode_coding): Don't call
16387 insert_from_gap if no characters to produce.
16388
163892008-02-01 Kenichi Handa <handa@m17n.org>
16390
16391 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16392 Fclear_face_cache.
16393
16394 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16395
163962008-02-01 Miles Bader <miles@gnu.org>
16397
16398 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16399 Parse "--disable-font-backend" option.
16400 (standard_args): Add "--disable-font-backend" option.
16401
164022008-02-01 Kenichi Handa <handa@m17n.org>
16403
16404 * fontset.c (fontset_find_font): New function.
16405 (fontset_font): Use fontset_find_font.
16406 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16407 Register the specified font for all Latin characters.
16408 (new_fontset_from_font): Register the specified font for all Latin
16409 characters.
16410 (dump_fontset): For a realized fontset, include the base fontset
16411 name in the returned vector.
16412
164132008-02-01 Kenichi Handa <handa@m17n.org>
16414
16415 * character.h (CHAR_STRING): Cast C to unsigned on calling
16416 char_string.
16417
16418 * character.c (char_string): Type of arg C changed to unsigned.
16419 Signal an error if C is an invalid character code.
16420
16421 * editfns.c (general_insert_function, Fchar_to_string):
16422 Use CHARACTERP, not INTEGERP.
16423
164242008-02-01 Kenichi Handa <handa@m17n.org>
16425
16426 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16427 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16428
16429 * regex.c (analyse_first): Fix for multibyte characters in "case
16430 charset:" and "case categoryspec:".
16431
164322008-02-01 Andreas Schwab <schwab@suse.de>
16433
16434 * Makefile.in (LIBES): Move standard libraries to the end.
16435
164362008-02-01 Kenichi Handa <handa@m17n.org>
16437
16438 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16439 nonzero, don't shrink the buffer nextb.
16440
16441 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16442
16443 * coding.c (coding_alloc_by_making_gap): New arg offset.
16444 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16445 offset.
16446 (decode_coding_iso_2022): Update coding->safe_charsets.
16447 (decode_coding_gap): Temporarily set
16448 current_buffer->text->inhibit_shrinking to 1.
16449
164502008-02-01 Kenichi Handa <handa@m17n.org>
16451
16452 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16453 indexing into elements of s->cmp and s->char2b.
16454
164552008-02-01 Juanma Barranquero <lekktu@gmail.com>
16456
16457 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16458
164592008-02-01 Kenichi Handa <handa@m17n.org>
16460
16461 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16462 target_multibyte instead of multibyte.
16463 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16464 (bcmp_translate): Change the argument name from multibyte to
16465 target_multibyte.
16466
164672008-02-01 Kenichi Handa <handa@m17n.org>
16468
16469 These changes are to compile a regexp into a pattern that can be
16470 used both for multibyte and unibyte targets.
16471
16472 * Makefile.in (search.o): Depend on charset.h.
16473
16474 * character.c (multibyte_char_to_unibyte_safe): New function.
16475
16476 * search.c: Include "charset.h".
16477 (compile_pattern_1): Delete argument multibyte. Don't set
16478 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16479 (compile_pattern): Don't compare cp->buf.target_multibyte.
16480 Compare cp->buf.charset_unibyte.
16481 (compile_pattern): Set cp->buf.target_multibyte.
16482
16483 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16484
16485 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16486
16487 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16488 multibyte. Change callers.
16489 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16490 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16491 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16492 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16493 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16494 (regex_compile): Make the compiled pattern usable both for
16495 multibyte and unibyte targets.
16496 (analyse_first): Make the fastmap usable both for multibyte and
16497 unibyte targets.
16498 (TRANSLATE_VIA_MULTIBYTE): Delete.
16499 (re_match_2_internal): Pay attention to the case that the
16500 multibyteness of bufp and target may be different.
16501
165022008-02-01 Kenichi Handa <handa@m17n.org>
16503
16504 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16505 empty box occupy at least one column width.
16506
165072008-02-01 Miles Bader <miles@gnu.org>
16508
16509 * Makefile.in: Remove redundant HAVE_XFT clause.
16510
165112008-02-01 Kenichi Handa <handa@m17n.org>
16512
16513 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16514
165152008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16518 being nil.
16519
165202008-02-01 Kenichi Handa <handa@m17n.org>
16521
16522 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16523
165242008-02-01 Kenichi Handa <handa@m17n.org>
16525
16526 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16527
165282008-02-01 Kenichi Handa <handa@m17n.org>
16529
16530 * search.c (simple_search): Fix previous change.
16531
165322008-02-01 Kenichi Handa <handa@m17n.org>
16533
16534 * xftfont.c (ftfont_font_format): Extern declaration.
16535
16536 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16537
16538 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16539 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16540
16541 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16542 (ftfont_font_format): Fix previous change.
16543
16544 * font.h (Ffont_xlfd_name): EXFUN it.
16545
16546 * font.c (font_parse_xlfd): Fix the array size of `f'.
16547 (register_font_driver): Use EQ to compare driver->type.
16548
16549 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16550 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16551 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16552
165532008-02-01 Kenichi Handa <handa@m17n.org>
16554
16555 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16556 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16557
165582008-02-01 Kenichi Handa <handa@m17n.org>
16559
16560 * xfont.c (xfont_open): Set font->format.
16561
16562 * xftfont.c (xftfont_open): Set font->format.
16563
16564 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16565 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16566 (ftfont_open): Set font->format.
16567 (ftfont_font_format): New function.
16568
16569 * font.h (struct font): New member format.
16570
16571 * font.c (Qopentype): New variable.
16572 (syms_of_font): Defsym it.
16573 (Fquery_font): Change the format of the last element of the return
16574 value.
16575
165762008-02-01 Kenichi Handa <handa@m17n.org>
16577
16578 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16579 last resort.
16580
165812008-02-01 Kenichi Handa <handa@m17n.org>
16582
16583 * coding.c (detect_coding_charset): Fix detection of multi-byte
16584 charset.
16585
165862008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16587
16588 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16589
165902008-02-01 Kenichi Handa <handa@m17n.org>
16591
16592 * xdisp.c (get_next_display_element): Set it->face_id for the
16593 first component of a composition.
16594 (x_produce_glyphs): Check if the font is changed or not for composition.
16595
165962008-02-01 Kenichi Handa <handa@m17n.org>
16597
16598 * fontset.c (Qlatin): New variable.
16599 (syms_of_fontset): Define it as a lisp symbol.
16600 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16601
166022008-02-01 Kenichi Handa <handa@m17n.org>
16603
16604 * font.c (font_unparse_fcname): Pay attention to the case that
16605 some of font property is a null string.
16606
166072008-02-01 Kenichi Handa <handa@m17n.org>
16608
16609 * term.c: Include "composite.h".
16610 (encode_terminal_code): Output all components of composition.
16611 Check the size of encode_terminal_src.
16612 (produce_glyphs): For composition, call produce_composite_glyph.
16613 (append_composite_glyph, produce_composite_glyph): New functions.
16614
16615 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16616 is not found, get font_info from the current ascii face.
16617
166182008-02-01 Kenichi Handa <handa@m17n.org>
16619
16620 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16621 buffer-file-name to Qnil before calling insert_from_buffer.
16622
16623 * font.c (font_unparse_fcname): Pay attention to the case that
16624 foundry is a null string.
16625
166262008-02-01 Kenichi Handa <handa@m17n.org>
16627
16628 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16629
16630 * font.c (Qunicode_sip): New variable.
16631 (syms_of_font): Declare it as a Lisp symbol.
16632
16633 * font.h (Qunicode_sip): Extern it.
16634
166352008-02-01 Kenichi Handa <handa@m17n.org>
16636
16637 * composite.c (get_composition_id): Pay attention to TAB component.
16638
16639 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16640 TAB. Adjust for the change of s->char2b which always points to
16641 the first element of allocated memory.
16642
16643 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16644
16645 * xdisp.c (handle_composition_prop): Set it->c to the first
16646 non-TAB component.
16647 (fill_composite_glyph_string): Change argument.
16648 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16649 (x_produce_glyphs): Fix handling of left/right padding.
16650
166512008-02-01 Kenichi Handa <handa@m17n.org>
16652
16653 * coding.c (detect_coding_system): Fix for handling off
16654 inhibit_iso_escape_detection. Fix for the case that no coding
16655 system is defined for a specific coding category.
16656
166572008-02-01 Kenichi Handa <handa@m17n.org>
16658
16659 * font.c (font_matching_entity): Delete unused local var.
16660
16661 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16662 opening a font.
16663
16664 * fileio.c (Finsert_file_contents): On recovering a file, assume
16665 Unix-like eol.
16666 (choose_write_coding_system): On auto-saving a file, force
16667 Unix-like eol.
16668
16669 * coding.c (setup_coding_system): Fix setting of
16670 coding->common_flags based on eol_type.
16671 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16672 inherit from it.
16673
166742008-02-01 Kenichi Handa <handa@m17n.org>
16675
16676 * alloc.c (NSTATICS): Increas to 0x600.
16677
166782008-02-01 Kenichi Handa <handa@m17n.org>
16679
16680 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16681 (ftfont_list): Don't check :name property.
16682 (ftfont_match): New function.
16683 (ftfont_pattern_entity): If the pattern doesn't contain
16684 FC_SPACING, don't assume FC_MONO.
16685
16686 * font.h (struct font_driver): New member `match'.
16687 (font_update_drivers): Adjust prototype.
16688
16689 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16690 property of FONT.
16691 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16692 them unconditionally.
16693 (font_matching_entity): New function.
16694 (font_open_by_name): Try font_matching_entity if exact match is
16695 not found.
16696 (font_update_drivers): Delete the arg FONT. Return a list of
16697 actually used backends. Don't free faces, font caches here.
16698 Don't store data in frame parameters. Don't call x_set_font.
16699 (Ffont_spec): Store :name property as is.
16700 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16701 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16702 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16703 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16704 Call font->driver->otf_gsub instead of font_otf_gsub.
16705
16706 * frame.c (x_set_font_backend): Do more works that were done in
16707 font_update_drivers before.
16708
16709 * xfont.c (xfont_match): New function.
16710 (xfont_driver): Set xfont_driver.match to xfont_match.
16711 (xfont_draw): Set font in GC if necessary.
16712
16713 * ftxfont.c (ftxfont_match): New function.
16714 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16715
16716 * xftfont.c (xftfont_match): New function.
16717 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16718
167192008-02-01 Kenichi Handa <handa@m17n.org>
16720
16721 * font.h (struct font): New member scalable.
16722 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16723 (font_otf_gsub): Adjust prototype.
16724
16725 * font.c (font_otf_capability): Fix handling of the default langsys.
16726 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16727 Check the contents of SPEC.
16728 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16729 (check_gstring): New function.
16730 (REPLACEMENT_CHARACTER): New macro.
16731 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16732 glyph codes of GSTRING.
16733 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16734 (font_prepare_composition): Set cmp->glyph_len.
16735 (font_open_entity): Set font->scalable.
16736 (Ffont_get): Handle :otf property.
16737 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16738 functions.
16739 (Fquery_font): Use font->font.full_name.
16740 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16741 Sfont_otf_alternates.
16742
16743 * ftfont.c (ftfont_open): Set font->font.full_name and
16744 font->font.name properly. Fix calculation of font->font.height
16745 and font->min_width.
16746
16747 * ftxfont.c (ftxfont_create_gcs): New function.
16748 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16749 (ftxfont_draw_backgrond): Fix filling region.
16750 (ftxfont_default_fid): New function.
16751 (ftxfont_open): Set xfont->fid to the return value of
16752 ftxfont_default_fid.
16753 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16754 (ftxfont_done_face): Free only GCs that are created by
16755 ftxfont_create_gcs.
16756 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16757
16758 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16759 Clip to src->width, etc (not src->clip_XXX).
16760
16761 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16762 FontBackend frame parameter.
16763
167642008-02-01 Kenichi Handa <handa@m17n.org>
16765
16766 * font.h (struct font_driver_list): New member `on'.
16767 (Fclear_font_cache): EXFUN it.
16768 (font_update_drivers): Extern it.
16769
16770 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16771 (font_list_entities): Check driver_list->on.
16772 (register_font_driver): Initalize `on' member to 0.
16773 (font_update_drivers): New function.
16774 (Fclear_font_cache): Check driver_list->on.
16775
16776 * frame.h (Qfont_backend): Extern it.
16777 (x_set_font_backend): Extern it.
16778
16779 * frame.c (Qfont_backend): New variable.
16780 (frame_parms): New element for font-backend.
16781 (x_set_font_backend): New function.
16782
16783 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16784 FontBackend frame parameter.
16785 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16786 x_set_font_backend.
16787
16788 * xfont.c (xfont_list): Don't try listing by :name property if the
16789 name is not for XLFD.
16790
167912008-02-01 Kenichi Handa <handa@m17n.org>
16792
16793 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16794 (LGLYPH_SET_TO): New macros.
16795 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16796 element of G is vector or not.
16797 (font_at): Extern it.
16798
16799 * font.c: Include window.h.
16800 (font_lispy_object): New function.
16801 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16802 end of valid glyph.
16803 (font_close_object): Fix getting (struct font *).
16804 (font_at): New function.
16805 (Ffont_get): If FONT is a font-object, get entity from it.
16806 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16807 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16808 range check.
16809 (Ffont_at): New function.
16810 (syms_of_font): Defsubr Sfont_at.
16811
16812 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16813 before the entry for Qcomposition.
16814 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16815 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16816 the font in gstring.
16817 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16818 LGLYPH_FORM (g) to detect the end of valid glyph.
16819 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16820 we are composing with gstring.
16821
16822 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16823 Check if adjustment is vector or not.
16824
16825 * Makefile.in (font.o): Make it depends on window.h.
16826
168272008-02-01 Kenichi Handa <handa@m17n.org>
16828
16829 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16830 adjustment is vector or not.
16831
168322008-02-01 Miles Bader <miles@gnu.org>
16833
16834 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16835
168362008-02-01 Kenichi Handa <handa@m17n.org>
16837
16838 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16839 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16840 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16841
16842 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16843 (DEVICE_DELTA): Fix typo.
16844 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16845 LGLYPH format.
16846
16847 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16848 the change of LGLYPH format.
16849
168502008-02-01 Kenichi Handa <handa@m17n.org>
16851
16852 * ftfont.c (ftfont_list): Fix typo.
16853 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16854
168552008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16856
16857 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16858
16859 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16860 xftface_info is non-NULL.
16861
168622008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16863
16864 * ftfont.c (ftfont_list): Move misplaced #endif.
16865
168662008-02-01 Kenichi Handa <handa@m17n.org>
16867
16868 * ftfont.c (ftfont_list): Pay attention to the case that
16869 FC_CAPABILITY is not defined.
16870
168712008-02-01 Kenichi Handa <handa@m17n.org>
16872
16873 * xftfont.c (xftfont_open): Set charset related members to -1.
16874
16875 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16876 QCname.
16877 (ftfont_open): Set charset related members to -1.
16878
16879 * fontset.c (Votf_script_alist): New variable.
16880 (syms_of_fontset): Initialize it.
16881 (fontset_font): Delete unused variable.
16882
16883 * fontset.h (Votf_script_alist): Extern it.
16884
16885 * font.c (font_find_for_lface): Optimize code.
16886
16887 * font.h (font_close_object, font_merge_old_spec): Extern them.
16888
168892008-02-01 Kenichi Handa <handa@m17n.org>
16890
16891 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16892 (syms_of_font): Initialize them.
16893 (font_pixel_size): Allow float value in dpi.
16894 (font_prop_validate_type): Delete.
16895 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16896 Change caller.
16897 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16898 (font_prop_validate_extra): Delete.
16899 (font_prop_validate_spacing): New function.
16900 (font_property_table): Add elements for all known properties.
16901 (get_font_prop_index): Rename from check_font_prop_name. New
16902 argument FROM. Change caller.
16903 (font_prop_validate): Validate all known properties.
16904 (font_put_extra): Delete argument force. Change caller.
16905 (font_expand_wildcards): Make it static. Fix the way of shrinking
16906 the possible range.
16907 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16908 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16909 Change caller.
16910 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16911 (font_parse_fcname): Delete argument merge. Fix parsing of point
16912 size. Don't validate properties values here. Change caller.
16913 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16914 (font_open_by_name): Delete unused variable.
16915 (Ffont_spec): Likewise. Validate property values.
16916 (Ffont_match_p): New function.
16917
16918 * font.h (QCscalable): Extern it.
16919 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16920
16921 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16922
16923 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16924 (xfont_list_pattern): New function.
16925 (xfont_list): Use xfont_list_pattern.
16926
169272008-02-01 Kenichi Handa <handa@m17n.org>
16928
16929 * font.h (Flist_fonts): EXFUN it.
16930
169312008-02-01 Jason Rumney <jasonr@gnu.org>
16932
16933 * w32term.c (w32_initialize): Add back smoothing_type and
16934 smoothing_enabled definitions.
16935
169362008-02-01 Kenichi Handa <handa@m17n.org>
16937
16938 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16939 s->face->font on determining underline position.
16940
169412008-02-01 Kenichi Handa <handa@m17n.org>
16942
16943 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16944 (font_has_char): Accept font-object too.
16945 (font_find_for_lface): Try at first with a size specified in face.
16946
169472008-02-01 Kenichi Handa <handa@m17n.org>
16948
16949 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16950 font_open_by_name.
16951
169522008-02-01 Kenichi Handa <handa@m17n.org>
16953
16954 * font.h (QCspacing, QCdpi): Extern them.
16955 (enum font_spacing): New enum.
16956 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16957
16958 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16959 (QCspacing, QCdpi): New variables.
16960 (syms_of_font): Initialize them.
16961 (font_pixel_size): New function.
16962 (font_put_extra): New function.
16963 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16964 in FONT_EXTRA.
16965 (font_parse_fcname): Handle enumerated values (e.g. bold).
16966 Fix handling font size. Add QCname property that contains only
16967 unknown properties.
16968 (font_score): Change argument. Change caller. Pay attention to
16969 FONT_PIXEL_SIZE_QUANTUM.
16970 (font_sort_entites, font_list_entities, font_find_for_lface)
16971 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16972 (Ffont_spec): Add QCname property that contains only unknown properties.
16973
16974 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16975 include weight in listing pattern, instead check weight of each
16976 listed font. Don't include scalable in pattern. Pay attention to
16977 FONT_PIXEL_SIZE_QUANTUM.
16978
169792008-02-01 Kenichi Handa <handa@m17n.org>
16980
16981 * font.c (font_parse_fcname): Fix parsing of point-size.
16982 (font_unparse_fcname): Produce symbolic names for style properties.
16983 (font_list_entities): Handle float size correctly.
16984 (font_open_by_name): Prefer `normal' property values if the name
16985 doesn't specify them.
16986
16987 * fontset.c (Finternal_char_font): Use font_get_name, not
16988 Ffont_xlfd_name.
16989
16990 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16991 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16992 pattern. Don't force scalable.
16993
16994 * xftfont.c (xftfont_open): For generating a name, start from
16995 96-byte buffer.
16996
169972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16998
16999 * frame.h (x_new_fontset2): Fix prototype.
17000
170012008-02-01 Kenichi Handa <handa@m17n.org>
17002
17003 * font.h (struct font_driver): Delete member parse_name.
17004 (font_match_p, font_get_spec, font_parse_fcname)
17005 (font_unparse_fcname): Extern them.
17006 (font_get_name): Adjust prototype.
17007
17008 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17009 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17010 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17011 unnecessary checks for weight, slant, and swidth.
17012 (font_parse_fcname): New function.
17013 (font_unparse_fcname): New function.
17014 (font_parse_name): New function.
17015 (font_match_p): New function.
17016 (font_get_name): Change return value to Lisp string.
17017 (font_get_spec): New function.
17018 (Qunspecified, Qignore_defface): Don't extern them.
17019 (font_find_for_lface): Assume that LFACE is fully specified.
17020 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17021 object, use it for FACE.
17022 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17023 driver->parse_name.
17024 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17025
17026 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17027 prototype.
17028
17029 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17030 argument F. Don't call Fnew_fontset. Instead, directly call
17031 make_fontset.
17032
17033 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17034
17035 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17036 of x_new_fontset2.
17037
17038 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17039 (Qsans__serif): New variables.
17040 (ftfont_generic_family_list): New variable.
17041 (syms_of_ftfont): Initialize the above variables.
17042 (ftfont_pattern_entity): Delete argument NAME.
17043 (ftfont_list_generic_family): New function.
17044 (ftfont_parse_name): Delete this function.
17045 (ftfont_list): Try generic family only when FcFontList found no font.
17046 (ftfont_list_family): Fix args to FcObjectSetBuild.
17047
17048 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17049 object in attrs[LFACE_FONT_INDEX].
17050 (set_lface_from_font_name): Cancel all changes for font-backend.
17051 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17052 function.
17053 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17054 font object in QCfont attribute.
17055 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17056 (realize_default_face) [USE_FONT_BACKEND]: Call
17057 set_lface_from_font_and_fontset.
17058
17059 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17060 "fixed", and signal error here if no suitable font was found.
17061
17062 * xfont.c (xfont_parse_name): Delete this function.
17063
17064 * xftfont.c (xftfont_open): Change coding style of error
17065 handling. Generate fontconfig's fontname pattern.
17066
17067 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17068 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17069
17070 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17071 Both args FONTSET and FONT_OBJECT must be existing ones.
17072
170732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17074
17075 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17076
170772008-02-01 Kenichi Handa <handa@m17n.org>
17078
17079 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17080
17081 * font.h (struct font): Fix typo.
17082
17083 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17084 XLFD_XXX_INDEX.
17085 (enum xlfd_field_mask): New enum.
17086 (intern_font_field): Changed argument. Change caller. If digits
17087 are followed by non-digits, return a symbol.
17088 (font_expand_wildcards): New function.
17089 (font_parse_xlfd): Fix wildcard handling.
17090 (Ffont_spec): If :name is specified, reflect the info in the other
17091 properties.
17092
17093 * ftfont.c (ftfont_pattern_entity): Fix typo.
17094 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17095 locale.
17096
170972008-02-01 Kenichi Handa <handa@m17n.org>
17098
17099 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17100
17101 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17102 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17103 registry doesn't specify encoding part.
17104 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17105 (font_open_by_name): At first try parsing the name.
17106 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17107 as Lisp symbols.
17108
17109 * fontset.c (reorder_font_vector): Pay attention to the case that
17110 the 3rd element of font_def is nil.
17111 (fontset_font): For the default fontset, append one more fontset
17112 elements for a script-based font specification. Don't add script
17113 attribute on finding a font.
17114 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17115 font name.
17116 (fontset_ascii_font): If a font can't be opened, return nil.
17117
17118 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17119 (ftfont_pattern_entity): New function.
17120 (ftfont_get_cache): Assume that freetype_font_cache is already
17121 initialized.
17122 (ftfont_list): Handle the case that a file is specified in font
17123 name. Use ftfont_pattern_entity to generate entities.
17124 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17125 (syms_of_ftfont): Initialize freetype_font_cache.
17126
17127 * xftfont.c (xftfont_open): Make the font name fontconfig's
17128 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17129 (xftfont_close): Free font->font.name if not NULL.
17130
17131 * xfont.c (xfont_list): If script is specified for a font, return
17132 null_vector.
17133 (xfont_list_family): Declare argument type.
17134
17135 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17136 name, set LFACE_FONT (lface) to nil.
17137
17138 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17139 return Qnil.
17140
171412008-02-01 Kenichi Handa <handa@m17n.org>
17142
17143 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17144 (standard_args): Add "-enable-font-backend".
17145
171462008-02-01 Kenichi Handa <handa@m17n.org>
17147
17148 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17149 (struct xftdraw_list, xftdraw_list): Delete them.
17150 (register_xftdraw, check_xftdraw): Delete them.
17151 (xftfont_prepare_face): Don't call register_xftdraw.
17152 (xftfont_done_face): Don't call check_xftdraw.
17153 (xftfont_draw): Get background color only when with_background is
17154 nonzero.
17155
17156 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17157
171582008-02-01 Kenichi Handa <handa@m17n.org>
17159
17160 These changes are for the new font handling codes.
17161
17162 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17163 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17164 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17165 (FONTSRC, FONTOBJ): New variables.
17166 (obj): Add $(FONTOBJ).
17167 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17168 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17169 @LIBOTF_LIBS@.
17170 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17171 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17172
17173 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17174
17175 * character.h (Vscript_representative_chars): Extern it.
17176
17177 * character.c (Vscript_representative_chars): New variable.
17178 (syms_of_character): Declare it as a Lisp variable.
17179
17180 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17181 enable_font_backend is nonzero, accept the composition method
17182 COMPOSITION_WITH_GLYPH_STRING.
17183
17184 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17185 enumeration COMPOSITION_WITH_GLYPH_STRING.
17186
17187 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17188 members clip_x, clip_y, clip_width, and clip_height.
17189 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17190
17191 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17192 --enable-font-backend. Call syms_of_font.
17193
17194 * fns.c (assoc_no_quit): New function.
17195
17196 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17197 (face_for_font, new_fontset_from_font)
17198 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17199
17200 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17201 (fontset_font, fontset_ascii, face_for_char)
17202 (make_fontset_for_ascii_face, Ffont_info)
17203 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17204 is nonzero, use font-backend mechanism.
17205 (find_font_encoding): Make it non-static.
17206 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17207 New functions.
17208
17209 * frame.h (struct frame): New members resx and resy.
17210 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17211 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17212
17213 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17214 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17215
17216 * lisp.h (assoc_no_quit): Extern it.
17217
17218 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17219 Through out the file, use FONT_INFO_FROM_FACE instead of
17220 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17221 rif->per_char_metric.
17222 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17223 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17224 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17225 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17226 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17227 nonzero, use font-backend mechanism.
17228 (get_per_char_metric): New function.
17229
17230 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17231 (set_lface_from_font_name)
17232 (set_font_frame_param, free_realized_face)
17233 (prepare_face_for_display, clear_face_gcs)
17234 (Finternal_set_font_selection_order, realize_x_face)
17235 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17236 font-backend mechanism.
17237 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17238 (load_face_font) [USE_FONT_BACKEND]: Abort.
17239 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17240 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17241
17242 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17243 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17244 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17245 nonzero, register all available font drivers. Call
17246 x_default_font_parameter for deciding a font.
17247 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17248
17249 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17250 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17251 (x_set_glyph_string_clipping_exactly)
17252 (x_compute_glyph_string_overhangs)
17253 (x_draw_glyph_string_foreground)
17254 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17255 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17256 enable_font_backend is nonzero, use font-backend mechanism.
17257 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17258
172592008-02-01 Kenichi Handa <handa@m17n.org>
17260
17261 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17262 system_eol_type.
17263 (syms_of_coding): Initialize system_eol_type.
17264
17265 * process.c (Fset_process_coding_system): Inherit system's eol
17266 format if necessary.
17267
172682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17269
17270 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17271
172722008-02-01 Kenichi Handa <handa@m17n.org>
17273
17274 * coding.c (decode_eol): Pay attention to buffer relocation in
17275 del_range_2.
17276 (decode_coding): Call decode_eol before restoring undo_list.
17277
172782008-02-01 Kenichi Handa <handa@m17n.org>
17279
17280 * charset.c (Fdefine_charset_internal): Fix setting of
17281 emacs_mule_bytes.
17282
172832008-02-01 Kenichi Handa <handa@m17n.org>
17284
17285 * keyboard.c (read_char): Check if C is a character or not before
17286 looking up Vkeyboard_translate_table.
17287
172882008-02-01 Kenichi Handa <handa@m17n.org>
17289
17290 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17291 condition to terminate the loop.
17292
172932008-02-01 Kenichi Handa <handa@m17n.org>
17294
17295 * coding.c (produce_composition): Compare charbuf[i] instead of
17296 args[i] against 0.
17297 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17298
172992008-02-01 Kenichi Handa <handa@m17n.org>
17300
17301 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17302 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17303 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17304 detect_coding.
17305 (emacs_mule_char): Handle old style (Emacs 20) component character
17306 of a composition.
17307 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17308 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17309 composition rule.
17310 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17311
173122008-02-01 Kenichi Handa <handa@m17n.org>
17313
17314 * coding.c (encode_coding_ccl): Allocate destination dynamically
17315 when necessary.
17316
173172008-02-01 Kenichi Handa <handa@m17n.org>
17318
17319 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17320 the loop. When quitted, show a proper error message.
17321
173222008-02-01 Kenichi Handa <handa@m17n.org>
17323
17324 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17325 src->clip_head and src->clip_tail temporarily instead of src->hl.
17326
17327 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17328 character sequence.
17329 (Fccl_execute_on_string): Use ASET, not XSET.
17330
173312008-02-01 Kenichi Handa <handa@m17n.org>
17332
17333 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17334
173352008-02-01 Kenichi Handa <handa@m17n.org>
17336
17337 * coding.c (decode_coding): Fix the condition of terminating the
17338 decoding loop.
17339
173402008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * data.c (Faset): On setting a character bigger than 255 in a
17343 unibyte string, signal an error instead of make the string multibyte.
17344
173452008-02-01 Kenichi Handa <handa@m17n.org>
17346
17347 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17348 made by a mapping table.
17349
173502008-02-01 Kenichi Handa <handa@m17n.org>
17351
17352 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17353 not.
17354 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17355 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17356
17357 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17358 s->face is NULL or not.
17359
173602008-02-01 Kenichi Handa <handa@m17n.org>
17361
17362 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17363 (x_draw_glyph_string): Fix drawing of right_overhang and
17364 left_overhang around/on cursor.
17365
17366 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17367
173682008-02-01 Kenichi Handa <handa@m17n.org>
17369
17370 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17371
173722008-02-01 Kenichi Handa <handa@m17n.org>
17373
17374 * coding.c (Fdefine_coding_system_internal)
17375 (Fdefine_coding_system_alias): Avoid a duplicated element in
17376 Vcoding_system_alist.
17377
173782008-02-01 Kenichi Handa <handa@m17n.org>
17379
17380 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17381
17382 * coding.c (Qcoding_system_define_form): New variable.
17383 (syms_of_coding): Intern and staticpro it.
17384 (Fcoding_system_p): Check Qcoding_system_define_form.
17385 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17386
17387 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17388 Fcoding_system_p.
17389 (CHECK_CODING_SYSTEM): If ID is not available, call
17390 Fcheck_coding_system.
17391 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17392 Try also Fcheck_coding_system.
17393
173942008-02-01 Kenichi Handa <handa@m17n.org>
17395
17396 * coding.c (code_conversion_restore): GCPRO arg.
17397
173982008-02-01 Kenichi Handa <handa@m17n.org>
17399
17400 * character.c (lisp_string_width): Check multibyteness of STRING.
17401
174022008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17403
17404 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17405 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17406 (decode_mac_font_name): Use decode_coding_c_string instead of
17407 decode_coding.
17408 (x_load_font): Initialize fontp->fontset to -1. Set
17409 fontp->encoding_type.
17410
174112008-02-01 Kenichi Handa <handa@m17n.org>
17412
17413 * search.c (search_buffer): Give up BM search on case-fold-search
17414 if one of a target character has a case-equivalence of different
17415 byte length even if that target charcter is an ASCII.
17416 (simple_search): Fix calculation of byte length of matched text.
17417 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17418
174192008-02-01 Kenichi Handa <handa@m17n.org>
17420
17421 * coding.c (decode_coding): Fix handling of invalid bytes.
17422
174232008-02-01 Kenichi Handa <handa@m17n.org>
17424
17425 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17426 Unicode characters.
17427
174282008-02-01 Kenichi Handa <handa@m17n.org>
17429
17430 * coding.c (encode_coding_object): If a pre-write-conversion
17431 function makes a new buffer, kill it.
17432
174332008-02-01 Kenichi Handa <handa@m17n.org>
17434
17435 * coding.c (QCascii_compatible_p): New variable.
17436 (syms_of_coding): Initialize it.
17437 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17438 calling string_char.
17439 (record_conversion_result): Add `default:' case.
17440 (coding_charset_list): Delete unused variable `coding_type'.
17441 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17442 property in the plist of the coding system.
17443 (Fcoding_system_put): Check QCascii_compatible_p.
17444
174452008-02-01 Miles Bader <miles@gnu.org>
17446
17447 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17448 removed calculation of frame `f', as it's now used.
17449
174502008-02-01 Kenichi Handa <handa@m17n.org>
17451
17452 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17453 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17454 (UNIDATA): New variable.
17455 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17456 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17457 $(RUN_TEMACS) unconditionally.
17458
174592008-02-01 Kenichi Handa <handa@m17n.org>
17460
17461 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17462 (admindir): New variable.
17463 ($(lispsource)international/charprop.el): New target.
17464
174652008-02-01 Miles Bader <miles@gnu.org>
17466
17467 * character.c (chars-in-region): Remove obsolete function.
17468 (syms_of_character): Remove its initialization.
17469
174702008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17471
17472 * w32select.c (validate_coding_system)
17473 (setup_windows_coding_system): New functions.
17474 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17475 setup_windows_coding_system.
17476 (setup_config, Fw32_get_clipboard_data): Use
17477 validate_coding_system.
17478 (Fx_selection_exists): Move call to setup_config to a place
17479 where signals are allowed.
17480
17481 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17482 (Fcheck_coding_system): Add declarations.
17483
174842008-02-01 Kenichi Handa <handa@m17n.org>
17485
17486 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17487
174882008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17489
17490 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17491 string as the second argument for x_new_fontset.
17492
174932008-02-01 Kenichi Handa <handa@m17n.org>
17494
17495 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17496 (encode_coding_object): Use safe_call instead of call2.
17497
174982008-02-01 Kenichi Handa <handa@m17n.org>
17499
17500 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17501
17502 * Makefile.in (lisp): Include charprop.el.
17503
175042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17505
17506 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17507 Not sure if it's unnecessary.
17508
175092008-02-01 Steven Tamm <steventamm@mac.com>
17510
17511 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17512 some possibly unnecessary fontset checking code that crashed
17513 when creating a new frame.
17514
175152008-02-01 Kenichi Handa <handa@m17n.org>
17516
17517 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17518 lookup_face.
17519
17520 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17521
17522 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17523
175242008-02-01 Kenichi Handa <handa@m17n.org>
17525
17526 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17527 (coding_charset_list): New function.
17528
17529 * coding.h (coding_charset_list): Extern it.
17530
175312008-02-01 Kenichi Handa <handa@m17n.org>
17532
17533 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17534 concatenation of family and registry.
17535
175362008-02-01 Kenichi Handa <handa@m17n.org>
17537
17538 * character.h (BYTE8_STRING): Fix typo.
17539
17540 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17541 string to multibyte (sync to HEAD).
17542
17543 * casefiddle.c (casify_region): Handle changes in byte-length
17544 using replace_range_2 (sync to HEAD).
17545
175462008-02-01 Andreas Schwab <schwab@suse.de>
17547
17548 * chartab.c (map_char_table): GCPRO table and arg.
17549
175502008-02-01 Kenichi Handa <handa@m17n.org>
17551
17552 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17553 already at limit.
17554
175552008-02-01 Kenichi Handa <handa@m17n.org>
17556
17557 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17558 instead of fast_c_string_match_ignore_case.
17559 (find_font_encoding): Change argument to Lisp_Object. Use
17560 fast_string_match_ignore_case instead of
17561 fast_c_string_match_ignore_case. Change caller.
17562
175632008-02-01 Kenichi Handa <handa@m17n.org>
17564
17565 * xdisp.c (get_next_display_element): In unibyte case, decide to
17566 display in octal form by checking a character by
17567 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17568
17569 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17570
17571 * character.c (unibyte_has_multibyte_table): New variable.
17572
17573 * character.h (unibyte_has_multibyte_table): Extern it.
17574 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17575
175762008-02-01 Kenichi Handa <handa@m17n.org>
17577
17578 * coding.c (encode_coding_iso_2022): Fix handling of charset
17579 annotation.
17580
175812008-02-01 Kenichi Handa <handa@m17n.org>
17582
17583 * coding.c (setup_coding_system): If coding_system is nil, use
17584 Qundecided.
17585 (Fterminal_coding_system): Return nil if terminal coding system is
17586 `undecided'.
17587 (syms_of_coding): Define coding-system `undecided' here. Setup
17588 terminal_coding as `undecided'.
17589
175902008-02-01 Kenichi Handa <handa@m17n.org>
17591
17592 * xdisp.c (message_dolog, set_message_1): Call
17593 unibyte_char_to_multibyte with arg type int.
17594
17595 * lread.c (read1): Fix reading of a char-table.
17596
17597 * print.c (print_object): Include sub char-table in circularities
17598 detection.
17599
176002008-02-01 Kenichi Handa <handa@m17n.org>
17601
17602 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17603 Append the found sequences in car of ARGS instead of prepending.
17604
176052008-02-01 Kenichi Handa <handa@m17n.org>
17606
17607 * fileio.c (report_file_error): Make a unibyte string from
17608 strerror (errorno).
17609 (Fsubstitute_in_file_name): Fix the arg to
17610 unibyte_char_to_multibyte. It is evaluated twice.
17611
176122008-02-01 Kenichi Handa <handa@m17n.org>
17613
17614 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17615
176162008-02-01 Kenichi Handa <handa@m17n.org>
17617
17618 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17619 BOM is not found.
17620 (detect_coding, detect_coding_system): Optimization for ISO-2022
17621 when no 8-bit data is found.
17622
176232008-02-01 Jason Rumney <jasonr@gnu.org>
17624
17625 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17626
176272008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17630 CHARS.
17631
176322008-02-01 Steven Tamm <steventamm@mac.com>
17633
17634 * macterm.c (mac_encode_char): Add charset argument and update
17635 to use encoding_type.
17636 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17637 switch to pure fontset.
17638 (decode_mac_font_name): Temporarily remove decoding.
17639 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17640 (x_load_font): Temporarily remove encoding.
17641
176422008-02-01 Kenichi Handa <handa@m17n.org>
17643
17644 * xfaces.c (Fface_font): If frame is not on a window system,
17645 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17646 refer to face->font.
17647 (split_font_name_into_vector, build_font_name_from_vector)
17648 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17649 when HAVE_WINDOW_SYSTEM is defined.
17650
176512008-02-01 Kenichi Handa <handa@m17n.org>
17652
17653 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17654 (x_produce_glyphs): Fix setting of members of cmp in case
17655 cmp->glyph_len is zero.
17656
17657 * fontset.c (Fset_fontset_font): Fix docstring.
17658 (Ffontset_info): Make it backward compatible. New arg ALL.
17659
176602008-02-01 Kim F. Storm <storm@cua.dk>
17661
17662 * process.c (read_process_output): Grow decoding_buf when needed;
17663 this could cause a crash in allocate_string and compact_small_strings.
17664
176652008-02-01 Kenichi Handa <handa@m17n.org>
17666
17667 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17668
176692008-02-01 Kenichi Handa <handa@m17n.org>
17670
17671 * coding.c (setup_coding_system): Set coding->common_flags
17672 correctly for raw-text.
17673 (consume_chars): On encoding unibyte text by raw-text, don't check
17674 multibyte form.
17675 (encode_coding): On encoding by raw-text, never use translation tables.
17676
17677 * fileio.c (e_write): Short cut for the case of no encoding.
17678
176792008-02-01 Kenichi Handa <handa@m17n.org>
17680
17681 * coding.c (detect_coding, detect_coding_system): Delete unused
17682 variables.
17683
176842008-02-01 Kenichi Handa <handa@m17n.org>
17685
17686 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17687 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17688
176892008-02-01 Kenichi Handa <handa@m17n.org>
17690
17691 * coding.c (Ffind_coding_systems_region_internal): Include
17692 raw-text and no-conversion in the result.
17693
176942008-02-01 Kenichi Handa <handa@m17n.org>
17695
17696 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17697 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17698 FONT_DEF.
17699 (font_def_arg, add_arg, from_arg, to_arg): New args.
17700 (set_fontset_font): Change argument.
17701 (Fset_fontset_font): Fix for the case that TARGET is a script
17702 name and charset name.
17703 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17704
177052008-02-01 Kenichi Handa <handa@m17n.org>
17706
17707 * fontset.c (fontset_font): Rename from fontset_face. Change return
17708 value.
17709 (face_suitable_for_char_p, face_for_char): Adjust for the change
17710 of fontset_font.
17711 (make_fontset_for_ascii_face): Fix setting of the fontset element
17712 for ASCII.
17713 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17714 to get a font name.
17715 (Ffontset_info): Adjust for the change of fontset_font.
17716
17717 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17718
17719 * character.h (LEADING_CODE_LATIN_1_MIN)
17720 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17721
177222008-02-01 Kenichi Handa <handa@m17n.org>
17723
17724 * editfns.c (check_translation): New function.
17725 (Ftranslate_region_internal): Handle M:N mapping.
17726
177272008-02-01 Kenichi Handa <handa@m17n.org>
17728
17729 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17730
177312008-02-01 Kenichi Handa <handa@m17n.org>
17732
17733 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17734 goto invalid_code.
17735 (decode_coding_iso_2022): Fix handling of invalid designation.
17736
17737 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17738 after calling code_conversion_save.
17739
177402008-02-01 Kenichi Handa <handa@m17n.org>
17741
17742 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17743
17744 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17745
17746 * fontset.c: Include "intervals.h".
17747 (fontset_face): Fix comparing of Lisp_Objects.
17748 (free_face_fontset, new_fontset_from_font_name): Fix
17749 Lisp_Object/int mixup.
17750
17751 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17752
17753 * coding.c: Add many prototypes for static functions.
17754 (get_translation_table): Allow max_lookup to be NULL.
17755 (decode_coding, Ffind_coding_systems_region_internal)
17756 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17757 get_translation_table with max_lookup NULL.
17758
177592008-02-01 Kenichi Handa <handa@m17n.org>
17760
17761 * coding.c (get_translation_table): Declare it as Lisp_Object.
17762 (LOOKUP_TRANSLATION_TABLE): New macro.
17763 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17764 instead of CHAR_TABLE_REF.
17765
177662008-02-01 Kenichi Handa <handa@m17n.org>
17767
17768 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17769 annotation data format.
17770 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17771 Change arguments FROM and TO to single argument NCHARS. Change caller.
17772 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17773 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17774 (decode_coding_ccl, decode_coding_charset): Pay attention to
17775 coding->charbuf_used.
17776 (get_translation): New function.
17777 (produce_chars): New arguments translation_table and last_block.
17778 Translate characters here. Return number of carryover chars.
17779 Change caller.
17780 (produce_composition): New argument pos. Change caller.
17781 Adjust for the change of annotation data format.
17782 (produce_charset, produce_annotation): Likewise.
17783 (decode_coding, encode_coding): Don't call translate_chars.
17784 (consume_chars): New arg translation_table. Change caller.
17785 (translate_chars): Delete.
17786 (syms_of_coding): Make translation-table's number of extra slots 2.
17787
177882008-02-01 Kenichi Handa <handa@m17n.org>
17789
17790 * search.c (simple_search): Fix setting this_pos_byte in backward
17791 search.
17792
17793 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17794 byte sequence.
17795 (detect_coding_ccl): Fix setting of the variable valids.
17796
177972008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17800
17801 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17802
17803 * editfns.c (Ftranslate_region_internal): Rename from
17804 Ftranslate_region. Accept a char-table in TABLE.
17805 (syms_of_editfns): Defsubr Stranslate_region_internal.
17806
17807 * xfaces.c (set_lface_from_font_name): If a font is specified for
17808 a frame, generate a fontset from the font.
17809 (build_scalable_font_name): If the scalable font is requested for
17810 a specific size, don't change that size.
17811 (try_font_list): Try a scalable font also in the case that a
17812 pattern string is specified.
17813
178142008-02-01 Kenichi Handa <handa@m17n.org>
17815
17816 * xfaces.c (Fface_font): New optional arg CHARACTER.
17817
178182008-02-01 Kenichi Handa <handa@m17n.org>
17819
17820 * charset.h (CHARSET_OFFSET): New macro.
17821
178222008-02-01 Kenichi Handa <handa@m17n.org>
17823
17824 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17825
17826 * fontset.c (fontset_face): Handle the case that repertory is a
17827 char-table.
17828 (find_font_encoding): Return nil for unknown encoding.
17829 (Fset_fontset_font): Ignore a font of unknown encoding.
17830
178312008-02-01 Kenichi Handa <handa@m17n.org>
17832
17833 * keymap.c (describe_vector): Handle default value of a char table.
17834
17835 * fontset.c (fontset_face): Handle fallback fonts correctly.
17836 (Ffontset_info): Return infomation about fallback fonts.
17837
178382008-02-01 Kenichi Handa <handa@m17n.org>
17839
17840 * fontset.c (FONTSET_DEFAULT): New macro.
17841 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17842 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17843 the case that it is nil.
17844 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17845 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17846
17847 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17848 subset or superset.
17849
178502008-02-01 Kenichi Handa <handa@m17n.org>
17851
17852 * emacs.c (main): Call init_charset after syms_of_XXX.
17853
17854 * charset.c (Vcharset_map_directory): Delete.
17855 (Vcharset_map_path): New variable.
17856 (load_charset_map_from_file): Use Vcharset_map_path instead.
17857 (init_charset): Initialize Vcharset_map_path.
17858 (syms_of_charset): Delete declaration of "charset-map-directory",
17859 add declaration of "charset-map-path".
17860
178612008-02-01 Kenichi Handa <handa@m17n.org>
17862
17863 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17864 ASCII only string.
17865
17866 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17867
17868 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17869 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17870
178712008-02-01 Kenichi Handa <handa@m17n.org>
17872
17873 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17874
17875 * coding.c (QCmnemonic, QCdefalut_char)
17876 (QCdecode_translation_table, QCencode_translation_table)
17877 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17878 (get_translation_table): Return a list of translation tables if
17879 necessary.
17880 (decode_coding): Call get_translation_table with ENCODEP 0.
17881 (char_encodable_p): If translation_table is non-nil, always call
17882 translate_char.
17883 (Fdefine_coding_system_internal): Accept list of translation
17884 tables as :encode-translation-table and :decode-translation-table.
17885 (Fcoding_system_put): New function.
17886 (syms_of_coding): Declare new symbols. Defsubr
17887 Scoding_system_put.
17888 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17889 typically JISX0212.
17890
17891 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17892 when the charset is superset type.
17893
17894 * character.c (translate_char): Accept list of translation tables.
17895
178962008-02-01 Kenichi Handa <handa@m17n.org>
17897
17898 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17899 (CODING_ATTR_TRANS_TBL): New macro.
17900
17901 * coding.c (get_translation_table): New function.
17902 (translate_chars): Fix the bug of skipping annotation data.
17903 (decode_coding, encode_coding): Utilize get_translation_table.
17904 (char_encodable_p, Funencodable_char_position): Translate char if
17905 necessary.
17906 (Ffind_coding_systems_region_internal)
17907 (Fcheck_coding_systems_region): Setup translation table for encode
17908 in a coding system attribute vector in advance.
17909 (Fdefine_coding_system_internal): Allow a symbol as translation
17910 table. For shift-jis type coding system, allow 4th charset.
17911
179122008-02-01 Kenichi Handa <handa@m17n.org>
17913
17914 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17915
17916 * xdisp.c (get_next_display_element): Pass -1 as POS to
17917 FACE_FOR_CHAR if displaying a C-string.
17918
179192008-02-01 Kenichi Handa <handa@m17n.org>
17920
17921 * composite.c (get_composition_id): Handle xoff and yoff in a
17922 composition rule.
17923
17924 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17925 (struct composition): New member lbearing and rbearing.
17926
17927 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17928 (x_get_glyph_overhangs): Handle a composition glyph.
17929 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17930
17931 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17932 composition glyph.
17933
179342008-02-01 Kenichi Handa <handa@m17n.org>
17935
17936 * print.c: Include charset.h.
17937 (Vprint_charset_text_property): New variable.
17938 (Qdefault): Extern it.
17939 (PRINT_STRING_NON_CHARSET_FOUND)
17940 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17941 (print_check_string_result): New variable.
17942 (print_check_string_charset_prop): New function.
17943 (print_prune_charset_plist): New variable.
17944 (print_prune_string_charset): New function.
17945 (print_object): Call print_prune_string_charset if
17946 Vprint_charset_text_property is not t.
17947 (print_interval): Print nothing if interval->plist is nil.
17948 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17949 variable. Init and staticpro print_prune_charset_plist.
17950
179512008-02-01 Kenichi Handa <handa@m17n.org>
17952
17953 * fontset.c (new_fontset_from_font_name): Use the specified font
17954 for all characters in the new fontset.
17955
17956 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17957 OBJECT args.
17958
17959 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17960 OBJECT args for composition too.
17961
17962 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17963 OBJECT args.
17964
179652008-02-01 Kenichi Handa <handa@m17n.org>
17966
17967 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17968
17969 * fontset.c (reorder_font_vector): Adjust for the change of
17970 FONT_DEF format.
17971 (fontset_face): New arg id. Change caller.
17972 (face_for_char): New args pos and object.
17973 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17974 (fs_query_fontset): Check NAME by Fassoc too.
17975 (Fset_fontset_font): Allow non-XLFD font name.
17976 (Ffontset_info): Adjust for the change of FONT_DEF format.
17977
17978 * fontset.h (face_for_char): Adjust prototype.
17979
17980 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17981 (append_space, extend_face_to_end_of_line)
17982 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17983 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17984
17985 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17986 POS and OBJECT args.
17987
17988 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17989 POS and OBJECT args.
17990
179912008-02-01 Jason Rumney <jasonr@gnu.org>
17992
17993 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17994 of GlobalAlloc'ed memory.
17995
179962008-02-01 Kenichi Handa <handa@m17n.org>
17997
17998 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17999
18000 * charset.h (charset_table_used): Delete extern.
18001
18002 * charset.c (charset_table_used): Make it static.
18003 (map_charset_chars): Fix args to c_function with.
18004
18005 * chartab.c (map_sub_char_table_for_charset): Fix args to
18006 c_function with.
18007
18008 * coding.h (enum coding_result_code): Delete
18009 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18010
18011 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18012 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18013 (Vlast_code_conversion_error): New variables.
18014 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18015 (ONE_MORE_BYTE): Record error if any instead of signaling an
18016 error. If non-ASCII multibyte char is found, return the negative
18017 value of the code. All callers changed to check it.
18018 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18019 (record_conversion_result): New function. Change all codes setting
18020 coding->result to call this function.
18021 (detect_coding_utf_8, decode_coding_utf_8)
18022 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18023 Don't use the local variable incomplete.
18024 (emacs_mule_char): Change the second arg to `const'.
18025 (decode_coding): Fix of flushing out unprocessed data.
18026 (make_conversion_work_buffer): Fix making of a work buffer.
18027 (decode_coding_object): Return coding->dst_object.
18028
18029 * fontset.c (set_fontset_font): Fix args.
18030
18031 * lisp.h (CHARACTERBITS): Define as 22.
18032
18033 * process.c (send_process): Be sure to set coding->src_multibyte.
18034
18035 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18036
180372008-02-01 Kenichi Handa <handa@m17n.org>
18038
18039 * xdisp.c (handle_auto_composed_prop): Give limit to
18040 Fnext_single_char_property_change.
18041
180422008-02-01 Kenichi Handa <handa@m17n.org>
18043
18044 * composite.c (syms_of_composite): Don't make the composition hash
18045 table weak.
18046
18047 * fontset.c (Fset_fontset_font): Fix docstring.
18048
18049 * lisp.h (detect_coding_system): Adjust prototype.
18050
18051 * fileio.c (kill_workbuf_unwind): Delete this function.
18052 (Finsert_file_contents): Adjust the call of detect_coding_system.
18053 Get conversion_buffer by code_conversion_save. Use the macro
18054 CODING_MAY_REQUIRE_DECODING. After decoding, update
18055 coding_system.
18056
18057 * coding.h (make_conversion_work_buffer): Delete extern.
18058 (code_conversion_save): Extern it.
18059
18060 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18061 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18062 (decode_coding_utf_8): Don't do eol converion.
18063 (detect_coding_utf_16): Check coding->src_chars, not
18064 coding->src_bytes. Add heuristics for those that have no signature.
18065 (decode_coding_emacs_mule, decode_coding_iso_2022)
18066 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18067 Don't do eol converion.
18068 (adjust_coding_eol_type): Return a new coding system.
18069 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18070 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18071 each change.
18072 (decode_coding): Pay attention to undo_list. Do eol conversion for
18073 all types of coding-systems (if necessary).
18074 (Vcode_conversion_work_buf_list): Delete it.
18075 (Vcode_conversion_reused_workbuf): Rename from
18076 Vcode_conversion_reused_work_buf.
18077 (Vcode_conversion_workbuf_name): New variable.
18078 (reused_workbuf_in_use): New variable.
18079 (make_conversion_work_buffer): Delete the arg DEPTH.
18080 (code_conversion_restore): Change argument to cons.
18081 (code_conversion_save): Delete the argument BUFFER. Change callers.
18082 (detect_coding_system): New argument src_chars. Change callers.
18083 Fix for utf-16 detection.
18084 (init_coding_once): Don't use ISO_carriage_return.
18085 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18086 reused_workbuf_in_use.
18087
180882008-02-01 Kenichi Handa <handa@m17n.org>
18089
18090 * keymap.c (store_in_keymap): Pay attention to the case that idx
18091 is a cons specifying a character range.
18092
180932008-02-01 Kenichi Handa <handa@m17n.org>
18094
18095 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18096 HANDLED_RECOMPUTE_PROPS.
18097
18098 * coding.c (Fdefine_coding_system_internal): Fix checking of
18099 ascii compatibility.
18100
181012008-02-01 Kenichi Handa <handa@m17n.org>
18102
18103 * charset.c (find_charsets_in_text): Delete unused locale variable.
18104 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18105
18106 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18107 Resync charset_list to Vemacs_mule_charset_list.
18108
18109 * keymap.c (store_in_keymap): Pay attention to the case that idx
18110 is a cons specifying a character range.
18111
181122008-02-01 Kenichi Handa <handa@m17n.org>
18113
18114 * composite.c (update_compositions): Bind inhibit-read-only, etc
18115 to t before calling remove-list-of-text-properties.
18116
18117 * print.c (print_object): Always print ASCII chars as is.
18118
181192008-02-01 Kenichi Handa <handa@m17n.org>
18120
18121 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18122
18123 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18124 is a char table.
18125
181262008-02-01 Kenichi Handa <handa@m17n.org>
18127
18128 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18129
181302008-02-01 Kenichi Handa <handa@m17n.org>
18131
18132 * xfaces.c (set_lface_from_font_name): Fix for the case that
18133 FONTNAME is not fontset name.
18134
181352008-02-01 Kenichi Handa <handa@m17n.org>
18136
18137 * fns.c (base64_encode_1): Fix previous change.
18138
181392008-02-01 Kenichi Handa <handa@m17n.org>
18140
18141 * fontset.c (set_fontset_font): New function.
18142 (Fset_fontset_font): If a font is specified for a charset, use
18143 map_charset_chars to store the font spec in a fontset.
18144
181452008-02-01 Kenichi Handa <handa@m17n.org>
18146
18147 * fontset.c (fontset_face): Create a fallback fontset on demand.
18148 (make_fontset): Don't create a fallback fontset here.
18149 (free_face_fontset): Free a fallback fontset (if any) too.
18150 (n_auto_fontsets): Delete this variable.
18151 (auto_fontset_alist): New variable.
18152 (new_fontset_from_font_name): Check auto_fontset_alist.
18153 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18154 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18155 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18156 Defsubr Sfontset_list_all.
18157
181582008-02-01 Kenichi Handa <handa@m17n.org>
18159
18160 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18161
181622008-02-01 Kenichi Handa <handa@m17n.org>
18163
18164 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18165
181662008-02-01 Kenichi Handa <handa@m17n.org>
18167
18168 * editfns.c (Fgoto_char): Fix docstring.
18169
181702008-02-01 Kenichi Handa <handa@m17n.org>
18171
18172 * insdel.c (insert_from_gap): Adjust intervals correctly.
18173
181742008-02-01 Jason Rumney <jasonr@gnu.org>
18175
18176 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18177 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18178 (w32_initialize): Try to load it.
18179 (x_get_font_repertory): Use it if available.
18180 (w32_encode_char): Add shortcut for unicode output.
18181
18182 * w32fns.c (w32_load_system_font): Default charset to -1.
18183 (x_to_w32_charset): Match all fonts for unicode.
18184 (w32_to_x_charset): New parameter matching. Don't return partial
18185 or wildcard charsets.
18186 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18187 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18188 (w32_to_x_font): Match charset to real charset.
18189 (enum_font_cb2): Always list unicode versions.
18190
18191 * makefile.w32-in (temacs): Increase EMHEAP.
18192
181932008-02-01 Jason Rumney <jasonr@gnu.org>
18194
18195 * w32term.c (w32_encode_char): New charset parameter.
18196 font_info.encoding becomes encoding_type.
18197 (x_get_font_repertory): New function. Warning: stub only!
18198 (x_new_font): Return quickly if font already set.
18199 (x_new_fontset): fontsetname parameter is Lisp_Object.
18200 Use new fs_query_fontset. Try new_fontset_from_font_name.
18201 Use fontset_name for return value.
18202
18203 * w32term.h: Declare x_get_font_repertory.
18204
18205 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18206 place of find_charset_in_text. Use encode_coding_object in place
18207 of encode_coding.
18208 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18209 decode_coding.
18210
18211 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18212 of x_new_fontset.
18213 (w32_load_system_font): Initialize charset as unicode.
18214 font_info.encoding becomes encoding_type.
18215 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18216 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18217 (syms_of_w32fns): Set get_font_repertory_func.
18218
18219 * w32console.c: Include character.h. Use terminal_encode_buffer
18220 from term.c.
18221 (write_glyphs): Use new version of encode_terminal_code. Use
18222 encode_coding_object in place of encode_coding.
18223
18224 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18225 encoding becomes encoding_type.
18226
18227 * term.c (terminal_encode_buffer): Make externally visible.
18228
18229 * makefile.w32-in: Add character.h dependancies.
18230 (character.o, chartab.o): New targets.
18231
182322008-02-01 Kenichi Handa <handa@m17n.org>
18233
18234 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18235 CODING_ID_EOL_TYPE.
18236
182372008-02-01 Andreas Schwab <schwab@suse.de>
18238
18239 * coding.c (produce_chars): Revert last change.
18240
182412008-02-01 Kenichi Handa <handa@m17n.org>
18242
18243 * charset.h (charset_unicode): Extern it.
18244
18245 * charset.c (string_xstring_p): Check by (C >= 0x100).
18246 (find_charsets_in_text): Change format of the arc CHARSETS. New
18247 arg MULTIBYTE.
18248 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18249 change of find_charsets_in_text.
18250 (Fsplit_char): Fix doc. Never return unknown.
18251
18252 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18253
18254 * coding.c (Fdefine_coding_system_alias): Update
18255 Vcoding_system_list.
18256
18257 * fontset.c (load_font_get_repertory): Pay attention to the case
18258 that ENCODING of a font is specified by a char-table.
18259
18260 * xterm.c (x_get_font_repertory): Handle the case that the
18261 encoding of font is other than Unicode.
18262
182632008-02-01 Kenichi Handa <handa@m17n.org>
18264
18265 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18266 if a character is encodable by the terminal coding system. If
18267 not, produces proper number of `?'s. Update
18268 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18269 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18270
182712008-02-01 Kenichi Handa <handa@m17n.org>
18272
18273 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18274 variables.
18275 (encode_terminal_code): Change argument. Encode multiple
18276 characters at once. Store the result of encoding in
18277 terminal_encode_buffer.
18278 (write_glyphs, insert_glyphs): Adjust for the change of
18279 encode_terminal_code.
18280 (term_init): Initialize terminal_encode_buffer and
18281 terminal_encode_buf_size.
18282
18283 * coding.c (consume_chars): If coding->src_object is nil, don't
18284 check annotation.
18285
182862008-02-01 Kenichi Handa <handa@m17n.org>
18287
18288 * character.c (char_string): Use ASCII_CHAR_P instead of
18289 SINGLE_BYTE_CHAR_P.
18290
182912008-02-01 Kenichi Handa <handa@m17n.org>
18292
18293 * xdisp.c (handle_auto_composed_prop): Check if the last
18294 characters of auto-composed region is newly composed with the
18295 following characters.
18296 (handle_composition_prop): Fix checking of point being inside
18297 composition.
18298
182992008-02-01 Kenichi Handa <handa@m17n.org>
18300
18301 * fns.c (concat): Don't change multibyteness of the result by
18302 concatenating an 8-bit character.
18303
18304 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18305 multibyteness of the result when newelt is an 8-bit character.
18306
183072008-02-01 Dave Love <fx@gnu.org>
18308
18309 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18310 EMACS_INT.
18311
18312 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18313
18314 * xfaces.c (face_numeric_value): Declare dim size_t.
18315 (Finternal_lisp_face_equal_p): Remove unused f.
18316
18317 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18318 (MATRIX_ROW): Remove unused vars.
18319 (draw_glyphs, x_insert_glyphs, fast_find_position)
18320 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18321 byte/char counts.
18322
18323 * regex.c (regex_compile): Remove unused var.
18324
18325 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18326
18327 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18328 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18329
18330 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18331
18332 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18333
18334 * fileio.c (Fwrite_region): Remove unused var.
18335
18336 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18337 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18338
18339 * composite.c (Fremove_list_of_text_properties): Declare.
18340
18341 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18342 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18343 (coding_inherit_eol_type): Remove unused attrs.
18344 (detect_coding): Cast arg of detect_eol.
18345
18346 * charset.c (syms_of_charset): Remove unused var p.
18347 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18348 byte/char counts.
18349
18350 * casetab.c (set_case_table): Remove unused var.
18351
18352 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18353 unused vars.
18354
183552008-02-01 Dave Love <fx@gnu.org>
18356
18357 * xterm.c (x_bitmap_mask): Declare.
18358
183592008-02-01 Dave Love <fx@gnu.org>
18360
18361 * xterm.c (x_term_init): Fix type error.
18362
18363 * lisp.h: Add Funibyte_char_to_multibyte.
18364
18365 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18366 (Fset_coding_system_priority): Doc fix.
18367
18368 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18369
18370 * indent.c (check_composition): Make start and end EMACS_INT.
18371
18372 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18373
18374 * xdisp.c (handle_composition_prop, check_point_in_composition):
18375 Make buffer positions EMACS_INT.
18376
18377 * composite.c (find_composition, run_composition_function)
18378 (update_compositions, Ffind_composition_internal): Make buffer
18379 positions EMACS_INT.
18380
18381 * composite.h (find_composition, update_compositions): Make
18382 position args EMACS_INT.
18383
18384 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18385
18386 * intervals.c (get_property_and_range):
18387 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18388
18389 * unexalpha.c: Don't include varargs.h.
18390
183912008-02-01 Dave Love <fx@gnu.org>
18392
18393 * coding.h (ENCODE_UTF_8): New.
18394
18395 * Makefile.in (gtkutil.o): Depend on coding.h.
18396
18397 * coding.c (Fset_coding_system_priority): Doc fix.
18398
183992008-02-01 Kenichi Handa <handa@m17n.org>
18400
18401 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18402 the case of auto saving.
18403
184042008-02-01 Andreas Schwab <schwab@suse.de>
18405
18406 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18407 `range' from GC.
18408
184092008-02-01 Kenichi Handa <handa@m17n.org>
18410
18411 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18412
184132008-02-01 Kenichi Handa <handa@m17n.org>
18414
18415 * fileio.c (choose_write_coding_system): Return a decided coding system.
18416 (Fwrite_region): Set Vlast_coding_system_used to the return value
18417 of choose_write_coding_system.
18418
184192008-02-01 Kenichi Handa <handa@m17n.org>
18420
18421 * charset.c (Fset_charset_priority): Pay attention to duplicated
18422 arguments.
18423
18424 * coding.c (QCcategory): New variable.
18425 (syms_of_coding): Defsym it. Set all elements of
18426 Vcoding_category_table and their symbol values.
18427 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18428 coding-category-XXX, and coding-category-list.
18429 (Fdefine_coding_system_internal): Add category in the plist.
18430
184312008-02-01 Kenichi Handa <handa@m17n.org>
18432
18433 * callproc.c (Fcall_process): Handle carryover correctly.
18434
18435 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18436 (raw_text_coding_system): Check NILP (coding_system).
18437 (coding_inherit_eol_type): Check NILP (coding_system) and
18438 NILP (parent).
18439 (consume_chars): Fix for the case of raw-text.
18440
18441 * process.c (read_process_output): Handle carryover correctly.
18442
184432008-02-01 Dave Love <fx@gnu.org>
18444
18445 * regex.c (re_search_2): Fix last change.
18446
184472008-02-01 Kenichi Handa <handa@m17n.org>
18448
18449 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18450 target_multibyte. Even in a unibyte case, return a converted
18451 multibyte char.
18452 (GET_CHAR_AFTER): New macro.
18453 (PATFETCH): Translate via multibyte char.
18454 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18455 (SETUP_MULTIBYTE_RANGE): New macro.
18456 (regex_compile): Setup compiled code so that its multibyteness
18457 matches that of a target. Fix the handling of "[X-YZ]" using
18458 SETUP_MULTIBYTE_RANGE.
18459 (analyse_first) <charset>: For filling fastmap for all multibyte
18460 characters, don't check by BASE_LEADING_CODE_P.
18461 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18462 the same as RE_MULTIBYTE_P (bufp) now.
18463 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18464 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18465 (TRANSLATE_VIA_MULTIBYTE): New macro.
18466 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18467 It is the same as RE_MULTIBYTE_P (bufp) now.
18468 <exactn>: Translate via multibyte.
18469 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18470 translate it.
18471 <charset, charset_not>: Fetch a character by
18472 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18473 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18474 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18475 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18476 by GET_CHAR_AFTER.
18477 (bcmp_translate): Likewise.
18478
18479 * search.c (compile_pattern): Check the member target_multibyte,
18480 not the member multibyte of buf.
18481
18482 * lread.c (read1): While reading a string, set force_singlebyte
18483 and force_multibyte correctly.
18484
18485 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18486 up of unibyte_to_multibyte_table.
18487
184882008-02-01 Kenichi Handa <handa@m17n.org>
18489
18490 * coding.c (setup_coding_system): If coding has
18491 post-read-conversion or pre-write-conversion, set
18492 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18493 respectively.
18494 (decode_coding_gap): Run post-read-conversion if any.
18495
18496 * fileio.c (Finsert_file_contents): Even if we read into a
18497 unibyte buffer, check if we must decode the result or not.
18498
184992008-02-01 Kenichi Handa <handa@m17n.org>
18500
18501 * coding.c (make_conversion_work_buffer): Change the work buffer
18502 name to the same one as that of Emacs 21.
18503
185042008-02-01 Kenichi Handa <handa@m17n.org>
18505
18506 * coding.h (make_conversion_work_buffer): Adjust prototype.
18507 (code_conversion_restore): Don't extern it.
18508
18509 * coding.c (detected_mask): Delete unused variable.
18510 (decode_coding_iso_2022): Pay attention to the byte sequence of
18511 CTEXT extended segment, and retain those bytes as is.
18512 (decode_coding_ccl): Delete unused variable `valids'.
18513 (setup_coding_system): Delete unused variable `category'.
18514 (consume_chars): Delete unused variable `category'. Make it work
18515 for non-multibyte case.
18516 (make_conversion_work_buffer): Change argument.
18517 (saved_coding): Delete unused variable.
18518 (code_conversion_restore): Don't check saved_coding->destination.
18519 (code_conversion_save): New function.
18520 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18521 instead of record_unwind_protect.
18522 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18523 (detect_coding_system): Delete unused variable `mask'.
18524 (Fdefine_coding_system_internal): Delete unused variable id.
18525
18526 * fileio.c (kill_workbuf_unwind): New function.
18527 (Finsert_file_contents): On replacing, call
18528 make_conversion_work_buffer with correct args, and call
18529 record_unwind_protect with the first arg kill_workbuf_unwind.
18530
18531 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18532
185332008-02-01 Kenichi Handa <handa@m17n.org>
18534
18535 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18536 (fontset_add): Fix for the case that TO is less than TO1.
18537 (Ffontset_info): Don't use fallback fontset on checking the
18538 default fontset.
18539 (dump_fontset): New function for debugging.
18540
18541 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18542 coding_type is Qcharset.
18543
185442008-02-01 Kenichi Handa <handa@m17n.org>
18545
18546 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18547 (map_char_table): Don't inherit the value from the parent on
18548 initializing VAL. Adjust for the above change.
18549
185502008-02-01 Kenichi Handa <handa@m17n.org>
18551
18552 * coding.c (Qsignature, Qendian): Delete these variables.
18553 (syms_of_coding): Don't initialize them.
18554 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18555 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18556 detect_info->found.
18557 (decode_coding_utf_16): Don't detect BOM here.
18558 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18559 is NOT utf_16_without_bom.
18560 (setup_coding_system): For a coding system of type utf-16, check
18561 if the attribute :endian is Qbig or not (not nil or not), and set
18562 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18563 (detect_coding): If coding type is utf-16 and BOM detection is
18564 required, detect it.
18565 (Fdefine_coding_system_internal): For a coding system of type
18566 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18567
185682008-02-01 Kenichi Handa <handa@m17n.org>
18569
18570 * coding.c (coding_set_source): Fix for the case that the current
18571 buffer is different from coding->src_object.
18572 (decode_coding_object): Don't use the conversion work buffer if
18573 DST_OBJECT is a buffer.
18574
185752008-02-01 Dave Love <fx@gnu.org>
18576
18577 * lread.c (read_emacs_mule_char) [len==2]: Index
18578 emacs_mule_charset correctly.
18579
185802008-02-01 Dave Love <fx@gnu.org>
18581
18582 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18583 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18584 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18585 treated specially.)
18586 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18587 (detected_mask): Remove Big5 bits.
18588
185892008-02-01 Kenichi Handa <handa@m17n.org>
18590
18591 The following changes are to make the font rescaling facility
18592 compatible with Emacs 21.
18593
18594 * xfaces.c (Vface_font_rescale_alist): Rename from
18595 Vface_resizing_fonts.
18596 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18597 (font_rescale_ratio): Rename from font_resizing_ratio.
18598 (split_font_name): Set font->rescale_ratio.
18599 (better_font_p): Pay attention to font->rescale_ratio.
18600 (build_scalable_font_name): Likewise. Change RESX, and RESY
18601 fields.
18602 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18603
186042008-02-01 Kenichi Handa <handa@m17n.org>
18605
18606 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18607 (Qutf_16_le): Remove these variables.
18608 (syms_of_coding): Don't DEFSYM them.
18609 (decode_coding_utf_16): Fix handling of BOM.
18610 (encode_coding_utf_16): Fix handling of BOM.
18611
186122008-02-01 Kenichi Handa <handa@m17n.org>
18613
18614 * fileio.c (Finsert_file_contents): On replacing, before decoding
18615 the file into the work buffer, set point of the work buffer to the end.
18616
186172008-02-01 Dave Love <fx@gnu.org>
18618
18619 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18620
186212008-02-01 Dave Love <fx@gnu.org>
18622
18623 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18624 and fix C types.
18625
186262008-02-01 Kenichi Handa <handa@m17n.org>
18627
18628 * xdisp.c (SKIP_GLYPHS): New macro.
18629 (set_cursor_from_row): Pay attention to string display properties.
18630
18631 * category.c (copy_category_entry): Fix for the case that RANGE
18632 is an integer.
18633
18634 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18635
18636 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18637
186382008-02-01 Kenichi Handa <handa@m17n.org>
18639
18640 * charset.c (Fcharset_id_internal): New function.
18641 (syms_of_charset): Defsubr it.
18642
18643 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18644 with the last arg charset_list acquired from coding.
18645 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18646 the attribute coding_attr_ccl_valids.
18647
18648 * coding.h (enum define_coding_ccl_arg_index): Set the first
18649 member coding_arg_ccl_decoder to coding_arg_max.
18650
18651 * ccl.h (ccl_driver): Adjust prototype.
18652
18653 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18654 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18655 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18656 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18657 last arg Qnil.
18658
186592008-02-01 Kenichi Handa <handa@m17n.org>
18660
18661 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18662 call encode_char.
18663
18664 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18665
186662008-02-01 Dave Love <fx@gnu.org>
18667
18668 * composite.c (syms_of_composite): Make composition_hash_table weak.
18669
186702008-02-01 Kenichi Handa <handa@m17n.org>
18671
18672 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18673 (font_name_registry): Don't extern them.
18674 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18675
18676 * fontset.h (Qfontset): Don't extern it.
18677 (new_fontset_from_font_name): Extern it.
18678
18679 * fontset.c: Give 8 extra slots to fontset objects.
18680 (Qfontset_info): New variable.
18681 (syms_of_fontset): Defsym it.
18682 (FONTSET_FALLBACK): New macro.
18683 (fontset_face): Try also the default fontset.
18684 (make_fontset): Realize a fallback fontset from the default fontset.
18685 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18686 using split_font_name_into_vector and build_font_name_from_vector.
18687 (Fset_fontset_font): Access the elements of font_spec by enum
18688 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18689 name by using split_font_name_into_vector.
18690 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18691 generate a proper font name from the fontset name. Update
18692 Vfontset_alias_alist.
18693 (n_auto_fontsets): New variable.
18694 (new_fontset_from_font_name): New function.
18695 (Ffont_info): Store the information about fonts generated from the
18696 default fontset in the first extra slot of the returned char-table.
18697
18698 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18699 (font_name_registry): Delete function.
18700 (split_font_name_into_vector): New function.
18701 (build_font_name_from_vector): New function.
18702 (font_list): The argument REGISTRY is now a list of registry names.
18703 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18704 specifies an explicit font name, return the name as is. Make a
18705 list of registy names.
18706
18707 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18708 of x_new_fontset.
18709 (Fx_create_frame): Don't call x_new_fontset here. Just use
18710 x_list_fonts to check the existence of fonts.
18711
18712 * xterm.h (x_new_fontset): Adjust prototype.
18713
18714 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18715 string. Use new_fontset_from_font_name to create a fontset from a
18716 font name.
18717
187182008-02-01 Kenichi Handa <handa@m17n.org>
18719
18720 * syntax.c (Vfind_word_boundary_function_table): New name for
18721 Vnext_word_boundary_function_table.
18722 (find-word-boundary-function-table): New name for
18723 next-word-boundary-function-table.
18724
187252008-02-01 Dave Love <fx@gnu.org>
18726
18727 * Makefile.in: Fix some dependencies.
18728
18729 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18730 set it to nil before returning.
18731
18732 * composite.c (update_compositions): Fix type error.
18733
18734 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18735
187362008-02-01 Kenichi Handa <handa@m17n.org>
18737
18738 * xterm.c (x_new_font): Optimize for the case that the font is
18739 already set for the frame.
18740
187412008-02-01 Kenichi Handa <handa@m17n.org>
18742
18743 * chartab.c (char_table_ascii): Check if the char table contents
18744 is sub-char-table or not.
18745 (char_table_set, char_table_set_range): Fix argument to
18746 char_table_ascii.
18747
18748 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18749 (detect_coding_utf_8, detect_coding_utf_16)
18750 (detect_coding_emacs_mule, detect_coding_iso_2022)
18751 (detect_coding_sjis, detect_coding_big5)
18752 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18753 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18754 sequence is valid in this coding system. Change callers.
18755 (MAX_ANNOTATION_LENGTH): New macro.
18756 (ADD_ANNOTATION_DATA): New macro.
18757 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18758 ADD_ANNOTATION_DATA. Change the format of annotation data.
18759 (ADD_CHARSET_DATA): New macro.
18760 (emacs_mule_char): New argument ID. Change callers.
18761 (decode_coding_emacs_mule, decode_coding_iso_2022)
18762 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18763 Produce charset annotation data in coding->charbuf.
18764 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18765 to charset annotation data in coding->charbuf.
18766 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18767 coding->common_flags if the coding system is iso-2022 based and
18768 uses designation.
18769 (produce_composition): Adjust for the new annotation data format.
18770 (produce_charset): New function.
18771 (produce_annotation): Handle charset annotation.
18772 (handle_composition_annotation, handle_charset_annotation): New
18773 functions.
18774 (consume_chars): Handle charset annotation. Utilize the above two
18775 functions.
18776 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18777 buffer, get the deleted text as a string and set
18778 coding->src_object to that string.
18779 (detect_coding, detect_coding_system): Use the new struct
18780 coding_detection_info.
18781
18782 * coding.h (struct coding_detection_info): New structure.
18783 (struct coding_system): Adjust prototype of the member `detector'.
18784 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18785
187862008-02-01 Kenichi Handa <handa@m17n.org>
18787
18788 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18789
187902008-02-01 Dave Love <fx@gnu.org>
18791
18792 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18793 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18794 to new local and nullify apropos_accumulate before returning.
18795 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18796
187972008-02-01 Kenichi Handa <handa@m17n.org>
18798
18799 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18800 correctly.
e3eea1fc 18801
aac0c6e3
MR
188022008-02-01 Dave Love <fx@gnu.org>
18803
18804 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18805
188062008-02-01 Kenichi Handa <handa@m17n.org>
18807
18808 The following changes are to make character composition happen
18809 automatically on displaying.
18810
18811 * Makefile.in (lisp, shortlisp): Add composite.elc.
18812
18813 * composite.h (Qauto_composed, Vauto_composition_function)
18814 (Qauto_composition_function): Extern them.
18815
18816 * composite.c (Vcomposition_function_table)
18817 (Qcomposition_function_table): Delete variables.
18818 (Qauto_composed, Vauto_composition_function)
18819 (Qauto_composition_function): New variables.
18820 (run_composition_function): Don't call
18821 compose-chars-after-function.
18822 (update_compositions): Clear `auto-composed' text property.
18823 (compose_chars_in_text): Delete this function.
18824 (syms_of_composite): Staticpro Qauto_composed and
18825 Qauto_composition_function. Declare Vauto_composition_function as
18826 a Lisp variable.
18827
18828 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18829
18830 * xdisp.c (it_props): Add an entry for Qauto_composed.
18831 (handle_auto_composed_prop): New function.
18832
18833 * xselect.c (selection_data_to_lisp_data): Don't call
18834 compose_chars_in_text.
18835
188362008-02-01 Dave Love <fx@gnu.org>
18837
18838 * keyboard.c (read_char): Modify checking around use of
18839 Vkeyboard_translate_table.
18840
18841 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18842 and fix C types.
18843
188442008-02-01 Kenichi Handa <handa@m17n.org>
18845
18846 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18847 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18848 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18849 the case that the last byte is '\r' correctly.
18850 (decode_coding): Flush out the unprocessed data correctly.
18851 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18852
188532008-02-01 Dave Love <fx@gnu.org>
18854
18855 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18856 Add XK_ISO... case.
18857 (xaw_scroll_callback): Revert last change.
18858
188592008-02-01 Kenichi Handa <handa@m17n.org>
18860
18861 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18862
188632008-02-01 Kenichi Handa <handa@m17n.org>
18864
18865 * xfaces.c (Vface_resizing_fonts): New variable.
18866 (struct font_name): New member `resizing_ratio'.
18867 (font_resizing_ratio): New function.
18868 (split_font_name): Set font->resizing_ratio.
18869 (better_font_p): Pay attention to font->resizing_ratio.
18870 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18871 RESX, and RESY fields.
18872 (try_alternative_families): Try scalable fonts if
18873 Vscalable_fonts_allowed is not Qt.
18874 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18875
188762008-02-01 Dave Love <fx@gnu.org>
18877
18878 * xterm.c (xaw_scroll_callback): Cast correctly.
18879
188802008-02-01 Dave Love <fx@gnu.org>
18881
18882 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18883 (lispy_kana_keys): Comment out.
18884 (make_lispy_event) [XK_kana_A]: Comment out.
18885
18886 * xterm.c (xaw_scroll_callback): Cast call_data.
18887 (XTread_socket): Deal with ASCII keysyms.
18888 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18889
188902008-02-01 Dave Love <fx@gnu.org>
18891
18892 * xterm.c (Vx_keysym_table): New.
18893 (syms_of_xterm): Initialize it.
18894 (XTread_socket): Use it.
18895 From head: Eliminate incorrect optimization that tried to avoid
18896 decoding the output of X*LookupString.
18897 (x_get_font_repertory): Delete charset declaration.
18898
188992008-02-01 Kenichi Handa <handa@m17n.org>
18900
18901 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18902 return 0.
18903 (Fdefine_coding_system_internal): Setup
18904 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18905
189062008-02-01 Dave Love <fx@gnu.org>
18907
18908 * coding.c (Fcheck_coding_system): Doc fix.
18909
18910 * editfns.c (Finsert_byte): Return a proper value.
18911
189122008-02-01 Kenichi Handa <handa@m17n.org>
18913
18914 * coding.c (decode_coding): Fix args to translate_chars. Pay
18915 attention to Vstandard_translation_table_for_decode.
18916 (encode_coding): Fix args to translate_chars. Pay attention to
18917 Vstandard_translation_table_for_encode.
18918
18919 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18920 SINGLE_BYTE_CHAR_P.
18921
18922 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18923 not by SINGLE_BYTE_CHAR_P.
18924
18925 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18926 SINGLE_BYTE_CHAR_P.
18927
18928 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18929 SINGLE_BYTE_CHAR_P.
18930
18931 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18932 by SINGLE_BYTE_CHAR_P.
18933
18934 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18935 SINGLE_BYTE_CHAR_P.
18936
189372008-02-01 Dave Love <fx@gnu.org>
18938
18939 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18940
189412008-02-01 Dave Love <fx@gnu.org>
18942
18943 * fns.c (Flanginfo): Fix typo.
18944
18945 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18946
189472008-02-01 Kenichi Handa <handa@m17n.org>
18948
18949 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18950 (detect_coding_emacs_mule, detect_coding_iso_2022)
18951 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18952 incomplete byte sequence. Don't update *mask when correctly detected.
18953 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18954 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18955 (detect_coding, detect_coding_system): Adjust for the changes above.
18956
189572008-02-01 Kenichi Handa <handa@m17n.org>
18958
18959 * character.c (char_string): Rename from
18960 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18961 (string_char): Rename from string_char.
18962
18963 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18964 if C is greater than MAX_3_BYTE_CHAR.
18965 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18966 string_char instead of string_char_with_unification.
18967
189682008-02-01 Dave Love <fx@gnu.org>
18969
18970 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18971
189722008-02-01 Kenichi Handa <handa@m17n.org>
18973
18974 * keymap.c (push_key_description): Pay attention to force_multibyte.
18975
18976 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18977
189782008-02-01 Dave Love <fx@gnu.org>
18979
18980 * charset.c (define_charset_internal): Rename `supprementary'.
18981
18982 * Makefile.in (lisp, shortlisp): Remove latin-N.
18983
189842008-02-01 Dave Love <fx@gnu.org>
18985
18986 * xfns.c (x_window, x_window): Use use_xim.
18987
18988 * xterm.c (use_xim): Initialize.
18989 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18990 (x_term_init): Maybe set use_xim.
18991
18992 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18993
189942008-02-01 Kenichi Handa <handa@m17n.org>
18995
18996 * search.c (search_buffer): Fix case-fold-search of multibyte
18997 characters.
18998 (boyer_moore): Rename the last argument to char_high_bits.
18999
190002008-02-01 Kenichi Handa <handa@m17n.org>
19001
19002 * xdisp.c (display_string): Fix for the case of zero width glyph.
19003
19004 * xfns.c (x_set_font): Change the error message of the case that
19005 x_new_fontset returns Qt.
19006
19007 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19008 (Finternal_set_lisp_face_attribute): Use signal_error for the
19009 error of invalid fontset.
19010
19011 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19012 fontset, return Qt.
19013
190142008-02-01 Dave Love <fx@gnu.org>
19015
19016 * unexelf.c (unexec): Make .got handling not SGI-specific.
19017
19018 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19019
19020 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19021
19022 * keyboard.c (read_key_sequence): Fix type error.
19023
19024 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19025 type error.
19026
19027 * fontset.c (fontset_add): Return Lisp_Object.
19028
190292008-02-01 Dave Love <fx@gnu.org>
19030
19031 * charset.h (charset_ordered_list_tick): Declare extern.
19032
190332008-02-01 Kenichi Handa <handa@m17n.org>
19034
19035 The following changes (and some of 2008-02-01 changes of mine) are
19036 for handling syntax, category, and case conversion for unibyte
19037 characters by converting them to multibyte on the fly. With these
19038 changes, we don't have to setup syntax and case tables for unibyte
19039 characters in each language environment.
19040
19041 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19042 multibyte if necessary.
19043
19044 * bytecode.c (Fbyte_code): Likewise.
19045
19046 * character.h (LEADING_CODE_LATIN_1_MIN)
19047 (LEADING_CODE_LATIN_1_MAX): New macros.
19048 (unibyte_to_multibyte_table): Extern it.
19049 (unibyte_char_to_multibyte): New macro.
19050 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19051 (CHAR_LEADING_CODE): New macro.
19052 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19053
19054 * character.c (unibyte_to_multibyte_table): New variable.
19055 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19056 (multibyte_char_to_unibyte): If C is an eight-bit character,
19057 convert it to the corresponding byte value.
19058
19059 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19060 not 1, signals an error. Update the elements of
19061 unibyte_to_multibyte_table.
19062 (init_charset_once): Initialize unibyte_to_multibyte_table.
19063 (syms_of_charset): Define the charset `iso-8859-1'.
19064
19065 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19066 as is without converting it to unibyte. In a unibyte buffer,
19067 convert C to multibyte before checking the syntax.
19068
19069 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19070
19071 * minibuf.c (Fminibuffer_complete_word): Use the macro
19072 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19073
19074 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19075
19076 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19077 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19078 that is zero, convert an eight-bit char to multibyte.
19079 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19080 non-emacs case.
19081 (PATFETCH): Convert an eight-bit char to multibyte.
19082 (HANDLE_UNIBYTE_RANGE): New macro.
19083 (regex_compile): Setup the compiled pattern for multibyte chars
19084 even if the given regex string is unibyte. Use PATFETCH_RAW
19085 instead of PATFETCH in many places. To handle `charset'
19086 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19087 only for ASCII chars.
19088 (analyse_first) <exactn>: Simplify because the compiled pattern
19089 is multibyte.
19090 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19091 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19092 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19093 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19094 multibyte always 1.
19095 (re_search_2): In emacs, set the locale variable multibyte to 1,
19096 otherwise to 0. New local variable target_multibyte. Check it
19097 to decide the multibyteness of STR1 and STR2. If
19098 target_multibyte is zero, convert unibyte chars to multibyte
19099 before translating and checking fastmap.
19100 (TARGET_CHAR_AND_LENGTH): New macro.
19101 (re_match_2_internal): In emacs, set the locale variable multibyte
19102 to 1, otherwise to 0. New local variable target_multibyte. Check
19103 it to decide the multibyteness of STR1 and STR2. Use
19104 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19105 <charset, charset_not>: If multibyte is nonzero, check fastmap
19106 only for ASCII chars. Call bcmp_translate with
19107 target_multibyte, not with multibyte.
19108 <begline>: Declare the local variable C as `unsigned'.
19109 (bcmp_translate): Change the last arg name to target_multibyte.
19110
19111 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19112 the regexp pattern and the matching target. Set cp->buf.multibyte
19113 to the multibyteness of the regexp pattern. Set
19114 cp->but.target_multibyte to the multibyteness of the matching target.
19115 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19116 FETCH_STRING_CHAR_ADVANCE.
19117 (Freplace_match): Convert unibyte chars to multibyte.
19118
19119 * syntax.c (char_quoted, back_comment, scan_words)
19120 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19121 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19122 unibyte chars to multibyte.
19123 (skip_chars): Delete the arg syntaxp, and move the code for
19124 handling syntaxes to skip_syntaxes. Change callers.
19125 Fix the case that the multibyteness of STRING and the current
19126 buffer doesn't match.
19127 (skip_syntaxes): New function.
19128 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19129 SINGLE_BYTE_CHAR_P.
19130
191312008-02-01 Kenichi Handa <handa@m17n.org>
19132
19133 * xfaces.c (QCfontset): New variable.
19134 (LFACE_FONTSET): New macro.
19135 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19136 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19137 (Finternal_set_lisp_face_attribute)
19138 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19139 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19140 check also LFACE_FONTSET_INDEX.
19141 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19142 attrs[LFACE_FONT_INDEX].
19143 (syms_of_xfaces): Intern and staticpro QCfontset.
19144
19145 * dispextern.h (enum lface_attribute_index): New member
19146 LFACE_FONTSET_INDEX.
19147
19148 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19149
191502008-02-01 Kenichi Handa <handa@m17n.org>
19151
19152 * coding.c (coding_set_destination): Fix coding->destination for
19153 the case converting a region.
19154 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19155 (encode_coding_object): Fix coding->dst_pos and
19156 coding->dst_pos_byte for the case converting a region.
19157
19158 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19159
19160 * character.h (BYTE8_STRING): New macro.
19161
19162 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19163
191642008-02-01 Kenichi Handa <handa@m17n.org>
19165
19166 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19167 characters by octal form.
19168
19169 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19170
19171 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19172 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19173 _fetch_multibyte_char_len.
19174 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19175
19176 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19177
19178 * casefiddle.c (casify_object): Simplify. Handle the case that
19179 the case conversion change the byte length.
19180 (casify_region): Likewise.
19181
19182 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19183
19184 * character.c (_fetch_multibyte_char_len): Delete this variable.
19185 (syms_of_character): Setup Vprintable_chars.
19186
19187 * editfns.c (Fchar_equal): Fix for the unibyte case.
19188 (Finsert_byte): New function.
19189 (syms_of_editfns): Defsubr it.
19190
19191 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19192 of direct code 0x3ffff.
19193
19194 * search.c (Freplace_match): Fix for the unibyte case.
19195
191962008-02-01 Kenichi Handa <handa@m17n.org>
19197
19198 * lread.c (safe_to_load_p): Fix the logic.
19199
19200 * syntax.c (scan_words): Don't treat characters belonging to
19201 different scripts as constituting a word.
19202
19203 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19204
19205 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19206
19207 * emacs.c (main): In the case of --unibyte, instead of aborting on
19208 finding non-empty buffer, make it unibyte.
19209
192102008-02-01 Kenichi Handa <handa@m17n.org>
19211
19212 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19213 to create a fontset.
19214
192152008-02-01 Dave Love <fx@gnu.org>
19216
19217 * character.c (Funibyte_char_to_multibyte): Doc fix.
19218
19219 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19220
192212008-02-01 Kenichi Handa <handa@m17n.org>
19222
19223 * fontset.c (fontset_add): Make the type `int'.
19224 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19225
19226 * character.c (unibyte_char_to_multibyte)
19227 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19228 charset_unibyte, not charset_primary.
19229
19230 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19231
19232 * charset.c (charset_unibyte): Rename from charset_primary.
19233 (Funibyte_charset): Rename from Fprimary_charset.
19234 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19235 (syms_of_charset): Adjust for the above changes.
19236
19237 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19238 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19239 it->multibyte_p is zero.
19240
19241 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19242 Delete extern.
19243
192442008-02-01 Kenichi Handa <handa@m17n.org>
19245
19246 * coding.c (Fdefine_coding_system_internal): Fix category setting
19247 for a coding system of type iso-2022.
19248
192492008-02-01 Kenichi Handa <handa@m17n.org>
19250
19251 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19252
192532008-02-01 Kenichi Handa <handa@m17n.org>
19254
19255 * syntax.c (Vnext_word_boundary_function_table): New variable.
19256 (next-word-boundary-function-table): Declare it as a Lisp variable
19257 in syms_of_syntax.
19258 (scan_words): Call functions in Vnext_word_boundary_function_table
19259 if any.
19260
19261 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19262
19263 * fontset.c (fs_load_font): If fontp->charset is not negative,
19264 return fontp without setting its members.
19265
192662008-02-01 Dave Love <fx@gnu.org>
19267
19268 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19269
19270 * m/sparc.h (HAVE_ALLOCA): Delete.
19271
19272 * s/irix6-5.h: Don't include strings.h.
19273 (bcopy, bzero, bcmp): Don't undef.
19274
19275 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19276
19277 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19278 (TIOCSIGSEND): Don't test IRIX6.
19279 (bcopy, bzero, bcmp): Define conditionally.
19280
192812008-02-01 Kenichi Handa <handa@m17n.org>
19282
19283 * buffer.c (Qas, Qmake, Qto): New variables.
19284 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19285 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19286
19287 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19288 we are inserting a process output into a multibyte buffer.
19289
19290 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19291 multibyte_char_to_unibyte.
19292
19293 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19294 by the primary charset, make it eight-bit char.
19295 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19296
19297 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19298 (charset_8_bit__control, charset_8_bit_graphic)
19299 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19300 (define_charset_internal): New function.
19301 (syms_of_charset): Call define_charset_internal for pre-defined
19302 charsets.
19303
19304 * charset.h (charset_8_bit): Extern it.
19305
19306 * coding.c (make_conversion_work_buffer): Adjust for the change
19307 of Fset_buffer_multibyte.
19308 (encode_coding_raw_text): Increment p0 in the loop.
19309
19310 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19311
19312 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19313 for the change of Fset_buffer_multibyte.
19314
19315 * fns.c (Fstring_to_multibyte): New function.
19316 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19317
193182008-02-01 Dave Love <fx@gnu.org>
19319
19320 * xfns.c (x_put_x_image): Declare args.
19321
19322 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19323 (try_font_list): Declare an arg.
19324
19325 * xdisp.c (message2_nolog, set_message): Declare an arg.
19326
19327 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19328
19329 * syntax.c (scan_sexps_forward): Declare an arg.
19330
19331 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19332 Declare an arg.
19333
19334 * lisp.h (Fnew_fontset): Declare.
19335
19336 * keymap.c (push_key_description): Call CHARACTERP correctly.
19337
19338 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19339 (face_for_char): Delete unused vars.
19340 (Fset_fontset_font): Doc fix. Delete unused vars.
19341
19342 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19343
19344 * composite.c (update_compositions): Declare arg.
19345
19346 * cm.c (calccost, cmgoto): Declare args.
19347
19348 * charset.c: Remove `emacs' conditional. Doc fixes.
19349 (map_char_table_for_charset): Declare.
19350
19351 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19352
19353 * ccl.c: Remove `emacs' conditional.
19354
193552008-02-01 Kenichi Handa <handa@m17n.org>
19356
19357 The following changes are to allow specifying multiple font
19358 patterns for a character range (specified by script or charset).
19359
19360 * Makefile.in (abbrev.o): Depend on syntax.h.
19361 (xfaces.o): Depend on charset.h.
19362
19363 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19364 SINGLE_BYTE_CHAR_P.
19365
19366 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19367
19368 * character.h (Vchar_script_table): Extern it.
19369
19370 * character.c (Vscript_alist): Delete.
19371 (Vchar_script_table, Qchar_script_table): New variable.
19372 (syms_of_character): Declare Vchar_script_table as a lisp variable
19373 and initialize it.
19374
19375 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19376 have property char-table-extra-slots, make no extra slot.
19377
19378 * dispextern.h (struct face): Delete member `charset'.
19379 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19380 SINGLE_BYTE_CHAR_P.
19381 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19382 Add prototypes.
19383 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19384 (generate_ascii_font_name): Rename from generate_ascii_font.
19385
19386 * fontset.h (get_font_repertory_func): New prototype.
19387 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19388 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19389
19390 * fontset.c (Qprepend, Qappend): New variables.
19391 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19392 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19393 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19394 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19395 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19396 (load_font_get_repertory): New functions.
19397 (fontset_set): Delete.
19398 (fontset_face): New arg FACE. Return face ID, not face.
19399 Complete re-write to handle new fontset structure. Change caller.
19400 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19401 (face_for_char): Don't call lookup_face.
19402 (make_fontset_for_ascii_face): New arg FACE.
19403 (fs_load_font): New arg CHARSET_ID. Don't check
19404 Vfont_encoding_alist here.
19405 (find_font_encoding): New function.
19406 (list_fontsets): Use STRINGP, not ! NILP.
19407 (accumulate_script_ranges): New function.
19408 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19409 re-written to handle new fontset structure.
19410 (Ffontset_font): Return a copy of element.
19411 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19412 docstring of font-encoding-alist.
19413
19414 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19415 (Fset_fotset_font): Fix arguments to 5.
19416
19417 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19418
19419 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19420 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19421 (highlight_trailing_whitespace): Adjust for the change of
19422 lookup_named_face.
19423
19424 * xfaces.c: Include charset.h.
19425 (load_face_font): Delete argument C. Change caller.
19426 (generate_ascii_font_name): Rename from generate_ascii_font.
19427 (font_name_registry): New function.
19428 (cache_face): Store ascii faces before non-ascii faces in buckets.
19429 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19430 Lookup only ascii faces.
19431 (lookup_non_ascii_face): New function.
19432 (lookup_named_face): Delete argument C. Change caller.
19433 (lookup_derived_face): Delete argument C. Change caller.
19434 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19435 a string, just call font_list with it.
19436 (choose_face_font): Delete arguments FACE and C. New arg
19437 FONT_SPEC. Change caller.
19438 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19439 Change caller.
19440 (realize_non_ascii_face): New function.
19441 (realize_x_face): Call load_face_font here.
19442 (realize_tty_face): Delete argument C. Change caller.
19443 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19444 get a face ID.
19445 (dump_realized_face): Don't print charset of FACE.
19446
19447 * xfns.c (x_set_font): Always call x_new_fontset and
19448 store_frame_parameter.
19449 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19450 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19451
19452 * xterm.h (x_get_font_repertory): Extern it.
19453
19454 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19455 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19456 it->multibyte_p is zero.
19457 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19458 (x_new_fontset): If FONTSETNAME doesn't match any existing
19459 fontsets, create a new one.
19460 (x_get_font_repertory): New function.
19461
194622008-02-01 Kenichi Handa <handa@m17n.org>
19463
19464 * coding.c (Ffind_coding_systems_region_internal): Detect an
19465 ASCII only string correctly.
19466
19467 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19468 version is 0.
19469
194702008-02-01 Kenichi Handa <handa@m17n.org>
19471
19472 * lread.c: Include "coding.h".
19473 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19474 (load_each_byte, unread_char): New variables.
19475 (readchar_backlog): Delete.
19476 (readchar): Return a character unless load_each_byte is nonzero.
19477 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19478 cons. If unread_char is not -1, simply return it.
19479 (unreadchar): Handle the case that readcharfun is
19480 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19481 (read_multibyte): Delete.
19482 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19483 (read_emacs_mule_char): New functions.
19484 (Fload): Even if the file doesn't have the extension ".elc", if
19485 safe_to_load_p returns a positive version number, assume that the
19486 file contains bytecompiled code. If the version is less than 22,
19487 load the file while decoding multibyte sequences by emacs-mule.
19488 (readevalloop): Don't use readchar_backlog.
19489 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19490 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19491 (read_escape): Delete the arg BYTEREP.
19492 (read1): Set load_each_byte to 1 temporarily while handling
19493 #@NUMBER. Don't call read_multibyte.
19494 (read_vector): Call Fread with a cons. If readcharfun is
19495 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19496 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19497 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19498 and Qload_force_doc_strings.
19499
195002008-02-01 Kenichi Handa <handa@m17n.org>
19501
19502 * xdisp.c (face_before_or_after_it_pos): Call
19503 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19504
195052008-02-01 Kenichi Handa <handa@m17n.org>
19506
19507 * character.h (TRAILING_CODE_P): New macro.
19508 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19509 (string_char_with_unification): Fix prototype.
19510 (Vscript_alist): Extern it.
19511
19512 * character.c (Vscript_alist): New variable.
19513 (string_char_with_unification, str_as_unibyte)
19514 (string_escape_byte8): Add `const' to local variables.
19515 (syms_of_character): Declare script-alist as a Lisp variable.
19516
19517 * charset.h (Vcharset_ordered_list): Extern it.
19518 (charset_ordered_list_tick): Extern it.
19519 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19520 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19521 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19522 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19523 (Funify_charset): Adjust for the change of Funify_charset.
19524
19525 * charset.c (charset_ordered_list_tick): New variable.
19526 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19527 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19528 deunify intead of unify a charset.
19529 (string_xstring_p): Add `const' to local variables.
19530 (find_charsets_in_text): Add `const' to arguments and local variables.
19531 (encode_char): Adjust for the change of Funify_charset. Fix
19532 detecting of invalid code.
19533 (Fset_charset_priority): Increment charset_ordered_list_tick.
19534 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19535 and TO_CODE.
19536
19537 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19538 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19539 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19540 (decode_coding_ccl, consume_chars)
19541 (Ffind_coding_systems_region_internal)
19542 (Fcheck_coding_systems_region): Add `const' to local variables.
19543
19544 * print.c (print_object): Use octal form for printing the
19545 contents of a bool vector.
19546
195472008-02-01 Dave Love <fx@gnu.org>
19548
19549 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19550 <version == 20>: Refuse to load.
19551
195522008-02-01 Dave Love <fx@gnu.org>
19553
19554 * fns.c: Move coding.h.
19555 (Qcodeset, Qdays, Qmonths): New.
19556 (concat): Use CHARACTERP instead of INTEGERP.
19557 (Flocale_codeset): Delete.
19558 (Flanginfo): New function.
19559 (syms_of_fns): Change accordingly.
19560
19561 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19562
195632008-02-01 Dave Love <fx@gnu.org>
19564
19565 * casetab.c (init_casetab_once, init_casetab_once): Fix
19566 CHAR_TABLE_SET call.
19567
19568 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19569
19570 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19571
19572 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19573 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19574 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19575
19576 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19577
19578 * coding.c (ENCODE_DESIGNATION, decode_eol)
19579 (make_conversion_work_buffer, code_conversion_restore)
19580 (Fdefine_coding_system_internal): Convert Lisp types.
19581 (code_conversion_restore): Use EQ, not ==.
19582 (Fencode_coding_string): Fix code_convert_string call.
19583
19584 * coding.h (code_convert_region): Fix prototype.
19585
19586 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19587
19588 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19589 (Ffontset_info): Convert Lisp types.
19590
19591 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19592
19593 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19594
19595 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19596
19597 * chartab.c: Include "...h", not <...h> in some cases.
19598
19599 * callproc.c (Fcall_process): Remove unused variables.
19600
196012008-02-01 Dave Love <fx@gnu.org>
19602
19603 * coding.c (Fset_coding_system_priority): Allow null arg list.
19604
196052008-02-01 Dave Love <fx@gnu.org>
19606
19607 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19608 (Fself_insert_and_exit): Use CHARACTERP.
19609
19610 * callproc.c (Fcall_process): Remove unused vars.
19611
19612 * xterm.c (XTread_socket): Add extra dead keysyms.
19613
19614 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19615
19616 * dispextern.h: Remove prototypes for redraw_frame,
19617 redraw_garbaged_frames.
19618
19619 * cmds.c (Fself_insert_command): Use CHARACTERP.
19620
19621 * chartab.c (make_sub_char_table): Remove unused var.
19622 (Fset_char_table_default, Fmap_char_table): Doc fix.
19623
19624 * keymap.c (access_keymap): Remove generic char code.
19625 (push_key_description): Use CHARACTERP.
19626
196272008-02-01 Dave Love <fx@gnu.org>
19628
19629 * charset.c: Doc fixes.
19630 (Funify_charset): Extra checking.
19631
196322008-02-01 Dave Love <fx@gnu.org>
19633
19634 * lread.c: Remove some unused variables.
19635 (safe_to_load_p): If safe, return the magic number version byte.
19636 (Fload): Maybe use load-with-code-conversion.
19637
196382008-02-01 Kenichi Handa <handa@m17n.org>
19639
19640 * category.c (Fmodify_category_entry): Don't modify the contents
19641 of category_set for characters out of the range. Avoid
19642 unnecessary modification.
19643
19644 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19645 Vchar_unify_table. The default value of the table is now nil.
19646
19647 * character.c (syms_of_character): Setup Vchar_width_table for
19648 eight-bit-control and raw-byte chars.
19649
19650 * charset.h (enum define_charset_arg_index): Delete
19651 charset_arg_parents and add charset_arg_subset and
19652 charset_arg_superset.
19653 (enum charset_attr_index): Delete charset_parents and add
19654 charset_subset and charset_superset.
19655 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19656 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19657 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19658 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19659 (CHARSET_SUPERSET): New macros.
19660 (charset_work): Extern it.
19661 (ENCODE_CHAR): Use charset_work.
19662 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19663 (map_charset_chars): Extern it.
19664
19665 * charset.c (load_charset_map): Set the default value of encoder
19666 and deunifier char-tables to nil.
19667 (map_charset_chars): Change argument. Change callers. Use
19668 map_char_table_for_charset instead of map_char_table.
19669 (Fmap_charset_chars): New optional args from_code and to_code.
19670 (Fdefine_charset_internal): Adjust for the change of
19671 `define-charset' (:parents -> :subset or :superset).
19672 (charset_work): New variable.
19673 (encode_char, syms_of_charset): Adjust for the change of
19674 Fdefine_charset_internal.
19675 (Ffind_charset_string): Setup the vector `charsets' correctly.
19676
19677 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19678 the previous change.
19679 (char_table_ref_and_range): Adjust for the above change.
19680 (map_sub_char_table_for_charset): New function.
19681 (map_char_table_for_charset): New function.
19682
19683 * keymap.c (describe_vector): Handle a char-table directly here.
19684 (describe_char_table): Delete.
19685
19686 * lisp.h (map_charset_chars): Delete.
19687
196882008-02-01 Dave Love <fx@gnu.org>
19689
19690 * fns.c (count_combining): Comment out (unused).
19691 (Flocale_codeset): New.
19692 (syms_of_fns): Defsubr it.
19693
19694 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19695 (size_t): Remove.
19696
196972008-02-01 Dave Love <fx@gnu.org>
19698
19699 * Makefile.in (chartab.o): Depend on charset.h.
19700
197012008-02-01 Kenichi Handa <handa@m17n.org>
19702
19703 * character.c (syms_of_character): Set the default value of
19704 Vprintable_chars to Qnil.
19705
197062008-02-01 Dave Love <fx@gnu.org>
19707
19708 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19709
197102008-02-01 Kenichi Handa <handa@m17n.org>
19711
19712 * charset.c (load_charset_map): Handle the case that from < to
19713 correctly.
19714
19715 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19716 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19717 Pay attention to raw-8-bit chars.
19718
197192008-02-01 Kenichi Handa <handa@m17n.org>
19720
19721 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19722 It is not bytecompiled now.
19723
19724 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19725 (charset_jisx0208): New variables.
19726 (Fdefine_charset_internal): Setup them if appropriate.
19727 (init_charset_once): Initialize them to -1.
19728
19729 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19730 (charset_jisx0208): Extern them.
19731
19732 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19733 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19734 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19735 (setup_iso_safe_charsets): Fix arguments to Fassq.
19736 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19737 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19738 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19739 (encode_coding_iso_2022): Change the 1st arg to
19740 ENCODE_ISO_CHARACTER to a variable.
19741
197422008-02-01 Kenichi Handa <handa@m17n.org>
19743
19744 * charset.h (enum define_charset_arg_index): New enums
19745 charset_arg_min_code and charset_arg_max_code.
19746 (struct charset): New member char_index_offset.
19747
19748 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19749 Take charset->char_index_offset into account.
19750 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19751 args[charset_arg_max_code]. Setup charset.char_index_offset.
19752 (syms_of_charset): Fix args to Fdefine_charset_internal.
19753
197542008-02-01 Dave Love <fx@gnu.org>
19755
19756 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19757
197582008-02-01 Dave Love <fx@gnu.org>
19759
19760 * coding.c: Doc fixes.
19761 (Fcoding_system_aliases): Fix return value.
19762 (Qmac): Remove (duplicated) definition.
19763
197642008-02-01 Dave Love <fx@gnu.org>
19765
362654a6
JB
19766 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19767 New functions.
aac0c6e3
MR
19768
19769 * character.c (Fstring): Doc fix.
19770
19771 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19772
362654a6 19773 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19774 (font-encoding-alist): Doc fix.
19775
197762008-02-01 Dave Love <fx@gnu.org>
19777
19778 * term.c (costs_set): Declare static, non-initialized for pcc.
19779 (encode_terminal_code): Remove unused var.
19780
19781 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19782 for K&R.
19783
19784 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19785
19786 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19787 (suffixes): Move out of make_subsidiaries for K&R.
19788
19789 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19790
19791 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19792
197932008-02-01 Dave Love <fx@gnu.org>
19794
19795 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19796
19797 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19798
197992008-02-01 Yong Lu <lyongu@asia-infonet.com>
19800
19801 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19802
19803 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19804
198052008-02-01 Kenichi Handa <handa@m17n.org>
19806
19807 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19808 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19809
198102008-02-01 Kenichi Handa <handa@m17n.org>
19811
19812 * coding.c (decode_coding_charset): Adjust for the change of
19813 Fdefine_coding_system_internal.
19814 (Fdefine_coding_system_internal): For a coding system of
19815 `charset' type, store a list of charset IDs in
19816 `charset_attr_charset_valids' element of coding attributes.
19817
198182008-02-01 Kenichi Handa <handa@m17n.org>
19819
19820 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19821 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19822 caller. Handle 2-byte and 3-byte charsets correctly.
19823 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19824 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19825 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19826 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19827 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19828 sequence.
19829 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19830 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19831 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19832 and alt&rule composition.
19833 (decode_coding_iso_2022): Handle composition correctly.
19834 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19835
19836 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19837 re-defining a charset. If the charset has :emacs-mule-id, setup
19838 emacs_mule_bytes.
19839 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19840
198412008-02-01 Kenichi Handa <handa@m17n.org>
19842
19843 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19844 (encode_coding_big5, encode_coding_charset): If coding requires safe
19845 encoding, produce a character specified by
19846 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19847
198482008-02-01 Dave Love <fx@gnu.org>
19849
19850 * xterm.c (XSetIMValues): Declare.
19851
19852 * process.c: Conditionally include sys/wait.h, pty.h.
19853
19854 * print.c (print_object): Fix print format for 64-bit systems.
19855
19856 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19857
19858 * buffer.c (emacs_strerror): Declare.
19859
19860 * fontset.c (Fclear_face_cache): Declare.
19861 (accumulate_font_info): Comment-out (unused).
19862 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19863 variables.
19864
19865 * character.h (string_escape_byte8): Declare.
19866
19867 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19868 unused vars.
19869 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19870 (Fmap_charset_chars): Doc fix.
19871
19872 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19873 (Fset_coding_system_priority, Fset_coding_system_priority)
19874 (Fdefine_coding_system_internal): Doc fix.
19875
198762008-02-01 Dave Love <fx@gnu.org>
19877
19878 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19879
198802008-02-01 Kenichi Handa <handa@m17n.org>
19881
19882 * character.c (string_escape_byte8): Make multibyte string with
19883 correct size.
19884
19885 * charset.c (Fmake_char): Delete unnecessary code.
19886
198872008-02-01 Kenichi Handa <handa@m17n.org>
19888
19889 * xfns.c (x_encode_text): Allocate coding.destination here, and
19890 call encode_coding_object with dst_object Qnil.
19891
19892 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19893 multibyte form correctly.
19894
19895 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19896 against Vfont_encoding_alist.
19897
19898 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19899 handling of charset list.
19900 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19901 (decode_coding_object): Move point to coding->dst_pos before
19902 calling post-read-conversion function.
19903 (encode_coding_object): Give correct arguments to
19904 pre-write-conversion. Ignore the return value of
19905 pre-write-conversion function. Pay attention to the case that
19906 pre-write-conversion changes the current buffer. If dst_object is
19907 Qt, even if coding->src_bytes is zero, allocate at least one byte
19908 to coding->destination.
19909
19910 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19911
19912 * charset.c (Fmake_char): Make it more backward compatible.
19913 (Fmap_charset_chars): Fix docstring.
19914
199152008-02-01 Dave Love <fx@gnu.org>
19916
19917 * coding.c: Doc fixes.
19918 (Fdefine_coding_system_alias): Use names, not symbols, in
19919 coding-system-alist.
19920
199212008-02-01 Kenichi Handa <handa@m17n.org>
19922
19923 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19924 of calling free_realized_face.
19925
199262008-02-01 Yong Lu <lyongu@asia-infonet.com>
19927
19928 * charset.c (read_hex): Don't treat SPC as a comment starter.
19929 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19930 (Fdecode_char): Fix typo.
19931
199322008-02-01 Kenichi Handa <handa@m17n.org>
19933
19934 * charset.h (struct charset): New member `code_space_mask'.
19935
19936 * coding.c (coding_set_source): Delete the local variable beg_byte.
19937 (encode_coding_charset, Fdefine_coding_system_internal):
19938 Delete the local variable charset.
19939 (Fdefine_coding_system_internal): Setup
19940 attrs[coding_attr_charset_valids] correctly.
19941
19942 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19943 member to check if CODE is valid or not.
19944 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19945 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19946 is within the range of charset->min_code and carset->max_code.
19947
199482008-02-01 Dave Love <fx@gnu.org>
19949
19950 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19951
19952 * dispextern.h (generate_ascii_font): Fix return type.
19953
19954 * xfaces.c (generate_ascii_font): Fix arg declaration.
19955
19956 * coding.c (coding_inherit_eol_type)
19957 (Fset_terminal_coding_system_internal)
19958 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19959
199602008-02-01 Kenichi Handa <handa@m17n.org>
19961
19962 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19963 multiple charsets correctly.
19964
199652008-02-01 Kenichi Handa <handa@m17n.org>
19966
19967 * search.c (boyer_moore): Fix handling of multibyte character
19968 translation.
19969
19970 * xdisp.c (display_mode_element): When the variable `elt' is
19971 changed, update `this' and `lisp_string'.
19972
199732008-02-01 Kenichi Handa <handa@m17n.org>
19974
19975 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19976
19977 * callproc.c (Fcall_process): Be sure to give the current buffer
19978 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19979
19980 * charset.c (struct charset_map_entries): New struct.
19981 (load_charset_map): Rename from parse_charset_map. New args
19982 entries and n_entries. Change caller.
19983 (load_charset_map_from_file): Rename from load_charset_map.
19984 Change caller. New arg control_flag. Call load_charset_map at
19985 the tail.
19986 (load_charset_map_from_vector): New function.
19987 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19988 (encode_char): If the charset is compact, change a character index
19989 to a code point.
19990
19991 * coding.c (coding_alloc_by_making_gap): Check the case that the
19992 source and destination are the same correctly.
19993 (decode_coding_raw_text): Set coding->consumed_char and
19994 coding->consumed to 0.
19995 (produce_chars): If coding->chars_at_source is nonzero, update
19996 coding->consumed_char and coding->consumed before calling
19997 alloc_destination.
19998 (Fdefine_coding_system_alias): Register ALIAS in
19999 Vcoding_system_alist.
20000 (syms_of_coding): Define `no-conversion' coding system at the tail.
20001
20002 * fileio.c (Finsert_file_contents): Set coding_system instead of
20003 val. If the current buffer is multibyte, always call
20004 decode_coding_gap.
20005
20006 * xfaces.c (try_font_list): Give higher priority to fontset's
20007 family than face's family.
20008
200092008-02-01 Kenichi Handa <handa@m17n.org>
20010
20011 * callproc.c (Fcall_process): Be sure to give the current buffer
20012 to decode_coding_c_string.
20013
20014 * xfaces.c (try_font_list): Give a family specified in a fontset
20015 higher priority than a family specified in a face.
20016
200172008-02-01 Kenichi Handa <handa@m17n.org>
20018
20019 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20020 Fix arguments to insert_from_buffer.
20021
20022 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20023
200242008-02-01 Kenichi Handa <handa@m17n.org>
20025
20026 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20027 (decode_coding_gap): Set coding->dst_multibyte correctly.
20028
200292008-02-01 Kenichi Handa <handa@m17n.org>
20030
20031 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20032 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20033 (encode_coding_utf_16): Substitute coding->default_char for
20034 non-Unicode characters.
20035 (decode_coding): Don't call record_insert here.
20036 (setup_coding_system): Initialize `surrogate' of
20037 coding->spec.utf_16 to 0.
20038 (EMIT_ONE_BYTE): Fix for multibyte case.
20039
20040 * insdel.c (insert_from_gap): Call record_insert.
20041
200422008-02-01 Kenichi Handa <handa@m17n.org>
20043
20044 * casefiddle.c (casify_region): Fix multibyte case.
20045
20046 * character.c (c_string_width): Add return type `int'.
20047 (char_string_with_unification): Delete arg ADVANCED.
20048
20049 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20050 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20051 (CHAR_STRING_ADVANCE): Make it do-while statement.
20052
20053 * chartab.c (sub_char_table_set_range): Optimize for the case
20054 DEPTH == 3. Add workaround code for a GCC optimization bug.
20055
20056 * charset.c (parse_charset_map): Remove an unused variable.
20057
20058 * coding.c: Delete unused variables.
20059
20060 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20061 earlier. If inserted is zero and the coding system doesn't
20062 require flushing, don't call decode_coding_gap.
20063
20064 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20065
200662008-02-01 Kenichi Handa <handa@m17n.org>
20067
20068 The following changes are for using Unicode as an internal
20069 character model, and use UTF-8 format for buffer/string
20070 representation.
20071
20072 * .gdbinit (xchartable): Adjust for the change of char table structure.
20073 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20074
20075 * Makefile.in (obj): Add character.o and chartab.o.
20076 (lisp, shortlisp): Remove utf-8.elc.
20077 (*.o): For many files, change dependency on charset.h to
20078 character.h, and add dependency on character.h.
20079 (character.o, chartab.o): New targets.
20080
20081 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20082 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20083 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20084 of "charset.h".
20085
20086 * dired.c, filelock.c: Include "character.h".
20087
20088 * alloc.c: Include "character.h" instead of "charset.h".
20089 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20090 (syms_of_alloc): Remove defsubr for Smake_char_table.
20091
20092 * buffer.c: Include "character.h" instead of "charset.h", don't
20093 include "coding.h".
20094 (Fset_buffer_multibyte): Adjust for UTF-8.
20095
20096 * buffer.h: EXFUN Fbuffer_live_p.
20097
20098 * callproc.c: Include "character.h" instead of "charset.h".
20099 (Fcall_process): Big change for the new code-conversion APIs.
20100
20101 * casetab.c: Include "character.h" instead of "charset.h".
20102 (set_canon, set_identity, shuffle): Adjust for the new
20103 map_char_table spec.
20104 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20105 accessing the char table structure.
20106
20107 * chartab.c: New file that implements char table.
20108
20109 * category.c: Include "character.h".
20110 (copy_category_entry): New function.
20111 (copy_category_table): Call map_char_table and copy_category_entry.
20112 (Fmake_category_table): Initialize all top-level slots.
20113 (char_category_set): New function.
20114 (modify_lower_category_set): Delete.
20115 (Fmodify_category_entry): Call char_table_ref_and_range.
20116
20117 * category.h (CATEGORY_SET): Just call char_category_set.
20118
20119 * ccl.c: Include "character.h".
20120 (Qccl, Qcclp): New variables.
20121 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20122 it's less than 256.
20123 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20124 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20125 and DST type.
20126 (ccl_driver): Change types of argument, adjust code accordingly.
20127 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20128 ccl_driver.
20129 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20130
20131 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20132 New members src_multibyte, dst_multibyte, consumed, and produced.
20133 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20134 (CODING_SPEC_CCL_PROGRAM): New macro.
20135 (ccl_driver): Update prototype.
20136 (Qccl, Qcclp, Fccl_program_p): Extern them.
20137 (CHECK_CCL_PROGRAM): New macro.
20138
20139 * character.c, character.h, chartab.c: New files.
20140
20141 * charset.c: Mostly re-written. Move character and multibyte sequence
20142 handling codes to character.c.
20143
20144 * charset.h: Mostly re-written. Move character and multibyte sequence
20145 handling codes to character.h.
20146
20147 * coding.c, coding.h: Mostly re-written.
20148
20149 * composite.c: Include "character.h" instead of "charset.h".
20150 (CHAR_WIDTH): Move to character.h.
20151 (HASH_KEY, HASH_VALUE): Delete.
20152
20153 * composite.h (enum composition_method): Change order of enumeration
20154 symbols.
20155
20156 * data.c: Include "character.h" instead of "charset.h".
20157 (Faref): Call CHAR_TABLE_REF for a char table.
20158 (Faset): Call CHAR_TABLE_SET for a char table.
20159
20160 * dispextern.h (free_realized_face, check_face_attribytes)
20161 (generate_ascii_font): Extern them.
20162 (free_realized_multibyte_face): Delete extern.
20163
20164 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20165 table structure.
20166
20167 * editfns.c: Include "character.h" instead of "charset.h".
20168 (Fchar_to_string): Always call CHAR_STRING.
20169
20170 * emacs.c (main): Call init_charset_once, init_charset,
20171 syms_of_chartab, and syms_of_character.
20172
20173 * fileio.c: Include "character.h" instead of "charset.h".
20174 (Finsert_file_contents): Big change for the new code-conversion API.
20175 (choose_write_coding_system, Fwrite_region): Likewise.
20176 (build_annotations_2): Delete.
20177 (e_write): Big change for the new code-conversion API.
20178
20179 * fns.c: Include "character.h" instead of "charset.h".
20180 (copy_sub_char_table): Move to chartab.c.
20181 (Fcopy_sequence): Call copy_char_table for a char table.
20182 (concat): Delete codes calling count_multibyte.
20183 (string_char_to_byte, string_byte_to_char): Adjust for the new
20184 multibyte form.
20185 (internal_equal): Adjust for the change of char table structure.
20186 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20187 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20188 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20189 (char_table_translate, optimize_sub_char_table)
20190 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20191 chartab.c.
20192 (char_table_ref_and_index): Delete.
20193 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20194 (Fmd5): Call preferred_coding_system instead of accessing
20195 Vcoding_category_list. Adjust for the new code-conversion API.
20196 (syms_of_fns): Move defsubr for char table related functions to
20197 chartab.c.
20198
20199 * fontset.c: Mostly re-written.
20200
20201 * fontset.h (struct font_info): Change type of the member encoding_type.
20202 (enum FONT_SPEC_INDEX): New enum.
20203 (fontset_font_pattern, fs_load_font): Update prototype.
20204 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20205
20206 * indent.c: Include "character.h" instead of "charset.h".
20207 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20208
20209 * insdel.c: Include "character.h" instead of "charset.h".
20210 (copy_text): Don't refer to Vnonascii_translation_table.
20211 (insert_from_gap): New function.
20212
20213 * keyboard.c: Include "character.h" instead of "charset.h".
20214 (command_loop_1): Never call direct_output_forward_char before
20215 a non-ASCII character.
20216 (read_char): If Vkeyboard_translate_table is a char table, always
20217 translate a character.
20218
20219 * keymap.c: Include "character.h".
20220 (store_in_keymap): Handle the case that IDX is a cons.
20221 (Fdefine_key): Handle the case that KEY is a cons and the car part
20222 is also a cons (range).
20223 (push_key_description): Adjust for the new character code.
20224 (describe_vector): Call describe_char_table for a char table.
20225 (describe_char_table): New function.
20226
20227 * keymap.h (describe_char_table): Extern it.
20228
20229 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20230 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20231 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20232 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20233 Delete.
20234 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20235 structure.
20236 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20237 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20238 (CHARTAB_SIZE_BITS_3): New macros.
20239 (chartab_size): Extern it.
20240 (struct Lisp_Char_Table): Re-design.
20241 (struct Lisp_Sub_Char_Table): New structure.
20242 (HASH_KEY, HASH_VALUE): Move from fns.c.
20243 (CHARACTERBITS): Define as 22.
20244 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20245 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20246 (GC_SUB_CHAR_TABLE_P): New macro.
20247 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20248 (code_convert_string_norecord): Deleted extern.
20249 (init_character_once, syms_of_character, init_charset)
20250 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20251
20252 * lread.c: Include "character.h".
20253 (read_multibyte): New arg NBYTES.
20254 (read_escape): Change the meaning of returned *BYTEREP.
20255 (to_multibyte): Delete.
20256 (read1): Adjust the handling of char table and string.
20257
20258 * print.c: Include "character.h" instead of "charset.h".
20259 (print_string): Convert 8-bit raw bytes to octal form by
20260 string_escape_byte8.
20261 (print_object): Adjust for the new multibyte form. Print 8-bit
20262 raw bytes always in octal form. Handle sub char table correctly.
20263
20264 * process.c: Include "character.h" instead of "charset.h".
20265 (read_process_output, send_process): Adjust for the new
20266 code-conversion API.
20267
20268 * puresize.h (BASE_PURESIZE): Increase.
20269
20270 * regex.c: Include "character.h" instead of "charset.h".
20271 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20272 (regex_compile): Accept a range whose starting and ending
20273 character have different leading bytes.
20274 (analyse_first): Adjust for the above change.
20275
20276 * search.c: Include "character.h" instead of "charset.h".
20277 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20278 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20279
20280 * syntax.c: Include "character.h" instead of "charset.h".
20281 (syntax_parent_lookup): Delete.
20282 (Fmodify_syntax_entry): Accept a cons as CHAR.
20283 (skip_chars): Adjust for the new multibyte form.
20284 (init_syntax_once): Call char_table_set_range instead of directly
20285 accessing the structure of a char table.
20286
20287 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20288 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20289 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20290 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20291
20292 * term.c: Include "buffer.h" and "character.h".
20293 (encode_terminal_code, write_glyphs): Adjust for the new
20294 code-conversion API.
20295 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20296
20297 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20298
20299 * xdisp.c: Include "character.h".
20300 (get_next_display_element): Adjust for the new multibyte form.
20301 (disp_char_vector): Adjust for the new char table structure.
20302 (decode_mode_spec_coding): Adjust for the new structure of
20303 coding system.
20304 (decode_mode_spec): Adjust for the new code-conversion API.
20305
20306 * xfaces.c: Include "character.h" instead of "charset.h".
20307 (load_face_font): Adjust for the change of choose_face_font and
20308 FS_LOAD_FONT.
20309 (generate_ascii_font): New function.
20310 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20311 (set_font_frame_param): Adjust for the change of choose_face_font.
20312 (free_realized_face): Make it public.
20313 (free_realized_faces_for_fontset): Rename from
20314 free_realized_multibyte_face. Free also faces realized for ASCII.
20315 (choose_face_font): Change arguments. Adjust for the change of
20316 fontset_font_pattern and FS_LOAD_FONT.
20317
20318 * xfns.c: Include "character.h".
20319 (x_encode_text): Adjust for the new code-conversion API.
20320
20321 * xselect.c: Don't include "charset.h".
20322 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20323
20324 * xterm.c: Include "character.h".
20325 (x_encode_char): New argument CHARSET. Change caller.
20326 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20327 Call ENCODE_CHAR instead of SPLIT_CHAR.
20328 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20329 CHAR_WIDTH instead of CHARSET_WIDTH.
20330 (XTread_socket): Adjust for the new code-conversion API.
20331 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20332 (x_load_font): Adjust for the change of struct font.
20333
203342008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20335
20336 * xfaces.c (face_at_buffer_position): Remove unused vars.
20337
203382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20339
20340 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20341 Fix overflow checking.
20342
203432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20344
20345 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20346 Cancel previous change.
20347
203482008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20349
20350 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20351 ccl->eight_bit_control. Fix check for buffer overflow.
20352 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20353 (ccl_driver): Initialize extra_bytes to 0.
20354
203552008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20356
20357 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20358 return it ORed with ctrl_modifier.
20359
203602008-01-29 Miles Bader <miles@gnu.org>
20361
20362 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20363
203642008-01-28 Jason Rumney <jasonr@gnu.org>
20365
20366 * w32.c (stat): Don't double check for networked drive.
20367
203682008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20369
20370 * window.c (run_window_configuration_change_hook): New function.
20371 Code extracted from set_window_buffer. Set the selected frame.
20372 (set_window_buffer): Use it.
20373 * window.h (run_window_configuration_change_hook): Declare.
20374 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20375
20376 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20377
203782008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20379
20380 * Makefile.in: Remove references to unused macros.
20381
203822008-01-26 Eli Zaretskii <eliz@gnu.org>
20383
20384 * w32.c (g_b_init_get_sid_sub_authority)
20385 (g_b_init_get_sid_sub_authority_count): New static variables.
20386 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20387 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20388 (init_user_info): Use them to retrieve uid and gid.
20389 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20390 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20391 st_uid and st_gid of the file.
20392
203932008-01-26 Jason Rumney <jasonr@gnu.org>
20394
20395 * w32.c (logon_network_drive): New function.
20396 (stat): Use it.
20397
203982008-01-26 Chong Yidong <cyd@stupidchicken.com>
20399
20400 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20401 invisible text covered with an ellipsis.
20402
204032008-01-25 Richard Stallman <rms@gnu.org>
20404
20405 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20406 jump back to beginning. Move some other initializations after that.
20407 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20408 New variables.
20409 (syms_of_xdisp): Init them.
20410
20411 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20412
20413 * buffer.c (reset_buffer_local_variables):
20414 Implement `permanent-local-hook'.
20415 (Qpermanent_local_hook): New variable.
20416 (syms_of_buffer): Init and staticpro it.
20417
204182008-01-25 Michael Albinus <michael.albinus@gmx.de>
20419
20420 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20421
204222008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20423
20424 * fns.c (Fclrhash): Return TABLE.
20425
204262008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20427
20428 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20429 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20430 is set even without positional changes.
20431 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20432
20433 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20434
204352008-01-23 Jason Rumney <jasonr@gnu.org>
20436
20437 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20438
20439 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20440 the unicode range available in MULE by locale-coding-system.
20441 Improve dbcs lead byte detection. Set event timestamp and modifiers
20442 earlier.
20443
204442008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20445
20446 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20447 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20448 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20449 when used on child processes.
20450
204512008-01-21 Michael Albinus <michael.albinus@gmx.de>
20452
20453 * dbusbind.c (Fdbus_method_return_internal): Rename from
20454 Fdbus_method_return.
20455 (Fdbus_unregister_object): Move to dbus.el.
20456 (Fdbus_call_method, Fdbus_method_return_internal)
20457 (Fdbus_send_signal): Improve debug messages.
20458
204592008-01-20 Martin Rudalics <rudalics@gmx.at>
20460
20461 * undo.c (undo_inhibit_record_point): New variable.
20462 (syms_of_undo): Initialize it.
20463 (record_point): Don't record point when undo_inhibit_record_point
20464 is set.
20465
204662008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20467
20468 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20469
20470 * xdisp.c (Qauto_hscroll_mode): New var.
20471 (syms_of_xdisp): Initialize it.
20472 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20473 window's buffer.
20474 (hscroll_windows): Don't check automatic_hscrolling_p here.
20475
20476 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20477 vscroll if we're setting window-buffer to the value it already has.
20478
204792008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20480
20481 * m/intel386.h: Remove references to XENIX.
20482
204832008-01-17 Andreas Schwab <schwab@suse.de>
20484
20485 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20486 instead of HAVE_X86_64_LIB64_DIR.
20487 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20488
204892008-01-17 Glenn Morris <rgm@gnu.org>
20490
20491 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20492 to HAVE_X86_64_LIB64_DIR.
20493
204942008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20495
20496 * s/irix3-3.h:
20497 * s/irix4-0.h:
20498 * s/386-ix.h:
20499 * s/domain.h:
20500 * s/hpux9-x11r4.h:
20501 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20502
20503 * sysdep.c: Remove code containing references to symbols defined
20504 by unsupported systems.
20505
205062008-01-16 Glenn Morris <rgm@gnu.org>
20507
20508 * coding.c (select-safe-coding-system-function): Doc fix.
20509
205102008-01-15 Glenn Morris <rgm@gnu.org>
20511
20512 * config.in: Revert 2008-01-13 change: this is a generated file.
20513
205142008-01-13 Tom Tromey <tromey@redhat.com>
20515
20516 * lisp.h: Fix typo.
20517
205182008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20519
20520 * m/sequent-ptx.h:
20521 * m/sequent.h:
20522 * s/ptx.h:
20523 * s/ptx4-2.h:
20524 * s/ptx4.h: Remove files for systems no longer supported.
20525
20526 * callproc.c (Fcall_process): Fix previous change.
20527
205282008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20529
20530 * unexsunos4.c: Remove file, system not supported anymore.
20531
20532 * m/mips.h:
20533 * m/intel386.h:
20534 * callproc.c:
20535 * config.in:
20536 * ecrt0.c:
20537 * emacs.c:
20538 * fileio.c:
20539 * frame.c:
20540 * getpagesize.h:
20541 * keyboard.c:
20542 * lread.c:
20543 * process.c:
20544 * puresize.h:
20545 * sysdep.c:
20546 * systty.h:
20547 * syswait.h:
20548 * unexec.c:
20549 * xdisp.c:
20550 * alloc.c: Remove code containing references to symbols defined by
20551 unsupported systems.
20552
205532008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20554
20555 * coding.c (detect_coding_mask): Fix previous change.
20556
205572008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20558
20559 * coding.c (detect_coding_iso2022): New arg
20560 latin_extra_code_state. Allow Latin extra codes only
20561 when *latin_extra_code_state is nonzero.
20562 (detect_coding_mask): If there is a NULL byte, detect the encoding
20563 as UTF-16 or binary. If Latin extra codes exist, detect the
20564 encoding as ISO-2022 only when there's no other proper encoding is
20565 found.
20566
205672008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20568
20569 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20570 #ifdef MAC_OS.
20571
205722008-01-08 Richard Stallman <rms@gnu.org>
20573
20574 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20575
205762008-01-06 Nick Roberts <nickrob@snap.net.nz>
20577
20578 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20579 menu bar in parentheses.
20580
205812008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20582
20583 * m/7300.h:
20584 * m/acorn.h:
20585 * m/alliant-2800.h:
20586 * m/alliant.h:
20587 * m/alliant1.h:
20588 * m/alliant4.h:
20589 * m/altos.h:
20590 * m/amdahl.h:
20591 * m/apollo.h:
20592 * m/att3b.h:
20593 * m/aviion-intel.h:
20594 * m/aviion.h:
20595 * m/celerity.h:
20596 * m/clipper.h:
20597 * m/cnvrgnt.h:
20598 * m/convex.h:
20599 * m/cydra5.h:
20600 * m/delta88k.h:
20601 * m/dpx2.h:
20602 * m/dual.h:
20603 * m/elxsi.h:
20604 * m/f301.h:
20605 * m/gould-np1.h:
20606 * m/gould.h:
20607 * m/i860.h:
20608 * m/ibmps2-aix.h:
20609 * m/ibmrt-aix.h:
20610 * m/ibmrt.h:
20611 * m/irist.h:
20612 * m/is386.h:
20613 * m/isi-ov.h:
20614 * m/mega68.h:
20615 * m/mg1.h:
20616 * m/news-r6.h:
20617 * m/news-risc.h:
20618 * m/news.h:
20619 * m/nh3000.h:
20620 * m/nh4000.h:
20621 * m/ns16000.h:
20622 * m/ns32000.h:
20623 * m/nu.h:
20624 * m/orion.h:
20625 * m/orion105.h:
20626 * m/paragon.h:
20627 * m/pfa50.h:
20628 * m/plexus.h:
20629 * m/pyramid.h:
20630 * m/pyrmips.h:
20631 * m/sh3el.h:
20632 * m/sps7.h:
20633 * m/sr2k.h:
20634 * m/stride.h:
20635 * m/sun1.h:
20636 * m/sun2.h:
20637 * m/sun3-68881.h:
20638 * m/sun3-fpa.h:
20639 * m/sun3-soft.h:
20640 * m/sun3.h:
20641 * m/sun386.h:
20642 * m/symmetry.h:
20643 * m/tad68k.h:
20644 * m/tahoe.h:
20645 * m/targon31.h:
20646 * m/tek4300.h:
20647 * m/tekxd88.h:
20648 * m/tower32.h:
20649 * m/tower32v3.h:
20650 * m/ustation.h:
20651 * m/wicat.h:
20652 * m/xps100.h:
20653 * s/cxux.h:
20654 * s/cxux7.h:
20655 * s/dgux.h:
20656 * s/dgux4.h:
20657 * s/dgux5-4-3.h:
20658 * s/dgux5-4r2.h:
20659 * s/esix.h:
20660 * s/esix5r4.h:
20661 * s/hiuxmpp.h:
20662 * s/hiuxwe2.h:
20663 * s/iris3-5.h:
20664 * s/iris3-6.h:
20665 * s/isc2-2.h:
20666 * s/isc3-0.h:
20667 * s/isc4-0.h:
20668 * s/isc4-1.h:
20669 * s/newsos5.h:
20670 * s/newsos6.h:
20671 * s/osf1.h:
20672 * s/osf5-0.h:
20673 * s/riscix1-1.h:
20674 * s/riscix12.h:
20675 * s/sco4.h:
20676 * s/sco5.h:
20677 * s/sunos4-0.h:
20678 * s/sunos4-1.h:
20679 * s/sunos413.h:
20680 * s/sunos4shr.h:
20681 * s/umax.h:
20682 * s/unipl5-2.h:
20683 * s/xenix.h:
20684 * cxux-crt0.s:
20685 * unexapollo.c:
20686 * unexconvex.c:
20687 * unexenix.c:
20688 * unexsni.c: Remove files for systems no longer supported.
20689
20690 * m/intel386.h: Remove references to unsupported systems.
20691
20692 * w32.c (get_emacs_configuration): Remove reference to i860.
20693
20694 * sysdep.c: Remove dead code.
20695
206962008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20697
20698 * s/rtu.h:
20699 * m/masscomp.h: Remove files. Platform is obsolete.
20700
207012008-01-04 Michael Albinus <michael.albinus@gmx.de>
20702
20703 * dbusbind.c (Fdbus_method_return): New function.
20704 (xd_read_message): Add the serial number to the event.
20705 (Fdbus_register_method): Activate the function.
20706
207072008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20708
20709 * keyboard.c (read_key_sequence): Fix typo.
20710
207112008-01-03 Michael Albinus <michael.albinus@gmx.de>
20712
20713 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20714 (xd_signature, xd_append_arg): Handle element type detection for
20715 empty arrays.
20716 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20717 SDATA () calls; this must be solved more general.
20718 (Fdbus_register_signal): Use SBYTES instead of strlen.
20719
207202008-01-03 Magnus Henoch <magnus@zemdatav>
20721
20722 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20723 unsigned int for byte values (necessary for big-endian platform).
20724 (Fdbus_call_method): Handle the case of no returned arguments.
20725
207262007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20727
20728 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20729
207302007-12-31 Magnus Henoch <mange@freemail.hu>
20731
20732 * dbusbind.c (xd_signature): Signature of variant is just "v".
20733
207342007-12-30 Michael Albinus <michael.albinus@gmx.de>
20735
20736 * dbusbind.c: Fix several errors and compiler warnings.
20737 Reported by Tom Tromey <tromey@redhat.com>.
20738 (XD_ERROR, XD_DEBUG_MESSAGE)
20739 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20740 (xd_append_arg): Part for basic D-Bus types rewritten.
20741 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20742 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20743 appropriate.
20744 (xd_read_message): Return Qnil. Don't signal an error; it is not
20745 useful during event reading.
20746 (Fdbus_register_signal): Signal an error if the check for
20747 FUNCTIONP fails.
20748 (Fdbus_register_method): New function. The implementation is not
20749 complete, the call of the function signals an error therefore.
20750 (Fdbus_unregister_object): New function, renamed from
20751 Fdbus_unregister_signal. The initial check signals an error, if
20752 the object is not well formed.
20753
207542007-12-30 Richard Stallman <rms@gnu.org>
20755
20756 * textprop.c (get_char_property_and_overlay):
20757 Signal error if POSITION is out of range in a buffer.
20758
207592007-12-29 Martin Rudalics <rudalics@gmx.at>
20760
20761 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20762 because the original parameters are in pure storage now.
20763
207642007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20765
20766 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20767
207682007-12-22 Eli Zaretskii <eliz@gnu.org>
20769
20770 * callint.c (syms_of_callint) <command-history>: Add reference to
20771 history-length in the doc string.
20772
207732007-12-17 Jason Rumney <jasonr@gnu.org>
20774
20775 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20776 before passing as wParam.
20777
207782007-12-22 Michael Albinus <michael.albinus@gmx.de>
20779
20780 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20781 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20782 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20783 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20784 as number.
20785 (Fdbus_call_method): Fix docstring.
20786
207872007-12-21 Michael Albinus <michael.albinus@gmx.de>
20788
20789 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20790 New macros.
20791 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20792 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20793 Simplify.
20794 (xd_signature): New function.
20795 (xd_append_arg): Compute also signatures. Major rewrite.
20796 (xd_retrieve_arg): Make debug messages friendly.
20797 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20798 Check for signatures of arguments.
20799
208002007-12-19 Michael Albinus <michael.albinus@gmx.de>
20801
20802 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20803 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20804 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20805 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20806 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20807 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20808 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20809 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20810 (xd_retrieve_value): Remove. Functionality included in ...
20811 (xd_append_arg): New function.
20812 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20813
208142007-12-16 Michael Albinus <michael.albinus@gmx.de>
20815
20816 * dbusbind.c (top): Include <stdio.h>.
20817 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20818 dbus_message_new_method_call and dbus_message_new_signal.
20819 (Fdbus_register_signal): Rename unique_name to uname.
20820 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20821 non-existing unique name. Fix typos in matching rule. Return an
20822 object which is useful in Fdbus_unregister_signal.
20823 (Fdbus_unregister_signal): Reimplementation, in order to remove
20824 only the corresponding entry.
20825 (Vdbus_registered_functions_table): Change the order of entries.
20826 Apply these changes in xd_read_message and Fdbus_register_signal.
20827
208282007-12-16 Andreas Schwab <schwab@suse.de>
20829
20830 * fileio.c (Finsert_file_contents): Fix overflow check to not
20831 depend on undefined integer overflow.
20832
208332007-12-14 Jason Rumney <jasonr@gnu.org>
20834
20835 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20836 for characters above 127.
20837
208382007-12-13 Jason Rumney <jasonr@gnu.org>
20839
20840 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20841 before dereferencing array.
20842 (lookup_vk_code): Remove zero comparison.
20843
208442007-12-14 Michael Albinus <michael.albinus@gmx.de>
20845
20846 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20847 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20848 Use `unsigned int' instead of `uint'.
20849 (xd_read_message, Fdbus_register_signal): Split expressions into
20850 multiple lines before operators "&&" and "||", according to the
20851 GNU Coding Standards.
20852
208532007-12-14 Eli Zaretskii <eliz@gnu.org>
20854
20855 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20856
208572007-12-12 Juri Linkov <juri@jurta.org>
20858
20859 * buffer.c (Frename_buffer): In interactive spec replace
20860 `read-buffer' with `read-string' that uses `buffer-name-history'
20861 as history, and the current buffer's name as default.
20862
208632007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20864
20865 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20866 manipulating the backtrace manually.
20867 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20868 (struct backtrace, backtrace_list): Remove.
20869 (command_loop_1): Remove dead var `no_direct'.
20870
20871 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20872 preserve non-built-in buffer-local variables.
20873 (Fkill_all_local_variables): Don't re-create&re-set permanent
20874 buffer-local variables.
20875
208762007-12-09 Juri Linkov <juri@jurta.org>
20877
20878 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20879 Lisp code that uses `read-buffer' with current buffer as default.
20880
208812007-12-08 Michael Albinus <michael.albinus@gmx.de>
20882
20883 * dbusbind.c (xd_read_message): Generate an event for every
20884 registered handler. There might be several handlers registered
20885 for the same signal.
20886 (Fdbus_register_signal): Don't overwrite a registration for the
20887 same signal. Add a new registration if handlers are different.
20888 (Vdbus_registered_functions_table): Rework doc string.
20889
208902007-12-07 Michael Albinus <michael.albinus@gmx.de>
20891
20892 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20893 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20894 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20895 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20896 Unify argument lists.
20897 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20898 arguments and hash table keys. Use unique name for service.
20899 (Fdbus_unregister_signal): Remove checks.
20900 (Vdbus_registered_functions_table): Fix doc string.
20901
209022007-12-05 Magnus Henoch <mange@freemail.hu>
20903
20904 * process.c (make_process): Initialize pty_flag to 0.
20905
209062007-12-05 Jason Rumney <jasonr@gnu.org>
20907
20908 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20909 specified XBMs.
20910
209112007-12-05 Richard Stallman <rms@gnu.org>
20912
20913 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20914
209152007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20916
20917 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20918 New variable.
20919 (mac_try_close_socket) [MAC_OSX]: New function.
20920 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20921 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20922
20923 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20924 Use mac_try_close_socket.
20925
209262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20927
20928 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20929 reloc_base.
20930 (copy_dysymtab): Compute relocation base here.
20931 (rebase_reloc_address) [__ppc64__]: New function.
20932 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20933 changed.
20934
209352007-12-05 Jason Rumney <jasonr@gnu.org>
20936
20937 * w32proc.c (sys_spawnve): Quote args with wildcards.
20938
209392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20940
20941 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20942 __objc_* sections.
20943 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20944
209452007-12-05 Michael Albinus <michael.albinus@gmx.de>
20946
20947 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20948 Move check for Vdbus_registered_functions_table to
20949 xd_read_queued_messages.
20950 (xd_read_queued_messages): Protect xd_read_message calls by
20951 internal_condition_case_1.
20952
209532007-12-04 Michael Albinus <michael.albinus@gmx.de>
20954
20955 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20956 Qdbus_system_bus and Qdbus_session_bus, respectively.
20957 (Vdbus_intern_symbols): Remove.
20958 (Vdbus_registered_functions_table): New hash table.
20959 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20960 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20961 Rewrite in order to manage registered functions by hash table
20962 Vdbus_registered_functions_table.
20963
209642007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20965
20966 * xterm.c: Update URL to Window Manager Specification in comment.
20967
209682007-12-02 Michael Albinus <michael.albinus@gmx.de>
20969
20970 * config.in (HAVE_DBUS): Add.
20971
20972 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20973 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20974 (obj): Add $(DBUS_OBJ).
20975 (LIBES): Add $(DBUS_LIBS).
20976 (dbusbind.o): New target.
20977
20978 * dbusbind.c: New file.
20979
20980 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20981
20982 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20983 (Qdbus_event): New Lisp symbol.
20984 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20985 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20986 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20987
20988 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20989
209902007-12-01 Richard Stallman <rms@gnu.org>
20991
20992 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20993
209942007-11-30 Jason Rumney <jasonr@gnu.org>
20995
20996 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20997 (w32con_reset_terminal_modes): Clear screen buffer.
20998 (w32_face_attributes): Don't use color indexes that are out of range.
20999 Only reverse the default colors.
21000
21001 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21002 WINDOWSNT.
21003
21004 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21005
210062007-11-29 Jason Rumney <jasonr@gnu.org>
21007
21008 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21009 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21010 if the terminal colors are initialized.
21011 (unspecified_fg, unspecified_bg): Remove unused declarations.
21012
210132007-11-29 Andreas Schwab <schwab@suse.de>
21014
21015 * keyboard.c (apply_modifiers): Fix typo.
21016
210172007-11-29 Richard Stallman <rms@gnu.org>
21018
21019 * keymap.c (Fcurrent_local_map): Doc fix.
21020
210212007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21022
21023 * s/gnu-kfreebsd.h: New file.
21024
210252007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21026
21027 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21028 Don't cast redundantly.
21029
21030 * keyboard.c (KEY_TO_CHAR): New macro.
21031 (parse_modifiers, apply_modifiers): Accept integer arguments.
21032 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21033 for chars and symbol keys.
21034 After doing such remapping, apply function-key-map again.
21035
210362007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21037
21038 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21039 compiled anymore.
21040
210412007-11-26 Andreas Schwab <schwab@suse.de>
21042
21043 * process.c (list_processes_1): Fix indentation level of the
21044 command column.
21045
210462007-11-23 Andreas Schwab <schwab@suse.de>
21047
21048 * editfns.c (Fformat): Handle %c specially since it requires the
21049 argument to be of type int.
21050
210512007-11-23 Markus Triska <markus.triska@gmx.at>
21052
21053 * emacs.c (main): Call init_editfns before init_process, since
21054 init_process sets Vprocess_connection_type depending on OS release.
21055
210562007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21057
21058 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21059 (find_symbol_value): Use do_symval_forwarding.
21060
21061 * data.c (set_internal): Set the value in the `cons-cell' (for
21062 Buffer_Local_values) not only for frame-local variables.
21063
210642007-11-22 Andreas Schwab <schwab@suse.de>
21065
21066 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21067 values to sprintf.
21068 * keymap.c (Fsingle_key_description): Likewise.
21069 * print.c (print_object): Likewise.
21070
210712007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21072
21073 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21074 file for image is nil.
21075
210762007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21077
21078 * term.c: Include stdarg.h.
21079 (fatal): Implement using varargs.
21080 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21081
210822007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21083
21084 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21085 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21086 Update call to buffer_slot_type_mismatch.
21087 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21088 (buffer_slot_type_mismatch): Update.
21089 * buffer.c (buffer_local_types): Remove.
21090 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21091 (defvar_per_buffer): Set the type in the buffer_objfwd.
21092
210932007-11-21 Jason Rumney <jasonr@gnu.org>
21094
21095 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21096 CreateFileMapping returns NULL on failure.
21097
210982007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21099
21100 * search.c (Fset_match_data): Remove the `evaporate' feature.
21101 (unwind_set_match_data): Don't use the `evaporate' feature.
21102
211032007-11-21 Jason Rumney <jasonr@gnu.org>
21104
21105 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21106
21107 * w32console.c (w32con_write_glyphs): Remove unused variables.
21108
211092007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21110
21111 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21112
21113 * s/darwin.h (MULTI_KBOARD): Remove.
21114
21115 * macfns.c (x_create_tip_frame, Fx_create_frame)
21116 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21117
211182007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21119
21120 * buffer.c (Fbuffer_local_value): Remove redundant test.
21121 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21122 than in `current-buffer' to match the comment.
21123 Do the swap using swap_in_global_binding.
21124
21125 * data.c (store_symval_forwarding, set_internal):
21126 * eval.c (specbind): Remove dead code.
21127
21128 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21129 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21130 Since we do not want to see internal Lisp_*fwd objects here.
21131
211322007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21133
21134 * sysdep.c (init_system_name): Use getaddrinfo if available.
21135
21136 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21137 (x_scroll_bar_note_movement): start, end, with, height in struct
21138 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21139
211402007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21141
21142 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21143
211442007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21145
21146 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21147 This undoes Richard's change of 14-Oct-2002.
21148
21149 * alloc.c (allocate_other_vector):
21150 * lisp.h (allocate_other_vector): Remove.
21151
21152 * window.c (struct save_window_data): Move non-lisp data to the end
21153 and make it `int' rather than Lisp_Object.
21154 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21155 Done wrap/unwrap integer values.
21156 (Fset_window_configuration, compare_window_configurations):
21157 Update use of fields to their new types.
21158
21159 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21160 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21161 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21162 (SET_SCROLL_BAR_X_WINDOW): Remove.
21163 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21164 Access the new x_window field directly.
21165 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21166 Don't wrap/unwrap integers into Lisp_Objects.
21167 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21168 (x_scroll_bar_report_motion):
21169 Don't wrap/unwrap integers into Lisp_Objects.
21170 (x_term_init): Use SDATA.
21171 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21172 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21173 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21174 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21175 * xfns.c (x_set_background_color):
21176 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21177 Access the new x_window field directly.
21178
21179 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21180 (allocate_pseudovector): Make non-static.
21181
21182 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21183 (allocate_pseudovector): Declare.
21184 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21185
211862007-11-15 Andreas Schwab <schwab@suse.de>
21187
21188 * editfns.c (Fformat): Correctly format EMACS_INT values.
21189 Also take precision into account when formatting an integer.
21190
21191 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21192
211932007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21194
21195 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21196 (syms_of_keyboard): Defsubr it.
21197
21198 * data.c (swap_in_global_binding): Fix longstanding bug where
21199 store_symval_forwarding was not called with the right second argument,
21200 thus causing objfwd-ing from being dropped.
21201
212022007-11-14 Juanma Barranquero <lekktu@gmail.com>
21203
21204 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21205 (Fx_display_pixel_height, Fx_display_planes)
21206 (Fx_display_color_cells, Fx_server_max_request_size)
21207 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21208 (Fx_display_visual_class, Fx_display_save_under):
21209 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21210 (Fx_display_pixel_height, Fx_display_planes)
21211 (Fx_display_color_cells, Fx_server_max_request_size)
21212 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21213 (Fx_display_mm_height, Fx_display_mm_width)
21214 (Fx_display_backing_store, Fx_display_visual_class)
21215 (Fw32_select_font, Fx_display_save_under):
21216 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21217 (Fx_display_pixel_height, Fx_display_planes)
21218 (Fx_display_color_cells, Fx_server_max_request_size)
21219 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21220 (Fx_display_save_under): Fix typos in docstrings.
21221
212222007-11-14 Juanma Barranquero <lekktu@gmail.com>
21223
21224 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21225 corresponding to deleted entries; they are an implementation detail.
21226 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21227 Remove variables.
21228 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21229 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21230 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21231 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21232 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21233 (Fw32_define_rgb_color, Fw32_load_color_file)
21234 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21235 Fix typos in docstrings.
21236 (Fx_server_version): Reflow docstring.
21237 (Fw32_shell_execute): Doc fixes.
21238
212392007-11-13 Juanma Barranquero <lekktu@gmail.com>
21240
21241 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21242 if w32_parse_hot_key returned nil.
21243
212442007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21245
21246 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21247
212482007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21249
aac0c6e3
MR
21250 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21251
21252 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21253
21254 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21255 Remove W32_SCROLL_BAR_CLICK_EVENT.
21256
21257 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21258 Add MULTIMEDIA_KEY_EVENT.
21259
21260 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21261 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21262 (make_lispy_event) [WINDOWSNT]: Use it to translate
21263 MULTIMEDIA_KEY_EVENT.
21264
21265 * w32term.h (WM_APPCOMMAND): Define if not already.
21266 (GET_APPCOMMAND_LPARAM): Likewise.
21267
21268 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21269 WM_APPCOMMAND.
21270
21271 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21272 (syms_of_w32fns): Export and initialize it.
21273 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21274
212752007-11-09 Chong Yidong <cyd@stupidchicken.com>
21276
21277 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21278 twice.
21279
21280 * xdisp.c (handle_face_prop): Fix last change.
21281
212822007-11-09 Richard Stallman <rms@gnu.org>
21283
21284 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21285 not just for after-strings and before-strings.
21286 Call face_for_overlay_string and pass the overlay to it.
21287 (handle_display_prop): Determine whether property came from an overlay.
21288 Pass OVERLAY arg to handle_single_display_spec.
21289 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21290 (load_overlay_strings): Fill in it->string_overlays.
21291 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21292
21293 * xfaces.c (face_for_overlay_string): Function renamed from
21294 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21295
21296 * dispextern.h (struct it): New elt string_overlays.
21297 New elt from_overlay, also in stack.
21298 Rearrange a few elements.
21299 (face_for_overlay_string): Decl renamed from
21300 face_at_buffer_position_no_overlays, and add argument.
21301
213022007-11-09 Richard Stallman <rms@gnu.org>
21303
21304 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21305 to get the base face for an overlay string.
21306
21307 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21308
21309 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21310
21311 * xdisp.c (handle_stop): Move some code out of loop.
21312
213132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21314
21315 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21316 Fix conversion from Lisp object to ATSUFontID.
21317
213182007-11-09 Jason Rumney <jasonr@gnu.org>
21319
21320 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21321
213222007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21323
21324 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21325 Don't assume regions are aligned to page boundary.
21326 (print_load_command_name): Add LC_UUID if defined.
21327
213282007-11-09 Richard Stallman <rms@gnu.org>
21329
21330 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21331
213322007-11-07 Jason Rumney <jasonr@gnu.org>
21333
21334 * s/windows95.h: Remove.
21335
213362007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21337
21338 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21339 abort with a message on unhandled store_type values.
21340
213412007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21342
21343 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21344 Remove HAVE_X11R5 and HAVE_X11R4.
21345
213462007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21347
21348 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21349
213502007-11-01 Johan Bockgård <bojohan@gnu.org>
21351
21352 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21353 Don't set s->stippled_p here, since it has already been set by
21354 x_set_glyph_string_gc from x_draw_glyph_string.
21355
213562007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21357
21358 * sunfns.c: Remove file.
21359
21360 * m/sun386.h:
21361 * m/sun2.h:
21362 * m/sparc.h: Remove Sun windows code.
21363
213642007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21365
21366 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21367 (init_keyboard): Set current_kboard's window-system to nil.
21368 (tty_read_avail_input): Typo.
21369 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21370
213712007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21372
21373 * s/usg5-4.h:
21374 * s/usg5-3.h:
21375 * s/ptx.h:
21376 * m/is386.h:
21377 * m/ibmps2-aix.h:
21378 * Makefile.in: Remove all mentions of X10.
21379
21380 * dispnew.c (syms_of_display): Don't mention version 10.
21381
213822007-10-28 Juanma Barranquero <lekktu@gmail.com>
21383
21384 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21385 ($(BLD)/abbrev.$(O)): Remove.
21386
213872007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21388
21389 Rewrite abbrev.c in Elisp.
21390 * image.c (Qcount): Don't declare as extern.
21391 (syms_of_image): Initialize and staticpro `Qcount'.
21392 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21393 * emacs.c (main): Don't call syms_of_abbrev.
21394 * Makefile.in (obj): Remove abbrev.o.
21395 (abbrev.o): Remove.
21396 * abbrev.c: Remove.
21397
213982007-10-26 Martin Rudalics <rudalics@gmx.at>
21399
21400 * window.c (window_min_size_2): Don't count header-line.
21401
214022007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21403
21404 * frame.h (struct frame): Move all bit fields after the first bit
21405 field to take advantage of the available space. Group all the
21406 chars together to reduce wasted space due to padding.
21407
214082007-10-26 Juanma Barranquero <lekktu@gmail.com>
21409
21410 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21411
21412 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21413 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21414 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21415 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21416 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21417 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21418 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21419 (last_marked, mark_object_loop_halt): Make static.
21420
21421 * frame.c (syms_of_frame) <delete-frame-functions>:
21422 Fix typo in docstring.
21423
214242007-10-25 Juanma Barranquero <lekktu@gmail.com>
21425
21426 * w32.c (init_environment): Fix tiny memory leak.
21427 (w32_get_resource): Remove unused variable `ok'.
21428
214292007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21430
21431 Make `window-system' into a keyboard-local variable (rather than
21432 frame-local as done originally by multi-tty).
21433
21434 * keyboard.h (struct kboard): Add Vwindow_system.
21435 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21436 (mark_kboards): Mark Vwindow_system.
21437
21438 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21439 (init_display): Don't set the obsolete `window-system' frame-param.
21440
21441 * xterm.c (x_term_init):
21442 * w32term.c (w32_create_terminal):
21443 * term.c (init_tty): Set Vwindow_system.
21444 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21445 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21446
21447 * xfns.c (Fx_create_frame, x_create_tip_frame):
21448 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21449 * macfns.c (Fx_create_frame):
21450 Don't set the obsolete `window-system' frame-param.
21451
21452 * frame.h (Qwindow_system): Remove.
21453 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21454 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21455
214562007-10-24 Richard Stallman <rms@gnu.org>
21457
21458 * frame.c (x_figure_window_size): For fullscreen case,
21459 set USPosition | PPosition without clobbering rest of window_prompting.
21460
21461 * keyboard.c (Fcurrent_idle_time): Doc fix.
21462
21463 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21464
214652007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21466
21467 * process.c (unwind_request_sigio): Only define if __ultrix__.
21468
21469 * callproc.c (child_setup): Remove spurious *.
21470
21471 * lisp.h (Fget_text_property): Declare.
21472 (have_menus_p): Declare it here rather than in sys-dep header files.
21473 * macterm.h (have_menus_p):
21474 * msdos.h (have_menus_p):
21475 * xterm.h (have_menus_p): Remove.
21476
21477 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21478 (Fmake_variable_frame_local): Just check the variable's const-ness
21479 rather than checking nil or t.
21480
214812007-10-22 Jason Rumney <jasonr@gnu.org>
21482
21483 * w32fns.c: Include math.h.
21484 (w32_abort): Declaration moved to nt/config.nt.
21485
21486 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21487 (abort): Redefinition moved to nt/config.nt.
21488
21489 * m/windowsnt.h: Remove.
21490
214912007-10-22 Juanma Barranquero <lekktu@gmail.com>
21492
21493 * emacs.c (Fdump_emacs): Fix typo in message.
21494 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21495 <installation-directory>: Reflow docstring.
21496
214972007-10-22 Juri Linkov <juri@jurta.org>
21498
21499 * minibuf.c: Allow minibuffer default to be a list of default values.
21500 With empty input use the first element of this list as returned default.
21501 (string_to_object)
21502 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21503 (read_minibuf): If defalt is cons, set histstring to its car.
21504 (Fread_string): If default_value is cons, set val to its car.
21505 (Fread_buffer): If def is cons, use its car.
21506 (Fcompleting_read): If defalt is cons, set val to its car.
21507
215082007-10-21 Michael Albinus <michael.albinus@gmx.de>
21509
21510 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21511
215122007-10-20 Juanma Barranquero <lekktu@gmail.com>
21513
21514 * doc.c (Fdocumentation): Check for advice in all cases.
21515
215162007-10-19 Chong Yidong <cyd@stupidchicken.com>
21517
21518 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21519
215202007-10-19 Richard Stallman <rms@gnu.org>
21521
21522 * doc.c (Fdocumentation): Check for and handle an advised function.
21523
215242007-10-19 Juanma Barranquero <lekktu@gmail.com>
21525
21526 * process.c (Fset_process_filter): Doc fix.
21527
215282007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21529
21530 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21531 which caused key-translation-map to applied repeatedly (thus breaking
21532 double-mode).
21533
215342007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21535
21536 * xselect.c (x_own_selection, x_handle_selection_clear)
21537 (x_clear_frame_selections):
21538 * w32menu.c (list_of_panes, list_of_items):
21539 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21540 * textprop.c (validate_plist, interval_has_all_properties)
21541 (interval_has_some_properties, interval_has_some_properties_list)
21542 (add_properties, text_property_list):
21543 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21544 * minibuf.c (Fassoc_string):
21545 * macselect.c (x_own_selection, x_clear_frame_selections)
21546 (Fx_disown_selection_internal):
21547 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21548 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21549
215502007-10-17 Chong Yidong <cyd@stupidchicken.com>
21551
21552 * process.c: Link to libs for calling res_init() if available.
21553 (Fmake_network_process): Call res_init() before getaddrinfo or
21554 gethostbyname, if possible.
21555
215562007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21557
21558 * lread.c (read1): Set pvectype for char_tables.
21559
21560 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21561 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21562 Add type checks.
21563 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21564
21565 * alloc.c (free_misc): Use XMISCTYPE.
21566 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21567
215682007-10-17 Glenn Morris <rgm@gnu.org>
21569
21570 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21571 (syms_of_minibuf): Add Qcompletion_ignore_case.
21572 * dired.c (Qcompletion_ignore_case): Change to external.
21573 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21574 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21575 (Fread_file_name): Use it rather than intern'ing.
21576
21577 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21578 (Fread_coding_system): Ignore case of user input.
21579
215802007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21581
21582 * xdisp.c (handle_display_prop): Ignore display specs after
21583 replacing one when string text is being replaced.
21584 (handle_single_display_spec): Pretend as if characters with display
21585 property haven't been consumed only when buffer text is being replaced.
21586
215872007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21588
21589 * xfns.c (Fx_create_frame, Fx_display_list):
21590 * window.c (window_fixed_size_p, enlarge_window)
21591 (shrink_window_lowest_first):
21592 * macterm.c (init_font_name_table):
21593 * macfns.c (Fx_create_frame, Fx_display_list):
21594 * lread.c (close_load_descs):
21595 * keyboard.c (read_char_x_menu_prompt):
21596 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21597 * coding.c (code_convert_region_unwind): Test the type of an object
21598 rather than just !NILP before extracting data from it.
21599
21600 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21601
21602 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21603 (XMISCANY): New macro.
21604 (XMISCTYPE): Use it.
21605 (struct Lisp_Misc_Any): New type.
21606 (union Lisp_Misc): Use it.
21607 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21608 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21609 (find_symbol_value, set_internal, default_value, Fset_default)
21610 (Fmake_variable_buffer_local, Fmake_local_variable)
21611 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21612 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21613 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21614 * alloc.c (allocate_buffer): Set the size and tag.
21615 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21616 Use XMISCANY.
21617 (die): Follow the GNU convention for error messages.
21618 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21619 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21620 tag any more.
21621 (set_buffer_internal_1):
21622 * frame.c (store_frame_param):
21623 * eval.c (specbind):
21624 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21625
21626 * doc.c (Fsnarf_documentation): Simplify.
21627
216282007-10-14 Juanma Barranquero <lekktu@gmail.com>
21629
21630 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21631 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21632
216332007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21634
21635 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21636
216372007-10-14 Juanma Barranquero <lekktu@gmail.com>
21638
21639 * eval.c (do_autoload): Don't save autoloads.
21640
21641 * data.c (Ffset): Save autoload of the function being set.
21642
216432007-10-07 John Paul Wallington <jpw@pobox.com>
21644
21645 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21646 parameter before setting up faces.
21647
216482007-10-13 Eli Zaretskii <eliz@gnu.org>
21649
21650 * ccl.c (Fregister_code_conversion_map):
21651 * keyboard.c (append_tool_bar_item): Reformat last change.
21652
21653 * lisp.h (eabs): Rename from `abs'. All callers changed.
21654
216552007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21656
21657 * buffer.c (add_overlay_mod_hooklist):
21658 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21659 * fontset.c (make_fontset):
21660 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21661 (append_tool_bar_item):
21662 * macmenu.c (grow_menu_items):
21663 * w32menu.c (grow_menu_items):
21664 * xmenu.c (grow_menu_items): Use larger_vector.
21665
216662007-10-13 Eli Zaretskii <eliz@gnu.org>
21667
21668 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21669 selected frame'' on MSDOS).
21670
216712007-10-12 Martin Rudalics <rudalics@gmx.at>
21672
21673 * frame.c (Qexplicit_name): New variable.
21674 (x_report_frame_params): Report it in parameter alist.
21675 (syms_of_frame): Intern and staticpro it.
21676
216772007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21678
21679 * macfns.c (x_create_tip_frame): Set terminal for frame.
21680
216812007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21682
21683 * frame.c (Qenvironment): Remove.
21684 (syms_of_frame) <Qenvironment>: Don't initialize.
21685 (Fdelete_frame): Don't treat the `environment' param specially.
21686 * frame.h (Qenvironment): Don't declare.
21687 * callproc.c (set_initial_environment): Don't set unused frame param.
21688
21689 * frame.c (Fframe_with_environment): Remove.
21690 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21691
21692 * lisp.h (Fframe_with_environment): Don't declare.
21693
216942007-10-10 Juanma Barranquero <lekktu@gmail.com>
21695
21696 * indent.c (indent_tabs_mode, last_known_column)
21697 (last_known_column_modified): Make static.
21698 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21699
217002007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21701
21702 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21703
217042007-10-09 Jason Rumney <jasonr@gnu.org>
21705
21706 * w32term.c (x_set_window_size): Disable code that attempts to tell
21707 Lisp code about a size change before it actually happens.
21708
217092007-10-09 Richard Stallman <rms@gnu.org>
21710
21711 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21712 return HANDLED_RETURN.
21713
217142007-10-08 Martin Rudalics <rudalics@gmx.at>
21715
21716 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21717 when there's an unread command event.
21718
21719 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21720 window autoselection act appropriately when leaving selected frame.
21721 (syms_of_frame): Initialize focus_follows_mouse.
21722 * frame.h (focus_follows_mouse): Extern it.
21723 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21724 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21725 * msdos.c (dos_rawgetc): Likewise.
21726 * w32term.c (w32_read_socket): Likewise.
21727 * xterm.c (handle_one_xevent): Likewise.
21728 * xdisp.c (syms_of_xdisp): In doc-string of
21729 mouse-autoselect-window mention focus-follows-mouse.
21730
217312007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21732
21733 * macterm.c (mac_load_query_font): Fix missing return value.
21734 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21735 Add BLOCK_INPUT.
21736
217372007-10-08 Richard Stallman <rms@gnu.org>
21738
21739 * xdisp.c (get_window_cursor_type): Implement documented behavior
21740 for cursor-in-non-selected-windows = t.
21741
217422007-10-08 Jason Rumney <jasonr@gnu.org>
21743
21744 * w32.c (w32_get_resource): Always close registry keys.
21745
217462007-10-08 Jason Rumney <jasonr@gnu.org>
21747
21748 * makefile.w32-in (LIBS): Add COMCTL32.
21749
21750 * w32fns.c (globals_of_w32fns): Init common controls.
21751
217522007-10-08 Richard Stallman <rms@gnu.org>
21753
21754 * image.c (our_memory_buffer): Rename from omfib_buffer.
21755
217562007-10-08 Richard Stallman <rms@gnu.org>
21757
21758 * buffer.c (Foverlays_at): Doc fix.
21759
217602007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21761
21762 * fns.c (Fplist_put): Preserve uneven tail data.
21763
217642007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21765
21766 * termhooks.h (enum event_kind): Remove trailing comma.
21767
21768 * frame.h (enum): Remove trailing comma.
21769
217702007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21771
21772 * w32proc.c (delete_child): Don't terminate threads of zombies.
21773
217742007-10-08 Martin Rudalics <rudalics@gmx.at>
21775
21776 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21777
21778 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21779 last-repeatable-command.
21780 (init_kboard): Initialize Vlast_repeatable_command.
21781 (command_loop_1): Set it to real_this_command unless that was
21782 bound to an input event.
21783 (mark_kboards): Mark it.
21784
217852007-10-08 Richard Stallman <rms@gnu.org>
21786
21787 * eval.c (condition-case): Doc fix.
21788
217892007-10-08 Masatake YAMATO <jet@gyve.org>
21790
21791 * xfaces.c (tty_supports_face_attributes_p): Fix code
21792 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21793 was copied and not edited.
21794
217952007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21796
21797 Add new `input-decode-map' keymap and use it for terminal
21798 escape sequences.
21799 * keyboard.h (struct kboard): Add Vinput_decode_map.
21800 Remove Vlocal_key_translation_map.
21801 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21802 (init_kboard): Init input-decode-map.
21803 Replace local-key-translation-map back with key-translation-map.
21804 (syms_of_keyboard): Declare input-decode-map.
21805 Remove local-key-translation-map. Update docstrings.
21806 (mark_kboards): Mark Vinput_decode_map.
21807 Don't mark Vlocal_key_translation_map.
21808 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21809 Replace local-key-translation-map back with key-translation-map.
21810 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21811 Bind in input-decode-map rather than function-key-map.
21812
21813 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21814 This was made redundant by the previous introduction of XSETPVECTYPE.
21815
218162007-10-09 Richard Stallman <rms@gnu.org>
21817
21818 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21819
218202007-09-29 Richard Stallman <rms@gnu.org>
21821
21822 * eval.c (internal_condition_case_2, internal_condition_case_1)
21823 (internal_condition_case): Reenable abort if x_catching_errors ()
21824 to see if that really happens and why.
21825
218262007-10-06 Andreas Schwab <schwab@suse.de>
21827
21828 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21829
218302007-10-04 Juanma Barranquero <lekktu@gmail.com>
21831
21832 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21833
218342007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21835
21836 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21837
218382007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21839
21840 * window.h (struct window):
21841 * window.c (struct save_window_data, struct saved_window):
21842 * termhooks.h (struct terminal):
21843 * process.h (struct Lisp_Process):
21844 * frame.h (struct frame):
21845 * buffer.h (struct buffer):
21846 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21847 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21848 The size field of (pseudo)vectors is now unsigned.
21849 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21850
21851 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21852 Turn `count' into an integer.
21853
21854 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21855 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21856 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21857 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21858 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21859
21860 * alloc.c (allocate_pseudovector): New fun.
21861 (ALLOCATE_PSEUDOVECTOR): New macro.
21862 (allocate_window, allocate_terminal, allocate_frame)
21863 (allocate_process): Use it.
21864 (mark_vectorlike): New function.
21865 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21866 (mark_terminals): Use it.
21867 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21868 (Fmake_byte_code): Use XSETPVECTYPE.
21869
21870 * frame.c (Fframe_parameters): Minor simplification.
21871
21872 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21873
21874 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21875
21876 * buffer.c (Fget_buffer_create, init_buffer_once):
21877 * lread.c (defsubr):
21878 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21879
21880 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21881 defined differently in the m/*.h files.
21882 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21883 (XSETPVECTYPE): New macro.
21884 (XSETPSEUDOVECTOR): Use it.
21885
21886 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21887 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21888
21889 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21890 * lread.c (defvar_per_buffer):
21891 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21892
21893 * window.c (candidate_window_p): Only consider as visible frames that
21894 are on the same terminal.
21895
21896 * m/ibms390x.h (MARKBIT): Remove unused macro.
21897
218982007-10-01 Juanma Barranquero <lekktu@gmail.com>
21899
21900 * lread.c (Fload): Fix typo in docstring.
21901
219022007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21903
21904 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21905 of a non-zero value can't yield zero.
21906
219072007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21908
21909 * term.c (term_clear_mouse_face, term_mouse_highlight)
21910 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21911
21912 * print.c (safe_debug_print): Use XHASH.
21913
21914 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21915 Lisp elements such as tags.
21916 (XHASH): New macro.
21917 (EQ): Use it.
21918 (SREF, SSET, STRING_COPYIN): Use SDATA.
21919 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21920
21921 * alloc.c (mark_terminal): Remove left-over declaration.
21922 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21923 (allocate_vectorlike): Remove type argument. Adjust callers.
21924 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21925 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21926
21927 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21928 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21929 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21930 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21931 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21932 Use them.
21933
21934 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21935 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21936 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21937
219382007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21939
21940 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21941 loaded by default.
21942
219432007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21944
21945 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21946 on this tty.
21947 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21948
21949 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21950 Update all users.
21951 (handle_one_term_event): Use Gpm_DrawPointer.
21952 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21953 Signal errors instead of returning nil. Always return nil.
21954 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21955 Make it a noop if gpm-mouse was not activated.
21956 (syms_of_term): Update names.
21957
219582007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21959
21960 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21961 (init_sys_modes): Check that gpm_tty is the current tty.
21962
21963 * alloc.c (allocate_terminal): Set the vector size to only count the
21964 lisp fields. Initialize those to nil.
21965 (mark_object): Don't treat terminals specially.
21966 (mark_terminal): Remove.
21967 (mark_terminals): Use mark_object instead.
21968
21969 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21970 the GC to the beginning.
21971
21972 * indent.h:
21973 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21974
21975 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21976
219772007-09-25 Jason Rumney <jasonr@gnu.org>
21978
21979 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21980
21981 * w32console.c (create_w32cons_output): Remove.
21982
21983 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21984
21985 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21986 (reset_sys_modes): Use reset_terminal_modes_hook.
21987
219882007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21989
21990 * eval.c (do_autoload): Don't output any message.
21991
219922007-09-24 Juri Linkov <juri@jurta.org>
21993
21994 * emacs.c (standard_args): Change priority of "--no-splash"
21995 from 40 to 3. Add "--no-desktop" with the same priority.
21996
219972007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21998
21999 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22000 and optimize the case where they are all 1.
22001
220022007-09-23 Johannes Weiner <hannes@saeurebad.de>
22003
22004 * lisp.h (abs): Define if not defined.
22005 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22006 Don't define `abs', since it's defined in lisp.h.
22007
220082007-09-22 Eli Zaretskii <eliz@gnu.org>
22009
22010 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22011 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22012 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22013 (init_tty): Use DEV_TTY instead of "/dev/tty".
22014 [WINDOWSNT]: No need to protect from NAME arg being null.
22015
220162007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22017
22018 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22019 up the tty state.
22020
220212007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22022
22023 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22024 (gpm_tty): Change its type.
22025 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22026 (gpm_tty): Change its type and initialize it.
22027 (Fterm_open_connection): Check the frame is indeed a tty.
22028 Use the new gpm_tty.
22029 (Fterm_close_connection): Use the new gpm_tty.
22030 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22031 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22032
220332007-09-21 Juanma Barranquero <lekktu@gmail.com>
22034
22035 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22036 underline_color, to draw strike-through.
22037
220382007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22039
22040 * lisp.h (allocate_terminal): Declare.
22041
22042 * window.c (candidate_window_p): Consider frames that are being placed
22043 by the user as somewhere between visible and iconified.
22044 (window_loop): Prefer windows on the current frame.
22045 (Fselect_window): Move the use of select-frame to the beginning so we
22046 can just delegate all the work (it'll call us back anyway).
22047
22048 * frame.c (Qdisplay_environment_variable):
22049 * frame.h (Qdisplay_environment_variable): Delete.
22050
22051 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22052 of the first arg, since that value may be a union.
22053
22054 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22055 parameter rather than Qdisplay_environment_variable. If all else
22056 fails, look for DISPLAY in initial-environment.
22057
220582007-09-21 Glenn Morris <rgm@gnu.org>
22059
22060 * Makefile.in (emacstool): Remove target.
22061 (lisp, shortlisp): Remove termdev.elc.
22062
220632007-09-21 Markus Triska <markus.triska@gmx.at>
22064
22065 * xterm.c (x_delete_display): Compile session management conditionally.
22066
220672007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22068
22069 * callproc.c (getenv_internal_1): New function.
22070 (getenv_internal): Use it.
22071 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22072
22073 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22074 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22075 (Fset_terminal_parameter): Work with dead terminals as well.
22076 (Fmodify_terminal_parameters): Remove.
22077
22078 * terminal.c (get_terminal): Handle terminals.
22079 Make sure the terminal returned is live.
22080 (create_terminal): Use allocate_terminal.
22081 (mark_terminals): Move to alloc.c.
22082 (delete_terminal): Use terminal->name as liveness status.
22083 NULL out fields after freeing their contents.
22084 Don't deallocate the object.
22085 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22086 rather than an int.
22087 (Fterminal_live_p): Accept non-integer arguments.
22088 (Fterminal_list): Return terminal objects rather than an ints.
22089
22090 * alloc.c (enum mem_type): New member for `terminal' objects.
22091 (allocate_terminal): New function.
22092 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22093 Handle terminals.
22094 (mark_terminal): New fun.
22095 (mark_terminals): Move from terminal.c.
22096
22097 * term.c (get_tty_terminal): Don't treat output_initial specially.
22098 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22099 (delete_tty): Use terminal->name as liveness status.
22100
22101 * termhooks.h (struct terminal): Make it into a pseudovector.
22102 Remove `deleted' replaced by checking `name's nullness.
22103
22104 * print.c (print_object): Handle terminals.
22105
22106 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22107 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22108
22109 * frame.c (make_terminal_frame):
22110 * keyboard.c (tty_read_avail_input):
22111 * w32term.c (x_delete_terminal):
22112 * xfns.c (Fx_create_frame, x_create_tip_frame):
22113 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22114
221152007-09-20 Glenn Morris <rgm@gnu.org>
22116
22117 * process.c (Fmake_network_process): Doc fix.
22118
221192007-09-19 Jason Rumney <jasonr@gnu.org>
22120
22121 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22122
221232007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22124
22125 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22126 Fix a C warning regarding variable constness.
22127
22128 * xterm.c (handle_one_xevent): Fix a C warning.
22129
221302007-09-18 Jason Rumney <jasonr@gnu.org>
22131
22132 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22133
221342007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22135
22136 * gtkutil.c (gdpy_def): New variable.
22137 (xg_initialize): Initialize gdpy_def.
22138 (xg_display_close): If no other display exists, set gdpy_def to a
22139 new connection.
22140
221412007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22142
22143 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22144 when we have no file name for the icon.
22145 (xg_tool_bar_expose_callback): Remove.
22146 (xg_create_tool_bar): Don't connect expose signal to
22147 xg_tool_bar_expose_callback.
22148 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22149
221502007-09-16 Andreas Schwab <schwab@suse.de>
22151
22152 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22153 values instead of zapping them.
22154
221552007-09-14 Glenn Morris <rgm@gnu.org>
22156
22157 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22158 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22159 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22160 scope and rename to omfib_buffer for clarity.
22161 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22162
221632007-09-14 Kenichi Handa <handa@m17n.org>
22164
22165 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22166
221672007-09-13 Jason Rumney <jasonr@gnu.org>
22168
22169 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22170
22171 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22172
22173 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22174 (mac_term_init): Call here instead, passing rif.
22175
221762007-09-13 Glenn Morris <rgm@gnu.org>
22177
22178 * s/hpux.h: No longer define `static' as nothing.
22179
221802007-09-13 Johan Bockgård <bojohan@gnu.org>
22181
22182 * callint.c (Fcall_interactively): Remove unused var `fun'.
22183
221842007-09-12 Romain Francoise <romain@orebokech.com>
22185
22186 * window.c (prefer_window_split_horizontally, display_buffer):
22187 Revert 2007-09-08 change.
22188
221892007-09-12 Glenn Morris <rgm@gnu.org>
22190
22191 * alloca.c: Remove file.
22192 * Makefile.in (alloca): Do not undef.
22193 (allocaobj, alloca.o): Remove.
22194 (otherobj): Remove allocaobj.
22195 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22196 * regex.c (C_ALLOCA): Remove all references and code that was only
22197 used when this was defined.
22198 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22199 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22200 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22201
22202 * Makefile.in (SOURCES, unlock, relock): Delete.
22203
22204 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22205 (menu_grab_callback): All uses changed.
22206
22207 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22208 (x_reply_selection_request): All uses changed.
22209
222102007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22211
22212 * lread.c (load_warn_old_style_backquotes): Change message to look
22213 better when it appears in the middle of byte-compiler messages.
22214
222152007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22216
22217 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22218
22219 * xterm.c (x_create_terminal): Add comment.
22220
22221 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22222
222232007-09-10 Richard Stallman <rms@gnu.org>
22224
22225 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22226
222272007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22228
22229 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22230 (DEFUN): Document `intspec', use it instead of `prompt'.
22231
22232 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22233
22234 * data.c (Finteractive_form): If the interactive specification starts
22235 with a `(', use it as a Lisp form.
22236
22237 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22238 name and file modes.
22239
22240 * callint.c (Fcall_interactively): Comment fixes.
22241
222422007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22243
22244 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22245 and compiled functions.
22246
222472007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22248
22249 * window.c (prefer_window_split_horizontally): New variable.
22250 (display_buffer): Consider splitting window horizontally depending
22251 on prefer_window_split_horizontally.
22252
222532007-09-08 Eli Zaretskii <eliz@gnu.org>
22254
22255 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22256
222572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22258
22259 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22260
22261 * frame.c (x_set_frame_parameters): Check number is positive before
22262 using XFASTINT.
22263
22264 * window.c (freeze_window_start): Don't presume selected_window holds
22265 a window object.
22266 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22267
222682007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22269
22270 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22271
222722007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22273
22274 * window.c (Vsplit_window_preferred_function): New var.
22275 (Fdisplay_buffer): Use it.
22276 (syms_of_window): Export, and initialize it.
22277
222782007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22279
22280 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22281
222822007-09-06 Glenn Morris <rgm@gnu.org>
22283
22284 * gtkutil.c (menu_grab_callback) <cnt>:
22285 * xselect.c (x_reply_selection_request) <cnt>: Move static
22286 variable to file scope.
22287
222882007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22289
22290 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22291 consistent values of selected_frame and selected_window.
22292
222932007-09-04 Jason Rumney <jasonr@gnu.org>
22294
22295 * w32console.c (initialize_w32_display): Zero unused hooks.
22296
222972007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22298
22299 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22300 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22301
223022007-09-04 Jason Rumney <jasonr@gnu.org>
22303
22304 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22305 in w32console.c. Set up input. Remove XXX comments that have been
22306 confirmed as correct.
22307
22308 * s/ms-w32.h (MULTI_KBOARD): Define.
22309
22310 * w32console.c (one_and_only_w32cons): Remove.
22311 (initialize_w32_display): Take terminal argument.
22312
22313 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22314 initialize_w32_display.
22315 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22316
22317 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22318
22319 * keyboard.c (discard_mouse_events): Discard it.
22320 (make_lispy_event): Translate it to a lisp event.
22321 (lispy_wheel_names): Add wheel-left and right events.
22322 (syms_of_keyboard): Enlarge wheel_syms.
22323
22324 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22325 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22326
22327 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22328
22329 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22330 from WM_MOUSEHWHEEL.
22331 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22332
22333 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22334 terminal.
22335
22336 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22337 keyboard for the terminal.
22338
223392007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22340
22341 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22342 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22343 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22344 and resume-tty-function to resume-tty-hook.
22345 (Fsuspend_tty, Fresume_tty): Use new names.
22346
223472007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22348
22349 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22350 if it starts with "n:".
22351
223522007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22353
22354 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22355
223562007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22357
22358 * frame.h:
22359 * frame.c (Qterm_environment_variable): Remove.
22360 (syms_of_frame): Don't init and staticpro it.
22361
22362 * callproc.c (getenv_internal): Remove special case for $TERM.
22363
22364 * callproc.c (Vinitial_environment): New variable.
22365 (set_initial_environment): Initialize it.
22366 (syms_of_callproc): Declare it.
22367 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22368 TERM under which a process runs is never related to the TERM in which
22369 Emacs is running.
22370
223712007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22372
22373 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22374 * s/darwin.h: ... do it here.
22375
223762007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22377
22378 * lisp.h (set_initial_environment): Rename from set_global_environment.
22379
22380 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22381 removed by mistake on the multi-tty branch.
22382
22383 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22384 (Fmodify_frame_parameters): Return a value.
22385
22386 * image.c (png_load): Comment-out var only used in commented-out code.
22387
22388 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22389 before passing it to mark_object.
22390
22391 * xfaces.c (internal_resolve_face_name): Return a value.
22392 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22393
22394 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22395 (x_icon): Comment-out var only used in commented-out code.
22396
223972007-08-29 Romain Francoise <romain@orebokech.com>
22398
22399 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22400 QUIT hasn't been provided.
22401
224022007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22403
22404 * callproc.c (child_setup, getenv_internal): Use the
22405 display-environment-variable and term-environment-variable frame params.
22406 (set_initial_environment): Initialise Vprocess_environment.
22407
22408 * config.in: Disable multi-keyboard support on a mac.
22409
22410 * frame.c (Qterm_environment_variable)
22411 (Qdisplay_environment_variable): New variables.
22412 (syms_of_frame): Intern and staticpro them.
22413 (Fmake_terminal_frame): Disable output method test.
22414
22415 * frame.h: Declare them here.
22416
22417 * macfns.c (x_set_mouse_color): Get rif from the frame.
22418 (x_set_tool_bar_lines): Don't use updating_frame.
22419 (mac_window): Add 2 new parameters for consistency with other systems.
22420 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22421 frame parameters following what is done in X11 and w32. Don't use
22422 FRAME_MAC_DISPLAY_INFO.
22423 (Fx_open_connection, start_hourglass): Remove window-system check.
22424 (x_create_tip_frame): Get the keyboard from the terminal.
22425
22426 * macmenu.c: Reorder includes.
22427 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22428
22429 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22430 terminal parameter.
22431 (x_clear_frame): Add a frame parameter.
22432 (note_mouse_movement): Get rif from the frame.
22433 (mac_term_init): Initialize the terminal.
22434 (mac_initialize): Make static and move terminal initialization ...
22435 (mac_create_terminal): ... to this new function.
22436
22437 * macterm.h (struct mac_display_info): Add terminal.
22438 (mac_initialize): Delete declaration.
22439
22440 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22441
22442 * sysdep.c: Comment out text after #endif.
22443
22444 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22445 is defined. Better initialize ttys in windows. Use terminal
22446 specific mouse_position_hook.
22447
22448 * termhooks.h (union display_info): Add mac_display_info.
22449
22450 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22451 Set the default minibuffer frame, window_system and the rest of the
22452 frame parameters following what is done in X11.
22453
22454 * w32term.c (w32_initialize): Make static.
22455
22456 * xselect.c (x_handle_selection_clear): Only access
22457 terminal->kboard when MULTI_KBOARD is defined.
22458
22459 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22460 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22461
224622007-08-29 Jason Rumney <jasonr@gnu.org>
22463
22464 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22465 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22466
22467 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22468 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22469
22470 * keyboard.c (restore_kboard_configuration): Only define when
22471 MULTI_KBOARD defined.
22472
22473 * makefile.w32-in: Update dependancies from Makefile.in.
22474 (OBJ1): Add terminal.$(O)
22475
22476 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22477 Don't define function body.
22478 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22479
22480 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22481
22482 * w32.c (request_sigio, unrequest_sigio): Remove.
22483
22484 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22485 (w32con_clear_frame, w32con_clear_end_of_line)
22486 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22487 (w32con_delete_glyphs, w32con_set_terminal_window)
22488 (scroll_line, w32_sys_ring_bell): Add frame arg.
22489 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22490 Add terminal arg.
22491 (PICK_FRAME): Remove.
22492 (w32con_write_glyphs): Use frame specific terminal coding.
22493 (one_and_only_w32cons): New global variable.
22494 (initialize_w32_display): Use it for storing hooks.
22495 (create_w32cons_output): New function.
22496
22497 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22498 arg a frame.
22499
22500 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22501 Set window_system.
22502 (x_set_tool_bar_lines): Don't use updating_frame.
22503 (Fx_create_frame): Set terminal and ref count.
22504 (Fx_open_connection): Remove window-system check.
22505
22506 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22507
22508 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22509 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22510 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22511 Add frame arg.
22512 (x_delete_terminal, w32_create_terminal): New functions.
22513 (w32_term_init): Create a terminal.
22514 (w32_initialize): Move terminal specific initialization to
22515 w32_create_terminal.
22516
22517 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22518 (w32_clear_rect, w32_clear_area): Use background from frame.
22519 (w32_display_info): Add terminal.
22520 (w32_sys_ring_bell, x_delete_display): Declare here.
22521
22522 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22523
22524 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22525
225262007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22527
22528 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22529 Fix get_named_tty calls for the controlling tty.
22530
225312007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22532
194d44e7 22533 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22534
225352007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22536
22537 * term.c (tty_insert_glyphs): Add missing first parameter.
22538
225392007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22540
22541 * buffer.c (Fbuffer_list, Fbury_buffer):
22542 Take frame->buried_buffer_list into account.
22543
22544 * cm.c (current_tty): New variable, for cmputc().
22545 (cmputc): Use it.
22546 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22547 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22548 (cmgoto): Add tty parameter. Pass it on to calccost().
22549 Use emacs_tputs() instead of tputs().
22550
22551 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22552 tputs().
22553 (current_tty): New variable, for cmputc().
22554 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22555
22556 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22557 (internal_condition_case, internal_condition_case_1)
22558 (internal_condition_case_2): Don't abort when x_catching_errors.
22559
22560 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22561 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22562 prevent crashes caused by bogus longjmps in read_char.
22563
22564 * keymap.h (Fset_keymap_parent): Add EXFUN.
22565
22566 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22567 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22568 Remove redundant definition.
22569
22570 * macfns.c (x_set_mouse_color, x_make_gc):
22571 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22572
22573 * w32term.c (x_free_frame_resources):
22574 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22575 (w32_initialize): Use the accessor macros for terminal characteristics.
22576
22577 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22578 Use the accessor macros for terminal characteristics.
22579 * msdos.c (internal_terminal_init): Use the accessor macros for
22580 terminal characteristics.
22581 (ScreenVisualBell, internal_terminal_init):
22582 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22583
22584 * termopts.h (no_redraw_on_reenter): Declare.
22585
22586 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22587 (mark_terminals, mark_ttys): Declare.
22588 (Fgarbage_collect): Call them.
22589 (mark_object): Mark buried_buffer_list.
22590
22591 * prefix-args.c: Include stdlib.h for exit.
22592
22593 * syssignal.h: Add comment.
22594
22595 * indent.c: Include stdio.h.
22596
22597 * window.h (Vinitial_window_system): Declare.
22598 (Vwindow_system): Delete declaration.
22599
22600 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22601
22602 * image.c (lookup_image): Don't initialize `c' until the xasserts
22603 have been run.
22604
22605 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22606 FRAME_FOREGROUND_PIXEL.
22607
22608 * print.c (print_preprocess): Don't lose print_depth levels while
22609 iterating.
22610
22611 * widget.c (update_from_various_frame_slots):
22612 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22613
22614 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22615 frames.
22616 (window_internal_height): Remove bogus make_number call.
22617 (init_window_once): Call make_terminal_frame with two zero parameters.
22618
22619 * fileio.c (Fread_file_name): Update comment.
22620
22621 * callint.c (Fcall_interactively):
22622 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22623 Make sure it is correctly unwound.
22624
22625 * xsmfns.c (x_session_close): New function.
22626
22627 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22628 Delete declarations.
22629
22630 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22631 (x_output): Remove background_pixel and foreground_pixel fields.
22632 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22633 (x_delete_device, x_session_close): Declare.
22634
22635 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22636 (read_filtered_event): Call `read_char' with a local
22637 `wrong_kboard_jmpbuf'.
22638
22639 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22640 Don't call single_kboard_state. Use FRAME_RIF.
22641
22642 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22643 systems.
22644
22645 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22646 (Fframe_with_environment, Fset_input_meta_mode)
22647 (Fset_quit_char): EXFUN.
22648 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22649 (init_sys_modes, reset_sys_modes): Update prototypes.
22650 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22651
22652 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22653 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22654 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22655 Delete declarations.
22656 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22657 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22658 New declarations.
22659
22660 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22661 already does that during init_display(). Call syms_of_keymap
22662 before syms_of_keyboard. Call `syms_of_terminal'.
22663 Call set_initial_environment, not set_process_environment.
22664 (shut_down_emacs): Call reset_all_sys_modes() instead of
22665 reset_sys_modes().
22666
22667 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22668 (internal_resolve_face_name, resolve_face_name_error): New functions.
22669 (resolve_face_name): Protect against loops and errors thrown by Fget.
22670 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22671 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22672
22673 * scroll.c: Replace CURTTY() with local variables throughout the
22674 file (where applicable).
22675 (calculate_scrolling, calculate_direct_scrolling)
22676 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22677 characteristics.
22678
22679 * keymap.c (Vfunction_key_map): Remove.
22680 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22681 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22682 (Vkey_translation_map): Remove.
22683 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22684 (Fdescribe_buffer_bindings)
22685 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22686 Update for terminal-local key-translation-map.
22687
22688 * Makefile.in (callproc.o): Update dependencies.
22689 (lisp, shortlisp): Add termdev.elc.
22690 (obj): Add terminal.o.
22691 (terminal.o): Add dependencies.
22692 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22693 (data.o, fns.o): Add termhooks.h dependency.
22694 (SOME_MACHINE_LISP): Add dnd.elc.
22695 (minibuf.o): Fix typo.
22696 Update dependencies.
22697
22698 * data.c (do_symval_forwarding, store_symval_forwarding)
22699 (find_symbol_value): Use the selected frame's keyboard, not
22700 current_kboard.
22701
22702 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22703 Vwindow_system.
22704
22705 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22706 Fmenu_bar_open.
22707 (syms_of_xmenu): Update defsubr.
22708 (mouse_position_for_popup, Fx_popup_menu)
22709 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22710 (set_frame_menubar, free_frame_menubar)
b97439ce 22711 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22712 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22713 an X frame.
22714
22715 * xselect.c (x_own_selection): Abort if not an X frame.
22716 (some_frame_on_display): Check if it is an X frame.
22717 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22718
22719 * coding.c: Include frame.h and termhooks.h.
22720 (terminal_coding, keyboard_coding): Delete.
22721 (Fset_terminal_coding_system_internal)
22722 (Fset_keyboard_coding_system_internal)
22723 (Fkeyboard_coding_system)
22724 (Fterminal_coding_system): Add a terminal parameter.
22725 Get terminal_coding from the terminal.
22726 (init_coding_once): Don't call setup_coding_system here.
22727
22728 * dispextern.h (set_scroll_region, turn_off_insert)
22729 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22730 (tty_clear_end_of_line, tty_setup_colors)
22731 (delete_tty, updating_frame)
22732 (produce_special_glyphs, produce_glyphs, write_glyphs)
22733 (insert_glyphs): Remove.
22734 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22735 (tty_turn_off_highlight, get_tty_size): Add declaration.
22736 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22737
22738 * frame.h (enum output_method): Add output_initial.
22739 (struct x_output): Delete.
22740 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22741 Access foreground_pixel and background_pixel directly from the frame.
22742 (tty_display): Delete.
22743 (struct frame): Add buried_buffer_list, foreground_pixel,
22744 background_pixel and terminal. Delete kboard.
22745 (union output_data): Add tty.
22746 (FRAME_KBOARD): Get the kboard from the terminal.
22747 (FRAME_INITIAL_P): New macro.
22748 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22749 (Qterm_environment_variable, Qdisplay_environment_variable)
22750 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22751 New declarations.
22752
22753 * termchar.h (tty_output, tty_display_info): New structures.
22754 (tty_list): Declare.
22755 (FRAME_TTY, CURTTY): New macros.
22756 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22757 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22758 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22759 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22760
22761 * callproc.c: Include frame.h and termhooks.h, for terminal
22762 parameters.
22763 (add_env): New function.
22764 (child_setup): Use it.
22765 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22766 (getenv_internal): Fix get_terminal_param call.
22767 (Fgetenv_internal, egetenv): Update doc.
22768 (syms_of_callproc): Initialize Vprocess_environment to nil.
22769 Register and initialize them. Remove obsolete defvars. Update doc
22770 strings.
22771 (child_setup): Handle Vlocal_environment_variables.
22772 (getenv_internal): Add terminal parameter.
22773 Handle Vlocal_environment_variables.
22774 (Fgetenv_internal): Add terminal parameter.
22775 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22776 environment in a frame (not terminal) parameter. Update doc strings.
22777 (set_initial_environment): Rename from set_global_environment.
22778 Store Emacs environment in initial frame parameter.
22779
22780 * xdisp.c (redisplay_internal): Update references to
22781 `previous_terminal_frame'.
22782 (display_mode_line, Fformat_mode_line): Replace calls to
22783 `push_frame_kboard' with `push_kboard'.
22784 (get_glyph_string_clip_rects): Add extra parentheses and
22785 braces to prevent compiler warnings.
22786 (calc_pixel_width_or_height): Add xassert to check that the
22787 frame is alive. Don't call `lookup_image' on a termcap frame.
22788 (message2_nolog, message3_nolog, redisplay_internal)
22789 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22790 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22791 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22792 (Fx_display_pixel_width, Fx_display_pixel_height)
22793 (Fx_display_planes, Fx_display_color_cells)
22794 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22795 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22796 (Fx_display_backing_store, Fx_display_visual_class)
22797 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22798 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22799
22800 * xfns.c (x_set_foreground_color x_set_background_color)
22801 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22802 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22803 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22804 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22805 terminal that is being deleted.
22806 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22807 frame parameter, and make sure it overrides any user-supplied setting.
22808 (Fx_close_connection, Fx_synchronize): Unify argument names with
22809 the rest of the DEFUNs.
22810
22811 * dispnew.c (Fsend_string_to_terminal): Update call to
22812 `get_tty_terminal'.
22813 (Fredraw_frame, Fsend_string_to_terminal)
22814 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22815 FRAME_TERMCAP_P and FRAME_TTY.
22816 (window_change_signal): Don't believe width/height values that are
22817 impossibly small.
22818 (Vinitial_window_system): Rename from Vwindow_system.
22819 (termscript, Wcm, rif): Delete.
22820
22821 * termhooks.h (struct terminal): New struct containing the
22822 previously global text display hooks and new members NAME,
22823 DELETED and PARAM_ALIST.
22824 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22825 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22826 (FRAME_RIF): New macros.
22827 (get_terminal_param, get_device): New declarations.
22828 (termscript): Delete declaration.
22829
22830 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22831 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22832 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22833 FRAME_FOREGROUND_PIXEL.
22834 (x_fully_uncatch_errors): Disable definition.
22835 (x_scroll_bar_expose): Fix reference to foreground pixel.
22836 (XTread_socket): Disable loop on all X displays.
22837 (x_delete_terminal): Don't set terminal->deleted and let
22838 delete_terminal delete the frames on the terminal.
22839 (x_delete_display): Doc update to reflect changes in
22840 delete_terminal.
22841 (x_display_info) <terminal>: Move member earlier in the struct.
22842 (deleting_tty): Remove old variable.
22843 (Fsuspend_tty): Call clear_tty_hooks.
22844 (Fresume_tty, init_tty): Call set_tty_hooks.
22845 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22846 errors on X frames.
22847 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22848 (handle_one_xevent): Initialize `f' to NULL.
22849 (x_delete_terminal, x_create_terminal): New functions.
22850 (XTset_terminal_modes, XTreset_terminal_modes)
22851 (XTread_socket, x_connection_closed, x_term_init)
22852 (x_term_init, x_delete_display): Add terminal parameter.
22853 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22854 X connections.
22855
22856 * frame.c: Include termchar.h.
22857 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22858 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22859 (Qdisplay_environment_variable): New vars.
22860 (Fframep): Deal with output_initial.
22861 (Fframe-live-p): Doc fix.
22862 (Fwindow-system): New function.
22863 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22864 (make_terminal_frame): Don't create frames on a terminal that is
22865 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22866 (store_frame_param): Check for found_for_frame before calling XFRAME.
22867 (Fmake_terminal_frame): Handle NULL tty names correctly.
22868 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22869 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22870 frames to refer to a deleted frame in their 'environment parameter.
22871 (Fframe_with_environment): New function.
22872 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22873 (get_future_frame_param): New function.
22874 (Fmake_terminal_frame): Use it.
22875 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22876
22877 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22878 * sysdep.c (reset_sys_modes): Update for renames.
22879
22880 * keyboard.c (tty_read_avail_input): New function.
22881 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22882 (syms_of_keyboard): Defsubr them.
22883 (Fset_input_meta_mode, Fset_quit_char): New functions.
22884 (Fset_input_mode): Split to above functions.
22885 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22886 parameter. Use it in call to `read_char'.
22887 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22888 Set wrong_kboard_jmpbuf correctly in recursive calls.
22889 Use current_kboard to access Vkeyboard_translate_table.
22890 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22891 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22892 Update longjmp invocations. Remember the original current_kboard,
22893 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22894 changes it. Comment out unnecessary calls to
22895 `record_single_kboard_state' and `any_kboard_state'.
22896 Update recursive calls.
22897 (wrong_kboard_jmpbuf): Remove global variable.
22898 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22899 Handle deleted interrupted_kboards correctly; that is a legal
22900 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22901 and read_char calls. Abort if interrupted_kboard died in read_char.
22902 (any_kboard_state, single_kboard_state)
22903 (push_frame_kboard): Remove function.
22904 (pop_kboard): Switch out of single_kboard mode if the kboard has
22905 been deleted. Remove unused variable. Help debugging by not
22906 changing current_kboard unnecessarily. Set current_kboard to the
22907 kboard of the selected frame when the stored kboard object has
22908 been deleted before pop_kboard.
22909 (temporarily_switch_to_single_kboard): Change first parameter to a
22910 frame pointer. Throw an error when caller wants to change kboards
22911 while in single_kboard mode. Don't push_kboard if we weren't in
22912 single kboard state. Don't pop_kboard if we popped into any
22913 kboard state.
22914 (restore_kboard_configuration): Abort if pop_kboard changed the
22915 kboard in single_kboard mode. Call pop_kboard only after setting
22916 up single_kboard mode.
22917 (Frecursive_edit): Switch to single_kboard mode only in nested
22918 command loops.
22919 (cmd_error, command_loop, command_loop_1, timer_check):
22920 Comment out unnecessary call to `any_kboard_state' and
22921 `record_single_kboard_state'.
22922 (delete_kboard): Exit single_kboard mode if we have just deleted
22923 that kboard. Use FRAME_KBOARD.
22924 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22925 `fatal_error_signal'.
22926 (record_single_kboard_state): Don't push_kboard if we weren't in
22927 single kboard state. Don't pop_kboard if we popped into any
22928 kboard state.
22929 (push_frame_kboard): Rename to push_kboard.
22930 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22931 (read_avail_input): Read input from all terminals.
22932 (mark_kboards): Also mark Vkeyboard_translate_table.
22933 (kbd_buffer_store_event_hold): Simplify condition.
22934 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22935 (Vkeyboard_translate_table): Move to struct kboard.
22936 (init_kboard): Initialize Vkeyboard_translate_table.
22937 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22938 Vkeyboard_translate_table. Update doc strings. Update docs of
22939 local-function-key-map and function-key-map.
22940
22941 * terminal.c: New file.
22942
22943 * term.c: Include errno.h.
22944 (Vring_bell_function, device_list, initial_device)
22945 (next_device_id, ring_bell, update_begin, update_end)
22946 (set_terminal_window, cursor_to, raw_cursor_to)
22947 (clear_to_end, clear_frame, clear_end_of_line)
22948 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22949 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22950 (syms_of_term): Move their initialization to terminal.c.
22951 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22952 (Ftty_display_color_cells)
22953 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22954 (clear_tty_hooks, set_tty_hooks)
22955 (init_tty, maybe_fatal): New functions.
22956 (Ftty_type): Return nil if terminal is not on a tty instead of
22957 throwing an error. Doc update.
22958 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22959 Doc update. Initialize new subrs and variables.
22960 (delete_tty): Use terminal->deleted.
22961 (tty_set_terminal_modes): Rename from set_terminal_modes.
22962 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22963 (set_scroll_region): Rename to `tty_set_scroll_region'.
22964 (turn_on_insert): Rename to `tty_turn_on_insert'.
22965 (turn_off_insert): Rename to `tty_turn_off_insert'.
22966 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22967 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22968 (toggle_highligh): Rename to `tty_toggle_highlight'.
22969 (background_highlight): Rename to `tty_background_highlight'.
22970 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22971 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22972 (tty_set_scroll_region, tty_background_highlight)
22973 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22974 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22975 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22976 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22977 Add static modifier.
22978 (tty_reset_terminal_modes, tty_set_terminal_window)
22979 (tty_set_scroll_region, tty_background_highlight)
22980 (tty_highlight_if_desired, tty_cursor_to)
22981 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22982 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22983 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22984 renames.
22985
229862007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22987
22988 * keyboard.c: Qrtl is new.
22989 (parse_tool_bar_item): Handle :rtl keyword.
22990 (syms_of_keyboard): Intern :rtl keyword.
22991
22992 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22993
22994 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22995 so no Lisp code is executed.
22996 (file_for_image, find_rtl_image): New functions.
22997 (xg_get_image_for_pixmap): Use file_for_image.
22998 (update_frame_tool_bar): If direction is RTL, use RTL image if
22999 defined. Use Gtk stock images if defined.
23000
230012007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23002
23003 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23004 for nonexistent or zero-width glyph in composition glyph.
23005
230062007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23007
23008 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23009
23010 * xdisp.c (Finvisible_p): New function.
23011 (syms_of_xdisp): defsubr it.
23012
230132007-08-24 Juanma Barranquero <lekktu@gmail.com>
23014
23015 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23016 Doc fixes.
23017
230182007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23019
23020 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23021
230222007-08-24 Martin Rudalics <rudalics@gmx.at>
23023
23024 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23025 whether decoding has modified buffer contents.
23026
230272007-08-24 Jason Rumney <jasonr@gnu.org>
23028
23029 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23030 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23031 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23032 (init_svg_functions) [HAVE_NTGUI]: New function.
23033 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23034 (svg_load_image): Use them.
23035 (svg_load_image) [HAVE_NTGUI]: Implement background.
23036
230372007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23038
23039 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23040 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23041 (LIBX): Remove @RSVG_LIBS@.
23042 (LIBES): Add $(RSVG_LIBS).
23043
23044 * image.c (svg_load_image): Blend with specified background if exists.
23045 Use IMAGE_BACKGROUND. Add Mac OS Support.
23046
23047 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23048 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23049 Remove macros.
23050 [MAC_OSX] (socket_callback): Do nothing.
23051 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23052 ReceiveNextEvent.
23053 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23054 socket_callback.
23055 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23056
230572007-08-22 Glenn Morris <rgm@gnu.org>
23058
23059 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23060
230612007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23062
23063 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23064
23065 * image.c: Add support for SVG images. Some additional comments
23066 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23067 (svg_image_p): New function to test for SVG image.
23068 (svg_load): New function to load SVG image.
23069 (svg_load_image): New function, helper for svg_load.
23070 (Qsvg): New Lisp_object.
23071 (svg_keyword_index): New enum.
23072 (svg_format): New static `image_keyword' struct.
23073 (svg_type): New static `image_type' struct.
23074 (librsvg/rsvg.h): Include it.
23075
230762007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23077
23078 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23079
230802007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23081
23082 * lread.c (Qold_style_backquotes): New var.
23083 (syms_of_lread): Init and staticpro it.
23084 (load_warn_old_style_backquotes): New fun.
23085 (Fload): Use them to warn about old style backquotes.
23086 (end_of_file_error, Fload): Remove unused vars.
23087
23088 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23089
23090 * lread.c (Vold_style_backquotes): New var.
23091 (syms_of_lread): Init and export it to Elisp.
23092 (read1): Set it when we find an old-style (back)quote.
23093
230942007-08-22 Jason Rumney <jasonr@gnu.org>
23095
23096 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23097
230982007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23099
23100 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23101
231022007-08-19 Richard Stallman <rms@gnu.org>
23103
23104 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23105
231062007-08-19 Andreas Schwab <schwab@suse.de>
23107
23108 * alloc.c (pure): Round PURESIZE up.
23109
231102007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23111
23112 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23113 active frame.
23114
231152007-08-16 Richard Stallman <rms@gnu.org>
23116
23117 * eval.c (Fcommandp): Add parens to clarify.
23118
23119 * minibuf.c (Fall_completions): Use enum for type of table.
23120
23121 * emacs.c (USAGE2): Improve text.
23122
231232007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23124
23125 * term.c (tty_default_color_capabilities): Declare static
23126 variables in file scope, to avoid HPUX compiler problem.
23127
231282007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23129
23130 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23131 to gtk_toolbar_insert.
23132
231332007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23134
23135 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23136
23137 * insdel.c (reset_var_on_error): New fun.
23138 (signal_before_change, signal_after_change):
23139 Use it to reset (after|before)-change-functions to nil in case of error.
23140 Bind inhibit-modification-hooks to t.
23141 Don't bind (after|before)-change-functions to nil while they run.
23142
231432007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23144
23145 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23146 filling pixmap with stippled background.
23147
231482007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23149
23150 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23151 Don't use invisible frame as parent window for repositioning.
23152
231532007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23154
23155 * print.c (new_backquote_output): Rename from old_backquote_output.
23156 (print): Inverse its logic (according to its name) so as to match the
23157 behavior of new_backquote_flag in lread.c.
23158
231592007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23160
23161 * gmalloc.c (posix_memalign): New function.
23162
23163 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23164 ActivateControl/DeactivateControl here.
23165 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23166 frame-notice-user-settings is non-nil.
23167 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23168 for kEventParamFMFontStyle.
23169 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23170 mac_pass_command_to_system and mac_pass_control_to_system here.
23171 (XTread_socket): Call ActivateControl/DeactivateControl here.
23172 (XTread_socket) [TARGET_API_MAC_CARBON]:
23173 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23174 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23175 for window repositioning.
23176
231772007-08-08 Glenn Morris <rgm@gnu.org>
23178
23179 * Replace `iff' in doc-strings and comments.
23180
231812007-08-07 Chong Yidong <cyd@stupidchicken.com>
23182
23183 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23184
231852007-08-07 Martin Rudalics <rudalics@gmx.at>
23186
23187 * fileio.c (Finsert_file_contents): Run format-decode and
23188 after_insert_file_functions on entire buffer when REPLACE is
23189 non-nil and inhibit modification_hooks and point_motion_hooks.
23190 For consistency, run after_insert_file_functions iff something
23191 got inserted. Move signal_after_change and update_compositions
23192 after code running after_insert_file_functions. Make sure that
23193 undo_list doesn't record intermediate steps of the decoding process.
23194
231952007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23196
23197 * emacs.c (main)
23198 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23199 Call malloc_enable_thread on interactive startup.
23200
23201 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23202 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23203 [USE_PTHREAD]: Conditionalize with it.
23204 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23205 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23206 New functions.
23207
232082007-08-06 Chong Yidong <cyd@stupidchicken.com>
23209
23210 * xdisp.c (redisplay_window): When restoring original buffer
23211 position, make sure it is still valid.
23212
23213 * image.c (png_load): Ignore png-supplied background color.
23214
232152007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23216
23217 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23218 Use kCFAbsoluteTimeIntervalSince1970.
23219
23220 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23221 New variable.
23222 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23223 event loop should be quit.
23224 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23225 Quit dialog event loop if quit_dialog_event_loop is set.
23226
23227 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23228 (Selection): New typedef. Use instead of ScrapRef.
23229 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23230 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23231 (mac_clear_selection): Rename from clear_scrap.
23232 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23233 scrap_has_target_type. All uses changed.
23234 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23235 (mac_selection_has_target_p): New functions.
23236 (mac_put_selection_value): Rename from put_scrap_string.
23237 (mac_get_selection_value): Rename from get_scrap_string.
23238 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23239 (put_scrap_private_timestamp, scrap_has_target_type)
23240 (get_scrap_private_timestamp): Remove functions.
23241 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23242 (x_own_selection, x_get_local_selection):
23243 Use mac_valid_selection_value_p.
23244 (x_own_selection): Don't use put_scrap_private_timestamp.
23245 Record OWNERSHIP-INFO into Vselection_alist instead.
23246 (x_get_local_selection): Don't check type if request is local.
23247 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23248 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23249
232502007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23251
23252 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23253 add comment explaining why.
23254
232552007-08-03 Richard Stallman <rms@gnu.org>
23256
23257 * fileio.c (Fvisited_file_modtime): Use make_time.
23258
232592007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23260
23261 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23262 build.
23263
232642007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23265
23266 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23267
232682007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23269
23270 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23271
232722007-07-30 Richard Stallman <rms@gnu.org>
23273
23274 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23275
232762007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23277
23278 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23279
232802007-07-28 Nick Roberts <nickrob@snap.net.nz>
23281
23282 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23283 remote default-directory.
23284
23285 * buffer.c (mode-line-format): Update doc string.
23286
232872007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23288
23289 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23290 scroll bar gap.
23291 (x_scroll_bar_create): Set bar->fringe_extended_p.
23292 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23293 on frame edge. Check fringe background extension. Don't clear
23294 extended fringe background area.
23295
23296 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23297 (w32_fill_area): Enclose multiple statements with do ... while (0).
23298
23299 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23300 Extend fringe background to scroll bar gap.
23301 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23302 Set bar->fringe_extended_p.
23303 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23304 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23305 background extension. Don't clear extended fringe background area.
23306
23307 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23308 New member fringe_extended_p.
23309
233102007-07-25 Glenn Morris <rgm@gnu.org>
23311
23312 * Relicense all FSF files to GPLv3 or later.
23313
23314 * COPYING: Switch to GPLv3.
23315
233162007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23317
23318 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23319
23320 * data.c (Finteractive_form): Check for the presence of an
23321 `interactive-form' symbol property more thoroughly.
23322
23323 * data.c (Finteractive_form): Use an `interactive-form' property if
23324 present, analogous to the function-documentation property.
23325
233262007-07-24 Jason Rumney <jasonr@gnu.org>
23327
23328 * w32fns.c (x_real_positions): Get real position from OS instead of
23329 calculating it.
23330
233312007-07-23 Jason Rumney <jasonr@gnu.org>
23332
23333 * filelock.c (current_lock_owner): Allow for @ sign in username.
23334
233352007-07-22 Nick Roberts <nickrob@snap.net.nz>
23336
23337 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23338 remote default-directory.
23339
23340 * buffer.c (mode-line-format): Describe above case in doc string.
23341
233422007-07-20 Eli Zaretskii <eliz@gnu.org>
23343
23344 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23345 Define if not defined.
23346
233472007-07-18 Jason Rumney <jasonr@gnu.org>
23348
23349 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23350
233512007-07-18 Richard Stallman <rms@gnu.org>
23352
23353 * data.c (Fsetq_default): Doc fix.
23354
23355 * eval.c (Fsetq): Doc fix.
23356
233572007-07-18 Juanma Barranquero <lekktu@gmail.com>
23358
23359 * coding.c (Ffind_operation_coding_system):
23360 * eval.c (For, Fand): Doc fixes.
23361 Reported by Johan Bockgård.
23362
233632007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23364
23365 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23366
23367 * xterm.h: Declare x_ewmh_activate_frame.
23368
23369 * xterm.c (x_ewmh_activate_frame): New function.
23370 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23371
233722007-07-17 Martin Rudalics <rudalics@gmx.at>
23373
23374 * window.c (Fdisplay_buffer): If largest or LRU window is the
23375 only window, split it even if it is not eligible for splitting.
23376 This restores the original behavior broken by the 2007-07-15
23377 change.
23378
233792007-07-17 Glenn Morris <rgm@gnu.org>
23380
23381 * abbrev.c (abbrev_check_chars): New function.
23382 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23383 Call abbrev_check_chars to check abbrev characters are word
23384 constituents. Doc fix.
23385
233862007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23387
23388 * process.c (Fstart_process, Fmake_network_process)
23389 (read_process_output): Fix up last changes.
23390
233912007-07-16 Eli Zaretskii <eliz@gnu.org>
23392
23393 * makefile.w32-in (clean): Don't delete *~.
23394
233952007-07-16 Andreas Schwab <schwab@suse.de>
23396
23397 * window.c (Fdisplay_buffer): Use NILP.
23398 (Fset_window_scroll_bars): Likewise.
23399
234002007-07-15 Martin Rudalics <rudalics@gmx.at>
23401
23402 * window.c (window_min_size_2): New function.
23403 (window_min_size_1, size_window, Fdisplay_buffer)
23404 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23405 windows without mode- or header-lines when window-min-height is
23406 too small.
23407 (size_window): Reset nodelete_p after testing it, following an
23408 earlier note by Kim F. Storm.
23409 (display_buffer): Do not set split_height_threshold to twice the
23410 value of window_min_height to avoid changing the value of a
23411 customizable variable. Rather explicitly check whether the
23412 height of the window that shall be splitted is at least as large
23413 as split_height_threshold.
23414 (Fwindow_full_width_p): New defun.
23415 (syms_of_window): Defsubr it.
23416
23417 * window.h: Add EXFUN for Fwindow_full_width_p.
23418
234192007-07-14 Jason Rumney <jasonr@gnu.org>
23420
23421 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23422
234232007-07-14 Richard Stallman <rms@gnu.org>
23424
23425 * eval.c (maybe_call_debugger): New function.
23426 (find_handler_clause): Use maybe_call_debugger.
23427 Call it when the handler says `debug'.
23428 Eliminate DEBUGGER_VALUE_PTR.
23429 (Fsignal): Eliminate debugger_value.
23430 (Qdebug): New variable.
23431 (syms_of_eval): Initialize it.
23432
234332007-07-14 Juanma Barranquero <lekktu@gmail.com>
23434
23435 * eval.c (Fprogn):
23436 * keyboard.c (Ftrack_mouse):
23437 * print.c (Fwith_output_to_temp_buffer):
23438 * window.c (Fsave_window_excursion): Doc fix.
23439
234402007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23441
23442 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23443
234442007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23445
23446 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23447 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23448 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23449 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23450 Remove unused encoding_carryover.
23451 * process.c: Adjust all functions accordingly.
23452
234532007-07-12 Richard Stallman <rms@gnu.org>
23454
23455 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23456
234572007-07-11 Jason Rumney <jasonr@gnu.org>
23458
23459 * makefile.w32-in (LIBS): Include OLE32.
23460
23461 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23462 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23463
234642007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23465
23466 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23467 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23468 from a Lisp_Object into a bare pointer.
23469 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23470 Adjust the code correspondingly.
23471
23472 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23473
23474 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23475 (term_show_mouse_face): Remove unused var `j'.
23476 (handle_one_term_event): Remove unused vars `i' and `j'.
23477 Don't cast return value of ttyname since it's not necessary.
23478
234792007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23480
23481 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23482 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23483
23484 * fns.c (map_char_table): Use an array of int for `indices' rather than
23485 an array of Lisp_Objects (which are only ever integers anyway).
23486 (Fmap_char_table): Update caller.
23487 * lisp.h: Update prototype.
23488 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23489 * fontset.c (Ffontset_info):
23490 * casetab.c (set_case_table): Update callers.
23491
23492 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23493
23494 * keymap.c (struct accessible_keymaps_data)
23495 (struct where_is_internal_data): New structures.
23496 (accessible_keymaps_1, where_is_internal_1): Use them to change
23497 interface to adhere to the one used by map_keymap.
23498 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23499 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23500
23501 * keymap.h (map_keymap_function_t): More informative prototype.
23502
235032007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23504
23505 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23506 (looking_at_1): Don't change search_regs and last_thing_searched
23507 if `inhibit-changing-match-data' is non-nil.
23508 (string_match_1, search_buffer, set_search_regs): Likewise.
23509 (syms_of_search): Add Lisp level definition for
23510 `inhibit-changing-match-data' and set it to nil.
23511 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23512 start and end of the match, instead of using values in search_regs.
23513
235142007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23515
23516 * minibuf.c (Fcompleting_read): New value `confirm-only'
23517 for `require-match'.
23518
235192007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23520
23521 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23522 part of the 2007-06-27 change to syms_of_fileio.
23523
235242007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23525
23526 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23527 Check WINDOWP before using XWINDOW. Consolidate return statements.
23528
235292007-06-27 Richard Stallman <rms@gnu.org>
23530
23531 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23532
235332007-06-27 Juanma Barranquero <lekktu@gmail.com>
23534
23535 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23536
235372007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23538
23539 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23540 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23541 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23542 (_free_internal, memalign): Use them.
23543 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23544 Initialize to PTHREAD_MUTEX_INITIALIZER.
23545 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23546 (morecore_nolock): Rename from morecore. All uses changed.
23547 Use only nolock versions of internal allocation functions.
23548 (_malloc_internal_nolock, _realloc_internal_nolock)
23549 (_free_internal_nolock): New functions created from
23550 _malloc_internal, _realloc_internal, and _free_internal.
23551 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23552 Copy hook value to automatic variable before its use.
23553 (memalign): Copy hook value to automatic variable before its use.
23554
235552007-06-26 Kenichi Handa <handa@m17n.org>
23556
23557 * coding.c (Ffind_operation_coding_system): Docstring improved.
23558 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23559
235602007-06-25 David Kastrup <dak@gnu.org>
23561
23562 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23563 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23564 cater for additional parameter.
23565
23566 * keymap.h: Adjust number of parameters to `current-active-maps'.
23567
23568 * doc.c (Fsubstitute_command_keys): Adjust call of
23569 `current-active-maps'.
23570
235712007-06-25 David Kastrup <dak@gnu.org>
23572
23573 * callint.c (Fcall_interactively): Make the parsing of interactive
23574 specs somewhat more readable.
23575
235762007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23577
23578 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23579 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23580 if extended background has already been filled.
23581
235822007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23583
23584 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23585 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23586
23587 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23588 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23589 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23590 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23591 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23592 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23593 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23594 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23595 Run timers during dialog popup.
23596 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23597
235982007-06-21 Jason Rumney <jasonr@gnu.org>
23599
23600 * image.c (convert_mono_to_color_image): Swap fore and background.
23601
236022007-06-20 Jason Rumney <jasonr@gnu.org>
23603
23604 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23605 (w32_free_bdf_font): Unmap memory not handle.
23606
236072007-06-20 Sam Steingold <sds@gnu.org>
23608
23609 * gmalloc.c (__morecore): Fix the declaration to comply with the
23610 definition.
23611
236122007-06-20 Juanma Barranquero <lekktu@gmail.com>
23613
23614 * w32term.c (w32_delete_display): Remove leftover declaration.
23615 (w32_define_cursor, w32_initialize): Make static.
23616
23617 * w32.c (_wsa_errlist): Fix typo in error message.
23618 (init_environment): Ignore any environment variable from the
23619 registry having a null value.
23620
236212007-06-20 Glenn Morris <rgm@gnu.org>
23622
23623 * Makefile.in (LIBGIF): Default to -lgif.
23624
236252007-06-17 Jason Rumney <jasonr@gnu.org>
23626
23627 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23628 unicode strings.
23629
236302007-06-16 Juanma Barranquero <lekktu@gmail.com>
23631
23632 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23633 Fix typo in docstring.
23634
236352007-06-16 Eli Zaretskii <eliz@gnu.org>
23636
23637 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23638 and their keybindings.
23639
236402007-06-15 Chong Yidong <cyd@stupidchicken.com>
23641
23642 * composite.c (update_compositions): Fix last fix.
23643
236442007-06-14 Jason Rumney <jasonr@gnu.org>
23645
23646 * w32.c (get_process_times_fn): New function pointer.
23647 (globals_of_w32): Intialize it if present in kernel32.dll.
23648 (w32_get_internal_run_time): New function.
23649
23650 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23651
236522007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23653
23654 * composite.c (update_compositions): Check the validness of
23655 compositions.
23656
236572007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23658
23659 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23660 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23661
23662 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23663 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23664
23665 * macgui.h (USE_MAC_TOOLBAR): New define.
23666
23667 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23668 Return immediately unless popup is activated.
23669
23670 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23671 background to scroll bar gap.
23672 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23673 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23674 scroll bars on frame edge. Check fringe background extension.
23675 Don't clear extended fringe background area.
23676 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23677 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23678 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23679 [USE_MAC_TOOLBAR]: New macros.
23680 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23681 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23682 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23683 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23684 [USE_MAC_TOOLBAR]: New functions.
23685 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23686 manually if previous repositioning has failed.
23687 (mac_handle_keyboard_event): Use precomputed event kind.
23688 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23689 as tool bar item click. Handle mouse movement over tool bar items.
23690
23691 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23692 toolbar_win_gravity.
23693 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23694 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23695 Add externs.
23696
23697 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23698 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23699
237002007-06-14 Chong Yidong <cyd@stupidchicken.com>
23701
23702 * image.c (search_image_cache): Remove unused variable.
23703
237042007-06-13 Chong Yidong <cyd@stupidchicken.com>
23705
23706 * xfns.c, xmenu.c: Link to xaw3d if available.
23707
237082007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23709
23710 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23711 frame_foreground and frame_background.
23712
23713 * image.c (lookup_image): Save frame foreground and background colors.
23714 (search_image_cache): Check if saved and current frame colors match.
23715
237162007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23717
23718 * regex.c (regex_compile): Remove the `regnum' counter.
23719 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23720
237212007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23722
23723 * term.c: Include intervals.h to declare Fget_text_property.
23724
237252007-06-10 Jason Rumney <jasonr@gnu.org>
23726
23727 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23728
237292007-06-08 Juanma Barranquero <lekktu@gmail.com>
23730
23731 * callint.c (Fcall_interactively):
23732 * editfns.c (Fdelete_and_extract_region):
23733 * fileio.c (Fread_file_name):
23734 * fns.c (Fmapconcat):
23735 * keyboard.c (cmd_error_internal):
23736 * keymap.c (Fkey_description):
23737 * lread.c (openp):
23738 * minibuf.c (read_minibuf):
23739 * search.c (wordify):
23740 * sunfns.c (sel_read):
23741 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23742 * xfns.c (x_default_scroll_bar_color_parameter):
23743 * xmenu.c (menu_help_callback):
23744 * xselect.c (Fx_get_atom_name):
23745 * xterm.c (x_term_init): Use empty_unibyte_string.
23746
237472007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23748
23749 * alloc.c (init_strings): Initialize canonical empty strings.
23750 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23751 canonical empty string when the requested size is 0.
23752
23753 * emacs.c (empty_unibyte_string): Rename from empty_string.
23754 (empty_multibyte_string): New canonical empty string.
23755 (syms_of_emacs): Don't initialize empty_string.
23756
23757 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23758 string, if appropriate.
23759 (empty_unibyte_string, empty_multibyte_string): New externs.
23760 (empty_string): Remove extern.
23761
23762 * lread.c (syms_of_lread): Use empty_unibyte_string.
23763
237642007-06-07 Jason Rumney <jasonr@gnu.org>
23765
23766 * s/ms-w32.h: Don't define HAVE_TZNAME.
23767
23768 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23769
237702007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23771
23772 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23773
23774 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23775 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23776
23777 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23778 Don't call next handler.
23779 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23780 Remove argument. Install handler to application.
23781 (set_frame_menubar): Don't change deep_p.
23782 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23783 FRAME_OUTER_TO_INNER_DIFF_Y.
23784 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23785 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23786 [HAVE_DIALOGS]: New macros.
23787 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23788 Use them.
23789 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23790
23791 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23792 init_service_handler. All callers changed. Return OSStatus value.
23793
23794 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23795 All callers changed so as not to call SetPortWindowPort.
23796 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23797 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23798 mac_draw_string_common.
23799 (mac_draw_image_string_qd): Likewise.
23800 (mac_draw_string_common): Use them. Add INLINE.
23801 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23802 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23803 GetGlobalMouse.
23804 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23805 and FRAME_OUTER_TO_INNER_DIFF_Y.
23806 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23807 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23808 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23809 repositioning window to mac_handle_window_event.
23810 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23811 saving window location to mac_handle_window_event
23812 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23813 (install_menu_target_item_handler): Remove argument in extern.
23814 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23815 Also accept command events.
23816 (do_keystroke): New function created from XTread_socket.
23817 (init_command_handler): Remove functions.
23818 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23819 and save window location by kEventWindowShowing and kEventWindowHiding
23820 handlers here. Don't call next handler for window state change and
23821 focus events.
23822 (mac_handle_application_event, mac_handle_keyboard_event)
23823 [TARGET_API_MAC_CARBON]: New functions.
23824 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23825 kEventWindowShowing and kEventWindowHiding events. Move installation
23826 of mouse, font, text input and menu target item handlers to
23827 install_application_handler.
23828 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23829 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23830 New function.
23831 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23832 Register it.
23833 (XTread_socket) [TARGET_API_MAC_CARBON]:
23834 Consolidate SendEventToEventTarget calls.
23835 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23836 Move application activation handler to mac_handle_application_event.
23837 Move keyboard handler to mac_handle_keyboard_event.
23838 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23839 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23840 init_command_handler. Call install_application_handler.
23841
23842 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23843 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23844
238452007-06-07 Glenn Morris <rgm@gnu.org>
23846
23847 * emacs.c (main): Use `emacs-copyright' in --version output.
23848
238492007-06-06 Chong Yidong <cyd@stupidchicken.com>
23850
23851 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23852
238532007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23854
23855 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23856
23857 * macgui.h: Replace WindowPtr with WindowRef.
23858
23859 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23860 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23861 Replace ControlHandle with ControlRef.
23862 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23863
23864 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23865 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23866 Replace ControlHandle with ControlRef.
23867 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23868 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23869
23870 * macterm.h (struct scroll_bar): Rename member control_handle_low
23871 and control_handle_high to control_ref_low and control_ref_high.
23872 All uses changed.
23873 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23874 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23875 respectively. All uses changed.
23876 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23877 (install_window_handler, remove_window_handler): Replace WindowPtr
23878 with WindowRef in externs.
23879
238802007-06-05 Juanma Barranquero <lekktu@gmail.com>
23881
23882 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23883
238842007-06-03 Nick Roberts <nickrob@snap.net.nz>
23885
23886 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23887
23888 * frame.c (Fmouse_position, Fmouse_pixel_position):
23889 Condition on HAVE_GPM too.
23890
23891 * term.c (term_mouse_highlight): Remove unused variables.
23892 (Fterm_open_connection): Set gpm_zerobased to 1.
23893 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23894 Use zero based co-ordinates.
23895 (handle_one_term_event): Report a drag as mouse movement too.
23896
23897 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23898
238992007-06-03 Chong Yidong <cyd@stupidchicken.com>
23900
23901 * image.c (search_image_cache): New function. Require background
23902 color match if background color is unspecified in the image spec.
23903 (uncache_image, lookup_image): Use it.
23904
239052007-06-01 Juanma Barranquero <lekktu@gmail.com>
23906
23907 * window.c (Fshrink_window): Reflow docstring.
23908
239092007-06-02 Chong Yidong <cyd@stupidchicken.com>
23910
23911 * Version 22.1 released.
23912
239132007-06-01 Richard Stallman <rms@gnu.org>
23914
23915 * xfns.c (x_encode_text): Add GCPRO.
23916
239172007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23918
23919 * xfns.c (x_set_name_internal): Save encoded name before
23920 x_encode_text in case string data is relocated.
23921
239222007-05-31 Richard Stallman <rms@gnu.org>
23923
23924 * buffer.c (syms_of_buffer): Doc fix.
23925
239262007-05-30 Nick Roberts <nickrob@snap.net.nz>
23927
23928 * sysdep.c (init_sys_modes): Add rather than replace with
23929 O_NONBLOCK.
23930
23931 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23932 term_mouse_moveto.
23933
23934 * termhooks.h (term_mouse_moveto): New extern.
23935
23936 * term.c (mouse_face_window): Rename...
23937 (Qmouse_face_window): ...to this.
23938 (term_show_mouse_face, term_clear_mouse_face)
23939 (term_mouse_highlight): Use Qmouse_face_window.
23940 (term_mouse_moveto): New function.
23941 (term_mouse_position): Make it work.
23942 (syms_of_term): Uncomment assignment to mouse_position_hook.
23943 Staticpro Qmouse_face_window.
23944
239452007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23946
23947 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23948 around current_column call.
23949
239502007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23951
23952 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23953 * xdisp.c (next_element_from_buffer):
23954 * window.c (delete_window):
23955 * term.c (term_mouse_highlight):
23956 * msdos.c (getdefdir):
23957 * macterm.c (mac_create_bitmap_from_bitmap_data)
23958 (init_font_name_table):
23959 * fns.c (Fsxhash):
23960 * data.c (Fmake_local_variable):
23961 * ccl.c (ccl_driver): Likewise.
23962
239632007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23964
23965 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23966 Call mac_wakeup_from_rne on window size change.
23967
239682007-05-25 Chong Yidong <cyd@stupidchicken.com>
23969
23970 * image.c (uncache_image): Fix typo.
23971
239722007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23973
23974 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23975
239762007-05-22 Richard Stallman <rms@gnu.org>
23977
23978 * xterm.c (x_connection_closed): Remove NO_RETURN.
23979
239802007-05-22 Martin Rudalics <rudalics@gmx.at>
23981
23982 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23983
239842007-05-21 Chong Yidong <cyd@stupidchicken.com>
23985
23986 * image.c (uncache_image): New function.
23987 (Fimage_refresh): New function.
23988
239892007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23990
23991 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23992
239932007-05-20 Nick Roberts <nickrob@snap.net.nz>
23994
23995 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23996 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23997
239982007-05-20 Nick Roberts <nickrob@snap.net.nz>
23999
24000 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24001 conditional on [HAVE_GPM_H].
24002
240032007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24004
24005 * syntax.c (skip_chars): Update syntax-table only after we checked that
24006 the new location is valid.
24007
240082007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24009
24010 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24011 mac_get_window_bounds.
24012
240132007-05-20 Nick Roberts <nickrob@snap.net.nz>
24014
24015 * Makefile.in (LIBGPM): Allow it to be set from configure.
24016 If set then link Emacs with it.
24017
24018 * config.in: Regenerate.
24019
24020 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24021 New externs.
24022
24023 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24024 Include gpm.h.
24025 (handle_one_term_event, term_gpm): New externs.
24026
24027 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24028 and allow it to be interrupted by SIGIO.
24029
24030 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24031 (wait_reading_process_output): Wait on gpm_fd too.
24032 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24033 (add_gpm_wait_descriptor_called_flag): New variable.
24034 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24035
24036 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24037 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24038 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24039 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24040 (make_lispy_event): Add case GPM_CLICK_EVENT.
24041 (read_avail_input): Handle mouse input.
24042
24043 * term.c (write_glyphs_with_face): New function.
24044 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24045 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24046 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24047 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24048 (last_mouse_x, last_mouse_y): New variables.
24049 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24050 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24051 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24052 (Fterm_close_connection): New functions.
24053 (term_init): Initialise mouse_face_window.
24054
240552007-05-19 Chong Yidong <cyd@stupidchicken.com>
24056
24057 * xdisp.c (redisplay_window): If first window line is a
24058 continuation line, recompute the new window start instead of
24059 recentering.
24060
240612007-05-18 Glenn Morris <rgm@gnu.org>
24062
24063 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24064 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24065
240662007-05-17 Glenn Morris <rgm@gnu.org>
24067
24068 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24069
240702007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24071
24072 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24073 dead key repeat and up events.
24074
240752007-05-14 Chong Yidong <cyd@stupidchicken.com>
24076
24077 * image.c (pbm_load): Check image size for monochrome pbm.
24078
240792007-05-13 Chong Yidong <cyd@stupidchicken.com>
24080
24081 * xterm.c (XTread_socket): Revert last change.
24082
240832007-05-12 Chong Yidong <cyd@stupidchicken.com>
24084
24085 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24086
24087 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24088
240892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24090
24091 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24092 mixup (YAILOM).
24093
240942007-05-07 Andreas Schwab <schwab@suse.de>
24095
24096 * keymap.c (Flookup_key): Fix typo in last change.
24097
240982007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24099
24100 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24101 mapping for unibyte strings.
24102
241032007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24104
24105 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24106 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24107
241082007-04-29 Richard Stallman <rms@gnu.org>
24109
24110 * insdel.c (replace_range): For undo, record insertion first.
24111
241122007-04-29 Andreas Schwab <schwab@suse.de>
24113
24114 * lisp.h (VECSIZE): Use OFFSETOF.
24115
241162007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24117
24118 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24119 disabled lines.
24120
241212007-04-28 Richard Stallman <rms@gnu.org>
24122
24123 * lread.c (read_escape): In a string, \s is always space.
24124
241252007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24126
24127 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24128
24129 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24130 submenu for menu bar items.
24131
24132See ChangeLog.10 for earlier changes.
24133
24134;; Local Variables:
24135;; coding: utf-8
24136;; add-log-time-zone-rule: t
aac0c6e3
MR
24137;; End:
24138
e3eb1dae 24139 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24140
24141 This file is part of GNU Emacs.
24142
24143 GNU Emacs is free software: you can redistribute it and/or modify
24144 it under the terms of the GNU General Public License as published by
24145 the Free Software Foundation, either version 3 of the License, or
24146 (at your option) any later version.
24147
24148 GNU Emacs is distributed in the hope that it will be useful,
24149 but WITHOUT ANY WARRANTY; without even the implied warranty of
24150 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24151 GNU General Public License for more details.
24152
24153 You should have received a copy of the GNU General Public License
24154 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24155
24156;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40