* lisp/simple.el (kill-new): Fix logic of kill-do-not-save-duplicates.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
087fc47a
JB
12010-06-04 Juanma Barranquero <lekktu@gmail.com>
2
3 Turn `directory-sep-char' into a noop.
4
5 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
6 (DIRECTORY_SEP): Define unconditionally.
7
8 * s/ms-w32.h (DIRECTORY_SEP): Remove.
9
10 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
11 call dostounix_filename directly.
12
13 * fileio.c (CORRECT_DIR_SEPS): Remove.
14 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
15 (Fsubstitute_in_file_name): Use dostounix_filename instead.
16 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
17 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
18
19 * w32proc.c (CORRECT_DIR_SEPS): Remove.
20 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
21
eb697db5
DN
222010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
23
24 Move UNEXEC definition to autoconf.
25 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
26 * s/sol2-10.h (UNEXEC):
27 * s/irix6-5.h (UNEXEC):
28 * s/hpux10-20.h (UNEXEC):
29 * s/gnu-linux.h (UNEXEC):
30 * s/darwin.h (UNEXEC):
31 * s/cygwin.h (UNEXEC):
32 * s/bsd-common.h (UNEXEC):
33 * s/aix4-2.h (UNEXEC):
34 * m/alpha.h (UNEXEC): Likewise.
35 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
36
aa3830c4
JB
372010-06-03 Juanma Barranquero <lekktu@gmail.com>
38
39 Remove obsolete pre-unicode2 macros.
40 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
41 * composite.c (composition_reseat_it):
42 * data.c (Faset):
43 * fns.c (Ffillarray):
44 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
45 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
46
d234d13e
JL
472010-06-03 Juri Linkov <juri@jurta.org>
48
49 * buffer.c (Fother_buffer): Add CHECK_FRAME.
50 (Fswitch_to_buffer): Remove unused variable `err'.
51
0d4bcf4d
GM
522010-06-03 Glenn Morris <rgm@gnu.org>
53
e23dc1e2
GM
54 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
55
05b09564
GM
56 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
57 now that AH_BOTTOM does it.
58
824e2978
GM
59 * m/hp800.h (HAVE_ALLOCA):
60 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
61
0d4bcf4d
GM
62 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
63 Remove NOT_C_CODE tests, it is always true now.
64
c55d2abf
DN
652010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
66
08a494a3
DN
67 Fix config.h includes.
68 * xsettings.c:
69 * xgselect.c:
70 * nsterm.m:
71 * nsselect.m:
72 * nsimage.m:
73 * nsfont.m:
74 * nsfns.m:
75 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
76 other files do.
77
75934b1d
DN
78 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
79
9f32a766
DN
80 * s/sol2-6.h: Remove obsolete comments.
81
c55d2abf
DN
82 Remove unnecessary alloca.h includes.
83 * keymap.c: Do not include alloca.h, config.h does that.
84 * sysdep.c: Likewise. Do not define fwrite, not used.
85
06ac62b4
SM
862010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
87
88 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
89 the HAVE_TERMIO where it belongs (bug#6149).
90
1ab8293c
SM
912010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
92
93 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
94 of bug#6305).
95
6dcfd253
EZ
962010-05-30 Eli Zaretskii <eliz@gnu.org>
97
98 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
99 state is always cached (bug#6306).
100
6d26bbb2
EZ
1012010-05-29 Eli Zaretskii <eliz@gnu.org>
102
06fa4a23
EZ
103 Fix cursor motion in bidi-reordered continued lines.
104 * xdisp.c (try_cursor_movement): Backup to non-continuation line
105 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
106 over continuation lines in bidi-reordered buffers. Return
107 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
108 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
109
f5783df3
MA
1102010-05-28 Michael Albinus <michael.albinus@gmx.de>
111
112 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
113
7d56b2dd
KH
1142010-05-28 Kenichi Handa <handa@m17n.org>
115
116 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
117 Don't sheck SPEC if it is nil.
118 (font_list_entities): Call font_delete_unmatched if
b925d231 119 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 120
e58d4ff7
GM
1212010-05-28 Glenn Morris <rgm@gnu.org>
122
123 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
124
f1a5d776
CY
1252010-05-27 Chong Yidong <cyd@stupidchicken.com>
126
127 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
128 whether to trash.
129 (internal_delete_file, Frename_file): Callers changed.
130 (delete_by_moving_to_trash): Doc fix.
131 (Fdelete_directory_internal): Don't move to trash.
132
133 * callproc.c (delete_temp_file):
134 * buffer.c (Fkill_buffer): Callers changed.
135
136 * lisp.h: Update prototype.
137
f44a59e6
CY
1382010-05-27 Chong Yidong <cyd@stupidchicken.com>
139
140 * xdisp.c (redisplay_window): After redisplay, check if point is
141 still valid before setting it (Bug#6177).
142
81ac4f35
GM
1432010-05-27 Glenn Morris <rgm@gnu.org>
144
145 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
146 Convert comments to Makefile format.
147
148 * Makefile.in (bootstrap-clean): No more Makefile.c.
149
ccd89fb3
GM
1502010-05-26 Glenn Morris <rgm@gnu.org>
151
90278cb6
GM
152 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
153 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
154
ccd89fb3
GM
155 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
156 Remove.
157 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
158
b7050583
KH
1592010-05-26 Kenichi Handa <handa@m17n.org>
160
161 * composite.c (composition_compute_stop_pos): Fix condition for
162 backward scanning.
163
e5458003
GM
1642010-05-25 Glenn Morris <rgm@gnu.org>
165
c345fe90
GM
166 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
167 Move before TEMACS_LDFLAGS.
168 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
169 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
170
2e0689ab
GM
171 * Makefile.in (NOT_C_CODE): No longer define.
172 (config.h): No longer include.
173
8009a5e8
GM
174 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
175 variables it may reference.
176
e5458003
GM
177 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
178 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
179
10f72a37
KH
1802010-05-25 Kenichi Handa <handa@m17n.org>
181
182 * dispextern.h (struct composition_it): New members rule_idx and
183 charpos.
184
185 * xdisp.c (set_iterator_to_next): While scanning backward, assume
186 that the character positions of IT point the last character of the
187 current grapheme cluster.
188 (next_element_from_composition): Don't change character positions
189 of IT.
190 (append_composite_glyph): Set glyph->charpos to
191 it->cmp_it.charpos.
192
193 * composite.c (autocmp_chars): Change the first argument to RULE,
194 and try composition with RULE only.
195 (composition_compute_stop_pos): Record the index number of the
196 composition rule in CMP_IT->rule_idx.
197 (composition_reseat_it): Call autocmp_chars repeatedly until the
198 correct rule of the composition is found.
199 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
200 is at the last character of the current grapheme cluster when
201 CMP_IT->reversed_p is nonzero.
202
171eda53 2032010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 204
171eda53
SM
205 * editfns.c (Fbyte_to_string): New function.
206
66a9f7f4
SM
2072010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
208
209 * process.c (Fmake_network_process): Set :host to nil if it's not used.
210 Suggested by Masatake YAMATO <yamato@redhat.com>.
211
d8c315d1
EZ
2122010-05-23 Eli Zaretskii <eliz@gnu.org>
213
171eda53 214 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 215
f5b416d2 2162010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
217
218 * s/netbsd.h: If terminfo is found, use it in preference to
219 termcap. (Bug#6190) [Backport from trunk]
220
0416466c
EZ
2212010-05-19 Eli Zaretskii <eliz@gnu.org>
222
11117830 223 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
224
225 * dispextern.h (struct glyph_row): New members minpos and maxpos.
226 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
227 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
228 and maxpos members instead of start.pos and end.pos, respectively.
229
230 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
231 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
232 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
233 (try_window_reusing_current_matrix, try_window_id):
234 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
235 (init_from_display_pos, init_iterator): Use EMACS_INT for
236 character and byte positions.
66a9f7f4 237 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
238 arguments for minimum and maximum buffer positions seen by
239 display_line for this row. Don't use iterator to find the
240 position following the maximum one; instead, increment the
11117830
EZ
241 position found by display_line directly. Fix logic; eol_pos
242 should be tested before the rest. Handle the case of characters
243 delivered from display vector (bug#6036). Fix tests related to
244 it->method. Handle the truncated_on_right_p rows.
245 (RECORD_MAX_MIN_POS): New macro.
246 (display_line): Use it to record the minimum and maximum buffer
247 positions for glyphs in the row being assembled. Record the
248 position of the newline that terminates the line. If word wrap is
249 in effect, restore minimum and maximum positions seen up to the
250 wrap point, when iterator returns to it.
251 (try_window_reusing_current_matrix): Give up if in bidi-reordered
252 row and cursor not already at point. Restore original pre-bidi
253 code for unidirectional buffers.
d36fe237
EZ
254
255 * dispnew.c (increment_row_positions, check_matrix_invariants):
256 Increment and check row->start.pos and row->end.pos, in addition
257 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
258
11117830
EZ
259 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
260 Display truncated_on_left_p and truncated_on_right_p flags.
261 Formatting fixes.
262 (pmtxrows): Display the ordinal number of each row. Don't display
263 rows beyond the last one.
264
265 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
266 it is not copied by bidi_copy_it.
267
6e83d800
EZ
2682010-05-22 Eli Zaretskii <eliz@gnu.org>
269
270 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
271 (Bug#6237)
272
110683ad
CY
2732010-05-22 Chong Yidong <cyd@stupidchicken.com>
274
275 * image.c (Fimage_flush): Rename from image-refresh.
276
98fe5161
CY
2772010-05-21 Chong Yidong <cyd@stupidchicken.com>
278
279 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
280 just one window.
281
282 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
283 (clear_image_cache): If the number of cached images is unusually
284 large, decrease the cache eviction delay (Bug#6230).
285
e8752c66
GM
2862010-05-21 Glenn Morris <rgm@gnu.org>
287
66dbf213
GM
288 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
289 Move these rules to ns.mk.
290 * ns.mk: New file.
291
04384b2d
GM
292 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
293
e8752c66
GM
294 * Makefile.in (CANNOT_DUMP): New, set by configure.
295 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
296
2e2bbddb
JL
2972010-05-20 Juri Linkov <juri@jurta.org>
298
299 * fileio.c (Fdelete_file): Change interative spec to use
300 `read-file-name' like in `find-file-read-args' where the default
301 value is `default-directory' instead of `buffer-file-name'.
302 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
303
31c4aaf6
KR
3042010-05-20 Kevin Ryde <user42@zip.com.au>
305
306 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
307 (Voverriding_terminal_local_map, Vsystem_key_alist)
308 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
309
9d5cf9b6
GM
3102010-05-20 Glenn Morris <rgm@gnu.org>
311
312 * Makefile.in (DEPDIR): New constant.
313 (DEPFLAGS): Set with configure, not cpp.
314 (MKDEPDIR): New, set by configure.
315 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
316 (clean): Use $DEPDIR.
317 (deps_frag): Include from configure.
318 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
319 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
320
ead6f8f5
EZ
321 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
322 reallocation of the cache. (Bug#6210)
323
7f34aec3
GM
3242010-05-19 Glenn Morris <rgm@gnu.org>
325
d494e8f2
GM
326 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
327
c1d0dcfd
GM
328 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
329 (GNULIB_VAR): Remove.
330 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
331
332 * m/ibms390x.h (LINKER):
333 * m/macppc.h (LINKER) [GNU_LINUX]:
334 * s/aix4-2.h (ORDINARY_LINK):
335 * s/cygwin.h (LINKER):
336 * s/darwin.h (ORDINARY_LINK):
337 * s/gnu.h (ORDINARY_LINK):
338 * s/netbsd.h (LINKER):
339 * s/usg5-4.h (ORDINARY_LINK):
340 Move to configure.
341
7f34aec3
GM
342 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
343
754790b6
CY
3442010-05-18 Chong Yidong <cyd@stupidchicken.com>
345
346 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
347 prevent stack overflow if number of arguments is too large
348 (Bug#6214).
349
161e44d1
JB
3502010-05-18 Juanma Barranquero <lekktu@gmail.com>
351
352 * charset.c (load_charset_map_from_file): Don't call close after fclose.
353
be4ff9da
GM
3542010-05-18 Glenn Morris <rgm@gnu.org>
355
9539dc5d
GM
356 * s/gnu-linux.h: Combine two conditionals.
357
358 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
359 $(POST_ALLOC_OBJ).
360
40dc6bf4
GM
361 * Makefile.in (RALLOC_OBJ): New, set by configure.
362 (rallocobj): Replace with the previous variable.
363 (otherobj): Use $RALLOC_OBJ.
364
365 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
366 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
367
be4ff9da
GM
368 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
369 (gmallocobj, vmlimitobj): Replace with previous two variables.
370 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
371
16455a85
GM
3722010-05-17 Glenn Morris <rgm@gnu.org>
373
374 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
375 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
376
5fdb7468
GM
3772010-05-16 Glenn Morris <rgm@gnu.org>
378
7ca1f3f9
GM
379 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
380
7541dad5
GM
381 * Makefile.in (clean): Get rid of HAVE_NS conditional.
382
da53fab9
GM
383 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
384 trailing "/".
385
b02a6645
GM
386 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
387 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
388
8877ca0f
GM
389 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
390 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
391 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
392 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
393 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
394
5fdb7468
GM
395 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
396 Remove ${STARTFLAGS}, nothing ever sets it.
397
95adb4b1
DN
3982010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
399
400 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
401
676b6304
GM
4022010-05-16 Glenn Morris <rgm@gnu.org>
403
9beab9ce
GM
404 * Makefile.in (LIBX_BASE): Always define.
405
8a95f0e7
GM
406 * Makefile.in (LIBX_OTHER): Move out of cpp section.
407
676b6304
GM
408 * Makefile.in (LIBXT): Always define.
409
6e546d18
GM
4102010-05-15 Glenn Morris <rgm@gnu.org>
411
4235ca47 412 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 413
6e546d18
GM
414 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
415 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
416
8c5ff6dd
KR
4172010-05-15 Ken Raeburn <raeburn@raeburn.org>
418
560bb7ae 419 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
420 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
421
8b4eb796
KR
422 * emacs.c (main): Initialize initial-environment and
423 process-environment before generating from env, not after.
424
8c5ff6dd
KR
425 Handle --version reasonably in CANNOT_DUMP configuration.
426 * emacs.c (emacs_version, emacs_copyright): New string variables.
427 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
428 (syms_of_emacs): Defvar them, and initialize them from the C
429 string variables.
430 (main): If initialization hasn't been done, print initial version
431 info from the C strings, instead of starting an interactive session.
432
dbd3f723
EZ
4332010-05-15 Eli Zaretskii <eliz@gnu.org>
434
d20e1419
EZ
435 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
436 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
437 (bidi_paragraph_init): Remove redundant assertion that we are at
438 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
439
440 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
441 (syms_of_xdisp): Defsubr it.
442
d36fe237
EZ
443 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
444
dbd3f723
EZ
445 * Makefile.in: Fix MSDOS-related comments.
446
02be533b
GM
4472010-05-15 Glenn Morris <rgm@gnu.org>
448
1a82cca9
GM
449 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
450 (really-lwlib, really-oldXMenu): Always define.
451 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
452
3df7b338
GM
453 * Makefile.in: Simplify cpp conditional.
454
2b5f541b
GM
455 * Makefile.in (${ns_appdir}): Simplify using umask.
456
02be533b
GM
457 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
458
4e2db1fe
SM
4592010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
460
461 * eval.c (specbind): Remove left-over duplicate test.
462 Disallow let-binding frame-local vars. Add comment.
463
4b292a22
EZ
4642010-05-14 Eli Zaretskii <eliz@gnu.org>
465
2fe72643 466 Make the cache of bidi iterator states dynamically allocated.
1edbd309 467 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
468 (bidi_init_it): Call it.
469 (bidi_cache_iterator_state): Enlarge the cache if needed.
470
4e2db1fe 471 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
472 bidi_get_next_char_visually. All callers changed.
473
82ebc97b
KH
4742010-05-14 Kenichi Handa <handa@m17n.org>
475
476 * dispextern.h (struct composition_it): New member reversed_p.
477
478 * composite.c (composition_compute_stop_pos): Search backward if
479 ENDPOS < CHARPOS.
480 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
481 Set CMP_IT->reversed_p.
b4b6e17e 482 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 483
4e2db1fe
SM
484 * xdisp.c (set_iterator_to_next):
485 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
486 scanning backward. Call composition_compute_stop_pos if scan
487 direction is changed.
488 (next_element_from_buffer): Call composition_compute_stop_pos with
489 negative ENDPOS if we are scanning backward.
490 (next_element_from_composition): Pay attention to
491 IT->cmp_it.reversed_p.
492
0e5d7800
KH
4932010-05-14 Kenichi Handa <handa@m17n.org>
494
560bb7ae 495 * font.c (font_range): Return the range for the font found at first.
0e5d7800 496
cb027b32
GM
4972010-05-14 Glenn Morris <rgm@gnu.org>
498
177b0288
GM
499 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
500
fbc00890
GM
501 * Makefile.in (mktime, X11, register): Move undefs to configure.
502
f14d1dfd
GM
503 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
504 (MSDOS_X_OBJ): New variable.
505 (MSDOS_SUPPORT_REAL): New constant.
506 (MSDOS_SUPPORT): Set as a variable, not with cpp.
507 (obj): Use MSDOS_X_OBJ.
508 (lisp): Use MSDOS_SUPPORT as a variable.
509
11842bd8
GM
510 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
511 (GPM_MOUSE_SUPPORT): Now it's a constant.
512 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
513 not cpp.
514
489d31a4 515 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 516 (ns_appresdir): Remove, unused.
e20f1f07 517
489d31a4
GM
518 * Makefile.in (SHELL): Move outside cpp section.
519
cb027b32
GM
520 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
521
5a903aa9
GM
5222010-05-13 Glenn Morris <rgm@gnu.org>
523
3369c79f
GM
524 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
525 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
526
d5e982a6
GM
527 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
528 HAVE_WINDOW_SYSTEM must be too.
529
6192e163
GM
530 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
531 (lisp): Remove WINNT_SUPPORT.
532
472c5d6b
GM
533 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
534 Let configure set these variables (to empty) in this case as well.
535
0116466b
GM
536 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
537 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
538
5a903aa9
GM
539 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
540 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
541 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
542 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
543 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 544 the values output by configure.
5a903aa9
GM
545 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
546
1a0d7c06
GM
5472010-05-12 Glenn Morris <rgm@gnu.org>
548
b5457f14
GM
549 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
550 (LINKER_WAS_SPECIFIED): Remove.
551
1a0d7c06
GM
552 * Makefile.in (LIB_GCC): Set using configure, not cpp.
553 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
554 * m/arm.h (LIB_GCC) [GNU_LINUX]:
555 * s/cygwin.h (LIB_GCC):
556 * s/freebsd.h (LIB_GCC):
557 * s/gnu-linux.h (LIB_GCC):
558 * s/msdos.h (LIB_GCC):
559 * s/netbsd.h (LIB_GCC):
560 Move to configure.
561
3ffd4615 5622010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
563
564 * ftfont.c: Fix incorrect parentheses of #if condition for
565 definining M17N_FLT_USE_NEW_FEATURE.
566
acddf8ae
GM
5672010-05-11 Glenn Morris <rgm@gnu.org>
568
569 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
570 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
571
ae5e04fa
EZ
5722010-05-10 Eli Zaretskii <eliz@gnu.org>
573
574 * xdisp.c (init_iterator): Don't turn on bidi reordering in
575 unibyte buffers. See
576 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
577
7490175b
GM
5782010-05-10 Glenn Morris <rgm@gnu.org>
579
97efb629
GM
580 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
581 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
582 (LIBES): Use LIBS_SYSTEM as a variable.
583 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
584 * s/aix4-2.h (LIBS_SYSTEM):
585 * s/freebsd.h (LIBS_SYSTEM):
586 * s/hpux10-20.h (LIBS_SYSTEM):
587 * s/sol2-6.h (LIBS_SYSTEM):
588 * s/unixware.h (LIBS_SYSTEM):
589 Move to configure.
590
7490175b
GM
591 * s/aix4-2.h (MAIL_USE_LOCKF):
592 * s/bsd-common.h (MAIL_USE_FLOCK):
593 * s/darwin.h (MAIL_USE_FLOCK):
594 * s/gnu-linux.h (MAIL_USE_FLOCK):
595 * s/irix6-5.h (MAIL_USE_FLOCK):
596 * s/template.h (MAIL_USE_FLOCK):
597 Move to configure.
598
0235128c 5992010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
600
601 * Version 23.2 released.
602
0235128c 6032010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
604
605 * composite.c (autocmp_chars): Save point as marker before calling
606 auto-composition-function (Bug#5984).
607
608 * lisp.h (restore_point_unwind): Add prototype.
609
610 * fileio.c (restore_point_unwind): Remove static attribute.
611
0235128c 6122010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
613
614 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
615 new feature of libotf and m17n-flt.
0235128c
SM
616 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
617 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
618 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
619 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
620 that OUT is NULL. Use OTF_drive_gsub_with_log and
621 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
622 OTF_drive_gpos.
623 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
624 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
625 Setup mflt_enable_new_feature and mflt_try_otf.
626
4721152c
J
6272010-05-08 Jan Djärv <jan.h.d@swipnet.se>
628
629 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
630
631 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
632 box and toolbar (Bug #6139).
633 (xg_create_tool_bar): Remove comment (Bug #6139).
634 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
635 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
636
ee0a16cf
JB
6372010-05-08 Juanma Barranquero <lekktu@gmail.com>
638
639 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
640 Update dependencies.
641
96d79611
EZ
6422010-05-08 Eli Zaretskii <eliz@gnu.org>
643
644 * fringe.c (update_window_fringes): Set up truncation bitmaps for
645 R2L lines.
646
40c17879
GM
6472010-05-08 Glenn Morris <rgm@gnu.org>
648
7b42b29f
GM
649 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
650
40c17879
GM
651 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
652 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
653 (termcapobj): Replace with TERMCAP_OBJ.
654 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
655 (LIBES): Use LIBS_TERMCAP as a variable.
656
657 * s/freebsd.h (osreldate.h): No longer include, since this file
658 does not use __FreeBSD_version any more.
659
660 * s/aix4-2.h (TERMINFO):
661 * s/cygwin.h (TERMINFO):
662 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
663 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
664 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
665 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
666 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
667 * s/irix6-5.h (TERMINFO):
668 * s/netbsd.h (LIBS_TERMCAP):
669 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
670 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
671 * s/usg5-4.h (TERMINFO):
672 Move to configure.
673
94b612ad
SM
6742010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
675
676 * eval.c (unbind_to): Don't unbind a local binding into the global
677 binding when the local binding disappeared. Inversely, don't unbind
678 a global binding into a newly created local binding.
679 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
680 can specify the frame to use, when applicable. Adjust callers.
681
15e12598
VB
6822010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
683 Stefan Monnier <monnier@iro.umontreal.ca>
684
685 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
686
f724825e
EZ
6872010-05-07 Eli Zaretskii <eliz@gnu.org>
688
5cba3209
EZ
689 * w32fns.c: Include w32.h.
690 (Fw32_shell_execute): Decode the error message before passing it
691 to `error'. (Bug#6126)
692
d16bdfc3
EZ
693 * msdos.c (dos_set_window_size):
694 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
695 instead of `XSYMBOL (foo)->value'.
696
59d93e87
EZ
6972010-05-07 Eli Zaretskii <eliz@gnu.org>
698
9fdec8bc
EZ
699 Fix the MS-DOS build, broken by autoconfiscation.
700
701 * Makefile.in: Don't use Make-style comments past the "start of
702 cpp stuff" line.
703 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
704
705 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
706 edited directly by msdos/sed1v2.inp).
f724825e 707
2f86b22b
GM
7082010-05-07 Glenn Morris <rgm@gnu.org>
709
710 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
711 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
712 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
713 move out of cpp section.
714 * s/freebsd.h (LD_SWITCH_SYSTEM):
715 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
716 * s/netbsd.h (LD_SWITCH_SYSTEM):
717 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
718
49ebbd65
DN
7192010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
720
721 Define LIB_STANDARD and START_FILES using autoconf.
722 * s/usg5-4.h (LIB_STANDARD):
723 * s/netbsd.h (START_FILES):
724 * s/irix6-5.h (LIB_STANDARD):
725 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
726 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
727 * s/freebsd.h (START_FILES):
728 * s/darwin.h (START_FILES):
729 * s/cygwin.h (START_FILES):
730 * s/aix4-2.h (LIB_STANDARD):
731 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
732 * Makefile.in (STARTFILES): Rename to START_FILES, define using
733 autoconf, not cpp.
734
d43c06d6
DN
7352010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
736
28823648
DN
737 Remove NEED_BSDTTY and NEED_UNISTD_H.
738 * s/hpux10-20.h (NEED_BSDTTY): Remove.
739 * s/aix4-2.h (NEED_UNISTD_H): Remove.
740 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
741 <sys/ptyio.h> and <unistd.h>.
742
aca00430
DN
743 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
744
d43c06d6
DN
745 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
746 * s/gnu.h (START_FILES): Remove empty definition.
747
3e56b11d
JD
7482010-05-06 Jan Djärv <jan.h.d@swipnet.se>
749
750 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
751
e3cf0cde
GM
7522010-05-06 Glenn Morris <rgm@gnu.org>
753
754 * Makefile.in (CPP, LN_S): Remove unused variables.
755
774b9a60
SM
7562010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
757
758 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
759
4ab92842
LM
7602010-05-05 Lawrence Mitchell <wence@gmx.li>
761
762 * m/sparc.h: Fix typo in earlier change.
763
178f2507
SM
7642010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
765
766 Misc tweaks.
767 * eval.c (Fdefvaralias): Remove unintended nested if.
768 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
769
80f00217 7702010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
771
772 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
773
ef03a4e6
DN
7742010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
775
58eb6cf0
DN
776 Remove BSD_PGRPS.
777 * s/bsd-common.h (BSD_PGRPS): Remove undef.
778 * s/gnu-linux.h (BSD_PGRPS): Remove.
779 * term.c (dissociate_if_controlling_tty):
780 * sysdep.c (narrow_foreground_group, widen_foreground_group)
781 (init_sys_modes, reset_sys_modes):
782 * emacs.c (main):
783 * callproc.c (Fcall_process, child_setup): Remove code depending
784 on BSD_PGRPS.
785
ef03a4e6
DN
786 Remove POSIX_SIGNALS.
787 * s/usg5-4.h (POSIX_SIGNALS):
788 * s/netbsd.h (POSIX_SIGNALS):
789 * s/msdos.h (POSIX_SIGNALS):
790 * s/ms-w32.h (POSIX_SIGNALS):
791 * s/hpux11.h (POSIX_SIGNALS):
792 * s/gnu.h (POSIX_SIGNALS):
793 * s/gnu-linux.h (POSIX_SIGNALS):
794 * s/freebsd.h (POSIX_SIGNALS):
795 * s/darwin.h (POSIX_SIGNALS):
796 * s/cygwin.h (POSIX_SIGNALS):
797 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
798 * s/unixware.h:
799 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
800 * process.c (create_process):
801 * syssignal.h:
802 * sysdep.c (wait_for_termination, init_signals):
803 * process.c (create_process):
804 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
805 remove all code that assumes the contrary.
806
49628785
GM
8072010-05-04 Glenn Morris <rgm@gnu.org>
808
27a2cdfc
GM
809 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
810 variable.
811 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
812 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
813 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
814 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
815 LD_SWITCH_SYSTEM_tmp.
816 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
817 New variables, set by configure.
818
eb21eab5
GM
819 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
820 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
821 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
822 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
823 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
824
49628785
GM
825 * s/aix4-2.h (C_SWITCH_SYSTEM):
826 * m/alpha.h (C_SWITCH_MACHINE):
827 Move to configure.in.
828 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
829 New variables, set by configure.
830 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
831 $c_switch_machine and $c_switch_system.
832
7dff330b
DN
8332010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
834
835 * s/hpux10-20.h (LIB_STANDARD): New definition.
836 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
837 on it, not used anymore.
838
53967e09
CY
8392010-05-03 Chong Yidong <cyd@stupidchicken.com>
840
841 * eval.c (internal_condition_case_n): Rename from
842 internal_condition_case_2.
843 (internal_condition_case_2): New function.
844
845 * xdisp.c (safe_call): Use internal_condition_case_n.
846
847 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
848 (internal_delete_file, Frename_file): Callers changed.
849
850 * buffer.c (Fkill_buffer):
851 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
852
853 * lisp.h: Update prototypes.
854
3dee6fdb
GM
8552010-05-03 Glenn Morris <rgm@gnu.org>
856
857 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
858 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
859 (LIBXT): Set with configure, not cpp.
860 (LIBX): Remove.
861 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
862
a101e0fb
DN
8632010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
864
865 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
866 The FreeBSD is not needed, the default works, Solaris version is
867 not needed, and the remaining case is not supported by configure.
868
f63d0028
JD
8692010-05-02 Jan Djärv <jan.h.d@swipnet.se>
870
871 * xsmfns.c (CHDIR_OPT): New define.
872 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
873 restarting emacs.
874
875 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
876 shut_down_emacs.
877
878 * emacs.c (USAGE1): Mention --chdir.
879 (main): Handle --chdir.
880 (standard_args): Add --chdir.
881 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
882 #5552).
883
e4814a9f
DN
8842010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
885
cd03c74a
DN
886 Remove LD_SWITCH_MACHINE.
887 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
888 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
889
c3a398a1
DN
890 Clean up IRIX code.
891 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
892 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
893
87e7285c
DN
894 Clean up AIX code.
895 * m/ibmrs6000.inp: Remove file, unused.
896 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
897 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
898 definition ...
899 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
900
80f00217
JB
901 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
902 unused.
e4814a9f 903
59ca28de
EZ
9042010-05-01 Eli Zaretskii <eliz@gnu.org>
905
197daef4
EZ
906 Emulate POSIX_SIGNALS on MS-Windows.
907
908 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
909 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
910
911 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
912 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
913 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
914
80f00217
JB
915 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
916 New stubs.
197daef4 917
af7c7572
EZ
918 Miscellaneous fixes of bidi display.
919
59ca28de
EZ
920 * xdisp.c (find_row_end): New function, refactored from display_line.
921 (display_line): Use it.
017ea819
EZ
922 (extend_face_to_end_of_line): In almost-filled rows, extend only
923 if the row is R2L and not continued.
166e930d 924 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 925 Preserve overlay and string info in row->end.
166e930d
EZ
926 (insert_left_trunc_glyphs): Support addition of left truncation
927 glyphs to R2L rows.
b47e0dcf 928 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
929 glyph between adjacent windows. Fix a crash when a display string
930 is continued to the next line. Don't return zero if cursor was
931 found by `cursor' property of a display string.
b47e0dcf
EZ
932 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
933 test for that explicitly.
59ca28de 934
7acac9f4
GM
9352010-05-01 Glenn Morris <rgm@gnu.org>
936
937 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
938 for clarity.
939 (OTHER_OBJ): Remove.
940 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
941 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
942
45841e65
KK
9432010-05-01 Karel Klíč <kklic@redhat.com>
944
945 * fileio.c (Ffile_selinux_context): Context functions may return null.
946
afc61943
DN
9472010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
948
80f00217 949 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 950
5a1bb006
GM
9512010-04-30 Glenn Morris <rgm@gnu.org>
952
953 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
954 (OTHER_OBJ): Define as a separate variable, for clarity.
955
210af043
J
9562010-04-30 Jan Djärv <jan.h.d@swipnet.se>
957
958 * xsettings.c: include limits.h and update file comment.
959
0a7df391
GM
9602010-04-30 Glenn Morris <rgm@gnu.org>
961
d5096f16
GM
962 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
963 Set with configure, not cpp.
964 (LIBW): Remove, replace with $TOOLKIT_LIBW.
965
7eb1ac33
GM
966 * Makefile.in (mallocobj): Remove.
967 (otherobj): Simplify using @OTHER_OBJ@.
968
517d086b
GM
969 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
970 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
971 Don't bother making nsgui.h dependency platform-specific.
972
0a7df391
GM
973 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
974
d6d23852
SM
9752010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
976
d2630aef
SM
977 * process.c (read_process_output, exec_sentinel): Don't burp if the
978 sentinel/filter kills the current buffer (bug#6060).
979
f9dddf52 980 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
981 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
982 Remove unused var `args'.
983 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
984 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
985 * doc.c (store_function_docstring): Use XSETCAR.
986
f1e3642a
GM
9872010-04-28 Glenn Morris <rgm@gnu.org>
988
faf535f8
GM
989 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
990 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
991
c40f9449
GM
992 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
993
658f86ca
GM
994 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
995 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
996
bc0b5f61
GM
997 * Makefile.in (FONT_OBJ): New, set by configure.
998 (FONT_DRIVERS): Use $FONT_OBJ.
999
294c50a0
GM
1000 * Makefile.in (LIBXMU): Set with configure, not cpp.
1001 * s/aix4-2.h (LIBXMU):
1002 * s/hpux10-20.h (LIBXMU):
1003 Remove definition, now set in configure.
1004
e6ec4e99
GM
1005 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1006
f1e3642a
GM
1007 * m/amdx86-64.h [i386]: Move this test to configure.in.
1008
c6ea2936
GM
10092010-04-27 Glenn Morris <rgm@gnu.org>
1010
8fdac2c3
GM
1011 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1012 * s/unixware.h (NEED_LIBW): Remove definition.
1013
986fb647
GM
1014 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1015 (TOOLKIT_LIBW): New, set by configure.
1016 (@X_TOOLKIT_TYPE@): No longer define it.
1017
c6ea2936
GM
1018 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1019 (MOTIF_LIBW): Set with configure, not cpp.
1020 * s/aix4-2.h (LIB_MOTIF):
1021 * s/gnu-linux.h (LIB_MOTIF):
1022 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1023
aaa36002
DN
10242010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1025
1026 Reduce CPP usage.
1027 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1028 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1029 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1030 definitions and undefs. Inline definitions in the only user.
1031 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1032
b678dd8b
GM
10332010-04-27 Glenn Morris <rgm@gnu.org>
1034
76cda504
GM
1035 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1036 since the defaults (set by the system file) are fine in most cases.
1037 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1038 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1039 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1040 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1041 Remove definitions, since they are set correctly in s/gnu-linux.h.
1042 * s/freebsd.h (START_FILES, LIB_STANDARD):
1043 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1044 * s/hpux10-20.h (START_FILES):
1045 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1046 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1047
b678dd8b
GM
1048 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1049 (MOTIF_LIBW): Use $LIBXP.
1050 (otherobj): Use $WIDGET_OBJ.
1051
9452ded1
DN
10522010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1053
7e10844c
DN
1054 * Makefile.in (LIBS_MACHINE): Remove, unused.
1055
9452ded1
DN
1056 Use autoconf instead of cpp for LIB_MATH.
1057 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1058 * s/cygwin.h (LIB_MATH): Likewise.
1059 * Makefile.in (LIB_MATH): Do not define with cpp.
1060 (LIBES): Use autoconf for LIB_MATH.
1061
fcebfc6a
KH
10622010-04-26 Kenichi Handa <handa@m17n.org>
1063
1064 * composite.c (Ffind_composition_internal): Fix the return value
1065 for an automatic composition.
1066
39e2ad1b
DN
10672010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1068
1069 Remove all NO_ARG_ARRAY uses.
1070 * fns.c (concat2, concat3, nconc2):
1071 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1072 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1073 * m/xtensa.h (NO_ARG_ARRAY):
1074 * m/template.h (NO_ARG_ARRAY):
1075 * m/sparc.h (NO_ARG_ARRAY):
1076 * m/sh3.h (NO_ARG_ARRAY):
1077 * m/mips.h (NO_ARG_ARRAY):
1078 * m/macppc.h (NO_ARG_ARRAY):
1079 * m/iris4d.h (NO_ARG_ARRAY):
1080 * m/intel386.h (NO_ARG_ARRAY):
1081 * m/ibms390x.h (NO_ARG_ARRAY):
1082 * m/ibms390.h (NO_ARG_ARRAY):
1083 * m/ibmrs6000.h (NO_ARG_ARRAY):
1084 * m/ia64.h (NO_ARG_ARRAY):
1085 * m/hp800.h (NO_ARG_ARRAY):
1086 * m/arm.h (NO_ARG_ARRAY):
1087 * m/amdx86-64.h (NO_ARG_ARRAY):
1088 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1089
adf4f59c
EZ
10902010-04-25 Eli Zaretskii <eliz@gnu.org>
1091
6bdf5d65
EZ
1092 * xdisp.c (display_line): Don't assume 2nd call to
1093 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1094 (iterate_out_of_display_property): New function, body from pop_it.
1095 (pop_it): Use it.
adf4f59c 1096
dfbbda83
GM
10972010-04-24 Glenn Morris <rgm@gnu.org>
1098
1099 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1100 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1101 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1102 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1103
2d4018aa
EZ
11042010-04-24 Eli Zaretskii <eliz@gnu.org>
1105
a49884a6
EZ
1106 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1107 use `get_next_display_element' and `set_iterator_to_next' to
1108 advance to the next character, when looking for the character that
1109 begins the next row.
1110
76db6fcc 1111 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1112 definition of "struct Lisp_Symbol".
1113
70eab5c1
GM
11142010-04-24 Glenn Morris <rgm@gnu.org>
1115
1116 * Makefile.in (CRT_DIR): New variable, set by configure.
1117 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1118 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1119
1ad4cc3d
DN
11202010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1121
e769f484
DN
1122 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1123
4196ff33
DN
1124 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1125
879b0ee4
DN
1126 Remove redundant flags.
1127 * s/freebsd.h (C_SWITCH_SYSTEM):
1128 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1129 * s/netbsd.h (C_SWITCH_SYSTEM):
1130 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1131 of these.
1132
03cbbcb8
DN
1133 Simplify m/intel386.h.
1134 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1135 user: ecrt0.c.
1136 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1137 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1138 the only user: s/unixware.h.
1139 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1140 from m/intel386.h.
1141 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1142 moved here from m/intel386.h.
1143
1ad4cc3d
DN
1144 * m/mips.h: Remove #if 0 code.
1145
8785b888
EZ
11462010-04-23 Eli Zaretskii <eliz@gnu.org>
1147
728588cc
EZ
1148 Fix display of composed characters from L2R scripts in bidi buffers.
1149 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1150 After advancing IT past the composition, resync the bidi iterator
1151 with IT's position. (Bug#5977)
1152
a63f80b4
DN
11532010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1154
1155 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1156 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1157
ff5dec5c
SM
11582010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1159
1160 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1161
8785b888
EZ
11622010-04-23 Eli Zaretskii <eliz@gnu.org>
1163
58ccf243 1164 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1165 * xdisp.c (pop_it): When the stack is popped after displaying
1166 from a string, bidi-iterate to exit from the text portion covered
1167 by the `display' property or overlay. (Bug#5988, bug#5920)
1168
feeb1604
DN
11692010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1170
8e324eb6
DN
1171 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1172 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1173
809fcaba
DN
1174 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1175 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1176
ed710380
DN
1177 Simplify STARTFILES definition.
1178 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1179 relying on Makefile.in to define it.
1180 * s/cygwin.h (START_FILES): Likewise.
1181 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1182
feeb1604
DN
1183 Clean up Solaris code.
1184 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1185 (LIB_MOTIF): Remove, configure takes care of this.
1186 (NOT_USING_MOTIF): Remove, unused.
1187 * xrdb.c: Remove #if 0-ed #include.
1188 (SYSV): Remove conditional for old SysV.
1189 * sysdep.c (closedir): Remove conditional code for Solaris,
1190 Solaris has closedir.
1191
a0d0b563
JD
11922010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1193
1194 * xsettings.c (read_and_apply_settings): Check if current_font is
1195 NULL before strcmp (Bug#6001).
1196
56bae7c7
DN
11972010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1198
1199 Clean up HP-UX files.
1200 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1201 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1202 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1203 * s/hpux10-20.h: ... to the only user, here.
1204
372b7a95
EZ
12052010-04-21 Eli Zaretskii <eliz@gnu.org>
1206
1207 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1208 use buffer-local values of paragraph-start and paragraph-separate.
1209 <paragraph_start_re, paragraph_separate_re>: Rename from
1210 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1211 (Bug#5992)
1212
f904c0f9
JD
12132010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1214
1215 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1216 current_tool_bar_style are new.
1217 (store_config_changed_event): Rename from store_font_changed_event.
1218 (XSETTINGS_TOOL_BAR_STYLE): New define.
1219 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1220 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1221 HAVE_XFT.
1222 (something_changedCB): store_font_changed_event is now
1223 store_config_changed_event
1224 (parse_settings): Rename from parse_xft_settings. Read
1225 non-xft xsettings outside #ifdef HAVE_XFT.
1226 (read_settings): Renamed from read_xft_settings.
1227 (apply_xft_settings): Take current settings as parameter. Do not
1228 call read_(xft)_settings.
1229 (read_and_apply_settings): New function.
1230 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1231 read_and_apply_settings if there are settings to be read.
1232 (init_xsettings): Renamed from init_xfd_settings.
1233 Call read_and_apply_settings unconditionally.
1234 (xsettings_initialize): Call init_xsettings.
1235 (Ftool_bar_get_system_style): New function.
1236 (syms_of_xsettings): Define Qmonospace_font_name and
1237 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1238 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1239 dynamic-setting.
31a01b90 1240 Move misplaced HAVE_GCONF
f904c0f9
JD
1241
1242 * xsettings.h (Ftool_bar_get_system_style): Declare.
1243
1244 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1245 Qtext, Qboth, Qboth_horiz are new.
1246 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1247 Vtool_bar_style, tool_bar_max_label_size.
1248
1249 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1250
1251 * keyboard.c: QClabel is new.
1252 (parse_tool_bar_item): Take out QClabel from tool bar items.
1253 Try to construct a label if ther is no QClabel.
1254 (syms_of_keyboard): Intern :label as QClabel.
1255
1256 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1257 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1258 New.
1259
1260 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1261 dynamic-setting.el.
1262
1263 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1264 (xg_make_tool_item, xg_show_toolbar_item): New function.
1265 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1266 Call xg_make_tool_item to make a tool bar item.
1267 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1268
1269 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1270 into account for toolbars.
1271
c632dfda
JD
12722010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1273
1274 * data.c (make_blv): Declarations before code (Bug#5993).
1275
10efe302
GM
12762010-04-21 Glenn Morris <rgm@gnu.org>
1277
1278 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1279 Define using autoconf, not cpp.
1280 (LIBXSM): New variable, set by autoconf.
1281 (LIBXT): Use $LIBXSM.
1282
4285ac5a
DN
12832010-04-21 Dan Nicolaescu <local_user@dannlt>
1284
3ec759e7
DN
1285 Remove NOMULTIPLEJOBS, unused.
1286 * s/template.h (NOMULTIPLEJOBS):
1287 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1288
4285ac5a
DN
1289 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1290 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1291 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1292 detects -znocombreloc and passes it to the linker
1293 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1294
2807228d
GM
12952010-04-21 Glenn Morris <rgm@gnu.org>
1296
1297 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1298
574c05e2
KK
12992010-04-21 Karel Klíč <kklic@redhat.com>
1300
1301 * Makefile.in (LIBSELINUX_LIBS): New.
1302 (LIBES): Add $LIBSELINUX_LIBS.
1303 * eval.c, lisp.h (call7): New function.
1304 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1305 (Ffile_selinux_context, Fset_file_selinux_context):
1306 New functions.
1307 (Fcopy_file): New parameter preserve-selinux-context.
1308 (Frename_file): Preserve selinux context when renaming by copy-file.
1309
91eac4bb 13102010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 1311 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1312
50426a04
JB
1313 Don't depend on cm.c or termcap.c on Windows, use stubs.
1314 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1315 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1316 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1317 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1318 (sys_tputs, sys_tgetstr): New stubs.
1319 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1320 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1321
938efb77
JB
13222010-04-20 Juanma Barranquero <lekktu@gmail.com>
1323
1324 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1325
b4bf28b7
SM
13262010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1327
8b1e1112
SM
1328 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1329 Just signal a warning rather than an error when inside a let.
1330 (Fmake_variable_frame_local): Add the same test.
1331
933ac235
SM
1332 * font.c (syms_of_font): Make the style table vars read-only.
1333
b4bf28b7
SM
1334 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1335 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1336
1337 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1338
93d68d0c
EZ
13392010-04-20 Eli Zaretskii <eliz@gnu.org>
1340
1341 Fix R2L paragraph display on TTY.
1342
1343 * xdisp.c (unproduce_glyphs): New function.
1344 (display_line): Use it when produced glyphs are discarded from R2L
1345 glyph rows.
1346 (append_composite_glyph): In R2L rows, prepend the glyph rather
1347 than appending it.
1348
1349 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1350 rather than append it. Set up the resolved_level and bidi_type
1351 attributes of the appended glyph.
283ccc18
EZ
1352 (produce_special_glyphs): Mirror the backslash continuation
1353 character in R2L lines.
93d68d0c 1354
283ccc18 1355 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1356
283ccc18
EZ
1357 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1358 append_stretch_glyph.
1359 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1360 off-by-one error in computing x at end of text in the row.
1361 (append_stretch_glyph): In reversed row, prepend the glyph rather
1362 than append it. Set resolved_level and bidi_type of the glyph.
1363 (extend_face_to_end_of_line): If the row is reversed, prepend a
1364 stretch glyph whose width is such that the rightmost glyph will be
1365 drawn at the right margin of the window. Fix off-by-one error on
1366 TTY frames in testing whether a line needs face extension. Fix
1367 face extension at ZV. If this is the last glyph row, use
1368 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1369 region face.
1370 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1371 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1372 row->continuation_lines_width.
283ccc18
EZ
1373 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1374 are at ZV. Fixes a crash when reseated to ZV by
1375 try_window_reusing_current_matrix.
45903529
EZ
1376 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1377 which happens with R2L glyph rows. Fixes a crash when inserting a
1378 character at end of an R2L line.
283ccc18
EZ
1379 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1380 treat them as having zero-width characters. Improve comments.
1381 Don't reverse pos_before and pos_after for reversed glyph rows.
1382 Set cursor.x to negative value when the cursor might be on the
1383 left fringe.
1384 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1385 left fringe, not the right one.
f951a506
EZ
1386 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1387 (erase_phys_cursor): For reversed cursor_row, support cursor on
1388 the left fringe.
1389
283ccc18
EZ
1390 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1391 of continuation indicators on the fringes.
1392 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1393 left fringe.
1394
f951a506
EZ
1395 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1396 draw cursor on the left fringe.
1397
1398 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1399 cursor on the left fringe.
1400
f951a506
EZ
1401 * dispnew.c (update_text_area): Handle reversed desired rows when
1402 the cursor is on the left fringe.
1403 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1404 below, not by 0, for when the cursor is on the left fringe.
1405
3bb49aaf
JD
14062010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1407
1408 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1409 widget is a scrollbar.
1410
c0be27fd
KH
14112010-04-20 Kenichi Handa <handa@m17n.org>
1412
1413 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1414 only when the arg CHARSET_LIST is nil.
1415
ce5b453a
SM
14162010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1417
1418 Make variable forwarding explicit rather the using special values.
1419 Basically, this makes the structure of buffer-local values and object
1420 forwarding explicit in the type of Lisp_Symbols rather than use
1421 special Lisp_Objects for that. This tends to lead to slightly more
1422 verbose code, but is more C-like, simpler, and makes it easier to make
1423 sure we handled all cases, among other things by letting the compiler
1424 help us check it.
1425 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1426 Removing forwarding objects.
1427 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1428 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1429 explicit rather than hiding them inside Lisp_Object "values".
1430 (XFWDTYPE): New macro.
1431 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1432 (XBUFFER_LOCAL_VALUE): Remove.
1433 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1434 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1435 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1436 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1437 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1438 Remove the Lisp_Misc_* header.
1439 (struct Lisp_Buffer_Local_Value): Redefine.
1440 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1441 (struct Lisp_Misc_Any): Add filler to get the right size.
1442 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1443 Lisp_Intfwd.
1444 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1445 (DEFVAR_KBOARD): Allocate a forwarding object.
1446 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1447 (let_shadows_global_binding_p): New function.
1448 (union Lisp_Val_Fwd): New type.
1449 (make_blv): New function.
1450 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1451 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1452 (swap_in_symval_forwarding, find_symbol_value, Fset)
1453 (let_shadows_buffer_binding_p, set_internal, default_value)
1454 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1455 (Fkill_local_variable, Fmake_variable_frame_local)
1456 (Flocal_variable_p, Flocal_variable_if_set_p)
1457 (Fvariable_binding_locus):
1458 * xdisp.c (select_frame_for_redisplay):
1459 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1460 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1461 * frame.c (store_frame_param):
1462 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1463 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1464 value structure.
1465 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1466 (clone_per_buffer_values): Only adjust markers into the current buffer.
1467 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1468 (Fbuffer_local_value, set_buffer_internal_1)
1469 (swap_out_buffer_local_variables):
1470 Adapt to the new symbol value structure.
1471 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1472 (defvar_per_buffer): Take a new arg for the fwd object.
1473 (buffer_lisp_local_variables): Return a proper alist (different fix
1474 for bug#4138).
1475 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1476 (Fgarbage_collect): Don't handle buffer_defaults specially.
1477 (mark_object): Handle new symbol value structure rather than the old
1478 special Lisp_Misc_* objects.
1479 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1480 * term.c (set_tty_color_mode):
1481 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1482 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1483 a buffer_local_flags.
1484 * print.c (print_object): Get rid of impossible forwarding objects.
1485
fd3998ff
EZ
14862010-04-19 Eli Zaretskii <eliz@gnu.org>
1487
1488 * bidi.c (bidi_get_type, bidi_get_category)
1489 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1490 (bidi_type_of_next_char, bidi_level_of_next_char):
1491 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1492
e42cd1a7
JB
14932010-04-19 Juanma Barranquero <lekktu@gmail.com>
1494
1495 * dired.c (Ffile_attributes): Fix typo in docstring.
1496
6e104790 14972010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1498
1499 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1500 NSInteger (Bug#5811).
1501
6e104790 15022010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1503
1504 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1505 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1506
6e104790 15072010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1508
1509 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1510
6e104790
SM
15112010-04-19 Chong Yidong <cyd@stupidchicken.com>
1512
1513 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1514 terminal frames (Bug#5837).
1515
37dcfea0
EZ
15162010-04-19 Eli Zaretskii <eliz@gnu.org>
1517
d1da276f
EZ
1518 * .gdbinit (xsubchartable): New command.
1519
37dcfea0
EZ
15202010-04-19 Eli Zaretskii <eliz@gnu.org>
1521
1522 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1523 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1524 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1525 and
1526 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1527
e9515805
SM
15282010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1529
1530 * alloc.c (Fpurecopy): Hash-cons if requested.
1531 (syms_of_alloc): Update purify-flag docstring.
1532
22aa44a8
JD
15332010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1534
1535 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1536 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1537
ebb5722e
EZ
15382010-04-17 Eli Zaretskii <eliz@gnu.org>
1539
1540 Fix a crash when an NSM character is inserted at BEGV.
1541
1542 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1543 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1544 NEUTRAL_B or UNKNOWN_BT.
1545
0f4442ef
EZ
15462010-04-16 Eli Zaretskii <eliz@gnu.org>
1547
1548 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1549 other rows with cursor unless they are different from this row and
1550 this row is part of a continued line. (Bug#5943)
1551
7d4e45f8
DN
15522010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1553
1554 * s/freebsd.h: Restore osreldate.h include.
1555 Suggested by Naohiro Aota.
1556
5ba5ec85
J
15572010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1558
1559 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1560
20af301d
CY
15612010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1562
1563 * s/cygwin.h: Avoid linking against static libgcc.
1564
a4b000fb
JL
15652010-04-15 Juri Linkov <juri@jurta.org>
1566
1567 * window.c: Add Qscroll_command.
1568 Remove Vscroll_preserve_screen_position_commands.
1569 (window_scroll_pixel_based, window_scroll_line_based): Check the
1570 `scroll-command' property on the last command instead of searching
1571 the last command in Vscroll_preserve_screen_position_commands.
1572 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1573 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1574 (scroll-preserve-screen-position): Doc fix.
1575 (Vscroll_preserve_screen_position_commands): Remove variable.
1576
bc319ba4
DN
15772010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1578
6bb24457
DN
1579 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1580
19d4c244
DN
15812010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1582
1583 Reduce cpp use in Makefile.in.
1584 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1585 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1586 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1587 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1588 (CRT0_COMPILE): Remove, inline it in the only user.
1589
32129746
JL
15902010-04-14 Juri Linkov <juri@jurta.org>
1591
1592 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1593 `scroll-up-command' and `M-v' from `scroll-down' to
1594 `scroll-down-command'.
1595
9013a7f8
JL
15962010-04-14 Juri Linkov <juri@jurta.org>
1597
1598 * window.c (Vscroll_preserve_screen_position_commands): New variable
1599 with the default value as the list of Qscroll_down and Qscroll_up.
1600 (window_scroll_pixel_based, window_scroll_line_based): Search the
1601 last command in the list Vscroll_preserve_screen_position_commands
1602 instead of comparing with Qscroll_up and Qscroll_down.
1603
4bef8d26
JD
16042010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1605
92848133
JD
1606 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1607 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1608 does that.
1609
4bef8d26
JD
1610 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1611 to zero.
1612
58b963f7
SM
16132010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1614
84164a0d
SM
1615 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1616
2b0a91e7
SM
1617 Try to solve the problem of spurious EOF chars in long lines of text
1618 sent to interactive subprocesses.
1619 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1620 (system_process_attributes): Remove unused var `ttotal'.
1621 * process.c (send_process): Don't bother breaking long line with EOF
1622 chars when talking to ttys any more.
1623 (wait_reading_process_output): Output a warning when called in such
1624 a way that it could block without being interruptible.
1625
58b963f7
SM
1626 Try to detect file modification within the same second.
1627 * buffer.h (struct buffer): New field modtime_size.
1628 * buffer.c (reset_buffer): Initialize it.
1629 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1630 (Fverify_visited_file_modtime): Check it.
1631 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1632 (Fset_visited_file_modtime): Set (or clear) it.
1633
01f5787b
SM
16342010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1635
1636 * process.c (status_notify): Remove unused var `ro'.
1637
83725342
JD
16382010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1639
1640 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1641 more than one visual (Bug#5938).
1642
b9465836
DN
16432010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1644
50426a04
JB
1645 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1646 Undefine.
b9465836 1647
8d9c8ece
DN
16482010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1649
b1f52161
DN
1650 Remove C_SWITCH_SYSTEM_TEMACS.
1651 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1652 (malloc, realloc, free): Use emacs, not temacs for conditional
1653 definition.
1654
1655 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1656 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1657
8d9c8ece
DN
1658 Use autoconf, not cpp for some variables.
1659 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1660 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1661 (ALL_CFLAGS): Use them as make variables.
1662 (really-lwlib, really-oldXMenu): Do not pass them.
1663
1ecb2d3f
JD
16642010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1665
1666 * xmenu.c (apply_systemfont_to_dialog): New.
1667 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1668
3a4fa2f2
SM
16692010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1670
97e53006
SM
1671 * process.c (exec_sentinel): Preserve current-buffer.
1672
3a4fa2f2
SM
1673 * process.c (read_process_output): Move the save-current-buffer to
1674 apply to both the filter and the non-filter branches.
1675
88df7221
DN
16762010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1677
1678 * s/msdos.h (UNEXEC): New definition.
1679
5634ff85
YM
16802010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1681
6eff5c3d
YM
1682 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1683 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1684
1685 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1686 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1687 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1688 TRY_WINDOW_CHECK_MARGINS.
1689
1690 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1691 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1692 width only when it is for padding.
5634ff85 1693
b13aef54
J
16942010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1695
1696 * xfns.c (Fx_show_tip): Call try_window in a loop until
1697 fonts_changed_p is zero (Bug#2423).
1698
21d28484
EZ
16992010-04-08 Eli Zaretskii <eliz@gnu.org>
1700
1701 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1702 the end of TEXT_AREA. (Bug#5856)
1703
0269ef77
JD
17042010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1705
1706 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1707 HAVE_GCONF.
1708
5930fe97
EZ
17092010-04-08 Eli Zaretskii <eliz@gnu.org>
1710
1711 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1712 prev.orig_type, for resolving type of NSM. (Bug#5858)
1713
99852628
JD
17142010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1715
1716 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1717 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1718 in current_font.
1719 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1720 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1721 New functions.
1722 (syms_of_xsettings): Initialize current_font.
1723 defsubr Sfont_get_system_normal_font.
99852628
JD
1724
1725 * xsettings.h (Ffont_get_system_normal_font,
1726 xsettings_get_system_normal_font): Declare.
1727
1728 * xfns.c (extern xlwmenu_default_font): Remove.
1729 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1730 to xlwmenu.c.
1731
1732 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1733 menu items in UTF-8.
1734
1735 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1736 (apply_systemfont_to_menu): New function.
1737 (set_frame_menubar, create_and_show_popup_menu): Call
1738 apply_systemfont_to_menu.
1739
7fc874c4
J
17402010-04-07 Jan Djärv <jan.h.d@swipnet.se>
1741
1742 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
1743 FRAME_LINE_TO_PIXEL_Y.
1744
1745 * xterm.c (x_set_window_size_1): Don't add border_width/height to
1746 pixelwidth/height.
1747
863bf481
DN
17482010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
1749
5e5a3b92
DN
1750 Simplify code for HP machines.
1751 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
1752 for GNU_LINUX, not needed.
1753 (UNEXEC, NEED_BSDTTY): Move definitions...
1754 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
1755
863bf481
DN
1756 * m/iris4d.h (UNEXEC): Move definition ...
1757 * s/irix6-5.h (UNEXEC): ... here.
1758
3e6bec3b
JD
17592010-04-04 Jan Djärv <jan.h.d@swipnet.se>
1760
1761 * xfns.c (set_machine_and_pid_properties): New function.
1762 (Fx_create_frame): Call set_machine_and_pid_properties.
1763
2912322b
SM
17642010-04-03 Eli Zaretskii <eliz@gnu.org>
1765
1502b819
EZ
1766 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
1767 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1768 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
1769
2912322b
SM
1770 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
1771 in this function. (Bug#5703)
1772
17732010-04-03 Chong Yidong <cyd@stupidchicken.com>
1774
1775 * nsterm.h: Fix last change.
1776
c435b432
DN
17772010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
1778
a568f507
DN
1779 * m/intel386.h (NO_REMAP): Move definition ...
1780 * s/msdos.h (NO_REMAP): ... here.
1781
4cd9f6c2
DN
1782 * m/vax.h (CRT0_DUMMIES): Remove, unused.
1783
c435b432
DN
1784 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
1785 used on those platforms.
1786
42a2c622
DN
17872010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
1788
1789 Remove extern errno declarations.
1790 * xterm.c:
1791 * xrdb.c:
1792 * w32term.c:
1793 * unexec.c:
1794 * unexaix.c:
1795 * sysdep.c:
1796 * process.c:
1797 * lread.c:
1798 * keyboard.c:
1799 * floatfns.c:
1800 * filelock.c:
1801 * fileio.c:
1802 * emacs.c (main):
1803 * ecrt0.c:
1804 * dispnew.c:
1805 * callproc.c:
1806 * buffer.c: Remove errno extern declarations.
1807 * s/netbsd.h (NEED_ERRNO): Remove.
1808
8224f93d
DN
18092010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
1810
1811 Remove all uses of LIBX11_SYSTEM.
1812 * Makefile.in (LIBX11_SYSTEM): Remove.
1813 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
1814 instead.
1815
814062c7
EZ
18162010-04-01 Eli Zaretskii <eliz@gnu.org>
1817
ed68db4d
EZ
1818 Remove support for DJGPP v1.x (bug#5813).
1819
1820 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
1821 * s/msdos.h:
1822 * unexec.c (make_hdr, copy_text_and_data):
1823 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 1824 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
1825 (IT_set_terminal_modes, __write, _rename, gethostname)
1826 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
1827 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
1828 the value of __DJGPP__.
ed68db4d
EZ
1829 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
1830 compatibility code.
8224f93d
DN
1831 * lread.c:
1832 * gmalloc.c (memalign):
1833 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
1834 * emacs.c (main):
1835 * dosfns.c (init_dosfns):
ed68db4d
EZ
1836 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
1837
52f4d8d5
EZ
18382010-04-01 Eli Zaretskii <eliz@gnu.org>
1839
814062c7
EZ
1840 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
1841 string with `cursor' property comes from an `after-string'
1842 overlay. (Bug#5816)
1843
0dc2e11d
GM
18442010-04-01 Glenn Morris <rgm@gnu.org>
1845
1846 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
1847 Define as Makefile variables.
1848 (LIBX): Use above variables rather than directly using autoconf.
1849
1d29df59
DN
18502010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
1851
1852 Clean up BSD_SYSTEM use.
1853 * xterm.c:
1854 * process.c:
1855 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
1856 for including <sys/ioctl.h>.
1857 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
1858 code is only used for MSDOS.
1859
1546c559
JL
18602010-03-31 Juri Linkov <juri@jurta.org>
1861
1862 * image.c: Add `Qextension_data'.
1863 (syms_of_image): Initialize and staticpro `Qextension_data'.
1864 (Fimage_metadata): Rename from `Fimage_extension_data'.
1865 (gif_load): Put GIF extension data to the property
1866 `Qextension_data'.
1867
b8a1d5a1
CY
18682010-04-05 Chong Yidong <cyd@stupidchicken.com>
1869
1870 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1871 terminal frames (Bug#5837).
1872
6521c534
CY
18732010-03-31 Chong Yidong <cyd@stupidchicken.com>
1874
1875 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
1876 * nsterm.h: Fix prototype.
1877
52c30783
EZ
18782010-03-31 Eli Zaretskii <eliz@gnu.org>
1879
1880 * xdisp.c (highlight_trailing_whitespace): Support highlight of
1881 trailing whitespace in right-to-left rows.
1882
855a0da7
SM
18832010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1884
1885 Get rid of the direct_output optimizations.
1886 * keyboard.c (nonundocount): Remove extern declaration.
1887 (command_loop_1): Remove brittle optimisation for cheap and
1888 common operations.
1889 * xdisp.c (redisplay_internal): Don't bother checking
1890 redisplay_performed_directly_p any more.
1891 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
1892 any more.
1893 * dispnew.c (redisplay_performed_directly_p)
1894 (direct_output_for_insert, direct_output_forward_char):
1895 * dispextern.h (redisplay_performed_directly_p)
1896 (direct_output_for_insert, direct_output_forward_char): Remove.
1897 * cmds.c (nonundocount): Make it static.
1898
85738751 18992010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
1900
1901 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
1902
85738751 19032010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
1904
1905 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
1906 invisible (Bug#5766).
1907
85738751 19082010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 1909
855a0da7
SM
1910 * xdisp.c (x_consider_frame_title, update_window_cursor):
1911 Remove HAVE_NS conditionals.
194d44e7 1912 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
1913
1914 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
1915 filename for the title.
1916 (ns_set_doc_edited): Do nothing if the selected window is a
1917 minibuffer window.
1918
1919 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1920 ns_set_doc_edited.
1921
1922 * nsterm.m: Remove unneeded prototype.
1923
85738751 19242010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
1925
1926 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1927 in the DOC file. (Bug#5336)
1928
85738751 19292010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
1930
1931 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1932
75d1428c
SM
19332010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
1934
1935 * window.c (keys_of_window): Remove redundant/overridden bindings.
1936
82043cfb
EZ
19372010-03-30 Eli Zaretskii <eliz@gnu.org>
1938
1939 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
1940 Restore original behavior when the iterator is not bidi_p.
1941
b5dd0ae7
DN
19422010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1943
1944 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
1945
bd924a5d
EZ
19462010-03-30 Eli Zaretskii <eliz@gnu.org>
1947
1948 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
1949 are outside the range of cached character positions.
1950
3580374b
JB
19512010-03-30 Juanma Barranquero <lekktu@gmail.com>
1952
1953 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
1954
a7b02820
EZ
19552010-03-30 Eli Zaretskii <eliz@gnu.org>
1956
1957 Initial support for bidirectional editing.
1958
1959 * Makefile.in (obj): Include bidi.o.
1960 (bidi.o): New target.
1961
1962 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
1963 ($(BLD)/bidi.$(O)): New target.
1964
1965 * bidi.c: New file.
1966
1967 * buffer.h (struct buffer): New members bidi_display_reordering
1968 and bidi_paragraph_direction.
1969
1970 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
1971 and bidi_paragraph_direction.
1972 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
1973 and bidi-paragraph-direction.
1974 (Fbuffer_swap_text): Swap the values of
1975 bidi_display_reordering and bidi_paragraph_direction.
1976
1977 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
1978 (bidi_type_t, bidi_dir_t): New types.
1979 (bidi_saved_info, bidi_stack, bidi_it): New structures.
1980 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
1981 prev_stop, base_level_stop, and eol_pos.
1982 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
1983 (IT_STACK_SIZE): Enlarge to 5.
1984 (struct glyph_row): New member reversed_p.
1985 <string_buffer_position>: Update prototype.
1986 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
1987 glyph_row if bidi_it.paragraph_dir == R2L.
1988 (struct glyph): New members resolved_level and bidi_type.
1989
1990 * dispnew.c (direct_output_forward_char): Give up if we need bidi
1991 processing or buffer's direction is right-to-left.
1992 (prepare_desired_row): Preserve the reversed_p flag.
1993 (row_equal_p): Compare the reversed_p attributes as well.
1994
1995 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1996 bidi_init_it and set it->paragraph_embedding from the current
1997 buffer's value of bidi_paragraph_direction.
1998 (reseat_1): Initialize bidi_it.first_elt.
1999 (set_iterator_to_next, next_element_from_buffer): Use the value of
2000 paragraph_embedding to determine the paragraph direction.
2001 (set_iterator_to_next): Under bidi reordering, call
2002 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2003 new_paragraph flag is set in the bidi iterator.
2004 (next_element_from_buffer): If bidi_it.first_elt is set,
2005 initialize paragraph direction and find the first character to
2006 display in the visual order. If reseated to a middle of a line,
2007 prime the bidi iterator starting at the line's beginning. Handle
2008 the situation where we overstepped stop_charpos due to
2009 non-linearity of the bidi iteration. Likewise for when we back up
2010 beyond the previous stop_charpos. When moving across stop_charpos,
2011 record it in prev_stop.
2012 (display_line): Set row->end and it->start for the next row to the
2013 next character in logical order. Always extend reversed_p rows to
2014 the end of line, even if they end at ZV. Copy the reversed_p flag
2015 to the next glyph row. Keep calling set_cursor_from_row for
2016 bidi-reordered rows even if we already have a possible candidate
2017 for cursor position. Set row_end after all the row's glyphs have
2018 been produced, by looping over the glyphs. Record the position
2019 after EOL in it->eol_pos, and use it to set end_pos of the last
2020 row produced for a continued line.
2021 <Qright_to_left, Qleft_to_right>: New variables.
2022 (syms_of_xdisp): Initialize and staticpro them.
2023 (string_buffer_position_lim): New function.
2024 (string_buffer_position): Most of code moved to
2025 string_buffer_position_lim. Last argument and return value are
2026 now EMACS_INT; all callers changed.
2027 (set_cursor_from_row): Rewritten to support bidirectional text and
2028 reversed glyph rows.
2029 (text_outside_line_unchanged_p, try_window_id): Disable
2030 optimizations if we are reordering bidirectional text and the
2031 paragraph direction can be affected by the change.
2032 (append_glyph, append_composite_glyph)
2033 (produce_image_glyph, append_stretch_glyph): Set the
2034 resolved_level and bidi_type members of each glyph.
2035 (append_glyph): If the glyph row is reversed, prepend the glyph
2036 rather than appending it.
2037 (handle_stop_backwards): New function.
2038 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2039 (reseat): call handle_stop_backwards to recompute prev_stop and
2040 base_level_stop for the new position.
2041 (handle_invisible_prop): Under bidi iteration, skip invisible text
2042 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2043 paragraph direction. Update IT->prev_stop after skipping
2044 invisible text.
2045 (move_it_in_display_line_to): New variables prev_method
2046 and prev_pos. Compare for strict equality in
2047 BUFFER_POS_REACHED_P.
2048 (try_cursor_movement): Examine all the candidate rows that occlude
2049 point, to return the best match. If rows are bidi-reordered
2050 and point moved backwards, back up to the row that is not a
2051 continuation line, and start looking for a suitable row from
2052 there.
2053
2054 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2055 rather than appending, if the glyph_row's reversed_p flag is set.
2056 Set the resolved_level and bidi_type members of each glyph.
2057
2058 * .gdbinit (pbiditype): New command.
2059 (pgx): Use it to display bidi level and type of the glyph.
2060 (pitx): Display some bidi information about the iterator.
2061 (prowlims, pmtxrows): New commands.
2062
32a8894e
DN
20632010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2064
2065 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2066 * s/usg5-4.h (LIBS_DEBUG):
2067 * s/irix6-5.h (C_DEBUG_SWITCH):
2068 * s/gnu-linux.h (LIBS_DEBUG):
2069 * s/darwin.h (LIBS_DEBUG):
2070 * s/bsd-common.h (LIBS_DEBUG):
2071 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2072 * m/iris4d.h (LIBS_DEBUG):
2073 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2074
2075 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2076 (LIBS_DEBUG): Remove definition.
2077
649dbf36
CY
20782010-03-27 Chong Yidong <cyd@stupidchicken.com>
2079
2080 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2081 Windows.
2082
cad4261f
YM
20832010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2084
2085 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2086 `connect' (Bug#5723).
2087
cd591dbc
HE
20882010-03-25 Helmut Eller <eller.helmut@gmail.com>
2089
2090 * process.c (Fmake_network_process): Call `select' for interrupted
2091 `connect' rather than creating new socket (Bug#5173).
2092
e867cb5d 20932010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2094
2095 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2096
2097 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2098
2099 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2100
e867cb5d 21012010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2102
2103 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2104 XLoadQueryFont.
2105
e867cb5d 21062010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2107
2108 * coding.c (decode_coding_ccl): Fix previous change for the
2109 multibyte case.
fb608df3
KH
2110 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2111 case that the output buffer is fullfilled.
2112 (encode_coding): Setup ccl program here.
fbdc1721 2113
e867cb5d 21142010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
2115
2116 * editfns.c (Fformat): Account for string precision when computing
2117 field width (Bug#5710).
2118
5845f0ed
DN
21192010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2120
814fb708
DN
2121 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2122
5845f0ed
DN
2123 Simplify LIBS_MACHINE definitions.
2124 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2125 * m/iris4d.h (LIBS_MACHINE): Likewise.
2126 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2127 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2128 * s/netbsd.h: Remove commented out code.
5845f0ed 2129
b7064064
DN
21302010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2131
df7734b2
DN
2132 Remove dead code dealing with POSIX_SIGNALS.
2133 * atimer.c (set_alarm): Remove dead code, all USG systems define
2134 POSIX_SIGNALS.
2135 * data.c (arith_error): Likewise.
2136 * keyboard.c (input_available_signal, handle_user_signal)
2137 (interrupt_signal): Likewise.
2138 * process.c (sigchld_handler): Likewise.
2139 (create_process): Remove if 0 code. Remove HPUX conditional when
2140 !defined (POSIX_SIGNALS), it cannot be true.
2141 * syssignal.h: Remove USG5_4 and USG conditionals when
2142 !POSIX_SIGNALS, they cannot be true.
2143
b7064064
DN
2144 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2145 NO_SOCK_SIGIO, not used anymore.
2146
55da5ee3
DN
21472010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2148
0be96e3a
DN
2149 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2150 support vax on BSDs.
2151
55da5ee3
DN
2152 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2153 * s/aix4-2.h (ORDINARY_LINK): ... here.
2154
c0282183
AS
21552010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2156
82c3d67a
AS
2157 * Makefile.in (abs_builddir): Define.
2158 (bootstrap_exe): Use it.
2159 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2160
3613edce
SM
21612010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2162
2163 * Makefile.in (bootstrap_exe): Use an absolute name.
2164
7f110ddc
DN
21652010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2166
22e87574
DN
2167 Remove support for old GNU/Linux using libc version 5.
2168 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2169 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2170
05a670e6
DN
2171 Consolidate redundant definitions in s/bsd-common.h.
2172 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2173 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2174 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2175 doing it in all files that include this one.
2176 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2177 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2178 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2179 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2180 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2181 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2182 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2183 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2184 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2185
2968f561
DN
2186 Consolidate redundant definitions.
2187 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2188 it's undefined in all files that include this one.
2189 (POSIX_SIGNALS): Define here instead of doing it in all files that
2190 include this one.
2191 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2192 (POSIX_SIGNALS): Do not define.
2193 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2194 (POSIX_SIGNALS): Do not define.
2195 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2196 (POSIX_SIGNALS): Do not define.
2197
15d25dc0
DN
2198 Remove support for old UNIX System V systems.
2199 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2200 * s/usg-5-4-2.h: Remove.
2201
07e339e4
DN
2202 Remove support for Solaris on PPC and for old versions.
2203 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2204 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2205 that cancel each other.
2206 * s/sol2-3.h:
2207 * s/sol2-4.h:
2208 * s/sol2-5.h: Remove.
2209 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2210 (NO_REMAP): Remove, unused.
2211 (UNEXEC): Move definition ...
2212 * s/aix4-2.h (UNEXEC): ... here.
2213
7f110ddc
DN
2214 * s/openbsd.h: Remove support for non-ELF and for systems that do
2215 not support shared libraries.
2216 * s/netbsd.h:
2217 * s/freebsd.h: Likewise.
2218
605f35cd
DN
22192010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2220
2221 Remove non-working support for lynxos 3.0.
2222 * s/lynxos.h: Remove file.
2223
2224 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2225 COFF_BSD_SYMBOLS, nothing defines it anymore.
2226
aed71cf4
DN
22272010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2228
2229 Remove obsolete uses of HAVE_SHM.
2230 * emacs.c (standard_args):
2231 (Fdump_emacs):
2232 (syms_of_emacs): Remove code depending on HAVE_SHM.
2233
2234 * alloc.c: Remove HAVE_SHM dependent definition.
2235
2236 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2237
aded53ff
GM
22382010-03-18 Glenn Morris <rgm@gnu.org>
2239
17284745
GM
2240 * emacs.c (USAGE4): Hard-code bug address.
2241 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2242 (bug_reporting_address): Remove.
2243 (main): Don't call bug_reporting_address.
2244
aded53ff
GM
2245 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2246 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2247
303500aa
CY
22482010-03-15 Chong Yidong <cyd@stupidchicken.com>
2249
2250 * xfns.c (Fx_create_frame):
2251 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2252 on left.
2253
cef3058f
CY
22542010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2255
2256 * editfns.c (Fformat): Account for string precision when computing
2257 field width (Bug#5710).
2258
a647d59d
CY
22592010-03-12 Chong Yidong <cyd@stupidchicken.com>
2260
4fa42018
CY
2261 * xfns.c (Fx_create_frame): Set default to Qright.
2262
a647d59d
CY
2263 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2264 all window systems.
2265
6da23aaa
EZ
22662010-03-12 Eli Zaretskii <eliz@gnu.org>
2267
a96f6398 2268 These changes remove termcap.c from the build on Posix platforms.
83d02def 2269 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2270 (MSDOS_OBJ): ...to here.
2271 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2272 now identical to when LIBS_TERMCAP is defined.
2273
2274 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2275
2276 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2277
a96f6398 2278 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2279
288f9fc0
CY
22802010-03-10 Chong Yidong <cyd@stupidchicken.com>
2281
2282 * Branch for 23.2.
2283
d48cd3f4
SM
22842010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2285
2286 Cleanup setup of gl_state in various parts of the code.
2287 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2288 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2289 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2290 (skip_chars):
2291 * regex.c (regex_compile): Use it.
2292 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2293 it's now set in regex_compile when/if we need it.
2294
618db430
SM
22952010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2296
c0335e02
SM
2297 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2298 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2299 (QUIT): Use it to consolidate code and remove redundancy.
2300 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2301
254c06a8
SM
2302 * regex.c (regex_compile): Setup gl_state as well.
2303
618db430
SM
2304 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2305 (in_classes): Use CONSP before XCAR/XCDR.
2306
233f0c9f
CY
23072010-03-03 Chong Yidong <cyd@stupidchicken.com>
2308
2309 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2310 definitions, so that keyboard macros are correctly handled
2311 (Bug#5481).
2312
75f80e63
EZ
23132010-03-02 Eli Zaretskii <eliz@gnu.org>
2314
2315 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2316 text that could be relocated inside the call to emacs_mule_char.
2317 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2318 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2319
dcfb9bc4
KH
23202010-03-02 Kenichi Handa <handa@m17n.org>
2321
fc9a17bc
KH
2322 * character.c (parse_str_as_multibyte): Fix handling of the
2323 multibyte form of raw-bytes.
2324 (str_as_multibyte): Likewise.
2325
dcfb9bc4
KH
2326 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2327 form of raw-bytes.
2328
412c01b6
CY
23292010-02-28 Chong Yidong <cyd@stupidchicken.com>
2330
2331 * charset.c (load_charset_map_from_file)
2332 (load_charset_map_from_vector): Zero out allocated
2333 charset_map_entries before using them.
2334
df7e1ea0
AS
23352010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2336
2337 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2338
fe69a722
CY
23392010-02-27 Chong Yidong <cyd@stupidchicken.com>
2340
4ed28cf4
CY
2341 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2342 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2343
7379cfce
KH
23442010-02-26 Kenichi Handa <handa@m17n.org>
2345
f88cc4d6
KH
2346 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2347
7379cfce
KH
2348 * xdisp.c (reseat_to_string): Fix previous change.
2349
cf2fdcfb
CY
23502010-02-26 David Reitter <david.reitter@gmail.com>
2351
2352 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2353 Lisp_Object (Bug#4736).
2354
cc6c7c75
KH
23552010-02-25 Kenichi Handa <handa@m17n.org>
2356
2357 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2358
32e737d7
JD
23592010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2360
2361 * xterm.c (XTflash): Move declarations before statements.
2362
2363 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2364 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2365 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2366 (xg_create_tool_bar): Remove unused variables.
2367 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2368 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2369
676cae9f
CY
23702010-02-21 Chong Yidong <cyd@stupidchicken.com>
2371
2372 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2373
886cc2b8
SM
23742010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2375
2376 * term.c (fatal): Add a final \n if needed (bug#5596).
2377
ddb2d8e2
CY
23782010-02-18 Chong Yidong <cyd@stupidchicken.com>
2379
2380 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2381
2a4f8d3d
GM
23822010-02-18 Glenn Morris <rgm@gnu.org>
2383
2384 * callint.c (Finteractive): Doc fix.
2385
ebaf11b6
KH
23862010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2387
886cc2b8
SM
2388 * coding.c (record_conversion_result):
2389 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2390 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2391 memory allocation error.
2392
d0396581
KH
23932010-02-17 Kenichi Handa <handa@m17n.org>
2394
886cc2b8
SM
2395 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2396 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2397 (decode_coding): Setup ccl program here. Keep looping when the
2398 decoder stopped because the output buffer is
2399 fullfilled (bug#5534).
2400
2401 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2402
98599f74
JD
24032010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2404
471e4f04 2405 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2406 bug #5571.
886cc2b8 2407 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2408 overdrawn.
98599f74 2409
182659ae
JD
24102010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2411
2412 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2413 doing_interact here.
2414 (ice_connection_closed): New function.
2415 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2416 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2417 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2418 returns I/O error.
2419 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2420 bug #5512.
2421
9be32c4e 24222010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2423
2424 * nsfont.m (nsfont_open): The system's value for the font descent
2425 is negative, so round it down to avoid clipping.
2426
a2f3eb19
CY
24272010-02-06 Chong Yidong <cyd@stupidchicken.com>
2428
2429 * charset.c (load_charset_map_from_file)
2430 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2431 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2432
3088147c
CY
24332010-02-05 Chong Yidong <cyd@stupidchicken.com>
2434
2435 * charset.c (load_charset_map_from_file): Allocate large
2436 charset_map_entries structure on the heap rather than the stack.
2437 (Bug#5526).
2438
b57d9029
KH
24392010-01-31 Kenichi Handa <handa@m17n.org>
2440
2441 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2442 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2443
c67d885b
CY
24442010-01-31 Chong Yidong <cyd@stupidchicken.com>
2445
2446 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2447 <deactivated@gmail.com> (Bug#3605).
2448
8fab2362
CY
24492010-01-31 David De La Harpe Golden <david@harpegolden.net>
2450
2451 * fileio.c (Frename_file): Correctly rename symlinks to
2452 directories (Bug#5496).
2453
cb2a62f2
CY
24542010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2455
2456 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2457
944c7a26
AS
24582010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2459
2460 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2461
c024ac08
CY
24622010-01-29 Chong Yidong <cyd@stupidchicken.com>
2463
2464 * frame.c (DEFAULT_ROWS): Change default to 35.
2465
2466 * xfns.c (x_default_font_parameter): Change default XFT font to
2467 monospace-10 (Bug#3643).
2468
af93af83
EZ
24692010-01-29 Eli Zaretskii <eliz@gnu.org>
2470
2471 * w32inevt.c (key_event): Remove unnecessary comparison of
2472 event->uChar.AsciiChar with 128.
2473
ca0eb708
CY
24742010-01-28 Chong Yidong <cyd@stupidchicken.com>
2475
b242dbfc
CY
2476 * fileio.c (Frename_file): Fix last change (Bug#5487).
2477
ca0eb708
CY
2478 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2479
2480 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2481
45d45af5
JD
24822010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2483
2484 * xfns.c (Fx_create_frame): Remove window size matching code from
2485 2010-01-15.
a73f9c9d 2486 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 2487
7e233730
JR
24882010-01-27 Jason Rumney <jasonr@gnu.org>
2489
2490 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2491 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2492
86e893e3
KH
24932010-01-27 Kenichi Handa <handa@m17n.org>
2494
2495 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2496 pattern string (Bug#4209).
86e893e3 2497
8719abec
CY
24982010-01-27 David De La Harpe Golden <david@harpegolden.net>
2499
2500 * fileio.c (Frename_file): Call copy-directory and
2501 delete-directory for directories, in order to handle cross-device
2502 renaming (Bug#3353).
2503
844794c8
JD
25042010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2505
aa3e13b5 2506 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2507 sizes 24 and 10. Bug #3643.
844794c8 2508
bd4b5750
SM
25092010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2510
8dc1adf6 2511 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2512 * keymap.c (shadow_lookup): Add `remap' arg.
2513 (describe_map, describe_vector): Update calls to shadow_lookup.
2514 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2515 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2516 perform remapping during shadow_lookup check of remapped_sequences.
2517
285d07e2
CY
25182010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2519
2520 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2521 png_check_sig, which has been removed in libpng 1.4.
2522
c6d09b8d
CY
25232010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2524
2525 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2526 lacks this header file).
2527
3d782998
YM
25282010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2529
2530 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2531 as in Emacs 22.
2532
2aff7c53
YM
25332010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2534
2535 * lisp.h (make_pure_string): String pointer arg now points to const.
2536
2537 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2538 args now point to const.
2539
74327f7a
EZ
25402010-01-22 Eli Zaretskii <eliz@gnu.org>
2541
2542 * lread.c (Fload): Don't treat files without .elc extension as
2543 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2544 them. (bug#5303)
2545
4d1e6632
KH
25462010-01-20 Kenichi Handa <handa@m17n.org>
2547
2548 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2549 treat the source as actual byte sequence.
2550
1fdede8f
AM
25512010-01-19 Alan Mackenzie <acm@muc.de>
2552
2553 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2554 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2555 `signal_after_change_p' to `coherent_change_p', and make the
2556 invocation of `modify_region' conditional on it.
2557
67477f30
JD
25582010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2559
2560 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2561 for debug purpose.
2562 (syms_of_xsettings): Declare xft-settings.
2563
244b023e
CY
25642010-01-18 Chong Yidong <cyd@stupidchicken.com>
2565
2566 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2567
617364fe
CY
25682010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2569
2570 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2571
4fe22cdf
CY
25722010-01-16 Chong Yidong <cyd@stupidchicken.com>
2573
2574 * emacs.c (standard_args): Adjust arg priorities to reflect how
2575 they are processed in startup.el.
2576
e118d2be
AS
25772010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2578
2579 * Makefile.in (lisp, shortlisp): Update.
2580
523ae620
SM
25812010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2582
2583 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2584 code, link the new kboard into all_kboard before running Lisp code,
2585 and protect the new terminal with GCPRO (Bug#5365).
2586 (x_term_init): Remove unused var `atom'.
2587 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2588
f0d13888
JD
25892010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2590
2591 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2592 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2593 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2594 this. Bug #3643.
f0d13888 2595
cc320f07
KH
25962010-01-15 Kenichi Handa <handa@m17n.org>
2597
2598 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2599
7ffdf101
CY
26002010-01-15 Chong Yidong <cyd@stupidchicken.com>
2601
2602 * nsterm.m (Qnone): Define.
2603
2604 * nsfns.m (Qnone): Move definition to nsterm.m.
2605
d12bd917
KH
26062010-01-14 Kenichi Handa <handa@m17n.org>
2607
2608 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2609 systems.
2610
d9a7c140
KH
26112010-01-14 Kenichi Handa <handa@m17n.org>
2612
2613 Make auto-composition work on all buffers even if they are
2614 fundamental mode.
2615
2616 * composite.c (Vauto_composition_mode): New variable.
2617 (composition_compute_stop_pos): Check Vauto_composition_mode
2618 instead of Vauto_composition_function.
2619 (composition_adjust_point, Ffind_composition_internal): Likewise.
2620 (syms_of_composite): Declare Lisp variable
2621 "auto-composition-mode" here.
2622
63286bb2
CY
26232010-01-13 Chong Yidong <cyd@stupidchicken.com>
2624
2625 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2626 during call to vendor-specific-keysyms (Bug#5365).
2627
c2623ee7
YM
26282010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2629
2630 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2631 Call SIGNAL_THREAD_CHECK (Bug#5333).
2632
2633 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2634 Call SIGNAL_THREAD_CHECK.
2635
0b5397c2
SM
26362010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2637
2638 Try to fix bug#5314. This is probably not the final word, tho.
2639 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2640 recent-auto-save-p as a side-effect.
2641 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2642 * buffer.c (Fkill_buffer, reset_buffer):
2643 * editfns.c (Fsubst_char_in_region):
2644 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2645 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2646
dc954cb2
KH
26472010-01-13 Kenichi Handa <handa@m17n.org>
2648
2649 Display buffer name, etc. in mode line by composing correctly.
2650
2651 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2652 STRING is not nil.
0b5397c2 2653 (display_mode_element): Adjust for the change of
dc954cb2
KH
2654 decode_mode_spec and display_line.
2655 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2656 (display_string): Handle the case that STRING is non-null and
2657 LISP_STRING is not nil.
2658
0b5397c2
SM
2659 * xterm.c (x_draw_composite_glyph_string_foreground):
2660 Pay attention to s->face->overstrike.
dc954cb2
KH
2661
2662 * composite.c (composition_reseat_it): Don't check PT if STRING is
2663 non nil.
2664
4a00eaca
YM
26652010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2666
2667 * keyboard.c (read_char): Don't apply previous change when current
2668 buffer is unchanged by command execution.
2669
60abb287
JD
26702010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2671
2672 * keyboard.c (read_char): Return after executing from special map.
2673
893db5bc
GM
26742010-01-12 Glenn Morris <rgm@gnu.org>
2675
2676 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2677 bug-gnu-emacs rather than emacs-pretest-bug.
2678
4d03ece0
CY
26792010-01-11 Chong Yidong <cyd@stupidchicken.com>
2680
2681 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2682 initializing the Lisp variables that depend on them.
2683
1df47e38
YM
26842010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2685
2686 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2687 Clear areas that will not be updated after change of menu bar lines.
2688 Clear the menu bar window's current matrix when the window gets empty.
2689
2f1c6384
CY
26902010-01-09 Chong Yidong <cyd@stupidchicken.com>
2691
e398c61c
CY
2692 * intervals.h, textprop.c (extend_property_ranges): Return value
2693 and args changed. Discard properties that begin at or after the
2694 new end (Bug#5306).
2695
2696 * editfns.c (Fformat): Caller changed.
2697
e5a29a10
CY
2698 * nsterm.m (ns_set_default_prefs): Delete function.
2699 (syms_of_nsterm): Initialize ns_command_modifier,
2700 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2701 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2702
2f1c6384
CY
2703 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2704 position (Bug#4040).
2705
d427a9fa
EZ
27062010-01-09 Eli Zaretskii <eliz@gnu.org>
2707
2708 * editfns.c (Ffloat_time): Doc fix.
2709
21b9df2f
JD
27102010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2711
2712 * xfns.c (Fx_create_frame): Don't create frame larger than display
2713 by default bug#3643.
2714
4b00d3b1
YM
27152010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2716
2717 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2718 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2719 windows above internal border.
2720
2721 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2722 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2723 windows above internal border.
2724
2725 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2726 tool bar windows specially.
2727
2728 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2729
2730 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2731 specially.
2732 (XTflash): Take account of menu bar height.
2733
2734 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2735 specially.
2736
5075d853
JD
27372010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2738
ac146f82 2739 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2740 also be true before we can return early (bug #5339).
2741
474217c8
CY
27422010-01-06 David Reitter <david.reitter@gmail.com>
2743
2744 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2745 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2746 (Bug#3233).
2747
c0e6d47d
JD
27482010-01-06 Jan Djärv <jan.h.d@swipnet.se>
2749
d0cf45b7
JD
2750 * font.c (font_open_entity): Enable chache and call cached_font_ok
2751 for the driver if defined.
2752 (QCuser_spec): New symbol.
2753 (font_spec_from_name): Save name as user-spec.
2754 (font_load_for_lface): Keep user-spec instead of name.
2755 (font_open_by_name): Save name as user-spec.
2756 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 2757 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
2758
2759 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
2760 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
2761 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
2762
2763 * font.h (struct font_driver): Add cached_font_ok.
2764
c0e6d47d
JD
2765 * xterm.c (x_clear_frame): Queue draw for scroll bars.
2766
7c583cd8
JD
27672010-01-05 Jan Djärv <jan.h.d@swipnet.se>
2768
2769 * xterm.c (x_new_font): Move code for setting rows/cols before
2770 resizing ...
ac146f82 2771 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
2772
2773 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
2774 (xg_frame_resized, xg_frame_set_char_size):
2775 Call xg_clear_under_internal_border.
7c583cd8 2776 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 2777
03f77f0a
CY
27782010-01-05 Chong Yidong <cyd@stupidchicken.com>
2779
2780 * keyboard.c (read_key_sequence): Catch keyboard switch after
2781 making a new tty frame (Bug#5095).
2782
2a1ef5be
KH
27832010-01-05 Kenichi Handa <handa@m17n.org>
2784
2785 * fontset.c (fontset_find_font): Fix getting the frame pointer.
2786
e3eb1dae
SM
27872010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
2788
2789 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
2790 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
2791 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
2792
777013f2
MA
27932010-01-03 Michael Albinus <michael.albinus@gmx.de>
2794
2795 * dbusbind.c (xd_add_watch): Improve debug message.
2796 (xd_remove_watch): Improve debug message. If DATA is the session
2797 bus, unset D-Bus session environment.
2798 (Fdbus_init_bus): Pass the bus as argument to
2799 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 2800
8932b1c2
CY
28012010-01-01 Chong Yidong <cyd@stupidchicken.com>
2802
87231e2c
CY
2803 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
2804
4801c5fa
CY
2805 * lread.c (syms_of_lread): Make it clearer that these are the
2806 names of loaded files (Bug#5068).
2807
8932b1c2
CY
2808 * eval.c (run_hook_with_args): Handle the case where the global
2809 value has the obsolete single-function form (Bug#5026).
2810
11e3c684
CY
28112009-12-27 Chong Yidong <cyd@stupidchicken.com>
2812
2813 * minibuf.c (Fall_completions): Minor optimization.
2814
5b28ce35
EZ
28152009-12-26 Eli Zaretskii <eliz@gnu.org>
2816
5ce6e4f4
JB
2817 * .gdbinit (pgx): Fix display of composite glyphs.
2818 Display cmp.from and cmp.to as well.
2819 (pitx): Fix last change.
5b28ce35 2820
bcffff46
KH
28212009-12-25 Kenichi Handa <handa@m17n.org>
2822
2823 * composite.h (composition_adjust_point): Update prototype.
2824
2825 * composite.c (composition_reseat_it): Don't make a composition
2826 spanning over point.
2827 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
2828 composable characters.
2829 (composition_adjust_point): New arg NEW_PT. Callers changed.
2830
2831 * keyboard.c (command_loop_1): Force redisplay if the last point
2832 was within a composition.
2833 (adjust_point_for_property): Don't adjust point for automatic
2834 composition when called after buffer modification.
2835
3f670e9a
EZ
28362009-12-19 Eli Zaretskii <eliz@gnu.org>
2837
5ce6e4f4
JB
2838 * .gdbinit (pitx): Don't use enum names, use their values.
2839 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
2840 (pgx): Don't use enum names, use their values.
2841 (pitmethod): New helper command.
2842 (pitx): Use it to display iteration method.
2843 (pgrowit): New command.
2844
ad903955
EZ
2845 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
2846
3f670e9a
EZ
2847 Update dependencies in Makefile.in.
2848
2849 * Makefile.in (alloc.o): Depend on termhooks.h.
2850 (atimer.o): Depend on blockinput.h.
2851 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
2852 and frame.h.
2853 (callint.o): Depend on systime.h, coding.h, and composite.h.
2854 (callproc.o): Depend on buffer.h.
2855 (casefiddle.o): Don't depend on charset.h.
2856 (casetab.o): Depend on character.h.
2857 (ccl.o): Depend on composite.h.
2858 (chartab.o): Depend on ccl.h.
2859 (cm.o): Depend on dispextern.h.
2860 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
2861 (coding.o): Don't depend on $(INTERVALS_H).
2862 (composite.o): Don't depend on dispextern.h explicitly (it's in
2863 $(INTERVALS_H)). Depend on ccl.h.
2864 (data.o): Depend on systime.h, coding.h, composite.h,
2865 dispextern.h, font.h, and ccl.h.
2866 (dired.o): Depend on composite.h.
2867 (dispnew.o): Depend on coding.h. Don't depend explicitly on
2868 composite.h (it's in $(INTERVALS_H)).
2869 (doc.o): Depend on systime.h, coding.h, and composite.h.
2870 (editfns.o): Don't depend explicitly on dispextern.h.
2871 (emacs.o): Depend on frame.h and coding.h.
2872 (eval.o): Depend on coding.h, composite.h, and xterm.h.
2873 (fileio.o): Depend on frame.h and commands.h. Don't depend
2874 explicitly on dispextern.h.
2875 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
2876 composite.h.
2877 (fns.o): Don't depend on termhooks.h.
2878 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
2879 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
2880 coding.h, $(INTERVALS_H), window.h, xterm.h.
2881 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
2882 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
2883 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
2884 fontset.h, ccl.h, and ftfont.h.
2885 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2886 (gtkutil.o): Depend on dispextern.h and composite.h.
2887 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
2888 termhooks.h, and ccl.h.
2889 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
2890 (intervals.o): Depend on systime.h and coding.h.
2891 (keyboard.o): Depend on composite.h and coding.h.
2892 (keymap.o): Depend on coding.h and frame.h.
2893 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
2894 (macros.o): Depend on systime.h, coding.h, and composite.h.
2895 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
2896 and atimer.h.
2897 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
2898 dispextern.h explicitly.
0b5397c2
SM
2899 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
2900 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
2901 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
2902 (regex.o): Don't depend on charset.h.
2903 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
2904 (search.o): Don't depend explicitly on composite.h.
2905 (sound.o): Depend on atimer.h and systime.h.
2906 (syntax.o): Don't depend explicitly on composite.h.
2907 (sysdep.o): Depend on coding.h and composite.h.
2908 (term.o): Depend on xterm.h and buffer.h.
2909 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
2910 (textprop.o): Don't depend on dispextern.h explicitly.
2911 (undo.o): Depend on dispextern.h.
2912 (window.o): Depend on coding.h and termhooks.h. Don't depend on
2913 dispextern.h and composite.h explicitly.
2914 (xdisp.o): Depend on ccl.h.
2915 (xfaces.o): Depend on coding.h and ccl.h.
2916 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
2917 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
2918 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
2919 ftfont.h.
2920 (xgselect.o): New dependency.
2921 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
2922 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
2923 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
2924 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
2925 (xsmfns.o): Depend on frame.h and dispextern.h.
2926 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
2927 sysselect.h.
2928
7a6f7fea
AS
29292009-12-19 Andreas Schwab <schwab@linux-m68k.org>
2930
2931 * font.c (Fclear_font_cache): Pass correct cache argument to
2932 font_clear_cache.
2933
f4c21026
AS
29342009-12-16 Andreas Schwab <schwab@linux-m68k.org>
2935
2936 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
2937 twice.
2938
f7ab0997
CY
29392009-12-15 Chong Yidong <cyd@stupidchicken.com>
2940
2941 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
2942 calling file-remote-p. Reported by Jim Meyering.
2943
fa8e045a
MA
29442009-12-15 Michael Albinus <michael.albinus@gmx.de>
2945
2946 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 2947 avoid compiler warnings. (Bug #5217)
fa8e045a 2948
a63dba42
KH
29492009-12-14 Kenichi Handa <handa@m17n.org>
2950
2951 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
2952 in 8-bit encoding.
2953
5ce6e4f4 29542009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
2955
2956 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
2957 tooltip windows.
2958
223e5fc6
JD
29592009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2960
36acb2a7
JD
2961 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
2962 Xatom_net_window_type.
2963
2964 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
2965 Xatom_net_window_type.
2966
b8f00677
JD
2967 * xterm.c (my_log_handler): New function.
2968 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 2969 so we can filter out buggy messages. (Bug #5120).
b8f00677 2970
e5f0bc9a
JD
2971 * xterm.c (xg_scroll_callback): Parameter list changed,
2972 use parameter GtkScrollType to determine scroll/line/page.
2973 Only allow dragging if a button < 4 is grabbed (bug #5177).
2974 (xg_end_scroll_callback): New function.
2975 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
2976 xg_create_scroll_bar.
2977
2978 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
2979 (scroll_end_callback): Remove.
2980 (xg_create_scroll_bar): Add parameter end_callback, bind it to
2981 button-release-event. Replace value-changed event with change-value,
2982 bug #5177,
2983 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
2984 bug #5177.
2985
2986 * gtkutil.h (XG_LAST_SB_DATA): Remove.
2987 (xg_create_scroll_bar): Add GCallback end_callback.
2988
223e5fc6
JD
2989 * xftfont.c (QClcdfilter): New variable.
2990 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
2991 (syms_of_xftfont): Initialize QClcdfilter.
2992
3c055b77
JD
29932009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2994
2995 * xsettings.c (struct xsettings): Add member seen.
2996 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2997 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2998 (apply_xft_settings): Only update Xft settings with what member seen
2999 indicates as new.
3000
05fe33ff
EZ
30012009-12-12 Eli Zaretskii <eliz@gnu.org>
3002
3003 * dispextern.h (struct text_pos): Use EMACS_INT;
3004 (struct glyph): Use EMACS_INT for charpos.
3005 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3006 region_beg_charpos, region_end_charpos,
3007 redisplay_end_trigger_charpos, and also for
3008 iterator_stack_entry.end_charpos and
3009 iterator_stack_entry.stop_charpos.
3010
e8d7886a
JD
30112009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3012
5ce6e4f4 3013 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3014 (xg_create_scroll_bar): Call scroll_end_callback on button release
3015 event (bug #5177).
3016 (xg_event_is_for_scrollbar): != replaced with ==.
3017
d0db2ec8
KH
30182009-12-12 Kenichi Handa <handa@m17n.org>
3019
3020 * ftfont.c (struct ftfont_info): New member matrix.
3021 (ftfont_open): Setup xftfont_info->matrix.
3022 (MFLTFontFT): New member matrix.
3023 (FLOOR, CEIL, ROUND): New macros.
3024 (ftfont_get_metrics): Handle matrix transformation.
3025 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3026
3027 * xftfont.c (struct xftfont_info): New member matrix.
3028 (xftfont_open): Setup xftfont_info->matrix.
3029
30302009-12-10 Kenichi Handa <handa@m17n.org>
3031
3032 * xdisp.c (append_space_for_newline): Consider face-remapping.
3033
2cc7b62f
AS
30342009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3035
b87dd913
AS
3036 * xsettings.c: Include "keyboard.h".
3037
eba5eb94
AS
3038 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3039
2cc7b62f
AS
3040 Fix implicit function declarations.
3041 * cmds.c: Include "frame.h".
3042 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3043 * frame.h: Move declaration of delete_frame outside of
3044 HAVE_WINDOW_SYSTEM.
3045
a4ef73c8
CY
30462009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3047
3048 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3049
3050 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3051 GTK builds.
3052
944a300c
AS
30532009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3054
3055 * unexelf.c (unexec): Don't search for .data twice.
3056
022eef62
CY
30572009-12-05 Chong Yidong <cyd@stupidchicken.com>
3058
426ac949
CY
3059 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3060 if push failed.
3061 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3062 of push_display_prop (Bug#5000).
3063
022eef62
CY
3064 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3065 value of font_list_entities (Bug#5085).
3066
be95bee9
JB
30672009-12-04 Juanma Barranquero <lekktu@gmail.com>
3068
3069 Fix `string-to-number' to deal consistently with integers and floats.
3070 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3071 trailing characters, not just whitespace.
3072 (read1): Pass new arg 0 to keep old behavior.
3073 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3074 trailing chars, as it is already done for integers. Doc fixes.
3075 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3076
24c2d7ce
EZ
30772009-12-04 Eli Zaretskii <eliz@gnu.org>
3078
0b5397c2
SM
3079 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3080 Delete unused enumeration value.
24c2d7ce 3081
7e694795
EZ
30822009-12-03 Eli Zaretskii <eliz@gnu.org>
3083
3084 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3085
84b31826
SM
30862009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3087
3088 * process.c (Fmake_network_process): Fix up the tests for
3089 "connectionless socket", so they DTRT for seqpacket sockets as well.
3090
f00c449b
SM
30912009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3092
3093 * process.c (Qseqpacket): New symbol.
3094 (HAVE_SEQPACKET): New macro.
3095 (Fmake_network_process): Accept new :type `seqpacket'.
3096 (init_process): Add `seqpacket' feature when applicable.
3097 (syms_of_process): Initialize Qseqpacket.
3098
8096a0ff
YM
30992009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3100
3101 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3102 if entity is Qnil.
3103
3e0de07f
SM
31042009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3105
3106 * print.c (print_preprocess): Preprocess the key_and_value table of
3107 hashtables, even tho they're "hidden" (bug#5082).
3108
abeafb2a
JD
31092009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3110
3111 * frame.c (frame_make_pointer_invisible)
3112 (frame_make_pointer_visible): Declare f before statements.
3113
4bf47195
EZ
31142009-11-28 Eli Zaretskii <eliz@gnu.org>
3115
3116 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3117 omitted dependencies on lisp.h.
3118
c525b3f2
JD
31192009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3120
ece2d4ed
JD
3121 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3122 is NULL.
3123
3124 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3125
3126 * frame.c (frame_make_pointer_invisible)
3e0de07f 3127 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3128 frame.
3129
c525b3f2
JD
3130 * search.c (simple_search): Remove warning by making *p const.
3131
2f00e299
DN
31322009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3133
3134 * xdisp.c (power_letter): Remove duplicate const.
3135
084b049b
JD
31362009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3137
a1fadc6f
JD
3138 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3139
5ce6e4f4 3140 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3141 defaults (bug #5025).
3142
28259cac
SM
31432009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3144
3145 * insdel.c (adjust_markers_for_delete): Move it in the
3146 right direction! (bug#4803)
3147
e8e14166
YM
31482009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3149
3150 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3151
3152 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3153
86677b58
GM
31542009-11-24 Glenn Morris <rgm@gnu.org>
3155
3156 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3157
581e51e8
JD
31582009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3159
cfc86c7a
JD
3160 * Makefile.in: Must create deps for ecrt0.o in its rule.
3161
581e51e8
JD
3162 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3163 because that is what Gtk+ font dialog understands.
3164
3165 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3166 of Fcopy_sequence.
3167 (font_open_by_name): Put name given into QCname for font-object returned.
3168
3169 * frame.c (x_set_font): Save original font name as frame parameter
3170 font-parameter.
3171
3172 * xsettings.c (set_default_xft_settings): New function.
3173 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3174 is found.
3175
8b264ecb
AS
31762009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3177
3178 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3179 searching backwards through multibyte buffer.
3180
872870b2
JD
31812009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3182
3183 * xterm.c: #include xgselect.h.
3184 (x_initialize): Call xgselect_initialize.
3185
3186 * xsettings.c (something_changedCB): C++ comments => C comments.
3187 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3188 does that now.
3189
3190 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3191 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3192 (scroll_bar_button_cb): Remove.
5ce6e4f4 3193 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3194 event.
3195 (xg_create_scroll_bar): Don't bind button-press-event and
3196 button-release-event.
3197
3198 * process.c: Include xgselect.h if defined (USE_GTK) ||
3199 defined (HAVE_GCONF).
3200 (wait_reading_process_output): Call xg_select for the same condition.
3201
3202 * xgselect.c (xg_select): New function to better integrate with
3203 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3204
3205 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3206
3207 * Makefile.in (XOBJ): Add xgselect.o.
3208
62a6e103
AS
32092009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3210
0b5397c2
SM
3211 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3212 Remove ignored second argument. All callers changed.
62a6e103
AS
3213 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3214 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3215 * xdisp.c (string_char_and_length): Likewise.
3216
b0ca0f33
DN
32172009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3218
3219 * xterm.c (x_new_font):
3220 * print.c (print_object):
3221 * cmds.c (Fself_insert_command): Move declarations before statements.
3222
dd5a6279
CY
32232009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3224
3225 * s/cygwin.h: Remove unneeded linker flags.
3226
4a8e097d
JD
32272009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3228
0d1d0d26
JD
3229 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3230
3231 * xsettings.h: Declare xsettings_get_system_font.
3232
3233 * xsettings.c (xsettings_get_system_font): New function.
3234 (init_gconf): No use initiating gconf unless we have Xft also.
3235 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3236 HAVE_GCONF.
3237
4a8e097d
JD
3238 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3239 add a blank entry so it doesn't collapse into nothing.
3240
8ab1650e
SM
32412009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3242
3243 * lread.c (Funintern): Comment out last change.
3244
82c602f0
RS
32452009-11-19 Richard Stallman <rms@gnu.org>
3246
3247 * lread.c (Funintern): Error if symbol is t or nil.
3248
87e32266
SM
32492009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3250
3251 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3252 representation of Lisp integers.
3253 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3254
1b9ac145
AS
32552009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3256
3257 * lisp.h: Remove declaration of Ffont_get_system_font.
3258 * xfns.c: Move include of "xsettings.h".
3259 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3260
dfb3c4c6
JD
32612009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3262
87e32266
SM
3263 * xsettings.c (something_changedCB, Ffont_get_system_font):
3264 Check use_system_font.
dfb3c4c6
JD
3265 (syms_of_xsettings): DEFVAR font-use-system-font.
3266
9370c1d8
AS
32672009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3268
25fe851a
AS
3269 * xfns.c (x_default_font_parameter): Remove dead assignment.
3270
9370c1d8
AS
3271 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3272
637fa988
JD
32732009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3274
87e32266 3275 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3276 not have FC_LCD_*. #define them if not there.
a6eb20d8 3277
87e32266 3278 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3279
637fa988
JD
3280 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3281
3282 * xterm.c (handle_one_xevent): Call xft_settings_event for
3283 ClientMessage, PropertyNotify and DestroyNotify.
3284 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3285 Call xsettings_initialize.
3286
3287 * xftfont.c (xftfont_fix_match): New function.
3288 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3289 Call xftfont_fix_match after XftFontMatch.
3290
3291 * xfont.c (xfont_driver): Initialize all members.
3292
87e32266
SM
3293 * xfns.c (x_default_font_parameter):
3294 Try font from Ffont_get_system_font.
637fa988
JD
3295 Do not get font from x_default_parameter if we got one from
3296 Ffont_get_system_font.
87e32266 3297 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3298
3299 * w32font.c (w32font_driver): Initialize all members.
3300
3301 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3302
3303 * lisp.h: Declare syms_of_xsettings.
3304
87e32266
SM
3305 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3306 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3307
3308 * ftfont.c (ftfont_filter_properties): New function.
3309
3310 * frame.c (x_set_font): Remove unused variable lval.
3311
87e32266 3312 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3313
3314 * font.c (font_put_extra): Don't return if val is nil, it means
3315 boolean option is off.
3316 (font_parse_fcname): Collect all extra properties in extra_props
3317 and call filter_properties for all drivers with extra_props and
3318 font as parameter.
87e32266
SM
3319 (font_open_entity): Do not use cache, it does not pick up new
3320 fontconfig settings like hinting.
637fa988
JD
3321 (font_load_for_lface): If spec had a name in it, store it in entity.
3322
a73f9c9d 3323 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3324
3325 * config.in: HAVE_GCONF is new.
3326
3327 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3328 xsettings.o is new.
3329
5a942932
KH
33302009-11-17 Kenichi Handa <handa@m17n.org>
3331
3332 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3333 back to the default font in case that no suitable font is found.
3334
b7c7a4d1
SM
33352009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3336
3337 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3338 Suggested by Chad Brown <yandros@mit.edu>.
3339 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3340
072f1e39
JD
33412009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3342
3343 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3344
5d1e70a2
AS
33452009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3346
87e32266 3347 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3348
a53cfbe5
JD
33492009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3350
473a99b7
JD
3351 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3352 has a parent.
3353
a53cfbe5 3354 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3355 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3356
3357 * config.in: Generated (AUTO_DEPEND).
3358
f04bb9b2
MA
33592009-11-13 Michael Albinus <michael.albinus@gmx.de>
3360
b7c7a4d1 3361 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3362 Vdbus_registered_functions_table, because it contains also
3363 properties. Fix docstring.
b7c7a4d1 3364 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3365
8f11f7ec
SM
33662009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3367
3368 * alloc.c (mark_object): Don't reprocess marked strings.
3369 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3370 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3371
8a605fe8
KH
33722009-11-13 Kenichi Handa <handa@m17n.org>
3373
8f11f7ec 3374 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3375 semantics of Vword_combining_categories.
3376 (Vword_combining_categories): Describe the slight change of the
3377 semantics.
3378
241c4680
EZ
33792009-11-13 Eli Zaretskii <eliz@gnu.org>
3380
3381 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3382
3383 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3384
5d58e44c
SM
33852009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3386
3387 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3388
5e13f9d3
JB
33892009-11-12 Juanma Barranquero <lekktu@gmail.com>
3390
3391 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3392
cf54c754
DR
33932009-11-11 David Reitter <david.reitter@gmail.com>
3394
3395 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3396 variables to fix 2009-11-09 change.
3397
a4ada374
DN
33982009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3399
91433552
DN
3400 * process.c (ifflag_def): Make flag_sym constant.
3401 (Fnetwork_interface_info): Use a constant pointer.
3402 (ifflag_table):
3403 * xfns.c (cursor_bits):
3404 * xdisp.c (power_letter):
3405 * termcap.c (speeds, esctab):
3406 * sysdep.c (baud_convert):
3407 * keyboard.c (lispy_accent_codes, modifier_names):
3408 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3409 (jpeg_format, tiff_format, gif_format, svg_format)
3410 (interlace_start, interlace_increment, gs_format):
3411 * gtkutil.c (separator_names):
3412 * fringe.c (swap_nibble):
3413 * fns.c (base64_value_to_char, base64_char_to_value):
3414 * fileio.c (make_temp_name_tbl):
3415 * coding.c (suffixes): Make constant.
3416
f4265f6c
DN
3417 * frame.c (make_initial_frame):
3418 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3419 build_string.
3420 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3421
04420943
DN
3422 * s/freebsd.h:
3423 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3424
0a5d24ae
DN
3425 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3426 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3427
a4ada374
DN
3428 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3429 * xterm.c (syms_of_xterm):
3430 * xfaces.c (syms_of_xfaces):
3431 * xdisp.c (syms_of_xdisp):
3432 * lread.c (syms_of_lread):
3433 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3434 build_string.
91433552 3435
a4ada374
DN
3436 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3437
af98fc7f
SM
34382009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3439
8ab1650e 3440 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3441
e90292a9
JD
34422009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3443
3444 * keyboard.h: Declare timer_check.
3445
3446 * keyboard.c (timer_check_2): New function that does what the old
3447 timer_check did.
3448 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3449 returned, i.e. don't return -1 with timers pending.
3450
3451 * process.c: Remove extern declaration of timer_check.
3452
3453 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3454 even if timer_check returned -1.
3455
af98fc7f
SM
3456 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3457 xg_dialog_data.
e90292a9
JD
3458 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3459 the event loop.
3460 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3461 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3462 Destroy the dialog after xg_dialog_run.
3463
045b83c0
SM
34642009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3465
3466 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3467
1fb99a3a
JD
34682009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3469
3470 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3471
04e452cb
JB
34722009-11-09 Juanma Barranquero <lekktu@gmail.com>
3473
3474 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3475
ef7417fd
SM
34762009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3477
3478 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3479 w32menu.c, and nsmenu.m.
3480 Simplify the obsolete case where position is nil.
3481 (cleanup_popup_menu): New function, moved from nsmenu.m.
3482 (struct skp): Remove slot `notreal'.
3483 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3484 adjust callers.
3485 (single_menu_item): Adjust call to parse_menu_item.
3486 (syms_of_menu): Defsubr x-popup-menu.
3487 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3488 (keymap_panes): Don't export any more.
3489 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3490 (xmenu_show): Declare.
3491 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3492 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3493 * keyboard.h (parse_menu_item): Update declaration.
3494 * xmenu.c (Fx_popup_menu): Remove.
3495 (syms_of_xmenu): Don't defsubr x-popup-menu.
3496 * w32menu.c (Fx_popup_menu): Remove.
3497 (syms_of_w32menu): Don't defsubr x-popup-menu.
3498 * nsmenu.m (cleanup_popup_menu): Remove.
3499 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3500 moved to menu.c's Fx_popup_menu.
3501 (Fx_popup_menu): Remove.
3502 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3503 menu_items (it's done in menu.c already).
3504
424d6179
SM
35052009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3506
3507 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3508 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3509
c0df13a6 35102009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3511
3512 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3513 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3514 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3515 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3516
2de9f71c
SM
35172009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3518
3519 Let integers use up 2 tags to give them one extra bit and thus double
3520 their range.
3521 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3522 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3523 New macros.
3524 (enum Lisp_Type): Use them. Give explicit values.
3525 (Lisp_Type_Limit): Remove.
3526 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3527 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3528 Pay attention to USE_2_TAGS_FOR_INTS.
3529 (INTEGERP): Use LISP_INT_TAG_P.
3530 * fns.c (internal_equal): Simplify the default case.
3531 (sxhash): Use case_Lisp_Int.
3532 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3533 any more.
3534 (Ftype_of): Use case_Lisp_Int.
3535 (store_symval_forwarding): Take into account the fact that Ints can
3536 now have more than one tag.
3537 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3538 buffer_slot_type_mismatch):
3539 * xfaces.c (face_attr_equal_p):
3540 * print.c (print_object):
3541 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3542 Use case_Lisp_Int.
3543
323637a2
EZ
35442009-11-06 Eli Zaretskii <eliz@gnu.org>
3545
7ac65b38
EZ
3546 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3547
323637a2
EZ
3548 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3549 warning.
3550
e511451f
JD
35512009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3552
3553 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3554
3555 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3556
3557 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3558 ButtonPressRelease and MotionNotify (bug#4870).
3559
5e2327cf
DN
35602009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3561
5adc433e
DN
3562 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3563
d67b4f80
DN
3564 * xterm.c (syms_of_xterm):
3565 * xselect.c (syms_of_xselect):
3566 * xmenu.c (syms_of_xmenu):
3567 * xfns.c (syms_of_xfns):
3568 * xfaces.c (syms_of_xfaces):
3569 * xdisp.c (syms_of_xdisp):
3570 * window.c (syms_of_window):
3571 * w32fns.c (syms_of_w32fns):
3572 * undo.c (syms_of_undo):
3573 * textprop.c (syms_of_textprop):
3574 * terminal.c (syms_of_terminal):
3575 * syntax.c (syms_of_syntax):
3576 * sound.c (syms_of_sound):
3577 * search.c (syms_of_search):
3578 * print.c (syms_of_print):
3579 * minibuf.c (syms_of_minibuf):
3580 * macros.c (syms_of_macros):
3581 * keymap.c (syms_of_keymap, initial_define_key)
3582 (initial_define_lispy_key):
3583 * keyboard.c (syms_of_keyboard):
3584 * insdel.c (syms_of_insdel):
3585 * image.c (syms_of_image):
3586 * fringe.c (syms_of_fringe):
3587 * frame.c (syms_of_frame):
3588 * fontset.c (syms_of_fontset):
3589 * fns.c (syms_of_fns):
3590 * fns.c (syms_of_fns):
3591 * fileio.c (syms_of_fileio):
3592 * fileio.c (syms_of_fileio):
3593 * eval.c (syms_of_eval):
3594 * doc.c (syms_of_doc):
3595 * dispnew.c (syms_of_display):
3596 * dired.c (syms_of_dired):
3597 * dbusbind.c (syms_of_dbusbind):
3598 * data.c (syms_of_data):
3599 * composite.c (syms_of_composite):
3600 * coding.c (syms_of_coding):
3601 * cmds.c (syms_of_cmds):
3602 * charset.c (define_charset_internal, syms_of_character):
3603 * ccl.c (syms_of_ccl):
3604 * category.c (syms_of_category, init_category_once):
3605 * casetab.c (syms_of_casetab):
3606 * casefiddle.c (syms_of_casefiddle):
3607 * callint.c (syms_of_callint):
3608 * bytecode.c (syms_of_bytecode):
3609 * buffer.c (keys_of_buffer, syms_of_buffer):
3610 * alloc.c (syms_of_alloc):
3611 * process.c (syms_of_process, init_process):
3612 * lread.c (syms_of_lread, init_obarray):
3613 * font.c (build_style_table):
3614 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3615 intern_c_string, calls to make_pure_string with
3616 make_pure_c_string. Use pure_cons instead of Fcons.
3617
5e2327cf
DN
3618 * process.c (socket_options): Make it const.
3619 (set_socket_option, init_process): Use a const pointer.
3620
3621 * lread.c (intern_c_string): New function.
3622 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3623 (defvar_int): Uset it. Make the name const char*.
3624
3625 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3626 (defvar_int): Update prototypes.
3627 (DEFUN, EXFUN): Support for prototypes is now required.
3628 (intern_c_string): New prototype.
3629 (struct Lisp_Subr): Make symbol_name constant.
3630
3631 * font.c (struct table_entry): Remove unused member. Make NAMES
3632 constant.
3633 (weight_table, slant_table, width_table): Make constant.
3634
3635 * emacs.c (struct standard_args): Make name and longname constant.
3636
3637 * character.h (DEFSYM): Use intern_c_string.
3638
a56eaaef
DN
36392009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3640
3641 * alloc.c (make_pure_c_string): New function.
3642
3643 * eval.c (Fautoload): Purecopy all arguments.
3644
f6a07420
KH
36452009-11-05 Kenichi Handa <handa@m17n.org>
3646
3647 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3648 the buffer in case of replace.
3649
5d28d4b1
DN
36502009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3651
3652 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3653
b349d111
SM
36542009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3655
d528b1ce
SM
3656 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3657 when applicable (bug#4851).
3658
b349d111
SM
3659 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3660 (P_): Support for prototypes is now required.
3661
c38eb027
CY
36622009-10-31 Chong Yidong <cyd@stupidchicken.com>
3663
3664 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3665 (Bug#4827).
3666
0405f8d9
EZ
36672009-10-30 Eli Zaretskii <eliz@gnu.org>
3668
d528b1ce 3669 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3670
ca0a881a
DN
36712009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3672
3673 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3674
d528b1ce
SM
3675 * lread.c (Fload): Purecopy the file name when building
3676 Vpreloaded_file_list.
ca0a881a 3677
47e0e0e4
JR
36782009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3679
3680 * w32fns.c (syms_of_w32fns): Change default value of
3681 w32-scroll-lock-modifier to nil. (Bug#2827)
3682
057bce6f
JB
36832009-10-26 Juanma Barranquero <lekktu@gmail.com>
3684
782a943e 3685 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3686
242bc74c
AS
36872009-10-26 Andreas Schwab <schwab@redhat.com>
3688
3689 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3690
522d013a
JB
36912009-10-26 Juanma Barranquero <lekktu@gmail.com>
3692
3693 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3694 For delta < 0, skip check that only makes sense when the mini-window
3695 is going to be enlarged. (Bug#4534)
3696
18060980
CY
36972009-10-25 Chong Yidong <cyd@stupidchicken.com>
3698
3699 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3700 string in menu maps (Bug#4471).
3701
fec8f0fe
CY
37022009-10-24 Chong Yidong <cyd@stupidchicken.com>
3703
3704 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3705 FRAME_NS_VIEW on terminal frames (Bug#4765).
3706
10d66ec0
AS
37072009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3708
1cae01f7
AS
3709 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3710 DBUS_TYPE_UINTnn separately to get proper sign extension.
3711
58a12889
AS
3712 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3713 can properly handle unsigned types.
d528b1ce 3714 (make_uid, make_gid): Remove.
58a12889 3715
987c9327
AS
3716 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3717 types again.
3718
522d013a 3719 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3720 (system_process_attributes): Likewise.
3721
905a9ed3
DN
37222009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3723
3724 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3725
3726 * eval.c (Fautoload): Purecopy the filename. Simplify.
3727
3728 * category.c (Fdefine_category): Purecopy docstring.
3729
a599b3e8
AS
37302009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3731
7b792fc9
AS
3732 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3733
a599b3e8
AS
3734 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3735
b35ac83e
CY
37362009-10-23 Chong Yidong <cyd@stupidchicken.com>
3737
3738 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3739 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3740 (Bug#4775).
3741
e8903e00
SM
37422009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3743
3744 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3745 (init_fileio_once):
3746 * lisp.h (init_fileio_once): Remove.
3747 * emacs.c (main): Don't call init_fileio_once.
3748
8f43cbf3
DN
37492009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
3750
3751 * puresize.h (BASE_PURESIZE): Increase to 1430000.
3752
26898943
AS
37532009-10-21 Andreas Schwab <schwab@linux-m68k.org>
3754
3755 * doprnt.c (doprnt): Fix overflow check.
3756
5c646d5a
JD
37572009-10-21 Jan Djärv <jan.h.d@swipnet.se>
3758
3132a7ea
JD
3759 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
3760
5c646d5a
JD
3761 * xterm.h (x_wait_for_event): Declare it.
3762
3763 * xterm.c (pending_event_wait): New variable.
3764 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
3765 see pending_event_wait.eventtype.
3766 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
3767 (x_new_font): Call change_frame_size with new rows/columns before we
3768 try to resize the frame.
5c646d5a 3769 (x_wait_for_event): New function.
d528b1ce
SM
3770 (x_set_window_size_1): Don't change gravity unless change_gravity
3771 is set.
5c646d5a
JD
3772 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
3773 don't change frame size, instead wait for the ConfigureNotify.
3774 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
3775 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
3776 (x_initialize): Initialize pending_event_wait.
3777
3778 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
3779 size.
3780
3781 * widget.c (EmacsFrameSetValues): Add comment.
3782 (EmacsFrameSetCharSize): Just call x_set_window_size.
3783
3784 * gtkutil.c (xg_frame_set_char_size): Flush events and call
3785 x_wait_for_event.
d528b1ce 3786 (flush_and_sync): Remove again.
5c646d5a
JD
3787 (xg_get_font_name): Suggest monospace if no previous font is known.
3788
e9c1637d
SM
37892009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
3790
3791 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 3792 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 3793
5a72cccb
YM
37942009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3795
3796 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
3797 processing pending events when event is filtered for input method.
ab04798f 3798 (Bug#3681)
5a72cccb 3799
2629aa37
JB
38002009-10-20 Juanma Barranquero <lekktu@gmail.com>
3801
3802 * fns.c: Add #endif accidentally removed in previous change.
3803
c3417a74
DN
38042009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3805
3806 * fns.c: Remove code for unsupported system: MAC_OS.
3807 * image.c: Likewise. Include setjmp.h.
3808
9685cef2
JD
38092009-10-19 Jan Djärv <jan.h.d@swipnet.se>
3810
3811 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
3812 pixel -1 (bug #4742).
3813
d7306fe6
DN
38142009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
3815
019d2c4c
DN
3816 * process.c (create_pty): Remove conditionals for no longer
3817 supported systems: UNIPLUS and RTU.
3818
ee6bacd4
DN
3819 * xterm.c:
3820 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
3821
d7306fe6
DN
3822 * alloc.c: Do not define struct catchtag.
3823 * eval.c: Move struct catchtag definition ...
3824 * lisp.h: ... here.
3825
3826 * image.c: Move png.h #include earlier to avoid warnings.
3827
3828 * xterm.c:
3829 * xsmfns.c:
3830 * xselect.c:
3831 * xrdb.c:
3832 * xmenu.c:
3833 * xftfont.c:
3834 * xfont.c:
3835 * xfns.c:
3836 * xfaces.c:
3837 * xdisp.c:
3838 * window.c:
3839 * widget.c:
3840 * w32xfns.c:
3841 * w32uniscribe.c:
3842 * w32term.c:
3843 * w32select.c:
3844 * w32reg.c:
3845 * w32proc.c:
3846 * w32menu.c:
3847 * w32inevt.c:
3848 * w32heap.c:
3849 * w32font.c:
3850 * w32fns.c:
3851 * w32console.c:
3852 * w32.c:
3853 * w16select.c:
3854 * vm-limit.c:
3855 * unexsol.c:
3856 * unexec.c:
3857 * unexcw.c:
3858 * unexaix.c:
3859 * undo.c:
3860 * tparam.c:
3861 * textprop.c:
3862 * terminfo.c:
3863 * terminal.c:
3864 * termcap.c:
3865 * term.c:
3866 * syntax.c:
3867 * sound.c:
3868 * sheap.c:
3869 * search.c:
3870 * scroll.c:
3871 * region-cache.c:
3872 * regex.c:
3873 * ralloc.c:
3874 * process.c:
3875 * print.c:
b024548b
DN
3876 * nsterm.m:
3877 * nsselect.m:
3878 * nsmenu.m:
3879 * nsimage.m:
3880 * nsfont.m:
3881 * nsfns.m:
d7306fe6
DN
3882 * msdos.c:
3883 * minibuf.c:
3884 * menu.c:
3885 * marker.c:
3886 * macros.c:
3887 * keymap.c:
3888 * keyboard.c:
3889 * intervals.c:
3890 * insdel.c:
3891 * indent.c:
3892 * gtkutil.c:
3893 * ftxfont.c:
3894 * ftfont.c:
3895 * fringe.c:
3896 * frame.c:
3897 * fontset.c:
3898 * font.c:
3899 * fns.c:
3900 * floatfns.c:
3901 * filelock.c:
3902 * fileio.c:
3903 * emacs.c:
3904 * editfns.c:
3905 * dosfns.c:
3906 * doprnt.c:
3907 * doc.c:
3908 * dispnew.c:
3909 * dired.c:
3910 * dbusbind.c:
3911 * data.c:
3912 * composite.c:
3913 * coding.c:
3914 * cmds.c:
3915 * cm.c:
3916 * chartab.c:
3917 * charset.c:
3918 * character.c:
3919 * ccl.c:
3920 * category.c:
3921 * casetab.c:
3922 * casefiddle.c:
3923 * callproc.c:
3924 * callint.c:
3925 * bytecode.c:
3926 * buffer.c:
3927 * atimer.c: Include setjmp.h. (Bug#4643)
3928
fd5f21e6
SM
39292009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
3930
4c0354d7
SM
3931 Remove leftover table unibyte_to_multibyte_table.
3932 * character.c (unibyte_to_multibyte_table): Remove.
3933 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
3934 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
3935 * character.h (UNIBYTE_TO_CHAR): New macro.
3936 (MAKE_CHAR_MULTIBYTE): Use it.
3937 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
3938 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
3939 (message_dolog, set_message_1):
3940 * search.c (Freplace_match):
3941 * editfns.c (Fcompare_buffer_substrings):
3942 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
3943 (concat):
3944 * insdel.c (copy_text, count_size_as_multibyte):
3945 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
3946 * term.c (produce_glyphs):
3947 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
3948 * regex.c (RE_CHAR_TO_MULTIBYTE):
3949 * cmds.c (internal_self_insert):
3950 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
3951
fd5f21e6
SM
3952 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
3953
4418646e
DN
39542009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
3955
3956 * puresize.h (BASE_PURESIZE): Increase to 1310000.
3957
35f5c1d2
JB
39582009-10-16 Juanma Barranquero <lekktu@gmail.com>
3959
3960 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
3961
a0cd8f6b
AR
39622009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
3963
3964 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
3965 still needed under Tiger.
3966
3967 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
3968
3969 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
3970 __Apple__.
3971
3972 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
3973
01a8d3fa
KH
39742009-10-15 Kenichi Handa <handa@m17n.org>
3975
3976 * print.c (print_object): Escape a symbol like "2E10" too.
3977
bf6c75c9 39782009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
3979
3980 Cleanups and changes for 64-bit compile under Snow Leopard.
3981 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
3982
3983 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
3984
c5959062 3985 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
3986 (ns_findfonts, nsfont_list_family): Use long format in printf, and
3987 cast argument.
3988 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 3989 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
3990
3991 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
3992
3993 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3994 where appropriate.
3995
3996 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3997 where appropriate.
6e4780c5
JB
3998 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3999 Use stringWithUTF8String.
bf6c75c9
AR
4000 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4001
6e4780c5
JB
4002 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4003 Add formal protocol mention to inheritance.
bf6c75c9
AR
4004 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4005
6e4780c5
JB
4006 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4007 Fix printf format.
bf6c75c9
AR
4008 (ns_query_color): Use CGFloat where appropriate.
4009 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4010 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4011 argument.
4012
3d87f118
AR
4013 * config.in (NS_HAVE_NSINTEGER): Drop.
4014
a95c8102
AR
4015 * dbusbind.c (dbus-method-return-internal)
4016 (dbus-method-error-internal): Use long format in printf, and cast
4017 argument.
4018
4019 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4020 in printf, and cast argument.
4021
6873acca 4022 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4023 cast argument.
4024
9ec6f100
GM
40252009-10-11 Glenn Morris <rgm@gnu.org>
4026
4027 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4028
5be883cd
JD
40292009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4030
4031 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4032 menu bar with a small width so it doesn't enlarge the frame.
4033
d7a39b51
JB
40342009-10-08 Juanma Barranquero <lekktu@gmail.com>
4035
4036 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4037
0c2b6f8e
GM
40382009-10-06 Glenn Morris <rgm@gnu.org>
4039
4040 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4041 SOME_MACHINE_LISP (this enters indirectly via DOC).
4042
e02131a2
EZ
40432009-10-05 Eli Zaretskii <eliz@gnu.org>
4044
4045 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4046
b4744254
EZ
40472009-10-04 Eli Zaretskii <eliz@gnu.org>
4048
4049 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4050 Doc fix.
4051
dbf64827
JB
40522009-10-03 Martin Rudalics <rudalics@gmx.at>
4053
4054 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4055
e9a0aef8
MA
40562009-10-02 Michael Albinus <michael.albinus@gmx.de>
4057
d528b1ce 4058 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4059 used anymore outside fileio.c.
4060
4061 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4062
64eb2b56
JB
40632009-10-01 Juanma Barranquero <lekktu@gmail.com>
4064
4065 * lisp.h (Qdelete_directory_internal):
4066 Declare, instead of Qdelete_directory.
4067
4068 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4069
9d28c33e
SM
40702009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4071
4072 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4073
9d8f3bd9
MA
40742009-10-01 Michael Albinus <michael.albinus@gmx.de>
4075
9d28c33e 4076 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4077 Fdelete_directory. It is not a command anymore. It has no file
4078 name handler.
4079
9694740b
SM
40802009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4081
4082 * xdisp.c (get_next_display_element): Use an enum in last change.
4083
748e162f
KH
40842009-09-28 Kenichi Handa <handa@m17n.org>
4085
9694740b 4086 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4087 unibyte_display_via_language_environment in handling
4088 Vnobreak_char_display.
4089
17efd58d
AR
40902009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4091
4092 * nsterm.h (ns_app_name): New extern variable.
4093
4094 * nsterm.m (ns_app_name): New variable.
4095 (ns_term_init): Set and use it.
4096 (ns_term_shutdown): Use it.
4097
4098 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4099 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4100
4101 * nsfns.m (ns_set_name_iconic, ns_set_name)
4102 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4103 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4104
9694740b
SM
4105 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4106 Remove double-casting in client_data comparison.
31c2d412 4107
3208cb35
YM
41082009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4109
4110 * keyboard.c (make_lispy_event): Remember last wheel direction.
4111 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4112
b7d552d6
GM
41132009-09-26 Glenn Morris <rgm@gnu.org>
4114
4115 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4116 internal.elc. Add term/pc-win.elc.
4117 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4118 term/x-win.elc.
4119 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4120 term/w32-win.elc.
4121 (NS_SUPPORT): New.
4122 (lisp): Add NS_SUPPORT.
4123 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4124
4ff670a8
DR
41252009-09-25 David Reitter <david.reitter@gmail.com>
4126
4127 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4128 on Mac OS X 10.6+ (bug#4513).
4129
feabfb6c
JB
41302009-09-24 Juanma Barranquero <lekktu@gmail.com>
4131
4132 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4133 some parts of Emacs code (like font selection) don't grok them.
4134 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4135
de59072a
AS
41362009-09-24 Andreas Schwab <schwab@redhat.com>
4137
4138 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4139
a489517b
JB
41402009-09-24 Juanma Barranquero <lekktu@gmail.com>
4141
4142 * dired.c (Fdirectory_files): Fix typo in docstring.
4143
0592970c
AR
41442009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4145
4146 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4147 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4148 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4149 under GNUstep.
4150 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4151
4152 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4153 glyph advancement.
4154
48e8a88b
AR
41552009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4156
4157 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4158 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4159
4160 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4161 deleted (bug #4492).
4162
e14f0a78
AR
4163 * nsfont.m (Vns_reg_to_script): New lisp variable.
4164 (syms_of_nsfont): Declare it.
4165 (ns_registry_to_script): New function.
4166 (ns_get_req_script): Call it.
4167 (ns_findfonts): Don't give up on non-unicode registry.
4168
4169 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4170
5b650faa
SM
41712009-09-20 Tom Tromey <tromey@redhat.com>
4172
4173 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4174 batch mode (bug#4228).
4175
a489517b 41762009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4177
4178 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4179 carefully. (Bug #4339)
0bae4e09 4180
fcfe06f3
CY
41812009-09-18 Chong Yidong <cyd@stupidchicken.com>
4182
d798ba87 4183 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4184
31642728
AR
41852009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4186
4187 * emacs.c (inhibit_x_resources): Update doc string for NS.
4188 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4189 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4190
4191 * nsterm.h (ns_no_defaults): Remove.
4192
4193 * nsterm.m (ns_no_defaults): Remove.
4194 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4195 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4196 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4197 don't update the NSWindow itself.
4198 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4199 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4200
4201 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4202 ns_use_qd_smoothing.
4203
4204 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4205 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4206 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4207 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4208
8686ac71
JB
42092009-09-17 Juanma Barranquero <lekktu@gmail.com>
4210
4211 * emacs.c (inhibit_x_resources): New variable.
4212 (main) [HAVE_NS]: Don't process --quick command line option.
4213 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4214
4215 * lisp.h (inhibit_x_resources): Declare it extern.
4216
4217 * w32reg.c (x_get_string_resource):
4218 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4219
e227ba05
EZ
42202009-09-17 Eli Zaretskii <eliz@gnu.org>
4221
362654a6
JB
4222 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4223 Add lisp/term/internal.elc.
e227ba05 4224
742d40e8
SM
42252009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4226
4227 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4228 (bug#4461).
4229
005bd5a2
DN
42302009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4231
4232 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4233
4234 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4235 (OBJECTS_MACHINE): Remove, unused.
4236
f9af9719
SM
42372009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4238
4239 * frame.c (x_get_resource_string): Remove unused.
4240
0307c7d2
JD
42412009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4242
4243 * xterm.c (x_new_font): Call change_frame_size before calling
4244 x_set_window_size, in case frame size won't change.
4245
4246 * frame.c (x_set_font): Remove dead code.
4247
428b13d6
SM
42482009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4249
4250 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4251
5766c380
SM
42522009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4253
4254 * lread.c (Fload): Don't output a message after loading an obsolete
4255 package any more (done in Lisp now).
4256
2fd0161b
CY
42572009-09-12 Chong Yidong <cyd@stupidchicken.com>
4258
4259 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4260
bc5e75b6
SM
42612009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4262
4263 * keymap.c (Fwhere_is_internal): Use nconc2.
4264
c31c985e
AM
42652009-09-11 Alan Mackenzie <acm@muc.de>
4266
4267 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4268 batch mode.
4269
78012bd2
AS
42702009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4271
4272 * xdisp.c (display_mode_element): Detect cycles.
4273
9d889332
SM
42742009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4275
4276 * keymap.c (where_is_internal): Don't erroneously return nil right after
4277 filling the cache.
4278 (where_is_internal_1): Fix up typo.
4279
7ab5d780
GM
42802009-09-11 Glenn Morris <rgm@gnu.org>
4281
4282 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4283 share a common doc-string.
4284
5238a749
SM
42852009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4286
66d77eda
SM
4287 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4288 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4289
5238a749
SM
4290 * keymap.c (QCadvertised_binding): New constant.
4291 (syms_of_keymap): Initialize it.
4292 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4293 if applicable.
4294
19f48442
SM
42952009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4296
50d4ba39
SM
4297 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4298 (parse_menu_item): Streamline since bindings are recomputed all the
4299 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4300 more and don't support lmenu's menu-alias any more either.
4301
a88a5372
SM
4302 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4303 (where_is_internal): Strip it down to only traverse the keymaps.
4304 Move the cache handling from Fwhere_is_internal to here.
4305 (Fwhere_is_internal): Move the handling of remapping and the choice of
4306 the best binding from where_is_internal to here.
4307 Unify the cached/noncached paths, so remapping is also handled
4308 correctly when the cache is used, and so the cache can be used to
4309 speed up remap-handling when applicable.
4310 Give preference to non-remapped bindings.
4311 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4312 non-remapped bindings.
4313 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4314 command remapping.
4315
19f48442
SM
4316 * xdisp.c (display_mode_element): Move list length limit from 50 to
4317 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4318
599498c3 43192009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4320
4321 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4322
f9b7b5ac
SM
43232009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4324
a53af587
JB
4325 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4326 (Bug#4334)
4327
f9b7b5ac
SM
4328 * keymap.c (where_is_internal): Filter out shadowed remappings.
4329 Assume that where_is_internal returns unshadowed bindings to simplify
4330 the code and get rid of the gotos. Use ASIZE.
4331
04f4b72d
JD
43322009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4333
4da146f2
JD
4334 * xterm.c (x_focus_changed): If we get a focusout and pointer
4335 is invisible, make it visible.
4336
04f4b72d
JD
4337 * xterm.h: Remove condition for declaration of
4338 x_*_window_to_frame.
4339
7cef7ce3
SM
43402009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4341
4342 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4343 initial terminal as well.
4344
a54fa5b7
JD
43452009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4346
4347 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4348 x_menubar_window_to_frame.
a54fa5b7 4349
50426a04 4350 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4351 (XTmouse_position): Do not return valid positions
4352 for clicks in the menubar and the toolbar for Gtk+.
4353
4354 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4355 if the widget for the event has the same top level as a frame,
4356 return the frame.
4357 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4358 internal windows, bug #4122.
4359 (x_non_menubar_window_to_frame): Remove.
4360
5a021dd0
GM
43612009-09-02 Glenn Morris <rgm@gnu.org>
4362
4363 * buffer.c (default-major-mode): Move most of the doc from here...
4364 (major-mode): ... to here.
4365
548fe2f3
NR
43662009-08-30 Nick Roberts <nickrob@snap.net.nz>
4367
4368 * process.c (wait_reading_process_output): Keep the descriptor
4369 when pty is used by a non-child process, e.g., in I/O buffer of
4370 GDB this allows inferior to be restarted.
4371
e0840eef
EZ
43722009-08-29 Eli Zaretskii <eliz@gnu.org>
4373
4374 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4375 both branches into one.
4376
82e98df4
SM
43772009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4378
4379 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4380 (main): Use enable-multibyte-characters rather than
4381 default-enable-multibyte-characters. Output a warning message when
4382 running a unibyte session.
4383
890617cb
YM
43842009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4385
4386 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4387 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4388 (copy_data_segment): Also copy __program_vars section.
4389 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4390 (dump_it) [LC_DYLD_INFO]: Use it.
4391
4392 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4393
e7adeadc
EZ
43942009-08-28 Eli Zaretskii <eliz@gnu.org>
4395
4396 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4397 $(SRC)/buildobj.h.
4398 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4399 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4400 $(SRC)/buildobj.h.
4401 (clean): Add buildobj.h.
4402
3ed8bbdc
TZ
44032009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4404
4405 * print.c (print_object): Set escapeflag to 1 when printing
4406 hashtable keys and values.
4407
155a6764
SM
44082009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4409
4410 * lread.c (read_integer): Use doubles (and potentially return a float
4411 number) as we do in string-to-number.
4412 (read1): Use strtol to read integers, signal errors on strtol's
4413 overflow and use floats if strtol's output is too large for
4414 Elisp integers.
4415
877610de
EZ
44162009-08-27 Eli Zaretskii <eliz@gnu.org>
4417
4418 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4419 (make-buildobj-SH): Fix last change.
4420 (SRC): Move to before where it's first used.
4421
ef73e7be
KH
44222009-08-27 Kenichi Handa <handa@m17n.org>
4423
550c8289
KH
4424 * process.c (send_process): Use encode_coding_object instead of
4425 encode_coding_string to perform eol-conversion even if the string
4426 is unibyte.
4427
60afa08d
KH
4428 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4429 character.
4430
ef73e7be 4431 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4432 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4433
7b3a82d7
DN
44342009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4435
5654bf63
DN
4436 * callproc.c (Fcall_process): Remove always true #if.
4437
7b3a82d7
DN
4438 * lisp.h: Replace #if 0 code for checking with text pointing to
4439 the --enable-checking configure flag.
4440
4441 * emacs.c (main): Mention the --enable-profiling configure flag
4442 instead of using CFLAGS.
4443
878bde49
KR
44442009-08-26 Ken Raeburn <raeburn@raeburn.org>
4445
4446 * Makefile.in (buildobj.h): New target.
4447 (doc.o): Depend on it.
4448 (temacs${EXEEXT}): Don't generate buildobj.lst.
4449 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4450 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4451 ($(BLD)/doc.$(O)): Depend on it.
4452 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4453 provided by Eli Zaretskii.)
4454 ($(TEMACS)): Don't generate buildobj.lst.
4455 * doc.c: Include buildobj.h.
4456 (buildobj): New static variable.
4457 (Fsnarf_documentation): Use it, instead of opening and reading
4458 buildobj.lst.
4459
1574224c
MA
44602009-08-25 Michael Albinus <michael.albinus@gmx.de>
4461
4462 * dbusbind.c (Fdbus_call_method)
4463 (Fdbus_call_method_asynchronously): Use English numeric format for
4464 timeout values in doc string.
4465
d9da2f45
KH
44662009-08-25 Kenichi Handa <handa@m17n.org>
4467
ef73e7be
KH
4468 * alloc.c (mark_char_table): New function.
4469 (mark_object): Use mark_char_table for a char-table.
4470
d9da2f45
KH
4471 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4472 (CHAR_TABLE_REF): Use it.
4473
c8edcc01
KR
44742009-08-23 Ken Raeburn <raeburn@raeburn.org>
4475
4476 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4477 before invoking the newly build emacs to check for load-path
4478 shadowing.
4479
7763401b
GM
44802009-08-22 Glenn Morris <rgm@gnu.org>
4481
4482 * Makefile.in (bootstrap_exe): New variable.
4483 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4484 Use ${bootstrap_exe}.
4485
729eadda
EZ
44862009-08-22 Eli Zaretskii <eliz@gnu.org>
4487
4488 * coding.h (encode_coding_string): Don't encode unibyte strings.
4489 (Bug#4047)
4490
eb4c6ace
MA
44912009-08-22 Michael Albinus <michael.albinus@gmx.de>
4492
4493 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4494
4495 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4496 intended as hotfix only.
4497 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4498
36e34d1b
AR
44992009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4500
4501 * nsterm.m (ns_get_color): Update documentation properly for last
4502 change, and clean up loose ends in the code left by it. Fix
4503 longstanding bug with 16-bit hex parsing, and add support for
4504 yet another X11 format (rgb:r/g/b) for compatibility.
4505 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4506 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4507
f983eb8a
SM
45082009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4509
4510 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4511
3f56d3c6
MA
45122009-08-20 Michael Albinus <michael.albinus@gmx.de>
4513
4514 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4515 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4516 (xd_initialize, xd_pending_messages): Check, whether
4517 $DBUS_SESSION_BUS_ADDRESS is set.
4518
fb641d68
YM
45192009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4520
4521 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4522
4523 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4524
cf59a374
GM
45252009-08-20 Glenn Morris <rgm@gnu.org>
4526
4527 * emacs.c (system-type): Doc fix.
4528
1373f3be
SM
45292009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4530
4531 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4532 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4533
058ed861
MA
45342009-08-18 Michael Albinus <michael.albinus@gmx.de>
4535
1373f3be
SM
4536 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4537 New functions.
058ed861
MA
4538 (xd_initialize): Revert change from 2009-08-16.
4539
563a866e 45402009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4541
4542 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4543 font-group vector, return nil.
5fc05db0 4544
e42bdf01
CY
45452009-08-17 Chong Yidong <cyd@stupidchicken.com>
4546
4547 * process.c (status_notify): Don't perform redisplay.
4548 (Fdelete_process, list_processes_1, process_send_signal):
4549 Expliticly perform redisplay.
4550 (wait_reading_process_output): Always check process status, but
4551 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4552
4230ab74
KR
45532009-08-17 Ken Raeburn <raeburn@raeburn.org>
4554
1373f3be 4555 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4556 (XFLOAT_INIT): New macro for storing a float value.
4557 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4558 * fns.c (sxhash): Copy out the value of a float in order to
4559 examine its bytes.
4560 * dbusbind.c (xd_append_arg): Likewise.
4561
4230ab74
KR
4562 * emacs.c (main): Don't call syms_of_data twice.
4563
a0645cdd
MA
45642009-08-16 Michael Albinus <michael.albinus@gmx.de>
4565
4566 * dbusbind.c (xd_initialize): Add connection file descriptor to
4567 input_wait_mask, in order to let select() detect, whether a new
4568 message has been arrived.
ca4f31ea 4569 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4570
485db0ba
MA
45712009-08-15 Michael Albinus <michael.albinus@gmx.de>
4572
1373f3be
SM
4573 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4574 New functions.
485db0ba
MA
4575
4576 * lisp.h (xd_pending_messages): Declare.
4577
4578 * keyboard.c (readable_events): Call xd_pending_messages.
4579
b5b98ff4
CY
45802009-08-15 Chong Yidong <cyd@stupidchicken.com>
4581
1373f3be 4582 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4583
f8354c6e
CY
4584 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4585
b5b98ff4
CY
4586 * buffer.c (set_buffer_internal_1)
4587 (swap_out_buffer_local_variables): Check for unbound local
4588 variables (Bug#4138).
4589
8b9fc636
EZ
45902009-08-14 Eli Zaretskii <eliz@gnu.org>
4591
4592 * process.c (create_pty): Fix last change.
4593
ce959360
CY
45942009-08-13 Chong Yidong <cyd@stupidchicken.com>
4595
4596 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4597 (xbm_load_image): Caller changed.
64b807c9 4598 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4599
c7baf7e9
NR
46002009-08-13 Nick Roberts <nickrob@snap.net.nz>
4601
4602 * process.c (create_pty): New function.
4603 (Fstart_process): Use it to allow Emacs to just associate a pty
4604 with the buffer. See associated change in gdb-mi.el.
4605 (list_processes_1): Deal with no program name.
4606 (start_process_unwind): Use pid == -2 to mean no process.
4607
1ac9108a
SM
46082009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4609
4610 * cmds.c (nonundocount): New global variable.
4611 (keys_of_cmds): Initialize it.
4612 (Fself_insert_command): Use it to combine upto 20 sequential chars
4613 into a single undo entry, just like the Qself_insert_command code in
4614 keyboard.c does.
4615 Call frame_make_pointer_invisible, also like the Qself_insert_command
4616 code in keyboard.c does.
4617 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4618 than its own local replacement for it.
4619
e267324c
KR
46202009-08-10 Ken Raeburn <raeburn@raeburn.org>
4621
1ac9108a 4622 * fns.c (concat): Don't re-set string length to its current value.
77437343 4623
1ac9108a
SM
4624 * coding.h (decode_coding_string, encode_coding_string):
4625 Use SBYTES macro.
f0bed503 4626
1ac9108a 4627 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4628 (doprnt): Merge with doprnt1, discarding lispstrings code.
4629 * lisp.h (doprnt_lisp): Don't declare.
4630
416e006d
JL
46312009-08-07 Juri Linkov <juri@jurta.org>
4632
4633 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4634
6f7d5780
DN
46352009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4636
4637 * print.c (syms_of_print): Undo previous change.
4638
f19a0f5b
TZ
46392009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4640
4641 * lread.c (read1, syms_of_lread): Read hashtables back from the
4642 readable format.
4643
4644 * print.c (print_preprocess, print_object): Print hashtables fully
4645 and readably.
4646 (syms_of_print): Provide 'hashtable-print-readable.
4647
b9173dc2
AR
46482009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4649
4650 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4651 no family set.
4652 (nsfont_open): Handle case when entity has no family.
4653
1586503c
AR
46542009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4655
4656 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4657 element, not a list, for match case.
4658
087048cd
KH
46592009-07-28 Kenichi Handa <handa@m17n.org>
4660
4661 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4662 rigidly.
4663
4664 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4665 font_parse_xlfd. Check font properties more rigidly.
4666
780c2506
DN
46672009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4668
31fd7c5c
JB
4669 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4670 bsd-common.h.
780c2506 4671
a8c0cc18
KH
46722009-07-27 Kenichi Handa <handa@m17n.org>
4673
4674 * xfaces.c (face_with_height): Call font_clear_prop.
4675
4fbe2306
CY
46762009-07-26 Chong Yidong <cyd@stupidchicken.com>
4677
111d9af3
CY
4678 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4679
4680 * xterm.c (x_term_init): Use Qx.
4681
4fbe2306
CY
4682 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4683
1ac9108a 4684 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4685 (ns_get_color): Revert 2009-07-16 change.
4686
beb0b7f9
EZ
46872009-07-25 Eli Zaretskii <eliz@gnu.org>
4688
4689 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4690 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4691
2baf5e76
KR
46922009-07-25 Ken Raeburn <raeburn@raeburn.org>
4693
1ac9108a
SM
4694 * coding.h (decode_coding_string, encode_coding_string):
4695 Use SCHARS macro.
8890e5f5 4696
2baf5e76 4697 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4698 (load_depth): Delete.
2baf5e76
KR
4699 (Qload_in_progress): New variable.
4700 (load_unwind): Don't reference load_depth or load_in_progress.
4701 (Fload): Likewise; specbind Qload_in_progress instead.
4702 (init_lread): Don't initialize load_depth.
4703 (syms_of_lread): Initialize and protect Qload_in_progress.
4704
1395c6f5
AR
47052009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4706
4707 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4708
4e2f36cf
AR
47092009-07-23 Yavor Doganov <yavor@gnu.org>
4710
4711 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4712
5dd9a6f7
AR
47132009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4714
4715 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4716 Bugs 3792, 3720, 2402.
4717 (ns_lookup_indexed_color): Check for bad index.
4718 (ns_index_color): Init unused slot to 0.
4719 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4720 Bug 3714, possibly 3082.
5dd9a6f7 4721
c902b920
JR
47222009-07-22 Jason Rumney <jasonr@gnu.org>
4723
1ac9108a
SM
4724 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4725 Position IME window at cursor (Bug#2570).
c902b920
JR
4726 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4727 (globals_of_w32fns): Dynamically load functions required above.
4728
4729 * w32term.c (w32_draw_window_cursor): Send message to reposition
4730 any IME window.
4731
090101cf
CY
47322009-07-21 Chong Yidong <cyd@stupidchicken.com>
4733
4734 * fileio.c: Revert 2009-07-16 changes.
4735 (Vauto_save_include_big_deletions): New variable.
4736 (Fdo_auto_save): Disable auto-save only if
4737 auto-save-include-big-deletions is nil.
4738
e6583e3d
CY
47392009-07-21 Chong Yidong <cyd@stupidchicken.com>
4740
4741 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4742 the overflowed pixels into account (Bug#3879).
4743
ece435a5
KR
47442009-07-21 Ken Raeburn <raeburn@raeburn.org>
4745
4746 * lread.c (load_depth): New variable.
4747 (Fload, load_unwind, init_lread): Set it to the load recursion
4748 depth; set load_in_progress as a simple boolean based on the
4749 current load_depth. (Bug#3892)
4750
40b2d973
AR
47512009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4752
4753 * nsfont.m (ns_has_attribute): Remove.
4754 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
4755
10be7e0d
JL
47562009-07-18 Juri Linkov <juri@jurta.org>
4757
4758 * process.c (Fset_process_query_on_exit_flag): Mention killing
4759 a buffer in docstring.
4760
fa055055
KH
47612009-07-17 Kenichi Handa <handa@m17n.org>
4762
4763 * casetab.c (shuffle): Fix the logic of setting up the cycle.
4764
042f7b69
YM
47652009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4766
4767 * nsfns.m (Fns_set_alpha): Remove function.
4768 (syms_of_nsfns): Don't defsubr it.
4769
4770 * nsterm.m (ns_get_color): Remove incompatible color formats.
4771 (ns_color_to_lisp): Generate #rrggbb color format string.
4772
4be941e3
RS
47732009-07-16 Richard Stallman <rms@gnu.org>
4774
4775 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
4776 (Fset_buffer_auto_saved): Handle save_length = -2.
4777
4e6b227d
CY
47782009-07-16 Chong Yidong <cyd@stupidchicken.com>
4779
4780 * xterm.c (Qx_gtk_map_stock): New var.
4781
4782 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
4783 of calling intern each time.
4784
a1856973
YM
47852009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4786
4787 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
4788 does tiling.
4789
4790 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
4791
497e54d8
KH
47922009-07-14 Kenichi Handa <handa@m17n.org>
4793
72d36834
KH
4794 * font.c (font_vconcat_entity_vectors): New function.
4795 (struct font_sort_data): New member font_driver_preference.
4796 (font_compare): Check font_driver_preference.
4797 (font_sort_entities): The format of the first argument changed.
4798 (font_delete_unmatched): Likewise.
4799 (font_list_entities): The return type changed.
4800 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
4801 (font_find_for_lface): Adjuste for the above changes.
4802 Don't suppress the checking of C even if the repertory supports it.
4803 (Flist_fonts): Adjust for the above changes.
72d36834 4804
1ac9108a
SM
4805 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
4806 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
4807 Reject a font who has adstyle property that is different from a
4808 langname derived from registry property.
1ac9108a 4809 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 4810
b6046155
EZ
48112009-07-13 Eli Zaretskii <eliz@gnu.org>
4812
4813 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
4814 local copy of dirfilename.
4815
fb6b6049
KH
48162009-07-13 Kenichi Handa <handa@m17n.org>
4817
e2402a5e
KH
4818 * chartab.c (sub_char_table_ref_and_range): Fix the range check
4819 against max_char.
4820
fb6b6049
KH
4821 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
4822 calling XSYMBOL (sym).
4823
65156807
EZ
48242009-07-11 Eli Zaretskii <eliz@gnu.org>
4825
1ac9108a
SM
4826 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
4827 New function.
4828 (directory_files_internal) [WINDOWSNT]:
4829 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
4830 the filesystem of the directory is fast or slow.
4831
4832 * w32.c (logon_network_drive): Don't assume PATH is an absolute
4833 file name.
4834 (is_slow_fs): New function.
4835 (stat): Use it to determine whether to issue more system calls to
4836 get accurate file attributes, when w32-get-true-file-attributes is
4837 `local'.
4838
e0ab5fcf
JD
48392009-07-10 Jan Djärv <jan.h.d@swipnet.se>
4840
4841 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 4842 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
4843 parameter font-parameter as default to the font dialog.
4844
784ceded
KH
48452009-07-10 Kenichi Handa <handa@m17n.org>
4846
4847 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
4848
fb8edc0b
EZ
48492009-07-09 Eli Zaretskii <eliz@gnu.org>
4850
1ac9108a 4851 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 4852
fb8edc0b
EZ
4853 * w32.c (stat): Treat UNC file names as residing on remote
4854 drives. (Bug#3542)
4855
635c75b1
KH
48562009-07-09 Kenichi Handa <handa@m17n.org>
4857
4858 * fontset.c (fontset_find_font): Fix previous change.
4859
c1d5ce94
MA
48602009-07-08 Michael Albinus <michael.albinus@gmx.de>
4861
4862 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
4863 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
4864 error flag.
4865
edb61b39
KH
48662009-07-08 Kenichi Handa <handa@m17n.org>
4867
374bf7e4
KH
4868 * fontset.c (fontset_find_font): Fix the logic of handling
4869 charset_matched.
4870 (font_for_char): Delete unused var.
4871 (generate_ascii_font_name): Delete it.
4872
edb61b39
KH
4873 * coding.h (JIS_TO_SJIS2): Fix the code range check.
4874
4875 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
4876 (encode_coding_sjis): Fix the code range check.
4877
0f3f018c
CY
48782009-07-07 Chong Yidong <cyd@stupidchicken.com>
4879
4880 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
4881 (Fexpand_file_name): Copy string data properly (Bug#3772).
4882
fcaf6f3a
JD
48832009-07-07 Jan Djärv <jan.h.d@swipnet.se>
4884
4885 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
4886 first MapNotify.
4887
6809ca75
KH
48882009-07-07 Kenichi Handa <handa@m17n.org>
4889
4890 * character.h (unibyte_has_multibyte_table): Delete extern.
4891 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
4892
4893 * charset.c (Fset_charset_priority): Update charset_unibyte.
4894 (syms_of_charset): Initialize charset_unibyte.
4895
4896 * character.c (unibyte_has_multibyte_table): Delete it.
4897 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
4898 charset_unibyte.
4899 (multibyte_char_to_unibyte_safe): Likewise.
4900 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
4901
1ac9108a 4902 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
4903 (x_produce_glyphs): Likewise.
4904
4905 * .gdbinit (xcharset): Fix the treating $arg0.
4906
ad9e2d54
EZ
49072009-07-04 Eli Zaretskii <eliz@gnu.org>
4908
4909 Emulation of `getloadavg' on MS-Windows.
50426a04 4910 * w32.c: Include float.h.
ad9e2d54
EZ
4911 (g_b_init_get_native_system_info, g_b_init_get_system_times)
4912 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
4913 (get_native_system_info, get_system_times): New functions.
4914 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
4915 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
4916 (globals_of_w32): Initialize g_b_init_get_native_system_info,
4917 g_b_init_get_system_times, and num_of_processors.
4918
0a3472c7
JR
49192009-07-03 Jason Rumney <jasonr@gnu.org>
4920
4921 * w32term.c (w32_initialize): Use standard types.
4922
80904120
EZ
49232009-07-03 Eli Zaretskii <eliz@gnu.org>
4924
4925 * dired.c (Ffile_attributes): Decode user and group names by the
4926 locale's encoding. (Bug#3443)
4927
6978862d
DN
49282009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
4929
f8d23104
DN
4930 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
4931 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
4932
4933 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
4934
4935 * term.c (init_tty): Remove spurious #ifdef.
4936
6978862d
DN
4937 * m/mips.h: Mention this file is also used for netbsd.
4938 * m/pmax.h: Remove file.
4939
e044e4fc
JD
49402009-07-03 Jan Djärv <jan.h.d@swipnet.se>
4941
4942 * xterm.h (struct x_display_info): Add invisible_cursor.
4943 (struct x_output): Add current_cursor.
4944
4945 * xterm.c (XTtoggle_invisible_pointer): New function.
4946 (x_define_frame_cursor): Don't define cursor if invisible or the
4947 same as before. Set current_cursor.
4948 (x_create_terminal): Set toggle_invisible_pointer_hook.
4949
4950 * xfns.c (make_invisible_cursor): New function.
4951 (x_set_mouse_color): Call make_invisible_cursor.
4952 Set current_cursor.
4953 (x_window): Set current_cursor.
4954
4955 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
4956
4957 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
4958 inserting a character.
4959 (read_avail_input): Call frame_make_pointer_visible.
4960
4961 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
4962 (frame_make_pointer_invisible, frame_make_pointer_visible):
4963 New functions.
e044e4fc
JD
4964 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
4965
4966 * frame.h: Declare frame_make_pointer_invisible and
4967 frame_make_pointer_visible.
4968 (struct frame): Add pointer_invisible.
4969
574c8efa
JD
49702009-07-02 Jan Djärv <jan.h.d@swipnet.se>
4971
7b507248
JD
4972 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
4973 frame isn't visible.
4974 (xg_frame_resized): If width/height is -1, get size of window
4975 from X server.
4976
4977 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
4978 for MapNotify.
4979
835bdaa7 4980 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 4981 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 4982 (flush_and_sync): Reintroduce.
574c8efa 4983
3f1c6666 49842009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 4985
31fd7c5c 4986 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
4987
4988 * xterm.c (x_handle_net_wm_state): Also look for sticky.
4989 (x_term_init): Initialize Xatom_net_wm_state_sticky.
4990
4991 * frame.h: Declare Qsticky.
4992
cad9ef74
JD
4993 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4994
4995 * nsfns.m (ns_frame_parm_handlers): Ditto.
4996
4997 * frame.c: Declare Qsticky.
4998 (frame_parms): Add sticky.
4999
5000 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5001
5002 * xterm.h: Declare x_set_sticky.
5003
5004 * xterm.c (x_set_sticky): New function.
5005
69b16610
JD
5006 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5007 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5008 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5009
5010 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5011
5012 * frame.c: Qmaximized is new.
5013 (x_set_frame_parameters): Do not handle fullscreen specially.
5014 Only set width and height if explicitly set.
5015 (x_set_fullscreen): Handle Qmaximized.
5016 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5017 (syms_of_frame): Initialize Qmaximized.
5018
1ac9108a
SM
5019 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5020 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5021
5022 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5023 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5024 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5025 set gravity to NorthWestGravity when USE_GTK.
5026 (set_wm_state): New function.
31fd7c5c 5027 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5028 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5029 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5030 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5031 to x_real_positions and x_fullscreen_adjust.
5032
5033 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5034 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5035 flush_and_sync.
5036 (xg_height_changed): New function.
5037 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5038 and gtk_window_set_policy. Set frame gravity after parsing the
5039 geometry string.
3f1c6666
JD
5040 (xg_update_frame_menubar, free_frame_menubar)
5041 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5042 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5043 Remove calls to xg_frame_set_char_size.
5044
fd503d99
KH
50452009-07-01 Kenichi Handa <handa@m17n.org>
5046
5047 * keyboard.c (decode_keyboard_code): New function.
5048 (tty_read_avail_input): Decode the input bytes if necessary.
5049
1ac9108a
SM
5050 * coding.c (setup_coding_system):
5051 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5052 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5053 use Qno_conversion.
5054
24ed93fb
YM
50552009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5056
5057 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5058
99061dfc
CY
50592009-06-30 Chong Yidong <cyd@stupidchicken.com>
5060
1ac9108a 5061 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5062
ff90fbde
JR
50632009-06-30 Jason Rumney <jasonr@gnu.org>
5064
5065 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5066 is already loaded.
5067 Set user model ID if supported (bug#1849).
5068
5f445726
JM
50692009-06-29 Jim Meyering <meyering@redhat.com>
5070
5071 Remove useless if-before-xfree test.
5072 * nsfont.m (nsfont_close): Remove useless test.
5073 * term.c (delete_tty): Likewise.
5074 * w32.c (system_process_attributes): Likewise.
5075 * w32font.c (w32font_close): Likewise.
5076 * xfaces.c (x_free_gc): Likewise.
5077 * xselect.c (buffer): Likewise.
5078
b9607587
AS
50792009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5080
5081 * process.c (send_process): Keep decoded string in a local
5082 variable and protect it from GC. (Bug#3521)
5083
89ba96f4
EZ
50842009-06-28 Eli Zaretskii <eliz@gnu.org>
5085
5086 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5087 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5088
098a1589
CY
50892009-06-28 Chong Yidong <cyd@stupidchicken.com>
5090
485422be
CY
5091 * xdisp.c (start_display, handle_face_prop)
5092 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5093 (redisplay_window, try_window_id, produce_image_glyph):
5094 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5095
098a1589
CY
5096 * xterm.c (x_update_window_begin, x_new_focus_frame)
5097 (x_scroll_bar_handle_click, handle_one_xevent)
5098 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5099 (x_make_frame_visible, x_make_frame_invisible)
5100 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5101 code chunks that are now obsolete.
5102
78c38319
MA
51032009-06-28 Michael Albinus <michael.albinus@gmx.de>
5104
5105 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5106 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5107 for hours, when optimzation is enabled.
5108 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5109 (xd_read_message): Make them static.
5110
4189ed40
CY
51112009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5112
5113 * term.c (turn_on_face): Allow simultaneously bold and dim
5114 terminal faces (Bug#3530).
5115
cd9b5e16
CY
51162009-06-27 Chong Yidong <cyd@stupidchicken.com>
5117
4e23bedb
CY
5118 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5119
cd9b5e16
CY
5120 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5121 truncation glyphs (Bug#3686).
5122
07cc3c35
GM
51232009-06-27 Glenn Morris <rgm@gnu.org>
5124
5125 * m/pmax.h: Restore file, with only netbsd portions.
5126
31fd7c5c 51272009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5128
cd9b5e16 5129 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5130
42d4a64f
KH
51312009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5132
5133 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5134 the arg FORCE_SYMBOL.
5135
930fe55b 51362009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5137
5138 * fontset.c (fontset_find_font): When a usable rfont_def is found
5139 in a fallback font-group, make it the first element of the group.
5140
57ebc3fd
CY
51412009-06-24 Chong Yidong <cyd@stupidchicken.com>
5142
5143 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5144
f084f942
KH
51452009-06-24 Kenichi Handa <handa@m17n.org>
5146
5147 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5148 set for C.
5149 (fontset_font): Record the availability of a font for C both in
5150 the realized fontsets of the current one and the default one.
5151
2f686c87
DN
51522009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5153
5154 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5155 conditional, it is always defined on AIX.
5156
666e158e
MB
51572009-06-23 Miles Bader <miles@gnu.org>
5158
5159 * window.c (Vrecenter_redisplay): New variable.
5160 (syms_of_window): Initialize it.
5161 (Qtty): New extern declaration.
5162 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5163
c6da7cd2
JM
51642009-06-23 Jim Meyering <meyering@redhat.com>
5165
1ac9108a
SM
5166 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5167 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5168 pointer dereferences are guaranteed to be valid.
c6da7cd2 5169
678dca3d
KH
51702009-06-23 Kenichi Handa <handa@m17n.org>
5171
74d75424
KH
5172 * emacs.c (main): Call init_font ().
5173
5174 * font.h (Vfont_log): Extern it.
5175 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5176
5177 * font.c (font_sort_entities, font_list_entities)
5178 (font_matching_entity, font_open_entity)
5179 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5180 (Vfont_log): Delete static.
5181 (font_log_env_checked): Delete this variable.
5182 (font_add_log): Don't check font_log_env_checked.
5183 (font_deferred_log): Check Vfont_log.
5184 (init_font): New function.
5185
678dca3d
KH
5186 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5187
5188 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5189
5190 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5191
5192 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5193
5194 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5195 (face_for_char): Don't call font_deferred_log here.
5196 (font_for_char): Likewise.
5197
8a668709
CY
51982009-06-22 Chong Yidong <cyd@stupidchicken.com>
5199
9a01ee33
CY
5200 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5201 rather than its background_width for drawing the overline and
5202 underline (Bug#489).
5203
5204 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5205 rather than its background_width for drawing the overline and
5206 underline (Bug#489).
ec7c9926
CY
5207 (xg_default_icon_file): New variable.
5208 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5209 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5210
8a668709
CY
5211 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5212 (load_overlay_strings): Remove externs.
5213 (fast_find_position): Function deleted.
5214 (mouse_face_from_buffer_pos): New function, based on
5215 fast_find_position. Correctly handle before-strings,
5216 display-strings, and after-strings (Bug#1220).
5217 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5218
4d4c02d8
CY
52192009-06-21 Chong Yidong <cyd@stupidchicken.com>
5220
1ac9108a 5221 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5222 (move_it_in_display_line_to, move_it_in_display_line_to)
5223 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5224
70243478
CY
52252009-06-21 Chong Yidong <cyd@stupidchicken.com>
5226
5227 * Branch for 23.1.
5228
13087e59
JR
52292009-06-21 Jason Rumney <jasonr@gnu.org>
5230
5231 * w32term.c (keyboard_codepage): New static variable.
5232 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5233 (w32_read_socket) [WM_CHAR]: Use it to decode character
5234 input (bug#3237).
5235 (w32_initialize): Initialize it.
5236 (codepage_for_locale): New function.
5237
4735b74e
KR
52382009-06-20 Ken Raeburn <raeburn@raeburn.org>
5239
5240 * process.c (status_message): Pass Faset index argument as a lisp
5241 object, so as to work with USE_LISP_UNION_TYPE.
5242
0e727afa
YM
52432009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5244
5245 * coding.c (Ffind_coding_systems_region_internal):
5246 Cache checked characters.
5247
cf299835
KH
52482009-06-18 Kenichi Handa <handa@m17n.org>
5249
1ac9108a 5250 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5251
90f20d94
AS
52522009-06-18 Andreas Schwab <aschwab@redhat.com>
5253
5254 * xdisp.c (redisplay_internal): Check that the frame is still
5255 live after redisplay of its windows.
5256 (redisplay_windows): Check that the window is still live.
5257
7f1faf1c
KH
52582009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5259
5260 * coding.c (detect_coding_utf_16): Fix previous change.
5261
cc13543e
KH
52622009-06-16 Kenichi Handa <handa@m17n.org>
5263
5264 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5265 UTF-16 by checking the dispersion of Eth and Oth bytes.
5266
977b85f4
AS
52672009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5268
5269 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5270
66bd43d1
KH
52712009-06-15 Kenichi Handa <handa@m17n.org>
5272
5273 * process.c (status_message): Fix previous change. Be sure to
5274 decode a localized string.
5275
cb5ca9c5
YM
52762009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5277
5278 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5279 add comment explaining why.
5280
ec7709ba 52812009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5282
ec7709ba 5283 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5284
4b7f335c
AR
52852009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5286
5287 * nsfont.m (ns_attribute_value): Remove.
5288 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5289 (ns_has_attribute): Shrink the normal range.
5290 (ns_findfonts): Don't worry about requested spec in determining
5291 need for synthItal.
e41820ee 5292 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5293
73b26103
SZ
52942009-06-14 Seiji Zenitani <zenitani@mac.com>
5295
5296 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5297
5753e4da
KH
52982009-06-11 Kenichi Handa <handa@m17n.org>
5299
5300 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5301 overhang for the static composition case.
5302
3561b671
KH
53032009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5304
5753e4da
KH
5305 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5306 overhang for the automatic composition case.
5307
3561b671
KH
5308 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5309 composition case.
5310
852bbd41
CY
53112009-06-10 Chong Yidong <cyd@stupidchicken.com>
5312
5313 * xdisp.c (get_next_display_element): When handling wrap-prefix
5314 and line-prefix, treat \n as a control character (bug#3502).
5315
9903d1e6
KH
53162009-06-10 Kenichi Handa <handa@m17n.org>
5317
5318 * font.c (font_parse_family_registry): Fix for one-char foundry.
5319 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5320
0bcbaaaa
CY
53212009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5322
5323 * process.c (status_message): Fix handling of multibyte signal
5324 string (Bug#3499).
5325
40aa3f13
JM
53262009-06-09 Jim Meyering <meyering@redhat.com>
5327
1f80c7e2
CY
5328 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5329 color name is missing.
40aa3f13 5330
72d51285
KH
53312009-06-09 Kenichi Handa <handa@m17n.org>
5332
5333 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5334 FROM-CODE and TO-CODE are codepoints of CHARSET.
5335
c1d04d84
AR
53362009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5337
5338 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5339
53402009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5341
5342 Changes to support :script/:lang/:otf in NS font driver.
5343 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5344 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5345 indicate not part of font driver interface, and change callers.
5346 (ns_get_family): Remove pointless null check.
5347 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5348 ns_spec_to_descriptor, ns_descriptor_to_entity.
5349 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5350 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5351 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5352 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5353 (ns_get_req_script, ns_accumulate_script_ranges)
5354 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5355 New functions.
5356 (nsfont_list, nsfont_match): Use ns_findfonts.
5357 (nsfont_open): Use font descriptor instead of traits.
5358 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5359 (dump_glyphstring): Rename to ns_dump_glyphstring.
5360
c7eb9816
AR
5361 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5362
c1d04d84
AR
5363 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5364
5365 * fontset.c (fontset_from_font): Remove NS-specific code.
5366
ec7709ba 53672009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5368
5369 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5370 nonactive windows.
5371
31fd7c5c 53722009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5373
1ac9108a 5374 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5375
68852c13 53762009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5377
5378 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5379
6756cd1d
CY
53802009-06-07 Chong Yidong <cyd@stupidchicken.com>
5381
5382 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5383 account for the overflowing of newlines into the last glyph on the
5384 display line (Bug#3482).
5385
28bf482a
DR
53862009-06-05 David Reitter <david.reitter@gmail.com>
5387
ec7709ba
JB
5388 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5389 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5390 Fns_selection_exists_p, Fns_selection_owner_p.
5391
fdb55376
JR
53922009-06-03 Jason Rumney <jasonr@gnu.org>
5393
5394 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5395 available. (Bug#3379)
5396
05129fbe
KH
53972009-05-29 Kenichi Handa <handa@m17n.org>
5398
1ac9108a
SM
5399 * coding.c (get_translation_table):
5400 Check Venable_character_translation.
05129fbe 5401
ec7709ba 54022009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5403
ec7709ba
JB
5404 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5405 (x_make_frame_visible): Move frame to front rather than calling
15891144 5406 ns_raise_frame().
ec7709ba 5407 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5408 isn't key window.
ec7709ba 5409 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5410 drawRect may be called by NSView even if the frame is hidden.
5411
ec7709ba
JB
5412 * nsfns.m (Fx_create_frame): Follow other ports in
5413 determining visibility; default to t. Ensure async_visible is set.
15891144 5414
21f73755
EZ
54152009-05-23 Eli Zaretskii <eliz@gnu.org>
5416
5417 * dired.c (Ffile_attributes): Doc fix.
5418
34001e41
CY
54192009-05-22 Chong Yidong <cyd@stupidchicken.com>
5420
5421 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5422
46306a17
SM
54232009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5424
5425 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5426 and xfont_scratch_props.
5427 (syms_of_xfont): Do it here instead.
5428 (xfont_find_ccl_program): Delete, unused.
5429 (xfont_open): Delete unused var `i'.
5430
ef6e0694
KH
54312009-05-21 Kenichi Handa <handa@m17n.org>
5432
5433 * fontset.c (Qlatin): Don't make it static.
5434
46306a17
SM
5435 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5436 New functions.
ef6e0694
KH
5437 (xfont_scripts_cache, xfont_scratch_props): New variables.
5438 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5439 (xfont_list_pattern): Argument changed. Callers changed.
5440 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5441 (xfont_list): Don't reject a font spec with :script property.
5442 (xfont_has_char): Fix setting of encoding.
5443 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5444 xfont_scratch_props.
5445
54462009-05-19 Kenichi Handa <handa@m17n.org>
5447
46306a17 5448 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5449 Callers changed.
5450
54512009-05-18 Kenichi Handa <handa@m17n.org>
5452
5453 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5454
ac71ced7
SM
54552009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5456
5457 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5458 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5459
1c6d1051
YM
54602009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5461
5462 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5463 (x_delete_terminal): Dissociate resource database from display and
5464 then call XrmDestroyDatabase before closing display.
5465
9b9b779c
AR
54662009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5467
5468 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5469 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5470 whether selected frame is viable before raising it (based on patch
5471 by David Reitter), and improve commentary.
5472 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5473
cccd42d5
KH
54742009-05-15 Kenichi Handa <handa@m17n.org>
5475
5476 * font.c (Ffont_spec): Check arguments.
5477
337fbd17
CY
54782009-05-14 Chong Yidong <cyd@stupidchicken.com>
5479
5480 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5481 weight when testing attributes (Bug#3282).
5482
47a6002f
JD
54832009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5484
5485 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5486 what we expect to get in the next ConfigureNotify event.
5487
9cb363db
YM
5488 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5489 before Xft one (Bug#1696).
5490
b9126609
CY
54912009-05-07 David Reitter <david.reitter@gmail.com>
5492
5493 * nsfns.m (Fx_display_planes): Compute bitplanes using
5494 NSBitsPerPixelFromDepth (Bug#3207).
5495
27a69fd9
CY
54962009-05-10 Chong Yidong <cyd@stupidchicken.com>
5497
5498 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5499
00f37552
TTN
55002009-05-10 Ulrich Mueller <ulm@gentoo.org>
5501
5502 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5503
2d82a920
DR
55042009-05-07 David Reitter <david.reitter@gmail.com>
5505
ec7709ba
JB
5506 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5507 Respect mouse face background.
2d82a920 5508
46b0d52d
DR
55092009-05-07 David Reitter <david.reitter@gmail.com>
5510
ec7709ba
JB
5511 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5512 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5513 in ns_update_begin and ns_update_end.
5514
ce1b23bb
SM
55152009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5516
5996e1b7
SM
5517 * nsfns.m (ns_get_screen): Rewrite.
5518 Don't presume selected-frame is of type `ns'.
5519
ba98e3a0
SM
5520 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5521 all drivers.
5522
ce1b23bb
SM
5523 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5524
bcda200f
YM
55252009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5526
5527 * keyboard.h (add_user_signal): Fix typo in extern.
5528
5529 * lisp.h (add_user_signal): Remove extern.
5530
5531 * unexelf.c (unexec): Consider a section to precede the .bss section
5532 if its addresses overlap that of .bss.
5533 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5534 instead of dumping process.
5535
864660a2
SM
55362009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5537
5538 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5539
50da4e56
SM
55402009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5541
5542 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5543
51520a1a
DN
55442009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5545
5546 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5547 any statements.
5548
409ea3a1
AS
55492009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5550
59c4c60f
AS
5551 * process.c (read_process_output): Make sure the current buffer is
5552 always restored.
5553
409ea3a1
AS
5554 * coding.c (record_conversion_result): Don't modify
5555 Vlast_code_conversion_error for successful result.
5556 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5557
56f00ed2
KH
55582009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5559
5560 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5561 (load_charset_map): Remove unnecessary code.
56f00ed2 5562
4491c9d2
DR
55632009-04-30 David Reitter <david.reitter@gmail.com>
5564
35f5b128 5565 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5566 through f24.
5567
6970f632
CY
55682009-04-30 Chong Yidong <cyd@stupidchicken.com>
5569
5570 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5571
5572 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5573 face_at_buffer_position.
5574 (face_before_or_after_it_pos, get_next_display_element)
5575 (note_mouse_highlight): Update face_at_buffer_position call.
5576
5577 * term.c (term_mouse_highlight):
5578 * msdos.c (IT_note_mouse_highlight):
5579 * fontset.c (Finternal_char_font):
35f5b128 5580 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5581
5582 * dispextern.h (face_at_buffer_position): Update prototype.
5583
0c616f63
KH
55842009-04-30 Kenichi Handa <handa@m17n.org>
5585
35f5b128 5586 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5587
ad3aaf33
AS
55882009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5589
5590 * callproc.c (Fcall_process): Fix GC protection. Make sure
5591 current buffer is always restored.
5592
c3c963a0
YM
55932009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5594
5595 * atimer.c (init_atimer): Also clear stopped_atimers.
5596
5597 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5598
7e3386cb
YM
5599 * process.c (create_process): Clean up merger residues of
5600 2008-07-17 change.
5601
91f68422
CY
56022009-04-29 Ulrich Mueller <ulm@gentoo.org>
5603
5604 * lread.c (Vread_circle): New variable.
5605 (read1): Disable recursive read if Vread_circle is nil.
5606
24b34550
KH
56072009-04-29 Kenichi Handa <handa@m17n.org>
5608
5609 * fontset.h (set_default_ascii_font): Delete extern.
5610
5611 * fontset.c (set_default_ascii_font): Delete this unused function.
5612
5613 * frame.c (x_set_font): When ARG is a font-object, check if the
5614 font-object matches with the ASCII font-spec of the frame's
9c358bda 5615 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5616
77bf07e1
AS
56172009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5618
5619 * fns.c (Flocale_info): Protect vector from GC during decoding.
5620
5621 * process.c (Fstart_process): Protect argv strings from GC during
5622 encoding.
5623
2c55aacf
AS
56242009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5625
5626 * sysdep.c: Include <ctype.h>.
5627
b892d3c9
DR
56282009-04-27 David Reitter <david.reitter@gmail.com>
5629
35f5b128 5630 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5631 Remove commented-out code.
5632
9d0644c4
JB
56332009-04-26 Johan Bockgård <bojohan@gnu.org>
5634
5635 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5636
b7053016
JR
56372009-04-25 Jason Rumney <jasonr@gnu.org>
5638
5639 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5640
4e8231f3
YM
56412009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5642
5643 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5644 Swap bytes in short integer if fringe bitmap width > 8.
5645
493dcf2c
KH
56462009-04-23 Kenichi Handa <handa@m17n.org>
5647
5648 * xfaces.c (Fx_list_fonts): If a font size is specified in
5649 PATTERN, set it in returned scalable fonts.
5650
401e9e57
CY
56512009-04-22 Chong Yidong <cyd@stupidchicken.com>
5652
708e05dc
CY
5653 * keyboard.c (Fset_input_meta_mode): Doc fix.
5654
5655 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5656
1ac9108a 5657 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5658
5659 * coding.c (Fterminal_coding_system): Doc fix.
5660
5661 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5662 (Fx_display_pixel_height, Fx_display_planes)
5663 (Fx_display_color_cells, Fx_server_max_request_size)
5664 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5665 (Fx_display_mm_height, Fx_display_mm_width)
5666 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5667 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5668 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5669 (check_x_display_info): Handle terminal objects instead of
5670 terminal ids.
5671
401e9e57
CY
5672 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5673 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5674 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5675 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5676
df80c7f0
KH
56772009-04-21 Kenichi Handa <handa@m17n.org>
5678
5a8f12af 5679 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5680 (font_score): Check AVGWIDTH too.
908567ef 5681
df80c7f0
KH
5682 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5683 worst case.
1ac9108a
SM
5684 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5685 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5686
705af33f
JR
56872009-04-19 Jason Rumney <jasonr@gnu.org>
5688
5689 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5690 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5691
5692 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5693 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5694 get_phys_cursor_geometry.
5695
b71ac3dd 5696 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5697 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5698 using get_phys_cursor_geometry.
5699
5700 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5701 correctly calculated.
5702
dc2933eb
JD
57032009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5704
1ac9108a
SM
5705 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5706 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5707 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5708 is deprecated.
5709
973e7849
AS
57102009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5711
5712 * font.c (font_put_frame_data): Use xfree instead of free.
5713
314d66f4
JB
57142009-04-17 Juanma Barranquero <lekktu@gmail.com>
5715
5716 * w32font.c (Qja, Qko): Remove declarations.
5717 (syms_of_w32font): Don't DEFSYM them.
5718
cf702558
CY
57192009-04-17 Chong Yidong <cyd@stupidchicken.com>
5720
5721 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5722
5723 * font.h (Qja, Qko): Extern them.
5724
5725 * ftfont.c (Qja, Qko): Remove declarations.
5726
5727 * xfont.c (Qja, Qko): Remove declarations.
5728
b50504f5
KH
57292009-04-17 Kenichi Handa <handa@m17n.org>
5730
bde25748
KH
5731 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5732 string from a vector to handle Latin-1 characters correctly.
5733
b50504f5
KH
5734 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5735 entity even if the cache hits.
5736
f4646fff
AS
57372009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5738
5739 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5740 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5741
e7deaab0
AS
5742 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5743 * lisp.h: Adjust prototypes.
5744
0a0e7d49
CY
57452009-04-16 Chong Yidong <cyd@stupidchicken.com>
5746
5747 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
5748 change (Bug#3003).
5749
3c908a57
KH
57502009-04-16 Kenichi Handa <handa@m17n.org>
5751
1ac9108a 5752 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
5753
5754 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
5755 adstyle.
5756
5757 * ftfont.c (Qja, Qko): Don't make them static.
5758 (enum ftfont_cache_for): New enum.
5759 (fc_charset_table): Undo the previous change.
5760 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
5761 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
5762 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
5763 non-scarable font, try to get AVERAGE_WIDTH.
5764 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
5765 Change ft_face_cache from a list of a hash-table. Don't check
5766 `ja' and `ko' adstyle here.
5767 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
5768 FTFONT_CACHE_FOR_CHARET.
5769 (ftfont_get_charset): Undo the previous change.
1ac9108a 5770 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
5771 (ftfont_close): Likewise.
5772 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
5773
5774 * font.c (font_sort_entites): Change the meaning of the arg
5775 BEST-ONLY. Don't optimize for VEC of lenght 1.
5776 (font_select_entity): Just return the value of font_sort_entites.
5777
5778 * xfaces.c (merge_face_vectors): Reflect font properties in
5779 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
5780 font_clear_prop if a face attribute doesn't change.
5781
3c908a57
KH
5782 * charset.h (charset_ksc5601): Extern it.
5783
5784 * charset.c (charset_ksc5601): New variable.
5785 (Fdefine_charset_internal): Set charset_ksc5601.
5786 (init_charset_once): Initialize charset_ksc5601 to -1.
5787
d65859c3
DN
57882009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5789
5790 * fileio.c (history_delete_duplicates): Remove unused declaration.
5791
5792 * callint.c (history_delete_duplicates): New declaration.
5793 (Fcall_interactively): Remove command history duplicates when
5794 history_delete_duplicates is true.
5795
3ba010e5
EZ
57962009-04-14 Eli Zaretskii <eliz@gnu.org>
5797
5798 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
5799
06f19b91
KH
58002009-04-14 Kenichi Handa <handa@m17n.org>
5801
5802 * font.c (Ffont_info): Fix docstring. Fix the second element of
5803 the returned value (bug#2949).
5804
2cce8bfc
CY
58052009-04-14 Chong Yidong <cyd@stupidchicken.com>
5806
5807 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
5808
d156542d
KH
58092009-04-14 Kenichi Handa <handa@m17n.org>
5810
5811 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
5812 encoding charset is ascii_compatible.
5813
5814 * charset.c (Fdefine_charset_internal): Make charset
5815 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
5816 code_offset is 0, and covers all ASCII characters.
5817
86fa089e
SM
58182009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5819
5820 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
5821 (ns_string_to_pasteboard_internal):
5822 * nsmenu.m (process_dialog):
5823 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
5824 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
5825 * lisp.h (Fx_load_color_file): Declare.
5826
a8a3728b
KH
58272009-04-13 Kenichi Handa <handa@m17n.org>
5828
1ac9108a 5829 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
5830 (font_select_entity): Suppress the code to optimize for the same
5831 kind of fonts.
5832 (font_load_for_lface): Get a font that supports at least ASCII
5833 characters.
5834
5835 * ftfont.c (Qja, Qko): New variables.
5836 (fc_charset_table): Delete uniquifier data for iso8859-1.
5837 (ftfont_get_latin1_charset): New function.
5838 (get_adstyle_property): New function.
5839 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
5840 bitmap fonts.
5841 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
5842 Delete iso-8859-1 range from the charset of fonts whose adstyle is
5843 `ko' or `ja'.
5844 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 5845 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
5846 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
5847 property.
5848 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
5849 (syms_of_ftfont): DEFSYM Qja and Qko.
5850
483670b5
KH
58512009-04-09 Kenichi Handa <handa@m17n.org>
5852
12b55765
KH
5853 * charset.c (map_charset_chars): For a charset of `superset'
5854 method, fix calculation of code range.
5855
483670b5
KH
5856 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
5857 from the list of extra properties.
5858 (font_clear_prop): Be sure to delete `:name' font property.
5859
57d3b93b
KH
58602009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5861
b4b2c2ca
YM
5862 * dispnew.c (redraw_overlapping_rows): Fix detection of
5863 overlapping for topmost and bottommost rows.
5864
1ac9108a 5865 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 5866
472c3609
JR
58672009-04-06 Jason Rumney <jasonr@gnu.org>
5868
5869 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
5870
ab193662
KH
58712009-04-06 Kenichi Handa <handa@m17n.org>
5872
5873 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
5874
5875 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
5876
0c26f026
KH
58772009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5878
5879 * ftfont.c (ftfont_open): Fix checking of the return value of
5880 FT_Load_Char. Fix setting font->underline_thickness.
5881
e173bbce
CY
58822009-04-04 Chong Yidong <cyd@stupidchicken.com>
5883
5884 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
5885 (Fterminal_parameters, Fterminal_parameter)
5886 (Fset_terminal_parameter): In doc string, refer to terminal
5887 objects rather than terminal ids.
5888
693a2698
EZ
58892009-04-04 Eli Zaretskii <eliz@gnu.org>
5890
5891 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
5892 ret_lim_data. (Bug#2867)
5893
d5221487
CY
58942009-04-03 Chong Yidong <cyd@stupidchicken.com>
5895
5896 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
5897 so they don't get wider than the window, matching 2006-01-23
5898 change to the partner function in xdisp.c (Bug#2800).
5899
223509a3
KH
59002009-04-03 Kenichi Handa <handa@m17n.org>
5901
5902 * print.c (print_object): Make each lowest sub_char_table start a
5903 new line (Bug#2866).
5904
74fcd0b1
KH
59052009-04-02 Kenichi Handa <handa@m17n.org>
5906
5907 * fontset.c (fontset_font): Record no-font when a fontset
5908 explicitly tells not to try another font-specs.
5909
c542407d
SM
59102009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
5911
5912 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
5913
e3869731
KH
59142009-03-30 Kenichi Handa <handa@m17n.org>
5915
d8d2f142
KH
5916 * fontset.c (fontset_from_font): Specify only registry in a
5917 font-spec for all characters supported by that registry.
5918
e3869731
KH
5919 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
5920 even if HAVE_M17N_FLT is not defined.
5921
5da5f805
CY
59222009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
5923
5924 * ftfont.c: Conditionalize prototyping and use of
5925 ftfont_variation_glyphs.
5926
ab226c50
SM
59272009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5928
9628fed7
SM
5929 * frame.c (delete_frame): Work around compiler bug.
5930
5931 * editfns.c (general_insert_function): Adjust to insdel.c changes.
5932 * insdel.c (prepare_to_modify_buffer, signal_before_change):
5933 Some more EMACS_INT.
5934 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
5935
5936 * xdisp.c (dump_glyph): Fix typo.
5937
ae19ba7c
SM
5938 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
5939 (adjust_markers_gap_motion, adjust_markers_for_delete)
5940 (adjust_markers_for_insert, adjust_point)
5941 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
5942 (make_gap, copy_text, count_size_as_multibyte, insert)
5943 (insert_and_inherit, insert_before_markers)
5944 (insert_before_markers_and_inherit, insert_1)
5945 (count_combining_before, count_combining_after, insert_1_both)
5946 (insert_from_string, insert_from_string_before_markers)
5947 (insert_from_string_1, insert_from_gap, insert_from_buffer)
5948 (insert_from_buffer_1, adjust_after_replace)
5949 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
5950 (replace_range_2, del_range, del_range_1, del_range_byte)
5951 (del_range_both, del_range_2, modify_region)
5952 (prepare_to_modify_buffer, signal_before_change)
5953 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
5954 for buffer positions and sizes.
5955 * lisp.h: Adjust prototypes accordingly.
5956
5957 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
5958 (non_regular_inserted, non_regular_nbytes, read_non_regular)
5959 (Finsert_file_contents): Use EMACS_INT for buffer positions.
5960
ab226c50
SM
5961 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
5962
46dfb8fb
JD
59632009-03-27 Jan Djärv <jan.h.d@swipnet.se>
5964
5965 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
5966 lines and columns so we keep the same pixel height and width.
5967
5968 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
5969 the property _NET_WM_STATE has changed.
46dfb8fb
JD
5970 (x_handle_net_wm_state): New function to update frame parameter
5971 fullscreen.
5972 (x_term_init): Initialize atoms for _NET_WM_STATE.
5973
5974 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
5975
d347e494
SM
59762009-03-27 Kevin Ryde <user42@zip.com.au>
5977
5978 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
5979 Gpm_GetEvent as an error that justifies closing the filedescriptor.
5980 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
5981 (Fgpm_mouse_stop): Pass that new parameter.
5982 * termhooks.h (close_gpm): Adjust prototype.
5983
84db11d6
SM
59842009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
5985
c95a5008
SM
5986 * lisp.h (Fx_focus_frame): Declare.
5987
84db11d6
SM
5988 * callint.c (Fcall_interactively): For '^' just delegate the work to
5989 handle-shift-selection.
5990 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
5991
0a1958d6
CY
59922009-03-24 Chong Yidong <cyd@stupidchicken.com>
5993
0bfdff23
CY
5994 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5995
0a1958d6
CY
5996 * data.c (Qinteractive_form): New variable.
5997 (Finteractive_form): Use it.
5998
5999 * eval.c (Fcommandp): Use Qinteractive_form.
6000
58aec0d6
JR
60012009-03-24 Jason Rumney <jasonr@gnu.org>
6002
6003 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6004 Calculate total size precisely. Decode environment variables
6005 before substituting. (Bug#38)
6006
553dd618
KH
60072009-03-24 Kenichi Handa <handa@m17n.org>
6008
6009 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6010 encoding (Bug#2722).
553dd618 6011
c39ea606
JD
60122009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6013
6014 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6015 that gdpy is set.
6016
bc9b2b5e
AM
60172009-03-22 Alan Mackenzie <acm@muc.de>
6018
6019 * callint.c (Finteractive): Clarify the doc string - even
6020 promptless elements need \n separators.
6021
9f995a76
JR
60222009-03-22 Jason Rumney <jasonr@gnu.org>
6023
6024 * w32term.c (syms_of_w32term): Doc fix for
6025 x-use-underline-position-properties.
6026
22749e9a
EZ
60272009-03-21 Eli Zaretskii <eliz@gnu.org>
6028
6029 * w32.c (getpwuid): Change argument type to unsigned.
6030 (struct w32_id): Change type of `rid' member to unsigned.
6031 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6032 argument ID to unsigned. All callers changed.
6033 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6034
e00553bf
EZ
60352009-03-20 Eli Zaretskii <eliz@gnu.org>
6036
6037 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6038 negative, produce a float value.
6039
6040 * dired.c (make_uid, make_gid): New functions.
6041 (Ffile_attributes): Use them to avoid negative UID and GID.
6042
f761d6b6
JB
60432009-03-20 Juanma Barranquero <lekktu@gmail.com>
6044
6045 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6046 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6047 Fix typos in docstrings.
6048
d507f8d7
KH
60492009-03-19 Kenichi Handa <handa@m17n.org>
6050
6051 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6052 changed, use font_load_for_lface to get a new font object.
6053 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6054
6055 * frame.c (x_set_font): Handle the case that ARG is a cons.
6056
c68845e0
GM
60572009-03-19 Glenn Morris <rgm@gnu.org>
6058
6059 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6060
bfa49dd1
CY
60612009-03-19 Chong Yidong <cyd@stupidchicken.com>
6062
6063 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6064
8458d4c1
KH
60652009-03-19 Kenichi Handa <handa@m17n.org>
6066
6067 * charset.c (load_charset_map_from_file): When a mapfile can't be
6068 loaded, signal an error.
6069
78e7d1fe
EZ
60702009-03-18 Eli Zaretskii <eliz@gnu.org>
6071
6072 * dired.c (Ffile_attributes): Make sure UID and GID are always
6073 positive, even if the value is too large for a positive EMACS_INT.
6074 Doc fix.
6075
6076 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6077
5da9fdfa
YM
60782009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6079
6080 * xmenu.c (xdialog_show): Move Fredisplay call ...
6081 (Fx_popup_dialog): ... here.
6082
7519c40d
SM
60832009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6084
6085 * dired.c (file_name_completion): Disable the first optimization just
6086 installed, since it is not implemented correctly.
6087
2cd298e2
SM
60882009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6089
6090 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6091 only if the entry can affect bestmatch.
2cd298e2
SM
6092 Stop the search early, as Ftry_completion already does.
6093
48d37adf
CY
60942009-03-17 Chong Yidong <cyd@stupidchicken.com>
6095
e10c9c93 6096 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6097
9286b16a
CY
60982009-03-15 Chong Yidong <cyd@stupidchicken.com>
6099
6100 * keyboard.c (parse_menu_item): Don't display remappings as menu
6101 equivalent bindings (Bug#788).
6102
f7b146dc
JR
61032009-03-15 Jason Rumney <jasonr@gnu.org>
6104
6105 * w32term.h (WM_EMACS_PAINT): New message.
6106 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6107 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6108 before passing to lisp thread. (Bug#950)
6109
f761d6b6 61102009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6111
d93f9575
CY
6112 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6113 variable as it was never reset.
6114 (ns_term_init): Remove initialization of Lisp-settable defaults
6115 and ns_expand_space.
6116 (-setPanelFromDefaultValues): Remove ns_expand_space.
6117 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6118 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6119 i.e. no additional spacing, similar to Carbon port.
6120
d93f9575
CY
6121 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6122 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6123
305018ec
JD
61242009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6125
6126 * sound.c (alsa_configure): Remove call to deprecated
6127 snd_pcm_sw_params_set_xfer_align.
6128
f761d6b6 61292009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6130
6131 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6132 after clicking in a detached tool bar.
6133 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6134
46e722a9
SM
61352009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6136
348db3dd
SM
6137 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6138 int/Lisp_Object mixup).
46e722a9 6139
a3d16f39
KH
61402009-03-13 Kenichi Handa <handa@m17n.org>
6141
6142 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6143 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6144 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6145 (set_fontset_font): Change ARG to a vector. Handle range_list in
6146 ARG correctly.
6147 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6148 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6149 the above change.
6150 (fontset_from_font): Fix previous change.
fe24f56a 6151 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6152 entry. If FONTSET is the default fontset, don't set the extra
6153 slot of the returning char-table.
6154
b066e6b6
JB
61552009-03-12 Juanma Barranquero <lekktu@gmail.com>
6156
6157 * nsfns.m (Fx_close_connection): Doc fix.
6158 (Fns_do_applescript): Reflow docstring.
6159 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6160 (Fx_display_pixel_width, Fx_display_pixel_height)
6161 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6162 Fix typos in docstrings.
6163 (Fns_set_alpha): Fix typos in error messages.
6164
d472514e 61652009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6166
d472514e 6167 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6168 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6169 were used for such events.
6170
d472514e
JB
6171 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6172 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6173
d472514e 6174 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6175 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6176
fb930676
KH
61772009-03-11 Kenichi Handa <handa@m17n.org>
6178
ff85581a
KH
6179 * font.h (font_open_by_spec): Extern it.
6180
c50b7e98
KH
6181 * font.c (font_open_by_spec): New function.
6182 (font_open_by_name): Use font_open_by_spec.
6183
fb930676
KH
6184 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6185 fontset of the frame.
6186
6187 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6188 modify the default font of frames that use this fontset.
6189 (num_auto_fontsets): New variable.
6190 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6191 name. Be sure to set FONTSET_ASCII to the correct font name.
6192 (update_auto_fontset_alist): New function.
6193
df4e8455
JB
61942009-03-11 Juanma Barranquero <lekktu@gmail.com>
6195
6196 * makefile.w32-in: Update dependencies.
6197
0a375797
AR
61982009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6199
6200 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6201
61313fa3
SM
62022009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6203
6204 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6205
b55103fb
CY
62062009-03-10 Chong Yidong <cyd@stupidchicken.com>
6207
6208 * lread.c (Feval_buffer): Doc fix.
6209
dde2559c
KH
62102009-03-09 Kenichi Handa <handa@m17n.org>
6211
6212 * charset.c (Qfile_name_handler_alist): Extern it.
6213 (load_charset_map_from_file): Temporarily bind
6214 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6215
df4e8455 62162009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6217
47f588bb
GM
6218 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6219 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6220
4ddf94bd
AR
62212009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6222
4c9bdfc2
AR
6223 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6224 (x_set_window_size): Change back to calculated method of setting
6225 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6226 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6227 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6228
fe41ae9e
AR
6229 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6230
4c9bdfc2
AR
6231 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6232 accelerator in parens under GNUstep.
6233
825d0875
KH
62342009-03-06 Kenichi Handa <handa@m17n.org>
6235
6236 These changes are to detect incorrect composition sequence without
f3b3be74 6237 looking ahead the source. (Bug#2370)
825d0875
KH
6238
6239 * coding.h: Include "composite.h".
6240 (enum compisition_state): New enum.
6241 (struct compisition_status): New struct.
6242 (struct iso_2022_spec): New member cmp_status.
6243 (struct emacs_mule_spec): New struct.
6244 (struct coding_system): New members ctext_extended_segment_len and
6245 embedded_utf_8. Change the union member
6246 spec.emacs_mule_full_support to spec.emacs_mule.
6247
6248 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6249 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6250 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6251 (ADD_COMPOSITION_DATA): New arg nbytes.
6252 (emacs_mule_char): New arg cmp_status.
6253 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6254 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6255 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6256 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6257 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6258 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6259 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6260 (EMACS_MULE_COMPOSITION_END): New macro.
6261 (emacs_mule_finish_composition): New function.
6262 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6263 (decode_coding_emacs_mule): Avoid long looking ahead while
6264 handling composition.
6265 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6266 (ENCODE_COMPOSITION_RULE): New macro.
6267 (finish_composition): New function.
6268 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6269 (DECODE_COMPOSITION_START): New implementation.
6270 (DECODE_COMPOSITION_END): Likewise.
6271 (STORE_COMPOSITION_RULE): New macro.
6272 (decode_coding_iso_2022): Avoid long looking ahead while handling
6273 composition, CTEXT extended segment, and embedded UTF-8.
6274 (setup_coding_system): For a coding of type iso-2022, reset
6275 CODING_ISO_EXTSEGMENT_LEN (coding) and
6276 CODING_ISO_EMBEDDED_UTF_8 (coding).
6277 (get_translation): Delete arguments last_block, from_nchars,
6278 to_nchars. Callers changed.
6279 (produce_chars): Don't modify charbuf. Adjusted for the change of
6280 get_translation.
98a326f7 6281 (produce_composition): Adjust for the new annotation sequence.
825d0875 6282 (handle_composition_annotation): Likewise.
98a326f7 6283 (consume_chars): Adjust for the change of get_translation.
825d0875 6284
ccbc4452
AR
62852009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6286
4ddf94bd 6287 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6288
988a7ddb
KH
62892009-03-05 Kenichi Handa <handa@m17n.org>
6290
6291 * font.c (font_select_entity): New function.
6292 (font_find_for_lface): Use font_select_entity to select a font.
6293
6294 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6295 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6296 font with C restriction.
6297
98a326f7 62982009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6299
be1bce46 6300 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6301
10ea2b82
JR
63022009-03-04 Jason Rumney <jasonr@gnu.org>
6303
2c93b248 6304 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6305 characters that have already been read. (Bug#2569)
2c93b248 6306
10ea2b82
JR
6307 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6308 Log an error message if check_image_size failed.
6309 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6310 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6311
71a0c011
EZ
63122009-03-02 Eli Zaretskii <eliz@gnu.org>
6313
6314 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6315 when decoding process output.
6316
2f63bba8
RS
63172009-03-01 Richard M Stallman <rms@gnu.org>
6318
6319 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6320
6321 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6322
0a9564cb
EZ
63232009-02-28 Eli Zaretskii <eliz@gnu.org>
6324
6325 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6326 (decode_coding_emacs_mule, decode_coding_iso_2022)
6327 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6328 (decode_coding_raw_text, decode_coding_charset)
6329 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6330 Honor inhibit-eol-conversion. (Bug #2186)
6331
449148b3
JR
63322009-02-28 Jason Rumney <jasonr@gnu.org>
6333
6334 * coding.c (detect_coding_charset): If not checking latin extra,
6335 fail on characters between 0x80 and 0xA0. (Bug#2354)
6336
a4aee864
EZ
63372009-02-28 Eli Zaretskii <eliz@gnu.org>
6338
6339 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6340 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6341
d88bee5a
GM
63422009-02-27 Glenn Morris <rgm@gnu.org>
6343
6344 * callint.c (Finteractive): Doc fix.
6345
a808f22d
KH
63462009-02-27 Kenichi Handa <handa@m17n.org>
6347
6348 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6349
caf8d60c
CY
63502009-02-27 Chong Yidong <cyd@stupidchicken.com>
6351
6352 * font.c (font_style_to_value): Set value for unknown symbols to
6353 100 instead of 255.
b61137ea
CY
6354 (weight_table, slant_table, width_table): Treat "unspecified" as
6355 the default value.
caf8d60c 6356
1a0de25c
JB
63572009-02-26 Juanma Barranquero <lekktu@gmail.com>
6358
6359 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6360
8fc45744
JB
63612009-02-25 Juanma Barranquero <lekktu@gmail.com>
6362
107bd7d1
JB
6363 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6364 error as soon as a recursive load is detected.
8fc45744 6365
f097e223
AR
63662009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6367
6368 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6369 before caching.
6370
8810a12f
KH
63712009-02-24 Kenichi Handa <handa@m17n.org>
6372
6373 * fontset.c (fontset_find_font): Fix the condition for checking
6374 unavailable font.
6375
2c7d1565
GM
63762009-02-24 Glenn Morris <rgm@gnu.org>
6377
6378 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6379 whitespace that confuses documentation.
6380
a20878b6
MB
63812009-02-23 Miles Bader <miles@gnu.org>
6382
6383 * process.c (Flist_system_processes, Fprocess_attributes)
6384 (syms_of_process): Rename `system-process-attributes' to
6385 `process-attributes'.
6386
b3b58c01
AS
63872009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6388
1b3b981b
AS
6389 * coding.h (struct coding_system): Make safe_charsets a pointer to
6390 unsigned char.
6391 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6392 being 255.
6393 (SAFE_CHARSET_P): Likewise.
6394 (setup_iso_safe_charsets): Properly setup safe_charsets.
6395 (Fdefine_coding_system_internal): Likewise.
6396 (setup_coding_system): Likewise. Remove unneeded casts.
6397 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6398 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6399 unneeded casts.
6400
b3b58c01
AS
6401 * insdel.c (del_range_2): Don't modify gap contents when called
6402 from decode_coding_object. (Bug#1809)
6403
0b6f228c
CY
64042009-02-21 Chong Yidong <cyd@stupidchicken.com>
6405
6406 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6407 Qfont_object.
6408 (Ftype_of): Recognize font objects.
6409
6410 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6411
6412 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6413 moved to data.c.
6414
52f8870b
AR
64152009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6416
6417 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6418 async_iconified. Based on a patch by Christian Lynbech
6419 <christian.lynbech@tieto.com>.
6420 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6421
7087d5e9
GM
64222009-02-20 Glenn Morris <rgm@gnu.org>
6423
6424 * syntax.c (Fskip_chars_forward): Fix doc typo.
6425
41d2ceef
CY
64262009-02-20 Chong Yidong <cyd@stupidchicken.com>
6427
6428 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6429
1a3b7ca6
CY
64302009-02-19 Chong Yidong <cyd@stupidchicken.com>
6431
6432 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6433
73cce38d
KH
64342009-02-19 Kenichi Handa <handa@m17n.org>
6435
6436 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6437 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6438
a51092ee
DN
64392009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6440
6441 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6442
c423ecca
KH
64432009-02-18 Kenichi Handa <handa@m17n.org>
6444
6445 * font.c (font_check_otf_features): Fix handling of `nil' element.
6446 (Ffont_spec): Describe :lang and :otf in the docstring.
6447
4c1958f4
AS
64482009-02-16 Andreas Schwab <schwab@suse.de>
6449
6450 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6451 string.
6452
5704f39a
KH
64532009-02-16 Kenichi Handa <handa@m17n.org>
6454
6455 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6456 (Bug#1723)
5704f39a 6457
8f0085aa
CY
64582009-02-14 Chong Yidong <cyd@stupidchicken.com>
6459
a057d86a 6460 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6461
6462 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6463 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6464
aff01dd9
EZ
64652009-02-14 Eli Zaretskii <eliz@gnu.org>
6466
6467 * msdos.c (MAX_SCREEN_BUF): New macro.
6468 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6469 Encode the entire run of glyphs sharing the same face, instead of
6470 doing that one glyph at a time (fixes a bug with displaying
6471 double-size characters).
6472
ba301db3
AR
64732009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6474
6475 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6476
6477 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6478 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6479 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6480
6481 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6482 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6483
51d861de
SM
64842009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6485
ac146f82 6486 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6487 invisible areas.
6488
7fed8996
JR
64892009-02-12 Jason Rumney <jasonr@gnu.org>
6490
631ea4fb
JR
6491 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6492 (add_font_entity_to_list): Call check_face_name even when family
6493 is unspecified.
6494
cb4a3e42
JR
6495 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6496 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6497 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6498
7fed8996 6499 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6500 raster fonts. (Bug#2219)
7fed8996 6501
895416e3
KH
65022009-02-12 Kenichi Handa <handa@m17n.org>
6503
6504 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6505 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6506 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6507 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6508 (find_automatic_composition): While looking forward and backward,
6509 check static composition. Fix where to stop looking forward.
6510 (composition_adjust_point): Fix checking of static composition.
6511 (Fcomposition_get_gstring): Pay attention to
1dacf998 6512 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6513
6514 * lisp.h (fast_looking_at): Extern it.
6515
6516 * search.c (fast_looking_at): New function.
6517
51d861de 6518 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6519 <struct glyph>.u.cmp.to.
6520 (append_composite_glyph): Likewise.
6521
51d861de 6522 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6523 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6524 composition.
51d861de 6525 (append_composite_glyph): Adjust for the change of
895416e3
KH
6526 <strcut glyph>.u.cmp.to.
6527
8510724d
JB
65282009-02-11 Juanma Barranquero <lekktu@gmail.com>
6529
6530 * casetab.c (init_casetab_once):
6531 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6532 * font.c (font_update_lface):
6533 * fontset.c (Fnew_fontset):
6534 * ftfont.c (ftfont_drive_otf):
6535 * xfont.c (xfont_open):
6536 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6537
294fa707
SM
65382009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6539
6540 * fileio.c (Fwrite_region): !NILP -> CONSP.
6541
b5bfebec
AS
65422009-02-10 Andreas Schwab <schwab@suse.de>
6543
6544 * process.c (send_process): Properly relocate pointer into data
adab88bd 6545 when using encoded data. (Bug#2272)
b5bfebec 6546
cb84a2be
KH
65472009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6548
6549 * coding.c (detect_coding_charset): Fix previous change.
6550
89e09428
JR
65512009-02-08 Jason Rumney <jasonr@gnu.org>
6552
6553 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6554 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6555
4470a277
AS
65562009-02-07 Andreas Schwab <schwab@suse.de>
6557
6558 * unexelf.c (unexec): Fix error message.
6559
3175b12a
AR
65602009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6561
6562 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6563 when modal window is active. (Bug #2152)
3175b12a
AR
6564 (applicationShouldTerminate:): Remove now-unneeded while loop
6565 around NSRunAlertPanel.
6566
6567 * nsmenu.m (popupSession): New file-global variable.
6568 (pop_down_menu): End the popupSession before closing dialog.
6569 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6570 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6571 don't query NSApp for events (just sleep instead).
6572
8434d0b8
EZ
65732009-02-07 Eli Zaretskii <eliz@gnu.org>
6574
51d861de
SM
6575 * coding.c (syms_of_coding) <translation-table-for-input>:
6576 Modify doc string to discourage use for character code unification.
8434d0b8 6577
aa82edfd
CY
65782009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6579
6580 * atimer.c (run_timers): Update pending_atimers.
6581
2d283c7c
CY
65822009-02-06 Chong Yidong <cyd@stupidchicken.com>
6583
eb306cab
CY
6584 * image.c (svg_load_image): Fix last change.
6585
2d283c7c
CY
6586 * xfns.c (Fx_create_frame): Signal an error if no font is
6587 found (Bug#2147).
6588
4d8e170e
JB
65892009-02-05 Juanma Barranquero <lekktu@gmail.com>
6590
6591 * character.c (syms_of_character) <script-representative-chars>:
6592 Fix typo in docstring.
6593
c96169a0
AR
65942009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6595
6596 * nsmenu.m (pop_down_menu): New function.
6597 (ns_popup_dialog): Call it on unwind.
6598 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6599 call timer_check() (Bug#2154).
6600 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6601 handling_signal is set.
6602 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6603
31fd7c5c 6604 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6605
6606 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6607
6608 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6609
51d861de
SM
6610 * keyboard.c (poll_for_input_1, handle_async_input):
6611 Set handling_signal under HAVE_NS.
c96169a0 6612
aacd8ba1
GM
66132009-02-04 Glenn Morris <rgm@gnu.org>
6614
6615 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6616
4cb75c4b
KH
66172009-02-04 Kenichi Handa <handa@m17n.org>
6618
6619 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6620
6621 * charset.c (Fchar_charset): New optional arg restriction.
6622
6623 * coding.h (coding_system_charset_list): Extern it.
6624
6625 * coding.c (coding_system_charset_list): New function.
6626
6627 * composite.c: Include coding.h and termhooks.h.
6628 (composition_gstring_p): Fix for the terminal case.
6629 (composition_gstring_width): Likewise.
6630 (fill_gstring_body): Likewise.
6631 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6632 the frame.
6633 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6634 is within a composition.
867d4bb3 6635 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6636
6637 * term.c (encode_terminal_code): Fix handling of composition.
6638 (produce_composite_glyph): For static composition, get pixel_width
6639 from struct composition.
6640
826ba17e
AS
66412009-02-02 Andreas Schwab <schwab@suse.de>
6642
6643 * unexelf.c (unexec): Handle unaligned bss offset.
6644
8ad093db
AR
66452009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6646
6647 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6648 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6649
8ad093db
AR
6650 * keyboard.c (handle_interrupt): Don't call
6651 quit_throw_to_read_char() under NS.
d0a76a6e 6652
8ad093db
AR
6653 * blockinput.h: Remove NS-specific code.
6654
4d18a7a2
DN
66552009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6656
db878925
DN
6657 * dispnew.c (window_change_signal): Don't try to get the size of a
6658 suspended tty frame.
6659 * term.c (Fresume_tty): Resize if the size has changed while the
6660 tty was suspended.
6661
4d18a7a2
DN
6662 * alloc.c (mark_stack): Properly conditionalize previous change.
6663
8984df7c
JB
66642009-01-30 Juanma Barranquero <lekktu@gmail.com>
6665
6666 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6667 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6668 Remove; this code is not used on Windows.
6669
75f4f1ac
EZ
66702009-01-30 Eli Zaretskii <eliz@gnu.org>
6671
6672 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6673 EOLs that also has stray ^M characters.
6674
07a1e794
JB
66752009-01-30 Juanma Barranquero <lekktu@gmail.com>
6676
6677 * atimer.c (run_timers, alarm_signal_handler):
6678 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6679 * w32inevt.c (w32_console_read_socket):
6680 * w32term.c (w32_read_socket):
6681 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6682
a8b11cc9
CY
66832009-01-30 Chong Yidong <cyd@stupidchicken.com>
6684
6685 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6686 Initialize it as a relative filename pattern.
6687 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6688 (Fcall_process_region): Simplify temp file creation using
6689 temporary-file-directory.
6690
c279587b
EZ
66912009-01-29 Eli Zaretskii <eliz@gnu.org>
6692
6693 * msdos.c: Rename pending_signals to msdos_pending_signals.
6694 (sig_suspender, sigprocmask): Adjust.
6695
a8fe3242
CY
66962009-01-29 Chong Yidong <cyd@stupidchicken.com>
6697
6698 * keyboard.c (pending_signals): New var.
6699 (poll_for_input, input_available_signal, init_keyboard): Set it.
6700 (process_pending_signals): New function.
6701
6702 * lisp.h (QUIT): Check pending_signals instead of
6703 interrupt_input_pending. Use process_pending_signals.
6704
51d861de 6705 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6706
51d861de 6707 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6708
6709 * sysdep.c (emacs_write): Use process_pending_signals.
6710
6711 * xterm.c (XTread_socket): Update pending_signals.
6712
6713 * w32term.c (w32_read_socket): Update pending_signals.
6714
6715 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6716
6570a1c4
KH
67172009-01-29 Kenichi Handa <handa@m17n.org>
6718
6719 * xftfont.c (xftfont_has_char): New function.
6720 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6721
d72a4afa
AR
67222009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6723
6724 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6725 under GNUstep.
6726 (ns_query_color): New declaration.
6727
6728 * nsterm.m (ns_confirm_quit): New variable.
6729 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6730 (EmacsApp-applicationShouldTerminate:): Use it.
6731 (EmacsPrefsController): Let user set it.
6732 (ns_query_color): New function.
6733 (ns_defined_color): Use it.
6734 (ns_initialize): Drop.
6735 (ns_term_init): Add two lines from ns_initialize(), and set
6736 input_interrupt_mode to nil.
6737
6738 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6739 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6740
9fe78804
KH
67412009-01-28 Kenichi Handa <handa@m17n.org>
6742
6743 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6744 (fontset_get_font_group): Remember that no font-group is specified
6745 for C.
9fe78804 6746
fa57de36
CY
67472009-01-27 Chong Yidong <cyd@stupidchicken.com>
6748
930600e9
CY
6749 * fns.c (concat): Check for string overflow (bug#1787).
6750
fa57de36
CY
6751 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
6752 Quadruple undo limits (bug#1501).
6753
7179ce7b
KH
67542009-01-27 Kenichi Handa <handa@m17n.org>
6755
6756 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
6757 directly use GT_Get_Char_index.
6758
6759 * xftfont.c (struct xftfont_info): New member `index'.
6760
6761 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 6762 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 6763
5be8fcc0
CY
67642009-01-26 Kenichi Handa <handa@m17n.org>
6765
6766 * fontset.c (fontset_find_font): Fix handling of non-cons return
6767 value of fontset_get_font_group.
6768 (fontset_font): Revert last change.
6769
19ae3e61
JR
67702009-01-26 Jason Rumney <jasonr@gnu.org>
6771
6772 * w32font.c (w32font_list_internal): Return quickly if registry is
6773 unknown. Simplify final return.
6774 (add_font_entity_to_list): Break complex logic down into more
6775 manageable chunks. Move unknown registry check to
6776 w32font_list_internal.
6777
8612b71a
AR
67782009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
6779
6780 Changes to remove Feval calls from GUI under NS.
6781
d8038940
JB
6782 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
6783 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
6784 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
6785
6786 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
6787 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
6788 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
6789 instead of NON_ASCII_KEYSTROKE_EVENT.
6790 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
6791 (EmacsApp-applicationShouldTerminate:): Query user.
6792 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
6793 instead of Feval.
6794
6795 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
6796
6797 * keyboard.c (kbd_buffer_get_event): Check for it.
6798 (keys_of_keyboard): Define lispy keys for
6799 ns-put/unput-working-text.
6800
6801 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
6802 versions.
6803 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
6804
6288ae55
CY
68052009-01-25 Chong Yidong <cyd@stupidchicken.com>
6806
6807 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 6808 setting current_buffer directly. (Bug#2044)
6288ae55 6809
289e7f8f
CY
68102009-01-24 Chong Yidong <cyd@stupidchicken.com>
6811
5ce87308 6812 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 6813 any work. (Bug#1952, bug#1990).
5ce87308 6814
64cc3cf6 6815 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 6816
b3243e6f
AR
68172009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6818
6819 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
6820 (ns_no_defaults): New declaration.
6821 (main): Use it.
e0d2e69a 6822
d900b2af 6823 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 6824
d900b2af 6825 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 6826
d900b2af
AR
6827 * nsterm.m (ns_no_defaults): New variable.
6828 (ns_initialize): Don't read defaults when ns_no_defaults.
6829 (EmacsView-readSelectionFromPasteboard:)
6830 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 6831 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
6832 (ns_dumpglyphs_stretch): New function.
6833 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 6834 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 6835
e0d2e69a
AR
6836 * nsimage.m (setPixmapData:): Set to ignore image DPI.
6837
3ac71f5d
CY
68382009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
6839
6840 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
6841 call for Sparc64.
6842
3fe53a83
AR
68432009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6844
6845 * nsfns.m:
6846 * nsgui.h:
6847 * nsmenu.m:
6848 * nsselect.m:
6849 * nsterm.h:
6850 * nsterm.m: Remove '23' comments that indicated code added during
6851 update from emacs-20 -> emacs-23.
6852
10f87c6f 68532009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
6854
6855 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 6856 ns_alternate_modifier. (Bug#1217)
a3b53a85 6857
c7cef62d
AR
6858 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
6859 Display all shortcuts, including those w/o super modifier.
6860
575fb8bd
AR
6861 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
6862
918b848b
CY
68632009-01-22 Chong Yidong <cyd@stupidchicken.com>
6864
6865 * fileio.c (Vwrite_region_post_annotation_function)
6866 (Vwrite_region_annotation_buffers): New vars.
6867 (build_annotations_unwind): Just reset
6868 Vwrite_region_annotation_buffers.
6869 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
6870 Call write-region-post-annotation-function.
6871 (build_annotations): Add to Vwrite_region_annotation_buffers if
6872 buffer changes.
6873
a39e2539
AR
68742009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6875
6876 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
6877 Tiger.
51d861de
SM
6878 * nsfns.m (ns_do_applescript):
6879 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 6880
35ed44db
AR
68812009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6882
6883 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
6884
cbe0b5bf
AR
68852009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6886
6887 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 6888
6049d3a0
AR
6889 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
6890
6891 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
6892 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
6893 handle Ctrl-tab. (Bug#1841)
6894 (ns_get_color): Use unsigned long long for scanned hex string value.
6895 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 6896 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 6897 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 6898 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 6899 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 6900 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 6901 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 6902
d3810c21 6903 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 6904 DPI. (Bug#1316)
d3810c21
AR
6905 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
6906 values in onTiger section.
4c7077c3 6907
e301e634
CY
69082009-01-19 Chong Yidong <cyd@stupidchicken.com>
6909
7f82490b
CY
6910 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
6911 Check return value of font_spec_from_name.
64cc3cf6 6912 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
6913
6914 * font.c (font_spec_from_name): Return Qnil if font name could not
6915 be parsed.
6916 (font_parse_name): Treat a `?' character as part of an XLFD.
6917
e301e634
CY
6918 * fns.c (Fsubstring): Doc fix.
6919
1c0db158
KH
69202009-01-19 Kenichi Handa <handa@m17n.org>
6921
51d861de 6922 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
6923 (ftfont_list): Likewise.
6924
acf20901
JB
69252009-01-18 Juanma Barranquero <lekktu@gmail.com>
6926
fff4e459
JB
6927 * dbusbind.c (Fdbus_register_signal):
6928 * process.c (conv_sockaddr_to_lisp):
6929 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
6930
acf20901
JB
6931 * callproc.c (Fgetenv_internal): Doc fix.
6932
e7abcdfb
CY
69332009-01-16 Chong Yidong <cyd@stupidchicken.com>
6934
6935 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
6936 it is not even used.
6937
b60861e6
GM
69382009-01-16 Glenn Morris <rgm@gnu.org>
6939
6940 * font.c (Ffont_variation_glyphs): Silence compiler.
6941
8db52afe
JB
69422009-01-15 Juanma Barranquero <lekktu@gmail.com>
6943
6944 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
6945 Reported by David Robinow <drobinow@gmail.com>.
6946
4cddb209
KH
69472009-01-15 Kenichi Handa <handa@m17n.org>
6948
51d861de 6949 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 6950
f247f67b
JR
69512009-01-14 Jason Rumney <jasonr@gnu.org>
6952
6953 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 6954 never a fontset. (Bug#1562)
f247f67b 6955
f56a4450
KH
69562009-01-14 Kenichi Handa <handa@m17n.org>
6957
6958 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 6959 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 6960
4e99855e
CY
69612009-01-13 Chong Yidong <cyd@stupidchicken.com>
6962
6963 * font.c (font_clear_prop): If clearing the family, clear the font
6964 width index too.
6965
fff4e459 6966 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 6967
24f01470
JB
69682009-01-12 Juanma Barranquero <lekktu@gmail.com>
6969
6970 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
6971 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
6972 functions, use sizeof.
6973
a41240a3
MR
69742009-01-12 Martin Rudalics <rudalics@gmx.at>
6975
6976 * keyboard.c (read_char): Fix case where last_nonmenu_event
6977 returned a bad value with submenus. (Bug#447)
6978
944636b8
CY
69792009-01-12 Chong Yidong <cyd@stupidchicken.com>
6980
6981 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
6982 family, clear the font width index too.
6983
0dad7c6f
JR
69842009-01-11 Jason Rumney <jasonr@gnu.org>
6985
6986 * keyboard.c (cmd_error_internal): Exit when errors occur before
6987 frame creation and not in daemon mode. (Bug#1836)
6988
7c2363af
CY
69892009-01-10 Chong Yidong <cyd@stupidchicken.com>
6990
6991 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
6992 of a display vector, backtrack.
6993 (try_window_reusing_current_matrix): Check glyph type before
6994 referencing charpos member.
6995
97b1b294
EZ
69962009-01-10 Eli Zaretskii <eliz@gnu.org>
6997
6998 Fix Bug #876:
6999
7000 * coding.c (inhibit_null_byte_detection): New variable.
7001 (detect_coding, detect_coding_system): Don't pay attention to null
7002 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7003 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7004 <inhibit-iso-escape-detection>: Doc fix.
7005
4624b6e3
JR
70062009-01-09 Jason Rumney <jasonr@gnu.org>
7007
7008 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7009 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7010 Only report Unicode Plane 2 fonts as unicode-sip.
7011
323b840c
CY
70122009-01-09 Chong Yidong <cyd@stupidchicken.com>
7013
51d861de
SM
7014 * xfaces.c (Fx_font_family_list): Delete function.
7015 Move compatibility version to faces.el.
323b840c 7016
51d861de 7017 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7018
eba7400d
MR
70192009-01-09 Martin Rudalics <rudalics@gmx.at>
7020
7021 * frame.c (x_set_frame_parameters): Remember requested value for
7022 fullscreen before it's reset by the parameter handler.
7023
4b09796d
GM
70242009-01-09 Glenn Morris <rgm@gnu.org>
7025
7026 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7027 (last_command_event): ... and update all users.
4b09796d
GM
7028 (last_input_char): For clarity, rename to...
7029 (last_input_event): ... and update all users.
7030 (last-command-char, last-input-char): Move to subr.el as aliases.
7031 * cmds.c, commands.h: Update for last_command_char rename.
7032
14ccea62
CY
70332009-01-08 Chong Yidong <cyd@stupidchicken.com>
7034
51d861de 7035 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7036
5f004711
JR
70372009-01-08 Jason Rumney <jasonr@gnu.org>
7038
7039 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7040 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7041 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7042 Don't declare.
fff4e459 7043 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7044 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7045
b71f6f73
KH
70462009-01-07 Kenichi Handa <handa@m17n.org>
7047
50b06221 7048 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7049 remember the coding system used for decoding in
50b06221
KH
7050 coding_system (Bug#1039).
7051
b71f6f73 7052 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7053 breaking the loop. (Bug#870)
b71f6f73
KH
7054 (decode_coding_utf_16, decode_coding_emacs_mule)
7055 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7056 (decode_coding_charset): Likewise.
7057
56f668f7
MR
70582009-01-05 Martin Rudalics <rudalics@gmx.at>
7059
7060 * frame.c (x_set_frame_parameters): Make sure height (width) get
7061 applied when fullwidth (fullheight) is set. (Bug#1522)
7062
5da9424d
JB
70632009-01-04 Juanma Barranquero <lekktu@gmail.com>
7064
7065 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7066 (utc_base): Declare as ULONGLONG, not long double.
7067 (convert_time_raw): Delete.
7068 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7069 (initialize_utc_base): New function.
7070 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7071 (convert_from_time_t): Use initialize_utc_base; compute result with
7072 64-bit arithmetic.
7073 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7074
c4605e09
EZ
70752009-01-03 Eli Zaretskii <eliz@gnu.org>
7076
9acef61c 7077 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7078 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7079 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7080 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7081 [!subprocesses]: Define.
7082 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7083 (Flist_system_processes, Fsystem_process_attributes)
7084 [!subprocesses]: Call list_system_processes and
7085 system_process_attributes instead of returning Qnil.
7086
9acef61c
JB
7087 * dosfns.c (system_process_attributes, list_system_processes):
7088 New functions.
c4605e09
EZ
7089
7090 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7091
7092 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7093 Don't use the default (no-op) implementation.
7094
8b7d0a16
JR
70952009-01-03 Jason Rumney <jasonr@gnu.org>
7096
a6d46bc1
JR
7097 * keyboard.c (parse_modifiers_uncached): Wheel events are
7098 clicks (bug#687).
7099
8b7d0a16
JR
7100 * w32term.c (x_query_colors, x_query_color): New functions.
7101
7102 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7103 (svg_load_image): Cast returned pointers from dynamically loaded
7104 functions. Eliminate W32 specific code.
7105
bfe11752
DN
71062009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7107
89e2438a
DN
7108 * nsfns.m (x_set_foreground_color, x_set_background_color)
7109 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7110 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7111 x_ prefix instead of ns_. Update references.
7112 (syms_of_nsfns): Add a FIXME comment.
7113
7114 * nsterm.m (x_set_cursor_type): New prototype.
7115 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7116
bfe11752
DN
7117 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7118 for Solaris instead of incorrectly providing Qutime and Qcutime.
7119
031da700
EZ
71202009-01-02 Eli Zaretskii <eliz@gnu.org>
7121
7122 * w32.c (process_times): Compute sum of utime and stime.
7123 (system_process_attributes): Add Qtime to the alist.
7124
7125 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7126 and add them to the alist.
7127
7128 * process.c (top level) <Qtime, Qctime>: New variables.
7129 (syms_of_process): staticpro them.
7130 (Fsystem_process_attributes): Add their documentation to the doc
7131 string.
7132
7133 * process.h: Declare Qtime and Qctime.
7134
df23bf08
JR
71352009-01-02 Jason Rumney <jasonr@gnu.org>
7136
9acef61c 7137 * image.c (Qgobject): New symbol.
df23bf08
JR
7138 (syms_of_image): Initialize it.
7139 (init_svg_functions): Load some functions from gobject library.
7140
5bbdf7aa
DN
71412009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7142
7143 * frame.c (make_terminal_frame): Remove redundant code and useless
7144 block.
7145
63136da6
AS
71462009-01-01 Andreas Schwab <schwab@suse.de>
7147
7148 * process.c (conv_sockaddr_to_lisp): Add workaround for
7149 getsockname bug on BSD.
7150
9ef69046
CY
71512009-01-01 Chong Yidong <cyd@stupidchicken.com>
7152
d6fafbe0
CY
7153 * xfns.c (x_create_tip_frame): Set border width of the X window.
7154
51d861de 7155 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7156
f9c34147
JR
71572009-01-01 Jason Rumney <jasonr@gnu.org>
7158
9acef61c 7159 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7160 Don't block input, as per earlier xterm.c changes.
7161
f5497e45
AR
71622008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7163
7164 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7165 (ns_appkit_version_int): New function.
7166 (x-server-version): Use ns_appkit_version_int and follow 21+
7167 convention of returning 3 integers.
7168
c19cab20
KH
71692008-12-30 Kenichi Handa <handa@m17n.org>
7170
7171 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7172 (CHAR_SURROGATE_PAIR_P): New macro.
7173
7174 * font.h (struct font_driver): New member get_variation_glyphs.
7175
9acef61c 7176 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7177 (Ffont_variation_glyphs): New function.
7178 (syms_of_font): Defsubr it.
7179
7180 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7181 ftfont_variation_glyphs.
7182 (setup_otf_gstring): New function.
7183 (ftfont_drive_otf): Use it.
7184 (ftfont_shape_by_flt): Handle variation selector.
7185 (ftfont_variation_glyphs): New function.
7186
28cd591f
MR
71872008-12-30 Martin Rudalics <rudalics@gmx.at>
7188
7189 * frame.c (Vemacs_iconified): Remove.
7190
7f714baf
JR
71912008-12-30 Jason Rumney <jasonr@gnu.org>
7192
7193 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7194 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7195
9d2d22ab
CY
71962008-12-30 Chong Yidong <cyd@stupidchicken.com>
7197
7198 * indent.c (Fvertical_motion): Don't advance iterator if we have
7199 reseated to the desired position.
7200
7201 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7202 checking for pos match.
7203
545312c2
KH
72042008-12-30 Kenichi Handa <handa@m17n.org>
7205
1ede3eb6
KH
7206 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7207 just get the low 8-bit of the code.
7208
545312c2
KH
7209 * font.c (font_intern_prop): Validate str as multibyte.
7210
bd7bbf29
DN
72112008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7212
31e0750e
DN
7213 * dispextern.h (struct face): Move lface and hash from the middle
7214 of bitfields.
7215
bd7bbf29
DN
7216 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7217
b5672e7c
DN
72182008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7219
7220 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7221 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7222 instead of intervals.h.
7223
d704470f
AS
72242008-12-26 Andreas Schwab <schwab@suse.de>
7225
7226 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7227 cons.
7228
54b33868
MR
72292008-12-26 Martin Rudalics <rudalics@gmx.at>
7230
7231 * textprop.c (Qminibuffer_prompt): New variable.
7232 (syms_of_textprop): Initialize it.
7233 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7234 in minibuffer-prompt face. (Bug#1662)
7235
40b615d6
JR
72362008-12-25 Jason Rumney <jasonr@gnu.org>
7237
7238 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7239
baae5c2d
JR
72402008-12-24 Jason Rumney <jasonr@gnu.org>
7241
7242 * ralloc.c (r_alloc_reset_variable): New function.
7243
7244 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7245 record of what points where. (Bug#716)
baae5c2d 7246
a9051c88
DN
72472008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7248
7249 * minibuf.c (read_minibuf): Follow the non-interactive case when
7250 running as a daemon, before detaching.
7251
8b146312
AS
72522008-12-22 Andreas Schwab <schwab@suse.de>
7253
7254 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7255 * gtkutil.c (free_widget_value): Use xfree instead of free.
7256
56f2de10
MR
72572008-12-22 Martin Rudalics <rudalics@gmx.at>
7258
7259 * frame.c (delete_frame): New function derived from
7260 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7261 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7262 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7263 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7264 * frame.h: Extern delete_frame.
7265 * window.c (window_loop):
7266 * terminal.c (delete_terminal):
7267 * xterm.c (x_connection_closed):
7268 * xfns.c (Fx_hide_tip):
9acef61c 7269 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7270
1fc200d6
JR
72712008-12-21 Jason Rumney <jasonr@gnu.org>
7272
7273 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7274 when character maps to .notdef character.
7275
5e252df2
SM
72762008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7277
7278 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7279
99b72cc4
JR
72802008-12-20 Jason Rumney <jasonr@gnu.org>
7281
7282 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7283 a graphical frame on Windows. (Bug#1325)
99b72cc4 7284
acc49a52
JD
72852008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7286
7287 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7288
6ea15123
CY
72892008-12-20 Chong Yidong <cyd@stupidchicken.com>
7290
7291 * minibuf.c (Fread_buffer): Doc fix.
7292
b2dab6c8
JR
72932008-12-20 Jason Rumney <jasonr@gnu.org>
7294
54ea0c87 7295 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7296 server name in UNC paths. (Bug#719)
54ea0c87 7297
b2dab6c8 7298 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7299 charbuf. (Bug#1035)
b2dab6c8 7300
6d1921be
DN
73012008-12-19 Daniel Engeler <engeler@gmail.com>
7302
7303 * sysdep.c (serial_configure): Fix typo.
7304
53934c98
DN
73052008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7306
7307 * sysdep.c: Include alloca.h.
f4f634e8
DN
7308 (system_process_attributes): Add implementation for Solaris.
7309
7310 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7311
06e111a6
DN
73122008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7313
7314 Reorganize implementation of Flist_system_processes and
7315 Fsystem_process_attributes. No functional changes.
7316 * process.c: Don't #include pwd.h, grp.h and limits.h.
7317 (Flist_system_processes): Just call list_system_processes.
7318 (Fsystem_process_attributes): Just call system_process_attributes.
7319 (procfs_list_system_processes, time_from_jiffies)
7320 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7321 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7322
7323 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7324 (list_system_processes): Rename from
7325 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7326 Provide a do nothing implementation.
7327 (system_process_attributes): Rename from
7328 procfs_list_system_processes.
7329 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7330 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7331
7332 * w32.c (list_system_processes): Rename from
7333 w32_list_system_processes.
7334 (system_process_attributes): Rename from
7335 w32_system_process_attributes.
7336
7337 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7338
7339 * process.h (w32_list_system_processes)
7340 (w32_system_process_attributes): Remove.
362654a6
JB
7341 (list_system_processes, system_process_attributes):
7342 New prototypes.
06e111a6 7343
6a705b23
KH
73442008-12-19 Kenichi Handa <handa@m17n.org>
7345
7346 * xfont.c (xfont_decode_coding_xlfd): New function.
7347 (xfont_encode_coding_xlfd): New function.
7348 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7349 (xfont_list): Decode and encode XLFD by iso-8859-1.
7350 (xfont_match): Likewise.
7351 (xfont_list_family): Likewise.
7352 (xfont_open): Likewise.
7353
d66c0241 7354 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7355 names are utf-8.
7356
d66c0241 7357 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7358 names are utf-8.
7359
5a130941
JD
73602008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7361
7362 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7363 changed.
bfd20325
JD
7364 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7365 clicked on a detached tool bar button.
5a130941 7366
fd95644b
DN
73672008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7368
7369 * emacs.c (main): Print and error and exit when no data is read
7370 from the pipe.
7371
e6eee6ae
JR
73722008-12-17 Jason Rumney <jasonr@gnu.org>
7373
7374 * w32font.c (w32font_has_char): Always return -1.
7375
a35dd56b
KH
73762008-12-16 Kenichi Handa <handa@m17n.org>
7377
7378 * font.c (font_open_entity): Fix previous change.
7379
0e3635c2
DN
73802008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7381
7382 * process.c: Include <limits.h>.
7383
d4835507 73842008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7385
7386 * font.c (font_update_drivers): Fix mistake in reconstructing the
7387 driver list.
7388
73892008-12-16 Chong Yidong <cyd@stupidchicken.com>
7390
7391 * font.c (font_clear_cache): Fix format of font cache data.
7392
e2cbc401
CY
73932008-12-15 Chong Yidong <cyd@stupidchicken.com>
7394
7395 * xftfont.c (xftfont_open): Free Xft font pattern if
7396 XftFontOpenPattern fails.
7397
7398 * xterm.c (x_free_frame_resources): Remove extraneous call to
7399 free_frame_faces.
7400
b131d535
CY
74012008-12-13 Chong Yidong <cyd@stupidchicken.com>
7402
7403 * xterm.c (x_delete_display): Move xim_close_dpy call to
7404 x_delete_terminal.
7405 (x_delete_terminal): Call xim_close_dpy.
7406
e6df5336
JR
74072008-12-13 Jason Rumney <jasonr@gnu.org>
7408
7409 * w32font.c (intern_font_name): New function.
7410 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7411 (w32font_open_internal, Fx_select_font): Decode font name.
7412 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7413
7414 * w32font.h (intern_font_name): Declare new function.
7415
7416 * w32uniscribe.c (add_opentype_font_name_to_list):
7417 Use intern_font_name.
7418
20d68145
CY
74192008-12-13 Chong Yidong <cyd@stupidchicken.com>
7420
9f2554de
CY
7421 * frame.c (Fdelete_frame): Call free_font_driver_list.
7422
3d9bec9a
CY
7423 * font.c (free_font_driver_list): Implement missing function.
7424
20d68145
CY
7425 * w32term.c (w32_term_init): Don't initialize the image cache
7426 here; it will be done in init_frame_faces.
7427
7428 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7429 (struct x_display_info): Remove unused member null_pixel. New
7430 member xim_callback_data.
7431
7432 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7433 (xim_initialize): Save pointer to callback function data.
7434 (xim_close_dpy): Free callback function data. Call XCloseIM,
7435 reverting 2008-11-04 change by David Smith.
7436 (x_term_init): Don't initialize the image cache here; it will be
7437 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7438 (x_delete_display): Free x_dnd_atoms member.
7439
96f9306b
KH
74402008-12-13 Kenichi Handa <handa@m17n.org>
7441
6dec9044
JB
7442 * font.c (font_rescale_ratio): Moved from xfaces.c.
7443 Argument type changed. Handle a font-spec too.
96f9306b 7444 (font_score): Check Vface_font_rescale_alist.
6dec9044 7445 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7446
7447 * xfaces.c (font_rescale_ratio): Moved to font.c.
7448
8d5b4964
CY
74492008-12-13 Chong Yidong <cyd@stupidchicken.com>
7450
7451 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7452
e6df5336
JR
74532008-12-12 Jason Rumney <jasonr@gnu.org>
7454
7455 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7456 Vwindow_system_version to the real w32 major version.
7457
97c6058a
DN
74582008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7459
7460 * term.c (init_tty): Move setting the terminal name before the
7461 potential user: maybe_fatal.
7462
ec4e88d7
CY
74632008-12-11 Chong Yidong <cyd@stupidchicken.com>
7464
d4835507
JB
7465 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7466 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7467
b4233ec9
JR
74682008-12-11 Jason Rumney <jasonr@gnu.org>
7469
8ec71e23 7470 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7471 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7472
b4233ec9 7473 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7474 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7475
011a0143
JB
74762008-12-11 Juanma Barranquero <lekktu@gmail.com>
7477
7478 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7479
3c309f34
JB
74802008-12-11 Juanma Barranquero <lekktu@gmail.com>
7481
7482 * process.c (Fsystem_process_attributes, syms_of_process):
7483 Fix typo in name of Ssystem_process_attributes.
7484 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7485
fedc6ab5
JB
74862008-12-11 Juanma Barranquero <lekktu@gmail.com>
7487
7488 * syntax.c (Fmodify_syntax_entry): Doc fix.
7489
ba3de0e8
JB
74902008-12-10 Juanma Barranquero <lekktu@gmail.com>
7491
7492 * font.c (Ffont_spec): Move usage to end of docstring.
7493
174f1c74
JR
74942008-12-10 Jason Rumney <jasonr@gnu.org>
7495
7496 * w32font.c (Qcham): New symbol.
7497 (font_supported_scripts): Add cham, and comments for other new
7498 scripts in bitfield from OpenType spec.
9d32f818
JR
7499 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7500 contain characters beyond the bmp.
174f1c74 7501
7b649478
KH
75022008-12-10 Kenichi Handa <handa@m17n.org>
7503
7504 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7505 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7506 Qunicode_sip.
7507
2133e2d1
JB
75082008-12-10 Juanma Barranquero <lekktu@gmail.com>
7509
7510 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7511 (Fcoding_system_put): Use QCdefault_char.
7512 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7513
9af886ee
CY
75142008-12-09 Chong Yidong <cyd@stupidchicken.com>
7515
74d819eb
CY
7516 * xftfont.c (syms_of_xftfont): Fix typo.
7517
4ccfa1c0 7518 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7519
7c19d3ae
DN
75202008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7521
7522 * emacs.c (main): Close daemon_pipe on exec.
7523
567826bb
CY
75242008-12-08 Chong Yidong <cyd@stupidchicken.com>
7525
7526 * termchar.h (struct tty): New members termcap_term_buffer and
7527 termcap_strings_buffer.
7528
7529 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7530 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7531 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7532 All callers changed.
7533 (init_tty): Store termcap data and string buffers in new struct
7534 tty members termcap_term_buffer and termcap_strings_buffer.
7535 (delete_tty): Free them.
4ccfa1c0 7536 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7537
aa96c42b
SZ
75382008-12-07 Seiji Zenitani <zenitani@mac.com>
7539
7540 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7541 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7542
b7e1d896
CY
75432008-12-06 Chong Yidong <cyd@stupidchicken.com>
7544
7545 * coding.c (make_conversion_work_buffer): Disable buffer
7546 modification hooks in the work buffer.
7547
b5ec91a5
EZ
75482008-12-05 Eli Zaretskii <eliz@gnu.org>
7549
7550 * process.c (procfs_system_process_attributes): If `nread' has a
7551 negative value, assign zero to it.
7552
a5d2a52b
CY
75532008-12-05 Chong Yidong <cyd@stupidchicken.com>
7554
68c5540b 7555 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7556
7bf1bb21
KH
75572008-12-05 Kenichi Handa <handa@m17n.org>
7558
7559 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7560 second character is a combining character.
7561
2fdc7d00
EZ
75622008-12-05 Eli Zaretskii <eliz@gnu.org>
7563
7564 * process.c (procfs_system_process_attributes): Don't use cmd,
7565 cmdsize, and q without initializing them first.
7566
bf6bfba8
JR
75672008-12-04 Jason Rumney <jasonr@gnu.org>
7568
7569 * w32font.c (w32font_draw): Initialize orig_clip before getting
7570 it, and delete it when finished.
7571
a3b1a468
DN
75722008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7573
7574 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7575 case when running as a daemon before detaching.
7576
8b8be8eb
JB
75772008-12-03 Juanma Barranquero <lekktu@gmail.com>
7578
805f2638 7579 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7580
b1bde622
KH
75812008-12-03 Kenichi Handa <handa@m17n.org>
7582
e500c47d
KH
7583 * font.c (font_at): Set `multibyte' at first.
7584
ca516334
KH
7585 * coding.c (decode_coding_charset): Check type of an element of
7586 vector VALIDS.
7bf1bb21 7587 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7588
4ccfa1c0 7589 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7590 (font_for_char): Likewise.
7591
1e5ecd37
CY
75922008-12-03 Chong Yidong <cyd@stupidchicken.com>
7593
d5b01609 7594 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7595 (font_update_lface): Handle fonts with corrupted size specs,
7596 i.e. non-int and non-float.
d5b01609 7597
11e3a6e4 7598 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7599 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7600 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7601
ab06788b
CY
7602 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7603
1e5ecd37 7604 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7605 underline_minimum_offset for underline position.
1e5ecd37 7606
63c125ab
DN
76072008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7608
7609 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7610
7611 * character.c (c_string_width): Specify the type for LEN.
7612
3a8406e1
KH
76132008-12-03 Kenichi Handa <handa@m17n.org>
7614
4ccfa1c0 7615 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7616 (decode_coding_utf_8): Likewise.
4ccfa1c0 7617 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7618 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7619
651df7d9
CY
76202008-12-02 Chong Yidong <cyd@stupidchicken.com>
7621
7622 * keyboard.c (make_lispy_position): Only use PT if the selected
7623 window is current.
7624
1f625c6c
AS
76252008-12-02 Andreas Schwab <schwab@suse.de>
7626
f7741ce9
AS
7627 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7628
1f625c6c
AS
7629 * doprnt.c (doprnt1): Fix size of charbuf.
7630
92bc2678
CY
76312008-12-02 Chong Yidong <cyd@stupidchicken.com>
7632
7633 * keyboard.c (timer_check): Revert last change.
7634
93b9e8cc
JB
76352008-12-02 Juanma Barranquero <lekktu@gmail.com>
7636
7637 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7638
fd7a37d5
JB
76392008-12-01 Juanma Barranquero <lekktu@gmail.com>
7640
7641 * makefile.w32-in: Update dependencies.
7642 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7643
c115043b
AS
76442008-12-01 Andreas Schwab <schwab@suse.de>
7645
7646 * font.c (register_font_driver): Use xmalloc.
7647 (font_put_frame_data): Likewise.
7648
f5668d2a
CY
76492008-12-01 Chong Yidong <cyd@stupidchicken.com>
7650
860d96be
CY
7651 * xfaces.c (realize_x_face): Make abort condition clearer.
7652
f5668d2a
CY
7653 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7654
379c17e7
CY
76552008-11-30 Chong Yidong <cyd@stupidchicken.com>
7656
7657 * keyboard.c (timer_check): After a timer runs, ensure that the
7658 selected window's buffer is current.
7659
35f36d65
JB
76602008-11-30 Juanma Barranquero <lekktu@gmail.com>
7661
f952c61c
JB
7662 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7663 It was accidentally restored by the Unicode merge.
7664
35f36d65
JB
7665 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7666
b23077df
JB
76672008-11-29 Juanma Barranquero <lekktu@gmail.com>
7668
7669 * w32proc.c: Include "coding.h".
7670 (Fw32_short_file_name): Encode filename passed to Windows API.
7671 (Fw32_long_file_name): Encode filename passed to Windows API and
7672 decode back the result. (Bug#1433)
7673
b8ebe9dd
KH
76742008-11-29 Kenichi Handa <handa@m17n.org>
7675
8cc53f96
KH
7676 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7677 not before accessing it.
7678
b8ebe9dd
KH
7679 * charset.c (Fdefine_charset_internal): After calculating
7680 min_char, max_char, and fastmap, copy the charset structure again.
7681 (encode_char): Fix the previous change.
7682
59bc82c0
SZ
76832008-11-28 Seiji Zenitani <zenitani@mac.com>
7684
7685 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7686
7687 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7688
7689 * nsterm.m (x_set_frame_alpha): New function.
7690
32247e3d
EZ
76912008-11-27 Eli Zaretskii <eliz@gnu.org>
7692
7693 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7694
b003e5ff
JB
76952008-11-27 Juanma Barranquero <lekktu@gmail.com>
7696
7697 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7698 pointer to check_face_name.
7699
708550f5
KH
77002008-11-27 Kenichi Handa <handa@m17n.org>
7701
7702 * category.h (SET_CATEGORY_SET): Call set_category_set.
7703 (set_category_set): Extern it.
7704
7705 * category.c (hash_get_category_set): New function.
7706 (Fmodify_category_entry): Adjusted for the change of
7707 char_table_ref_and_range. Call hash_get_category_set to get a
7708 category set to store in the table.
7709
7710 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7711 Funify_charset.
7712
2ae37cf0 7713 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7714 (DECODE_CHAR): Check if the decoder vector is ready.
7715 (ENCODE_CHAR): Check if the encoder char-table is ready.
7716 (maybe_unify_char): Extern it.
7717
7718 * charset.c (Vchar_unified_charset_table): Delete it.
7719 (inhibit_load_charset_map): New variable.
7720 (temp_charset_work): New variable.
7721 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7722 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7723 New macros.
7724 (load_charset_map): Meaning of control_flag changed. If
7725 inhibit_load_charset_map is nonzero, setup a table in
7726 temp_charset_work.
7727 (load_charset): New argument control_flag.
7728 (map_charset_for_dump): New function.
7729 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7730 map_charset_for_dump.
7731 (Fdefine_charset_internal): If the charset method is MAP, load
7732 mapping tables by calling load_charset.
7733 (Funify_charset): Don't load a mapping table but directly set
7734 Vchar_unify_table.
7735 (maybe_unify_char): New function.
7736 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7737 Handle the case of inhibit_load_charset_map being nonzero.
7738 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7739 Handle the case of inhibit_load_charset_map being nonzero.
7740 (Fclear_charset_maps): Just free temp_charset_work.
7741 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7742 variable.
7743
7744 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7745 change of char_table_ref_and_range.
7746 (char_table_ref_and_range): Change the meaning of argument FROM
7747 and TO. Now the caller must provide initial values for *FROM
7748 and *TO.
7749
7750 * fontset.c (fontset_add): Adjusted for the change of
7751 char_table_ref_and_range.
7752 (fontset_get_font_group): Likewise.
7753 (Ffontset_info): Likewise.
7754
7755 * keymap.c (describe_vector): Adjusted for the change of
7756 char_table_ref_and_range. For char-table, put boundary between
7757 non-ASCII and 8-bit characters.
7758
7759 * print.c (print_object): For bool-vector, delete unnecessary
7760 check of ASCII_BYTE_P.
7761
9196133b
JR
77622008-11-26 Jason Rumney <jasonr@gnu.org>
7763
7764 * w32font.c (w32font_open_internal): Don't include external
9acef61c 7765 leading in font height. (Bug#879)
9196133b 7766
9f688acf
GM
77672008-11-26 Glenn Morris <rgm@gnu.org>
7768
7769 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
7770 redefinition with ifdef. (Bug#1383)
7771
90d19aff
AR
77722008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7773
7774 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
7775
4ccfa1c0 77762008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
7777
7778 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
7779 New EmacsView methods.
7780 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
7781 Fixes bug #1048,1357,1414.
7782
77832008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7784
7785 Fix bug #1362.
7786 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
7787 is not an indexed color.
7788 * nsterm.m (free_indexed_color): Add argument checking.
7789 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
7790
e7d5ecb3
CY
77912008-11-24 Chong Yidong <cyd@stupidchicken.com>
7792
7793 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
7794 Document confirm-after-completion value for
7795 minibuffer-completion-confirm.
7796
c285743c
JR
77972008-11-24 Jason Rumney <jasonr@gnu.org>
7798
7799 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
7800 warning.
7801
b0857706
JR
78022008-11-23 Jason Rumney <jasonr@gnu.org>
7803
7804 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
7805 restored before returning.
7806
7807 * w32font.c (check_face_name): New function.
7808 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 7809 fonts. (Bug#642)
b0857706 7810
ee50ff07
MR
78112008-11-22 Martin Rudalics <rudalics@gmx.at>
7812
7813 * buffer.c (Fswitch_to_buffer): Reword and mention new option
7814 confirm-nonexistent-file-or-buffer in doc-string.
7815
b8ff72fa
SM
78162008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7817
7818 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
7819 Fix copy/paste typo. Add checks.
7820
cee53ed4
KH
78212008-11-21 Kenichi Handa <handa@m17n.org>
7822
7823 * coding.c (detect_coding_iso_2022): Reject invalid composition
7824 sequence.
7825 (DECODE_COMPOSITION_START): If the current source is the last
7826 block, and the current composition doesn't end, regard this
7827 sequence as invalid.
7828 (decode_coding_iso_2022): Handle invalid composition sequence.
7829
f6ef1e65
MR
78302008-11-20 Martin Rudalics <rudalics@gmx.at>
7831
7832 * window.c (coordinates_in_window): Don't return
7833 ON_VERTICAL_BORDER for the rightmost position of a mode/header
7834 line when the window is not the rightmost one. (Bug#1372)
7835
e08b1705
MR
78362008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
7837
7838 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
7839
ad98e89f
EZ
78402008-11-15 Eli Zaretskii <eliz@gnu.org>
7841
7842 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
7843 and bright_bg if noninteractive is non-zero.
7844
fb098a4b
CY
78452008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7846
7847 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
7848 x_draw_glyph_string_background.
7849
7850 * w32term.c (x_draw_glyph_string): Likewise.
7851
ce952b6e
CY
78522008-11-15 Chong Yidong <cyd@stupidchicken.com>
7853
7854 * xterm.c (x_draw_glyph_string): Stop drawing the background of
7855 the next glyph string once past the overhang width.
7856
7857 * nsterm.m (ns_draw_glyph_string): Likewise.
7858
7859 * w32term.c (x_draw_glyph_string): Likewise.
7860
26ea7079
CY
78612008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
7862
7863 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
7864 double file close.
7865
1c33c906
MR
78662008-11-14 Martin Rudalics <rudalics@gmx.at>
7867
7868 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
7869 dedicated status of window before attempting to display another
7870 buffer in it.
7871
8fc29035
JB
78722008-11-14 Juanma Barranquero <lekktu@gmail.com>
7873
7874 * msdos.c (Fmsdos_long_file_names):
7875 (syms_of_msdos) <dos-unsupported-char-glyph>:
7876 * dosfns.c (Fint86): Fix typos in docstrings.
7877
55fb4286
EZ
78782008-11-14 Eli Zaretskii <eliz@gnu.org>
7879
7880 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
7881
3fda0315
KY
78822008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
7883
7884 * puresize.h (BASE_PURESIZE): Increase to 1260000.
7885
7e849c17
CY
78862008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
7887
7888 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
7889
7890 * frame.h: Negative alpha means "don't touch".
7891
7892 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
7893
7894 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
7895
b9fd67bd
DN
78962008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
7897
7898 * hftctl.c:
7899 * chpdef.h:
7900 * acldef.h: Remove files used only for systems no longer supported.
7901
7902 * Makefile.in: Fix .o alphabetical ordering.
7903 (hftctl.o): Remove dependency, file removed.
7904 (keymap.o, print.o): Depend on charset.h.
7905
d5998e03
KH
79062008-11-10 Kenichi Handa <handa@m17n.org>
7907
2ae37cf0 7908 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 7909
be70e183
CY
79102008-11-08 Chong Yidong <cyd@stupidchicken.com>
7911
7912 * dired.c (file_name_completion): If completion_ignore_case is
7913 enabled, ignore case when checking completion-regexp-list.
7914
7cf94eac
EZ
79152008-11-08 Eli Zaretskii <eliz@gnu.org>
7916
7917 * vm-limit.c (get_lim_data): Fix last change.
7918
ee107a89
KH
79192008-11-08 Kenichi Handa <handa@m17n.org>
7920
7921 * character.c (Fget_byte): New function.
7922 (syms_of_character): Defsubr Fget_byte.
7923
5fd15622
CY
79242008-11-07 Chong Yidong <cyd@stupidchicken.com>
7925
7926 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
7927 cursor position is valid after scrolling.
7928
13d62fad
JB
79292008-11-06 Juanma Barranquero <lekktu@gmail.com>
7930
7931 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
7932
a1dd2936
GM
79332008-11-06 Glenn Morris <rgm@gnu.org>
7934
7935 * xterm.c (handle_one_xevent): Don't let popup menus cause
7936 mouse-autoselect-window related window switching. (Bug#1261)
7937
860cd236
CY
79382008-11-04 David Smith <davidsmith@acm.org> (tiny change)
7939
7940 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
7941
653a3150
AS
79422008-11-04 Andreas Schwab <schwab@suse.de>
7943
7944 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
7945
870f5cac
CY
79462008-11-03 Chong Yidong <cyd@stupidchicken.com>
7947
7948 * xfns.c (Fx_wm_set_size_hint): New function.
7949
1e02f3cb
MR
79502008-11-03 Martin Rudalics <rudalics@gmx.at>
7951
7952 * textprop.c (Fprevious_single_char_property_change): Return 0
7953 when there's no change in a string. (Bug#1301)
7954
e630dfc6
MR
79552008-11-02 Martin Rudalics <rudalics@gmx.at>
7956
7957 * frame.c (do_switch_frame): New argument NORECORD passed to
7958 Fselect_window.
7959 (Fselect_frame): New argument NORECORD passed to
7960 do_switch_frame.
7961 (Fset_frame_selected_window): New argument NORECORD passed to
7962 Fselect_frame.
7963 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
7964 in call of do_switch_frame.
7965 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
7966 Handle NORECORD argument in call of Fselect_frame.
7967 * lisp.h (do_switch_frame, Fselect_frame)
7968 (Fset_frame_selected_window): Adjust declarations.
7969 * window.c (select_frame_norecord): New function.
7970 (run_window_configuration_change_hook): Use it and call
7971 Fselect_frame with NORECORD set.
7972 (Fselect_window): Pass NORECORD to Fselect_frame.
7973 (Fset_window_configuration): Handle NORECORD argument in call of
7974 do_switch_frame.
7975 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
7976 Fset_frame_selected_window.
7977 * keyboard.c (command_loop_1): Handle NORECORD in call of
7978 Fselect_frame (currently ifdefd).
7979
9020b223
GM
79802008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
7981
7982 * emacs.c (USAGE2): Untabify.
7983
793ffee8
SM
79842008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7985
7986 * composite.c (fill_gstring_header): Fix copy/paste typo.
7987
ab6d1131
MR
79882008-10-31 Martin Rudalics <rudalics@gmx.at>
7989
7990 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
7991 (Fother_window): Rename argument and rewrite doc-string.
7992 (select_window_norecord): Fix return value. (Bug#1276)
7993
601a9cf1
JB
79942008-10-30 Juanma Barranquero <lekktu@gmail.com>
7995
7996 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7997 new frames overriding foreground for tooltips. Based on similar patch
7998 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7999
813b0652
CY
80002008-10-29 Chong Yidong <cyd@stupidchicken.com>
8001
8002 * emacs.c (Fdaemon_initialized): Initialize nfd.
8003
4414f58f
MR
80042008-10-29 Martin Rudalics <rudalics@gmx.at>
8005
8006 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8007 (Fwindow_text_height): Clarify doc-strings.
8008 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8009 doc-string of window-scroll-functions.
8010
ecdcaa09
RS
80112008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8012
8013 * category.c (syms_of_category): Fix typo in docstring.
8014
23fe745a
JB
80152008-10-28 Juanma Barranquero <lekktu@gmail.com>
8016
8017 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8018 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8019 Fix typos in docstrings.
8020
ff808935
DN
80212008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8022
8023 * emacs.c (daemon_pipe): Make non-static.
8024 (IS_DAEMON): Move definition ...
8025 * lisp.h (IS_DAEMON): ... here.
8026 (daemon_pipe): Declare.
8027 (is_daemon): Remove.
8028 * dispnew.c (init_display): Use IS_DAEMON.
8029
fc012771
SM
80302008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8031
8032 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8033 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8034
8035 * emacs.c (is_daemon): Remove.
8036 (main): Don't set is_daemon.
8037 (IS_DAEMON): New macro.
8038 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8039 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8040 parent exits.
8041 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8042
d8bdbe6f
CY
80432008-10-27 Chong Yidong <cyd@stupidchicken.com>
8044
d1a072bf
CY
8045 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8046 over-sized glyph, draw it with the default glyph width.
8047
e2e325aa
CY
8048 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8049 glyph, draw it with the default glyph width.
8050
8051 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8052 glyph, draw it with the default glyph width.
8053
d8bdbe6f
CY
8054 * xdisp.c (try_scrolling): When computing the distance from the
8055 scroll margin to PT, try moving some distance past the window
8056 bottom before giving up.
8057
7bfac547
MR
80582008-10-27 Martin Rudalics <rudalics@gmx.at>
8059
8060 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8061 (Fset_window_buffer): Explain in doc-string that a window can be
8062 "strongly" dedicated to its buffer.
8063
4ff029f6
DN
80642008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8065
8066 * emacs.c (daemon_name): New variable.
8067 (main): Deal with --daemon=SERVER_NAME.
8068 (Fdaemonp): Return a name if one was passed to --daemon.
8069
5790ef40
DN
80702008-10-26 Romain Francoise <romain@orebokech.com>
8071
f9bd0df9 8072 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8073 (main): Create a pipe before forking, make the parent exit only after
8074 the child has closed its end of the pipe. Move closing the
8075 descriptors ...
8076 (Fdaemon_initialized): ... here. New function.
8077
f5385255
SM
80782008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8079
4d632321
SM
8080 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8081 the previous unoptimized table.
8082
f5385255
SM
8083 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8084 the distinction between non-nil and non-t value of `dedicated'.
8085
6c56a0f3
CY
80862008-10-25 Chong Yidong <cyd@stupidchicken.com>
8087
8088 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8089 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8090
fec89261
MR
80912008-10-25 Martin Rudalics <rudalics@gmx.at>
8092
8093 * window.c (Fget_buffer_window, Fdelete_windows_on)
8094 (Freplace_buffer_in_windows): Make buffer argument optional and
8095 rename to buffer_or_name.
8096
34fcddd0
CY
80972008-10-24 Chong Yidong <cyd@stupidchicken.com>
8098
f5385255
SM
8099 * xdisp.c (handle_single_display_spec, handle_display_prop):
8100 Undo 2005-05-16 change.
34fcddd0
CY
8101 (handle_stop): Pop iterator if it's loaded with an empty string.
8102 (get_overlay_strings_1): Don't save iterator if it's loaded with
8103 an empty string (bug#1201).
8104
064766f2
KH
81052008-10-24 Kenichi Handa <handa@m17n.org>
8106
8107 * ftfont.c (ftfont_otf_features): Fix previous change.
8108 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8109 calling ftfont_otf_features.
8110
f9bd0df9 81112008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8112
8113 * font.c (font_match_p): Fix for the case that a vector of
8114 characters is in script-representative-chars.
8115
1dae9197
MA
81162008-10-24 Michael Albinus <michael.albinus@gmx.de>
8117
8118 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8119 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8120 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8121 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8122 macro. (Bug#1186)
1dae9197 8123
f9bd0df9 81242008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8125
8126 * s/sol2-10.h: New file.
8127
878a4584
JB
81282008-10-23 Juanma Barranquero <lekktu@gmail.com>
8129
8130 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8131 poor beast has survived 9+ years and the jump from xterm.c!).
8132
cd265ca6
MR
81332008-10-23 Martin Rudalics <rudalics@gmx.at>
8134
8135 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8136 Reword doc-string.
f5385255 8137 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8138
472a4dc9
JB
81392008-10-23 Juanma Barranquero <lekktu@gmail.com>
8140
8141 * character.c (syms_of_character) <script-representative-chars>:
8142 <unicode-category-table>: Doc fixes.
8143
159bd5a2
NF
81442008-10-23 Noah Friedman <friedman@splode.com>
8145
8146 * coding.c (make_conversion_work_buffer): Check that
8147 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8148 Fget_buffer_create.
8149
49f9c344
KH
81502008-10-23 Kenichi Handa <handa@m17n.org>
8151
8152 * font.c (font_add_log): Check the values of extra properties.
8153
12bb3111
MR
81542008-10-22 Martin Rudalics <rudalics@gmx.at>
8155
8156 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8157 Reword doc-string.
8158 (Fset_window_parameter): Use NILP.
8159 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8160 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8161
bbeb4e99
JB
81622008-10-22 Juanma Barranquero <lekktu@gmail.com>
8163
8164 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8165
81662008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8167
8168 * nsfns.m (ns_appkit_version): New function.
8169 (x-server-version): Use it.
8170 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8171 (x-server-vendor): Don't check_ns().
8172
8173 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8174
a9b555d3
JB
81752008-10-22 Juanma Barranquero <lekktu@gmail.com>
8176
8177 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8178 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8179
4626499f
KH
81802008-10-22 Kenichi Handa <handa@m17n.org>
8181
e3681952
KH
8182 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8183 scripts.
8184
4626499f
KH
8185 * category.c (word_boundary_p): Check scripts instead of charset.
8186 Handle nil value in word-separating-categories and
8187 word-combining-categories.
8188 (syms_of_category): Fix docstrings of word-separating-categories
8189 and word-combining-categories.
8190
1560f91a
EZ
81912008-10-21 Eli Zaretskii <eliz@gnu.org>
8192
8193 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8194 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8195
f4668441
MR
81962008-10-21 Martin Rudalics <rudalics@gmx.at>
8197
8198 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8199 Rename arg "buffer" to "buffer_or_name".
8200 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8201 it optional.
8202 (no_switch_window): Remove since the return value is not used.
a9b555d3 8203 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8204 Consider window as dedicated when Fwindow_dedicated_p returns a
8205 non-nil value.
8206 * lisp.h: Remove prototype for no_switch_window.
8207
fd75ddb2
JD
82082008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8209
8210 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8211 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8212
07295713
KH
82132008-10-21 Kenichi Handa <handa@m17n.org>
8214
8215 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8216 check Vlatin_extra_code_table.
8217
712adc82
EZ
82182008-10-20 Eli Zaretskii <eliz@gnu.org>
8219
8220 * fileio.c (Fset_file_modes): Doc fix.
8221
f549eb0b
MA
82222008-10-19 Michael Albinus <michael.albinus@gmx.de>
8223
8224 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8225 in arrays.
8226
aac0c6e3
MR
82272008-10-19 Martin Rudalics <rudalics@gmx.at>
8228
8229 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8230 Mention kill-buffer in doc-string.
8231 (Fset_window_buffer): Reinsert tem check removed in last commit.
8232 (Fenlarge_window, Fshrink_window): Have argument names and
8233 doc-string follow Elisp manual more closely.
8234
82352008-10-18 Eli Zaretskii <eliz@gnu.org>
8236
8237 * fileio.c (Fset_file_modes): Doc fix.
8238
82392008-10-18 Martin Rudalics <rudalics@gmx.at>
8240
8241 * window.c (Fwindow_width, Fset_window_start)
8242 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8243 (Fdelete_windows_on, Freplace_buffer_in_windows):
8244 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8245 (Fwindow_dedicated_p): Make window argument optional.
8246 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8247 (Fset_window_buffer): Respect any non-nil dedicated value for
8248 window. Rename "buffer" argument to "buffer_or_name".
8249
82502008-10-18 Ulrich Mueller <ulm@gentoo.org>
8251
8252 * m/sh3.h: New file, machine description for SuperH.
8253
82542008-10-17 Martin Rudalics <rudalics@gmx.at>
8255
8256 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8257
82582008-10-17 Kenichi Handa <handa@m17n.org>
8259
8260 * ftfont.c (ftfont_otf_features): Fix indexing
8261 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8262
82632008-10-16 Magnus Henoch <mange@freemail.hu>
8264
8265 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8266 (Fdbus_call_method_asynchronously): Ditto.
8267 This change makes C-h f display the argument list.
8268
82692008-10-16 Chong Yidong <cyd@stupidchicken.com>
8270
8271 * fileio.c (Fexpand_file_name): Doc fix.
8272
8273 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8274 of :foreground and :background equivalent to unspecified (20.x
8275 compatibility).
8276
82772008-10-15 Eli Zaretskii <eliz@gnu.org>
8278
8279 * buffer.c (syms_of_buffer): Doc fix.
8280
82812008-10-14 Kenichi Handa <handa@m17n.org>
8282
8283 * font.c (font_clear_prop): When clearing font width, clear the
8284 average width field too.
8285
82862008-10-12 Andreas Schwab <schwab@suse.de>
8287
8288 * ftfont.c (ftfont_shape_by_flt): Make static.
8289 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8290
8291 * font.c: Don't include <m17n-flt.h>.
8292
82932008-10-10 Eli Zaretskii <eliz@gnu.org>
8294
8295 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8296
82972008-10-09 Eli Zaretskii <eliz@gnu.org>
8298
8299 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8300 away code.
8301
83022008-10-09 Chong Yidong <cyd@stupidchicken.com>
8303
8304 * dispnew.c (update_text_area): Avoid looping due to large glyph
8305 overhangs (bug#1070).
8306
83072008-10-09 Kenichi Handa <handa@m17n.org>
8308
8309 * fontset.c (face_for_char): If face->fontset is negative, just
8310 return ascii_face.
8311
f5385255
SM
8312 * font.c (font_delete_unmatched): Fix previous change.
8313 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8314
83152008-10-09 Martin Rudalics <rudalics@gmx.at>
8316
8317 * frame.c (Fraise_frame): On text-only terminals select frame in
8318 order to make it visible. (Bug#1061)
8319
83202008-10-08 Chong Yidong <cyd@stupidchicken.com>
8321
8322 * fontset.c (fontset_find_font): Check frame validity.
8323
83242008-10-07 Chong Yidong <cyd@stupidchicken.com>
8325
a9b555d3 8326 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8327 (xg_display_close): Allow Emacs to close all displays (bug#985).
8328
83292008-10-06 Andreas Schwab <schwab@suse.de>
8330
f5385255 8331 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8332
83332008-10-06 Chong Yidong <cyd@stupidchicken.com>
8334
f5385255 8335 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8336
a9b555d3 8337 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8338
8339 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8340 during initialization.
8341
83422008-10-04 Eli Zaretskii <eliz@gnu.org>
8343
8344 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8345 whole thing on MSDOS frames as well as on a TTY.
8346
8347 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8348 well as for TTY.
8349 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8350 well as on a TTY.
8351
8352 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8353 as well as for TTY.
8354
8355 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8356
8357 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8358 MSDOS frames as well.
8359
83602008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8361
8362 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8363 correct arguments.
b71ac3dd 8364 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8365
83662008-10-03 Glenn Morris <rgm@gnu.org>
8367
8368 * emacs.c (USAGE1): Add --daemon.
8369
83702008-10-02 Eli Zaretskii <eliz@gnu.org>
8371
8372 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8373 100, so it's in percents as advertised.
8374
83752008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8376
8377 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8378 (ns_output.current_cursor, ns_output.desired_cursor)
8379 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8380 (FRAME_NEW_CURSOR_COLOR): Remove.
8381
8382 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8383 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8384 enumeration (HOLLOW_BOX_CURSOR, etc.).
8385
8386 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8387 (draw_window_cursor): Simplify code.
f5385255
SM
8388 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8389 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8390 updates manually.
a9b555d3
JB
8391 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8392 Use core Emacs cursor types.
aac0c6e3 8393
b8ff72fa 8394 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8395
83962008-10-02 Martin Rudalics <rudalics@gmx.at>
8397
8398 * process.c (Faccept_process_output): Fix doc-string.
8399
84002008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8401
8402 * gmalloc.c (__sbrk): Also define for uClibc.
8403
8404 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8405 for uClibc.
8406
84072008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8408
8409 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8410 styles.
8411 (nsfont_open): Reenable the cache.
8412
84132008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8414
8415 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8416 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8417
84182008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8419
8420 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8421 a suspended terminal.
8422
84232008-09-30 Michael Albinus <michael.albinus@gmx.de>
8424
8425 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8426
84272008-09-30 Eli Zaretskii <eliz@gnu.org>
8428
8429 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8430
84312008-09-30 Chong Yidong <cyd@stupidchicken.com>
8432
8433 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8434 in a continued line coincides with a line beginning.
8435
84362008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8437
8438 * nsfont.m (nsfont_trait_distance): Fix bug.
8439 (nsfont_list): Return a list rather than a vector (syncs with Handa
8440 changes of 2008-05-14).
8441 (nsfont_open): Improve logging.
8442
84432008-09-29 Andreas Schwab <schwab@suse.de>
8444
8445 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8446
84472008-09-28 Martin Rudalics <rudalics@gmx.at>
8448
8449 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8450 name as char-resolve-modifiers.
8451 Reported by: Markus Triska <markus.triska@gmx.at>
8452
84532008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8454
8455 * dispnew.c (init_display): Return earlier when running as a daemon.
8456
84572008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8458
8459 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8460
84612008-09-27 Eli Zaretskii <eliz@gnu.org>
8462
8463 * composite.c (Fcomposition_get_gstring)
8464 (Fcompose_region_internal, Fcompose_string_internal)
8465 (Ffind_composition_internal): Doc fix.
8466 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8467 (syms_of_composite) <auto-composition-function>: Doc fix.
8468 (syms_of_composite) <composition-function-table>: Doc fix.
8469
84702008-09-25 Chong Yidong <cyd@stupidchicken.com>
8471
8472 * search.c (wordify): New argument for lax word-ends.
8473 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8474
84752008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8476
8477 * lisp.h (is_daemon): Declare.
8478 * dispnew.c (init_display): Do not try to initialize the terminal
8479 when running as a daemon.
8480
84812008-09-22 Chong Yidong <cyd@stupidchicken.com>
8482
8483 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8484 x_display_pixel_height.
8485
84862008-09-22 Martin Rudalics <rudalics@gmx.at>
8487
8488 * undo.c (record_point): Don't call Fundo_boundary for first
8489 change. (Bug#731)
8490
84912008-09-22 Juanma Barranquero <lekktu@gmail.com>
8492
8493 * emacs.c (Fdaemonp): Doc fix.
8494
84952008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8496
8497 * emacs.c (main): Place #ifdef in the proper place.
8498
84992008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8500
8501 * emacs.c (standard_args): Add --daemon.
8502 (main): Disconnect from the terminal when --daemon is passed.
8503 (is_daemon): New variable.
8504 (Fdaemonp): New function.
8505 (syms_of_emacs): Defsubr it.
8506
85072008-09-20 Chong Yidong <cyd@stupidchicken.com>
8508
8509 * xdisp.c (get_next_display_element): Handle string display
8510 correctly when checking for the end of a box run.
8511
85122008-09-20 Glenn Morris <rgm@gnu.org>
8513
8514 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8515 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8516 (Frename_file): Avoid copying to trash if a rename involves
8517 a delete. (Bug#964).
8518
85192008-09-20 Eli Zaretskii <eliz@gnu.org>
8520
8521 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8522 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8523 frames as well as termcap frames.
8524 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8525 get_named_tty.
8526
85272008-09-19 Eli Zaretskii <eliz@gnu.org>
8528
8529 * process.c (procfs_system_process_attributes): Fix cmdline in
8530 case /proc/PID/cmdline is empty.
8531
8532 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8533 x_display_pixel_height.
8534
85352008-09-19 Juanma Barranquero <lekktu@gmail.com>
8536
8537 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8538
8539 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8540 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8541
85422008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8543
8544 * dispextern.h (struct it): Move line_wrap away from the middle of
8545 bitfields. Move voffset in struct iterator_stack_entry after the
8546 bitfields. Move tab_width near after another short.
8547
85482008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8549
8550 * frame.h (struct frame): Move alpha from the middle of bitfields.
8551
8552 * window.h (struct window): Move frozen_window_start_p after the
8553 rest of the bitfields to reduce padding.
8554
85552008-09-18 Chong Yidong <cyd@stupidchicken.com>
8556
8557 * xterm.h (x_display_info): Remove `height' and `width' members.
8558
8559 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8560
8561 * w32term.h (w32_display_info): Remove `height', `width',
8562 `height_in', and `width_in' members.
8563
b8ff72fa
SM
8564 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8565 New functions.
aac0c6e3
MR
8566 (x_calc_absolute_position): Use them.
8567 (x_term_init): Omit removed `height' and `width' members.
8568
b8ff72fa
SM
8569 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8570 New functions.
aac0c6e3
MR
8571 (w32_read_socket, x_calc_absolute_position): Use them.
8572 (w32_initialize_display_info, w32_term_init): Omit removed members
8573 of w32_display_info.
8574
b8ff72fa
SM
8575 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8576 New functions.
8577 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8578
b8ff72fa
SM
8579 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8580 New functions.
aac0c6e3
MR
8581 (x_calc_absolute_position): Use them.
8582 (x_term_init): Omit removed `height' and `width' members.
8583
8584 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8585 (compute_tip_xy):
8586 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8587 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8588 x_display_pixel_width.
8589
85902008-09-18 Kenichi Handa <handa@m17n.org>
8591
8592 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8593 (composition_compute_stop_pos): Fix handling of static composition.
8594 (Fcomposition_get_gstring): Check FROM and TO at first.
8595
85962008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8597
46e722a9 8598 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8599 mixup (YAILOM).
8600
86012008-09-17 Chong Yidong <cyd@stupidchicken.com>
8602
8603 * indent.c (Fvertical_motion): Use position reported by iterator
8604 instead of PT for determining screen motion (bug#943).
8605
86062008-09-17 Romain Francoise <romain@orebokech.com>
8607
8608 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8609
86102008-09-17 Kenichi Handa <handa@m17n.org>
8611
8612 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8613
8614 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8615 if necessary.
8616
86172008-09-16 Kenichi Handa <handa@m17n.org>
8618
8619 * coding.c (make_conversion_work_buffer): Avoid calling
8620 Fget_buffer_create if it is not necessary.
8621
86222008-09-15 Martin Rudalics <rudalics@gmx.at>
8623
8624 * window.c (Fselect_window): Don't update window_select_count and
8625 use_time when norecord is not nil.
8626
86272008-09-14 Kenichi Handa <handa@m17n.org>
8628
8629 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8630 specpdl_ptr.
8631
86322008-09-12 Kenichi Handa <handa@m17n.org>
8633
8634 * indent.c (scan_for_column): Don't handle automatic composition
8635 if the current buffer is not associated with a window.
8636
8637 * composite.c (composition_reseat_it): If the current buffer is
8638 not associated with a window, ignore the automatic composition.
8639 (find_automatic_composition): Likewise.
8640
86412008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8642
8643 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8644 (Fgpm_mouse_stop): Use it.
8645 * termhooks.h (close_gpm): Declare.
8646 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8647 connection if Gpm_GetEvent fails.
8648
8649 * window.c (set_window_buffer): Always preserve current-buffer.
8650
86512008-09-12 Glenn Morris <rgm@gnu.org>
8652
8653 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8654
86552008-09-11 Glenn Morris <rgm@gnu.org>
8656
8657 * charset.c (charset-map-path): Doc fix.
8658
86592008-09-10 Kenichi Handa <handa@m17n.org>
8660
8661 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8662
8663 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8664 compose a grapheme cluster with the preceding base glyph.
8665
8666 * composite.c (composition_compute_stop_pos): Fix previous change.
8667 Reset cmp_it->id to -1 at first.
8668
86692008-09-10 Glenn Morris <rgm@gnu.org>
8670
8671 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8672
86732008-09-09 Chong Yidong <cyd@stupidchicken.com>
8674
8675 * keyboard.c (read_key_sequence): Reapply translation maps when
8676 switching keyboards.
8677
86782008-09-09 Kenichi Handa <handa@m17n.org>
8679
8680 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8681 characters.
8682
8683 * composite.c (FORWARD_CHAR): Fix calculation
8684 of (POSITION).pos_byte.
8685 (composition_compute_stop_pos): Limit the search of composition to
8686 at most 500 characters ahead. If we reach the limit or find a
8687 newline, set cmp_it->ch to -2 and return 0.
8688 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8689
86902008-09-08 Kenichi Handa <handa@m17n.org>
8691
8692 * indent.c (Fvertical_motion): Be sure to set
8693 it_overshoot_expected if it.cmp_it.id is non-negative.
8694
86952008-09-07 Andreas Schwab <schwab@suse.de>
8696
8697 * callproc.c (Fcall_process): Don't hold references to string data
8698 across garbage collection. Move initialisation of new_argv down
8699 to avoid compiler bug.
8700
87012008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8702
8703 * process.c (Fsystem_process_attributes): Doc fix.
8704
87052008-09-07 Chong Yidong <cyd@stupidchicken.com>
8706
8707 * callproc.c (Fcall_process): Canonicalize current directory name.
8708
8709 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8710 iterator advances to the next line if the current line ends in a
8711 continued tab.
8712
87132008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8714
8715 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8716 member to point to cmp_from.
8717
8718 * xdisp.c: Doc fix for references to gidx data member.
8719
87202008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8721
8722 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8723
87242008-09-07 Kenichi Handa <handa@m17n.org>
8725
8726 * composite.c (FORWARD_CHAR): Check STOP after
8727 incrementing (POSITION).pos.
8728
87292008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8730
8731 * process.c (Fsystem_process_attributes): Doc fix.
8732
87332008-09-06 Chong Yidong <cyd@stupidchicken.com>
8734
8735 * keyboard.c (Ftop_level): Doc fix.
8736
87372008-09-06 Eli Zaretskii <eliz@gnu.org>
8738
8739 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8740 minibuffer, don't let lower part of menu invade the echo area.
8741
8742 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8743 "char *q" to access menu text and advance through it. Revert the
8744 change that displayed ">" instead of ASCII character 0x10.
8745
87462008-09-05 Eli Zaretskii <eliz@gnu.org>
8747
8748 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
8749 toggle boxes and radio buttons on MS-DOS as well.
8750
87512008-09-05 Kenichi Handa <handa@m17n.org>
8752
8753 * composite.c (autocmp_chars): Check lookback count.
8754 (composition_compute_stop_pos): Set cmp_it->lookback.
8755 (composition_reseat_it): Check lookback count.
8756 (struct position_record): New struct.
8757 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
8758 (find_automatic_composition): New function.
8759 (composition_adjust_point): Use find_automatic_composition.
8760
8761 * dispextern.h (struct composition_it): New member lookback.
8762
87632008-09-02 Chong Yidong <cyd@stupidchicken.com>
8764
8765 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
8766 if moving by a single line.
8767
87682008-09-02 Andreas Schwab <schwab@suse.de>
8769
8770 * xterm.c (x_delete_display): Fix merge error.
8771
8772 * fileio.c (Fexpand_file_name): Remove unused variables.
8773
87742008-09-02 Eli Zaretskii <eliz@gnu.org>
8775
8776 * fileio.c (Fexpand_file_name): Copy argument `name' into local
8777 storage on all platforms, not just on DOS_NT.
8778
87792008-09-02 Jason Rumney <jasonr@gnu.org>
8780
b8ff72fa
SM
8781 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
8782 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
8783
87842008-09-01 Chong Yidong <cyd@stupidchicken.com>
8785
8786 * xfaces.c (Finternal_set_alternative_font_family_alist)
8787 (Finternal_set_alternative_font_registry_alist): Properly copy
8788 entire alist structure.
8789
87902008-09-01 Kenichi Handa <handa@m17n.org>
8791
d66c0241 8792 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 8793 representative chars of the script is a vector.
d66c0241
JB
8794 (ftfont_list): Handle the case where the representative chars of
8795 the script is a vector.
aac0c6e3
MR
8796
8797 * character.c (syms_of_character): Docstring of
8798 script-representative-chars fixed.
8799
88002008-08-31 Eli Zaretskii <eliz@gnu.org>
8801
8802 * msdos.c (BUILD_CHAR_GLYPH): New macro.
8803 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
8804 the menu. Allocate larger buffer for `text', to account for
8805 possible ^C characters.
8806
88072008-08-31 Martin Rudalics <rudalics@gmx.at>
8808
8809 * xdisp.c (prepare_menu_bars): Don't call
8810 Vwindow_size_change_functions with arg Qt.
8811
88122008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8813
8814 * font.h (font_range):
8815 * fileio.c (report_file_error):
46e722a9
SM
8816 * composite.c (composition_update_it): Yet another int/Lisp_Object
8817 mixup (YAILOM).
aac0c6e3
MR
8818
88192008-08-30 Glenn Morris <rgm@gnu.org>
8820
8821 * data.c (Fmake_variable_frame_local): Doc fix.
8822
8823 * frame.c (Fmodify_frame_parameters): Doc fix.
8824
88252008-08-30 Eli Zaretskii <eliz@gnu.org>
8826
8827 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
8828 needed by GetTokenInformation.
8829 (w32_system_process_attributes): Check return values of all system
8830 APIs.
8831
8832 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
8833 only when the state changes.
8834 (IT_update_begin, IT_update_end): Add termscript trace.
8835
8836 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
8837 clipboard is unavailable. Set dst to NULL if it doesn't point to
8838 malloc'ed data.
8839 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
8840 passing random values to xfree.
8841
8842 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 8843 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
8844
88452008-08-29 Jason Rumney <jasonr@gnu.org>
8846
8847 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
8848
88492008-08-29 Eli Zaretskii <eliz@gnu.org>
8850
8851 * composite.c (fill_gstring_body): Avoid compiler warnings.
8852
8853 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
8854 LGLYPH_SET_CODE to avoid compiler warnings.
8855
2ae37cf0 8856 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
8857
8858 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
8859
8860 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
8861 LGLYPH_SET_CODE.
8862
88632008-08-29 Kenichi Handa <handa@m17n.org>
8864
8865 * fileio.c (report_file_error): Don't downcase the first character
8866 of errstring if it is still unibyte.
8867
88682008-08-29 Kenichi Handa <handa@m17n.org>
8869
8870 These changes are to re-implement the automatic composition so
8871 that it doesn't use text properties.
8872
8873 * Makefile.in (ftfont.o): Depend on composite.h.
8874 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
8875
8876 * character.h (Vunicode_category_table): Extern it.
8877
8878 * character.c (Vunicode_category_table): New variable.
8879 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
8880
8881 * chartab.c (optimize_sub_char_table): Perform more greedy
8882 optimization.
8883
b8ff72fa
SM
8884 * composite.h (enum composition_method):
8885 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
8886 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
8887 (Vcomposition_function_table): Extern it.
8888 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
8889 (composition_gstring_put_cache, composition_gstring_from_id)
8890 (composition_gstring_p, composition_gstring_width)
8891 (composition_compute_stop_pos, composition_reseat_it)
8892 (composition_update_it, composition_adjust_point): Extern them.
8893 (Fcomposition_get_gstring): EXFUN it.
8894
d66c0241 8895 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
8896 (Vcomposition_function_table)
8897 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
8898 (gstring_hash_table, gstring_work, gstring_work_headers):
8899 New variables.
aac0c6e3
MR
8900 (gstring_lookup_cache, composition_gstring_put_cache)
8901 (composition_gstring_from_id, composition_gstring_p)
8902 (composition_gstring_width, fill_gstring_header)
8903 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
8904 (composition_reseat_it, composition_update_it)
b8ff72fa 8905 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
8906 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
8907 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 8908 Defsubr composition_get_gstring.
aac0c6e3
MR
8909
8910 * dispextern.h (struct glyph): New union u.cmp. Delete the member
8911 cmp_id.
8912 (struct glyph_string): Delete the member gidx. New members
8913 cmp_id, cmp_from, and cmp_to.
8914 (enum it_method): Delete GET_FROM_COMPOSITION.
8915 (struct composition_it): New struct.
8916 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
8917 Delete c, len, cmp_id, cmp_len in u.comp.
8918
8919 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 8920 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 8921 (enum lglyph_indices): Likewise.
b8ff72fa 8922 (font_range): Adjust extern.
aac0c6e3
MR
8923 (font_fill_lglyph_metrics): Extern it.
8924
8925 * font.c (QCf): New variable.
8926 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8927 (font_prepare_composition): Delete this function.
8928 (font_range): Type and arguments changed.
8929 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
8930 (font_fill_lglyph_metrics): New function.
b8ff72fa 8931 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 8932 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
8933 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
8934 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
8935
8936 * fontset.h (font_for_char): Extern it.
8937
8938 * fontset.c (font_for_char): New function.
8939
8940 * ftfont.c: Include composite.h.
8941 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 8942 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
8943
8944 * indent.c: Include composite.h and dispextern.h.
8945 (check_composition): Delete this function.
8946 (scan_for_column): Handle composition by
8947 composition_compute_stop_pos, composition_reseat_it, and
8948 composition_update_it.
8949 (compute_motion): Likewise.
8950 (Fvertical_motion): Fix checking of composition.
8951
8952 * keyboard.c (adjust_point_for_property): Check composition by
8953 composition_adjust_point.
8954
b8ff72fa 8955 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
8956 struct glyph_string.
8957
b8ff72fa
SM
8958 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
8959 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
8960 struct glyph.
8961 (produce_composite_glyph): Likewise.
8962
b8ff72fa
SM
8963 * w32term.c (x_draw_composite_glyph_string_foreground):
8964 Adjust for the change of struct glyph_string.
aac0c6e3
MR
8965 (x_draw_glyph_string): Likewise.
8966
8967 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
8968 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
8969
8970 * xdisp.c: Include font.h.
8971 (it_props): Delete the entry for Qauto_composed.
8972 (init_iterator): Initialize it->cmp_it.id to -1.
8973 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 8974 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
8975 (handle_auto_composed_prop): Delete it.
8976 (handle_composition_prop): Handle only static composition.
8977 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
8978 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 8979 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
8980 (pop_it): Likewise.
8981 (get_next_element): Delete next_element_from_composition.
8982 (CHAR_COMPOSED_P): New macro.
8983 (get_next_display_element): For automatic composition, get a face
8984 from the font in the glyph-string.
8985 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 8986 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
8987 (next_element_from_string): Check if the character at the current
8988 position is composed by CHAR_COMPOSED_P.
8989 (next_element_from_buffer): Likewise.
d66c0241
JB
8990 (next_element_from_composition): Adjust for the change of struct it.
8991 Update it->cmp_it.
b8ff72fa
SM
8992 (dump_glyph): Adjust for the change of struct glyph.
8993 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8994 it and struct glyph. Don't handle automatic composition here.
8995 (fill_gstring_glyph_string): New function.
8996 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8997 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8998 (BUILD_GSTRING_GLYPH_STRING): New macro.
8999 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9000 automatic composition.
b8ff72fa 9001 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9002 struct glyph.
b8ff72fa 9003 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9004
b8ff72fa 9005 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9006 the change of struct glyph_string.
9007 (x_draw_glyph_string): Likewise.
9008
90092008-08-29 Glenn Morris <rgm@gnu.org>
9010
9011 * buffer.c (word-wrap): Doc fix.
9012 * xdisp.c (truncate-partial-width-windows): Doc fix.
9013 Increase default to 50.
9014
90152008-08-29 Chong Yidong <cyd@stupidchicken.com>
9016
9017 * xdisp.c (update_tool_bar_unwind): New function.
9018 (update_tool_bar): Temporarily set selected frame before building
9019 tool-bar items.
9020
90212008-08-28 Michael Albinus <michael.albinus@gmx.de>
9022
9023 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9024 snprintf, respectively.
9025 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9026
90272008-08-28 Chong Yidong <cyd@stupidchicken.com>
9028
9029 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9030 LDFLAGS to GNUstep CC invocation.
9031
90322008-08-27 Chong Yidong <cyd@stupidchicken.com>
9033
9034 * indent.c (Fvertical_motion): Revert last change. Handle the
9035 general case where we are moving forward, and PT spans multiple
9036 screen lines.
9037
9038 * eval.c (find_handler_clause): Temporarily increase
9039 max-lisp-eval-depth while printing the backtrace buffer, to
9040 guarantee that help-mode code can run.
9041
90422008-08-27 Eli Zaretskii <eliz@gnu.org>
9043
9044 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9045 colors under -rv.
9046 (IT_set_frame_parameters): Don't swap foreground and background
9047 colors if `(reverse . t)' is present in the frame properties.
9048 (internal_terminal_init): Call init_frame_faces only for the
9049 initial frame.
9050
90512008-08-27 Andreas Schwab <schwab@suse.de>
9052
9053 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9054
90552008-08-27 Andreas Schwab <schwab@suse.de>
9056
9057 * search.c (search_buffer): Set char_base to zero only at the end.
9058
90592008-08-27 Kenichi Handa <handa@m17n.org>
9060
b8ff72fa 9061 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9062
90632008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9064
9065 * xterm.c (x_term_init): Temporarily hide the partially
9066 initialized terminal while calling vendor-specific-keysyms.
9067
90682008-08-26 Eli Zaretskii <eliz@gnu.org>
9069
9070 * msdos.c (internal_terminal_init): Most initializations done only
9071 once, especially initial_screen_colors[] and termscript open.
9072
90732008-08-26 Chong Yidong <cyd@stupidchicken.com>
9074
9075 * eval.c (Fcondition_case): Doc fix.
9076
9077 * widgetprv.h (EmacsFramePart): Change font member to the new font
9078 struct.
9079
9080 * widget.c: Include character.h and font.h for XSETFONT.
9081 (setup_frame_gcs): Compute X font id from font struct, just once.
9082
90832008-08-26 Eli Zaretskii <eliz@gnu.org>
9084
9085 * term.c (get_named_tty): Fix last change.
9086
90872008-08-26 Chong Yidong <cyd@stupidchicken.com>
9088
9089 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9090 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9091
90922008-08-25 Eli Zaretskii <eliz@gnu.org>
9093
9094 * frame.c (do_switch_frame): Mark previously displayed frame as
9095 obscured for FRAME_MSDOS_P frames as well.
9096
90972008-08-24 Eli Zaretskii <eliz@gnu.org>
9098
9099 * frame.c (make_terminal_frame): Initialize f->terminal,
9100 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9101 Set the top frame to newly created frame.
9102 (Fmake_terminal_frame): Reuse the_only_display_info.
9103
9104 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9105 estimating available memory.
9106
b97439ce 91072008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9108
9109 * nsterm.m (ns_draw_window_cursor): Don't call
9110 NSDisableScreenUpdates and NSEnableScreenUpdates on
9111 non-NS_IMPL_COCOA systems.
9112
91132008-08-23 Andreas Schwab <schwab@suse.de>
9114
9115 * process.c (procfs_system_process_attributes): Fix use of
9116 uninitialized variables.
9117
91182008-08-23 Eli Zaretskii <eliz@gnu.org>
9119
9120 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9121
9122 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9123 calling tty-set-up-initial-frame-faces.
9124
b8ff72fa
SM
9125 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9126 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9127
9128 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9129 addition to output_termcap.
9130
9131 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9132
9133 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9134 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9135 highlight.
9136
9137 * process.c [!subprocesses]: Define QCname.
9138 (syms_of_process): Intern and staticpro it.
9139
9140 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9141 Adjust for changes in encoding/decoding routines.
9142 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9143 encode_coding and decode_coding.
9144
b8ff72fa 9145 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9146
9147 * dosfns.c: Include frame.h before termhooks.h.
9148 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9149 variable termscript.
9150
9151 * s/msdos.h (USER_FULL_NAME): Define.
9152 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9153
9154 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9155 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9156 pw->pw_gecos.
9157
9158 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9159 SELECTED_FRAME as additional (1st) argument.
9160 (tty_read_avail_input): Handle output_msdos_raw in
9161 addition to output_termcap.
9162
9163 * msdos.c: Include frame.h before termhooks.h.
9164 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9165 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9166 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9167 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9168 (IT_set_terminal_modes, IT_reset_terminal_modes)
9169 (IT_set_frame_parameters): Use tty->termscript instead of a global
9170 variable termscript.
9171 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9172 global variable terminal_coding. Don't refer to
9173 Vnonascii_translation_table.
9174 (internal_terminal_init): Set Vwindow_system in current_kboard.
9175 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9176 Announce date and time of session start, if termscript is open.
9177 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9178 term.c:init_tty). Open termscript only of not already open.
9179 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9180 here instead of dos_ttraw. Don't initialize display if this is an
9181 initial tty. Don't set FRAME_FONT.
9182 (Vwindow_system_version): Bump to 23.
9183 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9184 is available, set up mouse_position_hook.
9185 (dos_ttraw, IT_set_terminal_modes): If called with initial
9186 terminal, do nothing.
9187 (IT_set_frame_parameters): Handle the Qtty_type frame
9188 parameter by calling internal_terminal_init.
9189 (dos_set_window_size, show_mouse_face)
9190 (clear_mouse_face, IT_note_mode_line_highlight)
9191 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9192 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9193 (initialize_msdos_display): New function.
9194 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9195 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9196 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9197 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9198 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9199 (request_sigio, unrequest_sigio): Don't define, now defined on
9200 sysdep.c.
9201 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9202
9203 * term.c [MSDOS]: Include msdos.h.
9204 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9205 conditional to DOS_NT. Allow only one call to this function in a
9206 session. Don't allocate a new struct tty_display_info; instead,
9207 reuse the_only_display_info. Call get_tty_size to get screen
9208 dimensions. Call init_baud_rate to set bad_rate.
9209 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9210 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9211 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9212 (get_tty_terminal, get_named_tty, Ftty_type)
9213 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9214 output_termcap.
b8ff72fa
SM
9215 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9216 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9217 only when subprocesses are supported.
aac0c6e3
MR
9218
9219 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9220 f->output_data.x.
9221 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9222 terminal devices.
9223
5582fbc7 9224 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9225 x_output.
9226 (FRAME_FONT): Use output_data.tty.
9227 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9228 (struct x_display_info): Rename from display_info. Update all users in
9229 msdos.c.
aac0c6e3 9230 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9231 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9232 (dos_ttraw): Update prototype.
9233
9234 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9235 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9236
92372008-08-23 Jason Rumney <jasonr@gnu.org>
9238
9239 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9240 (fn_TIFFSetDirectory): New library function used.
9241 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9242 (tiff_load): Use :index to select among multiple images. Set count
9243 property when multiple images exist.
9244 (gif_format): Use :index, not :image.
9245
92462008-08-23 Chong Yidong <cyd@stupidchicken.com>
9247
9248 * xdisp.c (try_scrolling): Check INT_MAX instead of
9249 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9250 to obtain INT_MAX.
9251
92522008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9253
9254 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9255
92562008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9257
9258 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9259 GNUstep library location.
9260
92612008-08-21 Chong Yidong <cyd@stupidchicken.com>
9262
9263 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9264 before using it.
9265
9266 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9267
92682008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9269
9270 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9271 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9272 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9273 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9274 (EmacsApp-cursor_blink_handler): Remove declaration.
9275 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9276 match 01 Feb 2008 changes in xterm.c.
9277 (ns_read_socket): Add cast to avoid warning.
9278 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9279 GNUstep.
9280
92812008-08-20 Chong Yidong <cyd@stupidchicken.com>
9282
9283 * xselect.c (x_get_foreign_selection): Return nil if desired
9284 selection could not be obtained, instead of signalling an error.
9285
92862008-08-20 David Reitter <david.reitter@gmail.com>
9287
9288 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9289 * nsterm.m: Remove ns-specific code for cursor blinking.
9290 (ns_draw_window_cursor): Clear cursor properly rather than
9291 redrawing the area. Respect width of bar cursors.
9292 These changes enable the use of generic blink-cursor-mode and
9293 generic cursor types in NS and support smooth cursor movements (do
9294 not blink off after command).
9295 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9296 Nextstep, too.
9297
92982008-08-19 Kenichi Handa <handa@m17n.org>
9299
9300 * font.c (Vfont_log_deferred): New variable.
9301 (font_add_log): Check Vfont_log_deferred.
9302 (font_deferred_log): New function.
9303
9304 * font.h (font_deferred_log): Extern it.
9305
9306 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9307 for sorting.
9308 (face_for_char): Use deferred log.
9309
93102008-08-18 Kenichi Handa <handa@m17n.org>
9311
9312 * fontset.c (face_for_char): Add font log.
9313
9314 * font.c (font_add_log): Add the font properties :script, :lang,
9315 and :otf in the log.
9316
93172008-08-17 Chong Yidong <cyd@stupidchicken.com>
9318
9319 * xdisp.c: Remove dead code.
9320 (handle_invisible_prop, next_overlay_string): Defer call to
9321 setup_for_ellipsis.
9322 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9323
93242008-08-15 Chong Yidong <cyd@stupidchicken.com>
9325
9326 * xfaces.c (lookup_derived_face): Properly handle possible zero
9327 return value of get_lface_attributes.
9328 (merge_faces): Don't tell lookup_derived_face to signal an error
9329 if face is not found.
9330
9331 * dired.c (Fdirectory_files): Doc fix.
9332
9333 * process.c (make_process): Initialize kill_without_query struct
9334 member.
9335
93362008-08-15 Eli Zaretskii <eliz@gnu.org>
9337
9338 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9339 Alternative calculation of totphys for Visual Studio 6.
9340
9341 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9342
9343 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9344 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9345 All users changed.
9346 (stat): Only root directory passed to GetDriveType. Allow RAM
9347 disk as well as local fixed disk when w32-get-true-file-attributes
9348 is set to `local'.
9349 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9350 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9351 (w32_cached_id, w32_add_to_cache): New functions.
9352 (get_name_and_id): Look account names in the cache before calling
9353 lookup_account_sid.
9354 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9355 New initialization flags.
9356 (globals_of_w32): Initialize them to zero.
9357 (w32_system_process_attributes): Use w32_cached_id and
9358 w32_add_to_cache.
9359
93602008-08-14 Lawrence Mitchell <wence@gmx.li>
9361
9362 * lread.c (Fread_char, Fread_char_exclusive): If no character
9363 event is read before timeout is reached, return nil, rather than
9364 converting to a number.
9365
93662008-08-14 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * fns.c (use_dialog_box): Doc fix.
9369
9370 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9371 on OS X.
9372
93732008-08-13 Chong Yidong <cyd@stupidchicken.com>
9374
9375 * frame.c (Qns_parse_geometry): New var.
9376 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9377
93782008-08-11 Chong Yidong <cyd@stupidchicken.com>
9379
9380 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9381 space character in calculating tabs.
9382
93832008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9384
9385 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9386
93872008-08-10 Glenn Morris <rgm@gnu.org>
9388
9389 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9390 silence gcc "limited range of data type" warnings in some
9391 make_fixnum_or_float calls.
9392
93932008-08-09 Eli Zaretskii <eliz@gnu.org>
9394
9395 * w32.c (w32_system_process_attributes): If the process does not
9396 exist, return nil.
9397
9398 * w32.c: Include thelp32.h, psapi.h and coding.h.
9399 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9400 declarations.
9401 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9402 (Process32Next_Proc): New typedefs.
9403 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9404 (g_b_init_process32_next, g_b_init_open_thread_token)
9405 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9406 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9407 (g_b_init_get_process_working_set_size)
9408 (g_b_init_global_memory_status_ex): New static variables.
9409 (globals_of_w32): Initialize them.
9410 (create_toolhelp32_snapshot, process32_first, process32_next)
9411 (open_thread_token, impersonate_self, revert_to_self)
9412 (get_process_memory_info, get_process_working_set_size)
9413 (global_memory_status, global_memory_status_ex): New wrapper
9414 functions.
9415 (w32_list_system_processes, w32_system_process_attributes)
9416 (enable_privilege, restore_privilege, ltime, process_times):
9417 New functions.
9418 (convert_time_raw): New function.
9419 (convert_time): Remove conversion of FILETIME into time in 100
9420 nsec units, call convert_time_raw instead.
9421
9422 * process.h (w32_list_system_processes, w32_system_process_attributes):
9423 Add prototypes.
9424 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9425 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9426 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9427 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9428
9429 * process.c (Fsystem_process_attributes): Doc fix.
9430
94312008-08-08 Chong Yidong <cyd@stupidchicken.com>
9432
9433 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9434 a continued multi-char glyph; if so, advance to the actual glyph.
9435
94362008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9437
9438 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9439
9440 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9441 (.m.o): Use it.
9442 * config.in: Regenerate.
9443
94442008-08-07 Chong Yidong <cyd@stupidchicken.com>
9445
9446 * xdisp.c (redisplay_window): Revert last change.
9447 (try_window): Check bottom scroll margin too.
9448
94492008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9450
9451 * config.in: Regenerate.
9452
9453 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9454 -list-load-path-shadows'.
9455 (nsgui.h): Reduce number of things depending on it.
9456
94572008-08-06 Chong Yidong <cyd@stupidchicken.com>
9458
9459 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9460 instead of window-end which does the wrong thing at eob.
9461 (try_cursor_movement): Minor optimization.
9462 (redisplay_window): If scroll margin is defined, don't assume
9463 window doesn't need scrolling.
9464
94652008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9466
9467 * config.in: Regenerate.
9468
9469 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9470 (mostlyclean): Don't delete *.d under NS.
9471
9472 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9473
94742008-08-06 Kenichi Handa <handa@m17n.org>
9475
9476 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9477
94782008-08-06 Andreas Schwab <schwab@suse.de>
9479
9480 * config.in: Regenerate.
9481
94822008-08-05 Chong Yidong <cyd@stupidchicken.com>
9483
9484 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9485 forcing a window start.
9486
9487 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9488 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9489
94902008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9491
9492 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9493 argument.
9494
94952008-08-05 Juanma Barranquero <lekktu@gmail.com>
9496
9497 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9498 <scroll-down-aggressively, before-change-functions>:
9499 <after-change-functions>: Reflow docstrings.
9500
95012008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9502 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9503
9504 Dock menu customization, based on a patch by Ken Raeburn, plus some
9505 other fixes.
9506 * nsmenu.m (dockMenu): New variable.
9507 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9508
9509 * nsterm.h (dockMenu): Declare.
9510
9511 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9512 (ns_term_init): Initialize dockMenu.
9513 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9514 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9515 left.
9516
9517 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9518
95192008-08-04 Chong Yidong <cyd@stupidchicken.com>
9520
9521 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9522
9523 * config.in: Regenerate.
9524
95252008-08-04 Seiji Zenitani <zenitani@mac.com>
9526
9527 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9528
95292008-08-04 Chong Yidong <cyd@stupidchicken.com>
9530
9531 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9532
95332008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9534
9535 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9536
9537 * keyboard.h: Comment an #endif.
9538
9539 * lisp.h (have_menus_p): Adjust comment.
9540
9541 * menu.c (find_and_return_menu_selection): Fix comparison with
9542 client_data.
9543
9544 * nsmenu.m (popup_activated_flag): New variable.
9545 (popup_activated): New function.
9546 (menu-or-popup-active-p): New exported lisp definition.
9547 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9548 when popup done.
9549 (ns_popup_dialog): Set popup_activated_flag.
9550
9551 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9552 version for GNUstep (handled by conditional typedef in nsterm.m).
9553 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9554 in rgb.txt).
9555
9556 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9557
9558 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9559
9560 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9561
9562 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9563 shortcircuit if popup_activated like GTK and X toolkit.
9564
9565 * m/inter386.h: Change DARWIN to DARWIN_OS.
9566
9567 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9568 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9569 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9570 comment on NO_SOCK_SIGIO.
9571
95722008-08-03 Chong Yidong <cyd@stupidchicken.com>
9573
9574 * nsterm.m (windowDidResize): Remove stopModal call.
9575
95762008-08-03 Andreas Schwab <schwab@suse.de>
9577
9578 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9579 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9580
95812008-08-02 Chong Yidong <cyd@stupidchicken.com>
9582
9583 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9584 Don't use uninitialized pointer variable when using getrlimit.
9585
95862008-08-02 Jason Rumney <jasonr@gnu.org>
9587
9588 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9589
95902008-08-02 Eli Zaretskii <eliz@gnu.org>
9591
9592 * alloc.c (NSTATICS): Bump to 0x640.
9593
9594 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9595
9596 * lisp.h: Add prototype for directory_files_internal.
9597
9598 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9599 New functions.
9600 (syms_of_process): Defsubr them. Add initializations for various
9601 Q* symbols used in procfs_system_process_attributes.
9602 (procfs_list_system_processes, procfs_system_process_attributes)
9603 [HAVE_PROCFS]: New functions.
9604 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9605 (procfs_get_total_memory): New functions.
9606
96072008-08-01 Juanma Barranquero <lekktu@gmail.com>
9608
9609 * xfaces.c (Fx_load_color_file): Fix previous change;
9610 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9611
96122008-08-01 Michael Albinus <michael.albinus@gmx.de>
9613
9614 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9615
96162008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9617
9618 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9619
96202008-08-01 Chong Yidong <cyd@stupidchicken.com>
9621
9622 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9623
9624 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9625 define NSApplicationDelegateReplySuccess.
9626 (EmacsView -converstationIdentifier): Use long instead of
9627 NSInteger for GNUstep, since it doesn't have NSInteger.
9628
9629 * xmenu.c: Revert last change.
9630
9631 * keyboard.h: Fix last change.
9632
96332008-08-01 Juanma Barranquero <lekktu@gmail.com>
9634
9635 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9636 on Windows.
9637
96382008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9639
9640 Warning clearing and clean-up in NS port.
9641 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9642 Add prototypes.
9643 * nsgui.h (FACE_DEFAULT): Remove, unused.
9644 (XGCValues): Change colors to unsigned long.
9645 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9646 nsterm.m.
9647 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9648 (ns_list_fonts): Remove, unused.
9649 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9650 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9651 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9652 (nsfont_draw): Compare face colors to 0, not nil.
9653 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9654 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9655 (-addSubmenuWithTitle:): Use NSMenuItem class.
9656 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9657 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9658 (ns_clip_to_row): Make gc arg a BOOL.
9659 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9660 ns_clip_to_row() call.
9661 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9662 used). Cast FRAME_FONT assignments.
9663 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9664 (ns_string_to_lispmod): Change arg to const char.
9665 (ns_term_init): Use NSMenuItem class.
9666 (EmacsApp -openFile:): Move to different section of file.
9667 (EmacsApp -application:openFiles:): Don't return a value, call
9668 -replyToOpenOrPrint:.
9669 (EmacsView -keyDown:): Fix up cast.
9670 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9671 (EmacsView -menuDown:): Cast tag in call to
9672 find_and_call_menu_selection().
9673 (ns_list_fonts): Remove, unused.
9674 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9675 (ns_fontname_to_xlfd): Make static.
9676 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9677 Remove prototypes (now in keyboard.h).
9678 (next_menubar_widget_id): Remove, unused.
9679 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9680 Remove prototypes (now in keyboard.h).
9681 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9682
96832008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9684
9685 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9686 (floatfns.o): Depend on syssignal.h.
9687 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9688
9689 * systty.h: Fix previous change that removed BSD_TERMIOS.
9690 Add comments to #ifdefs.
9691
96922008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9693
9694 * w32fns.c (w32-load-color-file): Remove.
9695 (x-open-connection): Use renamed Fx_load_color_file.
9696 * xfaces.c (x-load-color-file): Add.
9697 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9698 Emacs.clr.
9699 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9700
97012008-07-31 Michael Albinus <michael.albinus@gmx.de>
9702
9703 * dbusbind.c (Fdbus_call_method_asynchronously)
9704 (Fdbus_method_error_internal): New defuns.
9705 (xd_read_message): Handle also reply messages.
9706 (Vdbus_registered_functions_table): Extend docstring.
9707
97082008-07-31 Juanma Barranquero <lekktu@gmail.com>
9709
9710 * keyboard.c (gobble_input): Fix previous change.
9711
97122008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9713
9714 * bitmaps/README:
9715 * xfns.c:
9716 * termcap.c:
9717 * term.c:
9718 * syswait.h:
9719 * systty.h:
9720 * systime.h:
9721 * syssignal.h:
9722 * sysdep.c:
9723 * process.h:
9724 * process.c:
9725 * print.c:
9726 * ndir.h:
9727 * lread.c:
9728 * keyboard.c:
9729 * getpagesize.h:
9730 * floatfns.c:
9731 * fileio.c:
9732 * emacs.c:
9733 * doc.c:
9734 * dispnew.c:
9735 * dired.c:
9736 * data.c:
9737 * callproc.c:
9738 * buffer.c:
9739 * README:
9740 * Makefile.in:
9741 * s/template.h:
9742 * s/msdos.h:
9743 * m/vax.h: Remove VMS support.
9744 * s/vms.h:
9745 * vlimit.h:
9746 * uaf.h:
9747 * temacs.opt:
9748 * param.h:
9749 * ioctl.h: Remove file.
9750
97512008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9752
9753 * s/ms-w32.h (MULTI_KBOARD): Remove.
9754 * xterm.c:
9755 * xselect.c:
9756 * xfns.c:
9757 * window.c:
9758 * w32term.c:
9759 * w32fns.c:
9760 * terminal.c:
9761 * termhooks.h:
9762 * term.c:
9763 * sysdep.c:
9764 * keyboard.h:
9765 * keyboard.c:
9766 * frame.h:
9767 * frame.c:
9768 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
9769 * config.in: Regenerate.
9770
97712008-07-30 Jason Rumney <jasonr@gnu.org>
9772
9773 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
9774
9775 * w32font.c (w32font_encode_char): Leave as unicode if in range.
9776 (w32font_open_internal): Get unicode version of textmetrics.
9777 Don't enable or disable glyph indices here.
9778 (w32font_open): Disable use of glyph indices.
9779
9780 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
9781
97822008-07-30 Chong Yidong <cyd@stupidchicken.com>
9783
9784 * minibuf.c (Vread_buffer_function): Doc fix.
9785
97862008-07-30 John Paul Wallington <jpw@pobox.com>
9787
9788 * minibuf.c (read_buffer_completion_ignore_case): New var.
9789 (Fread_buffer): Use it.
9790
97912008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
9792
9793 * systty.h (sensemode): Remove empty #if. Remove reference to
9794 BSD_TERMIOS, unused.
9795
9796 * sysdep.c: Remove reference to DGUX.
9797 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
9798
9799 * config.in: Regenerate.
9800
98012008-07-30 Jason Rumney <jasonr@gnu.org>
9802
9803 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
9804
98052008-07-29 Jason Rumney <jasonr@gnu.org>
9806
9807 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
9808 is populated.
9809 (uniscribe_encode_char): Always use uniscribe.
9810 Avoid using context if cache is populated.
9811
98122008-07-29 Jan Djärv <jan.h.d@swipnet.se>
9813
9814 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
9815 open menu.
9816
9817 * gtkutil.c (menu_nav_ended): Remove.
9818 (create_menus): Remove signal connect for menu_nav_ended.
9819
98202008-07-28 Chong Yidong <cyd@stupidchicken.com>
9821
9822 * xdisp.c (redisplay_window): Check return value of
9823 compute_window_start_on_continuation_line before forcing a window
9824 start.
9825
98262008-07-28 Jason Rumney <jasonr@gnu.org>
9827
9828 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9829
9830 * w32term.c (w32_enable_unicode_output, cleartype_active):
9831 Remove obsolete display options.
9832 (x_draw_glyph_string_background): Don't use old cleartype_active
9833 workaround.
9834 (w32_initialize): Remove cleartype_active initialization.
9835 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
9836
98372008-07-28 Andreas Schwab <schwab@suse.de>
9838
9839 * lisp.h (init_weak_hash_tables, syms_of_font)
9840 (xd_read_queued_messages, syms_of_dbusbind): Declare.
9841 (remove_hash_entry): Don't declare.
9842 * eval.c (maybe_call_debugger): Make static and move before use.
9843 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
9844 * xdisp.c: Include "gtkutil.h" if USE_GTK.
9845 * xterm.h (x_set_frame_alpha): Declare.
9846
98472008-07-28 Jan Djärv <jan.h.d@swipnet.se>
9848
9849 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
9850 (create_menus): Connect selection-done to menu_nav_ended.
9851
98522008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9853
9854 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
9855 Set Vx_resource_name to a fallback. Replace read of 'buffered'
9856 parameter with read of 'alpha' one.
9857 (Qns_frame_parameter): Remove.
5582fbc7 9858 * nsselect.m (selection-coding-system)
aac0c6e3
MR
9859 (next-selection-coding-system, Vselection_coding_system)
9860 (Vnext_selection_coding_system): Drop.
9861
98622008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9863
9864 * nsfns.m (do-applescript, do_applescript): Rename to
9865 ns-do-applescript, ns_do_applescript, and move within file.
9866
98672008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9868
9869 Remove support for Mac Carbon.
9870 * mactoolbox.c:
9871 * macterm.h:
9872 * macterm.c:
9873 * macselect.c:
9874 * macmenu.c:
9875 * macgui.h:
9876 * macfns.c:
9877 * mac.c: Remove file.
9878 * s/darwin.h:
9879 * m/intel386.h:
9880 * xfaces.c:
9881 * xdisp.c:
9882 * window.c:
9883 * tparam.c:
9884 * termhooks.h:
9885 * termcap.c:
9886 * term.c:
9887 * syssignal.h:
9888 * sysselect.h:
9889 * sysdep.c:
9890 * process.c:
9891 * lread.c:
9892 * lisp.h:
9893 * keyboard.c:
9894 * image.c:
9895 * fringe.c:
9896 * frame.h:
9897 * frame.c:
9898 * fontset.c:
9899 * font.h:
9900 * font.c:
9901 * fns.c:
9902 * fileio.c:
9903 * emacs.c:
9904 * dispnew.c:
9905 * dispextern.h:
9906 * config.in:
9907 * atimer.c:
2ae37cf0 9908 * Makefile.in: Remove code for Carbon.
aac0c6e3 9909
f0131492 99102008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
9911
9912 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
9913
99142008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9915
9916 * macterm.h (kCGBitmapByteOrder32Host): New define for
9917 non-universal SDKs.
9918
9919 * image.c (mac_create_cg_image_from_image, image_load_image_io)
9920 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9921
9922 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
9923 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
9924
99252008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
9926
9927 * w32inevt.c: Include dispextern.h.
9928
99292008-07-26 Andreas Schwab <schwab@suse.de>
9930
9931 * print.c (print_object): Fix off-by-one in last change.
9932
99332008-07-25 Juanma Barranquero <lekktu@gmail.com>
9934
9935 * term.c (syms_of_term): Don't initialize default_orig_pair,
9936 default_set_foreground and default_set_background on Windows.
9937
99382008-07-25 Jason Rumney <jasonr@gnu.org>
9939
9940 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
9941 ScriptItemize. Clean up return value checking. Remove unused
9942 variables.
9943 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
9944 shaping engine.
9945
9946 * w32font.c (w32font_has_char): Handle the case where we can't
9947 determine the script for a character.
9948
99492008-07-25 Chong Yidong <cyd@stupidchicken.com>
9950
9951 * term.c (syms_of_term): Initialize default_orig_pair,
9952 default_set_foreground, and default_set_background.
9953
9954 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9955 clash (bug#86).
9956 (getloadavg): Callers changed.
9957
9958 * image.c (svg_load_image): Fix last change.
9959 (svg_load_image): Use rsvg_handle_get_dimensions to check that
9960 image size is valid. Use g_object_unref instead of deprecated
9961 rsvg_handle_free to free rsvg handle.
9962 (x_from_xcolors): Don't initialize pixmap (silence compiler).
9963
99642008-07-25 Jason Rumney <jasonr@gnu.org>
9965
9966 * w32font.c (w32font_encode_char): Encode characters outside BMP as
9967 surrogates before looking up glyph index.
9968 (w32font_text_extents): Encode as surrogates if falling back to
9969 functions that need UTF-16 wide chars.
9970
9971 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
9972 BMP as surrogates before looking up glyph index.
9973
99742008-07-25 Chong Yidong <cyd@stupidchicken.com>
9975
9976 * image.c (svg_load_image): Check for failure in return value of
9977 rsvg_handle_get_pixbuf. Free rsvg handle when done.
9978
99792008-07-25 Jason Rumney <jasonr@gnu.org>
9980
9981 * w32font.c (Fx_select_font): Reverse sense of second arg.
9982
99832008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
9984
9985 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
9986 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
9987
9988 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
9989 (PURESIZE): Use it.
9990
99912008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
9992
9993 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9994 * m/alpha.h (TEXT_END):
9995 * m/ibmrs6000.h (TEXT_END):
9996 * m/macppc.h (TEXT_END):
9997 * s/darwin.h (TEXT_END):
9998 * s/msdos.h (TEXT_END): Remove, unused.
9999 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10000 * s/cygwin.h: Remove comment.
10001
10002 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10003 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10004 * m/intel386.h (DOT_GLOBAL_START):
10005 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10006 (USG): Remove, file not used on USG platforms.
10007
10008 * Makefile.in (HAVE_X11): Remove empty #else.
10009
100102008-07-24 Andreas Schwab <schwab@suse.de>
10011
10012 * fileio.c (Finsert_file_contents): Properly adjust undo list
10013 after format conversion.
10014
100152008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10016
10017 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10018 (menu_nav_ended): Remove.
10019 (create_menus): Remove signal connect for menu_nav_ended.
10020 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10021 create_menus.
10022 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10023
100242008-07-23 Jason Rumney <jasonr@gnu.org>
10025
10026 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10027 with opened font.
10028 (w32font_open): Set font type to gdi.
10029
10030 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10031
100322008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10033
10034 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10035 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10036 defines it.
10037 * unexec.c (ADDR_CORRECT): Define unconditionally.
10038
10039 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10040
10041 * unexec.c: Remove code depending on !COFF and USG, the file is
10042 not used for such systems.
10043
10044 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10045 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10046 (LD_SWITCH_SYSTEM_1): Remove, update users.
10047
10048 * s/darwin.h (DATA_END):
10049 * m/intel386.h (DATA_END):
10050 * m/ibmrs6000.h (DATA_END):
10051 * m/alpha.h (DATA_END): Remove, unused.
10052
10053 * config.in: Regenerate.
10054 * s/ms-w32.h (subprocesses): Define unconditionally.
10055 * s/template.h (subprocesses): Update comment.
10056 * s/vms.h (subprocesses):
10057 * s/usg5-4.h (subprocesses):
10058 * s/hpux10-20.h (subprocesses):
10059 * s/gnu-linux.h (subprocesses):
10060 * s/cygwin.h (subprocesses):
10061 * s/bsd-common.h (subprocesses):
10062 * s/aix4-2.h (subprocesses):
10063 * s/darwin.h (subprocesses): Do not define, defined by default now.
10064
10065 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10066 Remove all references.
10067 (temacs): Add GNUstep specific ld flags.
10068
10069 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10070 similarly to what X does.
10071
100722008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10073
10074 * nsfns.m (x-list-fonts): Remove.
10075 (syms_of_nsfns): Drop the x-list-fonts declaration.
10076 * nsterm.m: Get rid of remaining "//" comments.
10077
100782008-07-22 Chong Yidong <cyd@stupidchicken.com>
10079
10080 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10081
10082 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10083 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10084 (Fns_own_selection_internal, Fx_disown_selection_internal)
10085 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10086
10087 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10088 ... */' style of docstrings. Doc fixes.
10089
100902008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10091
10092 * terminfo.c (UP, BC, PC): Undo previous change.
10093
10094 * nsfns.m: Rename ns prefixed functions/variables to the
10095 corresponding x versions. Update references.
10096
100972008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10098
10099 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10100
101012008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10102
10103 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10104 Remove forwarding functions.
10105 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10106 non-static.
10107 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10108 non-static.
10109 (ns_frame_parm_handlers): Use the new names.
10110 (syms_of_nsfns): Move to the end of file.
10111
10112 * nsterm.m (syms_of_nsterm): Move to the end of file.
10113
10114 * dispnew.c (init_display): Remove code for X10.
10115
101162008-07-22 Jason Rumney <jasonr@gnu.org>
10117
10118 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10119 bare drive.
10120
101212008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10122
10123 * nsterm.m (syms_of_nsterm): Remove debugging println.
10124
101252008-07-22 David Reitter <david.reitter@gmail.com>
10126
10127 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10128 Carbon implementation of the same functionality: execute arbitrary
10129 AppleScript code.
10130
101312008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10132
10133 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10134 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10135 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10136 (Fx_display_mm_height, Fx_display_mm_width)
10137 (Fx_display_backing_store, Fx_display_visual_class)
10138 (Fx_display_save_under, Fx_open_connection)
10139 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10140 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10141 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10142 (Fx_display_pixel_width, Fx_display_pixel_height)
10143 (Fx_display_usable_bounds, Fx_display_planes)
10144 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10145 ... */' style of docstrings.
10146
101472008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10148
10149 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10150 on this platform.
10151 (mips):
10152 * m/iris4d.h (mips): Do not define.
10153 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10154
10155 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10156
10157 * image.c:
10158 * nsfns.m:
10159 * nsselect.m:
10160 * nsterm.h:
10161 * nsterm.m: Rename ns prefixed functions/variables to the
10162 corresponding x versions. Update references.
10163
10164 * m/ibms390x.h (NO_REMAP): Do not undefine.
10165
10166 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10167
101682008-07-21 Chong Yidong <cyd@stupidchicken.com>
10169
10170 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10171 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10172 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10173 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10174 (Fns_display_mm_height, Fns_display_mm_width)
10175 (Fns_display_backing_store, Fns_display_visual_class)
10176 (Fns_display_save_under, Fns_open_connection)
10177 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10178 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10179 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10180 (Fns_display_pixel_width, Fns_display_pixel_height)
10181 (Fns_display_usable_bounds, Fx_display_planes)
10182 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10183
101842008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10185
10186 * print.c (print_object): Check print_depth before searching for
10187 circularities.
10188
101892008-07-21 Michael Albinus <michael.albinus@gmx.de>
10190
10191 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10192 only sprintf.
10193
101942008-07-21 Kenichi Handa <handa@m17n.org>
10195
10196 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10197
101982008-07-20 Andreas Schwab <schwab@suse.de>
10199
10200 * syntax.c (find_start_pos, find_start_value)
10201 (find_start_value_byte, find_start_begv, find_defun_start)
10202 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10203
102042008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10205
10206 * s/sol2-3.h: Insert contents of s/sol2.h.
10207 (LD_SWITCH_SYSTEM): Remove redundant definition.
10208 * s/sol2.h: Remove, unused.
10209
102102008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10211
10212 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10213
102142008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10215
10216 * Makefile.in (ns_appdir): Fix typo in find command.
10217
102182008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10219
10220 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10221
10222 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10223 added not supported anymore.
10224
10225 * s/usg5-4-2.h (LIBS_SYSTEM):
10226 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10227
10228 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10229 * s/lynxos.h (GETPGRP_NO_ARG):
10230 * s/hpux10-20.h (NO_SIOCTL_H):
10231 * s/gnu.h (GETPGRP_NO_ARG):
10232 * s/gnu-linux.h (NO_SIOCTL_H):
10233 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10234 * s/cygwin.h (GETPGRP_NO_ARG):
10235 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10236 (C_DEBUG_SWITCH): Remove duplicate definition.
10237
10238 * m/ibms390.h: Remove boilerplate comments.
10239
10240 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10241
10242 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10243 (wait_reading_process_output): Remove code for SunOS, platform not
10244 supported anymore. Use SOLARIS2 instead of sun.
10245
102462008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10247
10248 * font.c (font_open_by_name): Under NS, default lface height to zero.
10249 (font_open_for_lface): Under NS, set size based on frame fontsize.
10250 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10251 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10252
102532008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10254
10255 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10256 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10257 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10258 YES/NO.
10259 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10260 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10261 * Makefile.in (clean): Clear out build destination dir.
10262
102632008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10264
10265 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10266 xterm, xselect.
10267 * lisp.h: Remove declaration of hash_remove.
10268 * nsgui.h: Remove redefinitions of hash_remove.
10269 * fns.c (hash_remove): Rename to hash_remove_from_table.
10270
102712008-07-19 Seiji Zenitani <zenitani@mac.com>
10272
10273 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10274 strdup() the family UTF8String before modifying it.
10275
102762008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10277
10278 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10279 NS_FACE_BACKGROUND with 0 instead of nil.
10280 * nsfont.m (nsfont_draw): Same.
10281
102822008-07-19 Chong Yidong <cyd@stupidchicken.com>
10283
10284 * nsfns.m (ns_set_background_color): Fix crash.
10285
102862008-07-18 Chong Yidong <cyd@stupidchicken.com>
10287
10288 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10289
102902008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10291
10292 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10293
102942008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10295
10296 * gtkutil.c: Include <config.h> instead of "config.h".
10297
10298 * lisp.h (Foverlay_buffer): Add EXFUN.
10299
10300 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10301 child process to complete child_setup. Undo 2005-09-21 change.
10302
10303 * s/darwin.h: Mention setsid after vfork.
10304
103052008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10306
10307 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10308 Depend on macgui.h.
10309
10310 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10311 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10312
10313 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10314 and f19.
10315 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10316
10317 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10318 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10319 Remove enumerators.
10320
10321 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10322 Check if FACE_FROM_ID returns NULL.
10323
103242008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10325
10326 * w32inevt.c (change_frame_size): Remove extern declaration.
10327 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10328 change_frame_size.
10329
103302008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10331
10332 * getloadavg.c: Revert last change (2008-07-15).
10333
103342008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10335
10336 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10337 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10338 from configure.
10339
103402008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10341
10342 * s/sol2.h:
10343 * s/sol2-4.h: Reorganize conditionals.
10344
10345 * ecrt0.c: Remove code depending on m68000, not used anymore.
10346
10347 * fns.c (hash_remove): Make static.
10348 * lisp.h (hash_remove): Don't prototype.
10349
10350 * m/ibmrs6000.h:
10351 * m/ibms390x.h:
10352 * m/macppc.h: Remove boilerplate comments.
10353
10354 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10355 Solaris, which does not need them.
10356
10357 * m/vax.h: Remove comments about unsupported systems.
10358
10359 * s/darwin.h: Reorganize ifdefs.
10360
103612008-07-17 Andreas Schwab <schwab@suse.de>
10362
10363 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10364
103652008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10366
10367 Use SDATA. Follow coding convention of placing operators at
10368 beginning of next line rather than end of previous line, and placing
10369 spaces around infix operators.
10370
10371 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10372 in case it was defined already.
10373 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10374 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10375 ns_default.
10376 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10377 Lisp_Objects.
10378 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10379 (ns_defined_color, ns_color_to_lisp): Declare.
10380 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10381 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10382 it's accepted even with USE_LISP_UNION_TYPE.
10383 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10384 (update_frame_tool_bar): Remove apparently obsolete tests for
10385 non-integerness of f->tool_bar_lines.
10386 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10387 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10388 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10389 (nsfont_open): Don't confuse NULL for Qnil.
10390 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10391 * menu.h (find_and_call_menu_selection):
10392 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10393 (find_and_return_menu_selection): Always return something.
10394 * frame.h: Include dispextern.h for Display_Info.
10395 (display_x_get_resource): Declare.
10396
103972008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10398
10399 * syntax.c: Remove stdio.h include accidentally introduced in
10400 Emacs.app commit.
10401 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10402 NS_IMPL_COCOA.
10403 * keyboard.c (handle_async_input, input_available_signal): Remove
10404 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10405
104062008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10407
10408 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10409 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10410 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10411 Use SDATA.
10412
10413 * keymap.c: Remove all NS-specific code.
10414 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10415 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10416 where_is_preferred_modifier, return a different value depending on how
10417 preferred is the binding.
10418 (where_is_internal): Adjust accordingly.
10419 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10420 Adjust to new preferred_sequence_p.
10421 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10422 * keyboard.c (parse_solitary_modifier): Not static any more.
10423 * keyboard.h (parse_solitary_modifier): Declare.
10424
104252008-07-16 Andreas Schwab <schwab@suse.de>
10426
10427 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10428 of easymenu.
10429
104302008-07-16 Chong Yidong <cyd@stupidchicken.com>
10431
10432 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10433 that we don't move off the line.
10434
104352008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10436
10437 * keyboard.c (Qsuper): Remove.
10438 (parse_menu_item): Don't call where_is_internal specially for NS.
10439
104402008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10441
10442 * s/gnu-linux.h: Remove boilerplate comments.
10443
10444 * m/alpha.h (__ELF__): Consolidate conditions.
10445
10446 * m/m68k.h (linux): Use GNU_LINUX instead.
10447 Remove boilerplate comments.
10448
10449 * m/intel386.h: Undo refactoring from previous change.
10450 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10451 too, remove dead code.
10452 (linux): Use GNU_LINUX instead.
10453
104542008-07-16 Jason Rumney <jasonr@gnu.org>
10455
10456 * w32gui.h: Repeat 26 June changes lost by last change.
10457
104582008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10459
10460 * systty.h: Remove code for Aix on 386, unsupported platform.
10461
10462 * s/ms-w32.h: Remove boilerplate comments.
10463 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10464
10465 * s/gnu-linux.h (TERM): Remove support.
10466 (HAVE_SYSVIPC): Remove, unused.
10467 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10468 for this system.
10469
10470 * process.c: Remove support for IRIS, unused.
10471 Remove support for TERM, not relevant anymore.
10472
10473 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10474 used with the definition.
10475
10476 * s/aix4-2.h (static): Do not undef.
10477
10478 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10479 only used on Aix.
10480 (HAVE_SYSVIPC): Remove, unused.
10481
10482 * m/hp800.h (CANNOT_DUMP): Do not undef.
10483
10484 * m/alpha.h: Fix comment.
10485
10486 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10487 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10488 used by this configuration.
10489 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10490 * unexec.c: Remove code depending on HPUX and
10491 USG_SHARED_LIBRARIES, not used with this file. Remove code
10492 depending on IRIS, unused. Remove if 0-ed code.
10493
10494 * s/template.h: Remove comments about static.
10495
10496 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10497 Remove if 0-ed code.
10498 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10499 were the same as the default.
10500 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10501 Remove boilerplate comments.
10502 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10503 (HAVE_SYSVIPC): Remove, unused.
10504 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10505
10506 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10507 Remove boilerplate comments.
10508 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10509 Remove boilerplate comments.
10510 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10511 Remove boilerplate comments.
10512 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10513
10514 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10515 USG systems which do not use DATA_SEG_BITS.
10516 Refactor code. Remove boilerplate comments.
10517
10518 * m/ibms390.h:
10519 * m/m68k.h:
10520 * s/bsd-common.h:
10521 * s/cygwin.h:
10522 * s/darwin.h:
10523 * s/freebsd.h:
10524 * s/gnu.h:
10525 * s/msdos.h: Remove boilerplate comments.
10526
10527 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10528 do not use this file.
aac0c6e3
MR
10529 (IRIS_4D): Remove, unused.
10530
10531 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10532 do not use this file.
aac0c6e3
MR
10533 (SIGN_EXTEND_CHAR):
10534 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10535 * unexmips.c: Remove file, unused.
10536
10537 * editfns.c (Fuser_full_name): Replace the only use of
10538 USER_FULL_NAME with its value.
10539 * config.in: Regenerate.
10540
105412008-07-16 David Reitter <david.reitter@gmail.com>
10542
10543 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10544 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10545
105462008-07-16 Glenn Morris <rgm@gnu.org>
10547
10548 * emacs.c (system-type): Doc fix.
10549
105502008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10551
10552 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10553 If the cache doesn't work, let's fix it, rather than work around it.
10554
105552008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10556
10557 * Makefile.in: Correct additions for nsfont.o in last commit.
10558 * nsfont.m: New file (forgot last commit).
10559
105602008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10561
10562 * callproc.c (set_initial_environment): Initialize
10563 Vprocess_environment under CANNOT_DUMP (fixes crash when
10564 batch-compiling for bootstrap).
10565
105662008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10567 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10568
10569 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10570 fix crash due to different init order.
10571
105722008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10573
10574 Changes and additions for NeXTstep windowing system (Cocoa and
10575 GNUstep) support.
10576
10577 * Makefile.in:
10578 * config.in: Support defines and build commands for NS port.
10579 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10580 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10581 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10582 windowing.
10583 (struct face): Add synth_ital field.
10584 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10585 (init_display): Initialize Vinitial_window_system to "ns" when so
10586 compiled.
10587 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10588 (display_arg): Use under NS.
10589 (main): Under NS, allocate autorelease pool and handle command line
10590 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10591 (standard_args): Add NS-specific args.
10592 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10593 * font.c (DEFAULT_ENCODING): New variable.
10594 (font_find_for_lface): Use it.
10595 (syms_of_font): Load syms_of_nsfont under NS.
10596 * font.h: Declare nsfont_driver when compiled under NS.
10597 * fontset.c: When compiling under NS, include nsterm.h.
10598 (fontset_from_font): Autoconstruct fontset under NS.
10599 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10600 symbol, document and use it.
10601 (do_switch_frame): When for_deletion under Cocoa, add
10602 Fraise_frame(Qnil).
10603 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10604 (x_get_arg): Allow "yes" and "no" as boolean values.
10605 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10606 Qright under Cocoa.
10607 (focus-follows-mouse): Default to 0 under NS.
10608 * frame.h (enum output_method): Add output_ns.
10609 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10610 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10611 (FRAME_WINDOW_P): NS-specific definition.
10612 * fringe.c (max_used_fringe_bitmap): Make public.
10613 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10614 (getloadavg): Use NeXT code under descendant OS's.
10615 * image.c (includes and header section, x_create_bitmap_from_data)
10616 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10617 (image_background_transparent, x_clear_image_1)
10618 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10619 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10620 (x_to_xcolors, x_from_xcolors, x_disable_image)
10621 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10622 other GUIs, including XPM support using code originally written for
10623 Carbon GUI.
10624 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10625 using NS API.
10626 (image_ascent): Use font metrics macros instead of direct struct field
10627 access.
10628 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10629 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10630 Also, handle NS as GTK for menu bar purposes.
10631 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10632 toolkit where they differ.
10633 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10634 use cachelist, still needed under NS.
10635 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10636 (struct widget_value): Define it here for menu.c.
10637 * keymap.c (includes): Include modifier internals.
10638 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10639 NS.
10640 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10641 support for preferring sequences using certain modifiers, specified by
10642 the FIRSTONLY argument.
10643 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10644 under NS GNUstep implementation.
10645 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10646 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10647 * menu.c: Include nsterm.h under NS.
10648 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10649 (free_menubar_widget_tree_value, update_submenu_strings)
10650 (find_and_call_menu_selection): Treat NS as X and NT.
10651 (find_and_return_menu_selection): New function, used for popup menus.
10652 * nsgui.h:
10653 * nsterm.h:
10654 * nsfns.m:
10655 * nsimage.m:
10656 * nsmenu.m:
10657 * nsselect.m:
10658 * nsterm.m: New files.
10659 * process.c (wait_reading_process_output): Under NS, call ns_select()
10660 instead of plain select().
10661 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10662 beginning of buffer.
10663 * sysselect.h (init_process): Rename when compiling under Cocoa to
10664 avoid name conflict.
10665 * termhooks.h (display_info): Add ns_display_info to union.
10666 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10667 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10668 COCOA environment.
10669 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10670 unexec() signature. (Note, this will dump, but the resulting file
10671 crashes; unexosx is used instead; keeping around for reference and
10672 possible aid in getting dump working under GNUstep.)
10673 * w32gui.h (button_type, widget_value): Remove definitions (now in
10674 keyboard.h).
10675 * window.c: Include nsterm.h when compiling under NS.
10676 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10677 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10678 other GUI windowing systems.
10679 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10680 GTK.
10681 (x_consider_frame_title): Under NS, set icon type and frame
10682 modified-state indicator; use ns_set_name_as_filename() when using
10683 formatted title.
10684 (update_window_cursor): Make public when compiling under NS.
10685 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10686 (hourglass_atimer, Vhourglass_delay
10687 * xfaces.c (header section, init_frame_faces, clear_font_table)
10688 (defined_color, unload_color, x_face_list_fonts)
10689 (prepare_face_for_display): Add NS support parallel to other GUIs.
10690 Emulate GCs like other non-X GUIs.
10691 (split_font_name): Don't lowercase font name under NS.
10692 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10693 under NS.
10694 * s/darwin.h: Add support for compilation under NS.
10695
106962008-07-15 Jason Rumney <jasonr@gnu.org>
10697
10698 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10699 (w32_show_hourglass): Rename from show_hourglass.
10700 (w32_hide_hourglass): Rename from hide_hourglass.
10701 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10702 (Vhourglass_delay): Declare extern.
10703 (hourglass_started): Remove.
10704
10705 * xdisp.c (Vhourglass_delay): Remove static.
10706 (hourglass_started, start_hourglass, cancel_hourglass):
10707 Don't include these versions on WINDOWSNT.
10708
107092008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10710
10711 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10712 variables (formerly in xfns.c).
10713 (show_hourglass, hide_hourglass): New prototypes (same).
10714 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10715 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10716 in xfns.c).
10717 (syms_of_xdisp): Declare/initialize display-hourglass,
10718 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10719 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10720 formerly in xfns.c.
10721 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10722 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10723 (start_hourglass, cancel_hourglass): Remove.
10724 (show_hourglass, hide_hourglass): Remove prototypes and static
10725 modifiers.
10726 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10727 hourglass_atimer, hourglass_shown_p declaration/initialization.
10728 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10729 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10730 (start_hourglass, cancel_hourglass): Remove.
10731 (show_hourglass, hide_hourglass): Remove prototypes and static
10732 modifiers.
10733 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10734 hourglass_atimer, hourglass_shown_p declaration/initialization.
10735 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10736 (DEFAULT_HOURGLASS_DELAY): Remove.
10737 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10738 hourglass_shown_p declaration/initialization.
10739
107402008-07-14 Jason Rumney <jasonr@gnu.org>
10741
10742 * w32fns.c (w32_get_arg): Remove wrapper function.
10743 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10744 directly.
10745 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10746
107472008-07-14 Kenichi Handa <handa@m17n.org>
10748
10749 * xfont.c (xfont_open): Add workaround for X's bug.
10750
107512008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10752
10753 * fontset.c: Include <stdio.h> unconditionally.
10754
107552008-07-13 Michael Albinus <michael.albinus@gmx.de>
10756
10757 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
10758 for filtering.
10759
107602008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
10761
10762 * s/vms.h: Use __GNUC__ instead of _GNUC_.
10763
10764 * m/macppc.h:
10765 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
10766
10767 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
10768 (SPECIAL_EMACS_INT):
10769 * m/ia64.h (SPECIAL_EMACS_INT):
10770 * m/amdx86-64.h (SPECIAL_EMACS_INT):
10771 * s/gnu.h (NLIST_STRUCT):
10772 * s/aix4-2.h (X11R5_INHIBIT_I18N):
10773 * s/gnu-linux.h (LINUX):
10774 * s/msdos.h (HAVE_FACES):
10775 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
10776
10777 * systty.h:
10778 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
10779 anymore.
10780
107812008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
10782
10783 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
10784 always defined as int.
10785
10786 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
10787 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
10788 * s/gnu-linux.h (HAVE_WAIT_HEADER):
10789 * s/freebsd.h (HAVE_WAIT_HEADER):
10790 * s/bsd-common.h (HAVE_UNION_WAIT):
10791 * s/aix4-2.h (HAVE_WAIT_HEADER):
10792 * m/mips.h (HAVE_UNION_WAIT):
10793 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
10794 (COFF, static): Do not define, they are undefined later in the file.
10795
10796 * process.c (update_status): Don't use a union.
10797 (status_convert):
10798 (sigchld_handler): Use int instead of WAITTYPE.
10799
108002008-07-12 Chong Yidong <cyd@stupidchicken.com>
10801
10802 * indent.c (Fvertical_motion): Restore hscroll before moving to
10803 goal column.
10804
108052008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10806
10807 * lisp.h: Remove left over code.
10808
108092008-07-11 Andreas Schwab <schwab@suse.de>
10810
10811 * lisp.h: Fix logic in last change.
10812
10813 * menu.h: New file.
10814 * menu.c: Include it.
10815 * xmenu.c: Likewise.
10816 * Makefile.in: Update dependencies.
10817
108182008-07-11 Kenichi Handa <handa@m17n.org>
10819
10820 * fontset.c (fontset_from_font): Cancel the previous change.
10821
108222008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
10823
10824 * lisp.h:
10825 * w32heap.c:
10826 * emacs.c:
10827 * alloc.c: Replace all references of NO_UNION_TYPE with
10828 USE_LISP_UNION_TYPE.
10829
10830 * m/xtensa.h (NO_UNION_TYPE):
10831 * m/vax.h (NO_UNION_TYPE):
10832 * m/template.h (NO_UNION_TYPE):
10833 * m/sparc.h (NO_UNION_TYPE):
10834 * m/mips.h (NO_UNION_TYPE):
10835 * m/macppc.h (NO_UNION_TYPE):
10836 * m/m68k.h (NO_UNION_TYPE):
10837 * m/iris4d.h (NO_UNION_TYPE):
10838 * m/intel386.h (NO_UNION_TYPE):
10839 * m/ibms390x.h (NO_UNION_TYPE):
10840 * m/ibms390.h (NO_UNION_TYPE):
10841 * m/ibmrs6000.h (NO_UNION_TYPE):
10842 * m/ia64.h (NO_UNION_TYPE):
10843 * m/hp800.h (NO_UNION_TYPE):
10844 * m/arm.h (NO_UNION_TYPE):
10845 * m/amdx86-64.h (NO_UNION_TYPE):
10846 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
10847 defining it the same.
10848
108492008-07-10 Chong Yidong <cyd@stupidchicken.com>
10850
10851 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
10852
108532008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10854
10855 * fileio.c:
50426a04 10856 * sysdep.c:
aac0c6e3
MR
10857 * systty.h:
10858 * m/ibmrs6000.h:
10859 * m/iris4d.h:
10860 * s/aix4-2.h:
10861 * s/freebsd.h:
10862 * s/gnu-linux.h:
10863 * s/hpux10-20.h:
10864 * s/hpux11.h:
10865 * s/netbsd.h:
10866 * s/sol2-3.h:
10867 * s/sol2-4.h:
10868 * s/sol2.h:
10869 * s/usg5-4.h:
10870 * s/vms.h: Remove references to unused variables.
10871
108722008-07-10 Andreas Schwab <schwab@suse.de>
10873
10874 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
10875 pattern before matching the generic family.
10876
108772008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
10878
10879 * unexec.c:
10880 * s/vms.h:
10881 * s/usg5-4-2.h:
10882 * s/sol2-5.h:
10883 * s/freebsd.h:
10884 * s/darwin.h: Remove dead code.
10885
10886 * m/template.h:
10887 * m/sparc.h:
10888 * m/mips.h:
10889 * m/m68k.h:
10890 * m/iris4d.h:
10891 * m/intel386.h:
10892 * m/ibms390x.h:
10893 * m/ibms390.h:
10894 * m/ia64.h:
10895 * m/hp800.h:
10896 * m/arm.h:
10897 * m/amdx86-64.h: Remove dead code and references to unused
10898 and compiler defined symbols.
10899
10900 * unexmips.c:
10901 * unexelf.c: Remove references to desupported systems.
10902
10903 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
10904
10905 * m/powermac.h: Remove boilerplate comments.
10906 (NO_REMAP): Remove unused definition.
10907
10908 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
10909 define them.
10910
109112008-07-10 Kenichi Handa <handa@m17n.org>
10912
10913 * xfont.c (xfont_open): Log the reason of failure.
10914
109152008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
10916
10917 * fontset.c (fontset_get_font_group):
10918 * font.c (font_check_otf): Specify argument types.
10919
109202008-07-09 Kenichi Handa <handa@m17n.org>
10921
10922 * coding.c (detect_coding_utf_8): Set detect_info->found only when
10923 non-ASCII char is found.
10924
10925 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
10926 (reorder_font_vector): Change the arg preferred_family to font.
10927 Prefer the spec matching with font.
10928 (fontset_get_font_group): New function.
10929 (fontset_find_font): Change the format of an element of a realized
10930 fontset. Use fontset_get_font_group.
10931 (fontset_font): Try the current fontset, the default fontset, the
10932 fallbacks of the current fontset, and the fallbacks of the default
10933 fontset in this order.
10934 (face_for_char): Delete the shortcut to use the current font.
10935 (fontset_from_font): Don't set fonts for Latin in the fontset.
10936
10937 * font.h (font_make_object, font_match_p): Adjust prototypes.
10938
10939 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
10940
10941 * font.c (font_make_object): New arg entity and pixelsize.
10942 (font_check_otf_features, font_check_otf): New functions.
10943 (font_match_p): Check :lang, :script, and :otf properties.
10944
10945 * xfont.c (xfont_open): Adjust it for the change of
10946 font_make_object.
10947 (xfont_text_extents): Fix initial setting of metrics.
10948
10949 * ftfont.c (struct ftfont_info): New member index, delete member
10950 fc_charset_idx. Make the member order compatible with struct
10951 xftfont_info.
10952 (fc_charset_table): Change charset names to registry names.
10953 (ftfont_pattern_entity): Delete the args registry and
10954 fc_charset_idx. Change the value of :font-entity property
10955 to (FONTNAME . INDEX). Always set :registry property to
10956 `iso10646-1'.
10957 (struct ftfont_cache_data): New struct.
10958 (ftfont_lookup_cache): New arg for_face.
10959 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
10960 (ftfont_driver): Set the member otf_capability.
10961 (ftfont_get_charset): Adjust it for the change of
10962 fc_charset_table.
10963 (OTF_TAG_SYM): New macro.
10964 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
10965 for the change of fc_charset_table.
10966 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
10967 ftfont_pattern_entity. Add FC_INDEX to objset.
10968 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
10969 and ftfont_pattern_entity.
10970 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
10971 font_make_object, struct ftfont_info.
10972 (ftfont_has_char): Use ftfont_get_fc_charset.
10973 (ftfont_otf_features, ftfont_otf_capability): New functions.
10974 (ftfont_shape): Use ftfont_get_otf.
10975 (ftfont_text_extents): Fix initial setting of metrics.
10976
10977 * xftfont.c (struct xftfont_info): New member ft_size. Make the
10978 member order compatible with struct ftfont_info.
10979 (xftfont_open): Add FC_CHARSET to the pattern. Set
10980 xftfont_info->ft_size. Don't unlock the face. Check BDF
10981 properties if appropriate.
10982 (xftfont_close): Unlock the face.
10983 (xftfont_anchor_point, xftfont_shape): Deleted.
10984 (syms_of_xftfont): Don't set members anchor_point and shape of
10985 xftfont_driver.
10986
10987 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
10988 font_make_object.
10989
10990 * w32font.c (w32font_open): Adjust it for the change of
10991 font_make_object.
10992 (w32font_open_internal): Don't set properties of font_object here.
10993
109942008-07-08 Chong Yidong <cyd@stupidchicken.com>
10995
10996 * macfns.c (x_create_tip_frame):
10997 * w32fns.c (x_create_tip_frame):
10998 * xfns.c (x_create_tip_frame): Pass parameter argument to
10999 face-set-after-frame-default.
11000
11001 * xfaces.c (Finternal_merge_in_global_face): Save merged
11002 attributes for the default face back into the face vector.
11003
110042008-07-08 Andreas Schwab <schwab@suse.de>
11005
11006 * fontset.h: Declare fontset_from_font. Don't declare
11007 new_fontset_from_font and fontset_from_font_name.
11008 * xterm.c: Include "fontset.h".
11009 * Makefile.in (xterm.o): Update dependencies.
11010
110112008-07-08 Glenn Morris <rgm@gnu.org>
11012
11013 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11014 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11015
110162008-07-07 Chong Yidong <cyd@stupidchicken.com>
11017
11018 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11019 (x_set_frame_parameters): Don't bind it.
11020
110212008-07-07 Juanma Barranquero <lekktu@gmail.com>
11022
11023 * w32fns.c (map_w32_filename): Declare extern.
11024
110252008-07-07 Jason Rumney <jasonr@gnu.org>
11026
11027 * w32term.c (WS_EX_LAYERED): Define if not already.
11028
110292008-07-06 Chong Yidong <cyd@stupidchicken.com>
11030
11031 * xfaces.c (set_font_frame_param): Don't try to set the font
11032 parameter if it is still unspecified in the lface.
11033
110342008-07-05 Chong Yidong <cyd@stupidchicken.com>
11035
11036 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11037 face if it didn't already exist.
11038
11039 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11040
110412008-07-05 Andreas Schwab <schwab@suse.de>
11042
11043 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11044
110452008-07-05 Chong Yidong <cyd@stupidchicken.com>
11046
11047 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11048 word-wrapping.
11049 (IT_DISPLAYING_WHITESPACE): New macro.
11050 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11051 when word-wrapping. Simplify word-wrapping logic. Use correct
11052 pixel positions when saving copies of the iterator.
11053 (display_line): Use proper wrap point if the last character on a
11054 line was preceded by whitespace.
11055
110562008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11057
11058 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11059
110602008-07-04 Kenichi Handa <handa@m17n.org>
11061
11062 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11063
11064 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11065
110662008-07-02 Jason Rumney <jasonr@gnu.org>
11067
11068 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11069 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11070
11071 * xdisp.c (next_element_from_display_vector): Move assignment out
11072 of if statement.
11073
110742008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11075
11076 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11077
11078 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11079 (syms_of_fileio): Initialize and export them.
11080 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11081
11082 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11083 (Fsystem_move_file_to_trash): New function.
11084 (syms_of_w32fns): Export it to lisp.
11085
110862008-07-01 Jason Rumney <jasonr@gnu.org>
11087
11088 * w32font.c (w32font_text_extents): Don't count overhang as part
11089 of width.
11090
110912008-06-30 Miles Bader <miles@gnu.org>
11092
11093 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11094 Add `avoid_cursor_p' field.
11095
11096 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11097 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11098 (append_glyph, append_composite_glyph, produce_image_glyph)
11099 (append_stretch_glyph): Initialize avoid_cursor_p.
11100 (get_it_property): Rename from `get_line_height_property'.
11101 (x_produce_glyphs): Use get_it_property.
11102 (handle_line_prefix, push_display_prop): New functions.
11103 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11104 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11105 New variables.
11106 (syms_of_xdisp): Initialize them.
11107
111082008-06-30 Kenichi Handa <handa@m17n.org>
11109
11110 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11111 XftDefaultSubstitute (they are called in XftFontMatch).
11112 (xftfont_open): Fix args to ftfont_font_format.
11113
11114 * ftfont.c (fc_charset_table): New member lang.
11115 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11116 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11117 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11118 (ftfont_open): Fix args to ftfont_font_format.
11119 (ftfont_font_format): New arg filename.
11120
111212008-06-30 Chong Yidong <cyd@stupidchicken.com>
11122
11123 * xfaces.c (Finternal_merge_in_global_face): If default face was
11124 modified, realize it again. Update the font face attribute.
11125
111262008-06-29 Jason Rumney <jasonr@gnu.org>
11127
11128 * w32term.c (x_set_frame_alpha): Fix logic.
11129
111302008-06-29 Kenichi Handa <handa@m17n.org>
11131
11132 * fontset.c (Finternal_char_font): Return font-object instead of
11133 font-name.
11134
11135 * composite.c (get_composition_id): Fix the width calculation for TAB.
11136
111372008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11138
11139 * indent.c (Fvertical_motion): Properly handle float column arg.
11140
111412008-06-28 Jason Rumney <jasonr@gnu.org>
11142
11143 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11144 (pfnSetLayeredWindowAttributes): New function pointer.
11145 (w32_initialize): Initialize it when supported.
11146 (x_set_frame_alpha): New function.
11147
11148 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11149 (w32_frame_parm_handlers): Set alpha handler.
11150
11151 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11152
111532008-06-27 Jason Rumney <jasonr@gnu.org>
11154
11155 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11156 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11157 (w32_to_x_charset, x_to_w32_charset)
11158 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11159 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11160 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11161 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11162 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11163 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11164 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11165 (Qw32_charset_unicode): Remove.
11166 (syms_of_w32fns): Update for above changes.
11167
11168 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11169 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11170 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11171 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11172 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11173 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11174 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11175 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11176 (syms_of_w32font): Update for above changes.
11177
111782008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11179
11180 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11181 removed #if.
11182 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11183
111842008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 11185 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11186
11187 * makefile.w32-in (LOCAL_FLAGS):
11188 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11189
11190 * sysdep.c (_spawnlp, _getpid):
11191 Declare with explicit _cdecl instead of _CRTAPI1.
11192
11193 * editfns.c (Fget_internal_run_time):
11194 Check for WINDOWSNT with #ifdef, not #if.
11195
111962008-06-26 Jason Rumney <jasonr@gnu.org>
11197
11198 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11199
11200 * w32term.c (x_draw_glyph_string_foreground)
11201 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11202 Use FONT_HANDLE macro.
11203 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11204
11205 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11206 (uniscribe_encode_char): Use FONT_HANDLE macro.
11207
11208 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11209 (w32font_text_extents): Use precast w32_font.
11210 (w32font_close): Free cached metrics.
11211 (w32font_open_internal): Allocate space for name on stack.
11212
112132008-06-26 Chong Yidong <cyd@stupidchicken.com>
11214
11215 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11216
112172008-06-26 Jason Rumney <jasonr@gnu.org>
11218
11219 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11220 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11221
112222008-06-26 Juanma Barranquero <lekktu@gmail.com>
11223
11224 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11225
112262008-06-26 Jason Rumney <jasonr@gnu.org>
11227
11228 * w32bdf.c, w32bdf.h: Remove obsolete files.
11229
11230 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11231
11232 * w32gui.h: Don't include w32bdf.h.
11233 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11234 Remove obsolete font support.
11235
11236 * w32font.h (struct w32font_info): Remove compat_w32_font.
11237 Add hfont member.
11238 (FONT_COMPAT): Remove obsolete macro.
11239
11240 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11241 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11242 (w32font_open_internal): Remove compat code. Set new hfont member.
11243 (Fx_select_font): Use new hfont member.
11244
11245 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11246 (uniscribe_encode_char): Use new hfont member.
11247
11248 * w32term.c (x_draw_glyph_string_foreground)
11249 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11250 (x_draw_glyph_string): Use metrics in w32font_info.
11251
112522008-06-26 Kenichi Handa <handa@m17n.org>
11253
11254 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11255
112562008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11257
11258 * unexnext.c:
11259 * m/ews4800.h:
11260 * m/hp9000s300.h:
11261 * m/ibm370aix.h:
11262 * m/mips-siemens.h:
11263 * m/ncr386.h:
11264 * m/next.h:
11265 * m/pmax.h:
11266 * m/powerpcle.h:
11267 * m/tandem-s2.h:
11268 * s/386bsd.h:
11269 * s/bsd386.h:
11270 * s/bsd4-1.h:
11271 * s/bsd4-2.h:
11272 * s/bsdos2-1.h:
11273 * s/bsdos2.h:
11274 * s/bsdos3.h:
11275 * s/bsdos4.h:
11276 * s/nextstep.h:
11277 * s/ultrix4-3.h:
11278 * s/usg5-0.h:
11279 * s/usg5-2-2.h:
11280 * s/usg5-2.h:
11281 * s/usg5-4-3.h:
11282 * s/ux4800.h:
11283 * s/uxpds.h:
11284 * s/uxpv.h: Remove support for obsolete systems.
11285 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11286 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11287 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11288 Remove, insert contents in s/aix4-2.h.
11289 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11290 * s/bsd4-3.h: Rename to ...
11291 * s/bsd-common.h: ... this.
11292 * data.c:
11293 * doc.c:
11294 * ecrt0.c:
11295 * emacs.c:
11296 * fileio.c:
11297 * floatfns.c:
11298 * keyboard.c:
11299 * mem-limits.h:
11300 * print.c:
11301 * process.c:
11302 * sysdep.c:
11303 * syssignal.h:
11304 * systty.h:
11305 * syswait.h:
11306 * term.c:
11307 * unexec.c:
11308 * unexelf.c:
11309 * unexhp9k800.c:
11310 * m/hp800.h:
11311 * m/ibmrs6000.h:
11312 * m/mips.h:
11313 * m/vax.h:
11314 * s/darwin.h:
11315 * s/freebsd.h:
11316 * s/gnu.h:
11317 * s/ms-w32.h:
11318 * s/msdos.h:
11319 * s/netbsd.h:
11320 * s/template.h: Remove references to obsolete variables.
11321
11322 * Makefile.in: Add dependencies for all unexec files.
11323 (admindir): Remove unused variable.
11324 (UNEXEC_SRC): Remove references.
11325
113262008-06-25 Chong Yidong <cyd@stupidchicken.com>
11327
11328 * xfns.c (x_default_font_parameter): If Xft is available, first
11329 try Monospace-12 for the default font.
11330
113312008-06-25 Jason Rumney <jasonr@gnu.org>
11332
11333 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11334
113352008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11336
11337 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11338
11339 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11340
113412008-06-25 Juanma Barranquero <lekktu@gmail.com>
11342
11343 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11344 <scroll-conservatively>: Fix typo in docstring.
11345
11346 * xselect.c (Fx_send_client_event): Doc fix.
11347
113482008-06-25 Kenichi Handa <handa@m17n.org>
11349
11350 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11351
11352 * font.c (font_parse_fcname): Remove unused variables.
11353 (font_sort_entites): Delete the arg SPEC. Caller changed.
11354 Fix for the case of ! best_only.
11355 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11356
11357 * lisp.h (Fstring_to_unibyte): EXFUN it.
11358
11359 * character.h (str_to_unibyte): Extern it.
11360
11361 * character.c (str_to_unibyte): New function.
11362
11363 * fns.c (Fstring_to_unibyte): New function.
11364 (syms_of_fns): Defsubr it.
11365
113662008-06-24 Kenichi Handa <handa@m17n.org>
11367
11368 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11369 DPI too.
11370 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11371
113722008-06-24 Andreas Schwab <schwab@suse.de>
11373
11374 * Makefile.in (${lispsource}loaddefs.el): Rename from
11375 ../lisp/loaddefs.el.
11376 (bootstrap-clean): Do what distclean does but don't remove
11377 Makefile.
11378 (distclean): Depend on bootstrap-clean and remove Makefile.
11379
113802008-06-24 Chong Yidong <cyd@stupidchicken.com>
11381
11382 * buffer.h (struct buffer): New member word_wrap.
11383
11384 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11385 word-wrap.
11386 (init_buffer_once): Initialize them.
11387
11388 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11389 line_wrap enum possessing three possible values.
11390
11391 * termopts.h: Replace truncate_partial_width_windows with
11392 Vtruncate_partial_width_windows.
11393
11394 * dispnew.c (direct_output_for_insert): Avoid direct output when
11395 inserting a space with word wrap on.
11396
11397 * indent.c (compute_motion): Obey integer values of
11398 truncate-partial-width-windows.
11399
11400 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11401 replacing truncate_partial_width_windows.
11402 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11403 truncate only if the window width is below that integer.
11404 (start_display, resize_mini_window, produce_stretch_glyph)
11405 (display_string, move_it_in_display_line_to): Use line_wrap.
11406 (back_to_previous_visible_line_start, reseat_1): Reset
11407 string_from_display_prop_p.
11408 (display_line): Extend default face to end of line when wrapping.
11409
114102008-06-24 Kim F. Storm <storm@cua.dk>
11411
11412 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11413 to wrap continued lines at word boundaries.
11414
114152008-06-24 Jason Rumney <jasonr@gnu.org>
11416
11417 * font.c (Ffont_face_attributes): Multiply pixel size before point
11418 conversion to avoid multiplying rounding error.
11419
114202008-06-23 Jason Rumney <jasonr@gnu.org>
11421
11422 * w32term.c (x_draw_glyph_string_background)
11423 (x_draw_glyph_string): Remove old bdf font code.
11424
11425 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11426
114272008-06-22 Kenichi Handa <handa@m17n.org>
11428
11429 * font.c (font_find_for_lface): Try the adstyle specified in
11430 the property of LFACE_FONT of LFACE (if any).
11431
114322008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11433 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11434
11435 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11436
114372008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11438
11439 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11440 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11441 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11442 (witness-emacs): Remove.
11443 (lisp, shortlisp): Move loaddefs.el earlier.
11444 (mostlyclean): Forget about witness-emacs.
11445
114462008-06-22 Glenn Morris <rgm@gnu.org>
11447
11448 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11449 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11450
114512008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11452
11453 * Makefile.in (PRECOMP): Remove.
11454 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11455 (witness-emacs): Run `compile-first'.
11456 (.el.elc): Use the new compile-onefile target.
11457
114582008-06-21 Kenichi Handa <handa@m17n.org>
11459
11460 * xftfont.c (xftfont_open): Handle QCembolden only when
11461 FC_EMBOLDEN is defined.
11462
114632008-06-21 Andreas Schwab <schwab@suse.de>
11464
11465 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11466 (.el.elc): Likewise.
11467
114682008-06-21 Miles Bader <miles@gnu.org>
11469
11470 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11471 build dir, not the lisp source dir.
11472
114732008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11474
11475 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11476 (bootstrapclean): Remove.
11477 (.el.elc): New rule.
11478 (PRECOMP): New var.
11479 (../lisp/subdirs.el): Remove.
11480 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11481 (witness-emacs): New target.
11482 (mostlyclean): Remove witness-emacs as well.
11483 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11484 Add witness-emacs dependency.
11485
114862008-06-20 Chong Yidong <cyd@stupidchicken.com>
11487
11488 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11489 defined by the font.
11490
114912008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11492
11493 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11494 (bootstrap-clean): New target that keeps TAGS around.
11495 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11496 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11497
114982008-06-20 Jason Rumney <jasonr@gnu.org>
11499
11500 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11501 Remove obsolete font code.
11502
11503 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11504 to determine language support.
11505
115062008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11507
11508 * sysdep.c (cfsetspeed): New fun extracted from the code.
11509 (cfmakeraw): Move before first use.
11510
115112008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11512
11513 * sysdep.c (cfmakeraw): Provide fallback implementation.
11514 (serial_configure): Provide fallback implementation of cfsetspeed.
11515
115162008-06-20 Kenichi Handa <handa@m17n.org>
11517
11518 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11519 the pattern.
11520
11521 * fontset.c (fontset_from_font): Copy font_spec before changing
11522 the elements.
11523
11524 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11525
115262008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11527
11528 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11529 for explicit `font' parameters.
11530
11531 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11532
115332008-06-19 Kenichi Handa <handa@m17n.org>
11534
11535 * frame.c: Include <ctype.h>.
11536 (x_set_font_backend): Allow spacing characters in the X resource
11537 for FontBackend.
11538
115392008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11540
11541 * w32fns.c, xfns.c (Qfont_param): New var.
11542 (syms_of_w32fns): Initialize it.
11543 (x_default_font_parameter): Record explicit `font' into
11544 `font-parameter'.
11545
115462008-06-18 Kenichi Handa <handa@m17n.org>
11547
11548 * font.c (font_parse_xlfd): Fix previous change.
11549 (font_parse_fcname): Don't use :fc-unknown-spec.
11550 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11551 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11552 (font_add_log): Prepend the driver name to the resulting fonts.
11553
11554 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11555 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11556 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11557
11558 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11559 (QCembolden): New variables.
11560 (syms_of_xftfont): DEFSYM them.
11561 (xftfont_open): Call XftFontMatch. Don't trust the result of
11562 XftTextExtents8 if the pixel_size is less than 5.
11563
115642008-06-18 Andreas Schwab <schwab@suse.de>
11565
11566 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11567 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11568
115692008-06-18 Jason Rumney <jasonr@gnu.org>
11570
11571 * w32font.c (w32font_list, w32font_match): Add logging.
11572
11573 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11574
115752008-06-17 Chong Yidong <cyd@stupidchicken.com>
11576
11577 * font.c (font_parse_fcname): Store divider characters for
11578 unknown-spec list. For known key symbols, intern using correct
11579 symbol name.
11580
115812008-06-17 Kenichi Handa <handa@m17n.org>
11582
11583 * xfaces.c (realize_default_face): If the frame is not on window
11584 system, set the fontset of face to nil.
11585
115862008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11587
11588 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11589
115902008-06-16 Juanma Barranquero <lekktu@gmail.com>
11591
11592 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11593 (build_font_name_from_vector): Delete externs.
11594
11595 * xfaces.c (struct font_name): Don't declare.
11596
115972008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11598
11599 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11600
116012008-06-16 Chong Yidong <cyd@stupidchicken.com>
11602
11603 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11604
116052008-06-16 Juanma Barranquero <lekktu@gmail.com>
11606
11607 * font.c (Ffont_spec): Fix usage in docstring.
11608 (Ffont_face_attributes): Doc fix.
11609
116102008-06-16 Andreas Schwab <schwab@suse.de>
11611
11612 * font.c (Ffont_face_attributes): Fix definition.
11613
116142008-06-16 Jason Rumney <jasonr@gnu.org>
11615
11616 * font.h (font_style_symbolic_from_value): Remove.
11617
11618 * font.c (font_style_symbolic_from_value): Remove.
11619 (font_style_symbolic): Revert to pre 2008-06-13 version.
11620
11621 * w32font.c (w32_to_fc_weight): New function.
11622 (w32font_full_name, logfont_to_fcname): Use it.
11623
116242008-06-16 Kenichi Handa <handa@m17n.org>
11625
11626 * font.c (font_check_object): Delete it.
11627 (font_clear_cache): Check if a font-object is alive.
11628 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11629 font-object to nil.
11630 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11631 (font_at): Don't call font_check_object.
11632 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11633
116342008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11635
11636 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11637
116382008-06-16 Chong Yidong <cyd@stupidchicken.com>
11639
11640 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11641
116422008-06-15 Chong Yidong <cyd@stupidchicken.com>
11643
11644 * font.c (font_parse_fcname): Only one decimal point.
11645 (font_unparse_fcname): Handle data in family and foundry indices
11646 as symbols, not strings.
11647 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11648
11649 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11650
11651 * font.h (font_unparse_gtkname): Add prototype.
11652
116532008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11654
11655 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11656
116572008-06-15 Andreas Schwab <schwab@suse.de>
11658
11659 * font.c (font_update_drivers): Fix crash when no drivers match.
11660
116612008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11662
11663 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11664 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11665
116662008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11667
11668 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11669
116702008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11671
11672 * process.c (Fserial_process_configure, Fprocess_send_eof):
11673 Use EQ to compare Lisp_Objects.
11674
116752008-06-13 Jason Rumney <jasonr@gnu.org>
11676
11677 * w32fns.c (Fw32_select_font): Remove old font API function.
11678
11679 * w32font.c (logfont_to_fcname): New function.
11680 (Fx_select_font): New font dialog function compatible with
11681 GTK/fontconfig version.
11682
11683 * font.c (font_style_symbolic_from_value): New function.
11684 (font_style_symbolic): Use it.
11685
11686 * font.h (font_style_symbolic_from_value): Declare new function.
11687
116882008-06-13 Juanma Barranquero <lekktu@gmail.com>
11689
11690 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11691 <font-width-table>: Fix typos in docstrings.
11692
116932008-06-13 Daniel Engeler <engeler@gmail.com>
11694
11695 These changes add serial port access.
11696 * process.c: Add HAVE_SERIAL.
11697 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11698 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11699 (list_processes_1, select_wrapper, Fstop_process)
11700 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11701 (status_notify): Modify to handle serial processes.
11702 [HAVE_SERIAL] (Fserial_process_configure)
11703 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11704 New functions.
11705 * process.h (struct Lisp_Process): Add `type'.
11706 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11707 New functions.
11708 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11709 serial ports.
b71ac3dd 11710 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11711 * w32.h: Add FILE_SERIAL.
11712 (struct _child_process): Add ovl_read, ovl_write.
11713
117142008-06-13 Kenichi Handa <handa@m17n.org>
11715
11716 * dispextern.h (enum lface_attribute_index): New member
11717 LFACE_FOUNDRY_INDEX.
11718
11719 * font.c (font_score): Delete arg alternate_families. Check only
11720 weight, slant, width, and size. Ignore the difference of alias
11721 style symbols.
11722 (font_sort_entites): Adjust for the above change. Reflect the
11723 order of font-driver to scores.
11724 (font_list_entities): Don't check alternate_familes here.
11725 (font_clear_prop): Handle foundry.
11726 (font_update_lface): Don't parse "foundry-family" form here.
11727 Handle FONT_FOUNDRY_INDEX.
11728 (font_find_for_lface): Likewise. Handle alternate families here.
11729 If registry is nil, try iso8859-1 and ascii-0.
11730 (font_open_for_lface): Pay attention to size in ENTITY.
11731 (font_open_by_name): Simplify by calling font_load_for_lface.
11732 (free_font_driver_list): Delete it.
11733 (font_update_drivers): Preserve the order of backends.
11734 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11735 of font_score and font_sort_entites.
11736 (font_update_sort_order): Likewise.
11737
11738 * xfaces.c (LFACE_FOUNDRY): New macro.
11739 (check_lface_attrs): Check foundry.
11740 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11741 (merge_face_vectors): Check foundry.
11742 (merge_face_ref): Likewise.
11743 (Finternal_set_lisp_face_attribute): Likewise.
11744 (x_update_menu_appearance): Likewise.
11745 (Finternal_get_lisp_face_attribute): Likewise.
11746 (lface_hash): Likewise.
11747 (lface_same_font_attributes_p): Likewise.
11748 (x_supports_face_attributes_p): Likewise.
11749 (tty_supports_face_attributes_p): Likewise.
11750 (Finternal_set_alternative_font_family_alist): Intern strings.
11751 (Finternal_set_alternative_font_registry_alist): Downcase strings.
11752 (realize_default_face): Set LFACE_FOUNDRY (lface).
11753
11754 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
11755 font-driver at first.
11756
11757 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
11758
117592008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11760
11761 * lread.c (Fload): Use xfree, not free on saved_doc_string.
11762
117632008-06-12 Jim Meyering <meyering@redhat.com>
11764
11765 Make unexec_free handle NULL the same way free does.
11766 * unexmacosx.c (unexec_free): Ignore a NULL argument.
11767
117682008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
11769
11770 * character.h (CHAR_TO_BYTE_SAFE): New macro.
11771 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
11772 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
11773 (WEAK_ALIAS): Simplify.
11774 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
11775 when searching a unibyte buffer.
11776
117772008-06-12 Chong Yidong <cyd@stupidchicken.com>
11778
11779 * xfns.c (Fx_select_font): Rename from x-font-dialog.
11780
117812008-06-12 Juanma Barranquero <lekktu@gmail.com>
11782
11783 * w32font.c: Include ctype.h.
11784
117852008-06-11 Jason Rumney <jasonr@gnu.org>
11786
11787 * w32font.c (w32font_encode_char): Detect missing glyphs that are
11788 misreported as space.
11789 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
11790 as aliases for registry iso10646-1.
11791
117922008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
11793
11794 * buffer.c (clone_per_buffer_values): Skip `name'.
11795
117962008-06-11 Chong Yidong <cyd@stupidchicken.com>
11797
11798 * font.c (font_parse_fcname): Fix last change; accept decimal
11799 points in font size.
11800
118012008-06-10 Jason Rumney <jasonr@gnu.org>
11802
11803 * w32uniscribe.c (add_opentype_font_name_to_list):
11804 Skip non unicode fonts.
11805
118062008-06-10 Chong Yidong <cyd@stupidchicken.com>
11807
11808 * xfns.c (Fx_font_dialog): New function.
11809
11810 * gtkutil.c (xg_dialog_response_cb): Rename from
11811 xg_file_response_callback.
11812 (pop_down_dialog): Rename from pop_down_file_dialog.
11813 (xg_get_file_name): Callers changed.
11814 (xg_get_font_name): New function.
11815
11816 * gtkutil.h (xg_get_font_name): Insert prototype.
11817
118182008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11819
11820 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
11821 x_underline_minimum_display_offset.
11822 (syms_of_xdisp): Declare it here rather than in xterm.c.
11823 * dispextern.h (underline_minimum_offset): Declare it.
11824 * w32term.c (x_draw_glyph_string): Use it.
11825 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
11826 (syms_of_xterm): Don't declare it any more.
11827 (x_draw_glyph_string): Adjust to the new name.
11828
8719abec 118292008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
11830
11831 * xterm.c (x_underline_minimum_display_offset): New var.
11832 (x_draw_glyph_string): Use it.
11833 (syms_of_xterm): Declare it.
11834
118352008-06-10 Chong Yidong <cyd@stupidchicken.com>
11836
11837 * font.c (font_parse_fcname): Accept GTK-style font names too.
11838
118392008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
11840
11841 * dired.c (file_name_completion): Don't return t if the match is exact
11842 but with different capitalization.
11843 * minibuf.c (Ftry_completion): Simplify.
11844
11845 * window.c (Vwindow_point_insertion_type): New var.
11846 (set_window_buffer): Use it.
11847 (syms_of_window): Init and export it to Lisp.
11848
118492008-06-10 Kenichi Handa <handa@m17n.org>
11850
11851 * font.h (font_intern_prop): Prototype adjusted.
11852
11853 * font.c (font_intern_prop): New arg force_symbol.
11854 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
11855 Adjust for the change of font_intern_prop.
11856
11857 * ftfont.c (ftfont_pattern_entity):
11858 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
11859 (w32_registry):
11860 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
11861 the change of font_intern_prop.
11862
118632008-06-09 Juanma Barranquero <lekktu@gmail.com>
11864
11865 * w32menu.c (digest_single_submenu): Declare extern.
11866
118672008-06-09 Jason Rumney <jasonr@gnu.org>
11868
11869 * w32term.c (x_make_frame_visible): Use alternate restore flags.
11870
11871 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
11872 (parse_single_submenu): Remove.
11873 (digest_single_submenu): Remove.
11874 (syms_of_w32menu): Don't initialise variables that have moved
11875 to menu.c.
11876 (set_frame_menubar): Sync with version in xmenu.c.
11877 (w32_menu_show): Sync with xmenu_show in xmenu.c.
11878
11879 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
11880 Make static again.
11881
118822008-06-09 Jason Rumney <jasonr@gnu.org>
11883
11884 Changes to w32 files related to the move of common menu code
11885 to menu.c on 2008-06-08 by Chong Yidong.
11886
11887 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
11888 defs to w32gui.h.
11889 (single_keymap_panes, push_menu_item, push_menu_pane):
11890 Make globally visible.
11891
11892 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
11893 (local_free, malloc_widget_value, free_widget_value)
11894 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
11895 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
11896 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
11897 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
11898 (menu_items, menu_items_allocated, menu_items_used)
11899 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
11900 (init_menu_items, finish_menu_items, discard_menu_items)
11901 (grow_menu_items, push_submenu_start, push_submenu_end)
11902 (push_left_right_boundary, push_menu_pane, push_menu_item)
11903 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
11904 (free_menubar_widget_tree_value, parse_single_submenu)
11905 (update_submenu_strings): Remove functions.
11906 (xmalloc_widget_value): Remove and declare extern.
11907
11908 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
11909 (OBJ1): Build it.
11910
11911 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
11912 (local_heap, local_alloc, local_free, malloc_widget_value)
11913 (free_widget_value): Define here.
11914
119152008-06-09 Kenichi Handa <handa@m17n.org>
11916
11917 * font.h (Qascii_0): Extern it.
11918
11919 * font.c (Qascii_0): New variable.
11920 (syms_of_font): DEFSYM it.
11921 (font_open_by_name): If the registry "iso8859-1" fails, try also
11922 "ascii-0".
11923
11924 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
11925
119262008-06-08 Kenichi Handa <handa@m17n.org>
11927
11928 * .gdbinit (xfont): New command.
11929
119302008-06-08 Andreas Schwab <schwab@suse.de>
11931
11932 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
11933 * Makefile.in (menu.o): Update dependencies.
11934
11935 * Makefile.in (obj): Always add menu.o.
11936 * emacs.c (main): Always call syms_of_menu.
11937 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
11938
119392008-06-08 Chong Yidong <cyd@stupidchicken.com>
11940
11941 * Makefile.in: Compile menu.c.
11942
11943 * lisp.h: Declare syms_of_menu.
11944
11945 * emacs.c (main): Call syms_of_menu.
11946
11947 * keyboard.h: Relocate platform-independent menu definitions from
11948 xmenu.c.
11949
11950 * menu.c: New file. Relocate platform-independent menu
11951 definitions from xmenu.c. Suggested by Adrian Robert.
11952
11953 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 11954 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
11955 (menu_items_used, menu_items_n_panes)
11956 (menu_items_submenu_depth): Move to keyboard.h.
11957 (init_menu_items, finish_menu_items, unuse_menu_items)
11958 (discard_menu_items, restore_menu_items, save_menu_items)
11959 (grow_menu_items, push_submenu_start, push_submenu_end)
11960 (push_left_right_boundary, push_menu_pane, push_menu_item)
11961 (keymap_panes, single_keymap_panes, single_menu_item)
11962 (list_of_panes, list_of_items, find_and_call_menu_selection)
11963 (xmalloc_widget_value, free_menubar_widget_value_tree)
11964 (parse_single_submenu, digest_single_submenu)
11965 (update_submenu_strings): Move to menu.c.
11966
119672008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
11968
11969 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
11970
119712008-06-06 Miles Bader <miles@gnu.org>
11972
11973 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
11974 face, not frame default.
11975
119762008-06-05 Martin Rudalics <rudalics@gmx.at>
11977
11978 * window.c (pop_up_windows, pop_up_frames)
11979 (display_buffer_reuse_frames, Vpop_up_frame_function)
11980 (Vdisplay_buffer_function, Veven_window_heights)
11981 (Vspecial_display_buffer_names, Vspecial_display_regexps)
11982 (Vspecial_display_function, Vsame_window_buffer_names)
11983 (Vsame_window_regexps, split_height_threshold)
11984 (Vsplit_window_preferred_function): Move those vars to window.el.
11985 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
11986 (Fdisplay_buffer): Move those functions to window.el.
11987 (syms_of_window): Remove corresponding declarations.
11988 (display_buffer): New function.
11989 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
11990 * dispnew.c (Flast_nonminibuf_frame): New function.
11991 * buffer.c (Fpop_to_buffer): Move to window.el.
11992
119932008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11994
11995 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11996
119972008-06-05 Kenichi Handa <handa@m17n.org>
11998
11999 * coding.c (detect_coding): Fix previous change.
12000 (detect_coding_system): Likewise.
12001
120022008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12003
12004 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12005
12006 * keymap.c (Vminibuffer_local_filename_must_match_map):
12007 Rename from Vminibuffer_local_must_match_filename_map.
12008 (syms_of_keymap):
12009 * minibuf.c (Fcompleting_read): Adjust accordingly.
12010 * commands.h: Rename declaration as well.
12011
120122008-06-05 Kenichi Handa <handa@m17n.org>
12013
12014 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12015 family name.
12016 (Ffont_put): Likewise.
12017
12018 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12019 current font-spec.
12020
12021 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12022 is unspecified.
12023
12024 * xfaces.c (realize_x_face): If the font-related face attributes
12025 are the same as those of default face, realize a new fontset from
12026 default->fontset.
12027 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12028
120292008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12030
12031 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12032 (move_it_in_display_line): New wrapper.
12033
12034 * window.c (window_scroll_pixel_based_preserve_x)
12035 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12036 (window_scroll_pixel_based, window_scroll_line_based):
12037 Use them to preserve column positions.
12038 (syms_of_window): Initialize them.
12039
12040 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12041 (HPOS . VPOS) pair.
12042
12043 * dispextern.h (move_it_in_display_line): Declare.
12044
120452008-06-05 Juanma Barranquero <lekktu@gmail.com>
12046
12047 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12048 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12049 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12050
120512008-06-04 Juanma Barranquero <lekktu@gmail.com>
12052
12053 * window.c (Fset_window_parameter): Doc fix.
12054 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12055
120562008-06-04 Joakim Verona <joakim@verona.se>
12057
12058 * window.h (struct window): Add new member window_parameters.
12059
12060 * window.c (Fwindow_parameters, Fwindow_parameter)
12061 (Fset_window_parameter): New defuns.
12062 (syms_of_window): Defsubr the new defuns.
12063 (make_window): Initialize window_parameters to nil.
12064
120652008-06-04 John Paul Wallington <jpw@pobox.com>
12066
12067 * eval.c (Fdefmacro): Doc fix.
12068
120692008-06-04 Kenichi Handa <handa@m17n.org>
12070
12071 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12072 Be sure to call setup_coding_system when we find a proper coding system.
12073 (detect_coding_system): Fix handling of coding->head_ascii.
12074
120752008-06-03 Andreas Schwab <schwab@suse.de>
12076
12077 * font.c (font_prop_validate_spacing): Fix last change.
12078
120792008-06-03 Kenichi Handa <handa@m17n.org>
12080
12081 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12082 (font_parse_fcname): Fix handling of unknown key.
12083
12084 * xfont.c (xfont_list): Try an alias.
12085
12086 * charset.c (char_charset): Return NULL if the arg charset_list is
12087 specified and C doesn't belong to any of them.
12088
120892008-06-02 Chip Coldwell <coldwell@redhat.com>
12090
12091 * font.c (font_pixel_size): Don't take cdr of an integer.
12092
120932008-06-02 Jim Meyering <meyering@redhat.com>
12094
12095 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12096 * alloc.c (xfree): Return right away for a NULL arg.
12097 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12098 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12099 * mac.c (create_apple_event_from_event_ref): Likewise.
12100 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12101 Likewise.
12102 * doprnt.c (doprnt1): Likewise.
12103 * frame.c (frame): Likewise.
12104 * keyboard.c (wipe_kboard): Likewise.
12105 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12106 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12107 * term.c (tty_default_color_capabilities, maybe_fatal)
12108 (delete_tty): Likewise.
12109 * w16select.c (string): Likewise.
12110 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12111 * w32bdf.c (w32_free_bdf_font): Likewise.
12112 * w32fns.c (w32_unload_font): Likewise.
12113 * w32font.c (w32font_close): Likewise.
12114 * window.c (size_window): Likewise.
12115 * xselect.c (receive_incremental_selection): Likewise.
12116 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12117 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12118 * w32.c (stat): Likewise.
12119
12120 Remove useless if-before-free tests.
12121 * editfns.c (Fset_time_zone_rule): Likewise.
12122 * lread.c (nosuffix): Likewise.
12123 * ralloc.c (get_bloc): Likewise.
12124 * regex.c (reg_free): Likewise.
12125 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12126 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12127 * xsmfns.c (smc_save_yourself_CB): Likewise.
12128
121292008-06-02 Kenichi Handa <handa@m17n.org>
12130
12131 * font.c (font_find_for_lface): Handle float font size.
12132 (font_open_for_lface): Likewise.
12133
12134 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12135 comparing the properties.
12136
121372008-06-01 Jason Rumney <jasonr@gnu.org>
12138
12139 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12140 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12141 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12142 Don't add empty script list.
12143 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12144
121452008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12146
12147 * Makefile.in (dot, dotdot): Remove, update users.
12148 ".." has been used elsewhere in the file for a long time.
12149 (LIBXT_STATIC): Remove conditional based on unused variable.
12150
121512008-06-01 Miles Bader <miles@gnu.org>
12152
12153 * xfaces.c (Vface_remapping_alist): New variable.
12154 (syms_of_xfaces): Initialize it.
12155 (enum named_merge_point_kind): New type.
12156 (struct named_merge_point): Add `named_merge_point_kind' field.
12157 (push_named_merge_point): Make cycle detection respect different
12158 named-merge-point kinds.
12159 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12160 Remove face-name alias resolution.
12161 (lface_from_face_name): New definition using
12162 `lface_from_face_name_no_resolve'.
12163 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12164 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12165 (get_lface_attributes): New definition that layers face-remapping on
12166 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12167 (lookup_basic_face): New function.
12168 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12169 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12170 `get_lface_attributes'.
12171 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12172 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12173 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12174
12175 * xdisp.c (init_iterator): Pass base_face_id through
12176 `lookup_basic_face' when we actually use it as a face-id.
12177 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12178 DEFAULT_FACE_ID.
12179
12180 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12181 lookup the initial face-id.
12182
12183 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12184
121852008-06-01 Juanma Barranquero <lekktu@gmail.com>
12186
12187 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12188 (Fremove_text_properties): Fix typos in docstrings.
12189
121902008-05-31 Kenichi Handa <handa@m17n.org>
12191
12192 * font.c (font_list_entities): Fix the car part of data to be
12193 stored in the cache.
12194
12195 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12196
121972008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12198
12199 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12200 Add a `test' argument so another predicate than `equal' can be used.
12201 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12202 (map_char_table): Remove unused vars `c' and `i'.
12203 * lisp.h (Foptimize_char_table): Adjust declaration.
12204 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12205
122062008-05-30 Kenichi Handa <handa@m17n.org>
12207
12208 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12209 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12210 defined.
12211
122122008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12213
12214 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12215 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12216 frame-local settings for the same variable.
12217
122182008-05-30 Kenichi Handa <handa@m17n.org>
12219
12220 * fontset.c (Ffont_info): Move to font.c.
12221 (syms_of_fontset): Delete defsubr of Sfont_info.
12222
12223 * font.c (font_style_to_value, font_score): Delete casting of the
12224 args to xstcasecmp.
12225 (register_font_driver): Increment num_font_drivers only when
12226 registering the driver globally.
12227 (Ffont_info): Move from fontset.c. Handle a font object too.
12228 (syms_of_font): Defsubr Sfont_info.
12229
122302008-05-29 Kenichi Handa <handa@m17n.org>
12231
12232 * coding.h (enum define_coding_utf8_arg_index): New enum.
12233 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12234 coding_attr_utf_bom.
12235 (enum utf_bom_type): Rename from utf_16_bom_type.
12236 (struct utf_16_spec): Adjust for the above change.
12237 (struct coding_system): Add utf_8_bom in `spec' union.
12238
12239 * coding.c (CODING_UTF_8_BOM): New macro.
12240 (enum coding_category): Delete coding_category_utf_8, add
12241 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12242 coding_category_utf_8_sig.
12243 (CATEGORY_MASK_UTF_8): Delete it.
12244 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12245 (CATEGORY_MASK_UTF_8_SIG): New macros.
12246 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12247 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12248 CATEGORY_MASK_UTF_8_SIG.
12249 (CATEGORY_MASK_UTF_8): New macro.
12250 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12251 (detect_coding_utf_8): Check BOM.
12252 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12253 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12254 (encode_coding_utf_16): Likewise.
12255 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12256 (detect_coding, detect_coding_system): Handle utf-8-auto.
12257 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12258 (syms_of_coding): Fix setting up of Vcoding_category_table.
12259
122602008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12261
12262 * process.c (Faccept_process_output): If `millisec' is non-nil,
12263 `seconds' default to 0.
12264 (wait_reading_process_output): Also return non-nil if we read output
12265 from a non-running process.
12266
122672008-05-29 Jason Rumney <jasonr@gnu.org>
12268
12269 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12270 `raster' specified.
12271 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12272 in the uniscribe backend, but disallow any font that has no
12273 unicode subrange support.
12274
122752008-05-29 Juanma Barranquero <lekktu@gmail.com>
12276
12277 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12278 Fix typos in docstrings.
12279
122802008-05-29 Kenichi Handa <handa@m17n.org>
12281
12282 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12283 (Fx_family_fonts): Set frame correctly.
12284
122852008-05-28 Jason Rumney <jasonr@gnu.org>
12286
12287 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12288
122892008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12290
12291 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12292 calling build_annotations.
12293
122942008-05-28 Juanma Barranquero <lekktu@gmail.com>
12295
12296 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12297 (Fencode_coding_string):
12298 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12299 <latin-extra-code-table>: Fix typos in docstrings.
12300 (syms_of_coding) <coding-system-alist>: Doc fix.
12301 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12302
123032008-05-28 Kenichi Handa <handa@m17n.org>
12304
12305 * fontset.c (Ffont_info): Don't call font_close_object.
12306
12307 * font.c (font_parse_family_registry): Use Ffont_put to validate
12308 foundry and family.
12309 (font_delete_unmatched): Don't check spacing.
12310 (font_list_entities): Add spacing to the spec to list fonts.
12311
12312 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12313 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12314
12315 * coding.c (encode_coding_raw_text): Fix previous change.
12316 (encode_coding_object): When the dst_object is a buffer and is
12317 different from src_object, move gap to PT.
12318
123192008-05-27 Chong Yidong <cyd@stupidchicken.com>
12320
12321 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12322
123232008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12324
12325 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12326 all branches. Compute it differently.
12327
12328 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12329
123302008-05-27 Juanma Barranquero <lekktu@gmail.com>
12331
12332 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12333 into "else if () ... else ...".
12334
123352008-05-27 Jason Rumney <jasonr@gnu.org>
12336
12337 * w32font.c (w32font_open_internal): Determine if glyph indices
12338 are likely to work here.
12339
123402008-05-27 Chong Yidong <cyd@stupidchicken.com>
12341
12342 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12343 draw overlap glyphs with appropriate highlighting.
12344
123452008-05-27 Kenichi Handa <handa@m17n.org>
12346
12347 * xfont.c (xfont_open): Fix calculation of font->average_width.
12348
123492008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12350
12351 * casefiddle.c (casify_object): Try to guess better whether the
12352 argument is a byte or a char.
12353
123542008-05-26 Andreas Schwab <schwab@suse.de>
12355
12356 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12357 Always send multiples of format size.
12358
12359 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12360
123612008-05-26 Jason Rumney <jasonr@gnu.org>
12362
12363 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12364 (compute_metrics): Don't set failure if we just cleared the cache.
12365 (w32_weight_table): Remove unused variable.
12366 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12367 backwards compatibility.
12368
123692008-05-25 Kenichi Handa <handa@m17n.org>
12370
12371 * w32term.c (x_draw_glyph_string):
12372 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12373
12374 * xfaces.c: Delete unused function prototypes.
12375 (xstrlwr, font_frame): Delete them.
12376 (clear_face_cache): Delete unused variable.
12377
12378 * xftfont.c (xftfont_open): Delete unused variable.
12379 If underline_thickness is not 1, adjust underline_position.
12380
12381 * ftxfont.c (ftxfont_open): Delete unused variable.
12382
12383 * fontset.c (face_for_char): Optimize for the case of no charset
12384 property.
12385
12386 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12387 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12388 (otf_open, font_otf_capability, generate_otf_features)
12389 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12390 Comment out by surrounding "#if 0" and "#endif" for the moment.
12391 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12392 (syms_of_font): Codes for accessing above commented out.
12393
123942008-05-24 Eli Zaretskii <eliz@gnu.org>
12395
12396 * w32proc.c: Include dispextern.h.
12397
12398 * w32.c: Include dispextern.h.
12399
124002008-05-23 Juanma Barranquero <lekktu@gmail.com>
12401
12402 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12403 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12404 Fix typos in docstrings.
12405
124062008-05-23 Jason Rumney <jasonr@gnu.org>
12407
12408 * xsmfns.c: Remove includes that are already included by config.h.
12409
124102008-05-23 Kenichi Handa <handa@m17n.org>
12411
12412 * charset.c (Qemacs, charset_emacs): New variables.
12413 (char_charset): Fix for non-Unicode characters.
12414 (syms_of_charset): Define charset_emacs.
12415
12416 * w32term.c (x_draw_glyph_string): Be sure to update
12417 s->underline_thickness and s->underline_position. Be sure to draw
12418 underline within the current line area.
12419
12420 * xterm.c (x_draw_glyph_string): Be sure to update
12421 s->underline_thickness and s->underline_position. Be sure to draw
12422 underline within the current line area.
12423
12424 * fontset.c: Delete unused variables and add casting for char *
12425 throughout the file.
12426 (fontset_font): Try the fallback fonts of the current fontset
12427 before consulting the default fontset.
12428
12429 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12430
12431 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12432
124332008-05-22 Jason Rumney <jasonr@gnu.org>
12434
12435 * font.c: Don't include strings.h.
12436
12437 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12438
12439 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12440 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12441 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12442 to call xstrcasecmp.
12443
12444 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12445
12446 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12447
12448 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12449
12450 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12451
124522008-05-22 Kenichi Handa <handa@m17n.org>
12453
12454 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12455
12456 * font.c (font_prop_validate_style): Adjust for the format
12457 change of font_style_table.
12458
12459 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12460 two args.
12461
12462 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12463 two args.
12464
124652008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12466
12467 * minibuf.c (keys_of_minibuf): Delete.
12468 * lisp.h (keys_of_minibuf): Delete.
12469 * emacs.c (main): Don't call keys_of_minibuf.
12470
124712008-05-22 Kenichi Handa <handa@m17n.org>
12472
12473 * ftfont.c (ftfont_resolve_generic_family): Rename from
12474 ftfont_list_generic_family. Return a single family for each
12475 generic family.
12476 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12477 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12478 Call font_add_log.
12479 (ftfont_match): Call font_add_log.
12480
12481 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12482 (FONT_DEBUG): Define it.
12483 (font_add_log): Extern it.
12484 (font_assert): Rename from xassert.
12485
12486 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12487 (xfont_list_family): Call font_add_log.
12488 (xfont_match): Likewise.
12489 (memq_no_quit): Delete.
12490
12491 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12492 call of Ffont_xlfd_name.
12493
12494 * xfaces.c (struct table_entry, slant_table, weight_table)
12495 (swidth_table): Move to font.c.
12496
12497 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12498 xassert are changed to font_assert. Delete many unused variables.
12499 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12500 New variables.
12501 (struct table_entry): Move from xfaces.c and modified.
12502 (weight_table, slant_table, width_table): Move from xfaces.c and
12503 contents adjusted for the change of struct table_entry.
12504 (font_style_to_value, font_style_symbolic): Adjust for the
12505 format change of font_style_table.
12506 (font_parse_family_registry): Don't overwrite existing foundry and
12507 family of font_spec.
12508 (font_score): Fix calculation of diff for sizes.
12509 (font_sort_entites): Call font_add_log.
12510 (font_delete_unmatched): Return a newly created list.
12511 (font_list_entities): Fix previous change. Call font_add_log.
12512 (font_matching_entity, font_open_entity, font_close_entity):
12513 Call font_add_log.
12514 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12515 (Finternal_set_font_style_table): Delete.
12516 (BUILD_STYLE_TABLE): New macro.
12517 (build_style_table): New function.
12518 (Vfont_log, font_log_env_checked): New variables.
12519 (font_add_log): New function.
12520 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12521 Declare Lisp variables "font-weight-table", "font-slant-table",
12522 "font-width-table", and "font-log". Initialize font_style_table.
12523
125242008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12525
12526 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12527
125282008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12529 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12530
12531 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12532 (Vframe_alpha_lower_limit): New variable.
12533 (x_set_alpha): New function.
12534
12535 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12536
12537 * xfns.c (x-create-frame, Qalpha):
12538 Initialize the frame parameter `alpha'.
12539 * xterm.c (OPAQUE, OPACITY): New.
12540 (x_set_frame_alpha): New function.
12541 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12542
12543 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12544 * w32fns.c (w32_frame_parm_handlers): Likewise.
12545
125462008-05-20 Jason Rumney <jasonr@gnu.org>
12547
12548 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12549 truetype fonts to opentype list.
12550
125512008-05-20 Juanma Barranquero <lekktu@gmail.com>
12552
12553 * fontset.c (Ffontset_info): Doc fix.
12554 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12555 <ignore-relative-composition>: Fix typos in docstrings.
12556
12557 * font.c (syms-of-font) <font-encoding-alist>:
12558 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12559 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12560 (Ffont_otf_alternates): Doc fixes.
12561
125622008-05-20 Kenichi Handa <handa@m17n.org>
12563
12564 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12565 font.h through out the file.
12566 (FONT_DRIVERS): Rename from FONTOBJ.
12567 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12568 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12569
12570 * emacs.c (main): Call syms_of_font unconditionally.
12571
12572 * font.h (find_font_encoding): Extern it.
12573
12574 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12575 fontset.c.
194d44e7 12576 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12577 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12578 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12579 only when HAVE_WINDOW_SYSTEM is defined.
12580 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12581 when HAVE_WINDOW_SYSTEM is defined.
12582
12583 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12584 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12585
12586 * xfaces.c: Include font.h unconditionally.
12587 (merge_face_ref, merge_face_vectors)
12588 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12589
125902008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12591
12592 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12593 indirect_variable.
12594 * eval.c (lisp_indirect_variable): New fun.
12595 (Fuser_variable_p): Use it.
12596
125972008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12598
12599 * lisp.h (indirect_variable):
12600 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12601 Use Lisp_Symbol pointers rather than Lisp_Object.
12602 Adjust callers.
12603 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12604 To this end, change calling-convention.
12605
12606 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12607 if some non-hidden buffers are selected by string&pred.
12608
126092008-05-19 Chong Yidong <cyd@stupidchicken.com>
12610
12611 * process.c (wait_reading_process_output): Always check status
12612 when in batch mode.
12613
126142008-05-19 Kenichi Handa <handa@m17n.org>
12615
12616 * font.c (font_list_entities): Fix handling of cache.
12617 (font_matching_entity): Likewise.
12618
12619 * ftfont.c (cs_iso8859_1): Delete.
12620 (ft_face_cache): New variable.
12621 (struct ftfont_info): New member fc_charset_idx.
12622 (ftfont_build_basic_charsets): Delete.
12623 (fc_charset_table): New variable.
12624 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12625 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12626 Callers changed.
12627 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12628 (ftfont_spec_pattern): New argument fc_charset_idx.
12629 Check registry more rigidly. Change callers.
12630 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12631 change of :font-entity property of the font.
12632
12633 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12634 property of the font.
12635
126362008-05-18 Juanma Barranquero <lekktu@gmail.com>
12637
12638 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12639 (Funencodable_char_position, Fcheck_coding_systems_region)
12640 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12641 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12642 (Ffind_operation_coding_system, Fset_coding_system_priority)
12643 (Fcoding_system_eol_type): Doc fixes.
12644
126452008-05-17 Glenn Morris <rgm@gnu.org>
12646
12647 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12648
126492008-05-16 Eli Zaretskii <eliz@gnu.org>
12650
12651 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12652 and st_gid.
12653
12654 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12655 HAVE_WINDOW_SYSTEM is not defined.
12656
12657 * xfaces.c (merge_face_ref, merge_face_vectors)
12658 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12659 HAVE_WINDOW_SYSTEM is defined.
12660 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12661
126622008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12663
12664 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12665
126662008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12667
12668 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12669
126702008-05-15 Kenichi Handa <handa@m17n.org>
12671
12672 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12673 preference.
12674
126752008-05-15 Glenn Morris <rgm@gnu.org>
12676
12677 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12678
126792008-05-15 Chong Yidong <cyd@stupidchicken.com>
12680
12681 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12682 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12683
12684 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12685
126862008-05-15 Kenichi Handa <handa@m17n.org>
12687
12688 * ftfont.c (ftfont_list): Downcase family name to check generic
12689 families.
12690
12691 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12692 font-spec for QCfont value.
12693
12694 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12695 buffer. Check the return value of it.
12696
126972008-05-14 Jason Rumney <jasonr@gnu.org>
12698
12699 * w32term.c (w32_get_glyph_overhangs): Remove.
12700 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12701
127022008-05-14 Kenichi Handa <handa@m17n.org>
12703
12704 * font.c (font_prop_validate): Make nil a valid value.
12705 (font_clear_cache): Check if the cached vector of entities is nil
12706 or not.
12707
127082008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12709
12710 * emacs.c (main_thread): Conditionalize on
12711 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12712 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12713
12714 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12715 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12716 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12717
127182008-05-14 Kenichi Handa <handa@m17n.org>
12719
12720 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12721 has no corresponding coding system.
12722
127232008-05-14 Jason Rumney <jasonr@gnu.org>
12724
12725 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12726
12727 * w32font.h (w32font_open_internal): Update declaration.
12728
12729 * w32font.c (w32font_open_internal): Change last argument from
12730 w32font_info struct to font object. Fill in font object from
12731 font_entity. Get Outline metrics if possible. Use them to
12732 calculate underline position and thickness. Use xlfd name as name
12733 property. Don't set codepage.
12734 (w32font_open): Pass font_object to w32font_open_internal. Don't
12735 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12736 (w32font_draw): Use s->font.
12737 (clear_cached_metrics): Don't clear non-existent blocks.
12738
12739 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12740 font was not found.
12741 (x_draw_glyph_string): Use underline position and thickness from font.
12742
12743 * w32uniscribe.c (uniscribe_open): Pass font_object to
12744 w32font_open_internal.
12745
127462008-05-14 Kenichi Handa <handa@m17n.org>
12747
12748 These changes are to delete all legacy font-handling codes, and
12749 make Emacs use only font-backends.
12750
12751 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
12752 (frame.o, image.o, print.o): Depend on $(FONTSRC).
12753
12754 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
12755
12756 * charset.h (Vcharset_non_preferred_head)
12757 (Vcurrent_iso639_language): Extern them.
12758
12759 * charset.c (Vcharset_non_preferred_head): New variable.
12760 (Vcurrent_iso639_language): New variable.
12761 (syms_of_charset): Declare it as a Lisp variable.
12762 (char_charset): Don't check non preferred charsets. As a last
12763 resort, return charset_unicode.
12764 (Fset_charset_priority): Update Vcharset_non_preferred_head.
12765
12766 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
12767 conditionals. Don't check enable_font_backend. Delete all codes
12768 used only when USE_FONT_BACKEND is not defined.
12769
12770 * dispextern.h (struct glyph_string): Change type of `font' to
12771 `struct font *'.
12772 (struct glyph_string): New member underline_position and
12773 underline_thickness.
12774 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
12775 (struct face): Change type of `font' to `struct font *'. Remove
12776 members `font_name', `font_info_id'.
12777 (per_char_metric, encode_char): Delete externs.
12778 (calc_pixel_width_or_height): Adjust the prototype.
12779
12780 * emacs.c (enable_font_backend): Delete extern.
12781 (main): Don't set enable_font_backend. Don't check the command
12782 line argument "-disable-font-backend".
12783
12784 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
12785 (enum font_property_index): New members FONT_DPI_INDEX,
12786 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
12787 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
12788 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
12789 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
12790 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
12791 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
12792 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
12793 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
12794 (struct font_spec, struct font_entity): New structs.
12795 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
12796 (struct font): Many members from old "struct font_info" moved to
12797 here. Members font and entity deleted.
12798 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
12799 the new font-related objects.
12800 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
12801 (CHECK_FONT_GET_OBJECT): Likewise.
12802 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
12803 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
12804 (struct font_driver): New members case_sensitive anc check. Type
12805 of the member list and open changed.
12806 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
12807 (font_symbolic_width, font_find_object, font_get_spec)
12808 (font_set_lface_from_name): Delete extern.
12809 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
12810
12811 * font.c: Include <strings.h>.
12812 (enable_font_backend): Delete it.
12813 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
12814 (CHECK_VALIDATE_FONT_SPEC): Delete it.
12815 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
12816 (null_string): Delete it.
12817 (null_vector): Make it static.
12818 (font_family_alist): Delete it.
12819 (Qnormal): Extern it.
12820 (QCextra, QClanguage): Delete it.
12821 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
12822 (font_make_spec, font_make_entity, font_make_object)
12823 (font_intern_prop): Renamed from intern_downcase. Don't downcase
12824 the string. Callers changed.
12825 (font_pixel_size): Adjusted for the format change of font-related
12826 objects.
12827 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
12828 (font_style_to_value, font_style_symbolic): New function.
12829 (build_font_family_alist): Delete it.
12830 (font_registry_charsets): Use Fassoc_string instead of
12831 assq_no_quit.
12832 (font_prop_validate_symbol): Don't return null_string.
12833 (font_prop_validate_style): Adjusted for the change of
12834 style-related values in a font vector.
12835 (font_property_table): Delete entries for QClanguage and
12836 QCantialias, add entries for QCavgwidth.
12837 (get_font_prop_index): Delete the 2nd argument FROM.
12838 (font_prop_validate): Arguments changed.
12839 (font_put_extra): Adjusted for the change of font-related objects.
12840 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
12841 (font_parse_fcname, font_unparse_fcname)
12842 (font_prepare_composition): Likewise.
12843 (font_parse_family_registry): Renamed from font_merge_old_spec.
12844 (otf_open): Delete the 1st arg entity.
12845 (font_otf_capability): Adjusted for the above change.
12846 (font_score): New arg alternate_families. Adjusted for the change
12847 of font-related objects.
12848 (font_sort_entites): New arg best_only.
12849 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
12850 Delete them.
12851 (font_match_p): Check alternate families.
12852 (font_find_object): Delete it.
12853 (font_check_object): New function.
12854 (font_clear_cache): Adjusted for the change of font-related objects.
12855 (font_delete_unmatched): New arg.
12856 (font_list_entities): Call font_driver->list with a spec that
12857 doesn't specify style-related properties.
12858 (font_matching_entity): Arguments changed. Caller changed.
12859 (font_open_entity): Adjusted for the change of font-related objects.
12860 (font_close_object, font_has_char, font_encode_char)
12861 (font_get_name, font_get_spec): Likewise.
12862 (font_spec_from_name, font_clear_prop, font_update_lface):
12863 New functions.
12864 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
12865 (font_prepare_for_face, font_done_for_face, font_open_by_name)
12866 (font_at): Adjusted for the change of font-related objects.
12867 (font_range): New function.
12868 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
12869 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
12870 (Fcopy_font_spec, Fmerge_font_spec): New function.
12871 (Ffont_family_list): Renamed from list-families.
12872 (Finternal_set_font_style_table): Arguments changed.
12873 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
12874 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
12875 change of font-related objects.
12876 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
12877
12878 * fontset.h (struct font_info): Delete it. Most members go to
12879 struct font.
12880 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
12881 (enum FONT_SPEC_INDEX): Delete it.
12882 (font_info, list_fonts_func, load_font_func, query_font_func)
12883 (set_frame_fontset_func, find_ccl_program_func)
12884 (get_font_repertory_func, new_fontset_from_font_name): Delete
12885 externs.
12886 (fontset_from_font_name): Extern it.
12887 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
12888 (FONT_INFO_FROM_FACE): Deleted.
12889 (face_for_font): Adjust prototype.
12890
12891 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
12892 conditionals. Don't check enable_font_backend. Delete all codes
12893 used only when USE_FONT_BACKEND is not defined.
12894 (get_font_info_func, list_font_func, load_font_func)
12895 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
12896 (get_font_repertory_func): Delete them.
12897 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
12898 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
12899 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
12900 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
12901 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
12902 (fontset_compare_rfontdef): New function.
12903 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
12904 rfont-defs by qsort. Adjusted for the change of font-group vector.
12905 (load_font_get_repertory): Deleted.
12906 (fontset_find_font): Use new macros to ref/set elements of
12907 font-def and rfont-def.
12908 (fontset_font): Fix the timing of remembering that no font for C.
12909 (free_face_fontset): Do nothing if the face has no fontset.
12910 (face_suitable_for_char_p): Use new macros to ref/set elements of
12911 rfont-def.
12912 (face_for_char): Likewise. Call face_for_char with font_object.
12913 (fs_load_font): Delete. Delete #pragma surrounding it.
12914 (fs_query_fontset): Use strcasecmp instead of strcmp.
12915 (generate_ascii_font_name): Adjusted for the format change of
12916 font-spec.
12917 (Fset_fontset_font): Likewise. Use new macros to set elements of
12918 font-def.
12919 (Fnew_fontset): Use font_unparse_xlfd to generate
12920 FONTSET_ASCII (fontset).
12921 (new_fontset_from_font_name): Deleted.
12922 (fontset_from_font): Renamed from new_fontset_from_font. Check if
12923 a fontset is already created for the font. FIx updating of
12924 Vfontset_alias_alist.
12925 (fontset_ascii_font): Deleted.
12926 (Ffont_info): Adjusted for the format change of font-spec.
12927 (Finternal_char_font): Likewise.
12928 (Ffontset_info): Likewise.
12929 (syms_of_fontset): Don't check load_font_func.
12930
12931 * fns.c (internal_equal): Handle PREV_FONT.
12932
12933 * frame.h: Delete USE_FONT_BACKEND conditional.
12934
12935 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
12936 conditionals. Don't check enable_font_backend. Delete all codes
12937 used only when USE_FONT_BACKEND is not defined.
12938 (x_set_font): Call x_new_font, not x_new_fontset2.
12939 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
12940 already set for the frame.
12941
12942 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
12943 a font-entity by font_make_entity. Use font_intern_prop instead
12944 of intern_downcase. Use FONT_SET_STYLE to set a style-related
12945 font property. If a font is scalable, set avgwidth property to 0.
12946 Set font-entity property by font_put_extra.
12947 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
12948 (ffont_driver): Adjusted for the change of struct font_driver.
12949 (ftfont_spec_pattern): New function.
12950 (ftfont_list): Return a list, not vector.
12951 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
12952 (ftfont_list_family): Don't downcase names.
12953 (ftfont_free_entity): Deleted.
12954 (ftfont_open): Return a font-object. Adjusted for the change of
12955 struct font. Get underline_thickness and underline_position from
12956 font property. Don't update dpyinfo->smallest_font_height and
12957 dpyinfo->smallest_char_width.
12958 (ftfont_close): Don't free `struct font'.
12959 (ftfont_has_char): Adjusted for the format change of font-entity.
12960 (ftfont_encode_char, ftfont_text_extents): Likewise.
12961
12962 * ftxfont.c (ftxfont_list): Return a list, not vector.
12963 (ftxfont_open): Return a font-object. Adjusted for the change of
12964 struct font. Get underline_thickness and underline_position from
12965 font property. Don't update dpyinfo->smallest_font_height and
12966 dpyinfo->smallest_char_width.
12967 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
12968 (ftxfont_draw): Adjusted for the change of struct font.
12969
12970 * image.c (image_ascent): Don't include "charset.h". Include
12971 "character.h" and "font.h".
12972
12973 * lisp.h (enum pvec_type): New member PREV_FONT.
12974 (Fassoc_string): EXFUN it.
12975
12976 * print.c: Include font.h.
12977 (print_object): Handle font-related objects.
12978
12979 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
12980 conditionals. Don't check enable_font_backend. Delete all codes
12981 used only when USE_FONT_BACKEND is not defined.
12982 (handle_auto_composed_prop): Do nothing if it->f is not on a
12983 window system. Check how many following characters can be
12984 displayed by the same font.
12985 (calc_pixel_width_or_height): Type of the 4th arg is changed to
12986 'struct font *'.
12987 (get_char_face_and_encoding): Assign the whole encoding task to
12988 the `encode-char' method of a font driver.
12989 (fill_composite_glyph_string): Adjusted for the change of `struct
12990 face' and `struct glyph_string'.
12991 (fill_glyph_string): Likewise.
12992 (get_per_char_metric): Arguments changed.
12993 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12994 and `struct glyph_string'.
12995 (produce_stretch_glyph, calc_line_height_property)
12996 (x_produce_glyphs): Likewise.
12997
12998 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12999 conditionals. Don't check enable_font_backend. Delete all codes
13000 used only when USE_FONT_BACKEND is not defined. Use
13001 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13002 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13003 (Qp): Extern them.
13004 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13005 Deleted.
13006 (struct font_name): Deleted.
13007 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13008 (compare_fonts_by_sort_order): New function.
13009 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13010 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13011 Deleted.
13012 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13013 compare_fonts_by_sort_order.
13014 (Fx_font_family_list): Call Ffont_family_list.
13015 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13016 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13017 (face_symbolic_slant, face_symbolic_swidth)
13018 (split_font_name_into_vector, build_font_name_from_vector)
13019 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13020 (font_rescale_ratio, split_font_name, build_font_name)
13021 (free_font_names, sort_fonts, x_face_list_fonts)
13022 (face_font_available_p, sorted_font_list, cmp_font_names)
13023 (font_list_1, concat_font_list, font_list, remove_duplicates):
13024 Deleted.
13025 (Fx_list_fonts): Use Ffont_list.
13026 (LFACE_AVGWIDTH): Deleted.
13027 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13028 by FONTP.
13029 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13030 (set_lface_from_font_name): Delete it.
13031 (set_lface_from_font): Renamed from
13032 set_lface_from_font_and_fontset. Caller changed. Don't set
13033 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13034 for face.
13035 (merge_face_vectors): Copy font-spec if necessary.
13036 Clear properties of the font-spec if necessary.
13037 (merge_face_ref): Clear properties of the font-spec if necessary.
13038 (Finternal_set_lisp_face_attribute): Likewise.
13039 (set_font_frame_param): Use font_load_for_lface to load a
13040 font-object, and call Fmodify_frame_parameters with it.
13041 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13042 font name by Ffont_xlfd_name.
13043 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13044 QCslant, and QCwidth.
13045 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13046 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13047 Compare fonts by EQ.
13048 (lookup_non_ascii_face): Deleted.
13049 (face_for_font): The 2nd argument changed.
13050 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13051 Check atomic font properties by case insensitive.
13052 (realize_non_ascii_face): Set face->overstrike correctly.
13053 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13054 (dump_realized_face): Get font name from
13055 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13056
13057 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13058 conditionals. Don't check enable_font_backend. Delete all codes
13059 used only when USE_FONT_BACKEND is not defined.
13060 (xic_create_xfontset): Original code deleted and renamed from
13061 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13062 (x_make_gc): Don't set GCFont in GCs.
13063 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13064 opened by "fixed".
13065 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13066 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13067 get_font_repertory_func.
13068
13069 * xfont.c: Include <stdlib.h> and "ccl.h".
13070 (struct xfont_info): New structure.
13071 (xfont_query_font): Deleted.
13072 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13073 moved from xterm.c.
13074 (xfont_driver): Adjusted for the change of struct font_driver.
13075 (compare_font_names): New function.
13076 (xfont_list_pattern): Sort font names case insensitively. Make
13077 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13078 (xfont_list): Return a list, not vector.
13079 (xfont_match): If the font doesn't have QCname property, generate
13080 a name from the other font properties.
13081 (xfont_open): Return a font-object. Adjusted for the change of
13082 struct font. Get underline_thickness and underline_position from
13083 font property. Don't update dpyinfo->smallest_font_height and
13084 dpyinfo->smallest_char_width.
13085 (xfont_close): Don't free struct font.
13086 (xfont_prepare_face): Adjusted for the change of struct font.
13087 (xfont_done_face): Deleted.
13088 (xfont_has_char): Adjusted for the change of struct font.
13089 (xfont_encode_char, xfont_draw): Likewise.
13090 (xfont_check): New function.
13091
13092 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13093 callback function.
13094 (xftfont_match): Adjusted for the format change of font-entity.
13095 (xftfont_open): Adjusted for the format change of font-entity and
13096 font-object. Adjusted for the change of struct font. Return a
13097 font-object. Don't update dpyinfo->smallest_font_height and
13098 dpyinfo->smallest_char_width.
13099 (xftfont_close): Block input while calling XftFontClose.
13100 (xftfont_prepare_face): Don't block input while calling
13101 xftfont_get_colors. Adjusted for the change of struct font.
13102 (xftfont_shape): Return value of error case fixed.
13103
13104 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13105
13106 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13107 conditionals.
13108 (FONT_WIDTH): Return (f)->max_width.
13109 (struct x_display_info): Delete member `font'.
13110 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13111 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13112 (struct x_output): Change type of `font' to `struct font *'.
13113
13114 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13115 conditionals. Don't check enable_font_backend. Delete all codes
13116 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13117 (x_per_char_metric, x_encode_char): Deleted.
13118 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13119 (x_compute_glyph_string_overhangs): Adjusted for the change of
13120 `struct face'.
13121 (x_draw_glyph_string_foreground)
13122 (x_draw_composite_glyph_string_foreground): Likewise.
13123 (x_draw_glyph_string): Likewise. Use font->underline_position and
13124 font->underline_thickness.
13125 (x_new_font): Renamed from x_new_fontset2.
13126 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13127 (x_check_font): Call `check' method of a font driver.
13128 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13129 (x_query_font, x_get_font_repertory): Deleted.
13130 (x_find_ccl_program): Renamed and moved to xfont.c.
13131 (x_redisplay_interface): Adjusted for the change of `struct
13132 redisplay_interface'.
13133
13134 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13135 conditionals. Don't check enable_font_backend. Delete all codes
13136 used only when USE_FONT_BACKEND is not defined. Surround non-used
13137 code by "#ifdef OLD_FONT" and "endif".
13138 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13139
13140 * w32font.h (struct w32font_info): New member.
13141 (FONT_COMPAT): New macro.
13142 (w32font_open_internal): Prototype adjusted.
13143
13144 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13145 OLD_FONT" and "endif".
13146
13147 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13148 conditionals. Don't check enable_font_backend. Delete all codes
13149 used only when USE_FONT_BACKEND is not defined.
13150 (w32font_open): Return a font-object. Make a font-object by
13151 font_make_object. Adjusted for the change of struct w32font_info.
13152 (w32font_close): Don't free struct font. Adjusted for the change
13153 of struct w32font_info.
13154 (w32font_encode_char, w32font_text_extents, w32font_draw):
13155 Adjusted for the change of struct w32font_info.
13156 (w32font_draw): Likewise.
13157 (w32font_list_internal): Return a list, not vector.
13158 (w32font_open_internal): Change the 4th arg to font-object.
13159 Adjusted for the change of struct w32font_info and font-object format.
13160 (add_font_name_to_list): Don't downcase names.
13161 (w32_enumfont_pattern_entity): Make a font-entity by
13162 font_make_entity. Adjusted for the format change of font-entity.
13163 Use FONT_SET_STYLE to set a style-related font property. If a
13164 font is scalable, set avgwidth property to 0. Set font-entity
13165 property by font_put_extra.
13166 (font_matches_spec): Adjusted for the format change of font-entity.
13167 (w32_weight_table, w32_decode_weight): New variables.
13168 (w32_encode_weight): New function.
13169 (fill_in_logfont): Adjusted for the format change of font-spec.
13170 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13171 weight value.
13172 (w32font_driver): Adjusted for the change of struct font_driver.
13173
13174 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13175 conditionals. Don't check enable_font_backend. Surround non-used
13176 code by "#ifdef OLD_FONT" and "endif".
13177 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13178 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13179
13180 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13181 conditionals. Don't check enable_font_backend. Delete all codes
13182 used only when USE_FONT_BACKEND is not defined. Surround non-used
13183 code by "#ifdef OLD_FONT" and "endif".
13184
13185 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13186 (uniscribe_open): Return value changed to font-object.
13187 Adjusted for the format change of font-object.
13188 (uniscribe_otf_capability): Adjusted for the change of struct font.
13189 (add_opentype_font_name_to_list): Don't downcase names.
13190 (uniscribe_font_driver): Adjusted for the change of struct
13191 font_driver.
13192
131932008-05-13 Chong Yidong <cyd@stupidchicken.com>
13194
13195 * dispnew.c (update_frame_1): Check if tty output is still valid
13196 before flushing it.
13197
131982008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13199
13200 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13201 to Gtk+ menus.
13202
132032008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13204
13205 * dired.c (file_name_completion): Tweak the code so as to always do it
13206 in a single pass. Tighten the scope of some variables.
13207
13208 * dired.c (Qdefault_directory): New var.
13209 (file_name_completion): Use it instead of Fexpand_file_name.
13210 (syms_of_dired): Initialize it.
13211
132122008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13213
13214 * fileio.c (double_dollars): Remove dead code.
13215
132162008-05-10 Eli Zaretskii <eliz@gnu.org>
13217
13218 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13219 Mention w32-get-true-file-attributes in doc string.
13220
13221 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13222
132232008-05-09 Glenn Morris <rgm@gnu.org>
13224
13225 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13226 2008-04-23.
13227
132282008-05-09 Eli Zaretskii <eliz@gnu.org>
13229
13230 Support for reporting owner and group of each file on MS-Windows:
13231 * dired.c (stat_uname, stat_gname): New functions, with special
13232 implementation for w32.
13233 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13234
13235 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13236 (dflt_group_name): New static variable.
13237 (dflt_group): Rename from the_group.
13238 (init_user_info): Init dflt_group fields. Get user's group name
13239 from LookupAccountSid.
13240 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13241 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13242 New initialization states.
13243 (globals_of_w32): Initialize them to zero. Initialize the default
13244 group name to "None".
13245 (GetFileSecurity_Name): New global var, the name of the function
13246 to call for GetFileSecurity.
13247 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13248 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13249 (get_file_security, get_security_descriptor_owner)
13250 (get_security_descriptor_group, is_valid_sid)
13251 (get_file_security_desc, get_rid, get_name_and_id)
13252 (get_file_owner_and_group): New functions.
13253 (stat): Use get_file_security_desc and get_file_owner_and_group to
13254 report the owner and primary group of each file. Don't ignore the
13255 high 32 bits of file's size, now that st_size is 64-bit wide.
13256 Fix test when to get true file attributes.
13257 (init_user_info): Use get_rid instead of equivalent inline code.
13258 (fstat): Don't ignore the high 32 bits of file's size.
13259
132602008-05-09 Chong Yidong <cyd@stupidchicken.com>
13261
13262 * image.c (png_load): Use correct bit-depth for setting background
13263 color.
13264
132652008-05-08 Eli Zaretskii <eliz@gnu.org>
13266
13267 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13268 epa-hook.elc.
13269
132702008-05-08 Juanma Barranquero <lekktu@gmail.com>
13271
13272 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13273
132742008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13275
13276 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13277 because the original parameters are in pure storage now.
13278 (mac_window): Remove unused params. Update callers.
13279
132802008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13281
13282 * lread.c (substitute_object_recurse): Use lower-level primitives.
13283 Don't signal errors when traversing sub-char-tables.
13284 Don't loop over all the possible characters when traversing char-tables.
13285
13286 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13287 just like we do in print.c.
13288
132892008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13290
13291 * minibuf.c (Ftry_completion): Remove code left over from when we used
13292 scmp instead of Fcompare_strings.
13293
132942008-05-04 Juanma Barranquero <lekktu@gmail.com>
13295
13296 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13297
132982008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13299
13300 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13301 Create bitmap context in native byte order.
13302
13303 * macterm.c (XDrawLine)
13304 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13305 context in native byte order.
13306
133072008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13308
13309 * config.in: Regenerate.
13310
13311 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13312 New definitions for Image I/O support.
13313 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13314 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13315 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13316 (mac_data_provider_release_data, image_load_image_io)
13317 [USE_MAC_IMAGE_IO]: New functions.
13318 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13319 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13320 (init_image_func_pointer) [MAC_OSX]: Remove function.
13321 (image_load_quartz2d) [MAC_OSX]: Check availability of
13322 CGImageCreateWithPNGDataProvider at compile time.
13323 Use lowercase `false' for boolean constant.
13324 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13325 Use image_load_image_io.
13326 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13327 Don't check MyCGImageCreateWithPNGDataProvider.
13328 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13329 Don't call init_image_func_pointer.
13330
13331 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13332
13333 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13334 Make variable non-static.
13335 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13336 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13337
13338 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13339 (RED_FROM_ULONG): Mask off higher bits.
13340 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13341
13342 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13343 Include AvailabilityMacros.h.
13344 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13345 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13346
133472008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13348
13349 * chartab.c (Fset_char_table_range): If range is t, really set all
13350 chars to that value.
13351
133522008-05-03 Eli Zaretskii <eliz@gnu.org>
13353
13354 * dired.c (Ffile_attributes): Don't allow the device number become
13355 negative.
13356
133572008-05-02 Daiki Ueno <ueno@unixuser.org>
13358
13359 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13360
133612008-05-02 Juri Linkov <juri@jurta.org>
13362
13363 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13364 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13365 DEFAULT argument as a list of default values in docstrings.
13366
133672008-05-01 Chong Yidong <cyd@stupidchicken.com>
13368
13369 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13370
133712008-05-01 Martin Rudalics <rudalics@gmx.at>
13372
13373 * dispnew.c (change_frame_size_1): Preserve small windows when
13374 shrinking frames by calling set_window_height|width with third
13375 arg 2.
13376
13377 * window.h (struct window): Replace field too_small_ok by field
13378 resize_proportionally.
13379
13380 * window.c (make_window): Initialize resize_proportionally.
13381 (enlarge_window): Temporarily set resize_proportionally to make
13382 sure that shrink_windows does scale the window proportionally.
13383 (shrink_windows): When window has resize_proportionally set try
13384 to shrink it proportionally by stealing from other windows.
13385 (struct saved_window, Fset_window_configuration)
13386 (compare_window_configurations): Handle resize_proportionally.
13387 (WINDOW_TOTAL_SIZE): New macro.
13388 (window_min_size, shrink_windows, size_window): Use it.
13389 (check_min_window_sizes): Remove. Invalid values of
13390 window-min-height|width are handled by window_min_size_2 now.
13391 (size_window, Fsplit_window, enlarge_window)
13392 (adjust_window_trailing_edge, grow_mini_window): Don't call
13393 check_min_window_sizes.
13394 (window_min_size_2, window_min_size_1, window_min_size):
13395 New argument safe_p for retrieving "safe" minimum sizes.
13396 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13397 (adjust_window_trailing_edge, grow_mini_window):
13398 Adjust arguments of window_min_size... functions.
13399 (shrink_windows): Argument min_size removed. New argument
13400 safe_p allows shrinking windows to their safe minimum sizes.
13401 Calculate minimum size and decide whether a window shall be
13402 deleted for each window individually.
13403 (size_window): When nodelete_p equals 2, tell shrink_windows to
13404 delete windows only if their new minimum size is no more safe.
13405 (shrink_window_lowest_first): Call window_min_size_1 to make
13406 sure to preserve modeline of bottom-most window when resizing
13407 the minibuffer.
13408 (Fset_window_configuration, Fcurrent_window_configuration)
13409 (compare_window_configurations): Do not handle
13410 window-min-height|width any more.
13411 (syms_of_window): Clarify window-min-height|width doc-strings.
13412
134132008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13414
13415 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13416 some more. Copy some of the code from Ftry_completions.
13417 Remove special case code that dates back to initial revision when the
13418 slash was only added when necessary and that can't trigger nowadays.
13419
134202008-04-27 Kenichi Handa <handa@m17n.org>
13421
13422 * font.c (font_prop_validate): Signal `error' instead of `font'.
13423
134242008-04-29 Jason Rumney <jasonr@gnu.org>
13425
13426 * w32fns.c (Fw32_battery_status): New defun.
13427 (syms_of_w32fns): Defsubr it.
13428
134292008-04-28 Andreas Schwab <schwab@suse.de>
13430
13431 * dired.c (file_name_completion): Fix another mixing of encoded
13432 and decoded names.
13433
134342008-04-28 Juanma Barranquero <lekktu@gmail.com>
13435
13436 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13437
134382008-04-27 Juanma Barranquero <lekktu@gmail.com>
13439
13440 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13441
134422008-04-27 Andreas Schwab <schwab@suse.de>
13443
13444 * dired.c (file_name_completion): Fix inappropriate mixing of
13445 encoded and decoded names.
13446
13447 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13448
13449 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13450
134512008-04-26 Eli Zaretskii <eliz@gnu.org>
13452
13453 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13454 2008-03-31, it's not needed anymore with `struct stat' definition
13455 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13456 for the same reasons.
13457
134582008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13459
13460 * m/sparc.h: Additional redefinitions for GNU/Linux.
13461
134622008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13463
13464 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13465 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13466 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13467 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13468 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13469 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13470 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13471 Likewise.
13472
13473 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13474 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13475 (mac_ax_number_of_characters): Add externs.
13476 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13477 [USE_MAC_TSM]: Likewise.
13478 (mac_handle_text_input_event) [MAC_OSX]:
13479 Handle kEventTextInputOffsetToPos for no active input area case.
13480 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13481 (mac_handle_document_access_event)
13482 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13483 (install_application_handler) [MAC_OSX]: Register handlers for
13484 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13485 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13486 Register mac_handle_document_access_event.
13487
13488 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13489 Make functions non-static.
13490
134912008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13492
13493 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13494 (read_file_name_completion_ignore_case, insert_default_directory)
13495 (Qdefault_directory): Move to minibuffer.el.
13496 (Fread_file_name): Call the new `read-file-name' instead.
13497
134982008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13499
13500 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13501 Make function non-static.
13502 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13503 Remove function.
13504 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13505 Move to mactoolbox.c.
13506 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13507
13508 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13509 (mac_rect_make): New macro.
13510
13511 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13512 instead of float.
13513 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13514 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13515 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13516 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13517 CGRectMake.
13518 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13519 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13520 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13521 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13522 instead of WindowRef in argument type.
13523 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13524 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13525 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13526 instead of DISPLAY. All uses changed.
13527 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13528 (x_calc_absolute_position): Simplify so as not to use
13529 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13530
13531 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13532 instead of WindowRef in argument type.
13533 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13534 [TARGET_API_MAC_CARBON]: Remove externs.
13535 (create_apple_event, mac_event_parameters_to_lisp)
13536 [TARGET_API_MAC_CARBON]: Add externs.
13537
13538 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13539 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13540 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13541 is clicked.
13542 (x_activate_menubar): Remove extern for saved_menu_event_location.
13543 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13544 Move from mac.c.
13545
135462008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13547
13548 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13549 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13550
135512008-04-23 Jason Rumney <jasonr@gnu.org>
13552
13553 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13554 attributes only for local files.
13555
13556 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13557 default to Qlocal.
13558
135592008-04-22 Juri Linkov <juri@jurta.org>
13560
13561 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13562 read-buffer-to-switch instead of using the letter "B".
13563
135642008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13565
13566 * fileio.c (Qdefault_directory): New variable.
13567 (Fread_file_name): Use it to pass `dir' to the completion functions.
13568
135692008-04-20 Chong Yidong <cyd@stupidchicken.com>
13570
13571 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13572
135732008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13574
13575 * keyboard.c (Vpre_help_message): Remove.
13576 (show_help_echo): Remove default C code.
13577
13578 * dired.c (directory_files_internal, file_name_completion):
13579 Only call ENCODE_FILE if the string is indeed decoded.
13580
135812008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13582
13583 * Makefile.in (TOOLKIT_DEFINES): Remove.
13584 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13585
135862008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13587
13588 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13589 (mactoolbox.o): New target.
13590
13591 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13592 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13593
13594 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13595 Use mac_set_frame_window_background instead of XSetWindowBackground.
13596 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13597 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13598 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13599 instead of SetWindowTitleWithCFString.
13600 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13601 Move function to mactoolbox.c.
13602 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13603 Use mac_set_window_modified instead of SetWindowModified.
13604 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13605 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13606 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13607 FrontNonFloatingWindow. Use mac_activate_window instead of
13608 ActivateWindow. Use mac_active_non_floating_window instead of
13609 ActiveNonFloatingWindow.
13610 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13611 Use mac_show_hourglass and mac_hide_hourglass.
13612 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13613 instead of GetGlobalMouse.
13614 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13615 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13616 Use mac_bring_window_to_front instead of BringToFront.
13617 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13618 mactoolbox.c.
13619 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13620 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13621 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13622 mactoolbox.c.
13623
13624 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13625 (XtPointer): Move typedef from macmenu.c.
13626 (enum button_type): Move enum from macmenu.c.
13627 (widget_value): Move typedef from macmenu.c.
13628 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13629 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13630 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13631 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13632 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13633 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13634 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13635 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13636 (Selection): Move typedef from macselect.c.
13637 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13638 macterm.c.
13639 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13640 (mac_is_window_collapsed, mac_bring_window_to_front)
13641 (mac_send_window_behind, mac_hide_window, mac_show_window)
13642 (mac_collapse_window, mac_front_non_floating_window)
13643 (mac_active_non_floating_window, mac_activate_window)
13644 (mac_move_window_structure, mac_move_window, mac_size_window)
13645 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13646
13647 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13648 (enum mac_menu_kind): Move enum to mactoolbox.c.
13649 (min_menu_id): Move variable to mactoolbox.c.
13650 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13651 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13652 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13653 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13654 [TARGET_API_MAC_CARBON]: Likewise.
13655 (XtPointer): Move typedef to macgui.h.
13656 (enum button_type): Move enum to macgui.h.
13657 (widget_value): Move typedef to macgui.h.
13658 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13659 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13660 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13661 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13662 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13663 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13664 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13665 (popup_activated_flag): Make variable non-static.
13666 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13667 (add_menu_item, fill_menu, dispose_menus):
13668 Move functions to mactoolbox.c.
13669 (restore_show_help_function, menu_target_item_handler)
13670 (install_menu_target_item_handler, mac_handle_dialog_event)
13671 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13672 [TARGET_API_MAC_CARBON]: Likewise.
13673 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13674 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13675 (find_and_call_menu_selection, name_is_separator): Make function
13676 non-static.
13677 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13678 to mactoolbox.c.
13679 (set_frame_menubar): Don't call install_menu_quit_handler.
13680 (menu_item_selection): New variable.
13681 (mac_menu_show): Use create_and_show_popup_menu.
13682 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13683 selection but set variable menu_item_selection. All uses changed.
13684 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13685 Call install_menu_quit_handler. Move to mactoolbox.c.
13686
13687 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13688 (Selection): Move typedef to macgui.h.
13689 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13690 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13691 Make variables non-static.
13692 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13693 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13694 Make functions non-static.
13695 (Vmac_service_selection) [MAC_OSX]: Likewise.
13696 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13697 (mac_valid_selection_target_p, mac_clear_selection)
13698 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13699 (mac_put_selection_value, mac_selection_has_target_p)
13700 (mac_get_selection_value, mac_get_selection_target_list)
13701 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13702 Move functions to mactoolbox.c.
13703 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13704 Likewise.
13705 (copy_scrap_flavor_data, mac_handle_service_event)
13706 (install_service_handler) [MAC_OSX]: Likewise.
13707 (syms_of_macselect) <Vmac_dnd_known_types>:
13708 Use mac_dnd_default_known_types.
13709
13710 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13711 Move to mactoolbox.c.
13712 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13713 (Fx_selection_owner_p): Add EXFUN.
13714 (install_window_handler, remove_window_handler, XSetWindowBackground):
13715 Remove externs.
13716 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13717 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13718 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13719 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13720 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13721 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13722 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13723 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13724 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13725 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13726 (mac_valid_selection_target_p, mac_clear_selection)
13727 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13728 (mac_put_selection_value, mac_selection_has_target_p)
13729 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13730 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13731 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13732 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13733 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13734 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13735 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13736 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13737 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13738
13739 * mactoolbox.c: New file.
13740
137412008-04-18 Jason Rumney <jasonr@gnu.org>
13742
13743 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13744
137452008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13746
13747 * character.c (Fmultibyte_char_to_unibyte):
13748 Return latin1 chars unchanged.
13749
13750 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
13751 relocated if it points to `name'.
13752
137532008-04-17 Kenichi Handa <handa@m17n.org>
13754
13755 * data.c (Faset): Allow setting a multibyte character in an
13756 ASCII-only unibyte string.
13757
13758 * lisp.h (STRING_SET_MULTIBYTE): New macro.
13759
137602008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
13761
13762 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
13763 done in config.h.
13764
137652008-04-16 Juanma Barranquero <lekktu@gmail.com>
13766
13767 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
13768 (Fchar_direction): Add usage in the docstring.
13769
137702008-04-15 Chong Yidong <cyd@stupidchicken.com>
13771
13772 * keyboard.c (read_key_sequence): Remove always-true checks.
13773
137742008-04-14 Jason Rumney <jasonr@gnu.org>
13775
13776 * w32font.c (w32font_open_internal): Set max_bounds.descent in
13777 compatibility struct, for better underline positioning.
13778
137792008-04-13 David Hansen <david.hansen@gmx.net>
13780
13781 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
13782 string.
13783
137842008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
13785
13786 * m/hp800.h (XUINT, XSET): Remove.
13787
137882008-04-12 Juanma Barranquero <lekktu@gmail.com>
13789
13790 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
13791 previous change.
13792
137932008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
13794
13795 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
13796 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
13797
137982008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13799
13800 * keymap.h (map_keymap_canonical): Declare.
13801 * xmenu.c (single_keymap_panes): Use it.
13802
138032008-04-11 Glenn Morris <rgm@gnu.org>
13804
13805 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
13806 set the target's value to that of the alias.
13807
138082008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
13809
13810 * term.c (set_tty_color_mode): Left over typo.
13811
138122008-04-10 Michael Albinus <michael.albinus@gmx.de>
13813
13814 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
13815 only after check for file name handler functions. Signal, when
13816 native functionality is not supported.
13817 (syms_of_fileio): Declare it unconditionally.
13818
138192008-04-10 Jason Rumney <jasonr@gnu.org>
13820
13821 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
13822 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
13823
13824 * w32.c (logon_network_drive): Also logon to remote drives that
13825 are mapped to drive letters.
13826
138272008-04-10 Glenn Morris <rgm@gnu.org>
13828
13829 * xdisp.c (truncate-partial-width-windows): Doc fix.
13830
138312008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
13832
13833 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
13834 Move functions to minibuffer.el.
13835 (syms_of_fileio): Don't declare them.
13836
138372008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13838
13839 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
13840 (syms_of_minibuf): Remove its initialization.
13841
13842 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
13843
138442008-04-09 Juanma Barranquero <lekktu@gmail.com>
13845
13846 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
13847
138482008-04-09 Jason Rumney <jasonr@gnu.org>
13849
13850 * makefile.w32-in (distclean): Delete makefile too.
13851 (maintainer-clean): New target.
13852
13853 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
13854
13855 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
13856 for new font backend and composite cases.
13857
138582008-04-09 Jan Djärv <jan.h.d@swipnet.se>
13859
13860 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
13861 Most of the code moved to run_timers.
13862 (do_pending_atimers): Call run_timers.
13863 (run_timers): New function.
13864
13865 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
13866 run atimers.
13867
13868 * process.c (wait_reading_process_output): The same as above.
13869
138702008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
13871
13872 * minibuf.c (last_exact_completion): Remove variable.
13873 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
13874 (complete_and_exit_1, complete_and_exit_2)
13875 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
13876 (Fdisplay_completion_list, display_completion_list_1)
13877 (Fminibuffer_completion_help, Fself_insert_and_exit)
13878 (Fexit_minibuffer, Fminibuffer_message): Move functions to
13879 minibuffer.el.
13880 (syms_of_minibuf): Remove corresponding initializations.
13881
13882 * keyboard.c (Qdeactivate_mark): New var.
13883 (command_loop_1): Use it to call `deactivate-mark'.
13884 (syms_of_keyboard): Initialize it.
13885
13886 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
13887 to another frame.
13888 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
13889 Don't call set_tty_color_mode.
13890 (store_frame_param): Reset previous_frame rather than call
13891 set_tty_color_mode.
13892 * term.c (set_tty_color_mode): Rewrite.
13893 * dispextern.h (set_tty_color_mode): New type.
13894 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
13895
138962008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
13897
13898 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
13899 for generic chars, which do not exist any more in emacs-unicode.
13900
139012008-04-08 Michael Albinus <michael.albinus@gmx.de>
13902
13903 * coding.c (detect_coding_emacs_mule)
13904 (Ffind_operation_coding_system): Fix typo.
13905
139062008-04-08 Jason Rumney <jasonr@gnu.org>
13907
13908 * w32uniscribe.c (SNAME): Extract only symbol name.
13909
13910 * w32font.h (struct w32_metric_cache): New struct.
13911 (w32font_info): Use it.
13912 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
13913 (CACHE_BLOCKSIZE): New constants.
13914
13915 * w32font.c (Qja, Qko, Qzh): New symbols.
13916 (syms_of_w32font): Initialise them.
13917 (font_matches_spec): Use them to filter by language.
13918 (recompute_cached_metrics): Remove function.
13919 (compute_metrics, clear_cached_metrics): New functions.
13920 (w32font_encode_char): Use them to manage metric cache.
13921 (w32font_text_extents): Cache metrics for all glyphs on demand.
13922 Delay converting glyph indices to WORD until needed.
13923 (w32font_open_internal): Initialize metric cache to empty.
13924 (registry_to_w32_charset): Charset should always be a symbol.
13925 (fill_in_logfont, list_all_matching_fonts): Family should
13926 always be a symbol.
13927
139282008-04-06 Jason Rumney <jasonr@gnu.org>
13929
13930 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
13931 Give up if glyph indices not supported. Use uniscribe obtained
13932 ABC widths for individual metrics. Map glyph clusters back to
13933 characters using fClusterStart flag. Return number of glyphs
13934 produced, not chars processed.
13935 (uniscribe_shape): Map char at FROM to current glyph.
13936
139372008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13938
13939 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
13940 Use SetMenuItemHierarchicalMenu.
13941
139422008-04-05 Jason Rumney <jasonr@gnu.org>
13943
13944 * image.c (pbm_load): Allow color values up to 65535.
13945 Throw an error if max_color_idx is outside the supported range.
13946 Report an error when image size is invalid.
13947 Read two bytes at a time when raw images have max_color_idx above 255.
13948
139492008-04-05 Eli Zaretskii <eliz@gnu.org>
13950
13951 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13952 cFileName a file name that includes `?' characters, use the 8+3
13953 alias in cAlternateFileName instead.
13954
139552008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
13956
13957 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
13958 append "CCL: Quitted" when the CCL program is quitted.
13959 (setup_ccl_program): Initialize ccl->quit_silently to zero.
13960
13961 * ccl.h (struct ccl_program): New member quit_silently.
13962
139632008-04-05 Chong Yidong <cyd@stupidchicken.com>
13964
13965 * search.c (compile_pattern_1): Treat non-nil and non-string of
13966 search-spaces-regexp as nil.
13967
13968 * minibuf.c (Fassoc_string): Tweak docstring.
13969
139702008-04-05 Eli Zaretskii <eliz@gnu.org>
13971
13972 * dired.c (Ffile_attributes): Support inode numbers wider than 32
13973 bits. Remove ugly WINDOWSNT-specific kludge introduced on
13974 2008-03-14 to force inode be positive.
13975
13976 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
13977 _S_* ones, since we now use our own sys/stat.h.
13978 (stat, fstat): Don't mangle the inode number.
13979 (init_user_info): Don't restrict UID and GID to 0-60000 range.
13980
139812008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
13982
13983 * frame.h (struct frame): Give one more bit to `visible' since we use
13984 values larger than 1 to indicate obscured frames on ttys.
13985
13986 * keymap.c (Qkeymap_canonicalize): New var.
13987 (Fmap_keymap_internal): New fun.
13988 (describe_map): Use keymap-canonicalize.
13989
13990 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
13991 (Fundo_boundary): Set them.
13992 (syms_of_undo): Initialize them.
13993 (record_point): Use them instead of last_point_position*.
13994 (last_undo_buffer): Change type.
13995
139962008-04-04 Jason Rumney <jasonr@gnu.org>
13997
13998 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13999 (recompute_cached_metrics): Don't set ascent and descent per char.
14000
14001 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14002 (uniscribe_check_otf): Add GC protection before consing.
14003 Rearrange loop for counting features.
14004
140052008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14006
14007 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14008 buffer with byte-size of source buffer.
14009
140102008-04-03 Chong Yidong <cyd@stupidchicken.com>
14011
14012 * callint.c (Fcall_interactively): Handle temporary region even
14013 when shift-select-mode is off.
14014
140152008-04-03 Jason Rumney <jasonr@gnu.org>
14016
14017 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14018
140192008-04-03 Kenichi Handa <handa@m17n.org>
14020
14021 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14022 (CATEGORY_MASK_UTF_16): Likewise.
14023 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14024 binary file.
14025 (detect_coding): Add null-byte detection for a binary file.
14026 (detect_coding_system): Likewise.
14027
140282008-04-03 Jason Rumney <jasonr@gnu.org>
14029
14030 * w32uniscribe.c: New file.
14031
14032 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14033
14034 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14035
14036 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14037 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14038 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14039 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14040 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14041 (Qphonetic): New symbols.
14042 (syms_of_w32font): Initialize them.
14043 (font_supported_scripts): Use them.
14044 (w32font_list_family): List all charsets.
14045 (w32font_text_extents, recompute_cached_metrics): Fix metric
14046 calculations.
14047 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14048 Give opentype fonts their own format.
14049 (font_matches_spec): New arguments backend and logfont.
14050 Handle :otf spec for uniscribe backend.
14051 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14052 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14053
14054 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14055 font backend.
14056 (globals_of_w32fns): Initialize uniscribe font backend.
14057
14058 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14059 dependencies.
14060 (w32uniscribe.$(O)): New file to build.
14061 (FONT_OBJ): Include w32uniscribe.$(O).
14062 (LIBS): Add uniscribe libraries.
14063
14064 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14065
140662008-04-02 Chong Yidong <cyd@stupidchicken.com>
14067
14068 * callint.c (Vshift_select_mode): New var.
14069 (Finteractive): Document new ^ spec.
14070 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14071 is present.
14072
14073 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14074 (command_loop_1): Avoid running the direct display versions of
14075 forward-char and backward-char if shift-selection may occur.
14076 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14077 shift-translation takes place.
14078
14079 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14080 avoid clobbering by define-minor-mode.
14081
14082 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14083 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14084
14085 * syntax.c (Fforward_word): Add ^ interactive spec.
14086
14087 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14088 (Fscroll_right): Add ^ interactive spec.
14089
140902008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14091
14092 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14093
14094 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14095
14096 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14097
140982008-03-31 Juri Linkov <juri@jurta.org>
14099
14100 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14101
141022008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14103
14104 * gtkutil.c (xg_set_geometry): Fix indentation.
14105 (xg_resize_outer_widget): Remove.
14106 (x_wm_size_hint_off): Fix indentation.
14107 (xg_frame_set_char_size): Call flush_and_sync after
14108 gtk_window_resize.
14109 (x_wm_set_size_hint): Pass NULL as geometry window to
14110 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14111 Add menu bar and tool bar height to base height.
14112 (xg_update_frame_menubar, free_frame_menubar)
14113 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14114 (update_frame_tool_bar, free_frame_tool_bar):
14115 Change xg_resize_outer_widget to xg_frame_set_char_size.
14116
141172008-03-30 Michael Albinus <michael.albinus@gmx.de>
14118
14119 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14120 (Fdbus_call_method): New parameter TIMEOUT.
14121 (dbus-send-signal): Optimize UNGCPRO call.
14122
141232008-03-29 Juri Linkov <juri@jurta.org>
14124
14125 * window.c (Fdisplay_buffer): Move call to
14126 Vsplit_window_preferred_function out of conditions that check
14127 if window is eligible for vertical splitting.
14128 When Vsplit_window_preferred_function is non-nil, call it and use
14129 its non-nil return value as window. Otherwise, continue doing
14130 vertical splitting using Fsplit_window with arg horflag=nil.
14131 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14132 default value from `split-window' to nil.
14133
141342008-03-29 Juri Linkov <juri@jurta.org>
14135
14136 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14137 for interactive code letters 'b' and 'B'.
14138
141392008-03-29 Eli Zaretskii <eliz@gnu.org>
14140
14141 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14142 multibyte string.
14143
141442008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14145
14146 * keyboard.c (pending_funcalls): New var.
14147 (timer_check): Run it.
14148 (syms_of_keyboard): Initialize it.
14149 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14150 (Vdelete_terminal_functions): New vars.
14151 (syms_of_terminal): Initialize them.
14152 (Fdelete_terminal): Run delete-terminal-functions.
14153 * xdisp.c (safe_eval): Rewrite.
14154 (safe_call2): New fun.
14155 * frame.c (Qdelete_frame_functions): New var.
14156 (syms_of_frame): Initialize it.
14157 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14158 * lisp.h (safe_call2, pending_funcalls): Declare.
14159
141602008-03-28 Andreas Schwab <schwab@suse.de>
14161
14162 * indent.c (Fmove_to_column): Move declaration before statements.
14163
141642008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14165
14166 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14167 (struct frame): Use bit fields for boolean vars.
14168
14169 * process.c (server_accept_connection): Simplify naming.
14170 (emacs_get_tty_pgrp): Use SDATA.
14171
14172 * coding.c (decode_coding_object): Fix last change.
14173
141742008-03-27 Jason Rumney <jasonr@gnu.org>
14175
14176 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14177
141782008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14179
14180 * charset.c (Fdefine_charset_internal): Change the way of
14181 registering charsets in Vcharset_order_list.
14182 (syms_of_charset): Make the charset `eight-bit' supplementary.
14183
141842008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14185
14186 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14187 operations, to avoid having the difference between pointers
14188 overflow.
14189
141902008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14191
14192 * indent.c (check_display_width): New fun.
14193 (scan_for_column): Use it.
14194
14195 * data.c (syms_of_data): Mark most-positive-fixnum and
14196 most-negative-fixnum as constants.
14197
14198 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14199
14200 * indent.c (scan_for_column): Extract from current_column_1.
14201 Merge with the same code from Fmove_to_column.
14202 (current_column_1, Fmove_to_column): Use it.
14203
142042008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14205
14206 * keymap.c (map_keymap_internal): New fun.
14207 (map_keymap): Use it.
14208 (Fmap_keymap_internal): New fun.
14209 (Fmap_keymap): Remove left-out test from before make_save_value.
14210
14211 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14212
14213 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14214 Use XCAR/XCDR.
14215
14216 * process.h (struct Lisp_Process): Remove filter_multibyte.
14217 * process.c (QCfilter_multibyte): Remove.
14218 (setup_process_coding_systems): Don't use filter_multibyte.
14219 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14220 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14221 (Fset_process_filter_multibyte): Change the coding-system to
14222 approximate the previous behavior.
14223 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14224 coding-system.
14225
14226 * coding.c (decode_coding_object): When not decoding into a buffer,
14227 obey the coding system's preference of (uni|multi)byte.
14228
142292008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14230
14231 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14232 every char is changed and has a different byte-length.
14233 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14234 Fix int -> EMACS_INT.
14235
142362008-03-23 David Hansen <david.hansen@gmx.net>
14237
14238 * dbusbind.c (xd_read_message): Remove extra copying of message
14239 strings. Check for NULL `interface' or `member'.
14240
142412008-03-22 Eli Zaretskii <eliz@gnu.org>
14242
14243 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14244 cFileName a file name that includes `?' characters, use the 8+3
14245 alias in cAlternateFileName instead.
14246
142472008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14248
14249 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14250
142512008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14252
14253 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14254 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14255 work on current_buffer only instead (that was already the case
14256 for some of the code anyway).
14257 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14258 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14259 (SET_PT, SET_PT_BOTH): Adjust.
14260 * intervals.h (set_point, temp_set_point, set_point_both)
14261 (temp_set_point_both): Remove redundant declarations.
14262
142632008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14264
14265 * fileio.c (Finsert_file_contents):
14266 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14267 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14268 when buffer != current_buffer anyway.
14269
142702008-03-20 Andreas Schwab <schwab@suse.de>
14271
14272 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14273 as default.
14274
142752008-03-19 Jason Rumney <jasonr@gnu.org>
14276
14277 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14278 (syms_of_w32fns): Initialize them.
14279 (HOURGLASS_ID): New constant.
14280 (x_window_to_frame): Don't check hourglass_window.
14281 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14282 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14283 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14284 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14285 Only change the cursor if hourglass is not active.
14286 (Fx_create_frame): Initialize frame's current_cursor.
14287 (hourglass_atimer): Remove.
14288 (hourglass_started): New function.
14289 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14290 (show_hourglass): Adapt to w32, changing argument to frame.
14291
14292 * w32term.h (struct w32_output): Remove hourglass_window.
14293 Add current_cursor.
14294
14295 * eval.c (call_debugger, Fsignal):
14296 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14297 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14298 (Fexecute_extended_command, cancel_hourglass_unwind):
14299 * minibuf.c (read_minibuf):
14300 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14301
143022008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14303
14304 * window.c (run_funs): New fun.
14305 (run_window_configuration_change_hook): Use it to run the buffer-local
14306 and the global part of the hook.
14307
14308 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14309 (unwind_format_mode_line): Restore selected window.
14310 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14311
143122008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14313
14314 * editfns.c (Fchar_equal): Check they are valid characters.
14315
14316 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14317
143182008-03-17 Andreas Schwab <schwab@suse.de>
14319
14320 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14321 against a charset.
14322
14323 * lisp.h (Fbuffer_list): Declare.
14324
143252008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14326
aac0c6e3
MR
14327 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14328 handlebox_widget is != 0.
14329
143302008-03-16 Juri Linkov <juri@jurta.org>
14331
14332 * callint.c (Fcall_interactively): For interactive code letters
14333 'b' and 'B' put the buffer list into the list of default "future"
14334 values of the minibuffer.
14335
143362008-03-16 Andreas Schwab <schwab@suse.de>
14337
14338 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14339 modifiers.
14340
14341 * regex.c (re_match_2_internal): Correct matching of a charset
14342 against latin-1 characters.
14343
143442008-03-16 Kenichi Handa <handa@m17n.org>
14345
14346 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14347 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14348 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14349 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14350 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14351 CHAR_STRING_ADVANCE.
14352 (produce_chars): Fix for the case that the source and the
14353 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14354 instead of CHAR_STRING_ADVANCE.
14355 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14356 STRING_CHAR_ADVANCE.
14357
143582008-03-15 Andreas Schwab <schwab@suse.de>
14359
14360 * regex.c (re_match_2_internal): Correct matching of eight bit
14361 characters in unibyte strings.
14362
143632008-03-15 Martin Rudalics <rudalics@gmx.at>
14364
14365 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14366 at end of range when it coincides with the end of the buffer.
14367
143682008-03-14 Eli Zaretskii <eliz@gnu.org>
14369
14370 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14371
14372 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14373
143742008-03-14 Jason Rumney <jasonr@gnu.org>
14375
14376 * editfns.c (initial_tz): New variable.
14377 (syms_of_editfns): Initialize it.
14378 (Fset_time_zone_rule): Set it when first called.
14379 Use it when TZSTRING is nil.
14380
14381 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14382 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14383 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14384 (globals_of_w32fns): Initialize them.
14385 (compute_tip_xy): Use them to position tooltips.
14386
143872008-03-14 Glenn Morris <rgm@gnu.org>
14388
14389 * emacs.c (main): Revert previous change.
14390 (standard_args): Revert -internal-script back to -scriptload,
14391 and remove the long-option form.
14392
143932008-03-13 Glenn Morris <rgm@gnu.org>
14394
14395 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14396 Remove option -enable-font-backend.
14397
143982008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14399
14400 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14401
144022008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14403
14404 * xterm.c (x_connection_closed): For GTK: If this is the last
14405 terminal just exit without closing the display.
14406
144072008-03-11 Jason Rumney <jasonr@gnu.org>
14408
14409 * w32font.c (w32font_full_name): Use floor to round.
14410
f0131492 144112008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14412
14413 * sound.c (alsa_configure): Declare vol at beginning of block.
14414
14415 * fontset.c (Ffontset_info): Remove extra semicolon.
14416
144172008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14418
14419 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14420 size of resulting string.
14421
144222008-03-10 Jason Rumney <jasonr@gnu.org>
14423
14424 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14425
144262008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14427
14428 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14429 Don't pretend as if characters with display property haven't been
14430 consumed for string-replacing-string case.
14431
144322008-03-08 Kim F. Storm <storm@cua.dk>
14433
14434 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14435 (get_next_display_element, next_element_from_string)
14436 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14437
144382008-03-08 Andreas Schwab <schwab@suse.de>
14439
14440 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14441
144422008-03-06 Jason Rumney <jasonr@gnu.org>
14443
14444 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14445 when charset not specified. Only translate ANSI to unicode when
14446 font_type is truetype.
14447 (w32font_coverage_ok): New function.
14448 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14449
144502008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14451
14452 * lread.c (Fread_char): Resolve modifiers.
14453 (Fread_char_exclusive): Likewise.
14454
14455 * character.c (char_resolve_modifier_mask): New function.
14456 (char_string): Use char_resolve_modifier_mask.
14457 (Fchar_resolve_modifiers): New function.
14458 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14459 function.
14460
144612008-03-04 Jason Rumney <jasonr@gnu.org>
14462
14463 * makefile.w32-in: Always include w32font.c in the build.
14464 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14465
144662008-03-04 Andreas Schwab <schwab@suse.de>
14467
14468 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14469 (versionclean): Likewise.
14470
144712008-03-04 Juanma Barranquero <lekktu@gmail.com>
14472
14473 * .cvsignore: Add oo.
14474
144752008-03-03 Andreas Schwab <schwab@suse.de>
14476
14477 * coding.c (decode_coding_object): Inhibit gap shrinking while
14478 decoding in place.
14479
144802008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14481
14482 * w32term.c: Remove unused include "gnu.h".
14483 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14484
14485 * gnu.h: Rename to ...
14486 * emacs-icon.h: ... this.
14487 * xterm.c: Use emacs-icon.h instead of gnu.h.
14488 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14489
144902008-03-03 Juanma Barranquero <lekktu@gmail.com>
14491
14492 * w32font.c: Include math.h.
14493
144942008-03-03 Jason Rumney <jasonr@gnu.org>
14495
14496 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14497 Compute options separately.
14498 (w32font_open_internal): Set glyph_idx before caching metrics.
14499
14500 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14501 Define if system headers don't.
14502 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14503 (w32font_encode_char): Don't declare here.
14504
14505 * w32font.c (Quniscribe, QCformat): New symbols.
14506 (syms_of_w32font): Define them.
14507 (w32font_has_char): Indicate uncertainty.
14508 (w32font_encode_char): Encode as glyph point. Make static.
14509 (recompute_cached_metrics): New function.
14510 (w32font_open_internal): Use it. Set font to use glyph points
14511 initially. Set format based on type of font.
14512 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14513 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14514 on it. Set format based on information available here.
14515 (add_font_entity_to_list): Identify backend based on opentype_only.
14516
145172008-03-02 Andreas Schwab <schwab@suse.de>
14518
14519 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14520
14521 * coding.c (decode_coding_big5, produce_chars):
14522 Fix typos in last change.
14523
145242008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14525
14526 * gnu.h: New icon.
14527
145282008-03-02 Kenichi Handa <handa@m17n.org>
14529
14530 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14531 `dos', don't decode '\r' if that is the last in the source.
14532 (decode_coding_utf_16, decode_coding_emacs_mule)
14533 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14534 (decode_coding_raw_text, decode_coding_charset): Likewise.
14535 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14536
145372008-03-01 Jason Rumney <jasonr@gnu.org>
14538
14539 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14540
145412008-03-01 Kim F. Storm <storm@cua.dk>
14542
14543 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14544
145452008-03-01 Jason Rumney <jasonr@gnu.org>
14546
14547 * w32font.c (w32font_full_name): New function.
14548 (w32font_open_internal): Use it.
14549
145502008-03-01 Kim F. Storm <storm@cua.dk>
14551
14552 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14553
145542008-03-01 Jason Rumney <jasonr@gnu.org>
14555
14556 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14557
145582008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14559
14560 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14561 xg_frame_resized when the event is for the edit widget.
14562
14563 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14564
14565 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14566 set_char_size.
14567 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14568 operations on widgets here. Just set frame size if needed.
14569 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14570 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14571 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14572 the whole frame.
14573 (xg_create_tool_bar): Move attachment of the tool bar to
14574 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14575 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14576
145772008-03-01 Jason Rumney <jasonr@gnu.org>
14578
14579 * w32fns.c (w32_msg_pump): Disable debug code.
14580
145812008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14582
14583 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14584
145852008-02-29 Chong Yidong <cyd@stupidchicken.com>
14586
14587 * xdisp.c (next_overlay_string): Don't set
14588 overlay_strings_at_end_processed_p if we're currently reading from
14589 a display string.
14590
145912008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14592
14593 * xdisp.c (get_overlay_strings_1): Fix typo.
14594
145952008-02-29 Chong Yidong <cyd@stupidchicken.com>
14596
14597 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14598
145992008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14600
14601 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14602
14603 * xdisp.c (display_mode_element): Cancel the previous change.
14604 (decode_mode_spec): Likewise.
14605 (handle_auto_composed_prop): Don't make composition if it->string
14606 is a string.
14607
146082008-02-27 Kim F. Storm <storm@cua.dk>
14609
14610 * lisp.h (GLYPH): Change type from int to struct with separate char
14611 and face_id members.
14612 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14613 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14614 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14615 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14616 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14617 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14618 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14619 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14620 handle new Lisp glyph code encoding, either an integer or a cons.
14621
14622 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14623 (GLYPH_ALIAS): Delete.
14624 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14625 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14626 (GLYPH_FROM_CHAR): Replace macro by ...
14627 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14628
14629 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14630 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14631 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14632 (GLYPH_INVALID_P): New macro.
14633 (spec_glyph_lookup_face): Update prototype.
14634
14635 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14636 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14637 new glyph code encoding.
14638 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14639 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14640
14641 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14642 Adapt to new glyph type and new glyph code encoding.
14643
14644 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14645
14646 * indent.c (current_column, current_column_1, Fmove_to_column)
14647 (compute_motion): Adapt to new glyph code encoding.
14648
14649 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14650
146512008-02-27 Chong Yidong <cyd@stupidchicken.com>
14652
14653 * process.c (wait_reading_process_output): Check for window
14654 changes caused by timers.
14655 Suggested by Johan Bockgård.
14656
146572008-02-27 Glenn Morris <rgm@gnu.org>
14658
14659 * emacs.c (USAGE1): Add `--disable-font-backend'.
14660
146612008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14662
14663 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14664 is made to the buffer.
14665
146662008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14667
14668 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14669 (face_at_string_position):
14670 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14671 (face_at_string_position):
14672 * xdisp.c (display_string, next_overlay_change):
14673 * buffer.h (overlays_at):
14674 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14675 Update callers.
14676
146772008-02-26 Chong Yidong <cyd@stupidchicken.com>
14678
14679 * editfns.c (Fformat): Doc fix.
14680
146812008-02-26 Juanma Barranquero <lekktu@gmail.com>
14682
14683 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14684 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14685 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14686
146872008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14688
14689 * buffer.c (Fbuffer_swap_text): New function.
14690 (syms_of_buffer): Defsubr it.
14691
146922008-02-25 Chong Yidong <cyd@stupidchicken.com>
14693
14694 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14695
146962008-02-25 Jason Rumney <jasonr@gnu.org>
14697
14698 * w32font.c (w32font_draw): Draw one character at a time when padding.
14699
147002008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14701
14702 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14703 Handle a nil arg. Use run_window_configuration_change_hook.
14704 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14705 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14706 Use run_window_configuration_change_hook.
14707
147082008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14709
14710 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14711 1-pixel width.
14712
147132008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14714
14715 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14716 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14717 if the glyph in the font is zero pixel with.
14718
14719 * dispextern.h (struct glyph_string): New member padding_p.
14720
14721 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14722
14723 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14724
14725 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14726
14727 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14728
14729 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14730
147312008-02-25 Jason Rumney <jasonr@gnu.org>
14732
14733 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14734
147352008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14736
14737 Allow fine-grained image-cache flushing.
14738 * dispextern.h (struct image): Add `dependencies' field.
14739 (clear_image_caches): Change arg to Lisp_Object.
14740 * image.c (make_image): Initialize `dependencies' field.
14741 (clear_image_cache): Change arg to allow fine-grained flushing.
14742 Perform the flush even if image-cache-eviction-delay is nil.
14743 (clear_image_caches): Change arg to Lisp_Object.
14744 (Fclear_image_cache): Expand meaning of the argument.
14745 (mark_image): Mark `dependencies' field.
14746 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14747 (lface_hash): Use XHASH rather than XFASTINT.
14748 (face_at_buffer_position): Fix int -> EMACS_INT position.
14749 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14750 (select_frame_for_redisplay): Remove code duplication.
14751 (redisplay_internal): Adapt arg to call to clear_image_caches.
14752
147532008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
14754
14755 * s/vms4-0.h:
14756 * s/vms4-2.h:
14757 * s/vms4-4.h:
14758 * s/vms5-5.h: Remove, unused.
14759
14760 * s/irix5-2.h:
14761 * s/irix6-0.h:
14762 * s/riscos5.h:
14763 * s/mach-bsd4-3.h:
14764 * m/mips4.h: Remove files for obsolete systems.
14765
14766 * Makefile.in:
14767 * filelock.c:
14768 * unexmips.c:
14769 * m/hp9000s300.h:
14770 * m/iris4d.h:
14771 * s/aix3-1.h:
14772 * s/hpux.h:
14773 * s/msdos.h:
14774 * s/usg5-0.h:
14775 * s/usg5-2-2.h:
14776 * s/usg5-2.h:
14777 * s/usg5-3.h: Remove references to obsolete variables.
14778
14779 * s/irix5-0.h: Remove, move all the contents ...
14780 * s/irix6-5.h: ... here. Simplify.
14781 * config.in: Regenerate.
14782
147832008-02-24 Jason Rumney <jasonr@gnu.org>
14784
14785 * w32term.c (x_draw_glyph_string_background): Clear the background
14786 manually when cleartype is in use.
14787 (x_draw_glyph_string_foreground): Draw text transparently when
14788 cleartype is in use.
14789
14790 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
14791 a font into it unless we have to.
14792
147932008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14794
14795 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
14796 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 14797
aac0c6e3
MR
147982008-02-18 Jason Rumney <jasonr@gnu.org>
14799
14800 * w32fns.c (Fw32_shell_execute): Encode parameters.
14801
148022008-02-09 Eli Zaretskii <eliz@gnu.org>
14803
14804 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
14805
148062008-02-05 Juanma Barranquero <lekktu@gmail.com>
14807
14808 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
14809
148102008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
14811
14812 * xterm.c (x_set_offset): Don't change the gravity if
14813 CHANGE_GRAVITY is -1.
14814
148152008-02-23 Chong Yidong <cyd@stupidchicken.com>
14816
14817 * fileio.c (auto_save_error_occurred): New var.
14818 (auto_save_error): Set it.
14819 (Fdo_auto_save): Don't overwrite the error message if an auto-save
14820 error occurred.
14821
148222008-02-23 Eli Zaretskii <eliz@gnu.org>
14823
14824 * w32.c (globals_of_w32): Add initializations for
14825 g_b_init_get_sid_sub_authority and
14826 g_b_init_get_sid_sub_authority_count.
14827
148282008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
14829
14830 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
14831 (font_parse_xlfd): Use them for sanity check.
14832 (Finternal_set_font_style_table): Make sure the table is bijective.
14833
14834 Consolidate the image_cache to the terminal struct.
14835 * termhooks.h (P_): Remove redundant def.
14836 (struct terminal): New field `image_cache'.
14837 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
14838 of FRAME_X_IMAGE_CACHE.
14839 * xterm.h (struct x_display_info): Remove image_cache field.
14840 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14841 * w32term.h (struct w32_display_info): Remove image_cache field.
14842 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14843 * macterm.h (struct mac_display_info): Remove image_cache field.
14844 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
14845 * xterm.c (x_term_init):
14846 * w32term.c (w32_term_init):
14847 * macterm.c (mac_term_init): Set the image_cache in the terminal.
14848 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
14849 Remove declarations.
14850 (clear_image_caches, mark_image_cache): New declarations.
14851 * xfaces.c (clear_face_cache):
14852 * xdisp.c (redisplay_internal): Use clear_image_caches.
14853 * image.c (clear_image_cache): Don't check that a frame is on
14854 a window-system before checking if it shares the same cache.
14855 (clear_image_caches): New function.
14856 (Fclear_image_cache): Use it.
14857 (mark_image): Move from allo.c.
14858 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
14859 * alloc.c (mark_image, mark_image_cache): Move to image.c.
14860 (mark_object): Don't call mark_image_cache for frames.
14861 (mark_terminals): Call mark_image_cache.
14862
14863 * lisp.h (Fdelete_terminal): Declare.
14864
14865 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
14866 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
14867 wrong_type_argument.
14868
148692008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
14870
14871 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
14872 malayalam.el, and tamil.el. Add sinhala.el.
14873
148742008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
14875
14876 * xterm.c (x_connection_closed): Consolidate identical tests.
14877 (x_delete_terminal): Don't crash if called via x_connection_closed.
14878
148792008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
14880
14881 * xdisp.c (decode_mode_spec): New arg string.
14882 (display_mode_element): Adjust for the above change.
14883
148842008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
14885
14886 * callint.c (Fcall_interactively): Use AREF.
14887
148882008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
14889
14890 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
14891
148922008-02-18 Jan Djärv <jan.h.d@swipnet.se>
14893
14894 * xfns.c (Fx_show_tip): Set string to " " if empty.
14895
148962008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
14897
14898 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
14899 with Qt.
14900
149012008-02-17 Kenichi Handa <handa@m17n.org>
14902
14903 * ftfont.c (ftfont_shape): Return Lispy number.
14904
14905 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
14906 for GCs.
14907 (Finternal_set_font_selection_order): Call font_update_sort_order
14908 only when enable_font_backend is set.
14909 (realize_x_face): Set face->font_info to that of default face only
14910 when enable_font_backend is set.
14911
14912 * xdisp.c (handle_composition_prop): Set it->c to the fist
14913 character of the composed region.
14914 (fill_composite_glyph_string): Set base_face->font_info to
14915 s->font_info. Get a face for ascii from base_face->ascii_face.
14916 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
14917 with a face already decided.
14918 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
14919 non-negative.
14920 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
14921 call font_prepare_composition unconditionally.
14922
14923 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
14924
14925 * xterm.h (struct x_display_info): New member font.
14926
14927 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
14928 (x_set_mouse_face_gc, x_new_font): Likewise.
14929 (x_term_init): Setup display_info->font.
14930 (x_delete_terminal): Free display_info->font.
14931
14932 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
14933
14934 * ftxfont.c (ftxfont_default_fid): Delete it.
14935 (ftxfont_open): Set xfont->fid to 0.
14936 (ftxfont_end_for_frame): Clear data specific to the frame and the
14937 font-driver.
14938
14939 * xftfont.c (xftfont_default_fid): Delete it.
14940 (xftfont_open): Set xfont->fid to 0.
14941
14942 * fontset.c (FONTSET_OBJLIST): New macro.
14943 (fontset_find_font): Update font-object list of the fontset.
14944 (free_realized_fontset): New function.
14945 (free_face_fontset): Call free_realized_fontset.
14946 (Ffont_info): Call font_close_object only when enable_font_backend
14947 is set.
14948
14949 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
14950 [HAVE_NTGUI]: Include w32term.h.
14951 [MAC_OS]: Include macterm.ch.
14952 (font_otf_ValueRecord): Use make_number.
14953 (font_finish_cache): Fix handling of reference count.
14954 (font_clear_cache): Update num_fonts.
14955 (font_open_entity): Update smallest_char_width and
14956 smallest_font_height of the frame.
14957 (font_close_object): Update num_fonts.
14958 (Fclear_font_cache): Fix finding the target cache data.
14959
149602008-02-16 Glenn Morris <rgm@gnu.org>
14961
14962 * fontset.c (Finternal_char_font): Fix compilation warning.
14963
149642008-02-16 Eli Zaretskii <eliz@gnu.org>
14965
14966 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
14967 instead of char arrays. Enlarge the size of array passed to
14968 get_token_information.
14969
14970 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
14971 warnings.
14972
149732008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
14974
14975 * .gdbinit: Don't set `args', it breaks gdb --args.
14976
149772008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
14978
14979 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
14980 within a narrowed buffer.
14981
149822008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
14983
14984 * coding.c (decode_coding_object, encode_coding_object):
14985 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
14986
149872008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14988
14989 * coding.c (coding_set_destination): Use BEG_BYTE rather than
14990 hardcoding 1.
14991 (detect_coding_system):
14992 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
14993 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14994 * insdel.c (insert_from_gap):
14995 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14996 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14997 (string_to_multibyte):
14998 * character.c (chars_in_text, multibyte_chars_in_text):
14999 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15000
15001 * character.h (FETCH_STRING_CHAR_ADVANCE)
15002 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15003 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15004 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15005
15006 * casefiddle.c (casify_region): Only call after-change and composition
15007 functions on the part of the region that was changed.
15008
15009 * keyboard.c (read_avail_input):
15010 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15011
150122008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15013
15014 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15015 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15016
150172008-02-11 Juanma Barranquero <lekktu@gmail.com>
15018
15019 * w32menu.c (push_submenu_start, push_submenu_end)
15020 (push_left_right_boundary, push_menu_pane, push_menu_item):
15021 * keyboard.c (read_key_sequence): Don't pass args with side effects
15022 to AREF, it fails when compiling with -DENABLE_CHECKING.
15023
150242008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15025
15026 * Makefile.in (${lispsource}international/charprop.el):
15027 Delete this target.
15028
15029 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15030 emacs-unicode-2.
15031
150322008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15033
15034 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15035
150362008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15037
15038 * frame.c (Qnoelisp): New symbol.
15039 (syms_of_frame): Initialize it.
15040 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15041 harmless Elisp code, from a strong `force' from x_connection_closed.
15042 * frame.h (Qnoelisp): Declare.
15043 * xterm.c (x_connection_closed): Pass `noelisp'.
15044
15045 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15046 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15047 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15048 rather than `int' for the type of `type'.
15049
150502008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15051
15052 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15053
15054 * Makefile.in (GNUC): Remove support for gcc-1.x.
15055
150562008-02-10 Richard Stallman <rms@gnu.org>
15057
15058 * lisp.h (ASET): Use AREF, not ASLOT.
15059
150602008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15061
15062 * lisp.h (ASET): Check bounds.
15063
150642008-02-10 Glenn Morris <rgm@gnu.org>
15065
15066 * buffer.c (mode-name): Doc fix.
15067
150682008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15069
15070 * Makefile.in:
15071 * emacs.c:
15072 * gmalloc.c:
15073 * keyboard.c:
15074 * lisp.h:
15075 * m/ibm370aix.h:
15076 * process.c:
15077 * regex.c:
15078 * s/hpux.h:
15079 * sysdep.c:
15080 * sysselect.h:
15081 * systty.h:
15082 * unexec.c:
15083 * w32term.c:
15084 * xsmfns.c:
15085 * xterm.c: Remove code that deals with obsolete variables.
15086
15087 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15088
15089 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15090 nothing else needs it anymore.
15091
150922008-02-09 Eli Zaretskii <eliz@gnu.org>
15093
15094 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15095 instead of unibyte_char_to_multibyte.
15096
150972008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15098
15099 * s/gnu-linux.h: Remove commented out code.
15100
15101 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15102
15103 * Makefile.in: Update what RMS says about using autoconf.
15104 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15105 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15106 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15107 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15108
151092008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15110
15111 * keymap.c (Fkey_description): Move side effect outside of macro call.
15112
15113 * xfaces.c (Finternal_make_lisp_face):
15114 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15115
15116 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15117 (syms_of_fontset): Use ASET.
15118
15119 * fns.c (concat): Move side effect outside of macro call.
15120 (hash_clear): Use ASET.
15121
151222008-02-08 Richard Stallman <rms@gnu.org>
15123
15124 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15125 If FORCE, and frame has a surrogate minibuffer for another frame,
15126 delete the other frame first.
15127
151282008-02-07 Timo Savola <timo.savola@iki.fi>
15129
15130 * xterm.c (x_detect_focus_change): Handle embed client message.
15131 (handle_one_xevent): Ditto.
15132 (handle_one_xevent): If embedded and we get a button press/release,
15133 request focus.
15134 (xembed_set_info, xembed_send_message): New functions.
15135 (x_make_frame_visible): Call xembed_set_info if embedded.
15136 (x_make_frame_invisible): Call xembed_set_info if embedded.
15137 (x_term_init): Initialize Xatom_XEMBED.
15138 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15139 (x_iconify_frame): Ditto.
15140
15141 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15142 (enum xembed_info, enum xembed_message, enum xembed_focus)
15143 (enum xembed_modifier, enum xembed_accelerator): New.
15144 (xembed_set_info, xembed_send_message): Declare.
15145 (FRAME_X_EMBEDDED_P): New.
15146
15147 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15148 gtk_plug_new.
15149
15150 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15151 window ID of a frame.
15152 (x_window): Reparent frame if embedded.
15153 (Fx_create_frame): Don't set border width if embedded.
15154
15155 * emacs.c (USAGE3): Add --parent-id.
15156 (standard_args): Ditto.
15157
151582008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15159
15160 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15161
151622008-02-07 Jim Meyering <meyering@redhat.com>
15163
15164 Use "do...while (0)", not "if (1)...else" in macro definitions.
15165 The latter provokes a warning from gcc about the empty else, when
15166 followed by ";". Also, without that trailing semicolon, it would
15167 silently swallow up any following statement.
15168 * syntax.h (SETUP_SYNTAX_TABLE)
15169 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15170 * buffer.h (DECODE_POSITION): Likewise.
15171 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15172 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15173 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15174 (FETCH_CHAR_ADVANCE): Likewise.
15175 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15176
151772008-02-07 Jim Meyering <meyering@redhat.com>
15178
15179 * lread.c [lint]: Don't include <sys/inode.h>.
15180
151812008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15182
15183 * xselect.c (x_handle_dnd_message):
15184 * xmenu.c (digest_single_submenu, xmenu_show):
15185 * xdisp.c (with_echo_area_buffer_unwind_data)
15186 (format_mode_line_unwind_data, unwind_format_mode_line)
15187 (display_menu_bar):
15188 * eval.c (Ffetch_bytecode):
15189 * doc.c (store_function_docstring):
15190 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15191 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15192 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15193
151942008-02-07 Kenichi Handa <handa@m17n.org>
15195
15196 * ftxfont.c (ftxfont_open): Don't set
15197 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15198
15199 * ftfont.c (ftfont_open): Fix previous change.
15200
152012008-02-06 Jason Rumney <jasonr@gnu.org>
15202
15203 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15204 Use cached metrics for ASCII characters.
15205 (w32font_open_internal): Don't set font's owning_frame.
15206 Cache metrics for ASCII characters.
15207
15208 * w32font.h (struct w32font_info): Add ascii_metrics.
15209 Remove owning_frame.
15210
152112008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15212
15213 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15214 to negative value.
15215
15216 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15217
15218 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15219
15220 * charset.c (syms_of_charset): Set QCtest and Qeq.
15221
152222008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15223
15224 * process.c (Fstart_process):
15225 * callproc.c (Fcall_process): Handle the case where
15226 Funhandled_file_name_directory returns nil.
15227
15228 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15229 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15230 * font.c (check_gstring): Use them and AREF to access the vector before
15231 we know it's really a gstring.
15232 (Ffont_shape_text): Fix typo.
46e722a9 15233 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15234
15235 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15236 Declare.
15237
15238 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15239
152402008-02-05 Jason Rumney <jasonr@gnu.org>
15241
15242 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15243 Set smallest_font_height and smallest_char_width in display info.
15244
152452008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15246
15247 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15248
152492008-02-05 Miles Bader <miles@gnu.org>
15250
15251 * xfaces.c (get_lface_attributes, merge_named_face)
15252 (lookup_named_face, lookup_derived_face, realize_named_face):
15253 Revert 2008-02-01 change by cyd@stupidchicken.com.
15254
152552008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15256
15257 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15258 fallback fonts.
15259 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15260
152612008-02-04 Jason Rumney <jasonr@gnu.org>
15262
15263 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15264 set full_name.
15265 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15266
152672008-02-03 Jason Rumney <jasonr@gnu.org>
15268
15269 * makefile.w32-in (OBJ1): Include font.o here.
15270 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15271
152722008-02-02 Jason Rumney <jasonr@gnu.org>
15273
15274 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15275
152762008-02-01 Jason Rumney <jasonr@gnu.org>
15277
15278 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15279
15280 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15281
152822008-02-01 Andreas Schwab <schwab@suse.de>
15283
15284 * Makefile.in (shortlisp, lisp): Update for rename of
15285 ../lisp/language/myanmar.el.
15286
152872008-02-01 Chong Yidong <cyd@stupidchicken.com>
15288
15289 * xfaces.c (get_lface_attributes): Delete function.
15290 (merge_named_face, lookup_named_face, lookup_derived_face)
15291 (realize_named_face): Call lface_from_face_name directly, and use
15292 the fact that merge_face_vectors does not alter its FROM argument.
15293
152942008-02-01 Jason Rumney <jasonr@gnu.org>
15295
15296 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15297 input in the default locale. Handle non-Unicode multibyte input.
15298
152992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15300
15301 * fontset.c (reorder_font_vector): Exclude nil elements from the
15302 font group. Don't try multiple fonts.
15303 (fontset_font): Adjust for the above change.
15304 (Finternal_char_font): Return nil if the found font doesn't
15305 contain the character ch.
15306
15307 * Makefile.in (lisp, shortlisp): Add cham.el.
15308
153092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15310
15311 * font.h (FONTP): Make it return 1 also for a font-object.
15312
15313 * .gdbinit (xfontset): New function.
15314
15315 * font.c (font_find_for_lface): Check if the character C is
15316 supported or not only for the first font.
15317
15318 * fontset.c (reorder_font_vector): Fix typo.
15319 (fontset_find_font): Don't add a font-spec specifying a script.
15320 Use 0 (not Qt) for the indication of empty font-group. Change the
15321 format of RFONT-DEF. Return Qt if no font in the font-group
15322 support the character.
15323 (fontset_font): Adjust for the above change. If no font was
15324 found the character, remember that.
15325 (face_for_char): Adjust for the change of RFONT-DEF.
15326 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15327 no font for the target.
15328 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15329
153302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15331
15332 * font.c (font_load_for_face): Handle the case that the font in
15333 face->lface is a string.
15334
153352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15336
15337 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15338
153392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15340
15341 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15342 Fix previous change. If the frame is not on a window system,
15343 signal an error.
15344
153452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15346
15347 * coding.c (decode_coding_object, encode_coding_object): Adjust
15348 marker positions after conversion.
15349
15350 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15351
153522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15353
15354 * font.c (font_find_for_lface): Fix the handling of the return
15355 value of font_has_char.
15356 (Ffont_shape_text): Fix previous change.
15357
15358 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15359 (fontset_ref_and_range): Delete it.
15360 (fontset_find_font): Call char_table_ref_and_range instead of
15361 FONTSET_REF_AND_RANGE.
15362 (make_fontset): Don't setup font groups of Latin here.
15363 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15364 (new_fontset_from_font): Make the specified font the default for
15365 all Latin characters.
15366
153672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15368
15369 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15370 is on a window system before accessing the fontset of the frame.
15371
153722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15373
15374 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15375
15376 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15377 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15378
15379 * font.c (Ffont_shape_text): If the font driver doesn't have a
15380 shaper function, make zero-width glyphs to have at least one-pixel
15381 width. Fix setting of `to' field of glyphs.
15382
153832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15384
15385 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15386 glyphs.
15387
15388 * font.h (struct font_driver): Improve docstring of member `shape'.
15389
153902008-02-01 Kenichi Handa <handa@m17n.org>
15391
15392 * composite.c (syms_of_composite): Fix docstring of
15393 auto-composition-function.
15394
15395 * font.h (LGLYPH_SIZE): New macro.
15396
15397 * font.c (Ffont_fill_gstring): Stop filling when a character not
15398 supported by the font is found.
15399 (Ffont_shape_text): When a shape callback function returns nil,
15400 try at most two more times with larger gstring.
15401 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15402
15403 * xdisp.c (handle_auto_composed_prop): Change the argument to
15404 auto-composition-function.
15405
15406 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15407 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15408 Lispy glyph and store it in the lgstring.
15409
15410 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15411
15412 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15413
154142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15415
15416 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15417
15418 * fontset.c (Vfont_encoding_charset_alist): New variable.
15419 (syms_of_fontset): DEFVAR it.
15420 (reorder_font_vector, fontset_find_font): Optimize for the case of
15421 no need of reordering.
15422 (face_for_char): Map the charset property by
15423 Vfont_encoding_charset_alist.
15424
154252008-02-01 Jason Rumney <jasonr@gnu.org>
15426
15427 * w32font.c (logfonts_match): Don't check adstyle here.
15428 (font_matches_spec): Check here against physical font instead.
15429 (add_font_entity_to_list): Avoid some substitutions.
15430
15431 * font.c (font_parse_fcname): Default weight and slant to normal.
15432 (font_score): Prefer normal fonts if weight or slant unspecified.
15433 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15434 match freetype scores.
15435
154362008-02-01 Jason Rumney <jasonr@gnu.org>
15437
15438 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15439 font, as it may have been deleted.
15440 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15441 most common hyphenless variation.
15442 (logfonts_match): Check generic family.
15443 (font_matches_spec): Don't check generic family here.
15444 (fill_in_logfont): Set generic family based on adstyle.
15445
15446 * w32font.h (w32font_get_cache): Update declaration.
15447
154482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15449
15450 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15451
15452 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15453 If none of the new drivers are available, call font_update_drivers
15454 with the old drivers.
15455
15456 * w32font.c (w32font_get_cache): Adjust the argument type.
15457
15458 * xfont.c (xfont_get_cache): Adjust the argument type.
15459
15460 * font.h (struct font_driver): Change argument type of get_cache.
15461
15462 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15463
15464 * font.c (Ffont_get): Fix arguments to Fassoc.
15465 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15466 (font_clear_cache): New function.
15467 (font_list_entities, font_matching_entity): Use font_get_cache.
15468 (font_update_drivers): Call font_clear_cache when finishing a driver.
15469
15470 * fontset.c (fontset_find_font): Fix previous change.
15471
154722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15473
15474 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15475 dpyinfo->font_table.
15476 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15477 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15478
15479 * font.c (font_at): Handle the case that the arg C is negative.
15480 Handle the unibyte case.
15481 (Ffont_at): Call font_at with the arg C -1.
15482
15483 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15484 the position here, and call font_at with the arg C -1.
15485 Don't check the range of the existing composition at the point.
15486
154872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15488
15489 * fontset.c (fontset_add): New args charset_id and family.
15490 Change caller.
15491 (load_font_get_repertory, fontset_find_font): Assume that
15492 font_spec is always a font-spec object.
15493 (Fset_fontset_font): Always store a font-spec object in a fontset.
15494
15495 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15496 instead of get_property_and_range.
15497
154982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15499
15500 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15501 (xftfont_open): Don't keep locking face.
15502 (xftfont_close): Don't unlock face.
15503 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15504
15505 * fontset.c (fontset_find_font): Don't prefer a font of
15506 supplementary charset.
15507
155082008-02-01 Kenichi Handa <handa@m17n.org>
15509
15510 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15511 script, langsys_tag to langsys, new member script.
15512 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15513 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15514 listing to the script specified in that property. Fix arg to
15515 OTF_check_features.
15516
155172008-02-01 Jason Rumney <jasonr@gnu.org>
15518
15519 * w32font.h: New file.
15520
15521 * w32font.c: Include it.
15522 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15523 (w32font_open): Set owning_frame.
15524 (w32font_text_extents): Use owning_frame.
15525 (struct font_callback_data): Add opentype_only field.
15526 (add_font_entity_to_list): Use it to filter fonts.
15527 Don't check against full name.
15528 (w32font_list_internal): New function.
15529 (w32font_list): Use it.
15530 (w32font_match_internal): New function.
15531 (w32font_match): Use it.
15532 (w32font_open_internal): New function.
15533 (w32font_open): Use it.
15534 (w32font_get_cache, w32font_close, w32font_has_char)
15535 (w32font_encode_char, w32font_text_extents, w32font_draw):
15536 Make non-static.
15537
15538 * makefile.w32-in (w32font.o): Depend on w32font.h.
15539
155402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15541
15542 * charset.c (Fdefine_charset_internal): Record a supplementary
15543 charset at the tail of Vcharset_order_list.
15544
15545 * font.c (Ffont_shape_text): Fix the return value.
15546
15547 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15548
15549 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15550
155512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15552
15553 * ftfont.c (struct OpenTypeSpec): New struct.
15554 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15555 (ftfont_get_open_type_spec): New function.
15556 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15557
15558 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15559
155602008-02-01 Jason Rumney <jasonr@gnu.org>
15561
15562 * w32font.c (add_font_entity_to_list): Compare only the beginning
15563 of full name.
15564
155652008-02-01 Kenichi Handa <handa@m17n.org>
15566
15567 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15568 Never return HANDLED_RECOMPUTE_PROPS.
15569
155702008-02-01 Kenichi Handa <handa@m17n.org>
15571
15572 * font.c (font_gstring_produce): Delete it.
15573
15574 * composite.h (COMPOSITION_METHOD):
15575 Handle COMPOSITION_WITH_GLYPH_STRING.
15576
155772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15578
15579 * xfont.c (Qx): Delete.
15580 (syms_of_xfont): Don't initialize Qx.
15581
15582 * composite.h (enum composition_method):
15583 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15584
155852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15586
15587 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15588 (choose_face_font): Accept new form of font-spec.
15589
15590 * frame.h (font_driver_list): Declare it unconditionally.
15591 (struct frame): Define members font_driver_list and font_data_list
15592 unconditionally.
15593
15594 * fontset.c: Include "font.h" unconditionally.
15595 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15596 (Fset_fontset_font): Accept a font-spec object.
15597
15598 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15599 PIXEL_SIZE part a wild card.
15600
15601 * dispextern.h (struct glyph_string): Define members clip and
15602 num_clips unconditionally.
15603 (struct face): Define members font_info and extra unconditionally.
15604
15605 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15606 ftfont_info only when HAVE_LIBOTF is defined.
15607
156082008-02-01 Andreas Schwab <schwab@suse.de>
15609
15610 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15611 and end.
15612
156132008-02-01 Jason Rumney <jasonr@gnu.org>
15614
15615 * w32font.c (w32font_driver): Add new fields.
15616
156172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15618
15619 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15620 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15621 (LIBES): Add @M17N_FLT_CFLAGS@.
15622
15623 * composite.c (compose_text): Don't treat the new style
15624 composition specially.
15625
15626 * emacs.c (main): Call syms_of_font unconditionally.
15627
15628 * font.h (FONT_ENTITY_NOT_LOADABLE)
15629 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15630 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15631 (struct font_driver): New member shape.
15632 (font_registry_charsets): Extern it.
15633 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15634 (font_otf_capability, font_drive_otf): Delete their externs.
15635
15636 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15637 (font_charset_alist, font_registry_charsets): Move from xfont.c
15638 and rename.
15639 (font_prop_validate_otf): New function.
15640 (font_property_table): Register it for QCotf.
15641 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15642 (font_drive_otf): Delete.
15643 (font_prepare_composition): New arg F. Adjust for the change of
15644 lispy gstring.
15645 (font_find_for_lface): New arg C.
15646 (font_load_for_face): Adjust for the change of font_find_for_lface.
15647 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15648 lispy gstring.
15649 (Ffont_shape_text): New function.
15650 (Fopen_font): If the font size is not given, use 12-pixel.
15651 (Ffont_at): New arg STRING.
15652 (syms_of_font): Initalize font_charset_alist.
15653 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15654 conditionally.
15655
15656 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15657 fonts of the same font-spec. Change the format of RFONT-DEF.
15658 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15659 Adjust for the change of RFONT-DEF.
15660 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15661
15662 * ftfont.h: New file.
15663
15664 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15665 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15666 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15667 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15668 font_otf_capability and font_drive_otf, set ftfont_shape.
15669 (ftfont_list): Adjust for the change of :otf property value.
15670 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15671 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15672 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15673 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15674 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15675 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15676
15677 * w32term.c (x_draw_composite_glyph_string_foreground):
15678 Adjust for the change of lispy gstring.
15679
15680 * xdisp.c (handle_composition_prop): Adjust for the change of
15681 lispy gstring. Call a function for auto-composition with the
15682 third arg it->window.
15683 (fill_composite_glyph_string): Adjust for the change of lispy string.
15684 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15685
15686 * xfaces.c (set_font_frame_param): Adjust for the change of
15687 font_find_for_lface.
15688
15689 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15690 (xfont_registry_charsets): Likewise. Change caller.
15691 (syms_of_xfont): Don't handle x_font_charset_alist.
15692
15693 * xftfont.c: Include "ftfont.h".
15694 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15695 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15696 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15697 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15698 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15699 Set xftfont_driver.shape to xftfont_shape.
15700
15701 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15702 the change of lispy gstring.
15703
157042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15705
15706 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15707
157082008-02-01 Jason Rumney <jasonr@gnu.org>
15709
15710 * w32font.c (w32font_draw): Fill background manually.
15711
157122008-02-01 Jason Rumney <jasonr@gnu.org>
15713
15714 * font.c (Qfontp): Remove unused symbol.
15715 (QCantialias): New symbol.
15716 (syms_of_font): Define it.
15717 (font_property_table): Set a validator for QCantialias.
15718
15719 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15720 Define if not already.
15721 (QCfamily): Share with xfaces.c.
15722 (Qstandard, Qsubpixel, Qnatural): New symbols.
15723 (syms_of_w32font): Define them. Don't define QCfamily here.
15724 (w32_antialias_type, lispy_antialias_type): New functions.
15725 (w32_enumfont_pattern_entity): New arg requested_font.
15726 Set antialias parameter if non-default was requested.
15727 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15728
157292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15730
15731 * lread.c (read1): Undo the previous change.
15732
157332008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15734
15735 * frame.c (Fdelete_frame): Call font_update_drivers only when
15736 USE_FONT_BACKEND is defined.
15737
157382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15739
15740 * font.h (struct font_bitmap): New member bits_per_pixel.
15741 (struct font_driver): New members start_for_frame and end_for_frame.
15742 (struct font_data_list): New struct.
15743 (font_put_frame_data, font_get_frame_data): Extern them.
15744
15745 * frame.h (struct frame): New member font_data_list.
15746
15747 * font.c (font_update_drivers): Call driver->start_for_frame and
15748 driver->end_for_frame at proper timings.
15749 (font_put_frame_data, font_get_frame_data): New functions.
15750 (Ffont_spec): Add usage in the docstring.
15751
15752 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15753 (Fdelete_frame): Call font_update_drivers.
15754
15755 * xftfont.c (struct xftface_info): Delete the member xft_draw.
15756 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
15757 (xftfont_get_xft_draw): New function.
15758 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
15759 (xftfont_end_for_frame): New function.
15760 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
15761
15762 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
15763 Change argument. Cache GCs in the per-frame data.
15764 (struct ftxfont_frame_data): New struct.
15765 (ftxfont_draw_bitmap): New arg gc_fore and flush.
15766 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15767 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
15768 (ftxfont_end_for_frame): New function.
15769 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
15770
15771 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
15772
157732008-02-01 Kenichi Handa <handa@m17n.org>
15774
15775 * xselect.c (Vselection_coding_system)
15776 (Vnext_selection_coding_system): Delete them.
15777 (syms_of_xselect): Don't declare selection-coding-system and
15778 next-selection-coding-system. They are declared in select.el.
15779
157802008-02-01 Jason Rumney <jasonr@gnu.org>
15781
15782 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
15783
15784 * w32fns.c: Include imm.h.
15785 (get_composition_string_fn, get_ime_context_fn): New optional
15786 system functions.
15787 (globals_of_w32fns): Load them from imm32.dll.
15788 (ignore_ime_char): New flag.
15789 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
15790 WM_IME_ENDCOMPOSITION messages.
15791
15792 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
15793 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
15794
157952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15796
15797 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
15798 (READCHAR_REPORT_MULTIBYTE): New macro.
15799 (readchar): New 2nd arg MULTIBYTE.
15800 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
15801 Make symbol's name multibyte according to the multibyteness of the
15802 source.
15803
158042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15805
15806 * xfaces.c (face_for_overlay_string): Call lookup_face with
15807 correct arguments (fix of synching with the trunk).
15808
158092008-02-01 Kenichi Handa <handa@m17n.org>
15810
15811 * font.c (font_prop_validate_symbol, font_prop_validate_style)
15812 (font_prop_validate_non_neg, font_prop_validate_spacing):
15813 Delete argument prop_index.
15814 (font_property_table): Change arguments to validater. Change Callers.
15815 (font_lispy_object): Delete.
15816 (font_at): Use font_find_object instead fo font_lispy_object.
15817
158182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15819
15820 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
15821 and file names.
15822
158232008-02-01 Jason Rumney <jasonr@gnu.org>
15824
15825 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
15826 (font_matches_spec): Remove debug output.
15827 (add_font_entity_to_list): Avoid using substituted fonts.
15828
158292008-02-01 Jason Rumney <jasonr@gnu.org>
15830
15831 * doc.c (Fsnarf_documentation):
15832 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
15833
158342008-02-01 Miles Bader <miles@gnu.org>
15835
15836 * dispextern.h (struct glyph_row): Only define "clip" field if
15837 HAVE_WINDOW_SYSTEM is defined.
15838
158392008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15840
15841 Fix up multi-tty merge.
15842
15843 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
15844 and indentation.
15845
15846 * xfaces.c (free_realized_face, clear_face_gcs):
15847 Include font_done_for_face in the input_blocked section, just in case.
15848
15849 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
15850 (get_char_face_and_encoding): Undo last change and remove the *other*
15851 duplicate definition (i.e. keep the one that's better scoped and that
15852 includes code for the font-backend).
15853
15854 * terminal.c (create_terminal): Default keyboard_coding to
15855 `no-conversion' and terminal_coding to `undecided'.
15856
15857 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
15858
15859 * fontset.c (free_realized_fontsets): Check that the table entry does
15860 contain a fontset before trying to compare it to `base'.
15861
15862 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
15863 syms_of_charset, and syms_of_coding earlier because init_window_once
15864 now needs Vcoding_system_hash_table to be setup.
15865
15866 * coding.h (default_buffer_file_coding): Remove.
15867
15868 * coding.c (default_buffer_file_coding): Remove.
15869 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
15870 than ->symbol, and use the terminal-local coding system.
15871 (syms_of_coding): Don't setup the coding-systems that are not
15872 terminal-local.
15873 (Fdefine_coding_system_internal): Use XCAR/XCDR.
15874
15875 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
15876 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
15877
15878 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
15879 in chartab.c and were re-added here by mistake.
15880 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
15881
15882 * doc.c (Fsnarf_documentation):
15883 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
15884 src to etc.
15885
15886 * ChangeLog.10: Add mistakenly removed entry.
15887
158882008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
15889
15890 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
15891
158922008-02-01 Miles Bader <miles@gnu.org>
15893
15894 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
15895 Add extra args to FACE_FOR_CHAR.
15896
158972008-02-01 Kenichi Handa <handa@m17n.org>
15898
15899 * keymap.c (where_is_internal_1): If key is a cons, store the copy
15900 in sequence.
15901
15902 * chartab.c (map_sub_char_table, map_char_table): If the range
15903 contains just one character, call the function with that character
15904 even if the depth is not 3.
15905
159062008-02-01 Jason Rumney <jasonr@gnu.org>
15907
15908 * w32font.c (w32font_text_extents): Calculate metrics for the
15909 whole string.
15910
159112008-02-01 Jason Rumney <jasonr@gnu.org>
15912
15913 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
15914
159152008-02-01 Jason Rumney <jasonr@gnu.org>
15916
15917 * w32term.c (x_set_glyph_string_clipping): Use
15918 get_glyph_string_clip_rects.
15919 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15920 Adjust for the change of struct glyph_string.
15921
15922 * w32font.c (w32font_draw): Do clipping here.
15923
159242008-02-01 Kenichi Handa <handa@m17n.org>
15925
15926 * xftfont.c (xftfont_draw): Adjust for the change of struct
15927 glyph_string.
15928
15929 * xterm.c (x_set_glyph_string_clipping): Use
15930 get_glyph_string_clip_rects.
15931 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
15932 Adjust for the change of struct glyph_string.
15933
15934 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
15935 the resulting clip(s}.
15936 (expose_overlaps): Add arg r. Change callers. Set it to
15937 row->clip temporarily.
15938 (expose_window): Redraw rows overlapping the exposed area.
15939
15940 * dispextern.h (struct glyph_row): New member clip.
15941 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
15942 clip_height, new member clip, and num_clips.
15943
159442008-02-01 Kenichi Handa <handa@m17n.org>
15945
15946 * data.c (Fchar_or_string_p): Fix docstring.
15947
159482008-02-01 Kenichi Handa <handa@m17n.org>
15949
15950 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
15951 create a temporary XftDraw object.
15952
159532008-02-01 Kenichi Handa <handa@m17n.org>
15954
15955 * font.c (Ffontp): Fix docstring.
15956
15957 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
15958 strong evidence of ISO-2022.
15959
159602008-02-01 Kenichi Handa <handa@m17n.org>
15961
15962 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
15963 SYNTAX_ENTRY_FOLLOW_PARENT.
15964
159652008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15966
15967 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
15968 its type.
15969 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
15970 Update to the new type of weak_hash_tables and next_weak.
15971
15972 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
15973 a plain C pointer to Lisp_Hash_Table.
15974
15975 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
15976 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
15977 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
15978 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
15979 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
15980 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
15981 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
15982 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
15983 (GC_EQ): Remove since they've been identical to their non-GC_
15984 alter-egos ever since the markbit was eradicated.
15985
15986 * alloc.c:
15987 * buffer.c:
15988 * buffer.h:
15989 * data.c:
15990 * fileio.c:
15991 * filelock.c:
15992 * fns.c:
15993 * frame.h:
15994 * lisp.h:
15995 * macterm.c:
15996 * print.c:
15997 * process.c:
15998 * w32fns.c:
15999 * w32menu.c:
16000 * w32term.c:
16001 * xfns.c:
16002 * xmenu.c:
16003 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16004
160052008-02-01 Kenichi Handa <handa@m17n.org>
16006
16007 * chartab.c (map_sub_char_table): Make it work for the top-level
16008 char-table. Fix handling of parent char-table.
16009 (map_char_table): Adjust for the above change.
16010
160112008-02-01 Jason Rumney <jasonr@gnu.org>
16012
16013 * w32font.c (Qgdi): Rename from Qw32.
16014
160152008-02-01 Jason Rumney <jasonr@gnu.org>
16016
16017 * w32bdf.c (get_quoted_string): Make function static.
16018
160192008-02-01 Kenichi Handa <handa@m17n.org>
16020
16021 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16022 bigger ascent and descent than those of the font, use them as
16023 font's ascent and descent.
16024
160252008-02-01 Kenichi Handa <handa@m17n.org>
16026
16027 * Makefile.in (${lispsource}international/charprop.el): Move this
16028 target within "#ifdef HAVE_UNIDATA" and "#endif".
16029
160302008-02-01 Kenichi Handa <handa@m17n.org>
16031
16032 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16033 (shortlisp): Add ../lisp/language/tai-viet.el.
16034
160352008-02-01 Ulrich Mueller <ulm@gentoo.org>
16036
16037 * Makefile.in (${lispsource}international/charprop.el): Depend on
16038 temacs${EXEEXT}.
16039
160402008-02-01 Jason Rumney <jasonr@gnu.org>
16041
16042 * w32font.c (w32font_close): Delete the GDI font object.
16043
16044 * w32menu.c: Include character.h.
16045
16046 * w32proc.c: Likewise.
16047
16048 * w32select.c: Likewise.
16049
16050 * makefile.w32-in (w32proc.o): Depend on character.h.
16051
160522008-02-01 Jason Rumney <jasonr@gnu.org>
16053
16054 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16055
16056 * w32menu.c (syms_of_w32menu): Likewise.
16057
16058 * w32proc.c (syms_of_ntproc): Likewise.
16059
16060 * w32select.c (syms_of_w32select): Likewise.
16061
16062 * w32term.c (syms_of_w32term): Likewise.
16063
160642008-02-01 Jason Rumney <jasonr@gnu.org>
16065
16066 * w32font.c (w32font_draw): Delete brush after using it.
16067
160682008-02-01 Jason Rumney <jasonr@gnu.org>
16069
16070 * w32font.c (w32font_open): Don't set font_idx.
16071 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16072 to font settings.
16073 (w32font_draw): Fill background explicitly.
16074
160752008-02-01 Jason Rumney <jasonr@gnu.org>
16076
16077 * w32term.c (w32_initialize): Don't call w32font_initialize.
16078
16079 * w32font.c (w32font_info): Remove subranges.
16080 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16081 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16082 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16083 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16084 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16085 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16086 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16087 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16088 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16089 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16090 New symbols.
16091 (font_callback_data): New struct.
16092 (w32font_list, w32font_match): Use it.
16093 (w32font_open): Don't populate subranges.
16094 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16095 (w32font_encode_char): Always return unicode code-point as-is.
16096 (w32font_text_extents): Supply a transformation matrix to
16097 GetGlyphOutline. Never look up by glyph index. Avoid looping
16098 twice. Use unicode version of GetTexExtentPoint32 instead of
16099 glyph index version.
16100 (set_fonts_frame): Remove.
16101 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16102 set frame parameter. Use backward compatible fake foundries.
16103 Save generic family in extra slot under QCfamily. Make width slot
16104 constant. Save QCspacing value. Save list of scripts instead of
16105 binary subranges.
16106 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16107 (add_font_entity_to_list): Use font_callback_data struct. Filter
16108 unwanted fonts.
16109 (add_one_font_entity_to_list): Use font_callback_data struct.
16110 (w32_registry): Default to iso10646_1.
16111 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16112 string font registries. Don't fill in font name if it is a generic
16113 family name, fill family instead. Use spacing, family and script
16114 extra info to fill pitch, family and charset fields.
16115 (list_all_matching_fonts): Use font_callback_data struct.
16116 (unicode_range_for_char): Remove.
16117 (font_supported_scripts): New function.
16118 (w32font_initialize): Remove.
16119 (syms_of_w32font): Update which symbols are defined.
16120
161212008-02-01 Jason Rumney <jasonr@gnu.org>
16122
16123 * font.c (font_pixel_size): Reverse assq_no_quit args.
16124
16125 * w32term.h (FONT_WIDTH): Report max width, not average.
16126 (FONT_MAX_WIDTH): Remove.
16127 (FONT_AVG_WIDTH): New macro.
16128
16129 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16130 redefinition of FONT_WIDTH.
16131
16132 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16133 (w32_cache_char_metrics): Use FONT_WIDTH.
16134
16135 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16136
161372008-02-01 Jason Rumney <jasonr@gnu.org>
16138
16139 * w32font.c (w32font_open): Make lfHeight negative.
16140
16141 * w32fns.c (x_default_font_parameter): Use new style font name.
16142 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16143
161442008-02-01 Jason Rumney <jasonr@gnu.org>
16145
16146 * w32font.c (QCsubranges): New symbol.
16147 (w32font_open, w32font_has_char): Get subranges from subproperty
16148 of extra.
16149 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16150 (syms_of_w32font): Define :subranges symbol.
16151
16152 * font.c (font_put_extra): Expose externally.
16153
16154 * font.h (font_put_extra): Move declaration from font.c.
16155
16156 * font.c (Ffont_get): Use font driver to determine otf capability.
16157 (adjust_anchor): Check if driver defines anchor_point before using.
16158
16159 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16160 (w32font_draw): Use options.
16161 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16162 Fix detection of truetype fonts.
16163 (registry_to_w32_charset): Handle charsets other than iso8859-1
16164 expressed as lisp symbols.
16165 (w32_registry): Express charset as lisp symbol.
16166 (fill_in_logfont): Reverse pixel and point height logic.
16167 Don't set width here. Set quality to default.
16168
16169 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16170 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16171
16172 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16173 Remove redundant loop and allocation.
16174
16175 * makefile.w32-in (font.o, w32font.o): New objects.
16176 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16177 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16178
16179 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16180 STORE_XCHARB a valid l-value.
16181
16182 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16183 calculations for non-Truetype fonts.
16184 (x_draw_glyph_string): Sync with xterm.c.
16185 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16186 Remove redundant code.
16187 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16188
16189 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16190 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16191
16192 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16193 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16194
16195 * w32font.c: New file for w32 font backend.
16196
161972008-02-01 Kenichi Handa <handa@m17n.org>
16198
16199 * term.c: Don't include "buffer.h" twice.
16200
162012008-02-01 Kenichi Handa <handa@m17n.org>
16202
16203 * character.c (Funibyte_string): New function.
16204 (syms_of_character): Defsubr it.
16205
162062008-02-01 Jason Rumney <jasonr@gnu.org>
16207
16208 * w32term.c [USE_FONT_BACKEND]:
16209 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16210 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16211 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16212 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16213 (x_free_frame_resources): Sync with xterm.c.
16214
162152008-02-01 Andreas Schwab <schwab@suse.de>
16216
16217 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16218 char-table size.
16219
162202008-02-01 Kenichi Handa <handa@m17n.org>
16221
16222 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16223
162242008-02-01 Kenichi Handa <handa@m17n.org>
16225
16226 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16227 font_otf_gpos, add font_drive_otf.
16228
16229 * fontset.c (fontset_find_font): Pay attention to font size
16230 specified for a font.
16231 (reorder_font_vector): Check contents of font_def.
16232
16233 * font.c (struct otf_list): Delete it.
16234 (otf_list): Make it a lisp variable.
16235 (otf_open): Use lispy otf_list.
16236 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16237 (check_otf_features): New function.
16238 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16239 New functions.
16240 (font_drive_otf): New function merging font_otf_gsub and
16241 font_otf_gpos.
16242 (font_open_for_lface): New arg spec. Change argument order.
16243 (font_load_for_face): Adjust for the change of font_open_for_lface.
16244 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16245 Ffont_otf_gpos.
16246 (syms_of_font): Staticpro otf_list. Delete defsubr of
16247 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16248
16249 * xfaces.c (set_font_frame_param): Adjust for the change of
16250 font_open_for_lface.
16251
16252 * font.h (font_open_for_lface): Adjust prototype.
16253 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16254 member otf_drive.
16255 (font_otf_gsub, font_otf_gpos): Delete externs.
16256 (font_drive_otf): Extern it.
16257
162582008-02-01 Kenichi Handa <handa@m17n.org>
16259
16260 * font.c (font_at): If the window W is not on a window system,
16261 return Qnil.
16262
16263 * coding.c (produce_chars, encode_coding): Don't call
16264 insert_from_gap if no characters to produce.
16265
162662008-02-01 Kenichi Handa <handa@m17n.org>
16267
16268 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16269 Fclear_face_cache.
16270
16271 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16272
162732008-02-01 Miles Bader <miles@gnu.org>
16274
16275 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16276 Parse "--disable-font-backend" option.
16277 (standard_args): Add "--disable-font-backend" option.
16278
162792008-02-01 Kenichi Handa <handa@m17n.org>
16280
16281 * fontset.c (fontset_find_font): New function.
16282 (fontset_font): Use fontset_find_font.
16283 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16284 Register the specified font for all Latin characters.
16285 (new_fontset_from_font): Register the specified font for all Latin
16286 characters.
16287 (dump_fontset): For a realized fontset, include the base fontset
16288 name in the returned vector.
16289
162902008-02-01 Kenichi Handa <handa@m17n.org>
16291
16292 * character.h (CHAR_STRING): Cast C to unsigned on calling
16293 char_string.
16294
16295 * character.c (char_string): Type of arg C changed to unsigned.
16296 Signal an error if C is an invalid character code.
16297
16298 * editfns.c (general_insert_function, Fchar_to_string):
16299 Use CHARACTERP, not INTEGERP.
16300
163012008-02-01 Kenichi Handa <handa@m17n.org>
16302
16303 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16304 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16305
16306 * regex.c (analyse_first): Fix for multibyte characters in "case
16307 charset:" and "case categoryspec:".
16308
163092008-02-01 Andreas Schwab <schwab@suse.de>
16310
16311 * Makefile.in (LIBES): Move standard libraries to the end.
16312
163132008-02-01 Kenichi Handa <handa@m17n.org>
16314
16315 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16316 nonzero, don't shrink the buffer nextb.
16317
16318 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16319
16320 * coding.c (coding_alloc_by_making_gap): New arg offset.
16321 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16322 offset.
16323 (decode_coding_iso_2022): Update coding->safe_charsets.
16324 (decode_coding_gap): Temporarily set
16325 current_buffer->text->inhibit_shrinking to 1.
16326
163272008-02-01 Kenichi Handa <handa@m17n.org>
16328
16329 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16330 indexing into elements of s->cmp and s->char2b.
16331
163322008-02-01 Juanma Barranquero <lekktu@gmail.com>
16333
16334 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16335
163362008-02-01 Kenichi Handa <handa@m17n.org>
16337
16338 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16339 target_multibyte instead of multibyte.
16340 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16341 (bcmp_translate): Change the argument name from multibyte to
16342 target_multibyte.
16343
163442008-02-01 Kenichi Handa <handa@m17n.org>
16345
16346 These changes are to compile a regexp into a pattern that can be
16347 used both for multibyte and unibyte targets.
16348
16349 * Makefile.in (search.o): Depend on charset.h.
16350
16351 * character.c (multibyte_char_to_unibyte_safe): New function.
16352
16353 * search.c: Include "charset.h".
16354 (compile_pattern_1): Delete argument multibyte. Don't set
16355 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16356 (compile_pattern): Don't compare cp->buf.target_multibyte.
16357 Compare cp->buf.charset_unibyte.
16358 (compile_pattern): Set cp->buf.target_multibyte.
16359
16360 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16361
16362 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16363
16364 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16365 multibyte. Change callers.
16366 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16367 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16368 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16369 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16370 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16371 (regex_compile): Make the compiled pattern usable both for
16372 multibyte and unibyte targets.
16373 (analyse_first): Make the fastmap usable both for multibyte and
16374 unibyte targets.
16375 (TRANSLATE_VIA_MULTIBYTE): Delete.
16376 (re_match_2_internal): Pay attention to the case that the
16377 multibyteness of bufp and target may be different.
16378
163792008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16382 empty box occupy at least one column width.
16383
163842008-02-01 Miles Bader <miles@gnu.org>
16385
16386 * Makefile.in: Remove redundant HAVE_XFT clause.
16387
163882008-02-01 Kenichi Handa <handa@m17n.org>
16389
16390 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16391
163922008-02-01 Kenichi Handa <handa@m17n.org>
16393
16394 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16395 being nil.
16396
163972008-02-01 Kenichi Handa <handa@m17n.org>
16398
16399 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16400
164012008-02-01 Kenichi Handa <handa@m17n.org>
16402
16403 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16404
164052008-02-01 Kenichi Handa <handa@m17n.org>
16406
16407 * search.c (simple_search): Fix previous change.
16408
164092008-02-01 Kenichi Handa <handa@m17n.org>
16410
16411 * xftfont.c (ftfont_font_format): Extern declaration.
16412
16413 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16414
16415 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16416 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16417
16418 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16419 (ftfont_font_format): Fix previous change.
16420
16421 * font.h (Ffont_xlfd_name): EXFUN it.
16422
16423 * font.c (font_parse_xlfd): Fix the array size of `f'.
16424 (register_font_driver): Use EQ to compare driver->type.
16425
16426 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16427 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16428 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16429
164302008-02-01 Kenichi Handa <handa@m17n.org>
16431
16432 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16433 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16434
164352008-02-01 Kenichi Handa <handa@m17n.org>
16436
16437 * xfont.c (xfont_open): Set font->format.
16438
16439 * xftfont.c (xftfont_open): Set font->format.
16440
16441 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16442 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16443 (ftfont_open): Set font->format.
16444 (ftfont_font_format): New function.
16445
16446 * font.h (struct font): New member format.
16447
16448 * font.c (Qopentype): New variable.
16449 (syms_of_font): Defsym it.
16450 (Fquery_font): Change the format of the last element of the return
16451 value.
16452
164532008-02-01 Kenichi Handa <handa@m17n.org>
16454
16455 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16456 last resort.
16457
164582008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * coding.c (detect_coding_charset): Fix detection of multi-byte
16461 charset.
16462
164632008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16464
16465 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16466
164672008-02-01 Kenichi Handa <handa@m17n.org>
16468
16469 * xdisp.c (get_next_display_element): Set it->face_id for the
16470 first component of a composition.
16471 (x_produce_glyphs): Check if the font is changed or not for composition.
16472
164732008-02-01 Kenichi Handa <handa@m17n.org>
16474
16475 * fontset.c (Qlatin): New variable.
16476 (syms_of_fontset): Define it as a lisp symbol.
16477 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16478
164792008-02-01 Kenichi Handa <handa@m17n.org>
16480
16481 * font.c (font_unparse_fcname): Pay attention to the case that
16482 some of font property is a null string.
16483
164842008-02-01 Kenichi Handa <handa@m17n.org>
16485
16486 * term.c: Include "composite.h".
16487 (encode_terminal_code): Output all components of composition.
16488 Check the size of encode_terminal_src.
16489 (produce_glyphs): For composition, call produce_composite_glyph.
16490 (append_composite_glyph, produce_composite_glyph): New functions.
16491
16492 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16493 is not found, get font_info from the current ascii face.
16494
164952008-02-01 Kenichi Handa <handa@m17n.org>
16496
16497 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16498 buffer-file-name to Qnil before calling insert_from_buffer.
16499
16500 * font.c (font_unparse_fcname): Pay attention to the case that
16501 foundry is a null string.
16502
165032008-02-01 Kenichi Handa <handa@m17n.org>
16504
16505 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16506
16507 * font.c (Qunicode_sip): New variable.
16508 (syms_of_font): Declare it as a Lisp symbol.
16509
16510 * font.h (Qunicode_sip): Extern it.
16511
165122008-02-01 Kenichi Handa <handa@m17n.org>
16513
16514 * composite.c (get_composition_id): Pay attention to TAB component.
16515
16516 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16517 TAB. Adjust for the change of s->char2b which always points to
16518 the first element of allocated memory.
16519
16520 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16521
16522 * xdisp.c (handle_composition_prop): Set it->c to the first
16523 non-TAB component.
16524 (fill_composite_glyph_string): Change argument.
16525 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16526 (x_produce_glyphs): Fix handling of left/right padding.
16527
165282008-02-01 Kenichi Handa <handa@m17n.org>
16529
16530 * coding.c (detect_coding_system): Fix for handling off
16531 inhibit_iso_escape_detection. Fix for the case that no coding
16532 system is defined for a specific coding category.
16533
165342008-02-01 Kenichi Handa <handa@m17n.org>
16535
16536 * font.c (font_matching_entity): Delete unused local var.
16537
16538 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16539 opening a font.
16540
16541 * fileio.c (Finsert_file_contents): On recovering a file, assume
16542 Unix-like eol.
16543 (choose_write_coding_system): On auto-saving a file, force
16544 Unix-like eol.
16545
16546 * coding.c (setup_coding_system): Fix setting of
16547 coding->common_flags based on eol_type.
16548 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16549 inherit from it.
16550
165512008-02-01 Kenichi Handa <handa@m17n.org>
16552
16553 * alloc.c (NSTATICS): Increas to 0x600.
16554
165552008-02-01 Kenichi Handa <handa@m17n.org>
16556
16557 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16558 (ftfont_list): Don't check :name property.
16559 (ftfont_match): New function.
16560 (ftfont_pattern_entity): If the pattern doesn't contain
16561 FC_SPACING, don't assume FC_MONO.
16562
16563 * font.h (struct font_driver): New member `match'.
16564 (font_update_drivers): Adjust prototype.
16565
16566 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16567 property of FONT.
16568 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16569 them unconditionally.
16570 (font_matching_entity): New function.
16571 (font_open_by_name): Try font_matching_entity if exact match is
16572 not found.
16573 (font_update_drivers): Delete the arg FONT. Return a list of
16574 actually used backends. Don't free faces, font caches here.
16575 Don't store data in frame parameters. Don't call x_set_font.
16576 (Ffont_spec): Store :name property as is.
16577 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16578 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16579 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16580 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16581 Call font->driver->otf_gsub instead of font_otf_gsub.
16582
16583 * frame.c (x_set_font_backend): Do more works that were done in
16584 font_update_drivers before.
16585
16586 * xfont.c (xfont_match): New function.
16587 (xfont_driver): Set xfont_driver.match to xfont_match.
16588 (xfont_draw): Set font in GC if necessary.
16589
16590 * ftxfont.c (ftxfont_match): New function.
16591 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16592
16593 * xftfont.c (xftfont_match): New function.
16594 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16595
165962008-02-01 Kenichi Handa <handa@m17n.org>
16597
16598 * font.h (struct font): New member scalable.
16599 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16600 (font_otf_gsub): Adjust prototype.
16601
16602 * font.c (font_otf_capability): Fix handling of the default langsys.
16603 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16604 Check the contents of SPEC.
16605 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16606 (check_gstring): New function.
16607 (REPLACEMENT_CHARACTER): New macro.
16608 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16609 glyph codes of GSTRING.
16610 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16611 (font_prepare_composition): Set cmp->glyph_len.
16612 (font_open_entity): Set font->scalable.
16613 (Ffont_get): Handle :otf property.
16614 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16615 functions.
16616 (Fquery_font): Use font->font.full_name.
16617 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16618 Sfont_otf_alternates.
16619
16620 * ftfont.c (ftfont_open): Set font->font.full_name and
16621 font->font.name properly. Fix calculation of font->font.height
16622 and font->min_width.
16623
16624 * ftxfont.c (ftxfont_create_gcs): New function.
16625 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16626 (ftxfont_draw_backgrond): Fix filling region.
16627 (ftxfont_default_fid): New function.
16628 (ftxfont_open): Set xfont->fid to the return value of
16629 ftxfont_default_fid.
16630 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16631 (ftxfont_done_face): Free only GCs that are created by
16632 ftxfont_create_gcs.
16633 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16634
16635 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16636 Clip to src->width, etc (not src->clip_XXX).
16637
16638 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16639 FontBackend frame parameter.
16640
166412008-02-01 Kenichi Handa <handa@m17n.org>
16642
16643 * font.h (struct font_driver_list): New member `on'.
16644 (Fclear_font_cache): EXFUN it.
16645 (font_update_drivers): Extern it.
16646
16647 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16648 (font_list_entities): Check driver_list->on.
16649 (register_font_driver): Initalize `on' member to 0.
16650 (font_update_drivers): New function.
16651 (Fclear_font_cache): Check driver_list->on.
16652
16653 * frame.h (Qfont_backend): Extern it.
16654 (x_set_font_backend): Extern it.
16655
16656 * frame.c (Qfont_backend): New variable.
16657 (frame_parms): New element for font-backend.
16658 (x_set_font_backend): New function.
16659
16660 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16661 FontBackend frame parameter.
16662 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16663 x_set_font_backend.
16664
16665 * xfont.c (xfont_list): Don't try listing by :name property if the
16666 name is not for XLFD.
16667
166682008-02-01 Kenichi Handa <handa@m17n.org>
16669
16670 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16671 (LGLYPH_SET_TO): New macros.
16672 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16673 element of G is vector or not.
16674 (font_at): Extern it.
16675
16676 * font.c: Include window.h.
16677 (font_lispy_object): New function.
16678 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16679 end of valid glyph.
16680 (font_close_object): Fix getting (struct font *).
16681 (font_at): New function.
16682 (Ffont_get): If FONT is a font-object, get entity from it.
16683 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16684 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16685 range check.
16686 (Ffont_at): New function.
16687 (syms_of_font): Defsubr Sfont_at.
16688
16689 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16690 before the entry for Qcomposition.
16691 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16692 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16693 the font in gstring.
16694 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16695 LGLYPH_FORM (g) to detect the end of valid glyph.
16696 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16697 we are composing with gstring.
16698
16699 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16700 Check if adjustment is vector or not.
16701
16702 * Makefile.in (font.o): Make it depends on window.h.
16703
167042008-02-01 Kenichi Handa <handa@m17n.org>
16705
16706 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16707 adjustment is vector or not.
16708
167092008-02-01 Miles Bader <miles@gnu.org>
16710
16711 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16712
167132008-02-01 Kenichi Handa <handa@m17n.org>
16714
16715 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16716 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16717 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16718
16719 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16720 (DEVICE_DELTA): Fix typo.
16721 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16722 LGLYPH format.
16723
16724 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16725 the change of LGLYPH format.
16726
167272008-02-01 Kenichi Handa <handa@m17n.org>
16728
16729 * ftfont.c (ftfont_list): Fix typo.
16730 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16731
167322008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16733
16734 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16735
16736 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16737 xftface_info is non-NULL.
16738
167392008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16740
16741 * ftfont.c (ftfont_list): Move misplaced #endif.
16742
167432008-02-01 Kenichi Handa <handa@m17n.org>
16744
16745 * ftfont.c (ftfont_list): Pay attention to the case that
16746 FC_CAPABILITY is not defined.
16747
167482008-02-01 Kenichi Handa <handa@m17n.org>
16749
16750 * xftfont.c (xftfont_open): Set charset related members to -1.
16751
16752 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16753 QCname.
16754 (ftfont_open): Set charset related members to -1.
16755
16756 * fontset.c (Votf_script_alist): New variable.
16757 (syms_of_fontset): Initialize it.
16758 (fontset_font): Delete unused variable.
16759
16760 * fontset.h (Votf_script_alist): Extern it.
16761
16762 * font.c (font_find_for_lface): Optimize code.
16763
16764 * font.h (font_close_object, font_merge_old_spec): Extern them.
16765
167662008-02-01 Kenichi Handa <handa@m17n.org>
16767
16768 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
16769 (syms_of_font): Initialize them.
16770 (font_pixel_size): Allow float value in dpi.
16771 (font_prop_validate_type): Delete.
16772 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
16773 Change caller.
16774 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
16775 (font_prop_validate_extra): Delete.
16776 (font_prop_validate_spacing): New function.
16777 (font_property_table): Add elements for all known properties.
16778 (get_font_prop_index): Rename from check_font_prop_name. New
16779 argument FROM. Change caller.
16780 (font_prop_validate): Validate all known properties.
16781 (font_put_extra): Delete argument force. Change caller.
16782 (font_expand_wildcards): Make it static. Fix the way of shrinking
16783 the possible range.
16784 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
16785 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
16786 Change caller.
16787 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
16788 (font_parse_fcname): Delete argument merge. Fix parsing of point
16789 size. Don't validate properties values here. Change caller.
16790 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
16791 (font_open_by_name): Delete unused variable.
16792 (Ffont_spec): Likewise. Validate property values.
16793 (Ffont_match_p): New function.
16794
16795 * font.h (QCscalable): Extern it.
16796 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
16797
16798 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
16799
16800 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
16801 (xfont_list_pattern): New function.
16802 (xfont_list): Use xfont_list_pattern.
16803
168042008-02-01 Kenichi Handa <handa@m17n.org>
16805
16806 * font.h (Flist_fonts): EXFUN it.
16807
168082008-02-01 Jason Rumney <jasonr@gnu.org>
16809
16810 * w32term.c (w32_initialize): Add back smoothing_type and
16811 smoothing_enabled definitions.
16812
168132008-02-01 Kenichi Handa <handa@m17n.org>
16814
16815 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
16816 s->face->font on determining underline position.
16817
168182008-02-01 Kenichi Handa <handa@m17n.org>
16819
16820 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
16821 (font_has_char): Accept font-object too.
16822 (font_find_for_lface): Try at first with a size specified in face.
16823
168242008-02-01 Kenichi Handa <handa@m17n.org>
16825
16826 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
16827 font_open_by_name.
16828
168292008-02-01 Kenichi Handa <handa@m17n.org>
16830
16831 * font.h (QCspacing, QCdpi): Extern them.
16832 (enum font_spacing): New enum.
16833 (FONT_PIXEL_SIZE_QUANTUM): New macro.
16834
16835 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
16836 (QCspacing, QCdpi): New variables.
16837 (syms_of_font): Initialize them.
16838 (font_pixel_size): New function.
16839 (font_put_extra): New function.
16840 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
16841 in FONT_EXTRA.
16842 (font_parse_fcname): Handle enumerated values (e.g. bold).
16843 Fix handling font size. Add QCname property that contains only
16844 unknown properties.
16845 (font_score): Change argument. Change caller. Pay attention to
16846 FONT_PIXEL_SIZE_QUANTUM.
16847 (font_sort_entites, font_list_entities, font_find_for_lface)
16848 (font_open_for_lface, font_open_by_name): Fix handling of font size.
16849 (Ffont_spec): Add QCname property that contains only unknown properties.
16850
16851 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
16852 include weight in listing pattern, instead check weight of each
16853 listed font. Don't include scalable in pattern. Pay attention to
16854 FONT_PIXEL_SIZE_QUANTUM.
16855
168562008-02-01 Kenichi Handa <handa@m17n.org>
16857
16858 * font.c (font_parse_fcname): Fix parsing of point-size.
16859 (font_unparse_fcname): Produce symbolic names for style properties.
16860 (font_list_entities): Handle float size correctly.
16861 (font_open_by_name): Prefer `normal' property values if the name
16862 doesn't specify them.
16863
16864 * fontset.c (Finternal_char_font): Use font_get_name, not
16865 Ffont_xlfd_name.
16866
16867 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
16868 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
16869 pattern. Don't force scalable.
16870
16871 * xftfont.c (xftfont_open): For generating a name, start from
16872 96-byte buffer.
16873
168742008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16875
16876 * frame.h (x_new_fontset2): Fix prototype.
16877
168782008-02-01 Kenichi Handa <handa@m17n.org>
16879
16880 * font.h (struct font_driver): Delete member parse_name.
16881 (font_match_p, font_get_spec, font_parse_fcname)
16882 (font_unparse_fcname): Extern them.
16883 (font_get_name): Adjust prototype.
16884
16885 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
16886 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
16887 (font_expand_wildcards): Fix handling ENCODING field. Avoid
16888 unnecessary checks for weight, slant, and swidth.
16889 (font_parse_fcname): New function.
16890 (font_unparse_fcname): New function.
16891 (font_parse_name): New function.
16892 (font_match_p): New function.
16893 (font_get_name): Change return value to Lisp string.
16894 (font_get_spec): New function.
16895 (Qunspecified, Qignore_defface): Don't extern them.
16896 (font_find_for_lface): Assume that LFACE is fully specified.
16897 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
16898 object, use it for FACE.
16899 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
16900 driver->parse_name.
16901 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
16902
16903 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
16904 prototype.
16905
16906 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
16907 argument F. Don't call Fnew_fontset. Instead, directly call
16908 make_fontset.
16909
16910 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
16911
16912 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
16913 of x_new_fontset2.
16914
16915 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
16916 (Qsans__serif): New variables.
16917 (ftfont_generic_family_list): New variable.
16918 (syms_of_ftfont): Initialize the above variables.
16919 (ftfont_pattern_entity): Delete argument NAME.
16920 (ftfont_list_generic_family): New function.
16921 (ftfont_parse_name): Delete this function.
16922 (ftfont_list): Try generic family only when FcFontList found no font.
16923 (ftfont_list_family): Fix args to FcObjectSetBuild.
16924
16925 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
16926 object in attrs[LFACE_FONT_INDEX].
16927 (set_lface_from_font_name): Cancel all changes for font-backend.
16928 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
16929 function.
16930 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
16931 font object in QCfont attribute.
16932 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
16933 (realize_default_face) [USE_FONT_BACKEND]: Call
16934 set_lface_from_font_and_fontset.
16935
16936 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
16937 "fixed", and signal error here if no suitable font was found.
16938
16939 * xfont.c (xfont_parse_name): Delete this function.
16940
16941 * xftfont.c (xftfont_open): Change coding style of error
16942 handling. Generate fontconfig's fontname pattern.
16943
16944 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
16945 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
16946
16947 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
16948 Both args FONTSET and FONT_OBJECT must be existing ones.
16949
169502008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16951
16952 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
16953
169542008-02-01 Kenichi Handa <handa@m17n.org>
16955
16956 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
16957
16958 * font.h (struct font): Fix typo.
16959
16960 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
16961 XLFD_XXX_INDEX.
16962 (enum xlfd_field_mask): New enum.
16963 (intern_font_field): Changed argument. Change caller. If digits
16964 are followed by non-digits, return a symbol.
16965 (font_expand_wildcards): New function.
16966 (font_parse_xlfd): Fix wildcard handling.
16967 (Ffont_spec): If :name is specified, reflect the info in the other
16968 properties.
16969
16970 * ftfont.c (ftfont_pattern_entity): Fix typo.
16971 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
16972 locale.
16973
169742008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
16977
16978 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
16979 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
16980 registry doesn't specify encoding part.
16981 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
16982 (font_open_by_name): At first try parsing the name.
16983 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
16984 as Lisp symbols.
16985
16986 * fontset.c (reorder_font_vector): Pay attention to the case that
16987 the 3rd element of font_def is nil.
16988 (fontset_font): For the default fontset, append one more fontset
16989 elements for a script-based font specification. Don't add script
16990 attribute on finding a font.
16991 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
16992 font name.
16993 (fontset_ascii_font): If a font can't be opened, return nil.
16994
16995 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16996 (ftfont_pattern_entity): New function.
16997 (ftfont_get_cache): Assume that freetype_font_cache is already
16998 initialized.
16999 (ftfont_list): Handle the case that a file is specified in font
17000 name. Use ftfont_pattern_entity to generate entities.
17001 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17002 (syms_of_ftfont): Initialize freetype_font_cache.
17003
17004 * xftfont.c (xftfont_open): Make the font name fontconfig's
17005 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17006 (xftfont_close): Free font->font.name if not NULL.
17007
17008 * xfont.c (xfont_list): If script is specified for a font, return
17009 null_vector.
17010 (xfont_list_family): Declare argument type.
17011
17012 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17013 name, set LFACE_FONT (lface) to nil.
17014
17015 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17016 return Qnil.
17017
170182008-02-01 Kenichi Handa <handa@m17n.org>
17019
17020 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17021 (standard_args): Add "-enable-font-backend".
17022
170232008-02-01 Kenichi Handa <handa@m17n.org>
17024
17025 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17026 (struct xftdraw_list, xftdraw_list): Delete them.
17027 (register_xftdraw, check_xftdraw): Delete them.
17028 (xftfont_prepare_face): Don't call register_xftdraw.
17029 (xftfont_done_face): Don't call check_xftdraw.
17030 (xftfont_draw): Get background color only when with_background is
17031 nonzero.
17032
17033 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17034
170352008-02-01 Kenichi Handa <handa@m17n.org>
17036
17037 These changes are for the new font handling codes.
17038
17039 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17040 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17041 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17042 (FONTSRC, FONTOBJ): New variables.
17043 (obj): Add $(FONTOBJ).
17044 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17045 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17046 @LIBOTF_LIBS@.
17047 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17048 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17049
17050 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17051
17052 * character.h (Vscript_representative_chars): Extern it.
17053
17054 * character.c (Vscript_representative_chars): New variable.
17055 (syms_of_character): Declare it as a Lisp variable.
17056
17057 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17058 enable_font_backend is nonzero, accept the composition method
17059 COMPOSITION_WITH_GLYPH_STRING.
17060
17061 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17062 enumeration COMPOSITION_WITH_GLYPH_STRING.
17063
17064 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17065 members clip_x, clip_y, clip_width, and clip_height.
17066 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17067
17068 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17069 --enable-font-backend. Call syms_of_font.
17070
17071 * fns.c (assoc_no_quit): New function.
17072
17073 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17074 (face_for_font, new_fontset_from_font)
17075 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17076
17077 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17078 (fontset_font, fontset_ascii, face_for_char)
17079 (make_fontset_for_ascii_face, Ffont_info)
17080 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17081 is nonzero, use font-backend mechanism.
17082 (find_font_encoding): Make it non-static.
17083 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17084 New functions.
17085
17086 * frame.h (struct frame): New members resx and resy.
17087 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17088 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17089
17090 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17091 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17092
17093 * lisp.h (assoc_no_quit): Extern it.
17094
17095 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17096 Through out the file, use FONT_INFO_FROM_FACE instead of
17097 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17098 rif->per_char_metric.
17099 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17100 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17101 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17102 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17103 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17104 nonzero, use font-backend mechanism.
17105 (get_per_char_metric): New function.
17106
17107 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17108 (set_lface_from_font_name)
17109 (set_font_frame_param, free_realized_face)
17110 (prepare_face_for_display, clear_face_gcs)
17111 (Finternal_set_font_selection_order, realize_x_face)
17112 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17113 font-backend mechanism.
17114 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17115 (load_face_font) [USE_FONT_BACKEND]: Abort.
17116 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17117 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17118
17119 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17120 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17121 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17122 nonzero, register all available font drivers. Call
17123 x_default_font_parameter for deciding a font.
17124 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17125
17126 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17127 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17128 (x_set_glyph_string_clipping_exactly)
17129 (x_compute_glyph_string_overhangs)
17130 (x_draw_glyph_string_foreground)
17131 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17132 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17133 enable_font_backend is nonzero, use font-backend mechanism.
17134 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17135
171362008-02-01 Kenichi Handa <handa@m17n.org>
17137
17138 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17139 system_eol_type.
17140 (syms_of_coding): Initialize system_eol_type.
17141
17142 * process.c (Fset_process_coding_system): Inherit system's eol
17143 format if necessary.
17144
171452008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17146
17147 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17148
171492008-02-01 Kenichi Handa <handa@m17n.org>
17150
17151 * coding.c (decode_eol): Pay attention to buffer relocation in
17152 del_range_2.
17153 (decode_coding): Call decode_eol before restoring undo_list.
17154
171552008-02-01 Kenichi Handa <handa@m17n.org>
17156
17157 * charset.c (Fdefine_charset_internal): Fix setting of
17158 emacs_mule_bytes.
17159
171602008-02-01 Kenichi Handa <handa@m17n.org>
17161
17162 * keyboard.c (read_char): Check if C is a character or not before
17163 looking up Vkeyboard_translate_table.
17164
171652008-02-01 Kenichi Handa <handa@m17n.org>
17166
17167 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17168 condition to terminate the loop.
17169
171702008-02-01 Kenichi Handa <handa@m17n.org>
17171
17172 * coding.c (produce_composition): Compare charbuf[i] instead of
17173 args[i] against 0.
17174 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17175
171762008-02-01 Kenichi Handa <handa@m17n.org>
17177
17178 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17179 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17180 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17181 detect_coding.
17182 (emacs_mule_char): Handle old style (Emacs 20) component character
17183 of a composition.
17184 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17185 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17186 composition rule.
17187 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17188
171892008-02-01 Kenichi Handa <handa@m17n.org>
17190
17191 * coding.c (encode_coding_ccl): Allocate destination dynamically
17192 when necessary.
17193
171942008-02-01 Kenichi Handa <handa@m17n.org>
17195
17196 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17197 the loop. When quitted, show a proper error message.
17198
171992008-02-01 Kenichi Handa <handa@m17n.org>
17200
17201 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17202 src->clip_head and src->clip_tail temporarily instead of src->hl.
17203
17204 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17205 character sequence.
17206 (Fccl_execute_on_string): Use ASET, not XSET.
17207
172082008-02-01 Kenichi Handa <handa@m17n.org>
17209
17210 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17211
172122008-02-01 Kenichi Handa <handa@m17n.org>
17213
17214 * coding.c (decode_coding): Fix the condition of terminating the
17215 decoding loop.
17216
172172008-02-01 Kenichi Handa <handa@m17n.org>
17218
17219 * data.c (Faset): On setting a character bigger than 255 in a
17220 unibyte string, signal an error instead of make the string multibyte.
17221
172222008-02-01 Kenichi Handa <handa@m17n.org>
17223
17224 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17225 made by a mapping table.
17226
172272008-02-01 Kenichi Handa <handa@m17n.org>
17228
17229 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17230 not.
17231 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17232 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17233
17234 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17235 s->face is NULL or not.
17236
172372008-02-01 Kenichi Handa <handa@m17n.org>
17238
17239 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17240 (x_draw_glyph_string): Fix drawing of right_overhang and
17241 left_overhang around/on cursor.
17242
17243 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17244
172452008-02-01 Kenichi Handa <handa@m17n.org>
17246
17247 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17248
172492008-02-01 Kenichi Handa <handa@m17n.org>
17250
17251 * coding.c (Fdefine_coding_system_internal)
17252 (Fdefine_coding_system_alias): Avoid a duplicated element in
17253 Vcoding_system_alist.
17254
172552008-02-01 Kenichi Handa <handa@m17n.org>
17256
17257 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17258
17259 * coding.c (Qcoding_system_define_form): New variable.
17260 (syms_of_coding): Intern and staticpro it.
17261 (Fcoding_system_p): Check Qcoding_system_define_form.
17262 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17263
17264 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17265 Fcoding_system_p.
17266 (CHECK_CODING_SYSTEM): If ID is not available, call
17267 Fcheck_coding_system.
17268 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17269 Try also Fcheck_coding_system.
17270
172712008-02-01 Kenichi Handa <handa@m17n.org>
17272
17273 * coding.c (code_conversion_restore): GCPRO arg.
17274
172752008-02-01 Kenichi Handa <handa@m17n.org>
17276
17277 * character.c (lisp_string_width): Check multibyteness of STRING.
17278
172792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17280
17281 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17282 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17283 (decode_mac_font_name): Use decode_coding_c_string instead of
17284 decode_coding.
17285 (x_load_font): Initialize fontp->fontset to -1. Set
17286 fontp->encoding_type.
17287
172882008-02-01 Kenichi Handa <handa@m17n.org>
17289
17290 * search.c (search_buffer): Give up BM search on case-fold-search
17291 if one of a target character has a case-equivalence of different
17292 byte length even if that target charcter is an ASCII.
17293 (simple_search): Fix calculation of byte length of matched text.
17294 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17295
172962008-02-01 Kenichi Handa <handa@m17n.org>
17297
17298 * coding.c (decode_coding): Fix handling of invalid bytes.
17299
173002008-02-01 Kenichi Handa <handa@m17n.org>
17301
17302 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17303 Unicode characters.
17304
173052008-02-01 Kenichi Handa <handa@m17n.org>
17306
17307 * coding.c (encode_coding_object): If a pre-write-conversion
17308 function makes a new buffer, kill it.
17309
173102008-02-01 Kenichi Handa <handa@m17n.org>
17311
17312 * coding.c (QCascii_compatible_p): New variable.
17313 (syms_of_coding): Initialize it.
17314 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17315 calling string_char.
17316 (record_conversion_result): Add `default:' case.
17317 (coding_charset_list): Delete unused variable `coding_type'.
17318 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17319 property in the plist of the coding system.
17320 (Fcoding_system_put): Check QCascii_compatible_p.
17321
173222008-02-01 Miles Bader <miles@gnu.org>
17323
17324 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17325 removed calculation of frame `f', as it's now used.
17326
173272008-02-01 Kenichi Handa <handa@m17n.org>
17328
17329 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17330 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17331 (UNIDATA): New variable.
17332 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17333 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17334 $(RUN_TEMACS) unconditionally.
17335
173362008-02-01 Kenichi Handa <handa@m17n.org>
17337
17338 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17339 (admindir): New variable.
17340 ($(lispsource)international/charprop.el): New target.
17341
173422008-02-01 Miles Bader <miles@gnu.org>
17343
17344 * character.c (chars-in-region): Remove obsolete function.
17345 (syms_of_character): Remove its initialization.
17346
173472008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17348
17349 * w32select.c (validate_coding_system)
17350 (setup_windows_coding_system): New functions.
17351 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17352 setup_windows_coding_system.
17353 (setup_config, Fw32_get_clipboard_data): Use
17354 validate_coding_system.
17355 (Fx_selection_exists): Move call to setup_config to a place
17356 where signals are allowed.
17357
17358 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17359 (Fcheck_coding_system): Add declarations.
17360
173612008-02-01 Kenichi Handa <handa@m17n.org>
17362
17363 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17364
173652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17366
17367 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17368 string as the second argument for x_new_fontset.
17369
173702008-02-01 Kenichi Handa <handa@m17n.org>
17371
17372 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17373 (encode_coding_object): Use safe_call instead of call2.
17374
173752008-02-01 Kenichi Handa <handa@m17n.org>
17376
17377 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17378
17379 * Makefile.in (lisp): Include charprop.el.
17380
173812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17382
17383 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17384 Not sure if it's unnecessary.
17385
173862008-02-01 Steven Tamm <steventamm@mac.com>
17387
17388 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17389 some possibly unnecessary fontset checking code that crashed
17390 when creating a new frame.
17391
173922008-02-01 Kenichi Handa <handa@m17n.org>
17393
17394 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17395 lookup_face.
17396
17397 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17398
17399 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17400
174012008-02-01 Kenichi Handa <handa@m17n.org>
17402
17403 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17404 (coding_charset_list): New function.
17405
17406 * coding.h (coding_charset_list): Extern it.
17407
174082008-02-01 Kenichi Handa <handa@m17n.org>
17409
17410 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17411 concatenation of family and registry.
17412
174132008-02-01 Kenichi Handa <handa@m17n.org>
17414
17415 * character.h (BYTE8_STRING): Fix typo.
17416
17417 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17418 string to multibyte (sync to HEAD).
17419
17420 * casefiddle.c (casify_region): Handle changes in byte-length
17421 using replace_range_2 (sync to HEAD).
17422
174232008-02-01 Andreas Schwab <schwab@suse.de>
17424
17425 * chartab.c (map_char_table): GCPRO table and arg.
17426
174272008-02-01 Kenichi Handa <handa@m17n.org>
17428
17429 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17430 already at limit.
17431
174322008-02-01 Kenichi Handa <handa@m17n.org>
17433
17434 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17435 instead of fast_c_string_match_ignore_case.
17436 (find_font_encoding): Change argument to Lisp_Object. Use
17437 fast_string_match_ignore_case instead of
17438 fast_c_string_match_ignore_case. Change caller.
17439
174402008-02-01 Kenichi Handa <handa@m17n.org>
17441
17442 * xdisp.c (get_next_display_element): In unibyte case, decide to
17443 display in octal form by checking a character by
17444 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17445
17446 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17447
17448 * character.c (unibyte_has_multibyte_table): New variable.
17449
17450 * character.h (unibyte_has_multibyte_table): Extern it.
17451 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17452
174532008-02-01 Kenichi Handa <handa@m17n.org>
17454
17455 * coding.c (encode_coding_iso_2022): Fix handling of charset
17456 annotation.
17457
174582008-02-01 Kenichi Handa <handa@m17n.org>
17459
17460 * coding.c (setup_coding_system): If coding_system is nil, use
17461 Qundecided.
17462 (Fterminal_coding_system): Return nil if terminal coding system is
17463 `undecided'.
17464 (syms_of_coding): Define coding-system `undecided' here. Setup
17465 terminal_coding as `undecided'.
17466
174672008-02-01 Kenichi Handa <handa@m17n.org>
17468
17469 * xdisp.c (message_dolog, set_message_1): Call
17470 unibyte_char_to_multibyte with arg type int.
17471
17472 * lread.c (read1): Fix reading of a char-table.
17473
17474 * print.c (print_object): Include sub char-table in circularities
17475 detection.
17476
174772008-02-01 Kenichi Handa <handa@m17n.org>
17478
17479 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17480 Append the found sequences in car of ARGS instead of prepending.
17481
174822008-02-01 Kenichi Handa <handa@m17n.org>
17483
17484 * fileio.c (report_file_error): Make a unibyte string from
17485 strerror (errorno).
17486 (Fsubstitute_in_file_name): Fix the arg to
17487 unibyte_char_to_multibyte. It is evaluated twice.
17488
174892008-02-01 Kenichi Handa <handa@m17n.org>
17490
17491 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17492
174932008-02-01 Kenichi Handa <handa@m17n.org>
17494
17495 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17496 BOM is not found.
17497 (detect_coding, detect_coding_system): Optimization for ISO-2022
17498 when no 8-bit data is found.
17499
175002008-02-01 Jason Rumney <jasonr@gnu.org>
17501
17502 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17503
175042008-02-01 Kenichi Handa <handa@m17n.org>
17505
17506 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17507 CHARS.
17508
175092008-02-01 Steven Tamm <steventamm@mac.com>
17510
17511 * macterm.c (mac_encode_char): Add charset argument and update
17512 to use encoding_type.
17513 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17514 switch to pure fontset.
17515 (decode_mac_font_name): Temporarily remove decoding.
17516 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17517 (x_load_font): Temporarily remove encoding.
17518
175192008-02-01 Kenichi Handa <handa@m17n.org>
17520
17521 * xfaces.c (Fface_font): If frame is not on a window system,
17522 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17523 refer to face->font.
17524 (split_font_name_into_vector, build_font_name_from_vector)
17525 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17526 when HAVE_WINDOW_SYSTEM is defined.
17527
175282008-02-01 Kenichi Handa <handa@m17n.org>
17529
17530 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17531 (x_produce_glyphs): Fix setting of members of cmp in case
17532 cmp->glyph_len is zero.
17533
17534 * fontset.c (Fset_fontset_font): Fix docstring.
17535 (Ffontset_info): Make it backward compatible. New arg ALL.
17536
175372008-02-01 Kim F. Storm <storm@cua.dk>
17538
17539 * process.c (read_process_output): Grow decoding_buf when needed;
17540 this could cause a crash in allocate_string and compact_small_strings.
17541
175422008-02-01 Kenichi Handa <handa@m17n.org>
17543
17544 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17545
175462008-02-01 Kenichi Handa <handa@m17n.org>
17547
17548 * coding.c (setup_coding_system): Set coding->common_flags
17549 correctly for raw-text.
17550 (consume_chars): On encoding unibyte text by raw-text, don't check
17551 multibyte form.
17552 (encode_coding): On encoding by raw-text, never use translation tables.
17553
17554 * fileio.c (e_write): Short cut for the case of no encoding.
17555
175562008-02-01 Kenichi Handa <handa@m17n.org>
17557
17558 * coding.c (detect_coding, detect_coding_system): Delete unused
17559 variables.
17560
175612008-02-01 Kenichi Handa <handa@m17n.org>
17562
17563 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17564 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17565
175662008-02-01 Kenichi Handa <handa@m17n.org>
17567
17568 * coding.c (Ffind_coding_systems_region_internal): Include
17569 raw-text and no-conversion in the result.
17570
175712008-02-01 Kenichi Handa <handa@m17n.org>
17572
17573 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17574 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17575 FONT_DEF.
17576 (font_def_arg, add_arg, from_arg, to_arg): New args.
17577 (set_fontset_font): Change argument.
17578 (Fset_fontset_font): Fix for the case that TARGET is a script
17579 name and charset name.
17580 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17581
175822008-02-01 Kenichi Handa <handa@m17n.org>
17583
17584 * fontset.c (fontset_font): Rename from fontset_face. Change return
17585 value.
17586 (face_suitable_for_char_p, face_for_char): Adjust for the change
17587 of fontset_font.
17588 (make_fontset_for_ascii_face): Fix setting of the fontset element
17589 for ASCII.
17590 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17591 to get a font name.
17592 (Ffontset_info): Adjust for the change of fontset_font.
17593
17594 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17595
17596 * character.h (LEADING_CODE_LATIN_1_MIN)
17597 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17598
175992008-02-01 Kenichi Handa <handa@m17n.org>
17600
17601 * editfns.c (check_translation): New function.
17602 (Ftranslate_region_internal): Handle M:N mapping.
17603
176042008-02-01 Kenichi Handa <handa@m17n.org>
17605
17606 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17607
176082008-02-01 Kenichi Handa <handa@m17n.org>
17609
17610 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17611 goto invalid_code.
17612 (decode_coding_iso_2022): Fix handling of invalid designation.
17613
17614 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17615 after calling code_conversion_save.
17616
176172008-02-01 Kenichi Handa <handa@m17n.org>
17618
17619 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17620
17621 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17622
17623 * fontset.c: Include "intervals.h".
17624 (fontset_face): Fix comparing of Lisp_Objects.
17625 (free_face_fontset, new_fontset_from_font_name): Fix
17626 Lisp_Object/int mixup.
17627
17628 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17629
17630 * coding.c: Add many prototypes for static functions.
17631 (get_translation_table): Allow max_lookup to be NULL.
17632 (decode_coding, Ffind_coding_systems_region_internal)
17633 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17634 get_translation_table with max_lookup NULL.
17635
176362008-02-01 Kenichi Handa <handa@m17n.org>
17637
17638 * coding.c (get_translation_table): Declare it as Lisp_Object.
17639 (LOOKUP_TRANSLATION_TABLE): New macro.
17640 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17641 instead of CHAR_TABLE_REF.
17642
176432008-02-01 Kenichi Handa <handa@m17n.org>
17644
17645 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17646 annotation data format.
17647 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17648 Change arguments FROM and TO to single argument NCHARS. Change caller.
17649 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17650 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17651 (decode_coding_ccl, decode_coding_charset): Pay attention to
17652 coding->charbuf_used.
17653 (get_translation): New function.
17654 (produce_chars): New arguments translation_table and last_block.
17655 Translate characters here. Return number of carryover chars.
17656 Change caller.
17657 (produce_composition): New argument pos. Change caller.
17658 Adjust for the change of annotation data format.
17659 (produce_charset, produce_annotation): Likewise.
17660 (decode_coding, encode_coding): Don't call translate_chars.
17661 (consume_chars): New arg translation_table. Change caller.
17662 (translate_chars): Delete.
17663 (syms_of_coding): Make translation-table's number of extra slots 2.
17664
176652008-02-01 Kenichi Handa <handa@m17n.org>
17666
17667 * search.c (simple_search): Fix setting this_pos_byte in backward
17668 search.
17669
17670 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17671 byte sequence.
17672 (detect_coding_ccl): Fix setting of the variable valids.
17673
176742008-02-01 Kenichi Handa <handa@m17n.org>
17675
17676 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17677
17678 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17679
17680 * editfns.c (Ftranslate_region_internal): Rename from
17681 Ftranslate_region. Accept a char-table in TABLE.
17682 (syms_of_editfns): Defsubr Stranslate_region_internal.
17683
17684 * xfaces.c (set_lface_from_font_name): If a font is specified for
17685 a frame, generate a fontset from the font.
17686 (build_scalable_font_name): If the scalable font is requested for
17687 a specific size, don't change that size.
17688 (try_font_list): Try a scalable font also in the case that a
17689 pattern string is specified.
17690
176912008-02-01 Kenichi Handa <handa@m17n.org>
17692
17693 * xfaces.c (Fface_font): New optional arg CHARACTER.
17694
176952008-02-01 Kenichi Handa <handa@m17n.org>
17696
17697 * charset.h (CHARSET_OFFSET): New macro.
17698
176992008-02-01 Kenichi Handa <handa@m17n.org>
17700
17701 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17702
17703 * fontset.c (fontset_face): Handle the case that repertory is a
17704 char-table.
17705 (find_font_encoding): Return nil for unknown encoding.
17706 (Fset_fontset_font): Ignore a font of unknown encoding.
17707
177082008-02-01 Kenichi Handa <handa@m17n.org>
17709
17710 * keymap.c (describe_vector): Handle default value of a char table.
17711
17712 * fontset.c (fontset_face): Handle fallback fonts correctly.
17713 (Ffontset_info): Return infomation about fallback fonts.
17714
177152008-02-01 Kenichi Handa <handa@m17n.org>
17716
17717 * fontset.c (FONTSET_DEFAULT): New macro.
17718 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17719 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17720 the case that it is nil.
17721 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17722 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17723
17724 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17725 subset or superset.
17726
177272008-02-01 Kenichi Handa <handa@m17n.org>
17728
17729 * emacs.c (main): Call init_charset after syms_of_XXX.
17730
17731 * charset.c (Vcharset_map_directory): Delete.
17732 (Vcharset_map_path): New variable.
17733 (load_charset_map_from_file): Use Vcharset_map_path instead.
17734 (init_charset): Initialize Vcharset_map_path.
17735 (syms_of_charset): Delete declaration of "charset-map-directory",
17736 add declaration of "charset-map-path".
17737
177382008-02-01 Kenichi Handa <handa@m17n.org>
17739
17740 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17741 ASCII only string.
17742
17743 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17744
17745 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17746 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17747
177482008-02-01 Kenichi Handa <handa@m17n.org>
17749
17750 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17751
17752 * coding.c (QCmnemonic, QCdefalut_char)
17753 (QCdecode_translation_table, QCencode_translation_table)
17754 (QCpost_read_conversion, QCpre_write_conversion): New variables.
17755 (get_translation_table): Return a list of translation tables if
17756 necessary.
17757 (decode_coding): Call get_translation_table with ENCODEP 0.
17758 (char_encodable_p): If translation_table is non-nil, always call
17759 translate_char.
17760 (Fdefine_coding_system_internal): Accept list of translation
17761 tables as :encode-translation-table and :decode-translation-table.
17762 (Fcoding_system_put): New function.
17763 (syms_of_coding): Declare new symbols. Defsubr
17764 Scoding_system_put.
17765 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
17766 typically JISX0212.
17767
17768 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
17769 when the charset is superset type.
17770
17771 * character.c (translate_char): Accept list of translation tables.
17772
177732008-02-01 Kenichi Handa <handa@m17n.org>
17774
17775 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
17776 (CODING_ATTR_TRANS_TBL): New macro.
17777
17778 * coding.c (get_translation_table): New function.
17779 (translate_chars): Fix the bug of skipping annotation data.
17780 (decode_coding, encode_coding): Utilize get_translation_table.
17781 (char_encodable_p, Funencodable_char_position): Translate char if
17782 necessary.
17783 (Ffind_coding_systems_region_internal)
17784 (Fcheck_coding_systems_region): Setup translation table for encode
17785 in a coding system attribute vector in advance.
17786 (Fdefine_coding_system_internal): Allow a symbol as translation
17787 table. For shift-jis type coding system, allow 4th charset.
17788
177892008-02-01 Kenichi Handa <handa@m17n.org>
17790
17791 * coding.c (decode_coding_sjis): Check the first byte rigidly.
17792
17793 * xdisp.c (get_next_display_element): Pass -1 as POS to
17794 FACE_FOR_CHAR if displaying a C-string.
17795
177962008-02-01 Kenichi Handa <handa@m17n.org>
17797
17798 * composite.c (get_composition_id): Handle xoff and yoff in a
17799 composition rule.
17800
17801 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
17802 (struct composition): New member lbearing and rbearing.
17803
17804 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
17805 (x_get_glyph_overhangs): Handle a composition glyph.
17806 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
17807
17808 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
17809 composition glyph.
17810
178112008-02-01 Kenichi Handa <handa@m17n.org>
17812
17813 * print.c: Include charset.h.
17814 (Vprint_charset_text_property): New variable.
17815 (Qdefault): Extern it.
17816 (PRINT_STRING_NON_CHARSET_FOUND)
17817 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
17818 (print_check_string_result): New variable.
17819 (print_check_string_charset_prop): New function.
17820 (print_prune_charset_plist): New variable.
17821 (print_prune_string_charset): New function.
17822 (print_object): Call print_prune_string_charset if
17823 Vprint_charset_text_property is not t.
17824 (print_interval): Print nothing if interval->plist is nil.
17825 (syms_of_print): Declare Vprint_charset_text_property as a lisp
17826 variable. Init and staticpro print_prune_charset_plist.
17827
178282008-02-01 Kenichi Handa <handa@m17n.org>
17829
17830 * fontset.c (new_fontset_from_font_name): Use the specified font
17831 for all characters in the new fontset.
17832
17833 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17834 OBJECT args.
17835
17836 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
17837 OBJECT args for composition too.
17838
17839 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
17840 OBJECT args.
17841
178422008-02-01 Kenichi Handa <handa@m17n.org>
17843
17844 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
17845
17846 * fontset.c (reorder_font_vector): Adjust for the change of
17847 FONT_DEF format.
17848 (fontset_face): New arg id. Change caller.
17849 (face_for_char): New args pos and object.
17850 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
17851 (fs_query_fontset): Check NAME by Fassoc too.
17852 (Fset_fontset_font): Allow non-XLFD font name.
17853 (Ffontset_info): Adjust for the change of FONT_DEF format.
17854
17855 * fontset.h (face_for_char): Adjust prototype.
17856
17857 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
17858 (append_space, extend_face_to_end_of_line)
17859 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17860 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
17861
17862 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
17863 POS and OBJECT args.
17864
17865 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
17866 POS and OBJECT args.
17867
178682008-02-01 Jason Rumney <jasonr@gnu.org>
17869
17870 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
17871 of GlobalAlloc'ed memory.
17872
178732008-02-01 Kenichi Handa <handa@m17n.org>
17874
17875 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
17876
17877 * charset.h (charset_table_used): Delete extern.
17878
17879 * charset.c (charset_table_used): Make it static.
17880 (map_charset_chars): Fix args to c_function with.
17881
17882 * chartab.c (map_sub_char_table_for_charset): Fix args to
17883 c_function with.
17884
17885 * coding.h (enum coding_result_code): Delete
17886 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
17887
17888 * coding.c (Qinsufficient_source, Qinconsistent_eol)
17889 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
17890 (Vlast_code_conversion_error): New variables.
17891 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
17892 (ONE_MORE_BYTE): Record error if any instead of signaling an
17893 error. If non-ASCII multibyte char is found, return the negative
17894 value of the code. All callers changed to check it.
17895 (ONE_MORE_BYTE_NO_CHECK): Likewise.
17896 (record_conversion_result): New function. Change all codes setting
17897 coding->result to call this function.
17898 (detect_coding_utf_8, decode_coding_utf_8)
17899 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
17900 Don't use the local variable incomplete.
17901 (emacs_mule_char): Change the second arg to `const'.
17902 (decode_coding): Fix of flushing out unprocessed data.
17903 (make_conversion_work_buffer): Fix making of a work buffer.
17904 (decode_coding_object): Return coding->dst_object.
17905
17906 * fontset.c (set_fontset_font): Fix args.
17907
17908 * lisp.h (CHARACTERBITS): Define as 22.
17909
17910 * process.c (send_process): Be sure to set coding->src_multibyte.
17911
17912 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
17913
179142008-02-01 Kenichi Handa <handa@m17n.org>
17915
17916 * xdisp.c (handle_auto_composed_prop): Give limit to
17917 Fnext_single_char_property_change.
17918
179192008-02-01 Kenichi Handa <handa@m17n.org>
17920
17921 * composite.c (syms_of_composite): Don't make the composition hash
17922 table weak.
17923
17924 * fontset.c (Fset_fontset_font): Fix docstring.
17925
17926 * lisp.h (detect_coding_system): Adjust prototype.
17927
17928 * fileio.c (kill_workbuf_unwind): Delete this function.
17929 (Finsert_file_contents): Adjust the call of detect_coding_system.
17930 Get conversion_buffer by code_conversion_save. Use the macro
17931 CODING_MAY_REQUIRE_DECODING. After decoding, update
17932 coding_system.
17933
17934 * coding.h (make_conversion_work_buffer): Delete extern.
17935 (code_conversion_save): Extern it.
17936
17937 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
17938 (CODING_GET_INFO): Delete argument eol_type. Change callers.
17939 (decode_coding_utf_8): Don't do eol converion.
17940 (detect_coding_utf_16): Check coding->src_chars, not
17941 coding->src_bytes. Add heuristics for those that have no signature.
17942 (decode_coding_emacs_mule, decode_coding_iso_2022)
17943 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17944 Don't do eol converion.
17945 (adjust_coding_eol_type): Return a new coding system.
17946 (detect_coding): Don't detect eol. Fix for utf-16 detection.
17947 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
17948 each change.
17949 (decode_coding): Pay attention to undo_list. Do eol conversion for
17950 all types of coding-systems (if necessary).
17951 (Vcode_conversion_work_buf_list): Delete it.
17952 (Vcode_conversion_reused_workbuf): Rename from
17953 Vcode_conversion_reused_work_buf.
17954 (Vcode_conversion_workbuf_name): New variable.
17955 (reused_workbuf_in_use): New variable.
17956 (make_conversion_work_buffer): Delete the arg DEPTH.
17957 (code_conversion_restore): Change argument to cons.
17958 (code_conversion_save): Delete the argument BUFFER. Change callers.
17959 (detect_coding_system): New argument src_chars. Change callers.
17960 Fix for utf-16 detection.
17961 (init_coding_once): Don't use ISO_carriage_return.
17962 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
17963 reused_workbuf_in_use.
17964
179652008-02-01 Kenichi Handa <handa@m17n.org>
17966
17967 * keymap.c (store_in_keymap): Pay attention to the case that idx
17968 is a cons specifying a character range.
17969
179702008-02-01 Kenichi Handa <handa@m17n.org>
17971
17972 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
17973 HANDLED_RECOMPUTE_PROPS.
17974
17975 * coding.c (Fdefine_coding_system_internal): Fix checking of
17976 ascii compatibility.
17977
179782008-02-01 Kenichi Handa <handa@m17n.org>
17979
17980 * charset.c (find_charsets_in_text): Delete unused locale variable.
17981 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
17982
17983 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
17984 Resync charset_list to Vemacs_mule_charset_list.
17985
17986 * keymap.c (store_in_keymap): Pay attention to the case that idx
17987 is a cons specifying a character range.
17988
179892008-02-01 Kenichi Handa <handa@m17n.org>
17990
17991 * composite.c (update_compositions): Bind inhibit-read-only, etc
17992 to t before calling remove-list-of-text-properties.
17993
17994 * print.c (print_object): Always print ASCII chars as is.
17995
179962008-02-01 Kenichi Handa <handa@m17n.org>
17997
17998 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17999
18000 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18001 is a char table.
18002
180032008-02-01 Kenichi Handa <handa@m17n.org>
18004
18005 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18006
180072008-02-01 Kenichi Handa <handa@m17n.org>
18008
18009 * xfaces.c (set_lface_from_font_name): Fix for the case that
18010 FONTNAME is not fontset name.
18011
180122008-02-01 Kenichi Handa <handa@m17n.org>
18013
18014 * fns.c (base64_encode_1): Fix previous change.
18015
180162008-02-01 Kenichi Handa <handa@m17n.org>
18017
18018 * fontset.c (set_fontset_font): New function.
18019 (Fset_fontset_font): If a font is specified for a charset, use
18020 map_charset_chars to store the font spec in a fontset.
18021
180222008-02-01 Kenichi Handa <handa@m17n.org>
18023
18024 * fontset.c (fontset_face): Create a fallback fontset on demand.
18025 (make_fontset): Don't create a fallback fontset here.
18026 (free_face_fontset): Free a fallback fontset (if any) too.
18027 (n_auto_fontsets): Delete this variable.
18028 (auto_fontset_alist): New variable.
18029 (new_fontset_from_font_name): Check auto_fontset_alist.
18030 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18031 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18032 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18033 Defsubr Sfontset_list_all.
18034
180352008-02-01 Kenichi Handa <handa@m17n.org>
18036
18037 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18038
180392008-02-01 Kenichi Handa <handa@m17n.org>
18040
18041 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18042
180432008-02-01 Kenichi Handa <handa@m17n.org>
18044
18045 * editfns.c (Fgoto_char): Fix docstring.
18046
180472008-02-01 Kenichi Handa <handa@m17n.org>
18048
18049 * insdel.c (insert_from_gap): Adjust intervals correctly.
18050
180512008-02-01 Jason Rumney <jasonr@gnu.org>
18052
18053 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18054 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18055 (w32_initialize): Try to load it.
18056 (x_get_font_repertory): Use it if available.
18057 (w32_encode_char): Add shortcut for unicode output.
18058
18059 * w32fns.c (w32_load_system_font): Default charset to -1.
18060 (x_to_w32_charset): Match all fonts for unicode.
18061 (w32_to_x_charset): New parameter matching. Don't return partial
18062 or wildcard charsets.
18063 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18064 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18065 (w32_to_x_font): Match charset to real charset.
18066 (enum_font_cb2): Always list unicode versions.
18067
18068 * makefile.w32-in (temacs): Increase EMHEAP.
18069
180702008-02-01 Jason Rumney <jasonr@gnu.org>
18071
18072 * w32term.c (w32_encode_char): New charset parameter.
18073 font_info.encoding becomes encoding_type.
18074 (x_get_font_repertory): New function. Warning: stub only!
18075 (x_new_font): Return quickly if font already set.
18076 (x_new_fontset): fontsetname parameter is Lisp_Object.
18077 Use new fs_query_fontset. Try new_fontset_from_font_name.
18078 Use fontset_name for return value.
18079
18080 * w32term.h: Declare x_get_font_repertory.
18081
18082 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18083 place of find_charset_in_text. Use encode_coding_object in place
18084 of encode_coding.
18085 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18086 decode_coding.
18087
18088 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18089 of x_new_fontset.
18090 (w32_load_system_font): Initialize charset as unicode.
18091 font_info.encoding becomes encoding_type.
18092 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18093 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18094 (syms_of_w32fns): Set get_font_repertory_func.
18095
18096 * w32console.c: Include character.h. Use terminal_encode_buffer
18097 from term.c.
18098 (write_glyphs): Use new version of encode_terminal_code. Use
18099 encode_coding_object in place of encode_coding.
18100
18101 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18102 encoding becomes encoding_type.
18103
18104 * term.c (terminal_encode_buffer): Make externally visible.
18105
18106 * makefile.w32-in: Add character.h dependancies.
18107 (character.o, chartab.o): New targets.
18108
181092008-02-01 Kenichi Handa <handa@m17n.org>
18110
18111 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18112 CODING_ID_EOL_TYPE.
18113
181142008-02-01 Andreas Schwab <schwab@suse.de>
18115
18116 * coding.c (produce_chars): Revert last change.
18117
181182008-02-01 Kenichi Handa <handa@m17n.org>
18119
18120 * charset.h (charset_unicode): Extern it.
18121
18122 * charset.c (string_xstring_p): Check by (C >= 0x100).
18123 (find_charsets_in_text): Change format of the arc CHARSETS. New
18124 arg MULTIBYTE.
18125 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18126 change of find_charsets_in_text.
18127 (Fsplit_char): Fix doc. Never return unknown.
18128
18129 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18130
18131 * coding.c (Fdefine_coding_system_alias): Update
18132 Vcoding_system_list.
18133
18134 * fontset.c (load_font_get_repertory): Pay attention to the case
18135 that ENCODING of a font is specified by a char-table.
18136
18137 * xterm.c (x_get_font_repertory): Handle the case that the
18138 encoding of font is other than Unicode.
18139
181402008-02-01 Kenichi Handa <handa@m17n.org>
18141
18142 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18143 if a character is encodable by the terminal coding system. If
18144 not, produces proper number of `?'s. Update
18145 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18146 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18147
181482008-02-01 Kenichi Handa <handa@m17n.org>
18149
18150 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18151 variables.
18152 (encode_terminal_code): Change argument. Encode multiple
18153 characters at once. Store the result of encoding in
18154 terminal_encode_buffer.
18155 (write_glyphs, insert_glyphs): Adjust for the change of
18156 encode_terminal_code.
18157 (term_init): Initialize terminal_encode_buffer and
18158 terminal_encode_buf_size.
18159
18160 * coding.c (consume_chars): If coding->src_object is nil, don't
18161 check annotation.
18162
181632008-02-01 Kenichi Handa <handa@m17n.org>
18164
18165 * character.c (char_string): Use ASCII_CHAR_P instead of
18166 SINGLE_BYTE_CHAR_P.
18167
181682008-02-01 Kenichi Handa <handa@m17n.org>
18169
18170 * xdisp.c (handle_auto_composed_prop): Check if the last
18171 characters of auto-composed region is newly composed with the
18172 following characters.
18173 (handle_composition_prop): Fix checking of point being inside
18174 composition.
18175
181762008-02-01 Kenichi Handa <handa@m17n.org>
18177
18178 * fns.c (concat): Don't change multibyteness of the result by
18179 concatenating an 8-bit character.
18180
18181 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18182 multibyteness of the result when newelt is an 8-bit character.
18183
181842008-02-01 Dave Love <fx@gnu.org>
18185
18186 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18187 EMACS_INT.
18188
18189 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18190
18191 * xfaces.c (face_numeric_value): Declare dim size_t.
18192 (Finternal_lisp_face_equal_p): Remove unused f.
18193
18194 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18195 (MATRIX_ROW): Remove unused vars.
18196 (draw_glyphs, x_insert_glyphs, fast_find_position)
18197 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18198 byte/char counts.
18199
18200 * regex.c (regex_compile): Remove unused var.
18201
18202 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18203
18204 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18205 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18206
18207 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18208
18209 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18210
18211 * fileio.c (Fwrite_region): Remove unused var.
18212
18213 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18214 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18215
18216 * composite.c (Fremove_list_of_text_properties): Declare.
18217
18218 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18219 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18220 (coding_inherit_eol_type): Remove unused attrs.
18221 (detect_coding): Cast arg of detect_eol.
18222
18223 * charset.c (syms_of_charset): Remove unused var p.
18224 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18225 byte/char counts.
18226
18227 * casetab.c (set_case_table): Remove unused var.
18228
18229 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18230 unused vars.
18231
182322008-02-01 Dave Love <fx@gnu.org>
18233
18234 * xterm.c (x_bitmap_mask): Declare.
18235
182362008-02-01 Dave Love <fx@gnu.org>
18237
18238 * xterm.c (x_term_init): Fix type error.
18239
18240 * lisp.h: Add Funibyte_char_to_multibyte.
18241
18242 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18243 (Fset_coding_system_priority): Doc fix.
18244
18245 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18246
18247 * indent.c (check_composition): Make start and end EMACS_INT.
18248
18249 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18250
18251 * xdisp.c (handle_composition_prop, check_point_in_composition):
18252 Make buffer positions EMACS_INT.
18253
18254 * composite.c (find_composition, run_composition_function)
18255 (update_compositions, Ffind_composition_internal): Make buffer
18256 positions EMACS_INT.
18257
18258 * composite.h (find_composition, update_compositions): Make
18259 position args EMACS_INT.
18260
18261 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18262
18263 * intervals.c (get_property_and_range):
18264 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18265
18266 * unexalpha.c: Don't include varargs.h.
18267
182682008-02-01 Dave Love <fx@gnu.org>
18269
18270 * coding.h (ENCODE_UTF_8): New.
18271
18272 * Makefile.in (gtkutil.o): Depend on coding.h.
18273
18274 * coding.c (Fset_coding_system_priority): Doc fix.
18275
182762008-02-01 Kenichi Handa <handa@m17n.org>
18277
18278 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18279 the case of auto saving.
18280
182812008-02-01 Andreas Schwab <schwab@suse.de>
18282
18283 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18284 `range' from GC.
18285
182862008-02-01 Kenichi Handa <handa@m17n.org>
18287
18288 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18289
182902008-02-01 Kenichi Handa <handa@m17n.org>
18291
18292 * fileio.c (choose_write_coding_system): Return a decided coding system.
18293 (Fwrite_region): Set Vlast_coding_system_used to the return value
18294 of choose_write_coding_system.
18295
182962008-02-01 Kenichi Handa <handa@m17n.org>
18297
18298 * charset.c (Fset_charset_priority): Pay attention to duplicated
18299 arguments.
18300
18301 * coding.c (QCcategory): New variable.
18302 (syms_of_coding): Defsym it. Set all elements of
18303 Vcoding_category_table and their symbol values.
18304 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18305 coding-category-XXX, and coding-category-list.
18306 (Fdefine_coding_system_internal): Add category in the plist.
18307
183082008-02-01 Kenichi Handa <handa@m17n.org>
18309
18310 * callproc.c (Fcall_process): Handle carryover correctly.
18311
18312 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18313 (raw_text_coding_system): Check NILP (coding_system).
18314 (coding_inherit_eol_type): Check NILP (coding_system) and
18315 NILP (parent).
18316 (consume_chars): Fix for the case of raw-text.
18317
18318 * process.c (read_process_output): Handle carryover correctly.
18319
183202008-02-01 Dave Love <fx@gnu.org>
18321
18322 * regex.c (re_search_2): Fix last change.
18323
183242008-02-01 Kenichi Handa <handa@m17n.org>
18325
18326 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18327 target_multibyte. Even in a unibyte case, return a converted
18328 multibyte char.
18329 (GET_CHAR_AFTER): New macro.
18330 (PATFETCH): Translate via multibyte char.
18331 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18332 (SETUP_MULTIBYTE_RANGE): New macro.
18333 (regex_compile): Setup compiled code so that its multibyteness
18334 matches that of a target. Fix the handling of "[X-YZ]" using
18335 SETUP_MULTIBYTE_RANGE.
18336 (analyse_first) <charset>: For filling fastmap for all multibyte
18337 characters, don't check by BASE_LEADING_CODE_P.
18338 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18339 the same as RE_MULTIBYTE_P (bufp) now.
18340 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18341 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18342 (TRANSLATE_VIA_MULTIBYTE): New macro.
18343 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18344 It is the same as RE_MULTIBYTE_P (bufp) now.
18345 <exactn>: Translate via multibyte.
18346 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18347 translate it.
18348 <charset, charset_not>: Fetch a character by
18349 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18350 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18351 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18352 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18353 by GET_CHAR_AFTER.
18354 (bcmp_translate): Likewise.
18355
18356 * search.c (compile_pattern): Check the member target_multibyte,
18357 not the member multibyte of buf.
18358
18359 * lread.c (read1): While reading a string, set force_singlebyte
18360 and force_multibyte correctly.
18361
18362 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18363 up of unibyte_to_multibyte_table.
18364
183652008-02-01 Kenichi Handa <handa@m17n.org>
18366
18367 * coding.c (setup_coding_system): If coding has
18368 post-read-conversion or pre-write-conversion, set
18369 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18370 respectively.
18371 (decode_coding_gap): Run post-read-conversion if any.
18372
18373 * fileio.c (Finsert_file_contents): Even if we read into a
18374 unibyte buffer, check if we must decode the result or not.
18375
183762008-02-01 Kenichi Handa <handa@m17n.org>
18377
18378 * coding.c (make_conversion_work_buffer): Change the work buffer
18379 name to the same one as that of Emacs 21.
18380
183812008-02-01 Kenichi Handa <handa@m17n.org>
18382
18383 * coding.h (make_conversion_work_buffer): Adjust prototype.
18384 (code_conversion_restore): Don't extern it.
18385
18386 * coding.c (detected_mask): Delete unused variable.
18387 (decode_coding_iso_2022): Pay attention to the byte sequence of
18388 CTEXT extended segment, and retain those bytes as is.
18389 (decode_coding_ccl): Delete unused variable `valids'.
18390 (setup_coding_system): Delete unused variable `category'.
18391 (consume_chars): Delete unused variable `category'. Make it work
18392 for non-multibyte case.
18393 (make_conversion_work_buffer): Change argument.
18394 (saved_coding): Delete unused variable.
18395 (code_conversion_restore): Don't check saved_coding->destination.
18396 (code_conversion_save): New function.
18397 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18398 instead of record_unwind_protect.
18399 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18400 (detect_coding_system): Delete unused variable `mask'.
18401 (Fdefine_coding_system_internal): Delete unused variable id.
18402
18403 * fileio.c (kill_workbuf_unwind): New function.
18404 (Finsert_file_contents): On replacing, call
18405 make_conversion_work_buffer with correct args, and call
18406 record_unwind_protect with the first arg kill_workbuf_unwind.
18407
18408 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18409
184102008-02-01 Kenichi Handa <handa@m17n.org>
18411
18412 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18413 (fontset_add): Fix for the case that TO is less than TO1.
18414 (Ffontset_info): Don't use fallback fontset on checking the
18415 default fontset.
18416 (dump_fontset): New function for debugging.
18417
18418 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18419 coding_type is Qcharset.
18420
184212008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18424 (map_char_table): Don't inherit the value from the parent on
18425 initializing VAL. Adjust for the above change.
18426
184272008-02-01 Kenichi Handa <handa@m17n.org>
18428
18429 * coding.c (Qsignature, Qendian): Delete these variables.
18430 (syms_of_coding): Don't initialize them.
18431 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18432 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18433 detect_info->found.
18434 (decode_coding_utf_16): Don't detect BOM here.
18435 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18436 is NOT utf_16_without_bom.
18437 (setup_coding_system): For a coding system of type utf-16, check
18438 if the attribute :endian is Qbig or not (not nil or not), and set
18439 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18440 (detect_coding): If coding type is utf-16 and BOM detection is
18441 required, detect it.
18442 (Fdefine_coding_system_internal): For a coding system of type
18443 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18444
184452008-02-01 Kenichi Handa <handa@m17n.org>
18446
18447 * coding.c (coding_set_source): Fix for the case that the current
18448 buffer is different from coding->src_object.
18449 (decode_coding_object): Don't use the conversion work buffer if
18450 DST_OBJECT is a buffer.
18451
184522008-02-01 Dave Love <fx@gnu.org>
18453
18454 * lread.c (read_emacs_mule_char) [len==2]: Index
18455 emacs_mule_charset correctly.
18456
184572008-02-01 Dave Love <fx@gnu.org>
18458
18459 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18460 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18461 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18462 treated specially.)
18463 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18464 (detected_mask): Remove Big5 bits.
18465
184662008-02-01 Kenichi Handa <handa@m17n.org>
18467
18468 The following changes are to make the font rescaling facility
18469 compatible with Emacs 21.
18470
18471 * xfaces.c (Vface_font_rescale_alist): Rename from
18472 Vface_resizing_fonts.
18473 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18474 (font_rescale_ratio): Rename from font_resizing_ratio.
18475 (split_font_name): Set font->rescale_ratio.
18476 (better_font_p): Pay attention to font->rescale_ratio.
18477 (build_scalable_font_name): Likewise. Change RESX, and RESY
18478 fields.
18479 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18480
184812008-02-01 Kenichi Handa <handa@m17n.org>
18482
18483 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18484 (Qutf_16_le): Remove these variables.
18485 (syms_of_coding): Don't DEFSYM them.
18486 (decode_coding_utf_16): Fix handling of BOM.
18487 (encode_coding_utf_16): Fix handling of BOM.
18488
184892008-02-01 Kenichi Handa <handa@m17n.org>
18490
18491 * fileio.c (Finsert_file_contents): On replacing, before decoding
18492 the file into the work buffer, set point of the work buffer to the end.
18493
184942008-02-01 Dave Love <fx@gnu.org>
18495
18496 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18497
184982008-02-01 Dave Love <fx@gnu.org>
18499
18500 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18501 and fix C types.
18502
185032008-02-01 Kenichi Handa <handa@m17n.org>
18504
18505 * xdisp.c (SKIP_GLYPHS): New macro.
18506 (set_cursor_from_row): Pay attention to string display properties.
18507
18508 * category.c (copy_category_entry): Fix for the case that RANGE
18509 is an integer.
18510
18511 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18512
18513 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18514
185152008-02-01 Kenichi Handa <handa@m17n.org>
18516
18517 * charset.c (Fcharset_id_internal): New function.
18518 (syms_of_charset): Defsubr it.
18519
18520 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18521 with the last arg charset_list acquired from coding.
18522 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18523 the attribute coding_attr_ccl_valids.
18524
18525 * coding.h (enum define_coding_ccl_arg_index): Set the first
18526 member coding_arg_ccl_decoder to coding_arg_max.
18527
18528 * ccl.h (ccl_driver): Adjust prototype.
18529
18530 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18531 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18532 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18533 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18534 last arg Qnil.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18539 call encode_char.
18540
18541 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18542
185432008-02-01 Dave Love <fx@gnu.org>
18544
18545 * composite.c (syms_of_composite): Make composition_hash_table weak.
18546
185472008-02-01 Kenichi Handa <handa@m17n.org>
18548
18549 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18550 (font_name_registry): Don't extern them.
18551 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18552
18553 * fontset.h (Qfontset): Don't extern it.
18554 (new_fontset_from_font_name): Extern it.
18555
18556 * fontset.c: Give 8 extra slots to fontset objects.
18557 (Qfontset_info): New variable.
18558 (syms_of_fontset): Defsym it.
18559 (FONTSET_FALLBACK): New macro.
18560 (fontset_face): Try also the default fontset.
18561 (make_fontset): Realize a fallback fontset from the default fontset.
18562 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18563 using split_font_name_into_vector and build_font_name_from_vector.
18564 (Fset_fontset_font): Access the elements of font_spec by enum
18565 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18566 name by using split_font_name_into_vector.
18567 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18568 generate a proper font name from the fontset name. Update
18569 Vfontset_alias_alist.
18570 (n_auto_fontsets): New variable.
18571 (new_fontset_from_font_name): New function.
18572 (Ffont_info): Store the information about fonts generated from the
18573 default fontset in the first extra slot of the returned char-table.
18574
18575 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18576 (font_name_registry): Delete function.
18577 (split_font_name_into_vector): New function.
18578 (build_font_name_from_vector): New function.
18579 (font_list): The argument REGISTRY is now a list of registry names.
18580 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18581 specifies an explicit font name, return the name as is. Make a
18582 list of registy names.
18583
18584 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18585 of x_new_fontset.
18586 (Fx_create_frame): Don't call x_new_fontset here. Just use
18587 x_list_fonts to check the existence of fonts.
18588
18589 * xterm.h (x_new_fontset): Adjust prototype.
18590
18591 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18592 string. Use new_fontset_from_font_name to create a fontset from a
18593 font name.
18594
185952008-02-01 Kenichi Handa <handa@m17n.org>
18596
18597 * syntax.c (Vfind_word_boundary_function_table): New name for
18598 Vnext_word_boundary_function_table.
18599 (find-word-boundary-function-table): New name for
18600 next-word-boundary-function-table.
18601
186022008-02-01 Dave Love <fx@gnu.org>
18603
18604 * Makefile.in: Fix some dependencies.
18605
18606 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18607 set it to nil before returning.
18608
18609 * composite.c (update_compositions): Fix type error.
18610
18611 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18612
186132008-02-01 Kenichi Handa <handa@m17n.org>
18614
18615 * xterm.c (x_new_font): Optimize for the case that the font is
18616 already set for the frame.
18617
186182008-02-01 Kenichi Handa <handa@m17n.org>
18619
18620 * chartab.c (char_table_ascii): Check if the char table contents
18621 is sub-char-table or not.
18622 (char_table_set, char_table_set_range): Fix argument to
18623 char_table_ascii.
18624
18625 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18626 (detect_coding_utf_8, detect_coding_utf_16)
18627 (detect_coding_emacs_mule, detect_coding_iso_2022)
18628 (detect_coding_sjis, detect_coding_big5)
18629 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18630 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18631 sequence is valid in this coding system. Change callers.
18632 (MAX_ANNOTATION_LENGTH): New macro.
18633 (ADD_ANNOTATION_DATA): New macro.
18634 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18635 ADD_ANNOTATION_DATA. Change the format of annotation data.
18636 (ADD_CHARSET_DATA): New macro.
18637 (emacs_mule_char): New argument ID. Change callers.
18638 (decode_coding_emacs_mule, decode_coding_iso_2022)
18639 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18640 Produce charset annotation data in coding->charbuf.
18641 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18642 to charset annotation data in coding->charbuf.
18643 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18644 coding->common_flags if the coding system is iso-2022 based and
18645 uses designation.
18646 (produce_composition): Adjust for the new annotation data format.
18647 (produce_charset): New function.
18648 (produce_annotation): Handle charset annotation.
18649 (handle_composition_annotation, handle_charset_annotation): New
18650 functions.
18651 (consume_chars): Handle charset annotation. Utilize the above two
18652 functions.
18653 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18654 buffer, get the deleted text as a string and set
18655 coding->src_object to that string.
18656 (detect_coding, detect_coding_system): Use the new struct
18657 coding_detection_info.
18658
18659 * coding.h (struct coding_detection_info): New structure.
18660 (struct coding_system): Adjust prototype of the member `detector'.
18661 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18662
186632008-02-01 Kenichi Handa <handa@m17n.org>
18664
18665 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18666
186672008-02-01 Dave Love <fx@gnu.org>
18668
18669 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18670 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18671 to new local and nullify apropos_accumulate before returning.
18672 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18673
186742008-02-01 Kenichi Handa <handa@m17n.org>
18675
18676 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18677 correctly.
e3eea1fc 18678
aac0c6e3
MR
186792008-02-01 Dave Love <fx@gnu.org>
18680
18681 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18682
186832008-02-01 Kenichi Handa <handa@m17n.org>
18684
18685 The following changes are to make character composition happen
18686 automatically on displaying.
18687
18688 * Makefile.in (lisp, shortlisp): Add composite.elc.
18689
18690 * composite.h (Qauto_composed, Vauto_composition_function)
18691 (Qauto_composition_function): Extern them.
18692
18693 * composite.c (Vcomposition_function_table)
18694 (Qcomposition_function_table): Delete variables.
18695 (Qauto_composed, Vauto_composition_function)
18696 (Qauto_composition_function): New variables.
18697 (run_composition_function): Don't call
18698 compose-chars-after-function.
18699 (update_compositions): Clear `auto-composed' text property.
18700 (compose_chars_in_text): Delete this function.
18701 (syms_of_composite): Staticpro Qauto_composed and
18702 Qauto_composition_function. Declare Vauto_composition_function as
18703 a Lisp variable.
18704
18705 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18706
18707 * xdisp.c (it_props): Add an entry for Qauto_composed.
18708 (handle_auto_composed_prop): New function.
18709
18710 * xselect.c (selection_data_to_lisp_data): Don't call
18711 compose_chars_in_text.
18712
187132008-02-01 Dave Love <fx@gnu.org>
18714
18715 * keyboard.c (read_char): Modify checking around use of
18716 Vkeyboard_translate_table.
18717
18718 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18719 and fix C types.
18720
187212008-02-01 Kenichi Handa <handa@m17n.org>
18722
18723 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18724 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18725 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18726 the case that the last byte is '\r' correctly.
18727 (decode_coding): Flush out the unprocessed data correctly.
18728 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18729
187302008-02-01 Dave Love <fx@gnu.org>
18731
18732 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18733 Add XK_ISO... case.
18734 (xaw_scroll_callback): Revert last change.
18735
187362008-02-01 Kenichi Handa <handa@m17n.org>
18737
18738 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18739
187402008-02-01 Kenichi Handa <handa@m17n.org>
18741
18742 * xfaces.c (Vface_resizing_fonts): New variable.
18743 (struct font_name): New member `resizing_ratio'.
18744 (font_resizing_ratio): New function.
18745 (split_font_name): Set font->resizing_ratio.
18746 (better_font_p): Pay attention to font->resizing_ratio.
18747 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18748 RESX, and RESY fields.
18749 (try_alternative_families): Try scalable fonts if
18750 Vscalable_fonts_allowed is not Qt.
18751 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18752
187532008-02-01 Dave Love <fx@gnu.org>
18754
18755 * xterm.c (xaw_scroll_callback): Cast correctly.
18756
187572008-02-01 Dave Love <fx@gnu.org>
18758
18759 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
18760 (lispy_kana_keys): Comment out.
18761 (make_lispy_event) [XK_kana_A]: Comment out.
18762
18763 * xterm.c (xaw_scroll_callback): Cast call_data.
18764 (XTread_socket): Deal with ASCII keysyms.
18765 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
18766
187672008-02-01 Dave Love <fx@gnu.org>
18768
18769 * xterm.c (Vx_keysym_table): New.
18770 (syms_of_xterm): Initialize it.
18771 (XTread_socket): Use it.
18772 From head: Eliminate incorrect optimization that tried to avoid
18773 decoding the output of X*LookupString.
18774 (x_get_font_repertory): Delete charset declaration.
18775
187762008-02-01 Kenichi Handa <handa@m17n.org>
18777
18778 * coding.c (detect_coding_charset): If only ASCII bytes are found,
18779 return 0.
18780 (Fdefine_coding_system_internal): Setup
18781 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
18782
187832008-02-01 Dave Love <fx@gnu.org>
18784
18785 * coding.c (Fcheck_coding_system): Doc fix.
18786
18787 * editfns.c (Finsert_byte): Return a proper value.
18788
187892008-02-01 Kenichi Handa <handa@m17n.org>
18790
18791 * coding.c (decode_coding): Fix args to translate_chars. Pay
18792 attention to Vstandard_translation_table_for_decode.
18793 (encode_coding): Fix args to translate_chars. Pay attention to
18794 Vstandard_translation_table_for_encode.
18795
18796 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
18797 SINGLE_BYTE_CHAR_P.
18798
18799 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
18800 not by SINGLE_BYTE_CHAR_P.
18801
18802 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
18803 SINGLE_BYTE_CHAR_P.
18804
18805 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
18806 SINGLE_BYTE_CHAR_P.
18807
18808 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
18809 by SINGLE_BYTE_CHAR_P.
18810
18811 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
18812 SINGLE_BYTE_CHAR_P.
18813
188142008-02-01 Dave Love <fx@gnu.org>
18815
18816 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
18817
188182008-02-01 Dave Love <fx@gnu.org>
18819
18820 * fns.c (Flanginfo): Fix typo.
18821
18822 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
18823
188242008-02-01 Kenichi Handa <handa@m17n.org>
18825
18826 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
18827 (detect_coding_emacs_mule, detect_coding_iso_2022)
18828 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
18829 incomplete byte sequence. Don't update *mask when correctly detected.
18830 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
18831 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
18832 (detect_coding, detect_coding_system): Adjust for the changes above.
18833
188342008-02-01 Kenichi Handa <handa@m17n.org>
18835
18836 * character.c (char_string): Rename from
18837 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
18838 (string_char): Rename from string_char.
18839
18840 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
18841 if C is greater than MAX_3_BYTE_CHAR.
18842 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
18843 string_char instead of string_char_with_unification.
18844
188452008-02-01 Dave Love <fx@gnu.org>
18846
18847 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
18848
188492008-02-01 Kenichi Handa <handa@m17n.org>
18850
18851 * keymap.c (push_key_description): Pay attention to force_multibyte.
18852
18853 * regex.c (re_search_2): Fix for the case of unibyte buffer.
18854
188552008-02-01 Dave Love <fx@gnu.org>
18856
18857 * charset.c (define_charset_internal): Rename `supprementary'.
18858
18859 * Makefile.in (lisp, shortlisp): Remove latin-N.
18860
188612008-02-01 Dave Love <fx@gnu.org>
18862
18863 * xfns.c (x_window, x_window): Use use_xim.
18864
18865 * xterm.c (use_xim): Initialize.
18866 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18867 (x_term_init): Maybe set use_xim.
18868
18869 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18870
188712008-02-01 Kenichi Handa <handa@m17n.org>
18872
18873 * search.c (search_buffer): Fix case-fold-search of multibyte
18874 characters.
18875 (boyer_moore): Rename the last argument to char_high_bits.
18876
188772008-02-01 Kenichi Handa <handa@m17n.org>
18878
18879 * xdisp.c (display_string): Fix for the case of zero width glyph.
18880
18881 * xfns.c (x_set_font): Change the error message of the case that
18882 x_new_fontset returns Qt.
18883
18884 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
18885 (Finternal_set_lisp_face_attribute): Use signal_error for the
18886 error of invalid fontset.
18887
18888 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
18889 fontset, return Qt.
18890
188912008-02-01 Dave Love <fx@gnu.org>
18892
18893 * unexelf.c (unexec): Make .got handling not SGI-specific.
18894
18895 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
18896
18897 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
18898
18899 * keyboard.c (read_key_sequence): Fix type error.
18900
18901 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
18902 type error.
18903
18904 * fontset.c (fontset_add): Return Lisp_Object.
18905
189062008-02-01 Dave Love <fx@gnu.org>
18907
18908 * charset.h (charset_ordered_list_tick): Declare extern.
18909
189102008-02-01 Kenichi Handa <handa@m17n.org>
18911
18912 The following changes (and some of 2008-02-01 changes of mine) are
18913 for handling syntax, category, and case conversion for unibyte
18914 characters by converting them to multibyte on the fly. With these
18915 changes, we don't have to setup syntax and case tables for unibyte
18916 characters in each language environment.
18917
18918 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
18919 multibyte if necessary.
18920
18921 * bytecode.c (Fbyte_code): Likewise.
18922
18923 * character.h (LEADING_CODE_LATIN_1_MIN)
18924 (LEADING_CODE_LATIN_1_MAX): New macros.
18925 (unibyte_to_multibyte_table): Extern it.
18926 (unibyte_char_to_multibyte): New macro.
18927 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
18928 (CHAR_LEADING_CODE): New macro.
18929 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
18930
18931 * character.c (unibyte_to_multibyte_table): New variable.
18932 (unibyte_char_to_multibyte): Move to character.h and define as macro.
18933 (multibyte_char_to_unibyte): If C is an eight-bit character,
18934 convert it to the corresponding byte value.
18935
18936 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
18937 not 1, signals an error. Update the elements of
18938 unibyte_to_multibyte_table.
18939 (init_charset_once): Initialize unibyte_to_multibyte_table.
18940 (syms_of_charset): Define the charset `iso-8859-1'.
18941
18942 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
18943 as is without converting it to unibyte. In a unibyte buffer,
18944 convert C to multibyte before checking the syntax.
18945
18946 * lisp.h (unibyte_char_to_multibyte): Delete extern.
18947
18948 * minibuf.c (Fminibuffer_complete_word): Use the macro
18949 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
18950
18951 * regex.h (struct re_pattern_buffer): New member target_multibyte.
18952
18953 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
18954 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
18955 that is zero, convert an eight-bit char to multibyte.
18956 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
18957 non-emacs case.
18958 (PATFETCH): Convert an eight-bit char to multibyte.
18959 (HANDLE_UNIBYTE_RANGE): New macro.
18960 (regex_compile): Setup the compiled pattern for multibyte chars
18961 even if the given regex string is unibyte. Use PATFETCH_RAW
18962 instead of PATFETCH in many places. To handle `charset'
18963 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
18964 only for ASCII chars.
18965 (analyse_first) <exactn>: Simplify because the compiled pattern
18966 is multibyte.
18967 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
18968 <charset>: Use CHAR_LEADING_CODE to get leading codes.
18969 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
18970 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
18971 multibyte always 1.
18972 (re_search_2): In emacs, set the locale variable multibyte to 1,
18973 otherwise to 0. New local variable target_multibyte. Check it
18974 to decide the multibyteness of STR1 and STR2. If
18975 target_multibyte is zero, convert unibyte chars to multibyte
18976 before translating and checking fastmap.
18977 (TARGET_CHAR_AND_LENGTH): New macro.
18978 (re_match_2_internal): In emacs, set the locale variable multibyte
18979 to 1, otherwise to 0. New local variable target_multibyte. Check
18980 it to decide the multibyteness of STR1 and STR2. Use
18981 TARGET_CHAR_AND_LENGTH to fetch a character from D.
18982 <charset, charset_not>: If multibyte is nonzero, check fastmap
18983 only for ASCII chars. Call bcmp_translate with
18984 target_multibyte, not with multibyte.
18985 <begline>: Declare the local variable C as `unsigned'.
18986 (bcmp_translate): Change the last arg name to target_multibyte.
18987
18988 * search.c (compile_pattern_1): Don't adjust the multibyteness of
18989 the regexp pattern and the matching target. Set cp->buf.multibyte
18990 to the multibyteness of the regexp pattern. Set
18991 cp->but.target_multibyte to the multibyteness of the matching target.
18992 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
18993 FETCH_STRING_CHAR_ADVANCE.
18994 (Freplace_match): Convert unibyte chars to multibyte.
18995
18996 * syntax.c (char_quoted, back_comment, scan_words)
18997 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18998 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18999 unibyte chars to multibyte.
19000 (skip_chars): Delete the arg syntaxp, and move the code for
19001 handling syntaxes to skip_syntaxes. Change callers.
19002 Fix the case that the multibyteness of STRING and the current
19003 buffer doesn't match.
19004 (skip_syntaxes): New function.
19005 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19006 SINGLE_BYTE_CHAR_P.
19007
190082008-02-01 Kenichi Handa <handa@m17n.org>
19009
19010 * xfaces.c (QCfontset): New variable.
19011 (LFACE_FONTSET): New macro.
19012 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19013 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19014 (Finternal_set_lisp_face_attribute)
19015 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19016 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19017 check also LFACE_FONTSET_INDEX.
19018 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19019 attrs[LFACE_FONT_INDEX].
19020 (syms_of_xfaces): Intern and staticpro QCfontset.
19021
19022 * dispextern.h (enum lface_attribute_index): New member
19023 LFACE_FONTSET_INDEX.
19024
19025 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19026
190272008-02-01 Kenichi Handa <handa@m17n.org>
19028
19029 * coding.c (coding_set_destination): Fix coding->destination for
19030 the case converting a region.
19031 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19032 (encode_coding_object): Fix coding->dst_pos and
19033 coding->dst_pos_byte for the case converting a region.
19034
19035 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19036
19037 * character.h (BYTE8_STRING): New macro.
19038
19039 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19040
190412008-02-01 Kenichi Handa <handa@m17n.org>
19042
19043 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19044 characters by octal form.
19045
19046 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19047
19048 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19049 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19050 _fetch_multibyte_char_len.
19051 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19052
19053 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19054
19055 * casefiddle.c (casify_object): Simplify. Handle the case that
19056 the case conversion change the byte length.
19057 (casify_region): Likewise.
19058
19059 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19060
19061 * character.c (_fetch_multibyte_char_len): Delete this variable.
19062 (syms_of_character): Setup Vprintable_chars.
19063
19064 * editfns.c (Fchar_equal): Fix for the unibyte case.
19065 (Finsert_byte): New function.
19066 (syms_of_editfns): Defsubr it.
19067
19068 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19069 of direct code 0x3ffff.
19070
19071 * search.c (Freplace_match): Fix for the unibyte case.
19072
190732008-02-01 Kenichi Handa <handa@m17n.org>
19074
19075 * lread.c (safe_to_load_p): Fix the logic.
19076
19077 * syntax.c (scan_words): Don't treat characters belonging to
19078 different scripts as constituting a word.
19079
19080 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19081
19082 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19083
19084 * emacs.c (main): In the case of --unibyte, instead of aborting on
19085 finding non-empty buffer, make it unibyte.
19086
190872008-02-01 Kenichi Handa <handa@m17n.org>
19088
19089 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19090 to create a fontset.
19091
190922008-02-01 Dave Love <fx@gnu.org>
19093
19094 * character.c (Funibyte_char_to_multibyte): Doc fix.
19095
19096 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19097
190982008-02-01 Kenichi Handa <handa@m17n.org>
19099
19100 * fontset.c (fontset_add): Make the type `int'.
19101 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19102
19103 * character.c (unibyte_char_to_multibyte)
19104 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19105 charset_unibyte, not charset_primary.
19106
19107 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19108
19109 * charset.c (charset_unibyte): Rename from charset_primary.
19110 (Funibyte_charset): Rename from Fprimary_charset.
19111 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19112 (syms_of_charset): Adjust for the above changes.
19113
19114 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19115 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19116 it->multibyte_p is zero.
19117
19118 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19119 Delete extern.
19120
191212008-02-01 Kenichi Handa <handa@m17n.org>
19122
19123 * coding.c (Fdefine_coding_system_internal): Fix category setting
19124 for a coding system of type iso-2022.
19125
191262008-02-01 Kenichi Handa <handa@m17n.org>
19127
19128 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19129
191302008-02-01 Kenichi Handa <handa@m17n.org>
19131
19132 * syntax.c (Vnext_word_boundary_function_table): New variable.
19133 (next-word-boundary-function-table): Declare it as a Lisp variable
19134 in syms_of_syntax.
19135 (scan_words): Call functions in Vnext_word_boundary_function_table
19136 if any.
19137
19138 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19139
19140 * fontset.c (fs_load_font): If fontp->charset is not negative,
19141 return fontp without setting its members.
19142
191432008-02-01 Dave Love <fx@gnu.org>
19144
19145 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19146
19147 * m/sparc.h (HAVE_ALLOCA): Delete.
19148
19149 * s/irix6-5.h: Don't include strings.h.
19150 (bcopy, bzero, bcmp): Don't undef.
19151
19152 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19153
19154 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19155 (TIOCSIGSEND): Don't test IRIX6.
19156 (bcopy, bzero, bcmp): Define conditionally.
19157
191582008-02-01 Kenichi Handa <handa@m17n.org>
19159
19160 * buffer.c (Qas, Qmake, Qto): New variables.
19161 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19162 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19163
19164 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19165 we are inserting a process output into a multibyte buffer.
19166
19167 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19168 multibyte_char_to_unibyte.
19169
19170 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19171 by the primary charset, make it eight-bit char.
19172 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19173
19174 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19175 (charset_8_bit__control, charset_8_bit_graphic)
19176 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19177 (define_charset_internal): New function.
19178 (syms_of_charset): Call define_charset_internal for pre-defined
19179 charsets.
19180
19181 * charset.h (charset_8_bit): Extern it.
19182
19183 * coding.c (make_conversion_work_buffer): Adjust for the change
19184 of Fset_buffer_multibyte.
19185 (encode_coding_raw_text): Increment p0 in the loop.
19186
19187 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19188
19189 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19190 for the change of Fset_buffer_multibyte.
19191
19192 * fns.c (Fstring_to_multibyte): New function.
19193 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19194
191952008-02-01 Dave Love <fx@gnu.org>
19196
19197 * xfns.c (x_put_x_image): Declare args.
19198
19199 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19200 (try_font_list): Declare an arg.
19201
19202 * xdisp.c (message2_nolog, set_message): Declare an arg.
19203
19204 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19205
19206 * syntax.c (scan_sexps_forward): Declare an arg.
19207
19208 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19209 Declare an arg.
19210
19211 * lisp.h (Fnew_fontset): Declare.
19212
19213 * keymap.c (push_key_description): Call CHARACTERP correctly.
19214
19215 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19216 (face_for_char): Delete unused vars.
19217 (Fset_fontset_font): Doc fix. Delete unused vars.
19218
19219 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19220
19221 * composite.c (update_compositions): Declare arg.
19222
19223 * cm.c (calccost, cmgoto): Declare args.
19224
19225 * charset.c: Remove `emacs' conditional. Doc fixes.
19226 (map_char_table_for_charset): Declare.
19227
19228 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19229
19230 * ccl.c: Remove `emacs' conditional.
19231
192322008-02-01 Kenichi Handa <handa@m17n.org>
19233
19234 The following changes are to allow specifying multiple font
19235 patterns for a character range (specified by script or charset).
19236
19237 * Makefile.in (abbrev.o): Depend on syntax.h.
19238 (xfaces.o): Depend on charset.h.
19239
19240 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19241 SINGLE_BYTE_CHAR_P.
19242
19243 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19244
19245 * character.h (Vchar_script_table): Extern it.
19246
19247 * character.c (Vscript_alist): Delete.
19248 (Vchar_script_table, Qchar_script_table): New variable.
19249 (syms_of_character): Declare Vchar_script_table as a lisp variable
19250 and initialize it.
19251
19252 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19253 have property char-table-extra-slots, make no extra slot.
19254
19255 * dispextern.h (struct face): Delete member `charset'.
19256 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19257 SINGLE_BYTE_CHAR_P.
19258 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19259 Add prototypes.
19260 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19261 (generate_ascii_font_name): Rename from generate_ascii_font.
19262
19263 * fontset.h (get_font_repertory_func): New prototype.
19264 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19265 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19266
19267 * fontset.c (Qprepend, Qappend): New variables.
19268 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19269 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19270 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19271 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19272 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19273 (load_font_get_repertory): New functions.
19274 (fontset_set): Delete.
19275 (fontset_face): New arg FACE. Return face ID, not face.
19276 Complete re-write to handle new fontset structure. Change caller.
19277 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19278 (face_for_char): Don't call lookup_face.
19279 (make_fontset_for_ascii_face): New arg FACE.
19280 (fs_load_font): New arg CHARSET_ID. Don't check
19281 Vfont_encoding_alist here.
19282 (find_font_encoding): New function.
19283 (list_fontsets): Use STRINGP, not ! NILP.
19284 (accumulate_script_ranges): New function.
19285 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19286 re-written to handle new fontset structure.
19287 (Ffontset_font): Return a copy of element.
19288 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19289 docstring of font-encoding-alist.
19290
19291 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19292 (Fset_fotset_font): Fix arguments to 5.
19293
19294 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19295
19296 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19297 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19298 (highlight_trailing_whitespace): Adjust for the change of
19299 lookup_named_face.
19300
19301 * xfaces.c: Include charset.h.
19302 (load_face_font): Delete argument C. Change caller.
19303 (generate_ascii_font_name): Rename from generate_ascii_font.
19304 (font_name_registry): New function.
19305 (cache_face): Store ascii faces before non-ascii faces in buckets.
19306 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19307 Lookup only ascii faces.
19308 (lookup_non_ascii_face): New function.
19309 (lookup_named_face): Delete argument C. Change caller.
19310 (lookup_derived_face): Delete argument C. Change caller.
19311 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19312 a string, just call font_list with it.
19313 (choose_face_font): Delete arguments FACE and C. New arg
19314 FONT_SPEC. Change caller.
19315 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19316 Change caller.
19317 (realize_non_ascii_face): New function.
19318 (realize_x_face): Call load_face_font here.
19319 (realize_tty_face): Delete argument C. Change caller.
19320 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19321 get a face ID.
19322 (dump_realized_face): Don't print charset of FACE.
19323
19324 * xfns.c (x_set_font): Always call x_new_fontset and
19325 store_frame_parameter.
19326 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19327 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19328
19329 * xterm.h (x_get_font_repertory): Extern it.
19330
19331 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19332 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19333 it->multibyte_p is zero.
19334 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19335 (x_new_fontset): If FONTSETNAME doesn't match any existing
19336 fontsets, create a new one.
19337 (x_get_font_repertory): New function.
19338
193392008-02-01 Kenichi Handa <handa@m17n.org>
19340
19341 * coding.c (Ffind_coding_systems_region_internal): Detect an
19342 ASCII only string correctly.
19343
19344 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19345 version is 0.
19346
193472008-02-01 Kenichi Handa <handa@m17n.org>
19348
19349 * lread.c: Include "coding.h".
19350 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19351 (load_each_byte, unread_char): New variables.
19352 (readchar_backlog): Delete.
19353 (readchar): Return a character unless load_each_byte is nonzero.
19354 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19355 cons. If unread_char is not -1, simply return it.
19356 (unreadchar): Handle the case that readcharfun is
19357 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19358 (read_multibyte): Delete.
19359 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19360 (read_emacs_mule_char): New functions.
19361 (Fload): Even if the file doesn't have the extension ".elc", if
19362 safe_to_load_p returns a positive version number, assume that the
19363 file contains bytecompiled code. If the version is less than 22,
19364 load the file while decoding multibyte sequences by emacs-mule.
19365 (readevalloop): Don't use readchar_backlog.
19366 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19367 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19368 (read_escape): Delete the arg BYTEREP.
19369 (read1): Set load_each_byte to 1 temporarily while handling
19370 #@NUMBER. Don't call read_multibyte.
19371 (read_vector): Call Fread with a cons. If readcharfun is
19372 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19373 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19374 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19375 and Qload_force_doc_strings.
19376
193772008-02-01 Kenichi Handa <handa@m17n.org>
19378
19379 * xdisp.c (face_before_or_after_it_pos): Call
19380 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19381
193822008-02-01 Kenichi Handa <handa@m17n.org>
19383
19384 * character.h (TRAILING_CODE_P): New macro.
19385 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19386 (string_char_with_unification): Fix prototype.
19387 (Vscript_alist): Extern it.
19388
19389 * character.c (Vscript_alist): New variable.
19390 (string_char_with_unification, str_as_unibyte)
19391 (string_escape_byte8): Add `const' to local variables.
19392 (syms_of_character): Declare script-alist as a Lisp variable.
19393
19394 * charset.h (Vcharset_ordered_list): Extern it.
19395 (charset_ordered_list_tick): Extern it.
19396 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19397 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19398 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19399 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19400 (Funify_charset): Adjust for the change of Funify_charset.
19401
19402 * charset.c (charset_ordered_list_tick): New variable.
19403 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19404 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19405 deunify intead of unify a charset.
19406 (string_xstring_p): Add `const' to local variables.
19407 (find_charsets_in_text): Add `const' to arguments and local variables.
19408 (encode_char): Adjust for the change of Funify_charset. Fix
19409 detecting of invalid code.
19410 (Fset_charset_priority): Increment charset_ordered_list_tick.
19411 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19412 and TO_CODE.
19413
19414 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19415 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19416 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19417 (decode_coding_ccl, consume_chars)
19418 (Ffind_coding_systems_region_internal)
19419 (Fcheck_coding_systems_region): Add `const' to local variables.
19420
19421 * print.c (print_object): Use octal form for printing the
19422 contents of a bool vector.
19423
194242008-02-01 Dave Love <fx@gnu.org>
19425
19426 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19427 <version == 20>: Refuse to load.
19428
194292008-02-01 Dave Love <fx@gnu.org>
19430
19431 * fns.c: Move coding.h.
19432 (Qcodeset, Qdays, Qmonths): New.
19433 (concat): Use CHARACTERP instead of INTEGERP.
19434 (Flocale_codeset): Delete.
19435 (Flanginfo): New function.
19436 (syms_of_fns): Change accordingly.
19437
19438 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19439
194402008-02-01 Dave Love <fx@gnu.org>
19441
19442 * casetab.c (init_casetab_once, init_casetab_once): Fix
19443 CHAR_TABLE_SET call.
19444
19445 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19446
19447 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19448
19449 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19450 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19451 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19452
19453 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19454
19455 * coding.c (ENCODE_DESIGNATION, decode_eol)
19456 (make_conversion_work_buffer, code_conversion_restore)
19457 (Fdefine_coding_system_internal): Convert Lisp types.
19458 (code_conversion_restore): Use EQ, not ==.
19459 (Fencode_coding_string): Fix code_convert_string call.
19460
19461 * coding.h (code_convert_region): Fix prototype.
19462
19463 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19464
19465 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19466 (Ffontset_info): Convert Lisp types.
19467
19468 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19469
19470 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19471
19472 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19473
19474 * chartab.c: Include "...h", not <...h> in some cases.
19475
19476 * callproc.c (Fcall_process): Remove unused variables.
19477
194782008-02-01 Dave Love <fx@gnu.org>
19479
19480 * coding.c (Fset_coding_system_priority): Allow null arg list.
19481
194822008-02-01 Dave Love <fx@gnu.org>
19483
19484 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19485 (Fself_insert_and_exit): Use CHARACTERP.
19486
19487 * callproc.c (Fcall_process): Remove unused vars.
19488
19489 * xterm.c (XTread_socket): Add extra dead keysyms.
19490
19491 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19492
19493 * dispextern.h: Remove prototypes for redraw_frame,
19494 redraw_garbaged_frames.
19495
19496 * cmds.c (Fself_insert_command): Use CHARACTERP.
19497
19498 * chartab.c (make_sub_char_table): Remove unused var.
19499 (Fset_char_table_default, Fmap_char_table): Doc fix.
19500
19501 * keymap.c (access_keymap): Remove generic char code.
19502 (push_key_description): Use CHARACTERP.
19503
195042008-02-01 Dave Love <fx@gnu.org>
19505
19506 * charset.c: Doc fixes.
19507 (Funify_charset): Extra checking.
19508
195092008-02-01 Dave Love <fx@gnu.org>
19510
19511 * lread.c: Remove some unused variables.
19512 (safe_to_load_p): If safe, return the magic number version byte.
19513 (Fload): Maybe use load-with-code-conversion.
19514
195152008-02-01 Kenichi Handa <handa@m17n.org>
19516
19517 * category.c (Fmodify_category_entry): Don't modify the contents
19518 of category_set for characters out of the range. Avoid
19519 unnecessary modification.
19520
19521 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19522 Vchar_unify_table. The default value of the table is now nil.
19523
19524 * character.c (syms_of_character): Setup Vchar_width_table for
19525 eight-bit-control and raw-byte chars.
19526
19527 * charset.h (enum define_charset_arg_index): Delete
19528 charset_arg_parents and add charset_arg_subset and
19529 charset_arg_superset.
19530 (enum charset_attr_index): Delete charset_parents and add
19531 charset_subset and charset_superset.
19532 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19533 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19534 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19535 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19536 (CHARSET_SUPERSET): New macros.
19537 (charset_work): Extern it.
19538 (ENCODE_CHAR): Use charset_work.
19539 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19540 (map_charset_chars): Extern it.
19541
19542 * charset.c (load_charset_map): Set the default value of encoder
19543 and deunifier char-tables to nil.
19544 (map_charset_chars): Change argument. Change callers. Use
19545 map_char_table_for_charset instead of map_char_table.
19546 (Fmap_charset_chars): New optional args from_code and to_code.
19547 (Fdefine_charset_internal): Adjust for the change of
19548 `define-charset' (:parents -> :subset or :superset).
19549 (charset_work): New variable.
19550 (encode_char, syms_of_charset): Adjust for the change of
19551 Fdefine_charset_internal.
19552 (Ffind_charset_string): Setup the vector `charsets' correctly.
19553
19554 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19555 the previous change.
19556 (char_table_ref_and_range): Adjust for the above change.
19557 (map_sub_char_table_for_charset): New function.
19558 (map_char_table_for_charset): New function.
19559
19560 * keymap.c (describe_vector): Handle a char-table directly here.
19561 (describe_char_table): Delete.
19562
19563 * lisp.h (map_charset_chars): Delete.
19564
195652008-02-01 Dave Love <fx@gnu.org>
19566
19567 * fns.c (count_combining): Comment out (unused).
19568 (Flocale_codeset): New.
19569 (syms_of_fns): Defsubr it.
19570
19571 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19572 (size_t): Remove.
19573
195742008-02-01 Dave Love <fx@gnu.org>
19575
19576 * Makefile.in (chartab.o): Depend on charset.h.
19577
195782008-02-01 Kenichi Handa <handa@m17n.org>
19579
19580 * character.c (syms_of_character): Set the default value of
19581 Vprintable_chars to Qnil.
19582
195832008-02-01 Dave Love <fx@gnu.org>
19584
19585 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19586
195872008-02-01 Kenichi Handa <handa@m17n.org>
19588
19589 * charset.c (load_charset_map): Handle the case that from < to
19590 correctly.
19591
19592 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19593 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19594 Pay attention to raw-8-bit chars.
19595
195962008-02-01 Kenichi Handa <handa@m17n.org>
19597
19598 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19599 It is not bytecompiled now.
19600
19601 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19602 (charset_jisx0208): New variables.
19603 (Fdefine_charset_internal): Setup them if appropriate.
19604 (init_charset_once): Initialize them to -1.
19605
19606 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19607 (charset_jisx0208): Extern them.
19608
19609 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19610 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19611 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19612 (setup_iso_safe_charsets): Fix arguments to Fassq.
19613 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19614 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19615 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19616 (encode_coding_iso_2022): Change the 1st arg to
19617 ENCODE_ISO_CHARACTER to a variable.
19618
196192008-02-01 Kenichi Handa <handa@m17n.org>
19620
19621 * charset.h (enum define_charset_arg_index): New enums
19622 charset_arg_min_code and charset_arg_max_code.
19623 (struct charset): New member char_index_offset.
19624
19625 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19626 Take charset->char_index_offset into account.
19627 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19628 args[charset_arg_max_code]. Setup charset.char_index_offset.
19629 (syms_of_charset): Fix args to Fdefine_charset_internal.
19630
196312008-02-01 Dave Love <fx@gnu.org>
19632
19633 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19634
196352008-02-01 Dave Love <fx@gnu.org>
19636
19637 * coding.c: Doc fixes.
19638 (Fcoding_system_aliases): Fix return value.
19639 (Qmac): Remove (duplicated) definition.
19640
196412008-02-01 Dave Love <fx@gnu.org>
19642
362654a6
JB
19643 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19644 New functions.
aac0c6e3
MR
19645
19646 * character.c (Fstring): Doc fix.
19647
19648 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19649
362654a6 19650 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19651 (font-encoding-alist): Doc fix.
19652
196532008-02-01 Dave Love <fx@gnu.org>
19654
19655 * term.c (costs_set): Declare static, non-initialized for pcc.
19656 (encode_terminal_code): Remove unused var.
19657
19658 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19659 for K&R.
19660
19661 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19662
19663 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19664 (suffixes): Move out of make_subsidiaries for K&R.
19665
19666 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19667
19668 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19669
196702008-02-01 Dave Love <fx@gnu.org>
19671
19672 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19673
19674 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19675
196762008-02-01 Yong Lu <lyongu@asia-infonet.com>
19677
19678 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19679
19680 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19681
196822008-02-01 Kenichi Handa <handa@m17n.org>
19683
19684 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19685 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19686
196872008-02-01 Kenichi Handa <handa@m17n.org>
19688
19689 * coding.c (decode_coding_charset): Adjust for the change of
19690 Fdefine_coding_system_internal.
19691 (Fdefine_coding_system_internal): For a coding system of
19692 `charset' type, store a list of charset IDs in
19693 `charset_attr_charset_valids' element of coding attributes.
19694
196952008-02-01 Kenichi Handa <handa@m17n.org>
19696
19697 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19698 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19699 caller. Handle 2-byte and 3-byte charsets correctly.
19700 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19701 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19702 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19703 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19704 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19705 sequence.
19706 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19707 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19708 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19709 and alt&rule composition.
19710 (decode_coding_iso_2022): Handle composition correctly.
19711 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19712
19713 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19714 re-defining a charset. If the charset has :emacs-mule-id, setup
19715 emacs_mule_bytes.
19716 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19717
197182008-02-01 Kenichi Handa <handa@m17n.org>
19719
19720 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19721 (encode_coding_big5, encode_coding_charset): If coding requires safe
19722 encoding, produce a character specified by
19723 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19724
197252008-02-01 Dave Love <fx@gnu.org>
19726
19727 * xterm.c (XSetIMValues): Declare.
19728
19729 * process.c: Conditionally include sys/wait.h, pty.h.
19730
19731 * print.c (print_object): Fix print format for 64-bit systems.
19732
19733 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19734
19735 * buffer.c (emacs_strerror): Declare.
19736
19737 * fontset.c (Fclear_face_cache): Declare.
19738 (accumulate_font_info): Comment-out (unused).
19739 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19740 variables.
19741
19742 * character.h (string_escape_byte8): Declare.
19743
19744 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19745 unused vars.
19746 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19747 (Fmap_charset_chars): Doc fix.
19748
19749 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19750 (Fset_coding_system_priority, Fset_coding_system_priority)
19751 (Fdefine_coding_system_internal): Doc fix.
19752
197532008-02-01 Dave Love <fx@gnu.org>
19754
19755 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
19756
197572008-02-01 Kenichi Handa <handa@m17n.org>
19758
19759 * character.c (string_escape_byte8): Make multibyte string with
19760 correct size.
19761
19762 * charset.c (Fmake_char): Delete unnecessary code.
19763
197642008-02-01 Kenichi Handa <handa@m17n.org>
19765
19766 * xfns.c (x_encode_text): Allocate coding.destination here, and
19767 call encode_coding_object with dst_object Qnil.
19768
19769 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
19770 multibyte form correctly.
19771
19772 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
19773 against Vfont_encoding_alist.
19774
19775 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
19776 handling of charset list.
19777 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
19778 (decode_coding_object): Move point to coding->dst_pos before
19779 calling post-read-conversion function.
19780 (encode_coding_object): Give correct arguments to
19781 pre-write-conversion. Ignore the return value of
19782 pre-write-conversion function. Pay attention to the case that
19783 pre-write-conversion changes the current buffer. If dst_object is
19784 Qt, even if coding->src_bytes is zero, allocate at least one byte
19785 to coding->destination.
19786
19787 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
19788
19789 * charset.c (Fmake_char): Make it more backward compatible.
19790 (Fmap_charset_chars): Fix docstring.
19791
197922008-02-01 Dave Love <fx@gnu.org>
19793
19794 * coding.c: Doc fixes.
19795 (Fdefine_coding_system_alias): Use names, not symbols, in
19796 coding-system-alist.
19797
197982008-02-01 Kenichi Handa <handa@m17n.org>
19799
19800 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
19801 of calling free_realized_face.
19802
198032008-02-01 Yong Lu <lyongu@asia-infonet.com>
19804
19805 * charset.c (read_hex): Don't treat SPC as a comment starter.
19806 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
19807 (Fdecode_char): Fix typo.
19808
198092008-02-01 Kenichi Handa <handa@m17n.org>
19810
19811 * charset.h (struct charset): New member `code_space_mask'.
19812
19813 * coding.c (coding_set_source): Delete the local variable beg_byte.
19814 (encode_coding_charset, Fdefine_coding_system_internal):
19815 Delete the local variable charset.
19816 (Fdefine_coding_system_internal): Setup
19817 attrs[coding_attr_charset_valids] correctly.
19818
19819 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
19820 member to check if CODE is valid or not.
19821 (Fdefine_charset_internal): Initialize `code_space_mask' member.
19822 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
19823 is within the range of charset->min_code and carset->max_code.
19824
198252008-02-01 Dave Love <fx@gnu.org>
19826
19827 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
19828
19829 * dispextern.h (generate_ascii_font): Fix return type.
19830
19831 * xfaces.c (generate_ascii_font): Fix arg declaration.
19832
19833 * coding.c (coding_inherit_eol_type)
19834 (Fset_terminal_coding_system_internal)
19835 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
19836
198372008-02-01 Kenichi Handa <handa@m17n.org>
19838
19839 * coding.c (decode_coding_charset, encode_coding_charset): Handle
19840 multiple charsets correctly.
19841
198422008-02-01 Kenichi Handa <handa@m17n.org>
19843
19844 * search.c (boyer_moore): Fix handling of multibyte character
19845 translation.
19846
19847 * xdisp.c (display_mode_element): When the variable `elt' is
19848 changed, update `this' and `lisp_string'.
19849
198502008-02-01 Kenichi Handa <handa@m17n.org>
19851
19852 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
19853
19854 * callproc.c (Fcall_process): Be sure to give the current buffer
19855 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
19856
19857 * charset.c (struct charset_map_entries): New struct.
19858 (load_charset_map): Rename from parse_charset_map. New args
19859 entries and n_entries. Change caller.
19860 (load_charset_map_from_file): Rename from load_charset_map.
19861 Change caller. New arg control_flag. Call load_charset_map at
19862 the tail.
19863 (load_charset_map_from_vector): New function.
19864 (Fdefine_charset_internal): Setup charset.compact_codes_p.
19865 (encode_char): If the charset is compact, change a character index
19866 to a code point.
19867
19868 * coding.c (coding_alloc_by_making_gap): Check the case that the
19869 source and destination are the same correctly.
19870 (decode_coding_raw_text): Set coding->consumed_char and
19871 coding->consumed to 0.
19872 (produce_chars): If coding->chars_at_source is nonzero, update
19873 coding->consumed_char and coding->consumed before calling
19874 alloc_destination.
19875 (Fdefine_coding_system_alias): Register ALIAS in
19876 Vcoding_system_alist.
19877 (syms_of_coding): Define `no-conversion' coding system at the tail.
19878
19879 * fileio.c (Finsert_file_contents): Set coding_system instead of
19880 val. If the current buffer is multibyte, always call
19881 decode_coding_gap.
19882
19883 * xfaces.c (try_font_list): Give higher priority to fontset's
19884 family than face's family.
19885
198862008-02-01 Kenichi Handa <handa@m17n.org>
19887
19888 * callproc.c (Fcall_process): Be sure to give the current buffer
19889 to decode_coding_c_string.
19890
19891 * xfaces.c (try_font_list): Give a family specified in a fontset
19892 higher priority than a family specified in a face.
19893
198942008-02-01 Kenichi Handa <handa@m17n.org>
19895
19896 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
19897 Fix arguments to insert_from_buffer.
19898
19899 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
19900
199012008-02-01 Kenichi Handa <handa@m17n.org>
19902
19903 * coding.c (produce_chars): Set the variable `multibytep' correctly.
19904 (decode_coding_gap): Set coding->dst_multibyte correctly.
19905
199062008-02-01 Kenichi Handa <handa@m17n.org>
19907
19908 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
19909 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
19910 (encode_coding_utf_16): Substitute coding->default_char for
19911 non-Unicode characters.
19912 (decode_coding): Don't call record_insert here.
19913 (setup_coding_system): Initialize `surrogate' of
19914 coding->spec.utf_16 to 0.
19915 (EMIT_ONE_BYTE): Fix for multibyte case.
19916
19917 * insdel.c (insert_from_gap): Call record_insert.
19918
199192008-02-01 Kenichi Handa <handa@m17n.org>
19920
19921 * casefiddle.c (casify_region): Fix multibyte case.
19922
19923 * character.c (c_string_width): Add return type `int'.
19924 (char_string_with_unification): Delete arg ADVANCED.
19925
19926 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
19927 (CHAR_STRING): Adjust for the change of char_string_with_unification.
19928 (CHAR_STRING_ADVANCE): Make it do-while statement.
19929
19930 * chartab.c (sub_char_table_set_range): Optimize for the case
19931 DEPTH == 3. Add workaround code for a GCC optimization bug.
19932
19933 * charset.c (parse_charset_map): Remove an unused variable.
19934
19935 * coding.c: Delete unused variables.
19936
19937 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
19938 earlier. If inserted is zero and the coding system doesn't
19939 require flushing, don't call decode_coding_gap.
19940
19941 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
19942
199432008-02-01 Kenichi Handa <handa@m17n.org>
19944
19945 The following changes are for using Unicode as an internal
19946 character model, and use UTF-8 format for buffer/string
19947 representation.
19948
19949 * .gdbinit (xchartable): Adjust for the change of char table structure.
19950 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
19951
19952 * Makefile.in (obj): Add character.o and chartab.o.
19953 (lisp, shortlisp): Remove utf-8.elc.
19954 (*.o): For many files, change dependency on charset.h to
19955 character.h, and add dependency on character.h.
19956 (character.o, chartab.o): New targets.
19957
19958 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
19959 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
19960 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
19961 of "charset.h".
19962
19963 * dired.c, filelock.c: Include "character.h".
19964
19965 * alloc.c: Include "character.h" instead of "charset.h".
19966 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
19967 (syms_of_alloc): Remove defsubr for Smake_char_table.
19968
19969 * buffer.c: Include "character.h" instead of "charset.h", don't
19970 include "coding.h".
19971 (Fset_buffer_multibyte): Adjust for UTF-8.
19972
19973 * buffer.h: EXFUN Fbuffer_live_p.
19974
19975 * callproc.c: Include "character.h" instead of "charset.h".
19976 (Fcall_process): Big change for the new code-conversion APIs.
19977
19978 * casetab.c: Include "character.h" instead of "charset.h".
19979 (set_canon, set_identity, shuffle): Adjust for the new
19980 map_char_table spec.
19981 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
19982 accessing the char table structure.
19983
19984 * chartab.c: New file that implements char table.
19985
19986 * category.c: Include "character.h".
19987 (copy_category_entry): New function.
19988 (copy_category_table): Call map_char_table and copy_category_entry.
19989 (Fmake_category_table): Initialize all top-level slots.
19990 (char_category_set): New function.
19991 (modify_lower_category_set): Delete.
19992 (Fmodify_category_entry): Call char_table_ref_and_range.
19993
19994 * category.h (CATEGORY_SET): Just call char_category_set.
19995
19996 * ccl.c: Include "character.h".
19997 (Qccl, Qcclp): New variables.
19998 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19999 it's less than 256.
20000 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20001 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20002 and DST type.
20003 (ccl_driver): Change types of argument, adjust code accordingly.
20004 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20005 ccl_driver.
20006 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20007
20008 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20009 New members src_multibyte, dst_multibyte, consumed, and produced.
20010 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20011 (CODING_SPEC_CCL_PROGRAM): New macro.
20012 (ccl_driver): Update prototype.
20013 (Qccl, Qcclp, Fccl_program_p): Extern them.
20014 (CHECK_CCL_PROGRAM): New macro.
20015
20016 * character.c, character.h, chartab.c: New files.
20017
20018 * charset.c: Mostly re-written. Move character and multibyte sequence
20019 handling codes to character.c.
20020
20021 * charset.h: Mostly re-written. Move character and multibyte sequence
20022 handling codes to character.h.
20023
20024 * coding.c, coding.h: Mostly re-written.
20025
20026 * composite.c: Include "character.h" instead of "charset.h".
20027 (CHAR_WIDTH): Move to character.h.
20028 (HASH_KEY, HASH_VALUE): Delete.
20029
20030 * composite.h (enum composition_method): Change order of enumeration
20031 symbols.
20032
20033 * data.c: Include "character.h" instead of "charset.h".
20034 (Faref): Call CHAR_TABLE_REF for a char table.
20035 (Faset): Call CHAR_TABLE_SET for a char table.
20036
20037 * dispextern.h (free_realized_face, check_face_attribytes)
20038 (generate_ascii_font): Extern them.
20039 (free_realized_multibyte_face): Delete extern.
20040
20041 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20042 table structure.
20043
20044 * editfns.c: Include "character.h" instead of "charset.h".
20045 (Fchar_to_string): Always call CHAR_STRING.
20046
20047 * emacs.c (main): Call init_charset_once, init_charset,
20048 syms_of_chartab, and syms_of_character.
20049
20050 * fileio.c: Include "character.h" instead of "charset.h".
20051 (Finsert_file_contents): Big change for the new code-conversion API.
20052 (choose_write_coding_system, Fwrite_region): Likewise.
20053 (build_annotations_2): Delete.
20054 (e_write): Big change for the new code-conversion API.
20055
20056 * fns.c: Include "character.h" instead of "charset.h".
20057 (copy_sub_char_table): Move to chartab.c.
20058 (Fcopy_sequence): Call copy_char_table for a char table.
20059 (concat): Delete codes calling count_multibyte.
20060 (string_char_to_byte, string_byte_to_char): Adjust for the new
20061 multibyte form.
20062 (internal_equal): Adjust for the change of char table structure.
20063 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20064 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20065 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20066 (char_table_translate, optimize_sub_char_table)
20067 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20068 chartab.c.
20069 (char_table_ref_and_index): Delete.
20070 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20071 (Fmd5): Call preferred_coding_system instead of accessing
20072 Vcoding_category_list. Adjust for the new code-conversion API.
20073 (syms_of_fns): Move defsubr for char table related functions to
20074 chartab.c.
20075
20076 * fontset.c: Mostly re-written.
20077
20078 * fontset.h (struct font_info): Change type of the member encoding_type.
20079 (enum FONT_SPEC_INDEX): New enum.
20080 (fontset_font_pattern, fs_load_font): Update prototype.
20081 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20082
20083 * indent.c: Include "character.h" instead of "charset.h".
20084 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20085
20086 * insdel.c: Include "character.h" instead of "charset.h".
20087 (copy_text): Don't refer to Vnonascii_translation_table.
20088 (insert_from_gap): New function.
20089
20090 * keyboard.c: Include "character.h" instead of "charset.h".
20091 (command_loop_1): Never call direct_output_forward_char before
20092 a non-ASCII character.
20093 (read_char): If Vkeyboard_translate_table is a char table, always
20094 translate a character.
20095
20096 * keymap.c: Include "character.h".
20097 (store_in_keymap): Handle the case that IDX is a cons.
20098 (Fdefine_key): Handle the case that KEY is a cons and the car part
20099 is also a cons (range).
20100 (push_key_description): Adjust for the new character code.
20101 (describe_vector): Call describe_char_table for a char table.
20102 (describe_char_table): New function.
20103
20104 * keymap.h (describe_char_table): Extern it.
20105
20106 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20107 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20108 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20109 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20110 Delete.
20111 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20112 structure.
20113 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20114 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20115 (CHARTAB_SIZE_BITS_3): New macros.
20116 (chartab_size): Extern it.
20117 (struct Lisp_Char_Table): Re-design.
20118 (struct Lisp_Sub_Char_Table): New structure.
20119 (HASH_KEY, HASH_VALUE): Move from fns.c.
20120 (CHARACTERBITS): Define as 22.
20121 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20122 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20123 (GC_SUB_CHAR_TABLE_P): New macro.
20124 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20125 (code_convert_string_norecord): Deleted extern.
20126 (init_character_once, syms_of_character, init_charset)
20127 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20128
20129 * lread.c: Include "character.h".
20130 (read_multibyte): New arg NBYTES.
20131 (read_escape): Change the meaning of returned *BYTEREP.
20132 (to_multibyte): Delete.
20133 (read1): Adjust the handling of char table and string.
20134
20135 * print.c: Include "character.h" instead of "charset.h".
20136 (print_string): Convert 8-bit raw bytes to octal form by
20137 string_escape_byte8.
20138 (print_object): Adjust for the new multibyte form. Print 8-bit
20139 raw bytes always in octal form. Handle sub char table correctly.
20140
20141 * process.c: Include "character.h" instead of "charset.h".
20142 (read_process_output, send_process): Adjust for the new
20143 code-conversion API.
20144
20145 * puresize.h (BASE_PURESIZE): Increase.
20146
20147 * regex.c: Include "character.h" instead of "charset.h".
20148 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20149 (regex_compile): Accept a range whose starting and ending
20150 character have different leading bytes.
20151 (analyse_first): Adjust for the above change.
20152
20153 * search.c: Include "character.h" instead of "charset.h".
20154 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20155 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20156
20157 * syntax.c: Include "character.h" instead of "charset.h".
20158 (syntax_parent_lookup): Delete.
20159 (Fmodify_syntax_entry): Accept a cons as CHAR.
20160 (skip_chars): Adjust for the new multibyte form.
20161 (init_syntax_once): Call char_table_set_range instead of directly
20162 accessing the structure of a char table.
20163
20164 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20165 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20166 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20167 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20168
20169 * term.c: Include "buffer.h" and "character.h".
20170 (encode_terminal_code, write_glyphs): Adjust for the new
20171 code-conversion API.
20172 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20173
20174 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20175
20176 * xdisp.c: Include "character.h".
20177 (get_next_display_element): Adjust for the new multibyte form.
20178 (disp_char_vector): Adjust for the new char table structure.
20179 (decode_mode_spec_coding): Adjust for the new structure of
20180 coding system.
20181 (decode_mode_spec): Adjust for the new code-conversion API.
20182
20183 * xfaces.c: Include "character.h" instead of "charset.h".
20184 (load_face_font): Adjust for the change of choose_face_font and
20185 FS_LOAD_FONT.
20186 (generate_ascii_font): New function.
20187 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20188 (set_font_frame_param): Adjust for the change of choose_face_font.
20189 (free_realized_face): Make it public.
20190 (free_realized_faces_for_fontset): Rename from
20191 free_realized_multibyte_face. Free also faces realized for ASCII.
20192 (choose_face_font): Change arguments. Adjust for the change of
20193 fontset_font_pattern and FS_LOAD_FONT.
20194
20195 * xfns.c: Include "character.h".
20196 (x_encode_text): Adjust for the new code-conversion API.
20197
20198 * xselect.c: Don't include "charset.h".
20199 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20200
20201 * xterm.c: Include "character.h".
20202 (x_encode_char): New argument CHARSET. Change caller.
20203 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20204 Call ENCODE_CHAR instead of SPLIT_CHAR.
20205 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20206 CHAR_WIDTH instead of CHARSET_WIDTH.
20207 (XTread_socket): Adjust for the new code-conversion API.
20208 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20209 (x_load_font): Adjust for the change of struct font.
20210
202112008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20212
20213 * xfaces.c (face_at_buffer_position): Remove unused vars.
20214
202152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20216
20217 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20218 Fix overflow checking.
20219
202202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20221
20222 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20223 Cancel previous change.
20224
202252008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20226
20227 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20228 ccl->eight_bit_control. Fix check for buffer overflow.
20229 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20230 (ccl_driver): Initialize extra_bytes to 0.
20231
202322008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20233
20234 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20235 return it ORed with ctrl_modifier.
20236
202372008-01-29 Miles Bader <miles@gnu.org>
20238
20239 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20240
202412008-01-28 Jason Rumney <jasonr@gnu.org>
20242
20243 * w32.c (stat): Don't double check for networked drive.
20244
202452008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20246
20247 * window.c (run_window_configuration_change_hook): New function.
20248 Code extracted from set_window_buffer. Set the selected frame.
20249 (set_window_buffer): Use it.
20250 * window.h (run_window_configuration_change_hook): Declare.
20251 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20252
20253 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20254
202552008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20256
20257 * Makefile.in: Remove references to unused macros.
20258
202592008-01-26 Eli Zaretskii <eliz@gnu.org>
20260
20261 * w32.c (g_b_init_get_sid_sub_authority)
20262 (g_b_init_get_sid_sub_authority_count): New static variables.
20263 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20264 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20265 (init_user_info): Use them to retrieve uid and gid.
20266 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20267 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20268 st_uid and st_gid of the file.
20269
202702008-01-26 Jason Rumney <jasonr@gnu.org>
20271
20272 * w32.c (logon_network_drive): New function.
20273 (stat): Use it.
20274
202752008-01-26 Chong Yidong <cyd@stupidchicken.com>
20276
20277 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20278 invisible text covered with an ellipsis.
20279
202802008-01-25 Richard Stallman <rms@gnu.org>
20281
20282 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20283 jump back to beginning. Move some other initializations after that.
20284 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20285 New variables.
20286 (syms_of_xdisp): Init them.
20287
20288 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20289
20290 * buffer.c (reset_buffer_local_variables):
20291 Implement `permanent-local-hook'.
20292 (Qpermanent_local_hook): New variable.
20293 (syms_of_buffer): Init and staticpro it.
20294
202952008-01-25 Michael Albinus <michael.albinus@gmx.de>
20296
20297 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20298
202992008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20300
20301 * fns.c (Fclrhash): Return TABLE.
20302
203032008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20304
20305 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20306 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20307 is set even without positional changes.
20308 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20309
20310 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20311
203122008-01-23 Jason Rumney <jasonr@gnu.org>
20313
20314 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20315
20316 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20317 the unicode range available in MULE by locale-coding-system.
20318 Improve dbcs lead byte detection. Set event timestamp and modifiers
20319 earlier.
20320
203212008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20322
20323 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20324 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20325 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20326 when used on child processes.
20327
203282008-01-21 Michael Albinus <michael.albinus@gmx.de>
20329
20330 * dbusbind.c (Fdbus_method_return_internal): Rename from
20331 Fdbus_method_return.
20332 (Fdbus_unregister_object): Move to dbus.el.
20333 (Fdbus_call_method, Fdbus_method_return_internal)
20334 (Fdbus_send_signal): Improve debug messages.
20335
203362008-01-20 Martin Rudalics <rudalics@gmx.at>
20337
20338 * undo.c (undo_inhibit_record_point): New variable.
20339 (syms_of_undo): Initialize it.
20340 (record_point): Don't record point when undo_inhibit_record_point
20341 is set.
20342
203432008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20344
20345 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20346
20347 * xdisp.c (Qauto_hscroll_mode): New var.
20348 (syms_of_xdisp): Initialize it.
20349 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20350 window's buffer.
20351 (hscroll_windows): Don't check automatic_hscrolling_p here.
20352
20353 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20354 vscroll if we're setting window-buffer to the value it already has.
20355
203562008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20357
20358 * m/intel386.h: Remove references to XENIX.
20359
203602008-01-17 Andreas Schwab <schwab@suse.de>
20361
20362 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20363 instead of HAVE_X86_64_LIB64_DIR.
20364 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20365
203662008-01-17 Glenn Morris <rgm@gnu.org>
20367
20368 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20369 to HAVE_X86_64_LIB64_DIR.
20370
203712008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20372
20373 * s/irix3-3.h:
20374 * s/irix4-0.h:
20375 * s/386-ix.h:
20376 * s/domain.h:
20377 * s/hpux9-x11r4.h:
20378 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20379
20380 * sysdep.c: Remove code containing references to symbols defined
20381 by unsupported systems.
20382
203832008-01-16 Glenn Morris <rgm@gnu.org>
20384
20385 * coding.c (select-safe-coding-system-function): Doc fix.
20386
203872008-01-15 Glenn Morris <rgm@gnu.org>
20388
20389 * config.in: Revert 2008-01-13 change: this is a generated file.
20390
203912008-01-13 Tom Tromey <tromey@redhat.com>
20392
20393 * lisp.h: Fix typo.
20394
203952008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20396
20397 * m/sequent-ptx.h:
20398 * m/sequent.h:
20399 * s/ptx.h:
20400 * s/ptx4-2.h:
20401 * s/ptx4.h: Remove files for systems no longer supported.
20402
20403 * callproc.c (Fcall_process): Fix previous change.
20404
204052008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20406
20407 * unexsunos4.c: Remove file, system not supported anymore.
20408
20409 * m/mips.h:
20410 * m/intel386.h:
20411 * callproc.c:
20412 * config.in:
20413 * ecrt0.c:
20414 * emacs.c:
20415 * fileio.c:
20416 * frame.c:
20417 * getpagesize.h:
20418 * keyboard.c:
20419 * lread.c:
20420 * process.c:
20421 * puresize.h:
20422 * sysdep.c:
20423 * systty.h:
20424 * syswait.h:
20425 * unexec.c:
20426 * xdisp.c:
20427 * alloc.c: Remove code containing references to symbols defined by
20428 unsupported systems.
20429
204302008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20431
20432 * coding.c (detect_coding_mask): Fix previous change.
20433
204342008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20435
20436 * coding.c (detect_coding_iso2022): New arg
20437 latin_extra_code_state. Allow Latin extra codes only
20438 when *latin_extra_code_state is nonzero.
20439 (detect_coding_mask): If there is a NULL byte, detect the encoding
20440 as UTF-16 or binary. If Latin extra codes exist, detect the
20441 encoding as ISO-2022 only when there's no other proper encoding is
20442 found.
20443
204442008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20445
20446 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20447 #ifdef MAC_OS.
20448
204492008-01-08 Richard Stallman <rms@gnu.org>
20450
20451 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20452
204532008-01-06 Nick Roberts <nickrob@snap.net.nz>
20454
20455 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20456 menu bar in parentheses.
20457
204582008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20459
20460 * m/7300.h:
20461 * m/acorn.h:
20462 * m/alliant-2800.h:
20463 * m/alliant.h:
20464 * m/alliant1.h:
20465 * m/alliant4.h:
20466 * m/altos.h:
20467 * m/amdahl.h:
20468 * m/apollo.h:
20469 * m/att3b.h:
20470 * m/aviion-intel.h:
20471 * m/aviion.h:
20472 * m/celerity.h:
20473 * m/clipper.h:
20474 * m/cnvrgnt.h:
20475 * m/convex.h:
20476 * m/cydra5.h:
20477 * m/delta88k.h:
20478 * m/dpx2.h:
20479 * m/dual.h:
20480 * m/elxsi.h:
20481 * m/f301.h:
20482 * m/gould-np1.h:
20483 * m/gould.h:
20484 * m/i860.h:
20485 * m/ibmps2-aix.h:
20486 * m/ibmrt-aix.h:
20487 * m/ibmrt.h:
20488 * m/irist.h:
20489 * m/is386.h:
20490 * m/isi-ov.h:
20491 * m/mega68.h:
20492 * m/mg1.h:
20493 * m/news-r6.h:
20494 * m/news-risc.h:
20495 * m/news.h:
20496 * m/nh3000.h:
20497 * m/nh4000.h:
20498 * m/ns16000.h:
20499 * m/ns32000.h:
20500 * m/nu.h:
20501 * m/orion.h:
20502 * m/orion105.h:
20503 * m/paragon.h:
20504 * m/pfa50.h:
20505 * m/plexus.h:
20506 * m/pyramid.h:
20507 * m/pyrmips.h:
20508 * m/sh3el.h:
20509 * m/sps7.h:
20510 * m/sr2k.h:
20511 * m/stride.h:
20512 * m/sun1.h:
20513 * m/sun2.h:
20514 * m/sun3-68881.h:
20515 * m/sun3-fpa.h:
20516 * m/sun3-soft.h:
20517 * m/sun3.h:
20518 * m/sun386.h:
20519 * m/symmetry.h:
20520 * m/tad68k.h:
20521 * m/tahoe.h:
20522 * m/targon31.h:
20523 * m/tek4300.h:
20524 * m/tekxd88.h:
20525 * m/tower32.h:
20526 * m/tower32v3.h:
20527 * m/ustation.h:
20528 * m/wicat.h:
20529 * m/xps100.h:
20530 * s/cxux.h:
20531 * s/cxux7.h:
20532 * s/dgux.h:
20533 * s/dgux4.h:
20534 * s/dgux5-4-3.h:
20535 * s/dgux5-4r2.h:
20536 * s/esix.h:
20537 * s/esix5r4.h:
20538 * s/hiuxmpp.h:
20539 * s/hiuxwe2.h:
20540 * s/iris3-5.h:
20541 * s/iris3-6.h:
20542 * s/isc2-2.h:
20543 * s/isc3-0.h:
20544 * s/isc4-0.h:
20545 * s/isc4-1.h:
20546 * s/newsos5.h:
20547 * s/newsos6.h:
20548 * s/osf1.h:
20549 * s/osf5-0.h:
20550 * s/riscix1-1.h:
20551 * s/riscix12.h:
20552 * s/sco4.h:
20553 * s/sco5.h:
20554 * s/sunos4-0.h:
20555 * s/sunos4-1.h:
20556 * s/sunos413.h:
20557 * s/sunos4shr.h:
20558 * s/umax.h:
20559 * s/unipl5-2.h:
20560 * s/xenix.h:
20561 * cxux-crt0.s:
20562 * unexapollo.c:
20563 * unexconvex.c:
20564 * unexenix.c:
20565 * unexsni.c: Remove files for systems no longer supported.
20566
20567 * m/intel386.h: Remove references to unsupported systems.
20568
20569 * w32.c (get_emacs_configuration): Remove reference to i860.
20570
20571 * sysdep.c: Remove dead code.
20572
205732008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20574
20575 * s/rtu.h:
20576 * m/masscomp.h: Remove files. Platform is obsolete.
20577
205782008-01-04 Michael Albinus <michael.albinus@gmx.de>
20579
20580 * dbusbind.c (Fdbus_method_return): New function.
20581 (xd_read_message): Add the serial number to the event.
20582 (Fdbus_register_method): Activate the function.
20583
205842008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20585
20586 * keyboard.c (read_key_sequence): Fix typo.
20587
205882008-01-03 Michael Albinus <michael.albinus@gmx.de>
20589
20590 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20591 (xd_signature, xd_append_arg): Handle element type detection for
20592 empty arrays.
20593 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20594 SDATA () calls; this must be solved more general.
20595 (Fdbus_register_signal): Use SBYTES instead of strlen.
20596
205972008-01-03 Magnus Henoch <magnus@zemdatav>
20598
20599 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20600 unsigned int for byte values (necessary for big-endian platform).
20601 (Fdbus_call_method): Handle the case of no returned arguments.
20602
206032007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20604
20605 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20606
206072007-12-31 Magnus Henoch <mange@freemail.hu>
20608
20609 * dbusbind.c (xd_signature): Signature of variant is just "v".
20610
206112007-12-30 Michael Albinus <michael.albinus@gmx.de>
20612
20613 * dbusbind.c: Fix several errors and compiler warnings.
20614 Reported by Tom Tromey <tromey@redhat.com>.
20615 (XD_ERROR, XD_DEBUG_MESSAGE)
20616 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20617 (xd_append_arg): Part for basic D-Bus types rewritten.
20618 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20619 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20620 appropriate.
20621 (xd_read_message): Return Qnil. Don't signal an error; it is not
20622 useful during event reading.
20623 (Fdbus_register_signal): Signal an error if the check for
20624 FUNCTIONP fails.
20625 (Fdbus_register_method): New function. The implementation is not
20626 complete, the call of the function signals an error therefore.
20627 (Fdbus_unregister_object): New function, renamed from
20628 Fdbus_unregister_signal. The initial check signals an error, if
20629 the object is not well formed.
20630
206312007-12-30 Richard Stallman <rms@gnu.org>
20632
20633 * textprop.c (get_char_property_and_overlay):
20634 Signal error if POSITION is out of range in a buffer.
20635
206362007-12-29 Martin Rudalics <rudalics@gmx.at>
20637
20638 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20639 because the original parameters are in pure storage now.
20640
206412007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20642
20643 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20644
206452007-12-22 Eli Zaretskii <eliz@gnu.org>
20646
20647 * callint.c (syms_of_callint) <command-history>: Add reference to
20648 history-length in the doc string.
20649
206502007-12-17 Jason Rumney <jasonr@gnu.org>
20651
20652 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20653 before passing as wParam.
20654
206552007-12-22 Michael Albinus <michael.albinus@gmx.de>
20656
20657 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20658 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20659 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20660 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20661 as number.
20662 (Fdbus_call_method): Fix docstring.
20663
206642007-12-21 Michael Albinus <michael.albinus@gmx.de>
20665
20666 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20667 New macros.
20668 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20669 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20670 Simplify.
20671 (xd_signature): New function.
20672 (xd_append_arg): Compute also signatures. Major rewrite.
20673 (xd_retrieve_arg): Make debug messages friendly.
20674 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20675 Check for signatures of arguments.
20676
206772007-12-19 Michael Albinus <michael.albinus@gmx.de>
20678
20679 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20680 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20681 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20682 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20683 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20684 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20685 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20686 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20687 (xd_retrieve_value): Remove. Functionality included in ...
20688 (xd_append_arg): New function.
20689 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20690
206912007-12-16 Michael Albinus <michael.albinus@gmx.de>
20692
20693 * dbusbind.c (top): Include <stdio.h>.
20694 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20695 dbus_message_new_method_call and dbus_message_new_signal.
20696 (Fdbus_register_signal): Rename unique_name to uname.
20697 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20698 non-existing unique name. Fix typos in matching rule. Return an
20699 object which is useful in Fdbus_unregister_signal.
20700 (Fdbus_unregister_signal): Reimplementation, in order to remove
20701 only the corresponding entry.
20702 (Vdbus_registered_functions_table): Change the order of entries.
20703 Apply these changes in xd_read_message and Fdbus_register_signal.
20704
207052007-12-16 Andreas Schwab <schwab@suse.de>
20706
20707 * fileio.c (Finsert_file_contents): Fix overflow check to not
20708 depend on undefined integer overflow.
20709
207102007-12-14 Jason Rumney <jasonr@gnu.org>
20711
20712 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20713 for characters above 127.
20714
207152007-12-13 Jason Rumney <jasonr@gnu.org>
20716
20717 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20718 before dereferencing array.
20719 (lookup_vk_code): Remove zero comparison.
20720
207212007-12-14 Michael Albinus <michael.albinus@gmx.de>
20722
20723 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20724 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20725 Use `unsigned int' instead of `uint'.
20726 (xd_read_message, Fdbus_register_signal): Split expressions into
20727 multiple lines before operators "&&" and "||", according to the
20728 GNU Coding Standards.
20729
207302007-12-14 Eli Zaretskii <eliz@gnu.org>
20731
20732 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20733
207342007-12-12 Juri Linkov <juri@jurta.org>
20735
20736 * buffer.c (Frename_buffer): In interactive spec replace
20737 `read-buffer' with `read-string' that uses `buffer-name-history'
20738 as history, and the current buffer's name as default.
20739
207402007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20741
20742 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20743 manipulating the backtrace manually.
20744 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20745 (struct backtrace, backtrace_list): Remove.
20746 (command_loop_1): Remove dead var `no_direct'.
20747
20748 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20749 preserve non-built-in buffer-local variables.
20750 (Fkill_all_local_variables): Don't re-create&re-set permanent
20751 buffer-local variables.
20752
207532007-12-09 Juri Linkov <juri@jurta.org>
20754
20755 * buffer.c (Frename_buffer): Change interactive spec from "s" to
20756 Lisp code that uses `read-buffer' with current buffer as default.
20757
207582007-12-08 Michael Albinus <michael.albinus@gmx.de>
20759
20760 * dbusbind.c (xd_read_message): Generate an event for every
20761 registered handler. There might be several handlers registered
20762 for the same signal.
20763 (Fdbus_register_signal): Don't overwrite a registration for the
20764 same signal. Add a new registration if handlers are different.
20765 (Vdbus_registered_functions_table): Rework doc string.
20766
207672007-12-07 Michael Albinus <michael.albinus@gmx.de>
20768
20769 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
20770 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
20771 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
20772 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
20773 Unify argument lists.
20774 (xd_read_message, Fdbus_register_signal): Reorder and extend event
20775 arguments and hash table keys. Use unique name for service.
20776 (Fdbus_unregister_signal): Remove checks.
20777 (Vdbus_registered_functions_table): Fix doc string.
20778
207792007-12-05 Magnus Henoch <mange@freemail.hu>
20780
20781 * process.c (make_process): Initialize pty_flag to 0.
20782
207832007-12-05 Jason Rumney <jasonr@gnu.org>
20784
20785 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
20786 specified XBMs.
20787
207882007-12-05 Richard Stallman <rms@gnu.org>
20789
20790 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
20791
207922007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20793
20794 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
20795 New variable.
20796 (mac_try_close_socket) [MAC_OSX]: New function.
20797 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
20798 Update cfsockets_for_select. Replace invalid CFRunLoop source.
20799
20800 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
20801 Use mac_try_close_socket.
20802
208032007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20804
20805 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
20806 reloc_base.
20807 (copy_dysymtab): Compute relocation base here.
20808 (rebase_reloc_address) [__ppc64__]: New function.
20809 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
20810 changed.
20811
208122007-12-05 Jason Rumney <jasonr@gnu.org>
20813
20814 * w32proc.c (sys_spawnve): Quote args with wildcards.
20815
208162007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20817
20818 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
20819 __objc_* sections.
20820 (unrelocate) [_LP64]: Set relocation base to address of data segment.
20821
208222007-12-05 Michael Albinus <michael.albinus@gmx.de>
20823
20824 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
20825 Move check for Vdbus_registered_functions_table to
20826 xd_read_queued_messages.
20827 (xd_read_queued_messages): Protect xd_read_message calls by
20828 internal_condition_case_1.
20829
208302007-12-04 Michael Albinus <michael.albinus@gmx.de>
20831
20832 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
20833 Qdbus_system_bus and Qdbus_session_bus, respectively.
20834 (Vdbus_intern_symbols): Remove.
20835 (Vdbus_registered_functions_table): New hash table.
20836 (XD_SYMBOL_INTERN_SYMBOL): Remove.
20837 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
20838 Rewrite in order to manage registered functions by hash table
20839 Vdbus_registered_functions_table.
20840
208412007-12-03 Jan Djärv <jan.h.d@swipnet.se>
20842
20843 * xterm.c: Update URL to Window Manager Specification in comment.
20844
208452007-12-02 Michael Albinus <michael.albinus@gmx.de>
20846
20847 * config.in (HAVE_DBUS): Add.
20848
20849 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
20850 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
20851 (obj): Add $(DBUS_OBJ).
20852 (LIBES): Add $(DBUS_LIBS).
20853 (dbusbind.o): New target.
20854
20855 * dbusbind.c: New file.
20856
20857 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
20858
20859 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
20860 (Qdbus_event): New Lisp symbol.
20861 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
20862 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 20863 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
20864
20865 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
20866
208672007-12-01 Richard Stallman <rms@gnu.org>
20868
20869 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
20870
208712007-11-30 Jason Rumney <jasonr@gnu.org>
20872
20873 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
20874 (w32con_reset_terminal_modes): Clear screen buffer.
20875 (w32_face_attributes): Don't use color indexes that are out of range.
20876 Only reverse the default colors.
20877
20878 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
20879 WINDOWSNT.
20880
20881 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
20882
208832007-11-29 Jason Rumney <jasonr@gnu.org>
20884
20885 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
20886 (w32_face_attributes): Use Vtty_defined_color_alist to determine
20887 if the terminal colors are initialized.
20888 (unspecified_fg, unspecified_bg): Remove unused declarations.
20889
208902007-11-29 Andreas Schwab <schwab@suse.de>
20891
20892 * keyboard.c (apply_modifiers): Fix typo.
20893
208942007-11-29 Richard Stallman <rms@gnu.org>
20895
20896 * keymap.c (Fcurrent_local_map): Doc fix.
20897
208982007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
20899
20900 * s/gnu-kfreebsd.h: New file.
20901
209022007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
20903
20904 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
20905 Don't cast redundantly.
20906
20907 * keyboard.c (KEY_TO_CHAR): New macro.
20908 (parse_modifiers, apply_modifiers): Accept integer arguments.
20909 (read_key_sequence): Use them to unify the "shift->unshift" mapping
20910 for chars and symbol keys.
20911 After doing such remapping, apply function-key-map again.
20912
209132007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
20914
20915 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
20916 compiled anymore.
20917
209182007-11-26 Andreas Schwab <schwab@suse.de>
20919
20920 * process.c (list_processes_1): Fix indentation level of the
20921 command column.
20922
209232007-11-23 Andreas Schwab <schwab@suse.de>
20924
20925 * editfns.c (Fformat): Handle %c specially since it requires the
20926 argument to be of type int.
20927
209282007-11-23 Markus Triska <markus.triska@gmx.at>
20929
20930 * emacs.c (main): Call init_editfns before init_process, since
20931 init_process sets Vprocess_connection_type depending on OS release.
20932
209332007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
20934
20935 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
20936 (find_symbol_value): Use do_symval_forwarding.
20937
20938 * data.c (set_internal): Set the value in the `cons-cell' (for
20939 Buffer_Local_values) not only for frame-local variables.
20940
209412007-11-22 Andreas Schwab <schwab@suse.de>
20942
20943 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
20944 values to sprintf.
20945 * keymap.c (Fsingle_key_description): Likewise.
20946 * print.c (print_object): Likewise.
20947
209482007-11-22 Jan Djärv <jan.h.d@swipnet.se>
20949
20950 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
20951 file for image is nil.
20952
209532007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
20954
20955 * term.c: Include stdarg.h.
20956 (fatal): Implement using varargs.
20957 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
20958
209592007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20960
20961 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
20962 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
20963 Update call to buffer_slot_type_mismatch.
20964 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
20965 (buffer_slot_type_mismatch): Update.
20966 * buffer.c (buffer_local_types): Remove.
20967 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
20968 (defvar_per_buffer): Set the type in the buffer_objfwd.
20969
209702007-11-21 Jason Rumney <jasonr@gnu.org>
20971
20972 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
20973 CreateFileMapping returns NULL on failure.
20974
209752007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
20976
20977 * search.c (Fset_match_data): Remove the `evaporate' feature.
20978 (unwind_set_match_data): Don't use the `evaporate' feature.
20979
209802007-11-21 Jason Rumney <jasonr@gnu.org>
20981
20982 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
20983
20984 * w32console.c (w32con_write_glyphs): Remove unused variables.
20985
209862007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
20987
20988 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
20989
20990 * s/darwin.h (MULTI_KBOARD): Remove.
20991
20992 * macfns.c (x_create_tip_frame, Fx_create_frame)
20993 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20994
209952007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20996
20997 * buffer.c (Fbuffer_local_value): Remove redundant test.
20998 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20999 than in `current-buffer' to match the comment.
21000 Do the swap using swap_in_global_binding.
21001
21002 * data.c (store_symval_forwarding, set_internal):
21003 * eval.c (specbind): Remove dead code.
21004
21005 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21006 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21007 Since we do not want to see internal Lisp_*fwd objects here.
21008
210092007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21010
21011 * sysdep.c (init_system_name): Use getaddrinfo if available.
21012
21013 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21014 (x_scroll_bar_note_movement): start, end, with, height in struct
21015 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21016
210172007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21018
21019 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21020
210212007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21022
21023 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21024 This undoes Richard's change of 14-Oct-2002.
21025
21026 * alloc.c (allocate_other_vector):
21027 * lisp.h (allocate_other_vector): Remove.
21028
21029 * window.c (struct save_window_data): Move non-lisp data to the end
21030 and make it `int' rather than Lisp_Object.
21031 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21032 Done wrap/unwrap integer values.
21033 (Fset_window_configuration, compare_window_configurations):
21034 Update use of fields to their new types.
21035
21036 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21037 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21038 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21039 (SET_SCROLL_BAR_X_WINDOW): Remove.
21040 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21041 Access the new x_window field directly.
21042 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21043 Don't wrap/unwrap integers into Lisp_Objects.
21044 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21045 (x_scroll_bar_report_motion):
21046 Don't wrap/unwrap integers into Lisp_Objects.
21047 (x_term_init): Use SDATA.
21048 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21049 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21050 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21051 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21052 * xfns.c (x_set_background_color):
21053 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21054 Access the new x_window field directly.
21055
21056 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21057 (allocate_pseudovector): Make non-static.
21058
21059 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21060 (allocate_pseudovector): Declare.
21061 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21062
210632007-11-15 Andreas Schwab <schwab@suse.de>
21064
21065 * editfns.c (Fformat): Correctly format EMACS_INT values.
21066 Also take precision into account when formatting an integer.
21067
21068 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21069
210702007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21071
21072 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21073 (syms_of_keyboard): Defsubr it.
21074
21075 * data.c (swap_in_global_binding): Fix longstanding bug where
21076 store_symval_forwarding was not called with the right second argument,
21077 thus causing objfwd-ing from being dropped.
21078
210792007-11-14 Juanma Barranquero <lekktu@gmail.com>
21080
21081 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21082 (Fx_display_pixel_height, Fx_display_planes)
21083 (Fx_display_color_cells, Fx_server_max_request_size)
21084 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21085 (Fx_display_visual_class, Fx_display_save_under):
21086 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21087 (Fx_display_pixel_height, Fx_display_planes)
21088 (Fx_display_color_cells, Fx_server_max_request_size)
21089 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21090 (Fx_display_mm_height, Fx_display_mm_width)
21091 (Fx_display_backing_store, Fx_display_visual_class)
21092 (Fw32_select_font, Fx_display_save_under):
21093 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21094 (Fx_display_pixel_height, Fx_display_planes)
21095 (Fx_display_color_cells, Fx_server_max_request_size)
21096 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21097 (Fx_display_save_under): Fix typos in docstrings.
21098
210992007-11-14 Juanma Barranquero <lekktu@gmail.com>
21100
21101 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21102 corresponding to deleted entries; they are an implementation detail.
21103 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21104 Remove variables.
21105 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21106 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21107 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21108 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21109 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21110 (Fw32_define_rgb_color, Fw32_load_color_file)
21111 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21112 Fix typos in docstrings.
21113 (Fx_server_version): Reflow docstring.
21114 (Fw32_shell_execute): Doc fixes.
21115
211162007-11-13 Juanma Barranquero <lekktu@gmail.com>
21117
21118 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21119 if w32_parse_hot_key returned nil.
21120
211212007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21122
21123 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21124
211252007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21126
aac0c6e3
MR
21127 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21128
21129 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21130
21131 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21132 Remove W32_SCROLL_BAR_CLICK_EVENT.
21133
21134 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21135 Add MULTIMEDIA_KEY_EVENT.
21136
21137 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21138 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21139 (make_lispy_event) [WINDOWSNT]: Use it to translate
21140 MULTIMEDIA_KEY_EVENT.
21141
21142 * w32term.h (WM_APPCOMMAND): Define if not already.
21143 (GET_APPCOMMAND_LPARAM): Likewise.
21144
21145 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21146 WM_APPCOMMAND.
21147
21148 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21149 (syms_of_w32fns): Export and initialize it.
21150 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21151
211522007-11-09 Chong Yidong <cyd@stupidchicken.com>
21153
21154 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21155 twice.
21156
21157 * xdisp.c (handle_face_prop): Fix last change.
21158
211592007-11-09 Richard Stallman <rms@gnu.org>
21160
21161 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21162 not just for after-strings and before-strings.
21163 Call face_for_overlay_string and pass the overlay to it.
21164 (handle_display_prop): Determine whether property came from an overlay.
21165 Pass OVERLAY arg to handle_single_display_spec.
21166 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21167 (load_overlay_strings): Fill in it->string_overlays.
21168 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21169
21170 * xfaces.c (face_for_overlay_string): Function renamed from
21171 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21172
21173 * dispextern.h (struct it): New elt string_overlays.
21174 New elt from_overlay, also in stack.
21175 Rearrange a few elements.
21176 (face_for_overlay_string): Decl renamed from
21177 face_at_buffer_position_no_overlays, and add argument.
21178
211792007-11-09 Richard Stallman <rms@gnu.org>
21180
21181 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21182 to get the base face for an overlay string.
21183
21184 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21185
21186 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21187
21188 * xdisp.c (handle_stop): Move some code out of loop.
21189
211902007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21191
21192 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21193 Fix conversion from Lisp object to ATSUFontID.
21194
211952007-11-09 Jason Rumney <jasonr@gnu.org>
21196
21197 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21198
211992007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21200
21201 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21202 Don't assume regions are aligned to page boundary.
21203 (print_load_command_name): Add LC_UUID if defined.
21204
212052007-11-09 Richard Stallman <rms@gnu.org>
21206
21207 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21208
212092007-11-07 Jason Rumney <jasonr@gnu.org>
21210
21211 * s/windows95.h: Remove.
21212
212132007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21214
21215 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21216 abort with a message on unhandled store_type values.
21217
212182007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21219
21220 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21221 Remove HAVE_X11R5 and HAVE_X11R4.
21222
212232007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21224
21225 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21226
212272007-11-01 Johan Bockgård <bojohan@gnu.org>
21228
21229 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21230 Don't set s->stippled_p here, since it has already been set by
21231 x_set_glyph_string_gc from x_draw_glyph_string.
21232
212332007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21234
21235 * sunfns.c: Remove file.
21236
21237 * m/sun386.h:
21238 * m/sun2.h:
21239 * m/sparc.h: Remove Sun windows code.
21240
212412007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21242
21243 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21244 (init_keyboard): Set current_kboard's window-system to nil.
21245 (tty_read_avail_input): Typo.
21246 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21247
212482007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21249
21250 * s/usg5-4.h:
21251 * s/usg5-3.h:
21252 * s/ptx.h:
21253 * m/is386.h:
21254 * m/ibmps2-aix.h:
21255 * Makefile.in: Remove all mentions of X10.
21256
21257 * dispnew.c (syms_of_display): Don't mention version 10.
21258
212592007-10-28 Juanma Barranquero <lekktu@gmail.com>
21260
21261 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21262 ($(BLD)/abbrev.$(O)): Remove.
21263
212642007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21265
21266 Rewrite abbrev.c in Elisp.
21267 * image.c (Qcount): Don't declare as extern.
21268 (syms_of_image): Initialize and staticpro `Qcount'.
21269 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21270 * emacs.c (main): Don't call syms_of_abbrev.
21271 * Makefile.in (obj): Remove abbrev.o.
21272 (abbrev.o): Remove.
21273 * abbrev.c: Remove.
21274
212752007-10-26 Martin Rudalics <rudalics@gmx.at>
21276
21277 * window.c (window_min_size_2): Don't count header-line.
21278
212792007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21280
21281 * frame.h (struct frame): Move all bit fields after the first bit
21282 field to take advantage of the available space. Group all the
21283 chars together to reduce wasted space due to padding.
21284
212852007-10-26 Juanma Barranquero <lekktu@gmail.com>
21286
21287 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21288
21289 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21290 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21291 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21292 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21293 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21294 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21295 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21296 (last_marked, mark_object_loop_halt): Make static.
21297
21298 * frame.c (syms_of_frame) <delete-frame-functions>:
21299 Fix typo in docstring.
21300
213012007-10-25 Juanma Barranquero <lekktu@gmail.com>
21302
21303 * w32.c (init_environment): Fix tiny memory leak.
21304 (w32_get_resource): Remove unused variable `ok'.
21305
213062007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21307
21308 Make `window-system' into a keyboard-local variable (rather than
21309 frame-local as done originally by multi-tty).
21310
21311 * keyboard.h (struct kboard): Add Vwindow_system.
21312 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21313 (mark_kboards): Mark Vwindow_system.
21314
21315 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21316 (init_display): Don't set the obsolete `window-system' frame-param.
21317
21318 * xterm.c (x_term_init):
21319 * w32term.c (w32_create_terminal):
21320 * term.c (init_tty): Set Vwindow_system.
21321 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21322 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21323
21324 * xfns.c (Fx_create_frame, x_create_tip_frame):
21325 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21326 * macfns.c (Fx_create_frame):
21327 Don't set the obsolete `window-system' frame-param.
21328
21329 * frame.h (Qwindow_system): Remove.
21330 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21331 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21332
213332007-10-24 Richard Stallman <rms@gnu.org>
21334
21335 * frame.c (x_figure_window_size): For fullscreen case,
21336 set USPosition | PPosition without clobbering rest of window_prompting.
21337
21338 * keyboard.c (Fcurrent_idle_time): Doc fix.
21339
21340 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21341
213422007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21343
21344 * process.c (unwind_request_sigio): Only define if __ultrix__.
21345
21346 * callproc.c (child_setup): Remove spurious *.
21347
21348 * lisp.h (Fget_text_property): Declare.
21349 (have_menus_p): Declare it here rather than in sys-dep header files.
21350 * macterm.h (have_menus_p):
21351 * msdos.h (have_menus_p):
21352 * xterm.h (have_menus_p): Remove.
21353
21354 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21355 (Fmake_variable_frame_local): Just check the variable's const-ness
21356 rather than checking nil or t.
21357
213582007-10-22 Jason Rumney <jasonr@gnu.org>
21359
21360 * w32fns.c: Include math.h.
21361 (w32_abort): Declaration moved to nt/config.nt.
21362
21363 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21364 (abort): Redefinition moved to nt/config.nt.
21365
21366 * m/windowsnt.h: Remove.
21367
213682007-10-22 Juanma Barranquero <lekktu@gmail.com>
21369
21370 * emacs.c (Fdump_emacs): Fix typo in message.
21371 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21372 <installation-directory>: Reflow docstring.
21373
213742007-10-22 Juri Linkov <juri@jurta.org>
21375
21376 * minibuf.c: Allow minibuffer default to be a list of default values.
21377 With empty input use the first element of this list as returned default.
21378 (string_to_object)
21379 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21380 (read_minibuf): If defalt is cons, set histstring to its car.
21381 (Fread_string): If default_value is cons, set val to its car.
21382 (Fread_buffer): If def is cons, use its car.
21383 (Fcompleting_read): If defalt is cons, set val to its car.
21384
213852007-10-21 Michael Albinus <michael.albinus@gmx.de>
21386
21387 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21388
213892007-10-20 Juanma Barranquero <lekktu@gmail.com>
21390
21391 * doc.c (Fdocumentation): Check for advice in all cases.
21392
213932007-10-19 Chong Yidong <cyd@stupidchicken.com>
21394
21395 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21396
213972007-10-19 Richard Stallman <rms@gnu.org>
21398
21399 * doc.c (Fdocumentation): Check for and handle an advised function.
21400
214012007-10-19 Juanma Barranquero <lekktu@gmail.com>
21402
21403 * process.c (Fset_process_filter): Doc fix.
21404
214052007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21406
21407 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21408 which caused key-translation-map to applied repeatedly (thus breaking
21409 double-mode).
21410
214112007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21412
21413 * xselect.c (x_own_selection, x_handle_selection_clear)
21414 (x_clear_frame_selections):
21415 * w32menu.c (list_of_panes, list_of_items):
21416 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21417 * textprop.c (validate_plist, interval_has_all_properties)
21418 (interval_has_some_properties, interval_has_some_properties_list)
21419 (add_properties, text_property_list):
21420 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21421 * minibuf.c (Fassoc_string):
21422 * macselect.c (x_own_selection, x_clear_frame_selections)
21423 (Fx_disown_selection_internal):
21424 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21425 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21426
214272007-10-17 Chong Yidong <cyd@stupidchicken.com>
21428
21429 * process.c: Link to libs for calling res_init() if available.
21430 (Fmake_network_process): Call res_init() before getaddrinfo or
21431 gethostbyname, if possible.
21432
214332007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21434
21435 * lread.c (read1): Set pvectype for char_tables.
21436
21437 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21438 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21439 Add type checks.
21440 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21441
21442 * alloc.c (free_misc): Use XMISCTYPE.
21443 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21444
214452007-10-17 Glenn Morris <rgm@gnu.org>
21446
21447 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21448 (syms_of_minibuf): Add Qcompletion_ignore_case.
21449 * dired.c (Qcompletion_ignore_case): Change to external.
21450 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21451 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21452 (Fread_file_name): Use it rather than intern'ing.
21453
21454 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21455 (Fread_coding_system): Ignore case of user input.
21456
214572007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21458
21459 * xdisp.c (handle_display_prop): Ignore display specs after
21460 replacing one when string text is being replaced.
21461 (handle_single_display_spec): Pretend as if characters with display
21462 property haven't been consumed only when buffer text is being replaced.
21463
214642007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21465
21466 * xfns.c (Fx_create_frame, Fx_display_list):
21467 * window.c (window_fixed_size_p, enlarge_window)
21468 (shrink_window_lowest_first):
21469 * macterm.c (init_font_name_table):
21470 * macfns.c (Fx_create_frame, Fx_display_list):
21471 * lread.c (close_load_descs):
21472 * keyboard.c (read_char_x_menu_prompt):
21473 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21474 * coding.c (code_convert_region_unwind): Test the type of an object
21475 rather than just !NILP before extracting data from it.
21476
21477 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21478
21479 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21480 (XMISCANY): New macro.
21481 (XMISCTYPE): Use it.
21482 (struct Lisp_Misc_Any): New type.
21483 (union Lisp_Misc): Use it.
21484 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21485 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21486 (find_symbol_value, set_internal, default_value, Fset_default)
21487 (Fmake_variable_buffer_local, Fmake_local_variable)
21488 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21489 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21490 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21491 * alloc.c (allocate_buffer): Set the size and tag.
21492 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21493 Use XMISCANY.
21494 (die): Follow the GNU convention for error messages.
21495 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21496 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21497 tag any more.
21498 (set_buffer_internal_1):
21499 * frame.c (store_frame_param):
21500 * eval.c (specbind):
21501 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21502
21503 * doc.c (Fsnarf_documentation): Simplify.
21504
215052007-10-14 Juanma Barranquero <lekktu@gmail.com>
21506
21507 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21508 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21509
215102007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21511
21512 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21513
215142007-10-14 Juanma Barranquero <lekktu@gmail.com>
21515
21516 * eval.c (do_autoload): Don't save autoloads.
21517
21518 * data.c (Ffset): Save autoload of the function being set.
21519
215202007-10-07 John Paul Wallington <jpw@pobox.com>
21521
21522 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21523 parameter before setting up faces.
21524
215252007-10-13 Eli Zaretskii <eliz@gnu.org>
21526
21527 * ccl.c (Fregister_code_conversion_map):
21528 * keyboard.c (append_tool_bar_item): Reformat last change.
21529
21530 * lisp.h (eabs): Rename from `abs'. All callers changed.
21531
215322007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21533
21534 * buffer.c (add_overlay_mod_hooklist):
21535 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21536 * fontset.c (make_fontset):
21537 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21538 (append_tool_bar_item):
21539 * macmenu.c (grow_menu_items):
21540 * w32menu.c (grow_menu_items):
21541 * xmenu.c (grow_menu_items): Use larger_vector.
21542
215432007-10-13 Eli Zaretskii <eliz@gnu.org>
21544
21545 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21546 selected frame'' on MSDOS).
21547
215482007-10-12 Martin Rudalics <rudalics@gmx.at>
21549
21550 * frame.c (Qexplicit_name): New variable.
21551 (x_report_frame_params): Report it in parameter alist.
21552 (syms_of_frame): Intern and staticpro it.
21553
215542007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21555
21556 * macfns.c (x_create_tip_frame): Set terminal for frame.
21557
215582007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21559
21560 * frame.c (Qenvironment): Remove.
21561 (syms_of_frame) <Qenvironment>: Don't initialize.
21562 (Fdelete_frame): Don't treat the `environment' param specially.
21563 * frame.h (Qenvironment): Don't declare.
21564 * callproc.c (set_initial_environment): Don't set unused frame param.
21565
21566 * frame.c (Fframe_with_environment): Remove.
21567 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21568
21569 * lisp.h (Fframe_with_environment): Don't declare.
21570
215712007-10-10 Juanma Barranquero <lekktu@gmail.com>
21572
21573 * indent.c (indent_tabs_mode, last_known_column)
21574 (last_known_column_modified): Make static.
21575 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21576
215772007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21578
21579 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21580
215812007-10-09 Jason Rumney <jasonr@gnu.org>
21582
21583 * w32term.c (x_set_window_size): Disable code that attempts to tell
21584 Lisp code about a size change before it actually happens.
21585
215862007-10-09 Richard Stallman <rms@gnu.org>
21587
21588 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21589 return HANDLED_RETURN.
21590
215912007-10-08 Martin Rudalics <rudalics@gmx.at>
21592
21593 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21594 when there's an unread command event.
21595
21596 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21597 window autoselection act appropriately when leaving selected frame.
21598 (syms_of_frame): Initialize focus_follows_mouse.
21599 * frame.h (focus_follows_mouse): Extern it.
21600 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21601 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21602 * msdos.c (dos_rawgetc): Likewise.
21603 * w32term.c (w32_read_socket): Likewise.
21604 * xterm.c (handle_one_xevent): Likewise.
21605 * xdisp.c (syms_of_xdisp): In doc-string of
21606 mouse-autoselect-window mention focus-follows-mouse.
21607
216082007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21609
21610 * macterm.c (mac_load_query_font): Fix missing return value.
21611 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21612 Add BLOCK_INPUT.
21613
216142007-10-08 Richard Stallman <rms@gnu.org>
21615
21616 * xdisp.c (get_window_cursor_type): Implement documented behavior
21617 for cursor-in-non-selected-windows = t.
21618
216192007-10-08 Jason Rumney <jasonr@gnu.org>
21620
21621 * w32.c (w32_get_resource): Always close registry keys.
21622
216232007-10-08 Jason Rumney <jasonr@gnu.org>
21624
21625 * makefile.w32-in (LIBS): Add COMCTL32.
21626
21627 * w32fns.c (globals_of_w32fns): Init common controls.
21628
216292007-10-08 Richard Stallman <rms@gnu.org>
21630
21631 * image.c (our_memory_buffer): Rename from omfib_buffer.
21632
216332007-10-08 Richard Stallman <rms@gnu.org>
21634
21635 * buffer.c (Foverlays_at): Doc fix.
21636
216372007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21638
21639 * fns.c (Fplist_put): Preserve uneven tail data.
21640
216412007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21642
21643 * termhooks.h (enum event_kind): Remove trailing comma.
21644
21645 * frame.h (enum): Remove trailing comma.
21646
216472007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21648
21649 * w32proc.c (delete_child): Don't terminate threads of zombies.
21650
216512007-10-08 Martin Rudalics <rudalics@gmx.at>
21652
21653 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21654
21655 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21656 last-repeatable-command.
21657 (init_kboard): Initialize Vlast_repeatable_command.
21658 (command_loop_1): Set it to real_this_command unless that was
21659 bound to an input event.
21660 (mark_kboards): Mark it.
21661
216622007-10-08 Richard Stallman <rms@gnu.org>
21663
21664 * eval.c (condition-case): Doc fix.
21665
216662007-10-08 Masatake YAMATO <jet@gyve.org>
21667
21668 * xfaces.c (tty_supports_face_attributes_p): Fix code
21669 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21670 was copied and not edited.
21671
216722007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21673
21674 Add new `input-decode-map' keymap and use it for terminal
21675 escape sequences.
21676 * keyboard.h (struct kboard): Add Vinput_decode_map.
21677 Remove Vlocal_key_translation_map.
21678 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21679 (init_kboard): Init input-decode-map.
21680 Replace local-key-translation-map back with key-translation-map.
21681 (syms_of_keyboard): Declare input-decode-map.
21682 Remove local-key-translation-map. Update docstrings.
21683 (mark_kboards): Mark Vinput_decode_map.
21684 Don't mark Vlocal_key_translation_map.
21685 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21686 Replace local-key-translation-map back with key-translation-map.
21687 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21688 Bind in input-decode-map rather than function-key-map.
21689
21690 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21691 This was made redundant by the previous introduction of XSETPVECTYPE.
21692
216932007-10-09 Richard Stallman <rms@gnu.org>
21694
21695 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21696
216972007-09-29 Richard Stallman <rms@gnu.org>
21698
21699 * eval.c (internal_condition_case_2, internal_condition_case_1)
21700 (internal_condition_case): Reenable abort if x_catching_errors ()
21701 to see if that really happens and why.
21702
217032007-10-06 Andreas Schwab <schwab@suse.de>
21704
21705 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21706
217072007-10-04 Juanma Barranquero <lekktu@gmail.com>
21708
21709 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21710
217112007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21712
21713 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21714
217152007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21716
21717 * window.h (struct window):
21718 * window.c (struct save_window_data, struct saved_window):
21719 * termhooks.h (struct terminal):
21720 * process.h (struct Lisp_Process):
21721 * frame.h (struct frame):
21722 * buffer.h (struct buffer):
21723 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21724 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21725 The size field of (pseudo)vectors is now unsigned.
21726 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21727
21728 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21729 Turn `count' into an integer.
21730
21731 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21732 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21733 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21734 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21735 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21736
21737 * alloc.c (allocate_pseudovector): New fun.
21738 (ALLOCATE_PSEUDOVECTOR): New macro.
21739 (allocate_window, allocate_terminal, allocate_frame)
21740 (allocate_process): Use it.
21741 (mark_vectorlike): New function.
21742 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21743 (mark_terminals): Use it.
21744 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21745 (Fmake_byte_code): Use XSETPVECTYPE.
21746
21747 * frame.c (Fframe_parameters): Minor simplification.
21748
21749 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21750
21751 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21752
21753 * buffer.c (Fget_buffer_create, init_buffer_once):
21754 * lread.c (defsubr):
21755 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
21756
21757 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
21758 defined differently in the m/*.h files.
21759 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
21760 (XSETPVECTYPE): New macro.
21761 (XSETPSEUDOVECTOR): Use it.
21762
21763 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
21764 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
21765
21766 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
21767 * lread.c (defvar_per_buffer):
21768 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
21769
21770 * window.c (candidate_window_p): Only consider as visible frames that
21771 are on the same terminal.
21772
21773 * m/ibms390x.h (MARKBIT): Remove unused macro.
21774
217752007-10-01 Juanma Barranquero <lekktu@gmail.com>
21776
21777 * lread.c (Fload): Fix typo in docstring.
21778
217792007-10-01 Michaël Cadilhac <michael@cadilhac.name>
21780
21781 * floatfns.c (Fexpt): Manually check for overflows, so that a power
21782 of a non-zero value can't yield zero.
21783
217842007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
21785
21786 * term.c (term_clear_mouse_face, term_mouse_highlight)
21787 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
21788
21789 * print.c (safe_debug_print): Use XHASH.
21790
21791 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
21792 Lisp elements such as tags.
21793 (XHASH): New macro.
21794 (EQ): Use it.
21795 (SREF, SSET, STRING_COPYIN): Use SDATA.
21796 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
21797
21798 * alloc.c (mark_terminal): Remove left-over declaration.
21799 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
21800 (allocate_vectorlike): Remove type argument. Adjust callers.
21801 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
21802 Only handle the one remaining MEM_TYPE_VECTORLIKE.
21803
21804 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
21805 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
21806 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
21807 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
21808 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
21809 Use them.
21810
21811 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
21812 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
21813 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
21814
218152007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
21816
21817 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
21818 loaded by default.
21819
218202007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
21821
21822 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
21823 on this tty.
21824 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
21825
21826 * term.c (mouse_face_window): Rename from Qmouse_face_window.
21827 Update all users.
21828 (handle_one_term_event): Use Gpm_DrawPointer.
21829 (Fgpm_mouse_start): Rename from Fterm_open_connection.
21830 Signal errors instead of returning nil. Always return nil.
21831 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
21832 Make it a noop if gpm-mouse was not activated.
21833 (syms_of_term): Update names.
21834
218352007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
21836
21837 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
21838 (init_sys_modes): Check that gpm_tty is the current tty.
21839
21840 * alloc.c (allocate_terminal): Set the vector size to only count the
21841 lisp fields. Initialize those to nil.
21842 (mark_object): Don't treat terminals specially.
21843 (mark_terminal): Remove.
21844 (mark_terminals): Use mark_object instead.
21845
21846 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
21847 the GC to the beginning.
21848
21849 * indent.h:
21850 * indent.c: Use EMACS_INT for ints coming from Elisp data.
21851
21852 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
21853
218542007-09-25 Jason Rumney <jasonr@gnu.org>
21855
21856 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
21857
21858 * w32console.c (create_w32cons_output): Remove.
21859
21860 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
21861
21862 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
21863 (reset_sys_modes): Use reset_terminal_modes_hook.
21864
218652007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
21866
21867 * eval.c (do_autoload): Don't output any message.
21868
218692007-09-24 Juri Linkov <juri@jurta.org>
21870
21871 * emacs.c (standard_args): Change priority of "--no-splash"
21872 from 40 to 3. Add "--no-desktop" with the same priority.
21873
218742007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
21875
21876 * alloc.c (gc_sweep): Check cons cell mark bits word by word
21877 and optimize the case where they are all 1.
21878
218792007-09-23 Johannes Weiner <hannes@saeurebad.de>
21880
21881 * lisp.h (abs): Define if not defined.
21882 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
21883 Don't define `abs', since it's defined in lisp.h.
21884
218852007-09-22 Eli Zaretskii <eliz@gnu.org>
21886
21887 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
21888 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
21889 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
21890 (init_tty): Use DEV_TTY instead of "/dev/tty".
21891 [WINDOWSNT]: No need to protect from NAME arg being null.
21892
218932007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
21894
21895 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
21896 up the tty state.
21897
218982007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21899
21900 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
21901 (gpm_tty): Change its type.
21902 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
21903 (gpm_tty): Change its type and initialize it.
21904 (Fterm_open_connection): Check the frame is indeed a tty.
21905 Use the new gpm_tty.
21906 (Fterm_close_connection): Use the new gpm_tty.
21907 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
21908 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
21909
219102007-09-21 Juanma Barranquero <lekktu@gmail.com>
21911
21912 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
21913 underline_color, to draw strike-through.
21914
219152007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
21916
21917 * lisp.h (allocate_terminal): Declare.
21918
21919 * window.c (candidate_window_p): Consider frames that are being placed
21920 by the user as somewhere between visible and iconified.
21921 (window_loop): Prefer windows on the current frame.
21922 (Fselect_window): Move the use of select-frame to the beginning so we
21923 can just delegate all the work (it'll call us back anyway).
21924
21925 * frame.c (Qdisplay_environment_variable):
21926 * frame.h (Qdisplay_environment_variable): Delete.
21927
21928 * .gdbinit (xbacktrace): Print the arg's address rather than the value
21929 of the first arg, since that value may be a union.
21930
21931 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
21932 parameter rather than Qdisplay_environment_variable. If all else
21933 fails, look for DISPLAY in initial-environment.
21934
219352007-09-21 Glenn Morris <rgm@gnu.org>
21936
21937 * Makefile.in (emacstool): Remove target.
21938 (lisp, shortlisp): Remove termdev.elc.
21939
219402007-09-21 Markus Triska <markus.triska@gmx.at>
21941
21942 * xterm.c (x_delete_display): Compile session management conditionally.
21943
219442007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
21945
21946 * callproc.c (getenv_internal_1): New function.
21947 (getenv_internal): Use it.
21948 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
21949
21950 * terminal.c (get_terminal): Don't accept ints to represent terminals.
21951 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
21952 (Fset_terminal_parameter): Work with dead terminals as well.
21953 (Fmodify_terminal_parameters): Remove.
21954
21955 * terminal.c (get_terminal): Handle terminals.
21956 Make sure the terminal returned is live.
21957 (create_terminal): Use allocate_terminal.
21958 (mark_terminals): Move to alloc.c.
21959 (delete_terminal): Use terminal->name as liveness status.
21960 NULL out fields after freeing their contents.
21961 Don't deallocate the object.
21962 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
21963 rather than an int.
21964 (Fterminal_live_p): Accept non-integer arguments.
21965 (Fterminal_list): Return terminal objects rather than an ints.
21966
21967 * alloc.c (enum mem_type): New member for `terminal' objects.
21968 (allocate_terminal): New function.
21969 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
21970 Handle terminals.
21971 (mark_terminal): New fun.
21972 (mark_terminals): Move from terminal.c.
21973
21974 * term.c (get_tty_terminal): Don't treat output_initial specially.
21975 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
21976 (delete_tty): Use terminal->name as liveness status.
21977
21978 * termhooks.h (struct terminal): Make it into a pseudovector.
21979 Remove `deleted' replaced by checking `name's nullness.
21980
21981 * print.c (print_object): Handle terminals.
21982
21983 * lisp.h (enum pvec_type): New `terminal' pseudovector.
21984 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
21985
21986 * frame.c (make_terminal_frame):
21987 * keyboard.c (tty_read_avail_input):
21988 * w32term.c (x_delete_terminal):
21989 * xfns.c (Fx_create_frame, x_create_tip_frame):
21990 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
21991
219922007-09-20 Glenn Morris <rgm@gnu.org>
21993
21994 * process.c (Fmake_network_process): Doc fix.
21995
219962007-09-19 Jason Rumney <jasonr@gnu.org>
21997
21998 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21999
220002007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22001
22002 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22003 Fix a C warning regarding variable constness.
22004
22005 * xterm.c (handle_one_xevent): Fix a C warning.
22006
220072007-09-18 Jason Rumney <jasonr@gnu.org>
22008
22009 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22010
220112007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22012
22013 * gtkutil.c (gdpy_def): New variable.
22014 (xg_initialize): Initialize gdpy_def.
22015 (xg_display_close): If no other display exists, set gdpy_def to a
22016 new connection.
22017
220182007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22019
22020 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22021 when we have no file name for the icon.
22022 (xg_tool_bar_expose_callback): Remove.
22023 (xg_create_tool_bar): Don't connect expose signal to
22024 xg_tool_bar_expose_callback.
22025 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22026
220272007-09-16 Andreas Schwab <schwab@suse.de>
22028
22029 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22030 values instead of zapping them.
22031
220322007-09-14 Glenn Morris <rgm@gnu.org>
22033
22034 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22035 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22036 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22037 scope and rename to omfib_buffer for clarity.
22038 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22039
220402007-09-14 Kenichi Handa <handa@m17n.org>
22041
22042 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22043
220442007-09-13 Jason Rumney <jasonr@gnu.org>
22045
22046 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22047
22048 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22049
22050 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22051 (mac_term_init): Call here instead, passing rif.
22052
220532007-09-13 Glenn Morris <rgm@gnu.org>
22054
22055 * s/hpux.h: No longer define `static' as nothing.
22056
220572007-09-13 Johan Bockgård <bojohan@gnu.org>
22058
22059 * callint.c (Fcall_interactively): Remove unused var `fun'.
22060
220612007-09-12 Romain Francoise <romain@orebokech.com>
22062
22063 * window.c (prefer_window_split_horizontally, display_buffer):
22064 Revert 2007-09-08 change.
22065
220662007-09-12 Glenn Morris <rgm@gnu.org>
22067
22068 * alloca.c: Remove file.
22069 * Makefile.in (alloca): Do not undef.
22070 (allocaobj, alloca.o): Remove.
22071 (otherobj): Remove allocaobj.
22072 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22073 * regex.c (C_ALLOCA): Remove all references and code that was only
22074 used when this was defined.
22075 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22076 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22077 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22078
22079 * Makefile.in (SOURCES, unlock, relock): Delete.
22080
22081 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22082 (menu_grab_callback): All uses changed.
22083
22084 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22085 (x_reply_selection_request): All uses changed.
22086
220872007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22088
22089 * lread.c (load_warn_old_style_backquotes): Change message to look
22090 better when it appears in the middle of byte-compiler messages.
22091
220922007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22093
22094 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22095
22096 * xterm.c (x_create_terminal): Add comment.
22097
22098 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22099
221002007-09-10 Richard Stallman <rms@gnu.org>
22101
22102 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22103
221042007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22105
22106 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22107 (DEFUN): Document `intspec', use it instead of `prompt'.
22108
22109 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22110
22111 * data.c (Finteractive_form): If the interactive specification starts
22112 with a `(', use it as a Lisp form.
22113
22114 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22115 name and file modes.
22116
22117 * callint.c (Fcall_interactively): Comment fixes.
22118
221192007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22120
22121 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22122 and compiled functions.
22123
221242007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22125
22126 * window.c (prefer_window_split_horizontally): New variable.
22127 (display_buffer): Consider splitting window horizontally depending
22128 on prefer_window_split_horizontally.
22129
221302007-09-08 Eli Zaretskii <eliz@gnu.org>
22131
22132 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22133
221342007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22135
22136 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22137
22138 * frame.c (x_set_frame_parameters): Check number is positive before
22139 using XFASTINT.
22140
22141 * window.c (freeze_window_start): Don't presume selected_window holds
22142 a window object.
22143 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22144
221452007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22146
22147 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22148
221492007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22150
22151 * window.c (Vsplit_window_preferred_function): New var.
22152 (Fdisplay_buffer): Use it.
22153 (syms_of_window): Export, and initialize it.
22154
221552007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22156
22157 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22158
221592007-09-06 Glenn Morris <rgm@gnu.org>
22160
22161 * gtkutil.c (menu_grab_callback) <cnt>:
22162 * xselect.c (x_reply_selection_request) <cnt>: Move static
22163 variable to file scope.
22164
221652007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22166
22167 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22168 consistent values of selected_frame and selected_window.
22169
221702007-09-04 Jason Rumney <jasonr@gnu.org>
22171
22172 * w32console.c (initialize_w32_display): Zero unused hooks.
22173
221742007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22175
22176 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22177 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22178
221792007-09-04 Jason Rumney <jasonr@gnu.org>
22180
22181 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22182 in w32console.c. Set up input. Remove XXX comments that have been
22183 confirmed as correct.
22184
22185 * s/ms-w32.h (MULTI_KBOARD): Define.
22186
22187 * w32console.c (one_and_only_w32cons): Remove.
22188 (initialize_w32_display): Take terminal argument.
22189
22190 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22191 initialize_w32_display.
22192 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22193
22194 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22195
22196 * keyboard.c (discard_mouse_events): Discard it.
22197 (make_lispy_event): Translate it to a lisp event.
22198 (lispy_wheel_names): Add wheel-left and right events.
22199 (syms_of_keyboard): Enlarge wheel_syms.
22200
22201 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22202 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22203
22204 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22205
22206 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22207 from WM_MOUSEHWHEEL.
22208 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22209
22210 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22211 terminal.
22212
22213 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22214 keyboard for the terminal.
22215
222162007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22217
22218 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22219 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22220 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22221 and resume-tty-function to resume-tty-hook.
22222 (Fsuspend_tty, Fresume_tty): Use new names.
22223
222242007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22225
22226 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22227 if it starts with "n:".
22228
222292007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22230
22231 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22232
222332007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22234
22235 * frame.h:
22236 * frame.c (Qterm_environment_variable): Remove.
22237 (syms_of_frame): Don't init and staticpro it.
22238
22239 * callproc.c (getenv_internal): Remove special case for $TERM.
22240
22241 * callproc.c (Vinitial_environment): New variable.
22242 (set_initial_environment): Initialize it.
22243 (syms_of_callproc): Declare it.
22244 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22245 TERM under which a process runs is never related to the TERM in which
22246 Emacs is running.
22247
222482007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22249
22250 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22251 * s/darwin.h: ... do it here.
22252
222532007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22254
22255 * lisp.h (set_initial_environment): Rename from set_global_environment.
22256
22257 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22258 removed by mistake on the multi-tty branch.
22259
22260 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22261 (Fmodify_frame_parameters): Return a value.
22262
22263 * image.c (png_load): Comment-out var only used in commented-out code.
22264
22265 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22266 before passing it to mark_object.
22267
22268 * xfaces.c (internal_resolve_face_name): Return a value.
22269 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22270
22271 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22272 (x_icon): Comment-out var only used in commented-out code.
22273
222742007-08-29 Romain Francoise <romain@orebokech.com>
22275
22276 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22277 QUIT hasn't been provided.
22278
222792007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22280
22281 * callproc.c (child_setup, getenv_internal): Use the
22282 display-environment-variable and term-environment-variable frame params.
22283 (set_initial_environment): Initialise Vprocess_environment.
22284
22285 * config.in: Disable multi-keyboard support on a mac.
22286
22287 * frame.c (Qterm_environment_variable)
22288 (Qdisplay_environment_variable): New variables.
22289 (syms_of_frame): Intern and staticpro them.
22290 (Fmake_terminal_frame): Disable output method test.
22291
22292 * frame.h: Declare them here.
22293
22294 * macfns.c (x_set_mouse_color): Get rif from the frame.
22295 (x_set_tool_bar_lines): Don't use updating_frame.
22296 (mac_window): Add 2 new parameters for consistency with other systems.
22297 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22298 frame parameters following what is done in X11 and w32. Don't use
22299 FRAME_MAC_DISPLAY_INFO.
22300 (Fx_open_connection, start_hourglass): Remove window-system check.
22301 (x_create_tip_frame): Get the keyboard from the terminal.
22302
22303 * macmenu.c: Reorder includes.
22304 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22305
22306 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22307 terminal parameter.
22308 (x_clear_frame): Add a frame parameter.
22309 (note_mouse_movement): Get rif from the frame.
22310 (mac_term_init): Initialize the terminal.
22311 (mac_initialize): Make static and move terminal initialization ...
22312 (mac_create_terminal): ... to this new function.
22313
22314 * macterm.h (struct mac_display_info): Add terminal.
22315 (mac_initialize): Delete declaration.
22316
22317 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22318
22319 * sysdep.c: Comment out text after #endif.
22320
22321 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22322 is defined. Better initialize ttys in windows. Use terminal
22323 specific mouse_position_hook.
22324
22325 * termhooks.h (union display_info): Add mac_display_info.
22326
22327 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22328 Set the default minibuffer frame, window_system and the rest of the
22329 frame parameters following what is done in X11.
22330
22331 * w32term.c (w32_initialize): Make static.
22332
22333 * xselect.c (x_handle_selection_clear): Only access
22334 terminal->kboard when MULTI_KBOARD is defined.
22335
22336 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22337 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22338
223392007-08-29 Jason Rumney <jasonr@gnu.org>
22340
22341 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22342 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22343
22344 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22345 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22346
22347 * keyboard.c (restore_kboard_configuration): Only define when
22348 MULTI_KBOARD defined.
22349
22350 * makefile.w32-in: Update dependancies from Makefile.in.
22351 (OBJ1): Add terminal.$(O)
22352
22353 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22354 Don't define function body.
22355 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22356
22357 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22358
22359 * w32.c (request_sigio, unrequest_sigio): Remove.
22360
22361 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22362 (w32con_clear_frame, w32con_clear_end_of_line)
22363 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22364 (w32con_delete_glyphs, w32con_set_terminal_window)
22365 (scroll_line, w32_sys_ring_bell): Add frame arg.
22366 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22367 Add terminal arg.
22368 (PICK_FRAME): Remove.
22369 (w32con_write_glyphs): Use frame specific terminal coding.
22370 (one_and_only_w32cons): New global variable.
22371 (initialize_w32_display): Use it for storing hooks.
22372 (create_w32cons_output): New function.
22373
22374 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22375 arg a frame.
22376
22377 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22378 Set window_system.
22379 (x_set_tool_bar_lines): Don't use updating_frame.
22380 (Fx_create_frame): Set terminal and ref count.
22381 (Fx_open_connection): Remove window-system check.
22382
22383 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22384
22385 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22386 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22387 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22388 Add frame arg.
22389 (x_delete_terminal, w32_create_terminal): New functions.
22390 (w32_term_init): Create a terminal.
22391 (w32_initialize): Move terminal specific initialization to
22392 w32_create_terminal.
22393
22394 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22395 (w32_clear_rect, w32_clear_area): Use background from frame.
22396 (w32_display_info): Add terminal.
22397 (w32_sys_ring_bell, x_delete_display): Declare here.
22398
22399 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22400
22401 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22402
224032007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22404
22405 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22406 Fix get_named_tty calls for the controlling tty.
22407
224082007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22409
194d44e7 22410 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22411
224122007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22413
22414 * term.c (tty_insert_glyphs): Add missing first parameter.
22415
224162007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22417
22418 * buffer.c (Fbuffer_list, Fbury_buffer):
22419 Take frame->buried_buffer_list into account.
22420
22421 * cm.c (current_tty): New variable, for cmputc().
22422 (cmputc): Use it.
22423 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22424 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22425 (cmgoto): Add tty parameter. Pass it on to calccost().
22426 Use emacs_tputs() instead of tputs().
22427
22428 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22429 tputs().
22430 (current_tty): New variable, for cmputc().
22431 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22432
22433 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22434 (internal_condition_case, internal_condition_case_1)
22435 (internal_condition_case_2): Don't abort when x_catching_errors.
22436
22437 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22438 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22439 prevent crashes caused by bogus longjmps in read_char.
22440
22441 * keymap.h (Fset_keymap_parent): Add EXFUN.
22442
22443 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22444 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22445 Remove redundant definition.
22446
22447 * macfns.c (x_set_mouse_color, x_make_gc):
22448 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22449
22450 * w32term.c (x_free_frame_resources):
22451 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22452 (w32_initialize): Use the accessor macros for terminal characteristics.
22453
22454 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22455 Use the accessor macros for terminal characteristics.
22456 * msdos.c (internal_terminal_init): Use the accessor macros for
22457 terminal characteristics.
22458 (ScreenVisualBell, internal_terminal_init):
22459 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22460
22461 * termopts.h (no_redraw_on_reenter): Declare.
22462
22463 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22464 (mark_terminals, mark_ttys): Declare.
22465 (Fgarbage_collect): Call them.
22466 (mark_object): Mark buried_buffer_list.
22467
22468 * prefix-args.c: Include stdlib.h for exit.
22469
22470 * syssignal.h: Add comment.
22471
22472 * indent.c: Include stdio.h.
22473
22474 * window.h (Vinitial_window_system): Declare.
22475 (Vwindow_system): Delete declaration.
22476
22477 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22478
22479 * image.c (lookup_image): Don't initialize `c' until the xasserts
22480 have been run.
22481
22482 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22483 FRAME_FOREGROUND_PIXEL.
22484
22485 * print.c (print_preprocess): Don't lose print_depth levels while
22486 iterating.
22487
22488 * widget.c (update_from_various_frame_slots):
22489 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22490
22491 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22492 frames.
22493 (window_internal_height): Remove bogus make_number call.
22494 (init_window_once): Call make_terminal_frame with two zero parameters.
22495
22496 * fileio.c (Fread_file_name): Update comment.
22497
22498 * callint.c (Fcall_interactively):
22499 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22500 Make sure it is correctly unwound.
22501
22502 * xsmfns.c (x_session_close): New function.
22503
22504 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22505 Delete declarations.
22506
22507 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22508 (x_output): Remove background_pixel and foreground_pixel fields.
22509 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22510 (x_delete_device, x_session_close): Declare.
22511
22512 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22513 (read_filtered_event): Call `read_char' with a local
22514 `wrong_kboard_jmpbuf'.
22515
22516 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22517 Don't call single_kboard_state. Use FRAME_RIF.
22518
22519 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22520 systems.
22521
22522 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22523 (Fframe_with_environment, Fset_input_meta_mode)
22524 (Fset_quit_char): EXFUN.
22525 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22526 (init_sys_modes, reset_sys_modes): Update prototypes.
22527 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22528
22529 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22530 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22531 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22532 Delete declarations.
22533 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22534 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22535 New declarations.
22536
22537 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22538 already does that during init_display(). Call syms_of_keymap
22539 before syms_of_keyboard. Call `syms_of_terminal'.
22540 Call set_initial_environment, not set_process_environment.
22541 (shut_down_emacs): Call reset_all_sys_modes() instead of
22542 reset_sys_modes().
22543
22544 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22545 (internal_resolve_face_name, resolve_face_name_error): New functions.
22546 (resolve_face_name): Protect against loops and errors thrown by Fget.
22547 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22548 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22549
22550 * scroll.c: Replace CURTTY() with local variables throughout the
22551 file (where applicable).
22552 (calculate_scrolling, calculate_direct_scrolling)
22553 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22554 characteristics.
22555
22556 * keymap.c (Vfunction_key_map): Remove.
22557 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22558 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22559 (Vkey_translation_map): Remove.
22560 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22561 (Fdescribe_buffer_bindings)
22562 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22563 Update for terminal-local key-translation-map.
22564
22565 * Makefile.in (callproc.o): Update dependencies.
22566 (lisp, shortlisp): Add termdev.elc.
22567 (obj): Add terminal.o.
22568 (terminal.o): Add dependencies.
22569 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22570 (data.o, fns.o): Add termhooks.h dependency.
22571 (SOME_MACHINE_LISP): Add dnd.elc.
22572 (minibuf.o): Fix typo.
22573 Update dependencies.
22574
22575 * data.c (do_symval_forwarding, store_symval_forwarding)
22576 (find_symbol_value): Use the selected frame's keyboard, not
22577 current_kboard.
22578
22579 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22580 Vwindow_system.
22581
22582 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22583 Fmenu_bar_open.
22584 (syms_of_xmenu): Update defsubr.
22585 (mouse_position_for_popup, Fx_popup_menu)
22586 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22587 (set_frame_menubar, free_frame_menubar)
b97439ce 22588 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22589 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22590 an X frame.
22591
22592 * xselect.c (x_own_selection): Abort if not an X frame.
22593 (some_frame_on_display): Check if it is an X frame.
22594 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22595
22596 * coding.c: Include frame.h and termhooks.h.
22597 (terminal_coding, keyboard_coding): Delete.
22598 (Fset_terminal_coding_system_internal)
22599 (Fset_keyboard_coding_system_internal)
22600 (Fkeyboard_coding_system)
22601 (Fterminal_coding_system): Add a terminal parameter.
22602 Get terminal_coding from the terminal.
22603 (init_coding_once): Don't call setup_coding_system here.
22604
22605 * dispextern.h (set_scroll_region, turn_off_insert)
22606 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22607 (tty_clear_end_of_line, tty_setup_colors)
22608 (delete_tty, updating_frame)
22609 (produce_special_glyphs, produce_glyphs, write_glyphs)
22610 (insert_glyphs): Remove.
22611 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22612 (tty_turn_off_highlight, get_tty_size): Add declaration.
22613 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22614
22615 * frame.h (enum output_method): Add output_initial.
22616 (struct x_output): Delete.
22617 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22618 Access foreground_pixel and background_pixel directly from the frame.
22619 (tty_display): Delete.
22620 (struct frame): Add buried_buffer_list, foreground_pixel,
22621 background_pixel and terminal. Delete kboard.
22622 (union output_data): Add tty.
22623 (FRAME_KBOARD): Get the kboard from the terminal.
22624 (FRAME_INITIAL_P): New macro.
22625 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22626 (Qterm_environment_variable, Qdisplay_environment_variable)
22627 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22628 New declarations.
22629
22630 * termchar.h (tty_output, tty_display_info): New structures.
22631 (tty_list): Declare.
22632 (FRAME_TTY, CURTTY): New macros.
22633 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22634 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22635 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22636 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22637
22638 * callproc.c: Include frame.h and termhooks.h, for terminal
22639 parameters.
22640 (add_env): New function.
22641 (child_setup): Use it.
22642 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22643 (getenv_internal): Fix get_terminal_param call.
22644 (Fgetenv_internal, egetenv): Update doc.
22645 (syms_of_callproc): Initialize Vprocess_environment to nil.
22646 Register and initialize them. Remove obsolete defvars. Update doc
22647 strings.
22648 (child_setup): Handle Vlocal_environment_variables.
22649 (getenv_internal): Add terminal parameter.
22650 Handle Vlocal_environment_variables.
22651 (Fgetenv_internal): Add terminal parameter.
22652 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22653 environment in a frame (not terminal) parameter. Update doc strings.
22654 (set_initial_environment): Rename from set_global_environment.
22655 Store Emacs environment in initial frame parameter.
22656
22657 * xdisp.c (redisplay_internal): Update references to
22658 `previous_terminal_frame'.
22659 (display_mode_line, Fformat_mode_line): Replace calls to
22660 `push_frame_kboard' with `push_kboard'.
22661 (get_glyph_string_clip_rects): Add extra parentheses and
22662 braces to prevent compiler warnings.
22663 (calc_pixel_width_or_height): Add xassert to check that the
22664 frame is alive. Don't call `lookup_image' on a termcap frame.
22665 (message2_nolog, message3_nolog, redisplay_internal)
22666 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22667 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22668 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22669 (Fx_display_pixel_width, Fx_display_pixel_height)
22670 (Fx_display_planes, Fx_display_color_cells)
22671 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22672 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22673 (Fx_display_backing_store, Fx_display_visual_class)
22674 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22675 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22676
22677 * xfns.c (x_set_foreground_color x_set_background_color)
22678 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22679 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22680 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22681 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22682 terminal that is being deleted.
22683 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22684 frame parameter, and make sure it overrides any user-supplied setting.
22685 (Fx_close_connection, Fx_synchronize): Unify argument names with
22686 the rest of the DEFUNs.
22687
22688 * dispnew.c (Fsend_string_to_terminal): Update call to
22689 `get_tty_terminal'.
22690 (Fredraw_frame, Fsend_string_to_terminal)
22691 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22692 FRAME_TERMCAP_P and FRAME_TTY.
22693 (window_change_signal): Don't believe width/height values that are
22694 impossibly small.
22695 (Vinitial_window_system): Rename from Vwindow_system.
22696 (termscript, Wcm, rif): Delete.
22697
22698 * termhooks.h (struct terminal): New struct containing the
22699 previously global text display hooks and new members NAME,
22700 DELETED and PARAM_ALIST.
22701 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22702 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22703 (FRAME_RIF): New macros.
22704 (get_terminal_param, get_device): New declarations.
22705 (termscript): Delete declaration.
22706
22707 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22708 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22709 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22710 FRAME_FOREGROUND_PIXEL.
22711 (x_fully_uncatch_errors): Disable definition.
22712 (x_scroll_bar_expose): Fix reference to foreground pixel.
22713 (XTread_socket): Disable loop on all X displays.
22714 (x_delete_terminal): Don't set terminal->deleted and let
22715 delete_terminal delete the frames on the terminal.
22716 (x_delete_display): Doc update to reflect changes in
22717 delete_terminal.
22718 (x_display_info) <terminal>: Move member earlier in the struct.
22719 (deleting_tty): Remove old variable.
22720 (Fsuspend_tty): Call clear_tty_hooks.
22721 (Fresume_tty, init_tty): Call set_tty_hooks.
22722 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22723 errors on X frames.
22724 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22725 (handle_one_xevent): Initialize `f' to NULL.
22726 (x_delete_terminal, x_create_terminal): New functions.
22727 (XTset_terminal_modes, XTreset_terminal_modes)
22728 (XTread_socket, x_connection_closed, x_term_init)
22729 (x_term_init, x_delete_display): Add terminal parameter.
22730 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22731 X connections.
22732
22733 * frame.c: Include termchar.h.
22734 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22735 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22736 (Qdisplay_environment_variable): New vars.
22737 (Fframep): Deal with output_initial.
22738 (Fframe-live-p): Doc fix.
22739 (Fwindow-system): New function.
22740 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22741 (make_terminal_frame): Don't create frames on a terminal that is
22742 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22743 (store_frame_param): Check for found_for_frame before calling XFRAME.
22744 (Fmake_terminal_frame): Handle NULL tty names correctly.
22745 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22746 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22747 frames to refer to a deleted frame in their 'environment parameter.
22748 (Fframe_with_environment): New function.
22749 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22750 (get_future_frame_param): New function.
22751 (Fmake_terminal_frame): Use it.
22752 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22753
22754 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
22755 * sysdep.c (reset_sys_modes): Update for renames.
22756
22757 * keyboard.c (tty_read_avail_input): New function.
22758 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
22759 (syms_of_keyboard): Defsubr them.
22760 (Fset_input_meta_mode, Fset_quit_char): New functions.
22761 (Fset_input_mode): Split to above functions.
22762 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
22763 parameter. Use it in call to `read_char'.
22764 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
22765 Set wrong_kboard_jmpbuf correctly in recursive calls.
22766 Use current_kboard to access Vkeyboard_translate_table.
22767 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
22768 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
22769 Update longjmp invocations. Remember the original current_kboard,
22770 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
22771 changes it. Comment out unnecessary calls to
22772 `record_single_kboard_state' and `any_kboard_state'.
22773 Update recursive calls.
22774 (wrong_kboard_jmpbuf): Remove global variable.
22775 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
22776 Handle deleted interrupted_kboards correctly; that is a legal
22777 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
22778 and read_char calls. Abort if interrupted_kboard died in read_char.
22779 (any_kboard_state, single_kboard_state)
22780 (push_frame_kboard): Remove function.
22781 (pop_kboard): Switch out of single_kboard mode if the kboard has
22782 been deleted. Remove unused variable. Help debugging by not
22783 changing current_kboard unnecessarily. Set current_kboard to the
22784 kboard of the selected frame when the stored kboard object has
22785 been deleted before pop_kboard.
22786 (temporarily_switch_to_single_kboard): Change first parameter to a
22787 frame pointer. Throw an error when caller wants to change kboards
22788 while in single_kboard mode. Don't push_kboard if we weren't in
22789 single kboard state. Don't pop_kboard if we popped into any
22790 kboard state.
22791 (restore_kboard_configuration): Abort if pop_kboard changed the
22792 kboard in single_kboard mode. Call pop_kboard only after setting
22793 up single_kboard mode.
22794 (Frecursive_edit): Switch to single_kboard mode only in nested
22795 command loops.
22796 (cmd_error, command_loop, command_loop_1, timer_check):
22797 Comment out unnecessary call to `any_kboard_state' and
22798 `record_single_kboard_state'.
22799 (delete_kboard): Exit single_kboard mode if we have just deleted
22800 that kboard. Use FRAME_KBOARD.
22801 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
22802 `fatal_error_signal'.
22803 (record_single_kboard_state): Don't push_kboard if we weren't in
22804 single kboard state. Don't pop_kboard if we popped into any
22805 kboard state.
22806 (push_frame_kboard): Rename to push_kboard.
22807 (kbd_buffer_get_event): Use FRAME_TERMINAL.
22808 (read_avail_input): Read input from all terminals.
22809 (mark_kboards): Also mark Vkeyboard_translate_table.
22810 (kbd_buffer_store_event_hold): Simplify condition.
22811 (read_key_sequence): Reinitialize fkey and keytran at each replay.
22812 (Vkeyboard_translate_table): Move to struct kboard.
22813 (init_kboard): Initialize Vkeyboard_translate_table.
22814 (syms_of_keyboard): Use DEFVAR_KBOARD to define
22815 Vkeyboard_translate_table. Update doc strings. Update docs of
22816 local-function-key-map and function-key-map.
22817
22818 * terminal.c: New file.
22819
22820 * term.c: Include errno.h.
22821 (Vring_bell_function, device_list, initial_device)
22822 (next_device_id, ring_bell, update_begin, update_end)
22823 (set_terminal_window, cursor_to, raw_cursor_to)
22824 (clear_to_end, clear_frame, clear_end_of_line)
22825 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
22826 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
22827 (syms_of_term): Move their initialization to terminal.c.
22828 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
22829 (Ftty_display_color_cells)
22830 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
22831 (clear_tty_hooks, set_tty_hooks)
22832 (init_tty, maybe_fatal): New functions.
22833 (Ftty_type): Return nil if terminal is not on a tty instead of
22834 throwing an error. Doc update.
22835 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
22836 Doc update. Initialize new subrs and variables.
22837 (delete_tty): Use terminal->deleted.
22838 (tty_set_terminal_modes): Rename from set_terminal_modes.
22839 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
22840 (set_scroll_region): Rename to `tty_set_scroll_region'.
22841 (turn_on_insert): Rename to `tty_turn_on_insert'.
22842 (turn_off_insert): Rename to `tty_turn_off_insert'.
22843 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
22844 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
22845 (toggle_highligh): Rename to `tty_toggle_highlight'.
22846 (background_highlight): Rename to `tty_background_highlight'.
22847 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
22848 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
22849 (tty_set_scroll_region, tty_background_highlight)
22850 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
22851 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
22852 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
22853 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
22854 Add static modifier.
22855 (tty_reset_terminal_modes, tty_set_terminal_window)
22856 (tty_set_scroll_region, tty_background_highlight)
22857 (tty_highlight_if_desired, tty_cursor_to)
22858 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
22859 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
22860 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
22861 renames.
22862
228632007-08-28 Jan Djärv <jan.h.d@swipnet.se>
22864
22865 * keyboard.c: Qrtl is new.
22866 (parse_tool_bar_item): Handle :rtl keyword.
22867 (syms_of_keyboard): Intern :rtl keyword.
22868
22869 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
22870
22871 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
22872 so no Lisp code is executed.
22873 (file_for_image, find_rtl_image): New functions.
22874 (xg_get_image_for_pixmap): Use file_for_image.
22875 (update_frame_tool_bar): If direction is RTL, use RTL image if
22876 defined. Use Gtk stock images if defined.
22877
228782007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22879
22880 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
22881 for nonexistent or zero-width glyph in composition glyph.
22882
228832007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
22884
22885 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
22886
22887 * xdisp.c (Finvisible_p): New function.
22888 (syms_of_xdisp): defsubr it.
22889
228902007-08-24 Juanma Barranquero <lekktu@gmail.com>
22891
22892 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
22893 Doc fixes.
22894
228952007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22896
22897 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
22898
228992007-08-24 Martin Rudalics <rudalics@gmx.at>
22900
22901 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
22902 whether decoding has modified buffer contents.
22903
229042007-08-24 Jason Rumney <jasonr@gnu.org>
22905
22906 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
22907 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
22908 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
22909 (init_svg_functions) [HAVE_NTGUI]: New function.
22910 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
22911 (svg_load_image): Use them.
22912 (svg_load_image) [HAVE_NTGUI]: Implement background.
22913
229142007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22915
22916 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
22917 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
22918 (LIBX): Remove @RSVG_LIBS@.
22919 (LIBES): Add $(RSVG_LIBS).
22920
22921 * image.c (svg_load_image): Blend with specified background if exists.
22922 Use IMAGE_BACKGROUND. Add Mac OS Support.
22923
22924 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
22925 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
22926 Remove macros.
22927 [MAC_OSX] (socket_callback): Do nothing.
22928 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
22929 ReceiveNextEvent.
22930 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
22931 socket_callback.
22932 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
22933
229342007-08-22 Glenn Morris <rgm@gnu.org>
22935
22936 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
22937
229382007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
22939
22940 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
22941
22942 * image.c: Add support for SVG images. Some additional comments
22943 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
22944 (svg_image_p): New function to test for SVG image.
22945 (svg_load): New function to load SVG image.
22946 (svg_load_image): New function, helper for svg_load.
22947 (Qsvg): New Lisp_object.
22948 (svg_keyword_index): New enum.
22949 (svg_format): New static `image_keyword' struct.
22950 (svg_type): New static `image_type' struct.
22951 (librsvg/rsvg.h): Include it.
22952
229532007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
22954
22955 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
22956
229572007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
22958
22959 * lread.c (Qold_style_backquotes): New var.
22960 (syms_of_lread): Init and staticpro it.
22961 (load_warn_old_style_backquotes): New fun.
22962 (Fload): Use them to warn about old style backquotes.
22963 (end_of_file_error, Fload): Remove unused vars.
22964
22965 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
22966
22967 * lread.c (Vold_style_backquotes): New var.
22968 (syms_of_lread): Init and export it to Elisp.
22969 (read1): Set it when we find an old-style (back)quote.
22970
229712007-08-22 Jason Rumney <jasonr@gnu.org>
22972
22973 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
22974
229752007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
22976
22977 * puresize.h (BASE_PURESIZE): Increase to 1140000.
22978
229792007-08-19 Richard Stallman <rms@gnu.org>
22980
22981 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
22982
229832007-08-19 Andreas Schwab <schwab@suse.de>
22984
22985 * alloc.c (pure): Round PURESIZE up.
22986
229872007-08-17 Jan Djärv <jan.h.d@swipnet.se>
22988
22989 * xterm.c (handle_one_xevent): Remove check that mouse click is in
22990 active frame.
22991
229922007-08-16 Richard Stallman <rms@gnu.org>
22993
22994 * eval.c (Fcommandp): Add parens to clarify.
22995
22996 * minibuf.c (Fall_completions): Use enum for type of table.
22997
22998 * emacs.c (USAGE2): Improve text.
22999
230002007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23001
23002 * term.c (tty_default_color_capabilities): Declare static
23003 variables in file scope, to avoid HPUX compiler problem.
23004
230052007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23006
23007 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23008 to gtk_toolbar_insert.
23009
230102007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23011
23012 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23013
23014 * insdel.c (reset_var_on_error): New fun.
23015 (signal_before_change, signal_after_change):
23016 Use it to reset (after|before)-change-functions to nil in case of error.
23017 Bind inhibit-modification-hooks to t.
23018 Don't bind (after|before)-change-functions to nil while they run.
23019
230202007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23021
23022 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23023 filling pixmap with stippled background.
23024
230252007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23026
23027 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23028 Don't use invisible frame as parent window for repositioning.
23029
230302007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23031
23032 * print.c (new_backquote_output): Rename from old_backquote_output.
23033 (print): Inverse its logic (according to its name) so as to match the
23034 behavior of new_backquote_flag in lread.c.
23035
230362007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23037
23038 * gmalloc.c (posix_memalign): New function.
23039
23040 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23041 ActivateControl/DeactivateControl here.
23042 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23043 frame-notice-user-settings is non-nil.
23044 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23045 for kEventParamFMFontStyle.
23046 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23047 mac_pass_command_to_system and mac_pass_control_to_system here.
23048 (XTread_socket): Call ActivateControl/DeactivateControl here.
23049 (XTread_socket) [TARGET_API_MAC_CARBON]:
23050 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23051 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23052 for window repositioning.
23053
230542007-08-08 Glenn Morris <rgm@gnu.org>
23055
23056 * Replace `iff' in doc-strings and comments.
23057
230582007-08-07 Chong Yidong <cyd@stupidchicken.com>
23059
23060 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23061
230622007-08-07 Martin Rudalics <rudalics@gmx.at>
23063
23064 * fileio.c (Finsert_file_contents): Run format-decode and
23065 after_insert_file_functions on entire buffer when REPLACE is
23066 non-nil and inhibit modification_hooks and point_motion_hooks.
23067 For consistency, run after_insert_file_functions iff something
23068 got inserted. Move signal_after_change and update_compositions
23069 after code running after_insert_file_functions. Make sure that
23070 undo_list doesn't record intermediate steps of the decoding process.
23071
230722007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23073
23074 * emacs.c (main)
23075 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23076 Call malloc_enable_thread on interactive startup.
23077
23078 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23079 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23080 [USE_PTHREAD]: Conditionalize with it.
23081 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23082 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23083 New functions.
23084
230852007-08-06 Chong Yidong <cyd@stupidchicken.com>
23086
23087 * xdisp.c (redisplay_window): When restoring original buffer
23088 position, make sure it is still valid.
23089
23090 * image.c (png_load): Ignore png-supplied background color.
23091
230922007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23093
23094 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23095 Use kCFAbsoluteTimeIntervalSince1970.
23096
23097 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23098 New variable.
23099 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23100 event loop should be quit.
23101 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23102 Quit dialog event loop if quit_dialog_event_loop is set.
23103
23104 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23105 (Selection): New typedef. Use instead of ScrapRef.
23106 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23107 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23108 (mac_clear_selection): Rename from clear_scrap.
23109 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23110 scrap_has_target_type. All uses changed.
23111 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23112 (mac_selection_has_target_p): New functions.
23113 (mac_put_selection_value): Rename from put_scrap_string.
23114 (mac_get_selection_value): Rename from get_scrap_string.
23115 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23116 (put_scrap_private_timestamp, scrap_has_target_type)
23117 (get_scrap_private_timestamp): Remove functions.
23118 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23119 (x_own_selection, x_get_local_selection):
23120 Use mac_valid_selection_value_p.
23121 (x_own_selection): Don't use put_scrap_private_timestamp.
23122 Record OWNERSHIP-INFO into Vselection_alist instead.
23123 (x_get_local_selection): Don't check type if request is local.
23124 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23125 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23126
231272007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23128
23129 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23130 add comment explaining why.
23131
231322007-08-03 Richard Stallman <rms@gnu.org>
23133
23134 * fileio.c (Fvisited_file_modtime): Use make_time.
23135
231362007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23137
23138 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23139 build.
23140
231412007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23142
23143 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23144
231452007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23146
23147 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23148
231492007-07-30 Richard Stallman <rms@gnu.org>
23150
23151 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23152
231532007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23154
23155 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23156
231572007-07-28 Nick Roberts <nickrob@snap.net.nz>
23158
23159 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23160 remote default-directory.
23161
23162 * buffer.c (mode-line-format): Update doc string.
23163
231642007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23165
23166 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23167 scroll bar gap.
23168 (x_scroll_bar_create): Set bar->fringe_extended_p.
23169 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23170 on frame edge. Check fringe background extension. Don't clear
23171 extended fringe background area.
23172
23173 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23174 (w32_fill_area): Enclose multiple statements with do ... while (0).
23175
23176 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23177 Extend fringe background to scroll bar gap.
23178 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23179 Set bar->fringe_extended_p.
23180 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23181 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23182 background extension. Don't clear extended fringe background area.
23183
23184 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23185 New member fringe_extended_p.
23186
231872007-07-25 Glenn Morris <rgm@gnu.org>
23188
23189 * Relicense all FSF files to GPLv3 or later.
23190
23191 * COPYING: Switch to GPLv3.
23192
231932007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23194
23195 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23196
23197 * data.c (Finteractive_form): Check for the presence of an
23198 `interactive-form' symbol property more thoroughly.
23199
23200 * data.c (Finteractive_form): Use an `interactive-form' property if
23201 present, analogous to the function-documentation property.
23202
232032007-07-24 Jason Rumney <jasonr@gnu.org>
23204
23205 * w32fns.c (x_real_positions): Get real position from OS instead of
23206 calculating it.
23207
232082007-07-23 Jason Rumney <jasonr@gnu.org>
23209
23210 * filelock.c (current_lock_owner): Allow for @ sign in username.
23211
232122007-07-22 Nick Roberts <nickrob@snap.net.nz>
23213
23214 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23215 remote default-directory.
23216
23217 * buffer.c (mode-line-format): Describe above case in doc string.
23218
232192007-07-20 Eli Zaretskii <eliz@gnu.org>
23220
23221 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23222 Define if not defined.
23223
232242007-07-18 Jason Rumney <jasonr@gnu.org>
23225
23226 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23227
232282007-07-18 Richard Stallman <rms@gnu.org>
23229
23230 * data.c (Fsetq_default): Doc fix.
23231
23232 * eval.c (Fsetq): Doc fix.
23233
232342007-07-18 Juanma Barranquero <lekktu@gmail.com>
23235
23236 * coding.c (Ffind_operation_coding_system):
23237 * eval.c (For, Fand): Doc fixes.
23238 Reported by Johan Bockgård.
23239
232402007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23241
23242 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23243
23244 * xterm.h: Declare x_ewmh_activate_frame.
23245
23246 * xterm.c (x_ewmh_activate_frame): New function.
23247 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23248
232492007-07-17 Martin Rudalics <rudalics@gmx.at>
23250
23251 * window.c (Fdisplay_buffer): If largest or LRU window is the
23252 only window, split it even if it is not eligible for splitting.
23253 This restores the original behavior broken by the 2007-07-15
23254 change.
23255
232562007-07-17 Glenn Morris <rgm@gnu.org>
23257
23258 * abbrev.c (abbrev_check_chars): New function.
23259 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23260 Call abbrev_check_chars to check abbrev characters are word
23261 constituents. Doc fix.
23262
232632007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23264
23265 * process.c (Fstart_process, Fmake_network_process)
23266 (read_process_output): Fix up last changes.
23267
232682007-07-16 Eli Zaretskii <eliz@gnu.org>
23269
23270 * makefile.w32-in (clean): Don't delete *~.
23271
232722007-07-16 Andreas Schwab <schwab@suse.de>
23273
23274 * window.c (Fdisplay_buffer): Use NILP.
23275 (Fset_window_scroll_bars): Likewise.
23276
232772007-07-15 Martin Rudalics <rudalics@gmx.at>
23278
23279 * window.c (window_min_size_2): New function.
23280 (window_min_size_1, size_window, Fdisplay_buffer)
23281 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23282 windows without mode- or header-lines when window-min-height is
23283 too small.
23284 (size_window): Reset nodelete_p after testing it, following an
23285 earlier note by Kim F. Storm.
23286 (display_buffer): Do not set split_height_threshold to twice the
23287 value of window_min_height to avoid changing the value of a
23288 customizable variable. Rather explicitly check whether the
23289 height of the window that shall be splitted is at least as large
23290 as split_height_threshold.
23291 (Fwindow_full_width_p): New defun.
23292 (syms_of_window): Defsubr it.
23293
23294 * window.h: Add EXFUN for Fwindow_full_width_p.
23295
232962007-07-14 Jason Rumney <jasonr@gnu.org>
23297
23298 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23299
233002007-07-14 Richard Stallman <rms@gnu.org>
23301
23302 * eval.c (maybe_call_debugger): New function.
23303 (find_handler_clause): Use maybe_call_debugger.
23304 Call it when the handler says `debug'.
23305 Eliminate DEBUGGER_VALUE_PTR.
23306 (Fsignal): Eliminate debugger_value.
23307 (Qdebug): New variable.
23308 (syms_of_eval): Initialize it.
23309
233102007-07-14 Juanma Barranquero <lekktu@gmail.com>
23311
23312 * eval.c (Fprogn):
23313 * keyboard.c (Ftrack_mouse):
23314 * print.c (Fwith_output_to_temp_buffer):
23315 * window.c (Fsave_window_excursion): Doc fix.
23316
233172007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23318
23319 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23320
233212007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23322
23323 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23324 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23325 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23326 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23327 Remove unused encoding_carryover.
23328 * process.c: Adjust all functions accordingly.
23329
233302007-07-12 Richard Stallman <rms@gnu.org>
23331
23332 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23333
233342007-07-11 Jason Rumney <jasonr@gnu.org>
23335
23336 * makefile.w32-in (LIBS): Include OLE32.
23337
23338 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23339 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23340
233412007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23342
23343 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23344 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23345 from a Lisp_Object into a bare pointer.
23346 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23347 Adjust the code correspondingly.
23348
23349 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23350
23351 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23352 (term_show_mouse_face): Remove unused var `j'.
23353 (handle_one_term_event): Remove unused vars `i' and `j'.
23354 Don't cast return value of ttyname since it's not necessary.
23355
233562007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23357
23358 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23359 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23360
23361 * fns.c (map_char_table): Use an array of int for `indices' rather than
23362 an array of Lisp_Objects (which are only ever integers anyway).
23363 (Fmap_char_table): Update caller.
23364 * lisp.h: Update prototype.
23365 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23366 * fontset.c (Ffontset_info):
23367 * casetab.c (set_case_table): Update callers.
23368
23369 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23370
23371 * keymap.c (struct accessible_keymaps_data)
23372 (struct where_is_internal_data): New structures.
23373 (accessible_keymaps_1, where_is_internal_1): Use them to change
23374 interface to adhere to the one used by map_keymap.
23375 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23376 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23377
23378 * keymap.h (map_keymap_function_t): More informative prototype.
23379
233802007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23381
23382 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23383 (looking_at_1): Don't change search_regs and last_thing_searched
23384 if `inhibit-changing-match-data' is non-nil.
23385 (string_match_1, search_buffer, set_search_regs): Likewise.
23386 (syms_of_search): Add Lisp level definition for
23387 `inhibit-changing-match-data' and set it to nil.
23388 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23389 start and end of the match, instead of using values in search_regs.
23390
233912007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23392
23393 * minibuf.c (Fcompleting_read): New value `confirm-only'
23394 for `require-match'.
23395
233962007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23397
23398 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23399 part of the 2007-06-27 change to syms_of_fileio.
23400
234012007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23402
23403 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23404 Check WINDOWP before using XWINDOW. Consolidate return statements.
23405
234062007-06-27 Richard Stallman <rms@gnu.org>
23407
23408 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23409
234102007-06-27 Juanma Barranquero <lekktu@gmail.com>
23411
23412 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23413
234142007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23415
23416 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23417 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23418 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23419 (_free_internal, memalign): Use them.
23420 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23421 Initialize to PTHREAD_MUTEX_INITIALIZER.
23422 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23423 (morecore_nolock): Rename from morecore. All uses changed.
23424 Use only nolock versions of internal allocation functions.
23425 (_malloc_internal_nolock, _realloc_internal_nolock)
23426 (_free_internal_nolock): New functions created from
23427 _malloc_internal, _realloc_internal, and _free_internal.
23428 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23429 Copy hook value to automatic variable before its use.
23430 (memalign): Copy hook value to automatic variable before its use.
23431
234322007-06-26 Kenichi Handa <handa@m17n.org>
23433
23434 * coding.c (Ffind_operation_coding_system): Docstring improved.
23435 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23436
234372007-06-25 David Kastrup <dak@gnu.org>
23438
23439 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23440 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23441 cater for additional parameter.
23442
23443 * keymap.h: Adjust number of parameters to `current-active-maps'.
23444
23445 * doc.c (Fsubstitute_command_keys): Adjust call of
23446 `current-active-maps'.
23447
234482007-06-25 David Kastrup <dak@gnu.org>
23449
23450 * callint.c (Fcall_interactively): Make the parsing of interactive
23451 specs somewhat more readable.
23452
234532007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23454
23455 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23456 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23457 if extended background has already been filled.
23458
234592007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23460
23461 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23462 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23463
23464 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23465 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23466 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23467 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23468 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23469 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23470 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23471 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23472 Run timers during dialog popup.
23473 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23474
234752007-06-21 Jason Rumney <jasonr@gnu.org>
23476
23477 * image.c (convert_mono_to_color_image): Swap fore and background.
23478
234792007-06-20 Jason Rumney <jasonr@gnu.org>
23480
23481 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23482 (w32_free_bdf_font): Unmap memory not handle.
23483
234842007-06-20 Sam Steingold <sds@gnu.org>
23485
23486 * gmalloc.c (__morecore): Fix the declaration to comply with the
23487 definition.
23488
234892007-06-20 Juanma Barranquero <lekktu@gmail.com>
23490
23491 * w32term.c (w32_delete_display): Remove leftover declaration.
23492 (w32_define_cursor, w32_initialize): Make static.
23493
23494 * w32.c (_wsa_errlist): Fix typo in error message.
23495 (init_environment): Ignore any environment variable from the
23496 registry having a null value.
23497
234982007-06-20 Glenn Morris <rgm@gnu.org>
23499
23500 * Makefile.in (LIBGIF): Default to -lgif.
23501
235022007-06-17 Jason Rumney <jasonr@gnu.org>
23503
23504 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23505 unicode strings.
23506
235072007-06-16 Juanma Barranquero <lekktu@gmail.com>
23508
23509 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23510 Fix typo in docstring.
23511
235122007-06-16 Eli Zaretskii <eliz@gnu.org>
23513
23514 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23515 and their keybindings.
23516
235172007-06-15 Chong Yidong <cyd@stupidchicken.com>
23518
23519 * composite.c (update_compositions): Fix last fix.
23520
235212007-06-14 Jason Rumney <jasonr@gnu.org>
23522
23523 * w32.c (get_process_times_fn): New function pointer.
23524 (globals_of_w32): Intialize it if present in kernel32.dll.
23525 (w32_get_internal_run_time): New function.
23526
23527 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23528
235292007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23530
23531 * composite.c (update_compositions): Check the validness of
23532 compositions.
23533
235342007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23535
23536 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23537 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23538
23539 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23540 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23541
23542 * macgui.h (USE_MAC_TOOLBAR): New define.
23543
23544 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23545 Return immediately unless popup is activated.
23546
23547 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23548 background to scroll bar gap.
23549 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23550 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23551 scroll bars on frame edge. Check fringe background extension.
23552 Don't clear extended fringe background area.
23553 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23554 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23555 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23556 [USE_MAC_TOOLBAR]: New macros.
23557 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23558 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23559 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23560 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23561 [USE_MAC_TOOLBAR]: New functions.
23562 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23563 manually if previous repositioning has failed.
23564 (mac_handle_keyboard_event): Use precomputed event kind.
23565 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23566 as tool bar item click. Handle mouse movement over tool bar items.
23567
23568 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23569 toolbar_win_gravity.
23570 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23571 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23572 Add externs.
23573
23574 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23575 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23576
235772007-06-14 Chong Yidong <cyd@stupidchicken.com>
23578
23579 * image.c (search_image_cache): Remove unused variable.
23580
235812007-06-13 Chong Yidong <cyd@stupidchicken.com>
23582
23583 * xfns.c, xmenu.c: Link to xaw3d if available.
23584
235852007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23586
23587 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23588 frame_foreground and frame_background.
23589
23590 * image.c (lookup_image): Save frame foreground and background colors.
23591 (search_image_cache): Check if saved and current frame colors match.
23592
235932007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23594
23595 * regex.c (regex_compile): Remove the `regnum' counter.
23596 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23597
235982007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23599
23600 * term.c: Include intervals.h to declare Fget_text_property.
23601
236022007-06-10 Jason Rumney <jasonr@gnu.org>
23603
23604 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23605
236062007-06-08 Juanma Barranquero <lekktu@gmail.com>
23607
23608 * callint.c (Fcall_interactively):
23609 * editfns.c (Fdelete_and_extract_region):
23610 * fileio.c (Fread_file_name):
23611 * fns.c (Fmapconcat):
23612 * keyboard.c (cmd_error_internal):
23613 * keymap.c (Fkey_description):
23614 * lread.c (openp):
23615 * minibuf.c (read_minibuf):
23616 * search.c (wordify):
23617 * sunfns.c (sel_read):
23618 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23619 * xfns.c (x_default_scroll_bar_color_parameter):
23620 * xmenu.c (menu_help_callback):
23621 * xselect.c (Fx_get_atom_name):
23622 * xterm.c (x_term_init): Use empty_unibyte_string.
23623
236242007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23625
23626 * alloc.c (init_strings): Initialize canonical empty strings.
23627 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23628 canonical empty string when the requested size is 0.
23629
23630 * emacs.c (empty_unibyte_string): Rename from empty_string.
23631 (empty_multibyte_string): New canonical empty string.
23632 (syms_of_emacs): Don't initialize empty_string.
23633
23634 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23635 string, if appropriate.
23636 (empty_unibyte_string, empty_multibyte_string): New externs.
23637 (empty_string): Remove extern.
23638
23639 * lread.c (syms_of_lread): Use empty_unibyte_string.
23640
236412007-06-07 Jason Rumney <jasonr@gnu.org>
23642
23643 * s/ms-w32.h: Don't define HAVE_TZNAME.
23644
23645 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23646
236472007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23648
23649 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23650
23651 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23652 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23653
23654 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23655 Don't call next handler.
23656 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23657 Remove argument. Install handler to application.
23658 (set_frame_menubar): Don't change deep_p.
23659 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23660 FRAME_OUTER_TO_INNER_DIFF_Y.
23661 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23662 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23663 [HAVE_DIALOGS]: New macros.
23664 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23665 Use them.
23666 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23667
23668 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23669 init_service_handler. All callers changed. Return OSStatus value.
23670
23671 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23672 All callers changed so as not to call SetPortWindowPort.
23673 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23674 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23675 mac_draw_string_common.
23676 (mac_draw_image_string_qd): Likewise.
23677 (mac_draw_string_common): Use them. Add INLINE.
23678 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23679 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23680 GetGlobalMouse.
23681 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23682 and FRAME_OUTER_TO_INNER_DIFF_Y.
23683 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23684 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23685 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23686 repositioning window to mac_handle_window_event.
23687 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23688 saving window location to mac_handle_window_event
23689 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23690 (install_menu_target_item_handler): Remove argument in extern.
23691 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23692 Also accept command events.
23693 (do_keystroke): New function created from XTread_socket.
23694 (init_command_handler): Remove functions.
23695 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23696 and save window location by kEventWindowShowing and kEventWindowHiding
23697 handlers here. Don't call next handler for window state change and
23698 focus events.
23699 (mac_handle_application_event, mac_handle_keyboard_event)
23700 [TARGET_API_MAC_CARBON]: New functions.
23701 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23702 kEventWindowShowing and kEventWindowHiding events. Move installation
23703 of mouse, font, text input and menu target item handlers to
23704 install_application_handler.
23705 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23706 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23707 New function.
23708 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23709 Register it.
23710 (XTread_socket) [TARGET_API_MAC_CARBON]:
23711 Consolidate SendEventToEventTarget calls.
23712 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23713 Move application activation handler to mac_handle_application_event.
23714 Move keyboard handler to mac_handle_keyboard_event.
23715 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23716 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23717 init_command_handler. Call install_application_handler.
23718
23719 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23720 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23721
237222007-06-07 Glenn Morris <rgm@gnu.org>
23723
23724 * emacs.c (main): Use `emacs-copyright' in --version output.
23725
237262007-06-06 Chong Yidong <cyd@stupidchicken.com>
23727
23728 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23729
237302007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23731
23732 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23733
23734 * macgui.h: Replace WindowPtr with WindowRef.
23735
23736 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23737 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23738 Replace ControlHandle with ControlRef.
23739 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23740
23741 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23742 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23743 Replace ControlHandle with ControlRef.
23744 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23745 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23746
23747 * macterm.h (struct scroll_bar): Rename member control_handle_low
23748 and control_handle_high to control_ref_low and control_ref_high.
23749 All uses changed.
23750 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23751 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23752 respectively. All uses changed.
23753 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
23754 (install_window_handler, remove_window_handler): Replace WindowPtr
23755 with WindowRef in externs.
23756
237572007-06-05 Juanma Barranquero <lekktu@gmail.com>
23758
23759 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
23760
237612007-06-03 Nick Roberts <nickrob@snap.net.nz>
23762
23763 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
23764
23765 * frame.c (Fmouse_position, Fmouse_pixel_position):
23766 Condition on HAVE_GPM too.
23767
23768 * term.c (term_mouse_highlight): Remove unused variables.
23769 (Fterm_open_connection): Set gpm_zerobased to 1.
23770 (term_mouse_movement, term_mouse_click, handle_one_term_event):
23771 Use zero based co-ordinates.
23772 (handle_one_term_event): Report a drag as mouse movement too.
23773
23774 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
23775
237762007-06-03 Chong Yidong <cyd@stupidchicken.com>
23777
23778 * image.c (search_image_cache): New function. Require background
23779 color match if background color is unspecified in the image spec.
23780 (uncache_image, lookup_image): Use it.
23781
237822007-06-01 Juanma Barranquero <lekktu@gmail.com>
23783
23784 * window.c (Fshrink_window): Reflow docstring.
23785
237862007-06-02 Chong Yidong <cyd@stupidchicken.com>
23787
23788 * Version 22.1 released.
23789
237902007-06-01 Richard Stallman <rms@gnu.org>
23791
23792 * xfns.c (x_encode_text): Add GCPRO.
23793
237942007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23795
23796 * xfns.c (x_set_name_internal): Save encoded name before
23797 x_encode_text in case string data is relocated.
23798
237992007-05-31 Richard Stallman <rms@gnu.org>
23800
23801 * buffer.c (syms_of_buffer): Doc fix.
23802
238032007-05-30 Nick Roberts <nickrob@snap.net.nz>
23804
23805 * sysdep.c (init_sys_modes): Add rather than replace with
23806 O_NONBLOCK.
23807
23808 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
23809 term_mouse_moveto.
23810
23811 * termhooks.h (term_mouse_moveto): New extern.
23812
23813 * term.c (mouse_face_window): Rename...
23814 (Qmouse_face_window): ...to this.
23815 (term_show_mouse_face, term_clear_mouse_face)
23816 (term_mouse_highlight): Use Qmouse_face_window.
23817 (term_mouse_moveto): New function.
23818 (term_mouse_position): Make it work.
23819 (syms_of_term): Uncomment assignment to mouse_position_hook.
23820 Staticpro Qmouse_face_window.
23821
238222007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23823
23824 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
23825 around current_column call.
23826
238272007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
23828
23829 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
23830 * xdisp.c (next_element_from_buffer):
23831 * window.c (delete_window):
23832 * term.c (term_mouse_highlight):
23833 * msdos.c (getdefdir):
23834 * macterm.c (mac_create_bitmap_from_bitmap_data)
23835 (init_font_name_table):
23836 * fns.c (Fsxhash):
23837 * data.c (Fmake_local_variable):
23838 * ccl.c (ccl_driver): Likewise.
23839
238402007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23841
23842 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
23843 Call mac_wakeup_from_rne on window size change.
23844
238452007-05-25 Chong Yidong <cyd@stupidchicken.com>
23846
23847 * image.c (uncache_image): Fix typo.
23848
238492007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
23850
23851 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
23852
238532007-05-22 Richard Stallman <rms@gnu.org>
23854
23855 * xterm.c (x_connection_closed): Remove NO_RETURN.
23856
238572007-05-22 Martin Rudalics <rudalics@gmx.at>
23858
23859 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
23860
238612007-05-21 Chong Yidong <cyd@stupidchicken.com>
23862
23863 * image.c (uncache_image): New function.
23864 (Fimage_refresh): New function.
23865
238662007-05-20 Jan Djärv <jan.h.d@swipnet.se>
23867
23868 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
23869
238702007-05-20 Nick Roberts <nickrob@snap.net.nz>
23871
23872 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
23873 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
23874
238752007-05-20 Nick Roberts <nickrob@snap.net.nz>
23876
23877 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
23878 conditional on [HAVE_GPM_H].
23879
238802007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
23881
23882 * syntax.c (skip_chars): Update syntax-table only after we checked that
23883 the new location is valid.
23884
238852007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23886
23887 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
23888 mac_get_window_bounds.
23889
238902007-05-20 Nick Roberts <nickrob@snap.net.nz>
23891
23892 * Makefile.in (LIBGPM): Allow it to be set from configure.
23893 If set then link Emacs with it.
23894
23895 * config.in: Regenerate.
23896
23897 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
23898 New externs.
23899
23900 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
23901 Include gpm.h.
23902 (handle_one_term_event, term_gpm): New externs.
23903
23904 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
23905 and allow it to be interrupted by SIGIO.
23906
23907 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
23908 (wait_reading_process_output): Wait on gpm_fd too.
23909 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
23910 (add_gpm_wait_descriptor_called_flag): New variable.
23911 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
23912
23913 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
23914 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
23915 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
23916 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
23917 (make_lispy_event): Add case GPM_CLICK_EVENT.
23918 (read_avail_input): Handle mouse input.
23919
23920 * term.c (write_glyphs_with_face): New function.
23921 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
23922 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
23923 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
23924 (mouse_face_face_id, term_gpm, pos_x, pos_y)
23925 (last_mouse_x, last_mouse_y): New variables.
23926 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
23927 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
23928 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
23929 (Fterm_close_connection): New functions.
23930 (term_init): Initialise mouse_face_window.
23931
239322007-05-19 Chong Yidong <cyd@stupidchicken.com>
23933
23934 * xdisp.c (redisplay_window): If first window line is a
23935 continuation line, recompute the new window start instead of
23936 recentering.
23937
239382007-05-18 Glenn Morris <rgm@gnu.org>
23939
23940 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
23941 Suggested by Alfred M. Szmidt <ams@gnu.org>.
23942
239432007-05-17 Glenn Morris <rgm@gnu.org>
23944
23945 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
23946
239472007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23948
23949 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
23950 dead key repeat and up events.
23951
239522007-05-14 Chong Yidong <cyd@stupidchicken.com>
23953
23954 * image.c (pbm_load): Check image size for monochrome pbm.
23955
239562007-05-13 Chong Yidong <cyd@stupidchicken.com>
23957
23958 * xterm.c (XTread_socket): Revert last change.
23959
239602007-05-12 Chong Yidong <cyd@stupidchicken.com>
23961
23962 * image.c (pbm_load): Correctly check image size for greyscale pbm.
23963
23964 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
23965
239662007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23967
23968 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
23969 mixup (YAILOM).
23970
239712007-05-07 Andreas Schwab <schwab@suse.de>
23972
23973 * keymap.c (Flookup_key): Fix typo in last change.
23974
239752007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
23976
23977 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
23978 mapping for unibyte strings.
23979
239802007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23981
23982 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
23983 (Fx_popup_dialog) [MAC_OSX]: Likewise.
23984
239852007-04-29 Richard Stallman <rms@gnu.org>
23986
23987 * insdel.c (replace_range): For undo, record insertion first.
23988
239892007-04-29 Andreas Schwab <schwab@suse.de>
23990
23991 * lisp.h (VECSIZE): Use OFFSETOF.
23992
239932007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23994
23995 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23996 disabled lines.
23997
239982007-04-28 Richard Stallman <rms@gnu.org>
23999
24000 * lread.c (read_escape): In a string, \s is always space.
24001
240022007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24003
24004 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24005
24006 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24007 submenu for menu bar items.
24008
24009See ChangeLog.10 for earlier changes.
24010
24011;; Local Variables:
24012;; coding: utf-8
24013;; add-log-time-zone-rule: t
aac0c6e3
MR
24014;; End:
24015
e3eb1dae 24016 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24017
24018 This file is part of GNU Emacs.
24019
24020 GNU Emacs is free software: you can redistribute it and/or modify
24021 it under the terms of the GNU General Public License as published by
24022 the Free Software Foundation, either version 3 of the License, or
24023 (at your option) any later version.
24024
24025 GNU Emacs is distributed in the hope that it will be useful,
24026 but WITHOUT ANY WARRANTY; without even the implied warranty of
24027 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24028 GNU General Public License for more details.
24029
24030 You should have received a copy of the GNU General Public License
24031 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24032
24033;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40