(BSD_SYSTEM, BSD4_2): Remove conditionals, we only
[bpt/emacs.git] / src / ChangeLog
CommitLineData
55da5ee3
DN
12010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2
0be96e3a
DN
3 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4 support vax on BSDs.
5
55da5ee3
DN
6 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
7 * s/aix4-2.h (ORDINARY_LINK): ... here.
8
c0282183
AS
92010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10
82c3d67a
AS
11 * Makefile.in (abs_builddir): Define.
12 (bootstrap_exe): Use it.
13 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 14
3613edce
SM
152010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16
17 * Makefile.in (bootstrap_exe): Use an absolute name.
18
7f110ddc
DN
192010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
20
22e87574
DN
21 Remove support for old GNU/Linux using libc version 5.
22 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
23 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
24
05a670e6
DN
25 Consolidate redundant definitions in s/bsd-common.h.
26 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
27 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
28 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
29 doing it in all files that include this one.
30 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
31 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
32 (LDAV_SYMBOL, KERNEL_FILE): Remove.
33 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
34 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
35 (LDAV_SYMBOL, KERNEL_FILE): Remove.
36 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
37 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
38 (LDAV_SYMBOL, KERNEL_FILE): Remove.
39
2968f561
DN
40 Consolidate redundant definitions.
41 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
42 it's undefined in all files that include this one.
43 (POSIX_SIGNALS): Define here instead of doing it in all files that
44 include this one.
45 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
46 (POSIX_SIGNALS): Do not define.
47 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
48 (POSIX_SIGNALS): Do not define.
49 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
50 (POSIX_SIGNALS): Do not define.
51
15d25dc0
DN
52 Remove support for old UNIX System V systems.
53 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
54 * s/usg-5-4-2.h: Remove.
55
07e339e4
DN
56 Remove support for Solaris on PPC and for old versions.
57 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
58 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
59 that cancel each other.
60 * s/sol2-3.h:
61 * s/sol2-4.h:
62 * s/sol2-5.h: Remove.
63 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
64 (NO_REMAP): Remove, unused.
65 (UNEXEC): Move definition ...
66 * s/aix4-2.h (UNEXEC): ... here.
67
7f110ddc
DN
68 * s/openbsd.h: Remove support for non-ELF and for systems that do
69 not support shared libraries.
70 * s/netbsd.h:
71 * s/freebsd.h: Likewise.
72
605f35cd
DN
732010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
74
75 Remove non-working support for lynxos 3.0.
76 * s/lynxos.h: Remove file.
77
78 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
79 COFF_BSD_SYMBOLS, nothing defines it anymore.
80
aed71cf4
DN
812010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
82
83 Remove obsolete uses of HAVE_SHM.
84 * emacs.c (standard_args):
85 (Fdump_emacs):
86 (syms_of_emacs): Remove code depending on HAVE_SHM.
87
88 * alloc.c: Remove HAVE_SHM dependent definition.
89
90 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
91
aded53ff
GM
922010-03-18 Glenn Morris <rgm@gnu.org>
93
17284745
GM
94 * emacs.c (USAGE4): Hard-code bug address.
95 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
96 (bug_reporting_address): Remove.
97 (main): Don't call bug_reporting_address.
98
aded53ff
GM
99 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
100 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
101
303500aa
CY
1022010-03-15 Chong Yidong <cyd@stupidchicken.com>
103
104 * xfns.c (Fx_create_frame):
105 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
106 on left.
107
cef3058f
CY
1082010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
109
110 * editfns.c (Fformat): Account for string precision when computing
111 field width (Bug#5710).
112
a647d59d
CY
1132010-03-12 Chong Yidong <cyd@stupidchicken.com>
114
4fa42018
CY
115 * xfns.c (Fx_create_frame): Set default to Qright.
116
a647d59d
CY
117 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
118 all window systems.
119
6da23aaa
EZ
1202010-03-12 Eli Zaretskii <eliz@gnu.org>
121
a96f6398 122 These changes remove termcap.c from the build on Posix platforms.
6da23aaa
EZ
123 * Makefilie.in (termcapobj): Move termcap.o from here...
124 (MSDOS_OBJ): ...to here.
125 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
126 now identical to when LIBS_TERMCAP is defined.
127
128 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
129
130 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
131
a96f6398 132 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 133
288f9fc0
CY
1342010-03-10 Chong Yidong <cyd@stupidchicken.com>
135
136 * Branch for 23.2.
137
d48cd3f4
SM
1382010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
139
140 Cleanup setup of gl_state in various parts of the code.
141 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
142 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
143 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
144 (skip_chars):
145 * regex.c (regex_compile): Use it.
146 (re_compile_pattern): Don't set gl_state.current_syntax_table since
147 it's now set in regex_compile when/if we need it.
148
618db430
SM
1492010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
150
c0335e02
SM
151 Make it possible to C-g in a tight bytecode loop again (bug#5680).
152 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
153 (QUIT): Use it to consolidate code and remove redundancy.
154 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
155
254c06a8
SM
156 * regex.c (regex_compile): Setup gl_state as well.
157
618db430
SM
158 * syntax.c (skip_chars): Setup gl_state (bug#3823).
159 (in_classes): Use CONSP before XCAR/XCDR.
160
233f0c9f
CY
1612010-03-03 Chong Yidong <cyd@stupidchicken.com>
162
163 * keymap.c (Fwhere_is_internal): Use Fequal to compare
164 definitions, so that keyboard macros are correctly handled
165 (Bug#5481).
166
75f80e63
EZ
1672010-03-02 Eli Zaretskii <eliz@gnu.org>
168
169 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
170 text that could be relocated inside the call to emacs_mule_char.
171 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
172 (CODING_DECODE_CHAR): Add a comment describing its purpose.
173
dcfb9bc4
KH
1742010-03-02 Kenichi Handa <handa@m17n.org>
175
fc9a17bc
KH
176 * character.c (parse_str_as_multibyte): Fix handling of the
177 multibyte form of raw-bytes.
178 (str_as_multibyte): Likewise.
179
dcfb9bc4
KH
180 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
181 form of raw-bytes.
182
412c01b6
CY
1832010-02-28 Chong Yidong <cyd@stupidchicken.com>
184
185 * charset.c (load_charset_map_from_file)
186 (load_charset_map_from_vector): Zero out allocated
187 charset_map_entries before using them.
188
df7e1ea0
AS
1892010-02-27 Andreas Schwab <schwab@linux-m68k.org>
190
191 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
192
fe69a722
CY
1932010-02-27 Chong Yidong <cyd@stupidchicken.com>
194
4ed28cf4
CY
195 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
196 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 197
7379cfce
KH
1982010-02-26 Kenichi Handa <handa@m17n.org>
199
f88cc4d6
KH
200 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
201
7379cfce
KH
202 * xdisp.c (reseat_to_string): Fix previous change.
203
cf2fdcfb
CY
2042010-02-26 David Reitter <david.reitter@gmail.com>
205
206 * nsfont.m (nsfont_draw): ns_antialias_text should be a
207 Lisp_Object (Bug#4736).
208
cc6c7c75
KH
2092010-02-25 Kenichi Handa <handa@m17n.org>
210
211 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
212
32e737d7
JD
2132010-02-24 Jan Djärv <jan.h.d@swipnet.se>
214
215 * xterm.c (XTflash): Move declarations before statements.
216
217 * gtkutil.c (xg_get_gdk_display): Remove (unused).
218 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
219 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
220 (xg_create_tool_bar): Remove unused variables.
221 (x_wm_set_size_hint): Move declarations before statements.
222 (xg_create_frame_widgets): Remove variable grav,
223
676cae9f
CY
2242010-02-21 Chong Yidong <cyd@stupidchicken.com>
225
226 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
227
886cc2b8
SM
2282010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
229
230 * term.c (fatal): Add a final \n if needed (bug#5596).
231
ddb2d8e2
CY
2322010-02-18 Chong Yidong <cyd@stupidchicken.com>
233
234 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
235
2a4f8d3d
GM
2362010-02-18 Glenn Morris <rgm@gnu.org>
237
238 * callint.c (Finteractive): Doc fix.
239
ebaf11b6
KH
2402010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
241
886cc2b8
SM
242 * coding.c (record_conversion_result):
243 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
244 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
245 memory allocation error.
246
d0396581
KH
2472010-02-17 Kenichi Handa <handa@m17n.org>
248
886cc2b8
SM
249 * coding.c (decode_coding_ccl): Don't setup ccl program here.
250 Fix for the case that the output buffer is fullfilled.
d0396581
KH
251 (decode_coding): Setup ccl program here. Keep looping when the
252 decoder stopped because the output buffer is
253 fullfilled (bug#5534).
254
255 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
256
98599f74
JD
2572010-02-13 Jan Djärv <jan.h.d@swipnet.se>
258
471e4f04 259 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 260 bug #5571.
886cc2b8 261 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 262 overdrawn.
98599f74 263
182659ae
JD
2642010-02-10 Jan Djärv <jan.h.d@swipnet.se>
265
266 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
267 doing_interact here.
268 (ice_connection_closed): New function.
269 (x_session_check_input, smc_die_CB, ice_io_error_handler)
270 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
271 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
272 returns I/O error.
273 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
274 bug #5512.
275
9be32c4e 2762010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
277
278 * nsfont.m (nsfont_open): The system's value for the font descent
279 is negative, so round it down to avoid clipping.
280
a2f3eb19
CY
2812010-02-06 Chong Yidong <cyd@stupidchicken.com>
282
283 * charset.c (load_charset_map_from_file)
284 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 285 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 286
3088147c
CY
2872010-02-05 Chong Yidong <cyd@stupidchicken.com>
288
289 * charset.c (load_charset_map_from_file): Allocate large
290 charset_map_entries structure on the heap rather than the stack.
291 (Bug#5526).
292
b57d9029
KH
2932010-01-31 Kenichi Handa <handa@m17n.org>
294
295 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 296 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 297
c67d885b
CY
2982010-01-31 Chong Yidong <cyd@stupidchicken.com>
299
300 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
301 <deactivated@gmail.com> (Bug#3605).
302
8fab2362
CY
3032010-01-31 David De La Harpe Golden <david@harpegolden.net>
304
305 * fileio.c (Frename_file): Correctly rename symlinks to
306 directories (Bug#5496).
307
cb2a62f2
CY
3082010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
309
310 * nsterm.m (ns_ring_bell): Handle visible bell like X.
311
944c7a26
AS
3122010-01-30 Andreas Schwab <schwab@linux-m68k.org>
313
314 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
315
c024ac08
CY
3162010-01-29 Chong Yidong <cyd@stupidchicken.com>
317
318 * frame.c (DEFAULT_ROWS): Change default to 35.
319
320 * xfns.c (x_default_font_parameter): Change default XFT font to
321 monospace-10 (Bug#3643).
322
af93af83
EZ
3232010-01-29 Eli Zaretskii <eliz@gnu.org>
324
325 * w32inevt.c (key_event): Remove unnecessary comparison of
326 event->uChar.AsciiChar with 128.
327
ca0eb708
CY
3282010-01-28 Chong Yidong <cyd@stupidchicken.com>
329
b242dbfc
CY
330 * fileio.c (Frename_file): Fix last change (Bug#5487).
331
ca0eb708
CY
332 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
333
334 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
335
45d45af5
JD
3362010-01-28 Jan Djärv <jan.h.d@swipnet.se>
337
338 * xfns.c (Fx_create_frame): Remove window size matching code from
339 2010-01-15.
340 (x_get_current_desktop, x_get_desktop_workarea): Remove
341
7e233730
JR
3422010-01-27 Jason Rumney <jasonr@gnu.org>
343
344 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 345 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 346
86e893e3
KH
3472010-01-27 Kenichi Handa <handa@m17n.org>
348
349 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 350 pattern string (Bug#4209).
86e893e3 351
8719abec
CY
3522010-01-27 David De La Harpe Golden <david@harpegolden.net>
353
354 * fileio.c (Frename_file): Call copy-directory and
355 delete-directory for directories, in order to handle cross-device
356 renaming (Bug#3353).
357
844794c8
JD
3582010-01-25 Jan Djärv <jan.h.d@swipnet.se>
359
aa3e13b5 360 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 361 sizes 24 and 10. Bug #3643.
844794c8 362
bd4b5750
SM
3632010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
364
8dc1adf6 365 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
366 * keymap.c (shadow_lookup): Add `remap' arg.
367 (describe_map, describe_vector): Update calls to shadow_lookup.
368 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
369 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
370 perform remapping during shadow_lookup check of remapped_sequences.
371
285d07e2
CY
3722010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
373
374 * image.c (png_load): Use png_sig_cmp instead of the obsolete
375 png_check_sig, which has been removed in libpng 1.4.
376
c6d09b8d
CY
3772010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
378
379 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
380 lacks this header file).
381
3d782998
YM
3822010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
383
384 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
385 as in Emacs 22.
386
2aff7c53
YM
3872010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
388
389 * lisp.h (make_pure_string): String pointer arg now points to const.
390
391 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
392 args now point to const.
393
74327f7a
EZ
3942010-01-22 Eli Zaretskii <eliz@gnu.org>
395
396 * lread.c (Fload): Don't treat files without .elc extension as
397 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
398 them. (bug#5303)
399
4d1e6632
KH
4002010-01-20 Kenichi Handa <handa@m17n.org>
401
402 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
403 treat the source as actual byte sequence.
404
1fdede8f
AM
4052010-01-19 Alan Mackenzie <acm@muc.de>
406
407 Fix spurious before-change-functions invocation from (insert ?\n).
408 * textprop.c (set_text_properties): rename parameter
409 `signal_after_change_p' to `coherent_change_p', and make the
410 invocation of `modify_region' conditional on it.
411
67477f30
JD
4122010-01-19 Jan Djärv <jan.h.d@swipnet.se>
413
414 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
415 for debug purpose.
416 (syms_of_xsettings): Declare xft-settings.
417
244b023e
CY
4182010-01-18 Chong Yidong <cyd@stupidchicken.com>
419
420 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
421
617364fe
CY
4222010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
423
424 * xterm.c (event_handler_gdk): Block input (Bug#5037).
425
4fe22cdf
CY
4262010-01-16 Chong Yidong <cyd@stupidchicken.com>
427
428 * emacs.c (standard_args): Adjust arg priorities to reflect how
429 they are processed in startup.el.
430
e118d2be
AS
4312010-01-16 Andreas Schwab <schwab@linux-m68k.org>
432
433 * Makefile.in (lisp, shortlisp): Update.
434
523ae620
SM
4352010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
436
437 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
438 code, link the new kboard into all_kboard before running Lisp code,
439 and protect the new terminal with GCPRO (Bug#5365).
440 (x_term_init): Remove unused var `atom'.
441 (x_delete_display, x_delete_terminal): Remove unused var `i'.
442
f0d13888
JD
4432010-01-15 Jan Djärv <jan.h.d@swipnet.se>
444
445 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
446 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
447 to find out usable size of the desktop. Don't make frames larger than
ac146f82 448 this. Bug #3643.
f0d13888 449
cc320f07
KH
4502010-01-15 Kenichi Handa <handa@m17n.org>
451
452 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
453
7ffdf101
CY
4542010-01-15 Chong Yidong <cyd@stupidchicken.com>
455
456 * nsterm.m (Qnone): Define.
457
458 * nsfns.m (Qnone): Move definition to nsterm.m.
459
d12bd917
KH
4602010-01-14 Kenichi Handa <handa@m17n.org>
461
462 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
463 systems.
464
d9a7c140
KH
4652010-01-14 Kenichi Handa <handa@m17n.org>
466
467 Make auto-composition work on all buffers even if they are
468 fundamental mode.
469
470 * composite.c (Vauto_composition_mode): New variable.
471 (composition_compute_stop_pos): Check Vauto_composition_mode
472 instead of Vauto_composition_function.
473 (composition_adjust_point, Ffind_composition_internal): Likewise.
474 (syms_of_composite): Declare Lisp variable
475 "auto-composition-mode" here.
476
63286bb2
CY
4772010-01-13 Chong Yidong <cyd@stupidchicken.com>
478
479 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
480 during call to vendor-specific-keysyms (Bug#5365).
481
c2623ee7
YM
4822010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
483
484 * keyboard.c (input_available_signal) [SYNC_INPUT]:
485 Call SIGNAL_THREAD_CHECK (Bug#5333).
486
487 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
488 Call SIGNAL_THREAD_CHECK.
489
0b5397c2
SM
4902010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
491
492 Try to fix bug#5314. This is probably not the final word, tho.
493 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
494 recent-auto-save-p as a side-effect.
495 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
496 * buffer.c (Fkill_buffer, reset_buffer):
497 * editfns.c (Fsubst_char_in_region):
498 * fileio.c (Finsert_file_contents, Fdo_auto_save)
499 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
500
dc954cb2
KH
5012010-01-13 Kenichi Handa <handa@m17n.org>
502
503 Display buffer name, etc. in mode line by composing correctly.
504
505 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
506 STRING is not nil.
0b5397c2 507 (display_mode_element): Adjust for the change of
dc954cb2
KH
508 decode_mode_spec and display_line.
509 (decode_mode_spec): Change arg MULTIBYTE to STRING.
510 (display_string): Handle the case that STRING is non-null and
511 LISP_STRING is not nil.
512
0b5397c2
SM
513 * xterm.c (x_draw_composite_glyph_string_foreground):
514 Pay attention to s->face->overstrike.
dc954cb2
KH
515
516 * composite.c (composition_reseat_it): Don't check PT if STRING is
517 non nil.
518
4a00eaca
YM
5192010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
520
521 * keyboard.c (read_char): Don't apply previous change when current
522 buffer is unchanged by command execution.
523
60abb287
JD
5242010-01-12 Jan Djärv <jan.h.d@swipnet.se>
525
526 * keyboard.c (read_char): Return after executing from special map.
527
893db5bc
GM
5282010-01-12 Glenn Morris <rgm@gnu.org>
529
530 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
531 bug-gnu-emacs rather than emacs-pretest-bug.
532
4d03ece0
CY
5332010-01-11 Chong Yidong <cyd@stupidchicken.com>
534
535 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
536 initializing the Lisp variables that depend on them.
537
1df47e38
YM
5382010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539
540 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
541 Clear areas that will not be updated after change of menu bar lines.
542 Clear the menu bar window's current matrix when the window gets empty.
543
2f1c6384
CY
5442010-01-09 Chong Yidong <cyd@stupidchicken.com>
545
e398c61c
CY
546 * intervals.h, textprop.c (extend_property_ranges): Return value
547 and args changed. Discard properties that begin at or after the
548 new end (Bug#5306).
549
550 * editfns.c (Fformat): Caller changed.
551
e5a29a10
CY
552 * nsterm.m (ns_set_default_prefs): Delete function.
553 (syms_of_nsterm): Initialize ns_command_modifier,
554 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
555 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
556
2f1c6384
CY
557 * xdisp.c (pos_visible_p): Check for invisible text at the correct
558 position (Bug#4040).
559
d427a9fa
EZ
5602010-01-09 Eli Zaretskii <eliz@gnu.org>
561
562 * editfns.c (Ffloat_time): Doc fix.
563
21b9df2f
JD
5642010-01-09 Jan Djärv <jan.h.d@swipnet.se>
565
566 * xfns.c (Fx_create_frame): Don't create frame larger than display
567 by default bug#3643.
568
4b00d3b1
YM
5692010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
570
571 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
572 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
573 windows above internal border.
574
575 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
576 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
577 windows above internal border.
578
579 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
580 tool bar windows specially.
581
582 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
583
584 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
585 specially.
586 (XTflash): Take account of menu bar height.
587
588 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
589 specially.
590
5075d853
JD
5912010-01-08 Jan Djärv <jan.h.d@swipnet.se>
592
ac146f82 593 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
594 also be true before we can return early (bug #5339).
595
474217c8
CY
5962010-01-06 David Reitter <david.reitter@gmail.com>
597
598 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
599 (Fns_display_usable_bounds): Rewrite, computing bounds properly
600 (Bug#3233).
601
c0e6d47d
JD
6022010-01-06 Jan Djärv <jan.h.d@swipnet.se>
603
d0cf45b7
JD
604 * font.c (font_open_entity): Enable chache and call cached_font_ok
605 for the driver if defined.
606 (QCuser_spec): New symbol.
607 (font_spec_from_name): Save name as user-spec.
608 (font_load_for_lface): Keep user-spec instead of name.
609 (font_open_by_name): Save name as user-spec.
610 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 611 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
612
613 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
614 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
615 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
616
617 * font.h (struct font_driver): Add cached_font_ok.
618
c0e6d47d
JD
619 * xterm.c (x_clear_frame): Queue draw for scroll bars.
620
7c583cd8
JD
6212010-01-05 Jan Djärv <jan.h.d@swipnet.se>
622
623 * xterm.c (x_new_font): Move code for setting rows/cols before
624 resizing ...
ac146f82 625 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
626
627 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
628 (xg_frame_resized, xg_frame_set_char_size):
629 Call xg_clear_under_internal_border.
7c583cd8 630 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 631
03f77f0a
CY
6322010-01-05 Chong Yidong <cyd@stupidchicken.com>
633
634 * keyboard.c (read_key_sequence): Catch keyboard switch after
635 making a new tty frame (Bug#5095).
636
2a1ef5be
KH
6372010-01-05 Kenichi Handa <handa@m17n.org>
638
639 * fontset.c (fontset_find_font): Fix getting the frame pointer.
640
e3eb1dae
SM
6412010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
642
643 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
644 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
645 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
646
777013f2
MA
6472010-01-03 Michael Albinus <michael.albinus@gmx.de>
648
649 * dbusbind.c (xd_add_watch): Improve debug message.
650 (xd_remove_watch): Improve debug message. If DATA is the session
651 bus, unset D-Bus session environment.
652 (Fdbus_init_bus): Pass the bus as argument to
653 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 654
8932b1c2
CY
6552010-01-01 Chong Yidong <cyd@stupidchicken.com>
656
87231e2c
CY
657 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
658
4801c5fa
CY
659 * lread.c (syms_of_lread): Make it clearer that these are the
660 names of loaded files (Bug#5068).
661
8932b1c2
CY
662 * eval.c (run_hook_with_args): Handle the case where the global
663 value has the obsolete single-function form (Bug#5026).
664
11e3c684
CY
6652009-12-27 Chong Yidong <cyd@stupidchicken.com>
666
667 * minibuf.c (Fall_completions): Minor optimization.
668
5b28ce35
EZ
6692009-12-26 Eli Zaretskii <eliz@gnu.org>
670
5ce6e4f4
JB
671 * .gdbinit (pgx): Fix display of composite glyphs.
672 Display cmp.from and cmp.to as well.
673 (pitx): Fix last change.
5b28ce35 674
bcffff46
KH
6752009-12-25 Kenichi Handa <handa@m17n.org>
676
677 * composite.h (composition_adjust_point): Update prototype.
678
679 * composite.c (composition_reseat_it): Don't make a composition
680 spanning over point.
681 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
682 composable characters.
683 (composition_adjust_point): New arg NEW_PT. Callers changed.
684
685 * keyboard.c (command_loop_1): Force redisplay if the last point
686 was within a composition.
687 (adjust_point_for_property): Don't adjust point for automatic
688 composition when called after buffer modification.
689
3f670e9a
EZ
6902009-12-19 Eli Zaretskii <eliz@gnu.org>
691
5ce6e4f4
JB
692 * .gdbinit (pitx): Don't use enum names, use their values.
693 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
694 (pgx): Don't use enum names, use their values.
695 (pitmethod): New helper command.
696 (pitx): Use it to display iteration method.
697 (pgrowit): New command.
698
ad903955
EZ
699 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
700
3f670e9a
EZ
701 Update dependencies in Makefile.in.
702
703 * Makefile.in (alloc.o): Depend on termhooks.h.
704 (atimer.o): Depend on blockinput.h.
705 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
706 and frame.h.
707 (callint.o): Depend on systime.h, coding.h, and composite.h.
708 (callproc.o): Depend on buffer.h.
709 (casefiddle.o): Don't depend on charset.h.
710 (casetab.o): Depend on character.h.
711 (ccl.o): Depend on composite.h.
712 (chartab.o): Depend on ccl.h.
713 (cm.o): Depend on dispextern.h.
714 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
715 (coding.o): Don't depend on $(INTERVALS_H).
716 (composite.o): Don't depend on dispextern.h explicitly (it's in
717 $(INTERVALS_H)). Depend on ccl.h.
718 (data.o): Depend on systime.h, coding.h, composite.h,
719 dispextern.h, font.h, and ccl.h.
720 (dired.o): Depend on composite.h.
721 (dispnew.o): Depend on coding.h. Don't depend explicitly on
722 composite.h (it's in $(INTERVALS_H)).
723 (doc.o): Depend on systime.h, coding.h, and composite.h.
724 (editfns.o): Don't depend explicitly on dispextern.h.
725 (emacs.o): Depend on frame.h and coding.h.
726 (eval.o): Depend on coding.h, composite.h, and xterm.h.
727 (fileio.o): Depend on frame.h and commands.h. Don't depend
728 explicitly on dispextern.h.
729 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
730 composite.h.
731 (fns.o): Don't depend on termhooks.h.
732 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
733 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
734 coding.h, $(INTERVALS_H), window.h, xterm.h.
735 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
736 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
737 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
738 fontset.h, ccl.h, and ftfont.h.
739 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
740 (gtkutil.o): Depend on dispextern.h and composite.h.
741 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
742 termhooks.h, and ccl.h.
743 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
744 (intervals.o): Depend on systime.h and coding.h.
745 (keyboard.o): Depend on composite.h and coding.h.
746 (keymap.o): Depend on coding.h and frame.h.
747 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
748 (macros.o): Depend on systime.h, coding.h, and composite.h.
749 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
750 and atimer.h.
751 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
752 dispextern.h explicitly.
0b5397c2
SM
753 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
754 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
755 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
756 (regex.o): Don't depend on charset.h.
757 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
758 (search.o): Don't depend explicitly on composite.h.
759 (sound.o): Depend on atimer.h and systime.h.
760 (syntax.o): Don't depend explicitly on composite.h.
761 (sysdep.o): Depend on coding.h and composite.h.
762 (term.o): Depend on xterm.h and buffer.h.
763 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
764 (textprop.o): Don't depend on dispextern.h explicitly.
765 (undo.o): Depend on dispextern.h.
766 (window.o): Depend on coding.h and termhooks.h. Don't depend on
767 dispextern.h and composite.h explicitly.
768 (xdisp.o): Depend on ccl.h.
769 (xfaces.o): Depend on coding.h and ccl.h.
770 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
771 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
772 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
773 ftfont.h.
774 (xgselect.o): New dependency.
775 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
776 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
777 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
778 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
779 (xsmfns.o): Depend on frame.h and dispextern.h.
780 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
781 sysselect.h.
782
7a6f7fea
AS
7832009-12-19 Andreas Schwab <schwab@linux-m68k.org>
784
785 * font.c (Fclear_font_cache): Pass correct cache argument to
786 font_clear_cache.
787
f4c21026
AS
7882009-12-16 Andreas Schwab <schwab@linux-m68k.org>
789
790 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
791 twice.
792
f7ab0997
CY
7932009-12-15 Chong Yidong <cyd@stupidchicken.com>
794
795 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
796 calling file-remote-p. Reported by Jim Meyering.
797
fa8e045a
MA
7982009-12-15 Michael Albinus <michael.albinus@gmx.de>
799
800 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 801 avoid compiler warnings. (Bug #5217)
fa8e045a 802
a63dba42
KH
8032009-12-14 Kenichi Handa <handa@m17n.org>
804
805 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
806 in 8-bit encoding.
807
5ce6e4f4 8082009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
809
810 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
811 tooltip windows.
812
223e5fc6
JD
8132009-12-13 Jan Djärv <jan.h.d@swipnet.se>
814
36acb2a7
JD
815 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
816 Xatom_net_window_type.
817
818 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
819 Xatom_net_window_type.
820
b8f00677
JD
821 * xterm.c (my_log_handler): New function.
822 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 823 so we can filter out buggy messages. (Bug #5120).
b8f00677 824
e5f0bc9a
JD
825 * xterm.c (xg_scroll_callback): Parameter list changed,
826 use parameter GtkScrollType to determine scroll/line/page.
827 Only allow dragging if a button < 4 is grabbed (bug #5177).
828 (xg_end_scroll_callback): New function.
829 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
830 xg_create_scroll_bar.
831
832 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
833 (scroll_end_callback): Remove.
834 (xg_create_scroll_bar): Add parameter end_callback, bind it to
835 button-release-event. Replace value-changed event with change-value,
836 bug #5177,
837 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
838 bug #5177.
839
840 * gtkutil.h (XG_LAST_SB_DATA): Remove.
841 (xg_create_scroll_bar): Add GCallback end_callback.
842
223e5fc6
JD
843 * xftfont.c (QClcdfilter): New variable.
844 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
845 (syms_of_xftfont): Initialize QClcdfilter.
846
3c055b77
JD
8472009-12-12 Jan Djärv <jan.h.d@swipnet.se>
848
849 * xsettings.c (struct xsettings): Add member seen.
850 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 851 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
852 (apply_xft_settings): Only update Xft settings with what member seen
853 indicates as new.
854
05fe33ff
EZ
8552009-12-12 Eli Zaretskii <eliz@gnu.org>
856
857 * dispextern.h (struct text_pos): Use EMACS_INT;
858 (struct glyph): Use EMACS_INT for charpos.
859 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
860 region_beg_charpos, region_end_charpos,
861 redisplay_end_trigger_charpos, and also for
862 iterator_stack_entry.end_charpos and
863 iterator_stack_entry.stop_charpos.
864
e8d7886a
JD
8652009-12-12 Jan Djärv <jan.h.d@swipnet.se>
866
5ce6e4f4 867 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
868 (xg_create_scroll_bar): Call scroll_end_callback on button release
869 event (bug #5177).
870 (xg_event_is_for_scrollbar): != replaced with ==.
871
d0db2ec8
KH
8722009-12-12 Kenichi Handa <handa@m17n.org>
873
874 * ftfont.c (struct ftfont_info): New member matrix.
875 (ftfont_open): Setup xftfont_info->matrix.
876 (MFLTFontFT): New member matrix.
877 (FLOOR, CEIL, ROUND): New macros.
878 (ftfont_get_metrics): Handle matrix transformation.
879 (ftfont_shape_by_flt): New arg matrix. Callers changed.
880
881 * xftfont.c (struct xftfont_info): New member matrix.
882 (xftfont_open): Setup xftfont_info->matrix.
883
8842009-12-10 Kenichi Handa <handa@m17n.org>
885
886 * xdisp.c (append_space_for_newline): Consider face-remapping.
887
2cc7b62f
AS
8882009-12-09 Andreas Schwab <schwab@linux-m68k.org>
889
b87dd913
AS
890 * xsettings.c: Include "keyboard.h".
891
eba5eb94
AS
892 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
893
2cc7b62f
AS
894 Fix implicit function declarations.
895 * cmds.c: Include "frame.h".
896 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
897 * frame.h: Move declaration of delete_frame outside of
898 HAVE_WINDOW_SYSTEM.
899
a4ef73c8
CY
9002009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
901
902 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
903
904 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
905 GTK builds.
906
944a300c
AS
9072009-12-07 Andreas Schwab <schwab@linux-m68k.org>
908
909 * unexelf.c (unexec): Don't search for .data twice.
910
022eef62
CY
9112009-12-05 Chong Yidong <cyd@stupidchicken.com>
912
426ac949
CY
913 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
914 if push failed.
915 (handle_line_prefix): Set avoid_cursor_p here. Check return value
916 of push_display_prop (Bug#5000).
917
022eef62
CY
918 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
919 value of font_list_entities (Bug#5085).
920
be95bee9
JB
9212009-12-04 Juanma Barranquero <lekktu@gmail.com>
922
923 Fix `string-to-number' to deal consistently with integers and floats.
924 * lread.c (isfloat_string): New argument ignore_trailing to accept all
925 trailing characters, not just whitespace.
926 (read1): Pass new arg 0 to keep old behavior.
927 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
928 trailing chars, as it is already done for integers. Doc fixes.
929 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
930
24c2d7ce
EZ
9312009-12-04 Eli Zaretskii <eliz@gnu.org>
932
0b5397c2
SM
933 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
934 Delete unused enumeration value.
24c2d7ce 935
7e694795
EZ
9362009-12-03 Eli Zaretskii <eliz@gnu.org>
937
938 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
939
84b31826
SM
9402009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
941
942 * process.c (Fmake_network_process): Fix up the tests for
943 "connectionless socket", so they DTRT for seqpacket sockets as well.
944
f00c449b
SM
9452009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
946
947 * process.c (Qseqpacket): New symbol.
948 (HAVE_SEQPACKET): New macro.
949 (Fmake_network_process): Accept new :type `seqpacket'.
950 (init_process): Add `seqpacket' feature when applicable.
951 (syms_of_process): Initialize Qseqpacket.
952
8096a0ff
YM
9532009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
954
955 * font.c (font_load_for_lface, font_open_by_name): Don't store name
956 if entity is Qnil.
957
3e0de07f
SM
9582009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
959
960 * print.c (print_preprocess): Preprocess the key_and_value table of
961 hashtables, even tho they're "hidden" (bug#5082).
962
abeafb2a
JD
9632009-11-29 Jan Djärv <jan.h.d@swipnet.se>
964
965 * frame.c (frame_make_pointer_invisible)
966 (frame_make_pointer_visible): Declare f before statements.
967
4bf47195
EZ
9682009-11-28 Eli Zaretskii <eliz@gnu.org>
969
970 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
971 omitted dependencies on lisp.h.
972
c525b3f2
JD
9732009-11-27 Jan Djärv <jan.h.d@swipnet.se>
974
ece2d4ed
JD
975 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
976 is NULL.
977
978 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
979
980 * frame.c (frame_make_pointer_invisible)
3e0de07f 981 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
982 frame.
983
c525b3f2
JD
984 * search.c (simple_search): Remove warning by making *p const.
985
2f00e299
DN
9862009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
987
988 * xdisp.c (power_letter): Remove duplicate const.
989
084b049b
JD
9902009-11-25 Jan Djärv <jan.h.d@swipnet.se>
991
a1fadc6f
JD
992 * term.c (delete_tty): Remove check for last terminal (bug#4970).
993
5ce6e4f4 994 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
995 defaults (bug #5025).
996
28259cac
SM
9972009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
998
999 * insdel.c (adjust_markers_for_delete): Move it in the
1000 right direction! (bug#4803)
1001
e8e14166
YM
10022009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1003
1004 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1005
1006 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1007
86677b58
GM
10082009-11-24 Glenn Morris <rgm@gnu.org>
1009
1010 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1011
581e51e8
JD
10122009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1013
cfc86c7a
JD
1014 * Makefile.in: Must create deps for ecrt0.o in its rule.
1015
581e51e8
JD
1016 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1017 because that is what Gtk+ font dialog understands.
1018
1019 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1020 of Fcopy_sequence.
1021 (font_open_by_name): Put name given into QCname for font-object returned.
1022
1023 * frame.c (x_set_font): Save original font name as frame parameter
1024 font-parameter.
1025
1026 * xsettings.c (set_default_xft_settings): New function.
1027 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1028 is found.
1029
8b264ecb
AS
10302009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1031
1032 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1033 searching backwards through multibyte buffer.
1034
872870b2
JD
10352009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1036
1037 * xterm.c: #include xgselect.h.
1038 (x_initialize): Call xgselect_initialize.
1039
1040 * xsettings.c (something_changedCB): C++ comments => C comments.
1041 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1042 does that now.
1043
1044 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1045 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1046 (scroll_bar_button_cb): Remove.
5ce6e4f4 1047 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1048 event.
1049 (xg_create_scroll_bar): Don't bind button-press-event and
1050 button-release-event.
1051
1052 * process.c: Include xgselect.h if defined (USE_GTK) ||
1053 defined (HAVE_GCONF).
1054 (wait_reading_process_output): Call xg_select for the same condition.
1055
1056 * xgselect.c (xg_select): New function to better integrate with
1057 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1058
1059 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1060
1061 * Makefile.in (XOBJ): Add xgselect.o.
1062
62a6e103
AS
10632009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1064
0b5397c2
SM
1065 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1066 Remove ignored second argument. All callers changed.
62a6e103
AS
1067 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1068 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1069 * xdisp.c (string_char_and_length): Likewise.
1070
b0ca0f33
DN
10712009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1072
1073 * xterm.c (x_new_font):
1074 * print.c (print_object):
1075 * cmds.c (Fself_insert_command): Move declarations before statements.
1076
dd5a6279
CY
10772009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1078
1079 * s/cygwin.h: Remove unneeded linker flags.
1080
4a8e097d
JD
10812009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1082
0d1d0d26
JD
1083 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1084
1085 * xsettings.h: Declare xsettings_get_system_font.
1086
1087 * xsettings.c (xsettings_get_system_font): New function.
1088 (init_gconf): No use initiating gconf unless we have Xft also.
1089 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1090 HAVE_GCONF.
1091
4a8e097d
JD
1092 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1093 add a blank entry so it doesn't collapse into nothing.
1094
8ab1650e
SM
10952009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1096
1097 * lread.c (Funintern): Comment out last change.
1098
82c602f0
RS
10992009-11-19 Richard Stallman <rms@gnu.org>
1100
1101 * lread.c (Funintern): Error if symbol is t or nil.
1102
87e32266
SM
11032009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1104
1105 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1106 representation of Lisp integers.
1107 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1108
1b9ac145
AS
11092009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1110
1111 * lisp.h: Remove declaration of Ffont_get_system_font.
1112 * xfns.c: Move include of "xsettings.h".
1113 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1114
dfb3c4c6
JD
11152009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1116
87e32266
SM
1117 * xsettings.c (something_changedCB, Ffont_get_system_font):
1118 Check use_system_font.
dfb3c4c6
JD
1119 (syms_of_xsettings): DEFVAR font-use-system-font.
1120
9370c1d8
AS
11212009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1122
25fe851a
AS
1123 * xfns.c (x_default_font_parameter): Remove dead assignment.
1124
9370c1d8
AS
1125 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1126
637fa988
JD
11272009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1128
87e32266 1129 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1130 not have FC_LCD_*. #define them if not there.
a6eb20d8 1131
87e32266 1132 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1133
637fa988
JD
1134 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1135
1136 * xterm.c (handle_one_xevent): Call xft_settings_event for
1137 ClientMessage, PropertyNotify and DestroyNotify.
1138 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1139 Call xsettings_initialize.
1140
1141 * xftfont.c (xftfont_fix_match): New function.
1142 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1143 Call xftfont_fix_match after XftFontMatch.
1144
1145 * xfont.c (xfont_driver): Initialize all members.
1146
87e32266
SM
1147 * xfns.c (x_default_font_parameter):
1148 Try font from Ffont_get_system_font.
637fa988
JD
1149 Do not get font from x_default_parameter if we got one from
1150 Ffont_get_system_font.
87e32266 1151 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1152
1153 * w32font.c (w32font_driver): Initialize all members.
1154
1155 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1156
1157 * lisp.h: Declare syms_of_xsettings.
1158
87e32266
SM
1159 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1160 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1161
1162 * ftfont.c (ftfont_filter_properties): New function.
1163
1164 * frame.c (x_set_font): Remove unused variable lval.
1165
87e32266 1166 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1167
1168 * font.c (font_put_extra): Don't return if val is nil, it means
1169 boolean option is off.
1170 (font_parse_fcname): Collect all extra properties in extra_props
1171 and call filter_properties for all drivers with extra_props and
1172 font as parameter.
87e32266
SM
1173 (font_open_entity): Do not use cache, it does not pick up new
1174 fontconfig settings like hinting.
637fa988
JD
1175 (font_load_for_lface): If spec had a name in it, store it in entity.
1176
1177 * emacs.c (main): Call syms_of_xsettings
1178
1179 * config.in: HAVE_GCONF is new.
1180
1181 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1182 xsettings.o is new.
1183
5a942932
KH
11842009-11-17 Kenichi Handa <handa@m17n.org>
1185
1186 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1187 back to the default font in case that no suitable font is found.
1188
b7c7a4d1
SM
11892009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1190
1191 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1192 Suggested by Chad Brown <yandros@mit.edu>.
1193 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1194
072f1e39
JD
11952009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1196
1197 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1198
5d1e70a2
AS
11992009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1200
87e32266 1201 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1202
a53cfbe5
JD
12032009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1204
473a99b7
JD
1205 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1206 has a parent.
1207
a53cfbe5 1208 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1209 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1210
1211 * config.in: Generated (AUTO_DEPEND).
1212
f04bb9b2
MA
12132009-11-13 Michael Albinus <michael.albinus@gmx.de>
1214
b7c7a4d1 1215 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1216 Vdbus_registered_functions_table, because it contains also
1217 properties. Fix docstring.
b7c7a4d1 1218 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1219
8f11f7ec
SM
12202009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1221
1222 * alloc.c (mark_object): Don't reprocess marked strings.
1223 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1224 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1225
8a605fe8
KH
12262009-11-13 Kenichi Handa <handa@m17n.org>
1227
8f11f7ec 1228 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1229 semantics of Vword_combining_categories.
1230 (Vword_combining_categories): Describe the slight change of the
1231 semantics.
1232
241c4680
EZ
12332009-11-13 Eli Zaretskii <eliz@gnu.org>
1234
1235 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1236
1237 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1238
5d58e44c
SM
12392009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1240
1241 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1242
5e13f9d3
JB
12432009-11-12 Juanma Barranquero <lekktu@gmail.com>
1244
1245 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1246
cf54c754
DR
12472009-11-11 David Reitter <david.reitter@gmail.com>
1248
1249 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1250 variables to fix 2009-11-09 change.
1251
a4ada374
DN
12522009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1253
91433552
DN
1254 * process.c (ifflag_def): Make flag_sym constant.
1255 (Fnetwork_interface_info): Use a constant pointer.
1256 (ifflag_table):
1257 * xfns.c (cursor_bits):
1258 * xdisp.c (power_letter):
1259 * termcap.c (speeds, esctab):
1260 * sysdep.c (baud_convert):
1261 * keyboard.c (lispy_accent_codes, modifier_names):
1262 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1263 (jpeg_format, tiff_format, gif_format, svg_format)
1264 (interlace_start, interlace_increment, gs_format):
1265 * gtkutil.c (separator_names):
1266 * fringe.c (swap_nibble):
1267 * fns.c (base64_value_to_char, base64_char_to_value):
1268 * fileio.c (make_temp_name_tbl):
1269 * coding.c (suffixes): Make constant.
1270
f4265f6c
DN
1271 * frame.c (make_initial_frame):
1272 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1273 build_string.
1274 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1275
04420943
DN
1276 * s/freebsd.h:
1277 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1278
0a5d24ae
DN
1279 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1280 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1281
a4ada374
DN
1282 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1283 * xterm.c (syms_of_xterm):
1284 * xfaces.c (syms_of_xfaces):
1285 * xdisp.c (syms_of_xdisp):
1286 * lread.c (syms_of_lread):
1287 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1288 build_string.
91433552 1289
a4ada374
DN
1290 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1291
af98fc7f
SM
12922009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1293
8ab1650e 1294 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1295
e90292a9
JD
12962009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1297
1298 * keyboard.h: Declare timer_check.
1299
1300 * keyboard.c (timer_check_2): New function that does what the old
1301 timer_check did.
1302 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1303 returned, i.e. don't return -1 with timers pending.
1304
1305 * process.c: Remove extern declaration of timer_check.
1306
1307 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1308 even if timer_check returned -1.
1309
af98fc7f
SM
1310 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1311 xg_dialog_data.
e90292a9
JD
1312 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1313 the event loop.
1314 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1315 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1316 Destroy the dialog after xg_dialog_run.
1317
045b83c0
SM
13182009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1319
1320 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1321
1fb99a3a
JD
13222009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1323
1324 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1325
04e452cb
JB
13262009-11-09 Juanma Barranquero <lekktu@gmail.com>
1327
1328 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1329
ef7417fd
SM
13302009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1331
1332 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1333 w32menu.c, and nsmenu.m.
1334 Simplify the obsolete case where position is nil.
1335 (cleanup_popup_menu): New function, moved from nsmenu.m.
1336 (struct skp): Remove slot `notreal'.
1337 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1338 adjust callers.
1339 (single_menu_item): Adjust call to parse_menu_item.
1340 (syms_of_menu): Defsubr x-popup-menu.
1341 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1342 (keymap_panes): Don't export any more.
1343 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1344 (xmenu_show): Declare.
1345 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1346 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1347 * keyboard.h (parse_menu_item): Update declaration.
1348 * xmenu.c (Fx_popup_menu): Remove.
1349 (syms_of_xmenu): Don't defsubr x-popup-menu.
1350 * w32menu.c (Fx_popup_menu): Remove.
1351 (syms_of_w32menu): Don't defsubr x-popup-menu.
1352 * nsmenu.m (cleanup_popup_menu): Remove.
1353 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1354 moved to menu.c's Fx_popup_menu.
1355 (Fx_popup_menu): Remove.
1356 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1357 menu_items (it's done in menu.c already).
1358
424d6179
SM
13592009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1360
1361 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1362 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1363
c0df13a6 13642009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1365
1366 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1367 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1368 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1369 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1370
2de9f71c
SM
13712009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1372
1373 Let integers use up 2 tags to give them one extra bit and thus double
1374 their range.
1375 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1376 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1377 New macros.
1378 (enum Lisp_Type): Use them. Give explicit values.
1379 (Lisp_Type_Limit): Remove.
1380 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1381 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1382 Pay attention to USE_2_TAGS_FOR_INTS.
1383 (INTEGERP): Use LISP_INT_TAG_P.
1384 * fns.c (internal_equal): Simplify the default case.
1385 (sxhash): Use case_Lisp_Int.
1386 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1387 any more.
1388 (Ftype_of): Use case_Lisp_Int.
1389 (store_symval_forwarding): Take into account the fact that Ints can
1390 now have more than one tag.
1391 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1392 buffer_slot_type_mismatch):
1393 * xfaces.c (face_attr_equal_p):
1394 * print.c (print_object):
1395 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1396 Use case_Lisp_Int.
1397
323637a2
EZ
13982009-11-06 Eli Zaretskii <eliz@gnu.org>
1399
7ac65b38
EZ
1400 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1401
323637a2
EZ
1402 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1403 warning.
1404
e511451f
JD
14052009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1406
1407 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1408
1409 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1410
1411 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1412 ButtonPressRelease and MotionNotify (bug#4870).
1413
5e2327cf
DN
14142009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1415
5adc433e
DN
1416 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1417
d67b4f80
DN
1418 * xterm.c (syms_of_xterm):
1419 * xselect.c (syms_of_xselect):
1420 * xmenu.c (syms_of_xmenu):
1421 * xfns.c (syms_of_xfns):
1422 * xfaces.c (syms_of_xfaces):
1423 * xdisp.c (syms_of_xdisp):
1424 * window.c (syms_of_window):
1425 * w32fns.c (syms_of_w32fns):
1426 * undo.c (syms_of_undo):
1427 * textprop.c (syms_of_textprop):
1428 * terminal.c (syms_of_terminal):
1429 * syntax.c (syms_of_syntax):
1430 * sound.c (syms_of_sound):
1431 * search.c (syms_of_search):
1432 * print.c (syms_of_print):
1433 * minibuf.c (syms_of_minibuf):
1434 * macros.c (syms_of_macros):
1435 * keymap.c (syms_of_keymap, initial_define_key)
1436 (initial_define_lispy_key):
1437 * keyboard.c (syms_of_keyboard):
1438 * insdel.c (syms_of_insdel):
1439 * image.c (syms_of_image):
1440 * fringe.c (syms_of_fringe):
1441 * frame.c (syms_of_frame):
1442 * fontset.c (syms_of_fontset):
1443 * fns.c (syms_of_fns):
1444 * fns.c (syms_of_fns):
1445 * fileio.c (syms_of_fileio):
1446 * fileio.c (syms_of_fileio):
1447 * eval.c (syms_of_eval):
1448 * doc.c (syms_of_doc):
1449 * dispnew.c (syms_of_display):
1450 * dired.c (syms_of_dired):
1451 * dbusbind.c (syms_of_dbusbind):
1452 * data.c (syms_of_data):
1453 * composite.c (syms_of_composite):
1454 * coding.c (syms_of_coding):
1455 * cmds.c (syms_of_cmds):
1456 * charset.c (define_charset_internal, syms_of_character):
1457 * ccl.c (syms_of_ccl):
1458 * category.c (syms_of_category, init_category_once):
1459 * casetab.c (syms_of_casetab):
1460 * casefiddle.c (syms_of_casefiddle):
1461 * callint.c (syms_of_callint):
1462 * bytecode.c (syms_of_bytecode):
1463 * buffer.c (keys_of_buffer, syms_of_buffer):
1464 * alloc.c (syms_of_alloc):
1465 * process.c (syms_of_process, init_process):
1466 * lread.c (syms_of_lread, init_obarray):
1467 * font.c (build_style_table):
1468 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1469 intern_c_string, calls to make_pure_string with
1470 make_pure_c_string. Use pure_cons instead of Fcons.
1471
5e2327cf
DN
1472 * process.c (socket_options): Make it const.
1473 (set_socket_option, init_process): Use a const pointer.
1474
1475 * lread.c (intern_c_string): New function.
1476 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1477 (defvar_int): Uset it. Make the name const char*.
1478
1479 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1480 (defvar_int): Update prototypes.
1481 (DEFUN, EXFUN): Support for prototypes is now required.
1482 (intern_c_string): New prototype.
1483 (struct Lisp_Subr): Make symbol_name constant.
1484
1485 * font.c (struct table_entry): Remove unused member. Make NAMES
1486 constant.
1487 (weight_table, slant_table, width_table): Make constant.
1488
1489 * emacs.c (struct standard_args): Make name and longname constant.
1490
1491 * character.h (DEFSYM): Use intern_c_string.
1492
a56eaaef
DN
14932009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1494
1495 * alloc.c (make_pure_c_string): New function.
1496
1497 * eval.c (Fautoload): Purecopy all arguments.
1498
f6a07420
KH
14992009-11-05 Kenichi Handa <handa@m17n.org>
1500
1501 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1502 the buffer in case of replace.
1503
5d28d4b1
DN
15042009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1505
1506 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1507
b349d111
SM
15082009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1509
d528b1ce
SM
1510 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1511 when applicable (bug#4851).
1512
b349d111
SM
1513 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1514 (P_): Support for prototypes is now required.
1515
c38eb027
CY
15162009-10-31 Chong Yidong <cyd@stupidchicken.com>
1517
1518 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1519 (Bug#4827).
1520
0405f8d9
EZ
15212009-10-30 Eli Zaretskii <eliz@gnu.org>
1522
d528b1ce 1523 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1524
ca0a881a
DN
15252009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1526
1527 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1528
d528b1ce
SM
1529 * lread.c (Fload): Purecopy the file name when building
1530 Vpreloaded_file_list.
ca0a881a 1531
47e0e0e4
JR
15322009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1533
1534 * w32fns.c (syms_of_w32fns): Change default value of
1535 w32-scroll-lock-modifier to nil. (Bug#2827)
1536
057bce6f
JB
15372009-10-26 Juanma Barranquero <lekktu@gmail.com>
1538
782a943e 1539 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1540
242bc74c
AS
15412009-10-26 Andreas Schwab <schwab@redhat.com>
1542
1543 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1544
522d013a
JB
15452009-10-26 Juanma Barranquero <lekktu@gmail.com>
1546
1547 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1548 For delta < 0, skip check that only makes sense when the mini-window
1549 is going to be enlarged. (Bug#4534)
1550
18060980
CY
15512009-10-25 Chong Yidong <cyd@stupidchicken.com>
1552
1553 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1554 string in menu maps (Bug#4471).
1555
fec8f0fe
CY
15562009-10-24 Chong Yidong <cyd@stupidchicken.com>
1557
1558 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1559 FRAME_NS_VIEW on terminal frames (Bug#4765).
1560
10d66ec0
AS
15612009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1562
1cae01f7
AS
1563 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1564 DBUS_TYPE_UINTnn separately to get proper sign extension.
1565
58a12889
AS
1566 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1567 can properly handle unsigned types.
d528b1ce 1568 (make_uid, make_gid): Remove.
58a12889 1569
987c9327
AS
1570 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1571 types again.
1572
522d013a 1573 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1574 (system_process_attributes): Likewise.
1575
905a9ed3
DN
15762009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1577
1578 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1579
1580 * eval.c (Fautoload): Purecopy the filename. Simplify.
1581
1582 * category.c (Fdefine_category): Purecopy docstring.
1583
a599b3e8
AS
15842009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1585
7b792fc9
AS
1586 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1587
a599b3e8
AS
1588 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1589
b35ac83e
CY
15902009-10-23 Chong Yidong <cyd@stupidchicken.com>
1591
1592 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1593 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1594 (Bug#4775).
1595
e8903e00
SM
15962009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1597
1598 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1599 (init_fileio_once):
1600 * lisp.h (init_fileio_once): Remove.
1601 * emacs.c (main): Don't call init_fileio_once.
1602
8f43cbf3
DN
16032009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1604
1605 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1606
26898943
AS
16072009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1608
1609 * doprnt.c (doprnt): Fix overflow check.
1610
5c646d5a
JD
16112009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1612
3132a7ea
JD
1613 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1614
5c646d5a
JD
1615 * xterm.h (x_wait_for_event): Declare it.
1616
1617 * xterm.c (pending_event_wait): New variable.
1618 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1619 see pending_event_wait.eventtype.
1620 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1621 (x_new_font): Call change_frame_size with new rows/columns before we
1622 try to resize the frame.
5c646d5a 1623 (x_wait_for_event): New function.
d528b1ce
SM
1624 (x_set_window_size_1): Don't change gravity unless change_gravity
1625 is set.
5c646d5a
JD
1626 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1627 don't change frame size, instead wait for the ConfigureNotify.
1628 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1629 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1630 (x_initialize): Initialize pending_event_wait.
1631
1632 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1633 size.
1634
1635 * widget.c (EmacsFrameSetValues): Add comment.
1636 (EmacsFrameSetCharSize): Just call x_set_window_size.
1637
1638 * gtkutil.c (xg_frame_set_char_size): Flush events and call
1639 x_wait_for_event.
d528b1ce 1640 (flush_and_sync): Remove again.
5c646d5a
JD
1641 (xg_get_font_name): Suggest monospace if no previous font is known.
1642
e9c1637d
SM
16432009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
1644
1645 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 1646 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 1647
5a72cccb
YM
16482009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1649
1650 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
1651 processing pending events when event is filtered for input method.
ab04798f 1652 (Bug#3681)
5a72cccb 1653
2629aa37
JB
16542009-10-20 Juanma Barranquero <lekktu@gmail.com>
1655
1656 * fns.c: Add #endif accidentally removed in previous change.
1657
c3417a74
DN
16582009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1659
1660 * fns.c: Remove code for unsupported system: MAC_OS.
1661 * image.c: Likewise. Include setjmp.h.
1662
9685cef2
JD
16632009-10-19 Jan Djärv <jan.h.d@swipnet.se>
1664
1665 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
1666 pixel -1 (bug #4742).
1667
d7306fe6
DN
16682009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
1669
019d2c4c
DN
1670 * process.c (create_pty): Remove conditionals for no longer
1671 supported systems: UNIPLUS and RTU.
1672
ee6bacd4
DN
1673 * xterm.c:
1674 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
1675
d7306fe6
DN
1676 * alloc.c: Do not define struct catchtag.
1677 * eval.c: Move struct catchtag definition ...
1678 * lisp.h: ... here.
1679
1680 * image.c: Move png.h #include earlier to avoid warnings.
1681
1682 * xterm.c:
1683 * xsmfns.c:
1684 * xselect.c:
1685 * xrdb.c:
1686 * xmenu.c:
1687 * xftfont.c:
1688 * xfont.c:
1689 * xfns.c:
1690 * xfaces.c:
1691 * xdisp.c:
1692 * window.c:
1693 * widget.c:
1694 * w32xfns.c:
1695 * w32uniscribe.c:
1696 * w32term.c:
1697 * w32select.c:
1698 * w32reg.c:
1699 * w32proc.c:
1700 * w32menu.c:
1701 * w32inevt.c:
1702 * w32heap.c:
1703 * w32font.c:
1704 * w32fns.c:
1705 * w32console.c:
1706 * w32.c:
1707 * w16select.c:
1708 * vm-limit.c:
1709 * unexsol.c:
1710 * unexec.c:
1711 * unexcw.c:
1712 * unexaix.c:
1713 * undo.c:
1714 * tparam.c:
1715 * textprop.c:
1716 * terminfo.c:
1717 * terminal.c:
1718 * termcap.c:
1719 * term.c:
1720 * syntax.c:
1721 * sound.c:
1722 * sheap.c:
1723 * search.c:
1724 * scroll.c:
1725 * region-cache.c:
1726 * regex.c:
1727 * ralloc.c:
1728 * process.c:
1729 * print.c:
b024548b
DN
1730 * nsterm.m:
1731 * nsselect.m:
1732 * nsmenu.m:
1733 * nsimage.m:
1734 * nsfont.m:
1735 * nsfns.m:
d7306fe6
DN
1736 * msdos.c:
1737 * minibuf.c:
1738 * menu.c:
1739 * marker.c:
1740 * macros.c:
1741 * keymap.c:
1742 * keyboard.c:
1743 * intervals.c:
1744 * insdel.c:
1745 * indent.c:
1746 * gtkutil.c:
1747 * ftxfont.c:
1748 * ftfont.c:
1749 * fringe.c:
1750 * frame.c:
1751 * fontset.c:
1752 * font.c:
1753 * fns.c:
1754 * floatfns.c:
1755 * filelock.c:
1756 * fileio.c:
1757 * emacs.c:
1758 * editfns.c:
1759 * dosfns.c:
1760 * doprnt.c:
1761 * doc.c:
1762 * dispnew.c:
1763 * dired.c:
1764 * dbusbind.c:
1765 * data.c:
1766 * composite.c:
1767 * coding.c:
1768 * cmds.c:
1769 * cm.c:
1770 * chartab.c:
1771 * charset.c:
1772 * character.c:
1773 * ccl.c:
1774 * category.c:
1775 * casetab.c:
1776 * casefiddle.c:
1777 * callproc.c:
1778 * callint.c:
1779 * bytecode.c:
1780 * buffer.c:
1781 * atimer.c: Include setjmp.h. (Bug#4643)
1782
fd5f21e6
SM
17832009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
1784
4c0354d7
SM
1785 Remove leftover table unibyte_to_multibyte_table.
1786 * character.c (unibyte_to_multibyte_table): Remove.
1787 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
1788 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
1789 * character.h (UNIBYTE_TO_CHAR): New macro.
1790 (MAKE_CHAR_MULTIBYTE): Use it.
1791 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1792 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1793 (message_dolog, set_message_1):
1794 * search.c (Freplace_match):
1795 * editfns.c (Fcompare_buffer_substrings):
1796 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1797 (concat):
1798 * insdel.c (copy_text, count_size_as_multibyte):
1799 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1800 * term.c (produce_glyphs):
1801 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1802 * regex.c (RE_CHAR_TO_MULTIBYTE):
1803 * cmds.c (internal_self_insert):
1804 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1805
fd5f21e6
SM
1806 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1807
4418646e
DN
18082009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1809
1810 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1811
35f5c1d2
JB
18122009-10-16 Juanma Barranquero <lekktu@gmail.com>
1813
1814 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1815
a0cd8f6b
AR
18162009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1817
1818 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1819 still needed under Tiger.
1820
1821 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1822
1823 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1824 __Apple__.
1825
1826 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1827
01a8d3fa
KH
18282009-10-15 Kenichi Handa <handa@m17n.org>
1829
1830 * print.c (print_object): Escape a symbol like "2E10" too.
1831
bf6c75c9 18322009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1833
1834 Cleanups and changes for 64-bit compile under Snow Leopard.
1835 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1836
1837 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1838
c5959062 1839 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1840 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1841 cast argument.
1842 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1843 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1844
1845 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1846
1847 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1848 where appropriate.
1849
1850 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1851 where appropriate.
6e4780c5
JB
1852 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1853 Use stringWithUTF8String.
bf6c75c9
AR
1854 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1855
6e4780c5
JB
1856 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1857 Add formal protocol mention to inheritance.
bf6c75c9
AR
1858 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1859
6e4780c5
JB
1860 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1861 Fix printf format.
bf6c75c9
AR
1862 (ns_query_color): Use CGFloat where appropriate.
1863 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 1864 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
1865 argument.
1866
3d87f118
AR
1867 * config.in (NS_HAVE_NSINTEGER): Drop.
1868
a95c8102
AR
1869 * dbusbind.c (dbus-method-return-internal)
1870 (dbus-method-error-internal): Use long format in printf, and cast
1871 argument.
1872
1873 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1874 in printf, and cast argument.
1875
6873acca 1876 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1877 cast argument.
1878
9ec6f100
GM
18792009-10-11 Glenn Morris <rgm@gnu.org>
1880
1881 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1882
5be883cd
JD
18832009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1884
1885 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1886 menu bar with a small width so it doesn't enlarge the frame.
1887
d7a39b51
JB
18882009-10-08 Juanma Barranquero <lekktu@gmail.com>
1889
1890 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1891
0c2b6f8e
GM
18922009-10-06 Glenn Morris <rgm@gnu.org>
1893
1894 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1895 SOME_MACHINE_LISP (this enters indirectly via DOC).
1896
e02131a2
EZ
18972009-10-05 Eli Zaretskii <eliz@gnu.org>
1898
1899 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1900
b4744254
EZ
19012009-10-04 Eli Zaretskii <eliz@gnu.org>
1902
1903 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1904 Doc fix.
1905
dbf64827
JB
19062009-10-03 Martin Rudalics <rudalics@gmx.at>
1907
1908 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1909
e9a0aef8
MA
19102009-10-02 Michael Albinus <michael.albinus@gmx.de>
1911
d528b1ce 1912 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1913 used anymore outside fileio.c.
1914
1915 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1916
64eb2b56
JB
19172009-10-01 Juanma Barranquero <lekktu@gmail.com>
1918
1919 * lisp.h (Qdelete_directory_internal):
1920 Declare, instead of Qdelete_directory.
1921
1922 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1923
9d28c33e
SM
19242009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1925
1926 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1927
9d8f3bd9
MA
19282009-10-01 Michael Albinus <michael.albinus@gmx.de>
1929
9d28c33e 1930 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1931 Fdelete_directory. It is not a command anymore. It has no file
1932 name handler.
1933
9694740b
SM
19342009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1935
1936 * xdisp.c (get_next_display_element): Use an enum in last change.
1937
748e162f
KH
19382009-09-28 Kenichi Handa <handa@m17n.org>
1939
9694740b 1940 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1941 unibyte_display_via_language_environment in handling
1942 Vnobreak_char_display.
1943
17efd58d
AR
19442009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1945
1946 * nsterm.h (ns_app_name): New extern variable.
1947
1948 * nsterm.m (ns_app_name): New variable.
1949 (ns_term_init): Set and use it.
1950 (ns_term_shutdown): Use it.
1951
1952 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1953 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1954
1955 * nsfns.m (ns_set_name_iconic, ns_set_name)
1956 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1957 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1958
9694740b
SM
1959 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1960 Remove double-casting in client_data comparison.
31c2d412 1961
3208cb35
YM
19622009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1963
1964 * keyboard.c (make_lispy_event): Remember last wheel direction.
1965 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1966
b7d552d6
GM
19672009-09-26 Glenn Morris <rgm@gnu.org>
1968
1969 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1970 internal.elc. Add term/pc-win.elc.
1971 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1972 term/x-win.elc.
1973 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1974 term/w32-win.elc.
1975 (NS_SUPPORT): New.
1976 (lisp): Add NS_SUPPORT.
1977 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1978
4ff670a8
DR
19792009-09-25 David Reitter <david.reitter@gmail.com>
1980
1981 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1982 on Mac OS X 10.6+ (bug#4513).
1983
feabfb6c
JB
19842009-09-24 Juanma Barranquero <lekktu@gmail.com>
1985
1986 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1987 some parts of Emacs code (like font selection) don't grok them.
1988 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1989
de59072a
AS
19902009-09-24 Andreas Schwab <schwab@redhat.com>
1991
1992 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1993
a489517b
JB
19942009-09-24 Juanma Barranquero <lekktu@gmail.com>
1995
1996 * dired.c (Fdirectory_files): Fix typo in docstring.
1997
0592970c
AR
19982009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1999
2000 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2001 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2002 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2003 under GNUstep.
2004 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2005
2006 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2007 glyph advancement.
2008
48e8a88b
AR
20092009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2010
2011 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2012 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2013
2014 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2015 deleted (bug #4492).
2016
e14f0a78
AR
2017 * nsfont.m (Vns_reg_to_script): New lisp variable.
2018 (syms_of_nsfont): Declare it.
2019 (ns_registry_to_script): New function.
2020 (ns_get_req_script): Call it.
2021 (ns_findfonts): Don't give up on non-unicode registry.
2022
2023 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2024
5b650faa
SM
20252009-09-20 Tom Tromey <tromey@redhat.com>
2026
2027 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2028 batch mode (bug#4228).
2029
a489517b 20302009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2031
2032 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2033 carefully. (Bug #4339)
0bae4e09 2034
fcfe06f3
CY
20352009-09-18 Chong Yidong <cyd@stupidchicken.com>
2036
d798ba87 2037 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2038
31642728
AR
20392009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2040
2041 * emacs.c (inhibit_x_resources): Update doc string for NS.
2042 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2043 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2044
2045 * nsterm.h (ns_no_defaults): Remove.
2046
2047 * nsterm.m (ns_no_defaults): Remove.
2048 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2049 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2050 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2051 don't update the NSWindow itself.
2052 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2053 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2054
2055 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2056 ns_use_qd_smoothing.
2057
2058 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2059 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2060 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2061 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2062
8686ac71
JB
20632009-09-17 Juanma Barranquero <lekktu@gmail.com>
2064
2065 * emacs.c (inhibit_x_resources): New variable.
2066 (main) [HAVE_NS]: Don't process --quick command line option.
2067 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2068
2069 * lisp.h (inhibit_x_resources): Declare it extern.
2070
2071 * w32reg.c (x_get_string_resource):
2072 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2073
e227ba05
EZ
20742009-09-17 Eli Zaretskii <eliz@gnu.org>
2075
362654a6
JB
2076 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2077 Add lisp/term/internal.elc.
e227ba05 2078
742d40e8
SM
20792009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2080
2081 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2082 (bug#4461).
2083
005bd5a2
DN
20842009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2085
2086 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2087
2088 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2089 (OBJECTS_MACHINE): Remove, unused.
2090
f9af9719
SM
20912009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2092
2093 * frame.c (x_get_resource_string): Remove unused.
2094
0307c7d2
JD
20952009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2096
2097 * xterm.c (x_new_font): Call change_frame_size before calling
2098 x_set_window_size, in case frame size won't change.
2099
2100 * frame.c (x_set_font): Remove dead code.
2101
428b13d6
SM
21022009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2103
2104 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2105
5766c380
SM
21062009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2107
2108 * lread.c (Fload): Don't output a message after loading an obsolete
2109 package any more (done in Lisp now).
2110
2fd0161b
CY
21112009-09-12 Chong Yidong <cyd@stupidchicken.com>
2112
2113 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2114
bc5e75b6
SM
21152009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2116
2117 * keymap.c (Fwhere_is_internal): Use nconc2.
2118
c31c985e
AM
21192009-09-11 Alan Mackenzie <acm@muc.de>
2120
2121 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2122 batch mode.
2123
78012bd2
AS
21242009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2125
2126 * xdisp.c (display_mode_element): Detect cycles.
2127
9d889332
SM
21282009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2129
2130 * keymap.c (where_is_internal): Don't erroneously return nil right after
2131 filling the cache.
2132 (where_is_internal_1): Fix up typo.
2133
7ab5d780
GM
21342009-09-11 Glenn Morris <rgm@gnu.org>
2135
2136 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2137 share a common doc-string.
2138
5238a749
SM
21392009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2140
66d77eda
SM
2141 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2142 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2143
5238a749
SM
2144 * keymap.c (QCadvertised_binding): New constant.
2145 (syms_of_keymap): Initialize it.
2146 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2147 if applicable.
2148
19f48442
SM
21492009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2150
50d4ba39
SM
2151 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2152 (parse_menu_item): Streamline since bindings are recomputed all the
2153 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2154 more and don't support lmenu's menu-alias any more either.
2155
a88a5372
SM
2156 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2157 (where_is_internal): Strip it down to only traverse the keymaps.
2158 Move the cache handling from Fwhere_is_internal to here.
2159 (Fwhere_is_internal): Move the handling of remapping and the choice of
2160 the best binding from where_is_internal to here.
2161 Unify the cached/noncached paths, so remapping is also handled
2162 correctly when the cache is used, and so the cache can be used to
2163 speed up remap-handling when applicable.
2164 Give preference to non-remapped bindings.
2165 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2166 non-remapped bindings.
2167 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2168 command remapping.
2169
19f48442
SM
2170 * xdisp.c (display_mode_element): Move list length limit from 50 to
2171 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2172
599498c3 21732009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2174
2175 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2176
f9b7b5ac
SM
21772009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2178
a53af587
JB
2179 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2180 (Bug#4334)
2181
f9b7b5ac
SM
2182 * keymap.c (where_is_internal): Filter out shadowed remappings.
2183 Assume that where_is_internal returns unshadowed bindings to simplify
2184 the code and get rid of the gotos. Use ASIZE.
2185
04f4b72d
JD
21862009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2187
4da146f2
JD
2188 * xterm.c (x_focus_changed): If we get a focusout and pointer
2189 is invisible, make it visible.
2190
04f4b72d
JD
2191 * xterm.h: Remove condition for declaration of
2192 x_*_window_to_frame.
2193
7cef7ce3
SM
21942009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2195
2196 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2197 initial terminal as well.
2198
a54fa5b7
JD
21992009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2200
2201 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2202 x_menubar_window_to_frame.
a54fa5b7
JD
2203
2204 * xterm.c: Remove declarations also in xterm.h
2205 (XTmouse_position): Do not return valid positions
2206 for clicks in the menubar and the toolbar for Gtk+.
2207
2208 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2209 if the widget for the event has the same top level as a frame,
2210 return the frame.
2211 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2212 internal windows, bug #4122.
2213 (x_non_menubar_window_to_frame): Remove.
2214
5a021dd0
GM
22152009-09-02 Glenn Morris <rgm@gnu.org>
2216
2217 * buffer.c (default-major-mode): Move most of the doc from here...
2218 (major-mode): ... to here.
2219
548fe2f3
NR
22202009-08-30 Nick Roberts <nickrob@snap.net.nz>
2221
2222 * process.c (wait_reading_process_output): Keep the descriptor
2223 when pty is used by a non-child process, e.g., in I/O buffer of
2224 GDB this allows inferior to be restarted.
2225
e0840eef
EZ
22262009-08-29 Eli Zaretskii <eliz@gnu.org>
2227
2228 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2229 both branches into one.
2230
82e98df4
SM
22312009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2232
2233 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2234 (main): Use enable-multibyte-characters rather than
2235 default-enable-multibyte-characters. Output a warning message when
2236 running a unibyte session.
2237
890617cb
YM
22382009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2239
2240 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2241 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2242 (copy_data_segment): Also copy __program_vars section.
2243 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2244 (dump_it) [LC_DYLD_INFO]: Use it.
2245
2246 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2247
e7adeadc
EZ
22482009-08-28 Eli Zaretskii <eliz@gnu.org>
2249
2250 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2251 $(SRC)/buildobj.h.
2252 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2253 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2254 $(SRC)/buildobj.h.
2255 (clean): Add buildobj.h.
2256
3ed8bbdc
TZ
22572009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2258
2259 * print.c (print_object): Set escapeflag to 1 when printing
2260 hashtable keys and values.
2261
155a6764
SM
22622009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2263
2264 * lread.c (read_integer): Use doubles (and potentially return a float
2265 number) as we do in string-to-number.
2266 (read1): Use strtol to read integers, signal errors on strtol's
2267 overflow and use floats if strtol's output is too large for
2268 Elisp integers.
2269
877610de
EZ
22702009-08-27 Eli Zaretskii <eliz@gnu.org>
2271
2272 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2273 (make-buildobj-SH): Fix last change.
2274 (SRC): Move to before where it's first used.
2275
ef73e7be
KH
22762009-08-27 Kenichi Handa <handa@m17n.org>
2277
550c8289
KH
2278 * process.c (send_process): Use encode_coding_object instead of
2279 encode_coding_string to perform eol-conversion even if the string
2280 is unibyte.
2281
60afa08d
KH
2282 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2283 character.
2284
ef73e7be 2285 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2286 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2287
7b3a82d7
DN
22882009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2289
5654bf63
DN
2290 * callproc.c (Fcall_process): Remove always true #if.
2291
7b3a82d7
DN
2292 * lisp.h: Replace #if 0 code for checking with text pointing to
2293 the --enable-checking configure flag.
2294
2295 * emacs.c (main): Mention the --enable-profiling configure flag
2296 instead of using CFLAGS.
2297
878bde49
KR
22982009-08-26 Ken Raeburn <raeburn@raeburn.org>
2299
2300 * Makefile.in (buildobj.h): New target.
2301 (doc.o): Depend on it.
2302 (temacs${EXEEXT}): Don't generate buildobj.lst.
2303 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2304 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2305 ($(BLD)/doc.$(O)): Depend on it.
2306 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2307 provided by Eli Zaretskii.)
2308 ($(TEMACS)): Don't generate buildobj.lst.
2309 * doc.c: Include buildobj.h.
2310 (buildobj): New static variable.
2311 (Fsnarf_documentation): Use it, instead of opening and reading
2312 buildobj.lst.
2313
1574224c
MA
23142009-08-25 Michael Albinus <michael.albinus@gmx.de>
2315
2316 * dbusbind.c (Fdbus_call_method)
2317 (Fdbus_call_method_asynchronously): Use English numeric format for
2318 timeout values in doc string.
2319
d9da2f45
KH
23202009-08-25 Kenichi Handa <handa@m17n.org>
2321
ef73e7be
KH
2322 * alloc.c (mark_char_table): New function.
2323 (mark_object): Use mark_char_table for a char-table.
2324
d9da2f45
KH
2325 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2326 (CHAR_TABLE_REF): Use it.
2327
c8edcc01
KR
23282009-08-23 Ken Raeburn <raeburn@raeburn.org>
2329
2330 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2331 before invoking the newly build emacs to check for load-path
2332 shadowing.
2333
7763401b
GM
23342009-08-22 Glenn Morris <rgm@gnu.org>
2335
2336 * Makefile.in (bootstrap_exe): New variable.
2337 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2338 Use ${bootstrap_exe}.
2339
729eadda
EZ
23402009-08-22 Eli Zaretskii <eliz@gnu.org>
2341
2342 * coding.h (encode_coding_string): Don't encode unibyte strings.
2343 (Bug#4047)
2344
eb4c6ace
MA
23452009-08-22 Michael Albinus <michael.albinus@gmx.de>
2346
2347 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2348
2349 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2350 intended as hotfix only.
2351 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2352
36e34d1b
AR
23532009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2354
2355 * nsterm.m (ns_get_color): Update documentation properly for last
2356 change, and clean up loose ends in the code left by it. Fix
2357 longstanding bug with 16-bit hex parsing, and add support for
2358 yet another X11 format (rgb:r/g/b) for compatibility.
2359 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2360 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2361
f983eb8a
SM
23622009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2363
2364 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2365
3f56d3c6
MA
23662009-08-20 Michael Albinus <michael.albinus@gmx.de>
2367
2368 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2369 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2370 (xd_initialize, xd_pending_messages): Check, whether
2371 $DBUS_SESSION_BUS_ADDRESS is set.
2372
fb641d68
YM
23732009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2374
2375 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2376
2377 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2378
cf59a374
GM
23792009-08-20 Glenn Morris <rgm@gnu.org>
2380
2381 * emacs.c (system-type): Doc fix.
2382
1373f3be
SM
23832009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2384
2385 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2386 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2387
058ed861
MA
23882009-08-18 Michael Albinus <michael.albinus@gmx.de>
2389
1373f3be
SM
2390 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2391 New functions.
058ed861
MA
2392 (xd_initialize): Revert change from 2009-08-16.
2393
563a866e 23942009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2395
2396 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2397 font-group vector, return nil.
5fc05db0 2398
e42bdf01
CY
23992009-08-17 Chong Yidong <cyd@stupidchicken.com>
2400
2401 * process.c (status_notify): Don't perform redisplay.
2402 (Fdelete_process, list_processes_1, process_send_signal):
2403 Expliticly perform redisplay.
2404 (wait_reading_process_output): Always check process status, but
2405 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2406
4230ab74
KR
24072009-08-17 Ken Raeburn <raeburn@raeburn.org>
2408
1373f3be 2409 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2410 (XFLOAT_INIT): New macro for storing a float value.
2411 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2412 * fns.c (sxhash): Copy out the value of a float in order to
2413 examine its bytes.
2414 * dbusbind.c (xd_append_arg): Likewise.
2415
4230ab74
KR
2416 * emacs.c (main): Don't call syms_of_data twice.
2417
a0645cdd
MA
24182009-08-16 Michael Albinus <michael.albinus@gmx.de>
2419
2420 * dbusbind.c (xd_initialize): Add connection file descriptor to
2421 input_wait_mask, in order to let select() detect, whether a new
2422 message has been arrived.
ca4f31ea 2423 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2424
485db0ba
MA
24252009-08-15 Michael Albinus <michael.albinus@gmx.de>
2426
1373f3be
SM
2427 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2428 New functions.
485db0ba
MA
2429
2430 * lisp.h (xd_pending_messages): Declare.
2431
2432 * keyboard.c (readable_events): Call xd_pending_messages.
2433
b5b98ff4
CY
24342009-08-15 Chong Yidong <cyd@stupidchicken.com>
2435
1373f3be 2436 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2437
f8354c6e
CY
2438 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2439
b5b98ff4
CY
2440 * buffer.c (set_buffer_internal_1)
2441 (swap_out_buffer_local_variables): Check for unbound local
2442 variables (Bug#4138).
2443
8b9fc636
EZ
24442009-08-14 Eli Zaretskii <eliz@gnu.org>
2445
2446 * process.c (create_pty): Fix last change.
2447
ce959360
CY
24482009-08-13 Chong Yidong <cyd@stupidchicken.com>
2449
2450 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2451 (xbm_load_image): Caller changed.
64b807c9 2452 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2453
c7baf7e9
NR
24542009-08-13 Nick Roberts <nickrob@snap.net.nz>
2455
2456 * process.c (create_pty): New function.
2457 (Fstart_process): Use it to allow Emacs to just associate a pty
2458 with the buffer. See associated change in gdb-mi.el.
2459 (list_processes_1): Deal with no program name.
2460 (start_process_unwind): Use pid == -2 to mean no process.
2461
1ac9108a
SM
24622009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2463
2464 * cmds.c (nonundocount): New global variable.
2465 (keys_of_cmds): Initialize it.
2466 (Fself_insert_command): Use it to combine upto 20 sequential chars
2467 into a single undo entry, just like the Qself_insert_command code in
2468 keyboard.c does.
2469 Call frame_make_pointer_invisible, also like the Qself_insert_command
2470 code in keyboard.c does.
2471 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2472 than its own local replacement for it.
2473
e267324c
KR
24742009-08-10 Ken Raeburn <raeburn@raeburn.org>
2475
1ac9108a 2476 * fns.c (concat): Don't re-set string length to its current value.
77437343 2477
1ac9108a
SM
2478 * coding.h (decode_coding_string, encode_coding_string):
2479 Use SBYTES macro.
f0bed503 2480
1ac9108a 2481 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2482 (doprnt): Merge with doprnt1, discarding lispstrings code.
2483 * lisp.h (doprnt_lisp): Don't declare.
2484
416e006d
JL
24852009-08-07 Juri Linkov <juri@jurta.org>
2486
2487 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2488
6f7d5780
DN
24892009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2490
2491 * print.c (syms_of_print): Undo previous change.
2492
f19a0f5b
TZ
24932009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2494
2495 * lread.c (read1, syms_of_lread): Read hashtables back from the
2496 readable format.
2497
2498 * print.c (print_preprocess, print_object): Print hashtables fully
2499 and readably.
2500 (syms_of_print): Provide 'hashtable-print-readable.
2501
b9173dc2
AR
25022009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2503
2504 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2505 no family set.
2506 (nsfont_open): Handle case when entity has no family.
2507
1586503c
AR
25082009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2509
2510 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2511 element, not a list, for match case.
2512
087048cd
KH
25132009-07-28 Kenichi Handa <handa@m17n.org>
2514
2515 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2516 rigidly.
2517
2518 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2519 font_parse_xlfd. Check font properties more rigidly.
2520
780c2506
DN
25212009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2522
31fd7c5c
JB
2523 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2524 bsd-common.h.
780c2506 2525
a8c0cc18
KH
25262009-07-27 Kenichi Handa <handa@m17n.org>
2527
2528 * xfaces.c (face_with_height): Call font_clear_prop.
2529
4fbe2306
CY
25302009-07-26 Chong Yidong <cyd@stupidchicken.com>
2531
111d9af3
CY
2532 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2533
2534 * xterm.c (x_term_init): Use Qx.
2535
4fbe2306
CY
2536 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2537
1ac9108a 2538 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2539 (ns_get_color): Revert 2009-07-16 change.
2540
beb0b7f9
EZ
25412009-07-25 Eli Zaretskii <eliz@gnu.org>
2542
2543 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2544 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2545
2baf5e76
KR
25462009-07-25 Ken Raeburn <raeburn@raeburn.org>
2547
1ac9108a
SM
2548 * coding.h (decode_coding_string, encode_coding_string):
2549 Use SCHARS macro.
8890e5f5 2550
2baf5e76 2551 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2552 (load_depth): Delete.
2baf5e76
KR
2553 (Qload_in_progress): New variable.
2554 (load_unwind): Don't reference load_depth or load_in_progress.
2555 (Fload): Likewise; specbind Qload_in_progress instead.
2556 (init_lread): Don't initialize load_depth.
2557 (syms_of_lread): Initialize and protect Qload_in_progress.
2558
1395c6f5
AR
25592009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2560
2561 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2562
4e2f36cf
AR
25632009-07-23 Yavor Doganov <yavor@gnu.org>
2564
2565 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2566
5dd9a6f7
AR
25672009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2568
2569 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2570 Bugs 3792, 3720, 2402.
2571 (ns_lookup_indexed_color): Check for bad index.
2572 (ns_index_color): Init unused slot to 0.
2573 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2574 Bug 3714, possibly 3082.
5dd9a6f7 2575
c902b920
JR
25762009-07-22 Jason Rumney <jasonr@gnu.org>
2577
1ac9108a
SM
2578 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2579 Position IME window at cursor (Bug#2570).
c902b920
JR
2580 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2581 (globals_of_w32fns): Dynamically load functions required above.
2582
2583 * w32term.c (w32_draw_window_cursor): Send message to reposition
2584 any IME window.
2585
090101cf
CY
25862009-07-21 Chong Yidong <cyd@stupidchicken.com>
2587
2588 * fileio.c: Revert 2009-07-16 changes.
2589 (Vauto_save_include_big_deletions): New variable.
2590 (Fdo_auto_save): Disable auto-save only if
2591 auto-save-include-big-deletions is nil.
2592
e6583e3d
CY
25932009-07-21 Chong Yidong <cyd@stupidchicken.com>
2594
2595 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2596 the overflowed pixels into account (Bug#3879).
2597
ece435a5
KR
25982009-07-21 Ken Raeburn <raeburn@raeburn.org>
2599
2600 * lread.c (load_depth): New variable.
2601 (Fload, load_unwind, init_lread): Set it to the load recursion
2602 depth; set load_in_progress as a simple boolean based on the
2603 current load_depth. (Bug#3892)
2604
40b2d973
AR
26052009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2606
2607 * nsfont.m (ns_has_attribute): Remove.
2608 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2609
10be7e0d
JL
26102009-07-18 Juri Linkov <juri@jurta.org>
2611
2612 * process.c (Fset_process_query_on_exit_flag): Mention killing
2613 a buffer in docstring.
2614
fa055055
KH
26152009-07-17 Kenichi Handa <handa@m17n.org>
2616
2617 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2618
042f7b69
YM
26192009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2620
2621 * nsfns.m (Fns_set_alpha): Remove function.
2622 (syms_of_nsfns): Don't defsubr it.
2623
2624 * nsterm.m (ns_get_color): Remove incompatible color formats.
2625 (ns_color_to_lisp): Generate #rrggbb color format string.
2626
4be941e3
RS
26272009-07-16 Richard Stallman <rms@gnu.org>
2628
2629 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2630 (Fset_buffer_auto_saved): Handle save_length = -2.
2631
4e6b227d
CY
26322009-07-16 Chong Yidong <cyd@stupidchicken.com>
2633
2634 * xterm.c (Qx_gtk_map_stock): New var.
2635
2636 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
2637 of calling intern each time.
2638
a1856973
YM
26392009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2640
2641 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
2642 does tiling.
2643
2644 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
2645
497e54d8
KH
26462009-07-14 Kenichi Handa <handa@m17n.org>
2647
72d36834
KH
2648 * font.c (font_vconcat_entity_vectors): New function.
2649 (struct font_sort_data): New member font_driver_preference.
2650 (font_compare): Check font_driver_preference.
2651 (font_sort_entities): The format of the first argument changed.
2652 (font_delete_unmatched): Likewise.
2653 (font_list_entities): The return type changed.
2654 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
2655 (font_find_for_lface): Adjuste for the above changes.
2656 Don't suppress the checking of C even if the repertory supports it.
2657 (Flist_fonts): Adjust for the above changes.
72d36834 2658
1ac9108a
SM
2659 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
2660 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
2661 Reject a font who has adstyle property that is different from a
2662 langname derived from registry property.
1ac9108a 2663 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 2664
b6046155
EZ
26652009-07-13 Eli Zaretskii <eliz@gnu.org>
2666
2667 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
2668 local copy of dirfilename.
2669
fb6b6049
KH
26702009-07-13 Kenichi Handa <handa@m17n.org>
2671
e2402a5e
KH
2672 * chartab.c (sub_char_table_ref_and_range): Fix the range check
2673 against max_char.
2674
fb6b6049
KH
2675 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
2676 calling XSYMBOL (sym).
2677
65156807
EZ
26782009-07-11 Eli Zaretskii <eliz@gnu.org>
2679
1ac9108a
SM
2680 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
2681 New function.
2682 (directory_files_internal) [WINDOWSNT]:
2683 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
2684 the filesystem of the directory is fast or slow.
2685
2686 * w32.c (logon_network_drive): Don't assume PATH is an absolute
2687 file name.
2688 (is_slow_fs): New function.
2689 (stat): Use it to determine whether to issue more system calls to
2690 get accurate file attributes, when w32-get-true-file-attributes is
2691 `local'.
2692
e0ab5fcf
JD
26932009-07-10 Jan Djärv <jan.h.d@swipnet.se>
2694
2695 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 2696 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
2697 parameter font-parameter as default to the font dialog.
2698
784ceded
KH
26992009-07-10 Kenichi Handa <handa@m17n.org>
2700
2701 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
2702
fb8edc0b
EZ
27032009-07-09 Eli Zaretskii <eliz@gnu.org>
2704
1ac9108a 2705 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 2706
fb8edc0b
EZ
2707 * w32.c (stat): Treat UNC file names as residing on remote
2708 drives. (Bug#3542)
2709
635c75b1
KH
27102009-07-09 Kenichi Handa <handa@m17n.org>
2711
2712 * fontset.c (fontset_find_font): Fix previous change.
2713
c1d5ce94
MA
27142009-07-08 Michael Albinus <michael.albinus@gmx.de>
2715
2716 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
2717 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
2718 error flag.
2719
edb61b39
KH
27202009-07-08 Kenichi Handa <handa@m17n.org>
2721
374bf7e4
KH
2722 * fontset.c (fontset_find_font): Fix the logic of handling
2723 charset_matched.
2724 (font_for_char): Delete unused var.
2725 (generate_ascii_font_name): Delete it.
2726
edb61b39
KH
2727 * coding.h (JIS_TO_SJIS2): Fix the code range check.
2728
2729 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
2730 (encode_coding_sjis): Fix the code range check.
2731
0f3f018c
CY
27322009-07-07 Chong Yidong <cyd@stupidchicken.com>
2733
2734 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
2735 (Fexpand_file_name): Copy string data properly (Bug#3772).
2736
fcaf6f3a
JD
27372009-07-07 Jan Djärv <jan.h.d@swipnet.se>
2738
2739 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
2740 first MapNotify.
2741
6809ca75
KH
27422009-07-07 Kenichi Handa <handa@m17n.org>
2743
2744 * character.h (unibyte_has_multibyte_table): Delete extern.
2745 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
2746
2747 * charset.c (Fset_charset_priority): Update charset_unibyte.
2748 (syms_of_charset): Initialize charset_unibyte.
2749
2750 * character.c (unibyte_has_multibyte_table): Delete it.
2751 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
2752 charset_unibyte.
2753 (multibyte_char_to_unibyte_safe): Likewise.
2754 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
2755
1ac9108a 2756 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
2757 (x_produce_glyphs): Likewise.
2758
2759 * .gdbinit (xcharset): Fix the treating $arg0.
2760
ad9e2d54
EZ
27612009-07-04 Eli Zaretskii <eliz@gnu.org>
2762
2763 Emulation of `getloadavg' on MS-Windows.
2764 * w32.c: Include float.h
2765 (g_b_init_get_native_system_info, g_b_init_get_system_times)
2766 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
2767 (get_native_system_info, get_system_times): New functions.
2768 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
2769 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
2770 (globals_of_w32): Initialize g_b_init_get_native_system_info,
2771 g_b_init_get_system_times, and num_of_processors.
2772
0a3472c7
JR
27732009-07-03 Jason Rumney <jasonr@gnu.org>
2774
2775 * w32term.c (w32_initialize): Use standard types.
2776
80904120
EZ
27772009-07-03 Eli Zaretskii <eliz@gnu.org>
2778
2779 * dired.c (Ffile_attributes): Decode user and group names by the
2780 locale's encoding. (Bug#3443)
2781
6978862d
DN
27822009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
2783
f8d23104
DN
2784 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
2785 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
2786
2787 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
2788
2789 * term.c (init_tty): Remove spurious #ifdef.
2790
6978862d
DN
2791 * m/mips.h: Mention this file is also used for netbsd.
2792 * m/pmax.h: Remove file.
2793
e044e4fc
JD
27942009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2795
2796 * xterm.h (struct x_display_info): Add invisible_cursor.
2797 (struct x_output): Add current_cursor.
2798
2799 * xterm.c (XTtoggle_invisible_pointer): New function.
2800 (x_define_frame_cursor): Don't define cursor if invisible or the
2801 same as before. Set current_cursor.
2802 (x_create_terminal): Set toggle_invisible_pointer_hook.
2803
2804 * xfns.c (make_invisible_cursor): New function.
2805 (x_set_mouse_color): Call make_invisible_cursor.
2806 Set current_cursor.
2807 (x_window): Set current_cursor.
2808
2809 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2810
2811 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2812 inserting a character.
2813 (read_avail_input): Call frame_make_pointer_visible.
2814
2815 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2816 (frame_make_pointer_invisible, frame_make_pointer_visible):
2817 New functions.
e044e4fc
JD
2818 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2819
2820 * frame.h: Declare frame_make_pointer_invisible and
2821 frame_make_pointer_visible.
2822 (struct frame): Add pointer_invisible.
2823
574c8efa
JD
28242009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2825
7b507248
JD
2826 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2827 frame isn't visible.
2828 (xg_frame_resized): If width/height is -1, get size of window
2829 from X server.
2830
2831 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2832 for MapNotify.
2833
835bdaa7 2834 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2835 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2836 (flush_and_sync): Reintroduce.
574c8efa 2837
3f1c6666 28382009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2839
31fd7c5c 2840 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2841
2842 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2843 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2844
2845 * frame.h: Declare Qsticky.
2846
cad9ef74
JD
2847 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2848
2849 * nsfns.m (ns_frame_parm_handlers): Ditto.
2850
2851 * frame.c: Declare Qsticky.
2852 (frame_parms): Add sticky.
2853
2854 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2855
2856 * xterm.h: Declare x_set_sticky.
2857
2858 * xterm.c (x_set_sticky): New function.
2859
69b16610
JD
2860 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2861 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2862 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2863
2864 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2865
2866 * frame.c: Qmaximized is new.
2867 (x_set_frame_parameters): Do not handle fullscreen specially.
2868 Only set width and height if explicitly set.
2869 (x_set_fullscreen): Handle Qmaximized.
2870 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2871 (syms_of_frame): Initialize Qmaximized.
2872
1ac9108a
SM
2873 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2874 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2875
2876 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2877 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2878 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2879 set gravity to NorthWestGravity when USE_GTK.
2880 (set_wm_state): New function.
31fd7c5c 2881 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2882 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2883 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2884 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2885 to x_real_positions and x_fullscreen_adjust.
2886
2887 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2888 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2889 flush_and_sync.
2890 (xg_height_changed): New function.
2891 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2892 and gtk_window_set_policy. Set frame gravity after parsing the
2893 geometry string.
3f1c6666
JD
2894 (xg_update_frame_menubar, free_frame_menubar)
2895 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2896 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2897 Remove calls to xg_frame_set_char_size.
2898
fd503d99
KH
28992009-07-01 Kenichi Handa <handa@m17n.org>
2900
2901 * keyboard.c (decode_keyboard_code): New function.
2902 (tty_read_avail_input): Decode the input bytes if necessary.
2903
1ac9108a
SM
2904 * coding.c (setup_coding_system):
2905 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2906 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2907 use Qno_conversion.
2908
24ed93fb
YM
29092009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2910
2911 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2912
99061dfc
CY
29132009-06-30 Chong Yidong <cyd@stupidchicken.com>
2914
1ac9108a 2915 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2916
ff90fbde
JR
29172009-06-30 Jason Rumney <jasonr@gnu.org>
2918
2919 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2920 is already loaded.
2921 Set user model ID if supported (bug#1849).
2922
5f445726
JM
29232009-06-29 Jim Meyering <meyering@redhat.com>
2924
2925 Remove useless if-before-xfree test.
2926 * nsfont.m (nsfont_close): Remove useless test.
2927 * term.c (delete_tty): Likewise.
2928 * w32.c (system_process_attributes): Likewise.
2929 * w32font.c (w32font_close): Likewise.
2930 * xfaces.c (x_free_gc): Likewise.
2931 * xselect.c (buffer): Likewise.
2932
b9607587
AS
29332009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2934
2935 * process.c (send_process): Keep decoded string in a local
2936 variable and protect it from GC. (Bug#3521)
2937
89ba96f4
EZ
29382009-06-28 Eli Zaretskii <eliz@gnu.org>
2939
2940 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2941 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2942
098a1589
CY
29432009-06-28 Chong Yidong <cyd@stupidchicken.com>
2944
485422be
CY
2945 * xdisp.c (start_display, handle_face_prop)
2946 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2947 (redisplay_window, try_window_id, produce_image_glyph):
2948 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2949
098a1589
CY
2950 * xterm.c (x_update_window_begin, x_new_focus_frame)
2951 (x_scroll_bar_handle_click, handle_one_xevent)
2952 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2953 (x_make_frame_visible, x_make_frame_invisible)
2954 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2955 code chunks that are now obsolete.
2956
78c38319
MA
29572009-06-28 Michael Albinus <michael.albinus@gmx.de>
2958
2959 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2960 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2961 for hours, when optimzation is enabled.
2962 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2963 (xd_read_message): Make them static.
2964
4189ed40
CY
29652009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2966
2967 * term.c (turn_on_face): Allow simultaneously bold and dim
2968 terminal faces (Bug#3530).
2969
cd9b5e16
CY
29702009-06-27 Chong Yidong <cyd@stupidchicken.com>
2971
4e23bedb
CY
2972 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2973
cd9b5e16
CY
2974 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2975 truncation glyphs (Bug#3686).
2976
07cc3c35
GM
29772009-06-27 Glenn Morris <rgm@gnu.org>
2978
2979 * m/pmax.h: Restore file, with only netbsd portions.
2980
31fd7c5c 29812009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2982
cd9b5e16 2983 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2984
42d4a64f
KH
29852009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2986
2987 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2988 the arg FORCE_SYMBOL.
2989
930fe55b 29902009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2991
2992 * fontset.c (fontset_find_font): When a usable rfont_def is found
2993 in a fallback font-group, make it the first element of the group.
2994
57ebc3fd
CY
29952009-06-24 Chong Yidong <cyd@stupidchicken.com>
2996
2997 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2998
f084f942
KH
29992009-06-24 Kenichi Handa <handa@m17n.org>
3000
3001 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3002 set for C.
3003 (fontset_font): Record the availability of a font for C both in
3004 the realized fontsets of the current one and the default one.
3005
2f686c87
DN
30062009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3007
3008 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3009 conditional, it is always defined on AIX.
3010
666e158e
MB
30112009-06-23 Miles Bader <miles@gnu.org>
3012
3013 * window.c (Vrecenter_redisplay): New variable.
3014 (syms_of_window): Initialize it.
3015 (Qtty): New extern declaration.
3016 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3017
c6da7cd2
JM
30182009-06-23 Jim Meyering <meyering@redhat.com>
3019
1ac9108a
SM
3020 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3021 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3022 pointer dereferences are guaranteed to be valid.
c6da7cd2 3023
678dca3d
KH
30242009-06-23 Kenichi Handa <handa@m17n.org>
3025
74d75424
KH
3026 * emacs.c (main): Call init_font ().
3027
3028 * font.h (Vfont_log): Extern it.
3029 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3030
3031 * font.c (font_sort_entities, font_list_entities)
3032 (font_matching_entity, font_open_entity)
3033 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3034 (Vfont_log): Delete static.
3035 (font_log_env_checked): Delete this variable.
3036 (font_add_log): Don't check font_log_env_checked.
3037 (font_deferred_log): Check Vfont_log.
3038 (init_font): New function.
3039
678dca3d
KH
3040 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3041
3042 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3043
3044 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3045
3046 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3047
3048 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3049 (face_for_char): Don't call font_deferred_log here.
3050 (font_for_char): Likewise.
3051
8a668709
CY
30522009-06-22 Chong Yidong <cyd@stupidchicken.com>
3053
9a01ee33
CY
3054 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3055 rather than its background_width for drawing the overline and
3056 underline (Bug#489).
3057
3058 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3059 rather than its background_width for drawing the overline and
3060 underline (Bug#489).
ec7c9926
CY
3061 (xg_default_icon_file): New variable.
3062 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3063 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3064
8a668709
CY
3065 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3066 (load_overlay_strings): Remove externs.
3067 (fast_find_position): Function deleted.
3068 (mouse_face_from_buffer_pos): New function, based on
3069 fast_find_position. Correctly handle before-strings,
3070 display-strings, and after-strings (Bug#1220).
3071 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3072
4d4c02d8
CY
30732009-06-21 Chong Yidong <cyd@stupidchicken.com>
3074
1ac9108a 3075 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3076 (move_it_in_display_line_to, move_it_in_display_line_to)
3077 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3078
70243478
CY
30792009-06-21 Chong Yidong <cyd@stupidchicken.com>
3080
3081 * Branch for 23.1.
3082
13087e59
JR
30832009-06-21 Jason Rumney <jasonr@gnu.org>
3084
3085 * w32term.c (keyboard_codepage): New static variable.
3086 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3087 (w32_read_socket) [WM_CHAR]: Use it to decode character
3088 input (bug#3237).
3089 (w32_initialize): Initialize it.
3090 (codepage_for_locale): New function.
3091
4735b74e
KR
30922009-06-20 Ken Raeburn <raeburn@raeburn.org>
3093
3094 * process.c (status_message): Pass Faset index argument as a lisp
3095 object, so as to work with USE_LISP_UNION_TYPE.
3096
0e727afa
YM
30972009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3098
3099 * coding.c (Ffind_coding_systems_region_internal):
3100 Cache checked characters.
3101
cf299835
KH
31022009-06-18 Kenichi Handa <handa@m17n.org>
3103
1ac9108a 3104 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3105
90f20d94
AS
31062009-06-18 Andreas Schwab <aschwab@redhat.com>
3107
3108 * xdisp.c (redisplay_internal): Check that the frame is still
3109 live after redisplay of its windows.
3110 (redisplay_windows): Check that the window is still live.
3111
7f1faf1c
KH
31122009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3113
3114 * coding.c (detect_coding_utf_16): Fix previous change.
3115
cc13543e
KH
31162009-06-16 Kenichi Handa <handa@m17n.org>
3117
3118 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3119 UTF-16 by checking the dispersion of Eth and Oth bytes.
3120
977b85f4
AS
31212009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3122
3123 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3124
66bd43d1
KH
31252009-06-15 Kenichi Handa <handa@m17n.org>
3126
3127 * process.c (status_message): Fix previous change. Be sure to
3128 decode a localized string.
3129
cb5ca9c5
YM
31302009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3131
3132 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3133 add comment explaining why.
3134
ec7709ba 31352009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3136
ec7709ba 3137 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3138
4b7f335c
AR
31392009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3140
3141 * nsfont.m (ns_attribute_value): Remove.
3142 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3143 (ns_has_attribute): Shrink the normal range.
3144 (ns_findfonts): Don't worry about requested spec in determining
3145 need for synthItal.
e41820ee 3146 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3147
73b26103
SZ
31482009-06-14 Seiji Zenitani <zenitani@mac.com>
3149
3150 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3151
5753e4da
KH
31522009-06-11 Kenichi Handa <handa@m17n.org>
3153
3154 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3155 overhang for the static composition case.
3156
3561b671
KH
31572009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3158
5753e4da
KH
3159 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3160 overhang for the automatic composition case.
3161
3561b671
KH
3162 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3163 composition case.
3164
852bbd41
CY
31652009-06-10 Chong Yidong <cyd@stupidchicken.com>
3166
3167 * xdisp.c (get_next_display_element): When handling wrap-prefix
3168 and line-prefix, treat \n as a control character (bug#3502).
3169
9903d1e6
KH
31702009-06-10 Kenichi Handa <handa@m17n.org>
3171
3172 * font.c (font_parse_family_registry): Fix for one-char foundry.
3173 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3174
0bcbaaaa
CY
31752009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3176
3177 * process.c (status_message): Fix handling of multibyte signal
3178 string (Bug#3499).
3179
40aa3f13
JM
31802009-06-09 Jim Meyering <meyering@redhat.com>
3181
1f80c7e2
CY
3182 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3183 color name is missing.
40aa3f13 3184
72d51285
KH
31852009-06-09 Kenichi Handa <handa@m17n.org>
3186
3187 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3188 FROM-CODE and TO-CODE are codepoints of CHARSET.
3189
c1d04d84
AR
31902009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3191
3192 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3193
31942009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3195
3196 Changes to support :script/:lang/:otf in NS font driver.
3197 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3198 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3199 indicate not part of font driver interface, and change callers.
3200 (ns_get_family): Remove pointless null check.
3201 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3202 ns_spec_to_descriptor, ns_descriptor_to_entity.
3203 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3204 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3205 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3206 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3207 (ns_get_req_script, ns_accumulate_script_ranges)
3208 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3209 New functions.
3210 (nsfont_list, nsfont_match): Use ns_findfonts.
3211 (nsfont_open): Use font descriptor instead of traits.
3212 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3213 (dump_glyphstring): Rename to ns_dump_glyphstring.
3214
c7eb9816
AR
3215 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3216
c1d04d84
AR
3217 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3218
3219 * fontset.c (fontset_from_font): Remove NS-specific code.
3220
ec7709ba 32212009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3222
3223 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3224 nonactive windows.
3225
31fd7c5c 32262009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3227
1ac9108a 3228 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3229
68852c13 32302009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3231
3232 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3233
6756cd1d
CY
32342009-06-07 Chong Yidong <cyd@stupidchicken.com>
3235
3236 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3237 account for the overflowing of newlines into the last glyph on the
3238 display line (Bug#3482).
3239
28bf482a
DR
32402009-06-05 David Reitter <david.reitter@gmail.com>
3241
ec7709ba
JB
3242 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3243 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3244 Fns_selection_exists_p, Fns_selection_owner_p.
3245
fdb55376
JR
32462009-06-03 Jason Rumney <jasonr@gnu.org>
3247
3248 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3249 available. (Bug#3379)
3250
05129fbe
KH
32512009-05-29 Kenichi Handa <handa@m17n.org>
3252
1ac9108a
SM
3253 * coding.c (get_translation_table):
3254 Check Venable_character_translation.
05129fbe 3255
ec7709ba 32562009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3257
ec7709ba
JB
3258 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3259 (x_make_frame_visible): Move frame to front rather than calling
15891144 3260 ns_raise_frame().
ec7709ba 3261 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3262 isn't key window.
ec7709ba 3263 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3264 drawRect may be called by NSView even if the frame is hidden.
3265
ec7709ba
JB
3266 * nsfns.m (Fx_create_frame): Follow other ports in
3267 determining visibility; default to t. Ensure async_visible is set.
15891144 3268
21f73755
EZ
32692009-05-23 Eli Zaretskii <eliz@gnu.org>
3270
3271 * dired.c (Ffile_attributes): Doc fix.
3272
34001e41
CY
32732009-05-22 Chong Yidong <cyd@stupidchicken.com>
3274
3275 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3276
46306a17
SM
32772009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3278
3279 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3280 and xfont_scratch_props.
3281 (syms_of_xfont): Do it here instead.
3282 (xfont_find_ccl_program): Delete, unused.
3283 (xfont_open): Delete unused var `i'.
3284
ef6e0694
KH
32852009-05-21 Kenichi Handa <handa@m17n.org>
3286
3287 * fontset.c (Qlatin): Don't make it static.
3288
46306a17
SM
3289 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3290 New functions.
ef6e0694
KH
3291 (xfont_scripts_cache, xfont_scratch_props): New variables.
3292 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3293 (xfont_list_pattern): Argument changed. Callers changed.
3294 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3295 (xfont_list): Don't reject a font spec with :script property.
3296 (xfont_has_char): Fix setting of encoding.
3297 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3298 xfont_scratch_props.
3299
33002009-05-19 Kenichi Handa <handa@m17n.org>
3301
46306a17 3302 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3303 Callers changed.
3304
33052009-05-18 Kenichi Handa <handa@m17n.org>
3306
3307 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3308
ac71ced7
SM
33092009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3310
3311 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3312 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3313
1c6d1051
YM
33142009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3315
3316 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3317 (x_delete_terminal): Dissociate resource database from display and
3318 then call XrmDestroyDatabase before closing display.
3319
9b9b779c
AR
33202009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3321
3322 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3323 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3324 whether selected frame is viable before raising it (based on patch
3325 by David Reitter), and improve commentary.
3326 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3327
cccd42d5
KH
33282009-05-15 Kenichi Handa <handa@m17n.org>
3329
3330 * font.c (Ffont_spec): Check arguments.
3331
337fbd17
CY
33322009-05-14 Chong Yidong <cyd@stupidchicken.com>
3333
3334 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3335 weight when testing attributes (Bug#3282).
3336
47a6002f
JD
33372009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3338
3339 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3340 what we expect to get in the next ConfigureNotify event.
3341
9cb363db
YM
3342 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3343 before Xft one (Bug#1696).
3344
b9126609
CY
33452009-05-07 David Reitter <david.reitter@gmail.com>
3346
3347 * nsfns.m (Fx_display_planes): Compute bitplanes using
3348 NSBitsPerPixelFromDepth (Bug#3207).
3349
27a69fd9
CY
33502009-05-10 Chong Yidong <cyd@stupidchicken.com>
3351
3352 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3353
00f37552
TTN
33542009-05-10 Ulrich Mueller <ulm@gentoo.org>
3355
3356 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3357
2d82a920
DR
33582009-05-07 David Reitter <david.reitter@gmail.com>
3359
ec7709ba
JB
3360 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3361 Respect mouse face background.
2d82a920 3362
46b0d52d
DR
33632009-05-07 David Reitter <david.reitter@gmail.com>
3364
ec7709ba
JB
3365 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3366 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3367 in ns_update_begin and ns_update_end.
3368
ce1b23bb
SM
33692009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3370
5996e1b7
SM
3371 * nsfns.m (ns_get_screen): Rewrite.
3372 Don't presume selected-frame is of type `ns'.
3373
ba98e3a0
SM
3374 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3375 all drivers.
3376
ce1b23bb
SM
3377 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3378
bcda200f
YM
33792009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3380
3381 * keyboard.h (add_user_signal): Fix typo in extern.
3382
3383 * lisp.h (add_user_signal): Remove extern.
3384
3385 * unexelf.c (unexec): Consider a section to precede the .bss section
3386 if its addresses overlap that of .bss.
3387 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3388 instead of dumping process.
3389
864660a2
SM
33902009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3391
3392 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3393
50da4e56
SM
33942009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3395
3396 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3397
51520a1a
DN
33982009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3399
3400 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3401 any statements.
3402
409ea3a1
AS
34032009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3404
59c4c60f
AS
3405 * process.c (read_process_output): Make sure the current buffer is
3406 always restored.
3407
409ea3a1
AS
3408 * coding.c (record_conversion_result): Don't modify
3409 Vlast_code_conversion_error for successful result.
3410 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3411
56f00ed2
KH
34122009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3413
3414 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3415 (load_charset_map): Remove unnecessary code.
56f00ed2 3416
4491c9d2
DR
34172009-04-30 David Reitter <david.reitter@gmail.com>
3418
35f5b128 3419 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3420 through f24.
3421
6970f632
CY
34222009-04-30 Chong Yidong <cyd@stupidchicken.com>
3423
3424 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3425
3426 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3427 face_at_buffer_position.
3428 (face_before_or_after_it_pos, get_next_display_element)
3429 (note_mouse_highlight): Update face_at_buffer_position call.
3430
3431 * term.c (term_mouse_highlight):
3432 * msdos.c (IT_note_mouse_highlight):
3433 * fontset.c (Finternal_char_font):
35f5b128 3434 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3435
3436 * dispextern.h (face_at_buffer_position): Update prototype.
3437
0c616f63
KH
34382009-04-30 Kenichi Handa <handa@m17n.org>
3439
35f5b128 3440 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3441
ad3aaf33
AS
34422009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3443
3444 * callproc.c (Fcall_process): Fix GC protection. Make sure
3445 current buffer is always restored.
3446
c3c963a0
YM
34472009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3448
3449 * atimer.c (init_atimer): Also clear stopped_atimers.
3450
3451 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3452
7e3386cb
YM
3453 * process.c (create_process): Clean up merger residues of
3454 2008-07-17 change.
3455
91f68422
CY
34562009-04-29 Ulrich Mueller <ulm@gentoo.org>
3457
3458 * lread.c (Vread_circle): New variable.
3459 (read1): Disable recursive read if Vread_circle is nil.
3460
24b34550
KH
34612009-04-29 Kenichi Handa <handa@m17n.org>
3462
3463 * fontset.h (set_default_ascii_font): Delete extern.
3464
3465 * fontset.c (set_default_ascii_font): Delete this unused function.
3466
3467 * frame.c (x_set_font): When ARG is a font-object, check if the
3468 font-object matches with the ASCII font-spec of the frame's
9c358bda 3469 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3470
77bf07e1
AS
34712009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3472
3473 * fns.c (Flocale_info): Protect vector from GC during decoding.
3474
3475 * process.c (Fstart_process): Protect argv strings from GC during
3476 encoding.
3477
2c55aacf
AS
34782009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3479
3480 * sysdep.c: Include <ctype.h>.
3481
b892d3c9
DR
34822009-04-27 David Reitter <david.reitter@gmail.com>
3483
35f5b128 3484 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3485 Remove commented-out code.
3486
9d0644c4
JB
34872009-04-26 Johan Bockgård <bojohan@gnu.org>
3488
3489 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3490
b7053016
JR
34912009-04-25 Jason Rumney <jasonr@gnu.org>
3492
3493 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3494
4e8231f3
YM
34952009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3496
3497 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3498 Swap bytes in short integer if fringe bitmap width > 8.
3499
493dcf2c
KH
35002009-04-23 Kenichi Handa <handa@m17n.org>
3501
3502 * xfaces.c (Fx_list_fonts): If a font size is specified in
3503 PATTERN, set it in returned scalable fonts.
3504
401e9e57
CY
35052009-04-22 Chong Yidong <cyd@stupidchicken.com>
3506
708e05dc
CY
3507 * keyboard.c (Fset_input_meta_mode): Doc fix.
3508
3509 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3510
1ac9108a 3511 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3512
3513 * coding.c (Fterminal_coding_system): Doc fix.
3514
3515 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3516 (Fx_display_pixel_height, Fx_display_planes)
3517 (Fx_display_color_cells, Fx_server_max_request_size)
3518 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3519 (Fx_display_mm_height, Fx_display_mm_width)
3520 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3521 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3522 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3523 (check_x_display_info): Handle terminal objects instead of
3524 terminal ids.
3525
401e9e57
CY
3526 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3527 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3528 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3529 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3530
df80c7f0
KH
35312009-04-21 Kenichi Handa <handa@m17n.org>
3532
5a8f12af 3533 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3534 (font_score): Check AVGWIDTH too.
908567ef 3535
df80c7f0
KH
3536 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3537 worst case.
1ac9108a
SM
3538 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3539 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3540
705af33f
JR
35412009-04-19 Jason Rumney <jasonr@gnu.org>
3542
3543 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3544 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3545
3546 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3547 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3548 get_phys_cursor_geometry.
3549
b71ac3dd 3550 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3551 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3552 using get_phys_cursor_geometry.
3553
3554 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3555 correctly calculated.
3556
dc2933eb
JD
35572009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3558
1ac9108a
SM
3559 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3560 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3561 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3562 is deprecated.
3563
973e7849
AS
35642009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3565
3566 * font.c (font_put_frame_data): Use xfree instead of free.
3567
314d66f4
JB
35682009-04-17 Juanma Barranquero <lekktu@gmail.com>
3569
3570 * w32font.c (Qja, Qko): Remove declarations.
3571 (syms_of_w32font): Don't DEFSYM them.
3572
cf702558
CY
35732009-04-17 Chong Yidong <cyd@stupidchicken.com>
3574
3575 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3576
3577 * font.h (Qja, Qko): Extern them.
3578
3579 * ftfont.c (Qja, Qko): Remove declarations.
3580
3581 * xfont.c (Qja, Qko): Remove declarations.
3582
b50504f5
KH
35832009-04-17 Kenichi Handa <handa@m17n.org>
3584
bde25748
KH
3585 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3586 string from a vector to handle Latin-1 characters correctly.
3587
b50504f5
KH
3588 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3589 entity even if the cache hits.
3590
f4646fff
AS
35912009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3592
3593 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3594 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3595
e7deaab0
AS
3596 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3597 * lisp.h: Adjust prototypes.
3598
0a0e7d49
CY
35992009-04-16 Chong Yidong <cyd@stupidchicken.com>
3600
3601 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3602 change (Bug#3003).
3603
3c908a57
KH
36042009-04-16 Kenichi Handa <handa@m17n.org>
3605
1ac9108a 3606 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3607
3608 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3609 adstyle.
3610
3611 * ftfont.c (Qja, Qko): Don't make them static.
3612 (enum ftfont_cache_for): New enum.
3613 (fc_charset_table): Undo the previous change.
3614 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3615 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3616 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3617 non-scarable font, try to get AVERAGE_WIDTH.
3618 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3619 Change ft_face_cache from a list of a hash-table. Don't check
3620 `ja' and `ko' adstyle here.
3621 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3622 FTFONT_CACHE_FOR_CHARET.
3623 (ftfont_get_charset): Undo the previous change.
1ac9108a 3624 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3625 (ftfont_close): Likewise.
3626 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3627
3628 * font.c (font_sort_entites): Change the meaning of the arg
3629 BEST-ONLY. Don't optimize for VEC of lenght 1.
3630 (font_select_entity): Just return the value of font_sort_entites.
3631
3632 * xfaces.c (merge_face_vectors): Reflect font properties in
3633 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3634 font_clear_prop if a face attribute doesn't change.
3635
3c908a57
KH
3636 * charset.h (charset_ksc5601): Extern it.
3637
3638 * charset.c (charset_ksc5601): New variable.
3639 (Fdefine_charset_internal): Set charset_ksc5601.
3640 (init_charset_once): Initialize charset_ksc5601 to -1.
3641
d65859c3
DN
36422009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3643
3644 * fileio.c (history_delete_duplicates): Remove unused declaration.
3645
3646 * callint.c (history_delete_duplicates): New declaration.
3647 (Fcall_interactively): Remove command history duplicates when
3648 history_delete_duplicates is true.
3649
3ba010e5
EZ
36502009-04-14 Eli Zaretskii <eliz@gnu.org>
3651
3652 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
3653
06f19b91
KH
36542009-04-14 Kenichi Handa <handa@m17n.org>
3655
3656 * font.c (Ffont_info): Fix docstring. Fix the second element of
3657 the returned value (bug#2949).
3658
2cce8bfc
CY
36592009-04-14 Chong Yidong <cyd@stupidchicken.com>
3660
3661 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
3662
d156542d
KH
36632009-04-14 Kenichi Handa <handa@m17n.org>
3664
3665 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
3666 encoding charset is ascii_compatible.
3667
3668 * charset.c (Fdefine_charset_internal): Make charset
3669 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
3670 code_offset is 0, and covers all ASCII characters.
3671
86fa089e
SM
36722009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3673
3674 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
3675 (ns_string_to_pasteboard_internal):
3676 * nsmenu.m (process_dialog):
3677 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
3678 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
3679 * lisp.h (Fx_load_color_file): Declare.
3680
a8a3728b
KH
36812009-04-13 Kenichi Handa <handa@m17n.org>
3682
1ac9108a 3683 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
3684 (font_select_entity): Suppress the code to optimize for the same
3685 kind of fonts.
3686 (font_load_for_lface): Get a font that supports at least ASCII
3687 characters.
3688
3689 * ftfont.c (Qja, Qko): New variables.
3690 (fc_charset_table): Delete uniquifier data for iso8859-1.
3691 (ftfont_get_latin1_charset): New function.
3692 (get_adstyle_property): New function.
3693 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
3694 bitmap fonts.
3695 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
3696 Delete iso-8859-1 range from the charset of fonts whose adstyle is
3697 `ko' or `ja'.
3698 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 3699 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
3700 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
3701 property.
3702 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
3703 (syms_of_ftfont): DEFSYM Qja and Qko.
3704
483670b5
KH
37052009-04-09 Kenichi Handa <handa@m17n.org>
3706
12b55765
KH
3707 * charset.c (map_charset_chars): For a charset of `superset'
3708 method, fix calculation of code range.
3709
483670b5
KH
3710 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
3711 from the list of extra properties.
3712 (font_clear_prop): Be sure to delete `:name' font property.
3713
57d3b93b
KH
37142009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3715
b4b2c2ca
YM
3716 * dispnew.c (redraw_overlapping_rows): Fix detection of
3717 overlapping for topmost and bottommost rows.
3718
1ac9108a 3719 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 3720
472c3609
JR
37212009-04-06 Jason Rumney <jasonr@gnu.org>
3722
3723 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
3724
ab193662
KH
37252009-04-06 Kenichi Handa <handa@m17n.org>
3726
3727 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
3728
3729 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
3730
0c26f026
KH
37312009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3732
3733 * ftfont.c (ftfont_open): Fix checking of the return value of
3734 FT_Load_Char. Fix setting font->underline_thickness.
3735
e173bbce
CY
37362009-04-04 Chong Yidong <cyd@stupidchicken.com>
3737
3738 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
3739 (Fterminal_parameters, Fterminal_parameter)
3740 (Fset_terminal_parameter): In doc string, refer to terminal
3741 objects rather than terminal ids.
3742
693a2698
EZ
37432009-04-04 Eli Zaretskii <eliz@gnu.org>
3744
3745 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
3746 ret_lim_data. (Bug#2867)
3747
d5221487
CY
37482009-04-03 Chong Yidong <cyd@stupidchicken.com>
3749
3750 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
3751 so they don't get wider than the window, matching 2006-01-23
3752 change to the partner function in xdisp.c (Bug#2800).
3753
223509a3
KH
37542009-04-03 Kenichi Handa <handa@m17n.org>
3755
3756 * print.c (print_object): Make each lowest sub_char_table start a
3757 new line (Bug#2866).
3758
74fcd0b1
KH
37592009-04-02 Kenichi Handa <handa@m17n.org>
3760
3761 * fontset.c (fontset_font): Record no-font when a fontset
3762 explicitly tells not to try another font-specs.
3763
c542407d
SM
37642009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
3765
3766 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
3767
e3869731
KH
37682009-03-30 Kenichi Handa <handa@m17n.org>
3769
d8d2f142
KH
3770 * fontset.c (fontset_from_font): Specify only registry in a
3771 font-spec for all characters supported by that registry.
3772
e3869731
KH
3773 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
3774 even if HAVE_M17N_FLT is not defined.
3775
5da5f805
CY
37762009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
3777
3778 * ftfont.c: Conditionalize prototyping and use of
3779 ftfont_variation_glyphs.
3780
ab226c50
SM
37812009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
3782
9628fed7
SM
3783 * frame.c (delete_frame): Work around compiler bug.
3784
3785 * editfns.c (general_insert_function): Adjust to insdel.c changes.
3786 * insdel.c (prepare_to_modify_buffer, signal_before_change):
3787 Some more EMACS_INT.
3788 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
3789
3790 * xdisp.c (dump_glyph): Fix typo.
3791
ae19ba7c
SM
3792 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3793 (adjust_markers_gap_motion, adjust_markers_for_delete)
3794 (adjust_markers_for_insert, adjust_point)
3795 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3796 (make_gap, copy_text, count_size_as_multibyte, insert)
3797 (insert_and_inherit, insert_before_markers)
3798 (insert_before_markers_and_inherit, insert_1)
3799 (count_combining_before, count_combining_after, insert_1_both)
3800 (insert_from_string, insert_from_string_before_markers)
3801 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3802 (insert_from_buffer_1, adjust_after_replace)
3803 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3804 (replace_range_2, del_range, del_range_1, del_range_byte)
3805 (del_range_both, del_range_2, modify_region)
3806 (prepare_to_modify_buffer, signal_before_change)
3807 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3808 for buffer positions and sizes.
3809 * lisp.h: Adjust prototypes accordingly.
3810
3811 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3812 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3813 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3814
ab226c50
SM
3815 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3816
46dfb8fb
JD
38172009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3818
3819 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3820 lines and columns so we keep the same pixel height and width.
3821
3822 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3823 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3824 (x_handle_net_wm_state): New function to update frame parameter
3825 fullscreen.
3826 (x_term_init): Initialize atoms for _NET_WM_STATE.
3827
3828 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3829
d347e494
SM
38302009-03-27 Kevin Ryde <user42@zip.com.au>
3831
3832 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3833 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3834 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3835 (Fgpm_mouse_stop): Pass that new parameter.
3836 * termhooks.h (close_gpm): Adjust prototype.
3837
84db11d6
SM
38382009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3839
c95a5008
SM
3840 * lisp.h (Fx_focus_frame): Declare.
3841
84db11d6
SM
3842 * callint.c (Fcall_interactively): For '^' just delegate the work to
3843 handle-shift-selection.
3844 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3845
0a1958d6
CY
38462009-03-24 Chong Yidong <cyd@stupidchicken.com>
3847
0bfdff23
CY
3848 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3849
0a1958d6
CY
3850 * data.c (Qinteractive_form): New variable.
3851 (Finteractive_form): Use it.
3852
3853 * eval.c (Fcommandp): Use Qinteractive_form.
3854
58aec0d6
JR
38552009-03-24 Jason Rumney <jasonr@gnu.org>
3856
3857 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3858 Calculate total size precisely. Decode environment variables
3859 before substituting. (Bug#38)
3860
553dd618
KH
38612009-03-24 Kenichi Handa <handa@m17n.org>
3862
3863 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3864 encoding (Bug#2722).
553dd618 3865
c39ea606
JD
38662009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3867
3868 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3869 that gdpy is set.
3870
bc9b2b5e
AM
38712009-03-22 Alan Mackenzie <acm@muc.de>
3872
3873 * callint.c (Finteractive): Clarify the doc string - even
3874 promptless elements need \n separators.
3875
9f995a76
JR
38762009-03-22 Jason Rumney <jasonr@gnu.org>
3877
3878 * w32term.c (syms_of_w32term): Doc fix for
3879 x-use-underline-position-properties.
3880
22749e9a
EZ
38812009-03-21 Eli Zaretskii <eliz@gnu.org>
3882
3883 * w32.c (getpwuid): Change argument type to unsigned.
3884 (struct w32_id): Change type of `rid' member to unsigned.
3885 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3886 argument ID to unsigned. All callers changed.
3887 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3888
e00553bf
EZ
38892009-03-20 Eli Zaretskii <eliz@gnu.org>
3890
3891 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3892 negative, produce a float value.
3893
3894 * dired.c (make_uid, make_gid): New functions.
3895 (Ffile_attributes): Use them to avoid negative UID and GID.
3896
f761d6b6
JB
38972009-03-20 Juanma Barranquero <lekktu@gmail.com>
3898
3899 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3900 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3901 Fix typos in docstrings.
3902
d507f8d7
KH
39032009-03-19 Kenichi Handa <handa@m17n.org>
3904
3905 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3906 changed, use font_load_for_lface to get a new font object.
3907 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3908
3909 * frame.c (x_set_font): Handle the case that ARG is a cons.
3910
c68845e0
GM
39112009-03-19 Glenn Morris <rgm@gnu.org>
3912
3913 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3914
bfa49dd1
CY
39152009-03-19 Chong Yidong <cyd@stupidchicken.com>
3916
3917 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3918
8458d4c1
KH
39192009-03-19 Kenichi Handa <handa@m17n.org>
3920
3921 * charset.c (load_charset_map_from_file): When a mapfile can't be
3922 loaded, signal an error.
3923
78e7d1fe
EZ
39242009-03-18 Eli Zaretskii <eliz@gnu.org>
3925
3926 * dired.c (Ffile_attributes): Make sure UID and GID are always
3927 positive, even if the value is too large for a positive EMACS_INT.
3928 Doc fix.
3929
3930 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3931
5da9fdfa
YM
39322009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3933
3934 * xmenu.c (xdialog_show): Move Fredisplay call ...
3935 (Fx_popup_dialog): ... here.
3936
7519c40d
SM
39372009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3938
3939 * dired.c (file_name_completion): Disable the first optimization just
3940 installed, since it is not implemented correctly.
3941
2cd298e2
SM
39422009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3943
3944 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3945 only if the entry can affect bestmatch.
2cd298e2
SM
3946 Stop the search early, as Ftry_completion already does.
3947
48d37adf
CY
39482009-03-17 Chong Yidong <cyd@stupidchicken.com>
3949
e10c9c93 3950 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3951
9286b16a
CY
39522009-03-15 Chong Yidong <cyd@stupidchicken.com>
3953
3954 * keyboard.c (parse_menu_item): Don't display remappings as menu
3955 equivalent bindings (Bug#788).
3956
f7b146dc
JR
39572009-03-15 Jason Rumney <jasonr@gnu.org>
3958
3959 * w32term.h (WM_EMACS_PAINT): New message.
3960 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3961 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3962 before passing to lisp thread. (Bug#950)
3963
f761d6b6 39642009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3965
d93f9575
CY
3966 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3967 variable as it was never reset.
3968 (ns_term_init): Remove initialization of Lisp-settable defaults
3969 and ns_expand_space.
3970 (-setPanelFromDefaultValues): Remove ns_expand_space.
3971 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3972 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3973 i.e. no additional spacing, similar to Carbon port.
3974
d93f9575
CY
3975 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3976 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3977
305018ec
JD
39782009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3979
3980 * sound.c (alsa_configure): Remove call to deprecated
3981 snd_pcm_sw_params_set_xfer_align.
3982
f761d6b6 39832009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3984
3985 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3986 after clicking in a detached tool bar.
3987 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3988
46e722a9
SM
39892009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3990
348db3dd
SM
3991 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3992 int/Lisp_Object mixup).
46e722a9 3993
a3d16f39
KH
39942009-03-13 Kenichi Handa <handa@m17n.org>
3995
3996 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3997 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3998 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3999 (set_fontset_font): Change ARG to a vector. Handle range_list in
4000 ARG correctly.
4001 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4002 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4003 the above change.
4004 (fontset_from_font): Fix previous change.
fe24f56a 4005 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4006 entry. If FONTSET is the default fontset, don't set the extra
4007 slot of the returning char-table.
4008
b066e6b6
JB
40092009-03-12 Juanma Barranquero <lekktu@gmail.com>
4010
4011 * nsfns.m (Fx_close_connection): Doc fix.
4012 (Fns_do_applescript): Reflow docstring.
4013 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4014 (Fx_display_pixel_width, Fx_display_pixel_height)
4015 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4016 Fix typos in docstrings.
4017 (Fns_set_alpha): Fix typos in error messages.
4018
d472514e 40192009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4020
d472514e 4021 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4022 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4023 were used for such events.
4024
d472514e
JB
4025 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4026 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4027
d472514e 4028 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4029 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4030
fb930676
KH
40312009-03-11 Kenichi Handa <handa@m17n.org>
4032
ff85581a
KH
4033 * font.h (font_open_by_spec): Extern it.
4034
c50b7e98
KH
4035 * font.c (font_open_by_spec): New function.
4036 (font_open_by_name): Use font_open_by_spec.
4037
fb930676
KH
4038 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4039 fontset of the frame.
4040
4041 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4042 modify the default font of frames that use this fontset.
4043 (num_auto_fontsets): New variable.
4044 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4045 name. Be sure to set FONTSET_ASCII to the correct font name.
4046 (update_auto_fontset_alist): New function.
4047
df4e8455
JB
40482009-03-11 Juanma Barranquero <lekktu@gmail.com>
4049
4050 * makefile.w32-in: Update dependencies.
4051
0a375797
AR
40522009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4053
4054 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4055
61313fa3
SM
40562009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4057
4058 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4059
b55103fb
CY
40602009-03-10 Chong Yidong <cyd@stupidchicken.com>
4061
4062 * lread.c (Feval_buffer): Doc fix.
4063
dde2559c
KH
40642009-03-09 Kenichi Handa <handa@m17n.org>
4065
4066 * charset.c (Qfile_name_handler_alist): Extern it.
4067 (load_charset_map_from_file): Temporarily bind
4068 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4069
df4e8455 40702009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4071
47f588bb
GM
4072 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4073 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4074
4ddf94bd
AR
40752009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4076
4c9bdfc2
AR
4077 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4078 (x_set_window_size): Change back to calculated method of setting
4079 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4080 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4081 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4082
fe41ae9e
AR
4083 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4084
4c9bdfc2
AR
4085 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4086 accelerator in parens under GNUstep.
4087
825d0875
KH
40882009-03-06 Kenichi Handa <handa@m17n.org>
4089
4090 These changes are to detect incorrect composition sequence without
f3b3be74 4091 looking ahead the source. (Bug#2370)
825d0875
KH
4092
4093 * coding.h: Include "composite.h".
4094 (enum compisition_state): New enum.
4095 (struct compisition_status): New struct.
4096 (struct iso_2022_spec): New member cmp_status.
4097 (struct emacs_mule_spec): New struct.
4098 (struct coding_system): New members ctext_extended_segment_len and
4099 embedded_utf_8. Change the union member
4100 spec.emacs_mule_full_support to spec.emacs_mule.
4101
4102 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4103 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4104 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4105 (ADD_COMPOSITION_DATA): New arg nbytes.
4106 (emacs_mule_char): New arg cmp_status.
4107 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4108 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4109 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4110 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4111 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4112 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4113 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4114 (EMACS_MULE_COMPOSITION_END): New macro.
4115 (emacs_mule_finish_composition): New function.
4116 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4117 (decode_coding_emacs_mule): Avoid long looking ahead while
4118 handling composition.
4119 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4120 (ENCODE_COMPOSITION_RULE): New macro.
4121 (finish_composition): New function.
4122 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4123 (DECODE_COMPOSITION_START): New implementation.
4124 (DECODE_COMPOSITION_END): Likewise.
4125 (STORE_COMPOSITION_RULE): New macro.
4126 (decode_coding_iso_2022): Avoid long looking ahead while handling
4127 composition, CTEXT extended segment, and embedded UTF-8.
4128 (setup_coding_system): For a coding of type iso-2022, reset
4129 CODING_ISO_EXTSEGMENT_LEN (coding) and
4130 CODING_ISO_EMBEDDED_UTF_8 (coding).
4131 (get_translation): Delete arguments last_block, from_nchars,
4132 to_nchars. Callers changed.
4133 (produce_chars): Don't modify charbuf. Adjusted for the change of
4134 get_translation.
98a326f7 4135 (produce_composition): Adjust for the new annotation sequence.
825d0875 4136 (handle_composition_annotation): Likewise.
98a326f7 4137 (consume_chars): Adjust for the change of get_translation.
825d0875 4138
ccbc4452
AR
41392009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4140
4ddf94bd 4141 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4142
988a7ddb
KH
41432009-03-05 Kenichi Handa <handa@m17n.org>
4144
4145 * font.c (font_select_entity): New function.
4146 (font_find_for_lface): Use font_select_entity to select a font.
4147
4148 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4149 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4150 font with C restriction.
4151
98a326f7 41522009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4153
be1bce46 4154 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4155
10ea2b82
JR
41562009-03-04 Jason Rumney <jasonr@gnu.org>
4157
2c93b248 4158 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4159 characters that have already been read. (Bug#2569)
2c93b248 4160
10ea2b82
JR
4161 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4162 Log an error message if check_image_size failed.
4163 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4164 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4165
71a0c011
EZ
41662009-03-02 Eli Zaretskii <eliz@gnu.org>
4167
4168 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4169 when decoding process output.
4170
2f63bba8
RS
41712009-03-01 Richard M Stallman <rms@gnu.org>
4172
4173 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4174
4175 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4176
0a9564cb
EZ
41772009-02-28 Eli Zaretskii <eliz@gnu.org>
4178
4179 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4180 (decode_coding_emacs_mule, decode_coding_iso_2022)
4181 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4182 (decode_coding_raw_text, decode_coding_charset)
4183 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4184 Honor inhibit-eol-conversion. (Bug #2186)
4185
449148b3
JR
41862009-02-28 Jason Rumney <jasonr@gnu.org>
4187
4188 * coding.c (detect_coding_charset): If not checking latin extra,
4189 fail on characters between 0x80 and 0xA0. (Bug#2354)
4190
a4aee864
EZ
41912009-02-28 Eli Zaretskii <eliz@gnu.org>
4192
4193 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4194 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4195
d88bee5a
GM
41962009-02-27 Glenn Morris <rgm@gnu.org>
4197
4198 * callint.c (Finteractive): Doc fix.
4199
a808f22d
KH
42002009-02-27 Kenichi Handa <handa@m17n.org>
4201
4202 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4203
caf8d60c
CY
42042009-02-27 Chong Yidong <cyd@stupidchicken.com>
4205
4206 * font.c (font_style_to_value): Set value for unknown symbols to
4207 100 instead of 255.
b61137ea
CY
4208 (weight_table, slant_table, width_table): Treat "unspecified" as
4209 the default value.
caf8d60c 4210
1a0de25c
JB
42112009-02-26 Juanma Barranquero <lekktu@gmail.com>
4212
4213 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4214
8fc45744
JB
42152009-02-25 Juanma Barranquero <lekktu@gmail.com>
4216
107bd7d1
JB
4217 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4218 error as soon as a recursive load is detected.
8fc45744 4219
f097e223
AR
42202009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4221
4222 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4223 before caching.
4224
8810a12f
KH
42252009-02-24 Kenichi Handa <handa@m17n.org>
4226
4227 * fontset.c (fontset_find_font): Fix the condition for checking
4228 unavailable font.
4229
2c7d1565
GM
42302009-02-24 Glenn Morris <rgm@gnu.org>
4231
4232 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4233 whitespace that confuses documentation.
4234
a20878b6
MB
42352009-02-23 Miles Bader <miles@gnu.org>
4236
4237 * process.c (Flist_system_processes, Fprocess_attributes)
4238 (syms_of_process): Rename `system-process-attributes' to
4239 `process-attributes'.
4240
b3b58c01
AS
42412009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4242
1b3b981b
AS
4243 * coding.h (struct coding_system): Make safe_charsets a pointer to
4244 unsigned char.
4245 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4246 being 255.
4247 (SAFE_CHARSET_P): Likewise.
4248 (setup_iso_safe_charsets): Properly setup safe_charsets.
4249 (Fdefine_coding_system_internal): Likewise.
4250 (setup_coding_system): Likewise. Remove unneeded casts.
4251 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4252 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4253 unneeded casts.
4254
b3b58c01
AS
4255 * insdel.c (del_range_2): Don't modify gap contents when called
4256 from decode_coding_object. (Bug#1809)
4257
0b6f228c
CY
42582009-02-21 Chong Yidong <cyd@stupidchicken.com>
4259
4260 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4261 Qfont_object.
4262 (Ftype_of): Recognize font objects.
4263
4264 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4265
4266 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4267 moved to data.c.
4268
52f8870b
AR
42692009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4270
4271 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4272 async_iconified. Based on a patch by Christian Lynbech
4273 <christian.lynbech@tieto.com>.
4274 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4275
7087d5e9
GM
42762009-02-20 Glenn Morris <rgm@gnu.org>
4277
4278 * syntax.c (Fskip_chars_forward): Fix doc typo.
4279
41d2ceef
CY
42802009-02-20 Chong Yidong <cyd@stupidchicken.com>
4281
4282 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4283
1a3b7ca6
CY
42842009-02-19 Chong Yidong <cyd@stupidchicken.com>
4285
4286 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4287
73cce38d
KH
42882009-02-19 Kenichi Handa <handa@m17n.org>
4289
4290 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4291 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4292
a51092ee
DN
42932009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4294
4295 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4296
c423ecca
KH
42972009-02-18 Kenichi Handa <handa@m17n.org>
4298
4299 * font.c (font_check_otf_features): Fix handling of `nil' element.
4300 (Ffont_spec): Describe :lang and :otf in the docstring.
4301
4c1958f4
AS
43022009-02-16 Andreas Schwab <schwab@suse.de>
4303
4304 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4305 string.
4306
5704f39a
KH
43072009-02-16 Kenichi Handa <handa@m17n.org>
4308
4309 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4310 (Bug#1723)
5704f39a 4311
8f0085aa
CY
43122009-02-14 Chong Yidong <cyd@stupidchicken.com>
4313
a057d86a 4314 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4315
4316 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4317 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4318
aff01dd9
EZ
43192009-02-14 Eli Zaretskii <eliz@gnu.org>
4320
4321 * msdos.c (MAX_SCREEN_BUF): New macro.
4322 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4323 Encode the entire run of glyphs sharing the same face, instead of
4324 doing that one glyph at a time (fixes a bug with displaying
4325 double-size characters).
4326
ba301db3
AR
43272009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4328
4329 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4330
4331 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4332 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4333 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4334
4335 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4336 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4337
51d861de
SM
43382009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4339
ac146f82 4340 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4341 invisible areas.
4342
7fed8996
JR
43432009-02-12 Jason Rumney <jasonr@gnu.org>
4344
631ea4fb
JR
4345 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4346 (add_font_entity_to_list): Call check_face_name even when family
4347 is unspecified.
4348
cb4a3e42
JR
4349 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4350 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4351 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4352
7fed8996 4353 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4354 raster fonts. (Bug#2219)
7fed8996 4355
895416e3
KH
43562009-02-12 Kenichi Handa <handa@m17n.org>
4357
4358 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4359 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4360 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4361 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4362 (find_automatic_composition): While looking forward and backward,
4363 check static composition. Fix where to stop looking forward.
4364 (composition_adjust_point): Fix checking of static composition.
4365 (Fcomposition_get_gstring): Pay attention to
1dacf998 4366 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4367
4368 * lisp.h (fast_looking_at): Extern it.
4369
4370 * search.c (fast_looking_at): New function.
4371
51d861de 4372 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4373 <struct glyph>.u.cmp.to.
4374 (append_composite_glyph): Likewise.
4375
51d861de 4376 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4377 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4378 composition.
51d861de 4379 (append_composite_glyph): Adjust for the change of
895416e3
KH
4380 <strcut glyph>.u.cmp.to.
4381
8510724d
JB
43822009-02-11 Juanma Barranquero <lekktu@gmail.com>
4383
4384 * casetab.c (init_casetab_once):
4385 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4386 * font.c (font_update_lface):
4387 * fontset.c (Fnew_fontset):
4388 * ftfont.c (ftfont_drive_otf):
4389 * xfont.c (xfont_open):
4390 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4391
294fa707
SM
43922009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4393
4394 * fileio.c (Fwrite_region): !NILP -> CONSP.
4395
b5bfebec
AS
43962009-02-10 Andreas Schwab <schwab@suse.de>
4397
4398 * process.c (send_process): Properly relocate pointer into data
adab88bd 4399 when using encoded data. (Bug#2272)
b5bfebec 4400
cb84a2be
KH
44012009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4402
4403 * coding.c (detect_coding_charset): Fix previous change.
4404
89e09428
JR
44052009-02-08 Jason Rumney <jasonr@gnu.org>
4406
4407 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4408 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4409
4470a277
AS
44102009-02-07 Andreas Schwab <schwab@suse.de>
4411
4412 * unexelf.c (unexec): Fix error message.
4413
3175b12a
AR
44142009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4415
4416 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4417 when modal window is active. (Bug #2152)
3175b12a
AR
4418 (applicationShouldTerminate:): Remove now-unneeded while loop
4419 around NSRunAlertPanel.
4420
4421 * nsmenu.m (popupSession): New file-global variable.
4422 (pop_down_menu): End the popupSession before closing dialog.
4423 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4424 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4425 don't query NSApp for events (just sleep instead).
4426
8434d0b8
EZ
44272009-02-07 Eli Zaretskii <eliz@gnu.org>
4428
51d861de
SM
4429 * coding.c (syms_of_coding) <translation-table-for-input>:
4430 Modify doc string to discourage use for character code unification.
8434d0b8 4431
aa82edfd
CY
44322009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4433
4434 * atimer.c (run_timers): Update pending_atimers.
4435
2d283c7c
CY
44362009-02-06 Chong Yidong <cyd@stupidchicken.com>
4437
eb306cab
CY
4438 * image.c (svg_load_image): Fix last change.
4439
2d283c7c
CY
4440 * xfns.c (Fx_create_frame): Signal an error if no font is
4441 found (Bug#2147).
4442
4d8e170e
JB
44432009-02-05 Juanma Barranquero <lekktu@gmail.com>
4444
4445 * character.c (syms_of_character) <script-representative-chars>:
4446 Fix typo in docstring.
4447
c96169a0
AR
44482009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4449
4450 * nsmenu.m (pop_down_menu): New function.
4451 (ns_popup_dialog): Call it on unwind.
4452 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4453 call timer_check() (Bug#2154).
4454 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4455 handling_signal is set.
4456 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4457
31fd7c5c 4458 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4459
4460 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4461
4462 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4463
51d861de
SM
4464 * keyboard.c (poll_for_input_1, handle_async_input):
4465 Set handling_signal under HAVE_NS.
c96169a0 4466
aacd8ba1
GM
44672009-02-04 Glenn Morris <rgm@gnu.org>
4468
4469 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4470
4cb75c4b
KH
44712009-02-04 Kenichi Handa <handa@m17n.org>
4472
4473 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4474
4475 * charset.c (Fchar_charset): New optional arg restriction.
4476
4477 * coding.h (coding_system_charset_list): Extern it.
4478
4479 * coding.c (coding_system_charset_list): New function.
4480
4481 * composite.c: Include coding.h and termhooks.h.
4482 (composition_gstring_p): Fix for the terminal case.
4483 (composition_gstring_width): Likewise.
4484 (fill_gstring_body): Likewise.
4485 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4486 the frame.
4487 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4488 is within a composition.
867d4bb3 4489 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4490
4491 * term.c (encode_terminal_code): Fix handling of composition.
4492 (produce_composite_glyph): For static composition, get pixel_width
4493 from struct composition.
4494
826ba17e
AS
44952009-02-02 Andreas Schwab <schwab@suse.de>
4496
4497 * unexelf.c (unexec): Handle unaligned bss offset.
4498
8ad093db
AR
44992009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4500
4501 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4502 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4503
8ad093db
AR
4504 * keyboard.c (handle_interrupt): Don't call
4505 quit_throw_to_read_char() under NS.
d0a76a6e 4506
8ad093db
AR
4507 * blockinput.h: Remove NS-specific code.
4508
4d18a7a2
DN
45092009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4510
db878925
DN
4511 * dispnew.c (window_change_signal): Don't try to get the size of a
4512 suspended tty frame.
4513 * term.c (Fresume_tty): Resize if the size has changed while the
4514 tty was suspended.
4515
4d18a7a2
DN
4516 * alloc.c (mark_stack): Properly conditionalize previous change.
4517
8984df7c
JB
45182009-01-30 Juanma Barranquero <lekktu@gmail.com>
4519
4520 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4521 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4522 Remove; this code is not used on Windows.
4523
75f4f1ac
EZ
45242009-01-30 Eli Zaretskii <eliz@gnu.org>
4525
4526 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4527 EOLs that also has stray ^M characters.
4528
07a1e794
JB
45292009-01-30 Juanma Barranquero <lekktu@gmail.com>
4530
4531 * atimer.c (run_timers, alarm_signal_handler):
4532 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4533 * w32inevt.c (w32_console_read_socket):
4534 * w32term.c (w32_read_socket):
4535 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4536
a8b11cc9
CY
45372009-01-30 Chong Yidong <cyd@stupidchicken.com>
4538
4539 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4540 Initialize it as a relative filename pattern.
4541 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4542 (Fcall_process_region): Simplify temp file creation using
4543 temporary-file-directory.
4544
c279587b
EZ
45452009-01-29 Eli Zaretskii <eliz@gnu.org>
4546
4547 * msdos.c: Rename pending_signals to msdos_pending_signals.
4548 (sig_suspender, sigprocmask): Adjust.
4549
a8fe3242
CY
45502009-01-29 Chong Yidong <cyd@stupidchicken.com>
4551
4552 * keyboard.c (pending_signals): New var.
4553 (poll_for_input, input_available_signal, init_keyboard): Set it.
4554 (process_pending_signals): New function.
4555
4556 * lisp.h (QUIT): Check pending_signals instead of
4557 interrupt_input_pending. Use process_pending_signals.
4558
51d861de 4559 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4560
51d861de 4561 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4562
4563 * sysdep.c (emacs_write): Use process_pending_signals.
4564
4565 * xterm.c (XTread_socket): Update pending_signals.
4566
4567 * w32term.c (w32_read_socket): Update pending_signals.
4568
4569 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4570
6570a1c4
KH
45712009-01-29 Kenichi Handa <handa@m17n.org>
4572
4573 * xftfont.c (xftfont_has_char): New function.
4574 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4575
d72a4afa
AR
45762009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4577
4578 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4579 under GNUstep.
4580 (ns_query_color): New declaration.
4581
4582 * nsterm.m (ns_confirm_quit): New variable.
4583 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4584 (EmacsApp-applicationShouldTerminate:): Use it.
4585 (EmacsPrefsController): Let user set it.
4586 (ns_query_color): New function.
4587 (ns_defined_color): Use it.
4588 (ns_initialize): Drop.
4589 (ns_term_init): Add two lines from ns_initialize(), and set
4590 input_interrupt_mode to nil.
4591
4592 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4593 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4594
9fe78804
KH
45952009-01-28 Kenichi Handa <handa@m17n.org>
4596
4597 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4598 (fontset_get_font_group): Remember that no font-group is specified
4599 for C.
9fe78804 4600
fa57de36
CY
46012009-01-27 Chong Yidong <cyd@stupidchicken.com>
4602
930600e9
CY
4603 * fns.c (concat): Check for string overflow (bug#1787).
4604
fa57de36
CY
4605 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4606 Quadruple undo limits (bug#1501).
4607
7179ce7b
KH
46082009-01-27 Kenichi Handa <handa@m17n.org>
4609
4610 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4611 directly use GT_Get_Char_index.
4612
4613 * xftfont.c (struct xftfont_info): New member `index'.
4614
4615 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4616 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4617
5be8fcc0
CY
46182009-01-26 Kenichi Handa <handa@m17n.org>
4619
4620 * fontset.c (fontset_find_font): Fix handling of non-cons return
4621 value of fontset_get_font_group.
4622 (fontset_font): Revert last change.
4623
19ae3e61
JR
46242009-01-26 Jason Rumney <jasonr@gnu.org>
4625
4626 * w32font.c (w32font_list_internal): Return quickly if registry is
4627 unknown. Simplify final return.
4628 (add_font_entity_to_list): Break complex logic down into more
4629 manageable chunks. Move unknown registry check to
4630 w32font_list_internal.
4631
8612b71a
AR
46322009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4633
4634 Changes to remove Feval calls from GUI under NS.
4635
d8038940
JB
4636 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
4637 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
4638 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
4639
4640 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
4641 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
4642 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
4643 instead of NON_ASCII_KEYSTROKE_EVENT.
4644 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
4645 (EmacsApp-applicationShouldTerminate:): Query user.
4646 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
4647 instead of Feval.
4648
4649 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
4650
4651 * keyboard.c (kbd_buffer_get_event): Check for it.
4652 (keys_of_keyboard): Define lispy keys for
4653 ns-put/unput-working-text.
4654
4655 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
4656 versions.
4657 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
4658
6288ae55
CY
46592009-01-25 Chong Yidong <cyd@stupidchicken.com>
4660
4661 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 4662 setting current_buffer directly. (Bug#2044)
6288ae55 4663
289e7f8f
CY
46642009-01-24 Chong Yidong <cyd@stupidchicken.com>
4665
5ce87308 4666 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 4667 any work. (Bug#1952, bug#1990).
5ce87308 4668
64cc3cf6 4669 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 4670
b3243e6f
AR
46712009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4672
4673 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
4674 (ns_no_defaults): New declaration.
4675 (main): Use it.
e0d2e69a 4676
d900b2af 4677 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 4678
d900b2af 4679 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 4680
d900b2af
AR
4681 * nsterm.m (ns_no_defaults): New variable.
4682 (ns_initialize): Don't read defaults when ns_no_defaults.
4683 (EmacsView-readSelectionFromPasteboard:)
4684 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 4685 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
4686 (ns_dumpglyphs_stretch): New function.
4687 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 4688 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 4689
e0d2e69a
AR
4690 * nsimage.m (setPixmapData:): Set to ignore image DPI.
4691
3ac71f5d
CY
46922009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
4693
4694 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
4695 call for Sparc64.
4696
3fe53a83
AR
46972009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4698
4699 * nsfns.m:
4700 * nsgui.h:
4701 * nsmenu.m:
4702 * nsselect.m:
4703 * nsterm.h:
4704 * nsterm.m: Remove '23' comments that indicated code added during
4705 update from emacs-20 -> emacs-23.
4706
10f87c6f 47072009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
4708
4709 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 4710 ns_alternate_modifier. (Bug#1217)
a3b53a85 4711
c7cef62d
AR
4712 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
4713 Display all shortcuts, including those w/o super modifier.
4714
575fb8bd
AR
4715 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
4716
918b848b
CY
47172009-01-22 Chong Yidong <cyd@stupidchicken.com>
4718
4719 * fileio.c (Vwrite_region_post_annotation_function)
4720 (Vwrite_region_annotation_buffers): New vars.
4721 (build_annotations_unwind): Just reset
4722 Vwrite_region_annotation_buffers.
4723 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
4724 Call write-region-post-annotation-function.
4725 (build_annotations): Add to Vwrite_region_annotation_buffers if
4726 buffer changes.
4727
a39e2539
AR
47282009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4729
4730 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
4731 Tiger.
51d861de
SM
4732 * nsfns.m (ns_do_applescript):
4733 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 4734
35ed44db
AR
47352009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4736
4737 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
4738
cbe0b5bf
AR
47392009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4740
4741 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 4742
6049d3a0
AR
4743 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
4744
4745 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
4746 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
4747 handle Ctrl-tab. (Bug#1841)
4748 (ns_get_color): Use unsigned long long for scanned hex string value.
4749 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 4750 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 4751 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 4752 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 4753 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 4754 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 4755 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 4756
d3810c21 4757 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 4758 DPI. (Bug#1316)
d3810c21
AR
4759 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
4760 values in onTiger section.
4c7077c3 4761
e301e634
CY
47622009-01-19 Chong Yidong <cyd@stupidchicken.com>
4763
7f82490b
CY
4764 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
4765 Check return value of font_spec_from_name.
64cc3cf6 4766 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
4767
4768 * font.c (font_spec_from_name): Return Qnil if font name could not
4769 be parsed.
4770 (font_parse_name): Treat a `?' character as part of an XLFD.
4771
e301e634
CY
4772 * fns.c (Fsubstring): Doc fix.
4773
1c0db158
KH
47742009-01-19 Kenichi Handa <handa@m17n.org>
4775
51d861de 4776 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
4777 (ftfont_list): Likewise.
4778
acf20901
JB
47792009-01-18 Juanma Barranquero <lekktu@gmail.com>
4780
fff4e459
JB
4781 * dbusbind.c (Fdbus_register_signal):
4782 * process.c (conv_sockaddr_to_lisp):
4783 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
4784
acf20901
JB
4785 * callproc.c (Fgetenv_internal): Doc fix.
4786
e7abcdfb
CY
47872009-01-16 Chong Yidong <cyd@stupidchicken.com>
4788
4789 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
4790 it is not even used.
4791
b60861e6
GM
47922009-01-16 Glenn Morris <rgm@gnu.org>
4793
4794 * font.c (Ffont_variation_glyphs): Silence compiler.
4795
8db52afe
JB
47962009-01-15 Juanma Barranquero <lekktu@gmail.com>
4797
4798 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4799 Reported by David Robinow <drobinow@gmail.com>.
4800
4cddb209
KH
48012009-01-15 Kenichi Handa <handa@m17n.org>
4802
51d861de 4803 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4804
f247f67b
JR
48052009-01-14 Jason Rumney <jasonr@gnu.org>
4806
4807 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4808 never a fontset. (Bug#1562)
f247f67b 4809
f56a4450
KH
48102009-01-14 Kenichi Handa <handa@m17n.org>
4811
4812 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4813 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4814
4e99855e
CY
48152009-01-13 Chong Yidong <cyd@stupidchicken.com>
4816
4817 * font.c (font_clear_prop): If clearing the family, clear the font
4818 width index too.
4819
fff4e459 4820 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4821
24f01470
JB
48222009-01-12 Juanma Barranquero <lekktu@gmail.com>
4823
4824 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4825 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4826 functions, use sizeof.
4827
a41240a3
MR
48282009-01-12 Martin Rudalics <rudalics@gmx.at>
4829
4830 * keyboard.c (read_char): Fix case where last_nonmenu_event
4831 returned a bad value with submenus. (Bug#447)
4832
944636b8
CY
48332009-01-12 Chong Yidong <cyd@stupidchicken.com>
4834
4835 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4836 family, clear the font width index too.
4837
0dad7c6f
JR
48382009-01-11 Jason Rumney <jasonr@gnu.org>
4839
4840 * keyboard.c (cmd_error_internal): Exit when errors occur before
4841 frame creation and not in daemon mode. (Bug#1836)
4842
7c2363af
CY
48432009-01-10 Chong Yidong <cyd@stupidchicken.com>
4844
4845 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4846 of a display vector, backtrack.
4847 (try_window_reusing_current_matrix): Check glyph type before
4848 referencing charpos member.
4849
97b1b294
EZ
48502009-01-10 Eli Zaretskii <eliz@gnu.org>
4851
4852 Fix Bug #876:
4853
4854 * coding.c (inhibit_null_byte_detection): New variable.
4855 (detect_coding, detect_coding_system): Don't pay attention to null
4856 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4857 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4858 <inhibit-iso-escape-detection>: Doc fix.
4859
4624b6e3
JR
48602009-01-09 Jason Rumney <jasonr@gnu.org>
4861
4862 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4863 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4864 Only report Unicode Plane 2 fonts as unicode-sip.
4865
323b840c
CY
48662009-01-09 Chong Yidong <cyd@stupidchicken.com>
4867
51d861de
SM
4868 * xfaces.c (Fx_font_family_list): Delete function.
4869 Move compatibility version to faces.el.
323b840c 4870
51d861de 4871 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4872
eba7400d
MR
48732009-01-09 Martin Rudalics <rudalics@gmx.at>
4874
4875 * frame.c (x_set_frame_parameters): Remember requested value for
4876 fullscreen before it's reset by the parameter handler.
4877
4b09796d
GM
48782009-01-09 Glenn Morris <rgm@gnu.org>
4879
4880 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4881 (last_command_event): ... and update all users.
4b09796d
GM
4882 (last_input_char): For clarity, rename to...
4883 (last_input_event): ... and update all users.
4884 (last-command-char, last-input-char): Move to subr.el as aliases.
4885 * cmds.c, commands.h: Update for last_command_char rename.
4886
14ccea62
CY
48872009-01-08 Chong Yidong <cyd@stupidchicken.com>
4888
51d861de 4889 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4890
5f004711
JR
48912009-01-08 Jason Rumney <jasonr@gnu.org>
4892
4893 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4894 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4895 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4896 Don't declare.
fff4e459 4897 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4898 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4899
b71f6f73
KH
49002009-01-07 Kenichi Handa <handa@m17n.org>
4901
50b06221 4902 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4903 remember the coding system used for decoding in
50b06221
KH
4904 coding_system (Bug#1039).
4905
b71f6f73 4906 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4907 breaking the loop. (Bug#870)
b71f6f73
KH
4908 (decode_coding_utf_16, decode_coding_emacs_mule)
4909 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4910 (decode_coding_charset): Likewise.
4911
56f668f7
MR
49122009-01-05 Martin Rudalics <rudalics@gmx.at>
4913
4914 * frame.c (x_set_frame_parameters): Make sure height (width) get
4915 applied when fullwidth (fullheight) is set. (Bug#1522)
4916
5da9424d
JB
49172009-01-04 Juanma Barranquero <lekktu@gmail.com>
4918
4919 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4920 (utc_base): Declare as ULONGLONG, not long double.
4921 (convert_time_raw): Delete.
4922 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4923 (initialize_utc_base): New function.
4924 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4925 (convert_from_time_t): Use initialize_utc_base; compute result with
4926 64-bit arithmetic.
4927 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4928
c4605e09
EZ
49292009-01-03 Eli Zaretskii <eliz@gnu.org>
4930
9acef61c 4931 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4932 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4933 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4934 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4935 [!subprocesses]: Define.
4936 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4937 (Flist_system_processes, Fsystem_process_attributes)
4938 [!subprocesses]: Call list_system_processes and
4939 system_process_attributes instead of returning Qnil.
4940
9acef61c
JB
4941 * dosfns.c (system_process_attributes, list_system_processes):
4942 New functions.
c4605e09
EZ
4943
4944 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4945
4946 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4947 Don't use the default (no-op) implementation.
4948
8b7d0a16
JR
49492009-01-03 Jason Rumney <jasonr@gnu.org>
4950
a6d46bc1
JR
4951 * keyboard.c (parse_modifiers_uncached): Wheel events are
4952 clicks (bug#687).
4953
8b7d0a16
JR
4954 * w32term.c (x_query_colors, x_query_color): New functions.
4955
4956 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4957 (svg_load_image): Cast returned pointers from dynamically loaded
4958 functions. Eliminate W32 specific code.
4959
bfe11752
DN
49602009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4961
89e2438a
DN
4962 * nsfns.m (x_set_foreground_color, x_set_background_color)
4963 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4964 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4965 x_ prefix instead of ns_. Update references.
4966 (syms_of_nsfns): Add a FIXME comment.
4967
4968 * nsterm.m (x_set_cursor_type): New prototype.
4969 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4970
bfe11752
DN
4971 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4972 for Solaris instead of incorrectly providing Qutime and Qcutime.
4973
031da700
EZ
49742009-01-02 Eli Zaretskii <eliz@gnu.org>
4975
4976 * w32.c (process_times): Compute sum of utime and stime.
4977 (system_process_attributes): Add Qtime to the alist.
4978
4979 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4980 and add them to the alist.
4981
4982 * process.c (top level) <Qtime, Qctime>: New variables.
4983 (syms_of_process): staticpro them.
4984 (Fsystem_process_attributes): Add their documentation to the doc
4985 string.
4986
4987 * process.h: Declare Qtime and Qctime.
4988
df23bf08
JR
49892009-01-02 Jason Rumney <jasonr@gnu.org>
4990
9acef61c 4991 * image.c (Qgobject): New symbol.
df23bf08
JR
4992 (syms_of_image): Initialize it.
4993 (init_svg_functions): Load some functions from gobject library.
4994
5bbdf7aa
DN
49952009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4996
4997 * frame.c (make_terminal_frame): Remove redundant code and useless
4998 block.
4999
63136da6
AS
50002009-01-01 Andreas Schwab <schwab@suse.de>
5001
5002 * process.c (conv_sockaddr_to_lisp): Add workaround for
5003 getsockname bug on BSD.
5004
9ef69046
CY
50052009-01-01 Chong Yidong <cyd@stupidchicken.com>
5006
d6fafbe0
CY
5007 * xfns.c (x_create_tip_frame): Set border width of the X window.
5008
51d861de 5009 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5010
f9c34147
JR
50112009-01-01 Jason Rumney <jasonr@gnu.org>
5012
9acef61c 5013 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5014 Don't block input, as per earlier xterm.c changes.
5015
f5497e45
AR
50162008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5017
5018 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5019 (ns_appkit_version_int): New function.
5020 (x-server-version): Use ns_appkit_version_int and follow 21+
5021 convention of returning 3 integers.
5022
c19cab20
KH
50232008-12-30 Kenichi Handa <handa@m17n.org>
5024
5025 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5026 (CHAR_SURROGATE_PAIR_P): New macro.
5027
5028 * font.h (struct font_driver): New member get_variation_glyphs.
5029
9acef61c 5030 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5031 (Ffont_variation_glyphs): New function.
5032 (syms_of_font): Defsubr it.
5033
5034 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5035 ftfont_variation_glyphs.
5036 (setup_otf_gstring): New function.
5037 (ftfont_drive_otf): Use it.
5038 (ftfont_shape_by_flt): Handle variation selector.
5039 (ftfont_variation_glyphs): New function.
5040
28cd591f
MR
50412008-12-30 Martin Rudalics <rudalics@gmx.at>
5042
5043 * frame.c (Vemacs_iconified): Remove.
5044
7f714baf
JR
50452008-12-30 Jason Rumney <jasonr@gnu.org>
5046
5047 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5048 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5049
9d2d22ab
CY
50502008-12-30 Chong Yidong <cyd@stupidchicken.com>
5051
5052 * indent.c (Fvertical_motion): Don't advance iterator if we have
5053 reseated to the desired position.
5054
5055 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5056 checking for pos match.
5057
545312c2
KH
50582008-12-30 Kenichi Handa <handa@m17n.org>
5059
1ede3eb6
KH
5060 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5061 just get the low 8-bit of the code.
5062
545312c2
KH
5063 * font.c (font_intern_prop): Validate str as multibyte.
5064
bd7bbf29
DN
50652008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5066
31e0750e
DN
5067 * dispextern.h (struct face): Move lface and hash from the middle
5068 of bitfields.
5069
bd7bbf29
DN
5070 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5071
b5672e7c
DN
50722008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5073
5074 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5075 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5076 instead of intervals.h.
5077
d704470f
AS
50782008-12-26 Andreas Schwab <schwab@suse.de>
5079
5080 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5081 cons.
5082
54b33868
MR
50832008-12-26 Martin Rudalics <rudalics@gmx.at>
5084
5085 * textprop.c (Qminibuffer_prompt): New variable.
5086 (syms_of_textprop): Initialize it.
5087 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5088 in minibuffer-prompt face. (Bug#1662)
5089
40b615d6
JR
50902008-12-25 Jason Rumney <jasonr@gnu.org>
5091
5092 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5093
baae5c2d
JR
50942008-12-24 Jason Rumney <jasonr@gnu.org>
5095
5096 * ralloc.c (r_alloc_reset_variable): New function.
5097
5098 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5099 record of what points where. (Bug#716)
baae5c2d 5100
a9051c88
DN
51012008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5102
5103 * minibuf.c (read_minibuf): Follow the non-interactive case when
5104 running as a daemon, before detaching.
5105
8b146312
AS
51062008-12-22 Andreas Schwab <schwab@suse.de>
5107
5108 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5109 * gtkutil.c (free_widget_value): Use xfree instead of free.
5110
56f2de10
MR
51112008-12-22 Martin Rudalics <rudalics@gmx.at>
5112
5113 * frame.c (delete_frame): New function derived from
5114 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5115 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5116 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5117 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5118 * frame.h: Extern delete_frame.
5119 * window.c (window_loop):
5120 * terminal.c (delete_terminal):
5121 * xterm.c (x_connection_closed):
5122 * xfns.c (Fx_hide_tip):
9acef61c 5123 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5124
1fc200d6
JR
51252008-12-21 Jason Rumney <jasonr@gnu.org>
5126
5127 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5128 when character maps to .notdef character.
5129
5e252df2
SM
51302008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5131
5132 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5133
99b72cc4
JR
51342008-12-20 Jason Rumney <jasonr@gnu.org>
5135
5136 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5137 a graphical frame on Windows. (Bug#1325)
99b72cc4 5138
acc49a52
JD
51392008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5140
5141 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5142
6ea15123
CY
51432008-12-20 Chong Yidong <cyd@stupidchicken.com>
5144
5145 * minibuf.c (Fread_buffer): Doc fix.
5146
b2dab6c8
JR
51472008-12-20 Jason Rumney <jasonr@gnu.org>
5148
54ea0c87 5149 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5150 server name in UNC paths. (Bug#719)
54ea0c87 5151
b2dab6c8 5152 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5153 charbuf. (Bug#1035)
b2dab6c8 5154
6d1921be
DN
51552008-12-19 Daniel Engeler <engeler@gmail.com>
5156
5157 * sysdep.c (serial_configure): Fix typo.
5158
53934c98
DN
51592008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5160
5161 * sysdep.c: Include alloca.h.
f4f634e8
DN
5162 (system_process_attributes): Add implementation for Solaris.
5163
5164 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5165
06e111a6
DN
51662008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5167
5168 Reorganize implementation of Flist_system_processes and
5169 Fsystem_process_attributes. No functional changes.
5170 * process.c: Don't #include pwd.h, grp.h and limits.h.
5171 (Flist_system_processes): Just call list_system_processes.
5172 (Fsystem_process_attributes): Just call system_process_attributes.
5173 (procfs_list_system_processes, time_from_jiffies)
5174 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5175 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5176
5177 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5178 (list_system_processes): Rename from
5179 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5180 Provide a do nothing implementation.
5181 (system_process_attributes): Rename from
5182 procfs_list_system_processes.
5183 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5184 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5185
5186 * w32.c (list_system_processes): Rename from
5187 w32_list_system_processes.
5188 (system_process_attributes): Rename from
5189 w32_system_process_attributes.
5190
5191 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5192
5193 * process.h (w32_list_system_processes)
5194 (w32_system_process_attributes): Remove.
362654a6
JB
5195 (list_system_processes, system_process_attributes):
5196 New prototypes.
06e111a6 5197
6a705b23
KH
51982008-12-19 Kenichi Handa <handa@m17n.org>
5199
5200 * xfont.c (xfont_decode_coding_xlfd): New function.
5201 (xfont_encode_coding_xlfd): New function.
5202 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5203 (xfont_list): Decode and encode XLFD by iso-8859-1.
5204 (xfont_match): Likewise.
5205 (xfont_list_family): Likewise.
5206 (xfont_open): Likewise.
5207
d66c0241 5208 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5209 names are utf-8.
5210
d66c0241 5211 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5212 names are utf-8.
5213
5a130941
JD
52142008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5215
5216 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5217 changed.
bfd20325
JD
5218 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5219 clicked on a detached tool bar button.
5a130941 5220
fd95644b
DN
52212008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5222
5223 * emacs.c (main): Print and error and exit when no data is read
5224 from the pipe.
5225
e6eee6ae
JR
52262008-12-17 Jason Rumney <jasonr@gnu.org>
5227
5228 * w32font.c (w32font_has_char): Always return -1.
5229
a35dd56b
KH
52302008-12-16 Kenichi Handa <handa@m17n.org>
5231
5232 * font.c (font_open_entity): Fix previous change.
5233
0e3635c2
DN
52342008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5235
5236 * process.c: Include <limits.h>.
5237
d4835507 52382008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5239
5240 * font.c (font_update_drivers): Fix mistake in reconstructing the
5241 driver list.
5242
52432008-12-16 Chong Yidong <cyd@stupidchicken.com>
5244
5245 * font.c (font_clear_cache): Fix format of font cache data.
5246
e2cbc401
CY
52472008-12-15 Chong Yidong <cyd@stupidchicken.com>
5248
5249 * xftfont.c (xftfont_open): Free Xft font pattern if
5250 XftFontOpenPattern fails.
5251
5252 * xterm.c (x_free_frame_resources): Remove extraneous call to
5253 free_frame_faces.
5254
b131d535
CY
52552008-12-13 Chong Yidong <cyd@stupidchicken.com>
5256
5257 * xterm.c (x_delete_display): Move xim_close_dpy call to
5258 x_delete_terminal.
5259 (x_delete_terminal): Call xim_close_dpy.
5260
e6df5336
JR
52612008-12-13 Jason Rumney <jasonr@gnu.org>
5262
5263 * w32font.c (intern_font_name): New function.
5264 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5265 (w32font_open_internal, Fx_select_font): Decode font name.
5266 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5267
5268 * w32font.h (intern_font_name): Declare new function.
5269
5270 * w32uniscribe.c (add_opentype_font_name_to_list):
5271 Use intern_font_name.
5272
20d68145
CY
52732008-12-13 Chong Yidong <cyd@stupidchicken.com>
5274
9f2554de
CY
5275 * frame.c (Fdelete_frame): Call free_font_driver_list.
5276
3d9bec9a
CY
5277 * font.c (free_font_driver_list): Implement missing function.
5278
20d68145
CY
5279 * w32term.c (w32_term_init): Don't initialize the image cache
5280 here; it will be done in init_frame_faces.
5281
5282 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5283 (struct x_display_info): Remove unused member null_pixel. New
5284 member xim_callback_data.
5285
5286 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5287 (xim_initialize): Save pointer to callback function data.
5288 (xim_close_dpy): Free callback function data. Call XCloseIM,
5289 reverting 2008-11-04 change by David Smith.
5290 (x_term_init): Don't initialize the image cache here; it will be
5291 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5292 (x_delete_display): Free x_dnd_atoms member.
5293
96f9306b
KH
52942008-12-13 Kenichi Handa <handa@m17n.org>
5295
6dec9044
JB
5296 * font.c (font_rescale_ratio): Moved from xfaces.c.
5297 Argument type changed. Handle a font-spec too.
96f9306b 5298 (font_score): Check Vface_font_rescale_alist.
6dec9044 5299 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5300
5301 * xfaces.c (font_rescale_ratio): Moved to font.c.
5302
8d5b4964
CY
53032008-12-13 Chong Yidong <cyd@stupidchicken.com>
5304
5305 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5306
e6df5336
JR
53072008-12-12 Jason Rumney <jasonr@gnu.org>
5308
5309 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5310 Vwindow_system_version to the real w32 major version.
5311
97c6058a
DN
53122008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5313
5314 * term.c (init_tty): Move setting the terminal name before the
5315 potential user: maybe_fatal.
5316
ec4e88d7
CY
53172008-12-11 Chong Yidong <cyd@stupidchicken.com>
5318
d4835507
JB
5319 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5320 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5321
b4233ec9
JR
53222008-12-11 Jason Rumney <jasonr@gnu.org>
5323
8ec71e23 5324 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5325 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5326
b4233ec9 5327 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5328 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5329
011a0143
JB
53302008-12-11 Juanma Barranquero <lekktu@gmail.com>
5331
5332 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5333
3c309f34
JB
53342008-12-11 Juanma Barranquero <lekktu@gmail.com>
5335
5336 * process.c (Fsystem_process_attributes, syms_of_process):
5337 Fix typo in name of Ssystem_process_attributes.
5338 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5339
fedc6ab5
JB
53402008-12-11 Juanma Barranquero <lekktu@gmail.com>
5341
5342 * syntax.c (Fmodify_syntax_entry): Doc fix.
5343
ba3de0e8
JB
53442008-12-10 Juanma Barranquero <lekktu@gmail.com>
5345
5346 * font.c (Ffont_spec): Move usage to end of docstring.
5347
174f1c74
JR
53482008-12-10 Jason Rumney <jasonr@gnu.org>
5349
5350 * w32font.c (Qcham): New symbol.
5351 (font_supported_scripts): Add cham, and comments for other new
5352 scripts in bitfield from OpenType spec.
9d32f818
JR
5353 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5354 contain characters beyond the bmp.
174f1c74 5355
7b649478
KH
53562008-12-10 Kenichi Handa <handa@m17n.org>
5357
5358 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5359 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5360 Qunicode_sip.
5361
2133e2d1
JB
53622008-12-10 Juanma Barranquero <lekktu@gmail.com>
5363
5364 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5365 (Fcoding_system_put): Use QCdefault_char.
5366 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5367
9af886ee
CY
53682008-12-09 Chong Yidong <cyd@stupidchicken.com>
5369
74d819eb
CY
5370 * xftfont.c (syms_of_xftfont): Fix typo.
5371
4ccfa1c0 5372 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5373
7c19d3ae
DN
53742008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5375
5376 * emacs.c (main): Close daemon_pipe on exec.
5377
567826bb
CY
53782008-12-08 Chong Yidong <cyd@stupidchicken.com>
5379
5380 * termchar.h (struct tty): New members termcap_term_buffer and
5381 termcap_strings_buffer.
5382
5383 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5384 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5385 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5386 All callers changed.
5387 (init_tty): Store termcap data and string buffers in new struct
5388 tty members termcap_term_buffer and termcap_strings_buffer.
5389 (delete_tty): Free them.
4ccfa1c0 5390 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5391
aa96c42b
SZ
53922008-12-07 Seiji Zenitani <zenitani@mac.com>
5393
5394 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5395 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5396
b7e1d896
CY
53972008-12-06 Chong Yidong <cyd@stupidchicken.com>
5398
5399 * coding.c (make_conversion_work_buffer): Disable buffer
5400 modification hooks in the work buffer.
5401
b5ec91a5
EZ
54022008-12-05 Eli Zaretskii <eliz@gnu.org>
5403
5404 * process.c (procfs_system_process_attributes): If `nread' has a
5405 negative value, assign zero to it.
5406
a5d2a52b
CY
54072008-12-05 Chong Yidong <cyd@stupidchicken.com>
5408
68c5540b 5409 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5410
7bf1bb21
KH
54112008-12-05 Kenichi Handa <handa@m17n.org>
5412
5413 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5414 second character is a combining character.
5415
2fdc7d00
EZ
54162008-12-05 Eli Zaretskii <eliz@gnu.org>
5417
5418 * process.c (procfs_system_process_attributes): Don't use cmd,
5419 cmdsize, and q without initializing them first.
5420
bf6bfba8
JR
54212008-12-04 Jason Rumney <jasonr@gnu.org>
5422
5423 * w32font.c (w32font_draw): Initialize orig_clip before getting
5424 it, and delete it when finished.
5425
a3b1a468
DN
54262008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5427
5428 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5429 case when running as a daemon before detaching.
5430
8b8be8eb
JB
54312008-12-03 Juanma Barranquero <lekktu@gmail.com>
5432
805f2638 5433 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5434
b1bde622
KH
54352008-12-03 Kenichi Handa <handa@m17n.org>
5436
e500c47d
KH
5437 * font.c (font_at): Set `multibyte' at first.
5438
ca516334
KH
5439 * coding.c (decode_coding_charset): Check type of an element of
5440 vector VALIDS.
7bf1bb21 5441 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5442
4ccfa1c0 5443 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5444 (font_for_char): Likewise.
5445
1e5ecd37
CY
54462008-12-03 Chong Yidong <cyd@stupidchicken.com>
5447
d5b01609 5448 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5449 (font_update_lface): Handle fonts with corrupted size specs,
5450 i.e. non-int and non-float.
d5b01609 5451
11e3a6e4 5452 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5453 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5454 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5455
ab06788b
CY
5456 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5457
1e5ecd37 5458 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5459 underline_minimum_offset for underline position.
1e5ecd37 5460
63c125ab
DN
54612008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5462
5463 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5464
5465 * character.c (c_string_width): Specify the type for LEN.
5466
3a8406e1
KH
54672008-12-03 Kenichi Handa <handa@m17n.org>
5468
4ccfa1c0 5469 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5470 (decode_coding_utf_8): Likewise.
4ccfa1c0 5471 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5472 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5473
651df7d9
CY
54742008-12-02 Chong Yidong <cyd@stupidchicken.com>
5475
5476 * keyboard.c (make_lispy_position): Only use PT if the selected
5477 window is current.
5478
1f625c6c
AS
54792008-12-02 Andreas Schwab <schwab@suse.de>
5480
f7741ce9
AS
5481 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5482
1f625c6c
AS
5483 * doprnt.c (doprnt1): Fix size of charbuf.
5484
92bc2678
CY
54852008-12-02 Chong Yidong <cyd@stupidchicken.com>
5486
5487 * keyboard.c (timer_check): Revert last change.
5488
93b9e8cc
JB
54892008-12-02 Juanma Barranquero <lekktu@gmail.com>
5490
5491 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5492
fd7a37d5
JB
54932008-12-01 Juanma Barranquero <lekktu@gmail.com>
5494
5495 * makefile.w32-in: Update dependencies.
5496 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5497
c115043b
AS
54982008-12-01 Andreas Schwab <schwab@suse.de>
5499
5500 * font.c (register_font_driver): Use xmalloc.
5501 (font_put_frame_data): Likewise.
5502
f5668d2a
CY
55032008-12-01 Chong Yidong <cyd@stupidchicken.com>
5504
860d96be
CY
5505 * xfaces.c (realize_x_face): Make abort condition clearer.
5506
f5668d2a
CY
5507 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5508
379c17e7
CY
55092008-11-30 Chong Yidong <cyd@stupidchicken.com>
5510
5511 * keyboard.c (timer_check): After a timer runs, ensure that the
5512 selected window's buffer is current.
5513
35f36d65
JB
55142008-11-30 Juanma Barranquero <lekktu@gmail.com>
5515
f952c61c
JB
5516 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5517 It was accidentally restored by the Unicode merge.
5518
35f36d65
JB
5519 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5520
b23077df
JB
55212008-11-29 Juanma Barranquero <lekktu@gmail.com>
5522
5523 * w32proc.c: Include "coding.h".
5524 (Fw32_short_file_name): Encode filename passed to Windows API.
5525 (Fw32_long_file_name): Encode filename passed to Windows API and
5526 decode back the result. (Bug#1433)
5527
b8ebe9dd
KH
55282008-11-29 Kenichi Handa <handa@m17n.org>
5529
8cc53f96
KH
5530 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5531 not before accessing it.
5532
b8ebe9dd
KH
5533 * charset.c (Fdefine_charset_internal): After calculating
5534 min_char, max_char, and fastmap, copy the charset structure again.
5535 (encode_char): Fix the previous change.
5536
59bc82c0
SZ
55372008-11-28 Seiji Zenitani <zenitani@mac.com>
5538
5539 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5540
5541 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5542
5543 * nsterm.m (x_set_frame_alpha): New function.
5544
32247e3d
EZ
55452008-11-27 Eli Zaretskii <eliz@gnu.org>
5546
5547 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5548
b003e5ff
JB
55492008-11-27 Juanma Barranquero <lekktu@gmail.com>
5550
5551 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5552 pointer to check_face_name.
5553
708550f5
KH
55542008-11-27 Kenichi Handa <handa@m17n.org>
5555
5556 * category.h (SET_CATEGORY_SET): Call set_category_set.
5557 (set_category_set): Extern it.
5558
5559 * category.c (hash_get_category_set): New function.
5560 (Fmodify_category_entry): Adjusted for the change of
5561 char_table_ref_and_range. Call hash_get_category_set to get a
5562 category set to store in the table.
5563
5564 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5565 Funify_charset.
5566
2ae37cf0 5567 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5568 (DECODE_CHAR): Check if the decoder vector is ready.
5569 (ENCODE_CHAR): Check if the encoder char-table is ready.
5570 (maybe_unify_char): Extern it.
5571
5572 * charset.c (Vchar_unified_charset_table): Delete it.
5573 (inhibit_load_charset_map): New variable.
5574 (temp_charset_work): New variable.
5575 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5576 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5577 New macros.
5578 (load_charset_map): Meaning of control_flag changed. If
5579 inhibit_load_charset_map is nonzero, setup a table in
5580 temp_charset_work.
5581 (load_charset): New argument control_flag.
5582 (map_charset_for_dump): New function.
5583 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5584 map_charset_for_dump.
5585 (Fdefine_charset_internal): If the charset method is MAP, load
5586 mapping tables by calling load_charset.
5587 (Funify_charset): Don't load a mapping table but directly set
5588 Vchar_unify_table.
5589 (maybe_unify_char): New function.
5590 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5591 Handle the case of inhibit_load_charset_map being nonzero.
5592 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5593 Handle the case of inhibit_load_charset_map being nonzero.
5594 (Fclear_charset_maps): Just free temp_charset_work.
5595 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5596 variable.
5597
5598 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5599 change of char_table_ref_and_range.
5600 (char_table_ref_and_range): Change the meaning of argument FROM
5601 and TO. Now the caller must provide initial values for *FROM
5602 and *TO.
5603
5604 * fontset.c (fontset_add): Adjusted for the change of
5605 char_table_ref_and_range.
5606 (fontset_get_font_group): Likewise.
5607 (Ffontset_info): Likewise.
5608
5609 * keymap.c (describe_vector): Adjusted for the change of
5610 char_table_ref_and_range. For char-table, put boundary between
5611 non-ASCII and 8-bit characters.
5612
5613 * print.c (print_object): For bool-vector, delete unnecessary
5614 check of ASCII_BYTE_P.
5615
9196133b
JR
56162008-11-26 Jason Rumney <jasonr@gnu.org>
5617
5618 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5619 leading in font height. (Bug#879)
9196133b 5620
9f688acf
GM
56212008-11-26 Glenn Morris <rgm@gnu.org>
5622
5623 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5624 redefinition with ifdef. (Bug#1383)
5625
90d19aff
AR
56262008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5627
5628 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5629
4ccfa1c0 56302008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5631
5632 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5633 New EmacsView methods.
5634 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
5635 Fixes bug #1048,1357,1414.
5636
56372008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5638
5639 Fix bug #1362.
5640 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
5641 is not an indexed color.
5642 * nsterm.m (free_indexed_color): Add argument checking.
5643 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
5644
e7d5ecb3
CY
56452008-11-24 Chong Yidong <cyd@stupidchicken.com>
5646
5647 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
5648 Document confirm-after-completion value for
5649 minibuffer-completion-confirm.
5650
c285743c
JR
56512008-11-24 Jason Rumney <jasonr@gnu.org>
5652
5653 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
5654 warning.
5655
b0857706
JR
56562008-11-23 Jason Rumney <jasonr@gnu.org>
5657
5658 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
5659 restored before returning.
5660
5661 * w32font.c (check_face_name): New function.
5662 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 5663 fonts. (Bug#642)
b0857706 5664
ee50ff07
MR
56652008-11-22 Martin Rudalics <rudalics@gmx.at>
5666
5667 * buffer.c (Fswitch_to_buffer): Reword and mention new option
5668 confirm-nonexistent-file-or-buffer in doc-string.
5669
b8ff72fa
SM
56702008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
5671
5672 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
5673 Fix copy/paste typo. Add checks.
5674
cee53ed4
KH
56752008-11-21 Kenichi Handa <handa@m17n.org>
5676
5677 * coding.c (detect_coding_iso_2022): Reject invalid composition
5678 sequence.
5679 (DECODE_COMPOSITION_START): If the current source is the last
5680 block, and the current composition doesn't end, regard this
5681 sequence as invalid.
5682 (decode_coding_iso_2022): Handle invalid composition sequence.
5683
f6ef1e65
MR
56842008-11-20 Martin Rudalics <rudalics@gmx.at>
5685
5686 * window.c (coordinates_in_window): Don't return
5687 ON_VERTICAL_BORDER for the rightmost position of a mode/header
5688 line when the window is not the rightmost one. (Bug#1372)
5689
e08b1705
MR
56902008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
5691
5692 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
5693
ad98e89f
EZ
56942008-11-15 Eli Zaretskii <eliz@gnu.org>
5695
5696 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
5697 and bright_bg if noninteractive is non-zero.
5698
fb098a4b
CY
56992008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5700
5701 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
5702 x_draw_glyph_string_background.
5703
5704 * w32term.c (x_draw_glyph_string): Likewise.
5705
ce952b6e
CY
57062008-11-15 Chong Yidong <cyd@stupidchicken.com>
5707
5708 * xterm.c (x_draw_glyph_string): Stop drawing the background of
5709 the next glyph string once past the overhang width.
5710
5711 * nsterm.m (ns_draw_glyph_string): Likewise.
5712
5713 * w32term.c (x_draw_glyph_string): Likewise.
5714
26ea7079
CY
57152008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
5716
5717 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
5718 double file close.
5719
1c33c906
MR
57202008-11-14 Martin Rudalics <rudalics@gmx.at>
5721
5722 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
5723 dedicated status of window before attempting to display another
5724 buffer in it.
5725
8fc29035
JB
57262008-11-14 Juanma Barranquero <lekktu@gmail.com>
5727
5728 * msdos.c (Fmsdos_long_file_names):
5729 (syms_of_msdos) <dos-unsupported-char-glyph>:
5730 * dosfns.c (Fint86): Fix typos in docstrings.
5731
55fb4286
EZ
57322008-11-14 Eli Zaretskii <eliz@gnu.org>
5733
5734 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
5735
3fda0315
KY
57362008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
5737
5738 * puresize.h (BASE_PURESIZE): Increase to 1260000.
5739
7e849c17
CY
57402008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
5741
5742 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
5743
5744 * frame.h: Negative alpha means "don't touch".
5745
5746 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
5747
5748 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
5749
b9fd67bd
DN
57502008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
5751
5752 * hftctl.c:
5753 * chpdef.h:
5754 * acldef.h: Remove files used only for systems no longer supported.
5755
5756 * Makefile.in: Fix .o alphabetical ordering.
5757 (hftctl.o): Remove dependency, file removed.
5758 (keymap.o, print.o): Depend on charset.h.
5759
d5998e03
KH
57602008-11-10 Kenichi Handa <handa@m17n.org>
5761
2ae37cf0 5762 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 5763
be70e183
CY
57642008-11-08 Chong Yidong <cyd@stupidchicken.com>
5765
5766 * dired.c (file_name_completion): If completion_ignore_case is
5767 enabled, ignore case when checking completion-regexp-list.
5768
7cf94eac
EZ
57692008-11-08 Eli Zaretskii <eliz@gnu.org>
5770
5771 * vm-limit.c (get_lim_data): Fix last change.
5772
ee107a89
KH
57732008-11-08 Kenichi Handa <handa@m17n.org>
5774
5775 * character.c (Fget_byte): New function.
5776 (syms_of_character): Defsubr Fget_byte.
5777
5fd15622
CY
57782008-11-07 Chong Yidong <cyd@stupidchicken.com>
5779
5780 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
5781 cursor position is valid after scrolling.
5782
13d62fad
JB
57832008-11-06 Juanma Barranquero <lekktu@gmail.com>
5784
5785 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
5786
a1dd2936
GM
57872008-11-06 Glenn Morris <rgm@gnu.org>
5788
5789 * xterm.c (handle_one_xevent): Don't let popup menus cause
5790 mouse-autoselect-window related window switching. (Bug#1261)
5791
860cd236
CY
57922008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5793
5794 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5795
653a3150
AS
57962008-11-04 Andreas Schwab <schwab@suse.de>
5797
5798 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5799
870f5cac
CY
58002008-11-03 Chong Yidong <cyd@stupidchicken.com>
5801
5802 * xfns.c (Fx_wm_set_size_hint): New function.
5803
1e02f3cb
MR
58042008-11-03 Martin Rudalics <rudalics@gmx.at>
5805
5806 * textprop.c (Fprevious_single_char_property_change): Return 0
5807 when there's no change in a string. (Bug#1301)
5808
e630dfc6
MR
58092008-11-02 Martin Rudalics <rudalics@gmx.at>
5810
5811 * frame.c (do_switch_frame): New argument NORECORD passed to
5812 Fselect_window.
5813 (Fselect_frame): New argument NORECORD passed to
5814 do_switch_frame.
5815 (Fset_frame_selected_window): New argument NORECORD passed to
5816 Fselect_frame.
5817 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5818 in call of do_switch_frame.
5819 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5820 Handle NORECORD argument in call of Fselect_frame.
5821 * lisp.h (do_switch_frame, Fselect_frame)
5822 (Fset_frame_selected_window): Adjust declarations.
5823 * window.c (select_frame_norecord): New function.
5824 (run_window_configuration_change_hook): Use it and call
5825 Fselect_frame with NORECORD set.
5826 (Fselect_window): Pass NORECORD to Fselect_frame.
5827 (Fset_window_configuration): Handle NORECORD argument in call of
5828 do_switch_frame.
5829 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5830 Fset_frame_selected_window.
5831 * keyboard.c (command_loop_1): Handle NORECORD in call of
5832 Fselect_frame (currently ifdefd).
5833
9020b223
GM
58342008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5835
5836 * emacs.c (USAGE2): Untabify.
5837
793ffee8
SM
58382008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5839
5840 * composite.c (fill_gstring_header): Fix copy/paste typo.
5841
ab6d1131
MR
58422008-10-31 Martin Rudalics <rudalics@gmx.at>
5843
5844 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5845 (Fother_window): Rename argument and rewrite doc-string.
5846 (select_window_norecord): Fix return value. (Bug#1276)
5847
601a9cf1
JB
58482008-10-30 Juanma Barranquero <lekktu@gmail.com>
5849
5850 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5851 new frames overriding foreground for tooltips. Based on similar patch
5852 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5853
813b0652
CY
58542008-10-29 Chong Yidong <cyd@stupidchicken.com>
5855
5856 * emacs.c (Fdaemon_initialized): Initialize nfd.
5857
4414f58f
MR
58582008-10-29 Martin Rudalics <rudalics@gmx.at>
5859
5860 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5861 (Fwindow_text_height): Clarify doc-strings.
5862 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5863 doc-string of window-scroll-functions.
5864
ecdcaa09
RS
58652008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5866
5867 * category.c (syms_of_category): Fix typo in docstring.
5868
23fe745a
JB
58692008-10-28 Juanma Barranquero <lekktu@gmail.com>
5870
5871 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5872 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5873 Fix typos in docstrings.
5874
ff808935
DN
58752008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5876
5877 * emacs.c (daemon_pipe): Make non-static.
5878 (IS_DAEMON): Move definition ...
5879 * lisp.h (IS_DAEMON): ... here.
5880 (daemon_pipe): Declare.
5881 (is_daemon): Remove.
5882 * dispnew.c (init_display): Use IS_DAEMON.
5883
fc012771
SM
58842008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5885
5886 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5887 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5888
5889 * emacs.c (is_daemon): Remove.
5890 (main): Don't set is_daemon.
5891 (IS_DAEMON): New macro.
5892 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5893 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5894 parent exits.
5895 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5896
d8bdbe6f
CY
58972008-10-27 Chong Yidong <cyd@stupidchicken.com>
5898
d1a072bf
CY
5899 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5900 over-sized glyph, draw it with the default glyph width.
5901
e2e325aa
CY
5902 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5903 glyph, draw it with the default glyph width.
5904
5905 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5906 glyph, draw it with the default glyph width.
5907
d8bdbe6f
CY
5908 * xdisp.c (try_scrolling): When computing the distance from the
5909 scroll margin to PT, try moving some distance past the window
5910 bottom before giving up.
5911
7bfac547
MR
59122008-10-27 Martin Rudalics <rudalics@gmx.at>
5913
5914 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5915 (Fset_window_buffer): Explain in doc-string that a window can be
5916 "strongly" dedicated to its buffer.
5917
4ff029f6
DN
59182008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5919
5920 * emacs.c (daemon_name): New variable.
5921 (main): Deal with --daemon=SERVER_NAME.
5922 (Fdaemonp): Return a name if one was passed to --daemon.
5923
5790ef40
DN
59242008-10-26 Romain Francoise <romain@orebokech.com>
5925
f9bd0df9 5926 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5927 (main): Create a pipe before forking, make the parent exit only after
5928 the child has closed its end of the pipe. Move closing the
5929 descriptors ...
5930 (Fdaemon_initialized): ... here. New function.
5931
f5385255
SM
59322008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5933
4d632321
SM
5934 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5935 the previous unoptimized table.
5936
f5385255
SM
5937 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5938 the distinction between non-nil and non-t value of `dedicated'.
5939
6c56a0f3
CY
59402008-10-25 Chong Yidong <cyd@stupidchicken.com>
5941
5942 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5943 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5944
fec89261
MR
59452008-10-25 Martin Rudalics <rudalics@gmx.at>
5946
5947 * window.c (Fget_buffer_window, Fdelete_windows_on)
5948 (Freplace_buffer_in_windows): Make buffer argument optional and
5949 rename to buffer_or_name.
5950
34fcddd0
CY
59512008-10-24 Chong Yidong <cyd@stupidchicken.com>
5952
f5385255
SM
5953 * xdisp.c (handle_single_display_spec, handle_display_prop):
5954 Undo 2005-05-16 change.
34fcddd0
CY
5955 (handle_stop): Pop iterator if it's loaded with an empty string.
5956 (get_overlay_strings_1): Don't save iterator if it's loaded with
5957 an empty string (bug#1201).
5958
064766f2
KH
59592008-10-24 Kenichi Handa <handa@m17n.org>
5960
5961 * ftfont.c (ftfont_otf_features): Fix previous change.
5962 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5963 calling ftfont_otf_features.
5964
f9bd0df9 59652008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5966
5967 * font.c (font_match_p): Fix for the case that a vector of
5968 characters is in script-representative-chars.
5969
1dae9197
MA
59702008-10-24 Michael Albinus <michael.albinus@gmx.de>
5971
5972 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5973 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5974 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5975 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 5976 macro. (Bug#1186)
1dae9197 5977
f9bd0df9 59782008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5979
5980 * s/sol2-10.h: New file.
5981
878a4584
JB
59822008-10-23 Juanma Barranquero <lekktu@gmail.com>
5983
5984 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5985 poor beast has survived 9+ years and the jump from xterm.c!).
5986
cd265ca6
MR
59872008-10-23 Martin Rudalics <rudalics@gmx.at>
5988
5989 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5990 Reword doc-string.
f5385255 5991 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5992
472a4dc9
JB
59932008-10-23 Juanma Barranquero <lekktu@gmail.com>
5994
5995 * character.c (syms_of_character) <script-representative-chars>:
5996 <unicode-category-table>: Doc fixes.
5997
159bd5a2
NF
59982008-10-23 Noah Friedman <friedman@splode.com>
5999
6000 * coding.c (make_conversion_work_buffer): Check that
6001 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6002 Fget_buffer_create.
6003
49f9c344
KH
60042008-10-23 Kenichi Handa <handa@m17n.org>
6005
6006 * font.c (font_add_log): Check the values of extra properties.
6007
12bb3111
MR
60082008-10-22 Martin Rudalics <rudalics@gmx.at>
6009
6010 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6011 Reword doc-string.
6012 (Fset_window_parameter): Use NILP.
6013 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6014 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6015
bbeb4e99
JB
60162008-10-22 Juanma Barranquero <lekktu@gmail.com>
6017
6018 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6019
60202008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6021
6022 * nsfns.m (ns_appkit_version): New function.
6023 (x-server-version): Use it.
6024 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6025 (x-server-vendor): Don't check_ns().
6026
6027 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6028
a9b555d3
JB
60292008-10-22 Juanma Barranquero <lekktu@gmail.com>
6030
6031 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6032 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6033
4626499f
KH
60342008-10-22 Kenichi Handa <handa@m17n.org>
6035
e3681952
KH
6036 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6037 scripts.
6038
4626499f
KH
6039 * category.c (word_boundary_p): Check scripts instead of charset.
6040 Handle nil value in word-separating-categories and
6041 word-combining-categories.
6042 (syms_of_category): Fix docstrings of word-separating-categories
6043 and word-combining-categories.
6044
1560f91a
EZ
60452008-10-21 Eli Zaretskii <eliz@gnu.org>
6046
6047 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6048 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6049
f4668441
MR
60502008-10-21 Martin Rudalics <rudalics@gmx.at>
6051
6052 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6053 Rename arg "buffer" to "buffer_or_name".
6054 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6055 it optional.
6056 (no_switch_window): Remove since the return value is not used.
a9b555d3 6057 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6058 Consider window as dedicated when Fwindow_dedicated_p returns a
6059 non-nil value.
6060 * lisp.h: Remove prototype for no_switch_window.
6061
fd75ddb2
JD
60622008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6063
6064 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6065 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6066
07295713
KH
60672008-10-21 Kenichi Handa <handa@m17n.org>
6068
6069 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6070 check Vlatin_extra_code_table.
6071
712adc82
EZ
60722008-10-20 Eli Zaretskii <eliz@gnu.org>
6073
6074 * fileio.c (Fset_file_modes): Doc fix.
6075
f549eb0b
MA
60762008-10-19 Michael Albinus <michael.albinus@gmx.de>
6077
6078 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6079 in arrays.
6080
aac0c6e3
MR
60812008-10-19 Martin Rudalics <rudalics@gmx.at>
6082
6083 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6084 Mention kill-buffer in doc-string.
6085 (Fset_window_buffer): Reinsert tem check removed in last commit.
6086 (Fenlarge_window, Fshrink_window): Have argument names and
6087 doc-string follow Elisp manual more closely.
6088
60892008-10-18 Eli Zaretskii <eliz@gnu.org>
6090
6091 * fileio.c (Fset_file_modes): Doc fix.
6092
60932008-10-18 Martin Rudalics <rudalics@gmx.at>
6094
6095 * window.c (Fwindow_width, Fset_window_start)
6096 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6097 (Fdelete_windows_on, Freplace_buffer_in_windows):
6098 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6099 (Fwindow_dedicated_p): Make window argument optional.
6100 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6101 (Fset_window_buffer): Respect any non-nil dedicated value for
6102 window. Rename "buffer" argument to "buffer_or_name".
6103
61042008-10-18 Ulrich Mueller <ulm@gentoo.org>
6105
6106 * m/sh3.h: New file, machine description for SuperH.
6107
61082008-10-17 Martin Rudalics <rudalics@gmx.at>
6109
6110 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6111
61122008-10-17 Kenichi Handa <handa@m17n.org>
6113
6114 * ftfont.c (ftfont_otf_features): Fix indexing
6115 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6116
61172008-10-16 Magnus Henoch <mange@freemail.hu>
6118
6119 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6120 (Fdbus_call_method_asynchronously): Ditto.
6121 This change makes C-h f display the argument list.
6122
61232008-10-16 Chong Yidong <cyd@stupidchicken.com>
6124
6125 * fileio.c (Fexpand_file_name): Doc fix.
6126
6127 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6128 of :foreground and :background equivalent to unspecified (20.x
6129 compatibility).
6130
61312008-10-15 Eli Zaretskii <eliz@gnu.org>
6132
6133 * buffer.c (syms_of_buffer): Doc fix.
6134
61352008-10-14 Kenichi Handa <handa@m17n.org>
6136
6137 * font.c (font_clear_prop): When clearing font width, clear the
6138 average width field too.
6139
61402008-10-12 Andreas Schwab <schwab@suse.de>
6141
6142 * ftfont.c (ftfont_shape_by_flt): Make static.
6143 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6144
6145 * font.c: Don't include <m17n-flt.h>.
6146
61472008-10-10 Eli Zaretskii <eliz@gnu.org>
6148
6149 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6150
61512008-10-09 Eli Zaretskii <eliz@gnu.org>
6152
6153 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6154 away code.
6155
61562008-10-09 Chong Yidong <cyd@stupidchicken.com>
6157
6158 * dispnew.c (update_text_area): Avoid looping due to large glyph
6159 overhangs (bug#1070).
6160
61612008-10-09 Kenichi Handa <handa@m17n.org>
6162
6163 * fontset.c (face_for_char): If face->fontset is negative, just
6164 return ascii_face.
6165
f5385255
SM
6166 * font.c (font_delete_unmatched): Fix previous change.
6167 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6168
61692008-10-09 Martin Rudalics <rudalics@gmx.at>
6170
6171 * frame.c (Fraise_frame): On text-only terminals select frame in
6172 order to make it visible. (Bug#1061)
6173
61742008-10-08 Chong Yidong <cyd@stupidchicken.com>
6175
6176 * fontset.c (fontset_find_font): Check frame validity.
6177
61782008-10-07 Chong Yidong <cyd@stupidchicken.com>
6179
a9b555d3 6180 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6181 (xg_display_close): Allow Emacs to close all displays (bug#985).
6182
61832008-10-06 Andreas Schwab <schwab@suse.de>
6184
f5385255 6185 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6186
61872008-10-06 Chong Yidong <cyd@stupidchicken.com>
6188
f5385255 6189 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6190
a9b555d3 6191 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6192
6193 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6194 during initialization.
6195
61962008-10-04 Eli Zaretskii <eliz@gnu.org>
6197
6198 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6199 whole thing on MSDOS frames as well as on a TTY.
6200
6201 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6202 well as for TTY.
6203 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6204 well as on a TTY.
6205
6206 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6207 as well as for TTY.
6208
6209 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6210
6211 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6212 MSDOS frames as well.
6213
62142008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6215
6216 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6217 correct arguments.
b71ac3dd 6218 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6219
62202008-10-03 Glenn Morris <rgm@gnu.org>
6221
6222 * emacs.c (USAGE1): Add --daemon.
6223
62242008-10-02 Eli Zaretskii <eliz@gnu.org>
6225
6226 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6227 100, so it's in percents as advertised.
6228
62292008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6230
6231 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6232 (ns_output.current_cursor, ns_output.desired_cursor)
6233 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6234 (FRAME_NEW_CURSOR_COLOR): Remove.
6235
6236 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6237 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6238 enumeration (HOLLOW_BOX_CURSOR, etc.).
6239
6240 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6241 (draw_window_cursor): Simplify code.
f5385255
SM
6242 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6243 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6244 updates manually.
a9b555d3
JB
6245 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6246 Use core Emacs cursor types.
aac0c6e3 6247
b8ff72fa 6248 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6249
62502008-10-02 Martin Rudalics <rudalics@gmx.at>
6251
6252 * process.c (Faccept_process_output): Fix doc-string.
6253
62542008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6255
6256 * gmalloc.c (__sbrk): Also define for uClibc.
6257
6258 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6259 for uClibc.
6260
62612008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6262
6263 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6264 styles.
6265 (nsfont_open): Reenable the cache.
6266
62672008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6268
6269 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6270 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6271
62722008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6273
6274 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6275 a suspended terminal.
6276
62772008-09-30 Michael Albinus <michael.albinus@gmx.de>
6278
6279 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6280
62812008-09-30 Eli Zaretskii <eliz@gnu.org>
6282
6283 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6284
62852008-09-30 Chong Yidong <cyd@stupidchicken.com>
6286
6287 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6288 in a continued line coincides with a line beginning.
6289
62902008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6291
6292 * nsfont.m (nsfont_trait_distance): Fix bug.
6293 (nsfont_list): Return a list rather than a vector (syncs with Handa
6294 changes of 2008-05-14).
6295 (nsfont_open): Improve logging.
6296
62972008-09-29 Andreas Schwab <schwab@suse.de>
6298
6299 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6300
63012008-09-28 Martin Rudalics <rudalics@gmx.at>
6302
6303 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6304 name as char-resolve-modifiers.
6305 Reported by: Markus Triska <markus.triska@gmx.at>
6306
63072008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6308
6309 * dispnew.c (init_display): Return earlier when running as a daemon.
6310
63112008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6312
6313 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6314
63152008-09-27 Eli Zaretskii <eliz@gnu.org>
6316
6317 * composite.c (Fcomposition_get_gstring)
6318 (Fcompose_region_internal, Fcompose_string_internal)
6319 (Ffind_composition_internal): Doc fix.
6320 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6321 (syms_of_composite) <auto-composition-function>: Doc fix.
6322 (syms_of_composite) <composition-function-table>: Doc fix.
6323
63242008-09-25 Chong Yidong <cyd@stupidchicken.com>
6325
6326 * search.c (wordify): New argument for lax word-ends.
6327 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6328
63292008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6330
6331 * lisp.h (is_daemon): Declare.
6332 * dispnew.c (init_display): Do not try to initialize the terminal
6333 when running as a daemon.
6334
63352008-09-22 Chong Yidong <cyd@stupidchicken.com>
6336
6337 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6338 x_display_pixel_height.
6339
63402008-09-22 Martin Rudalics <rudalics@gmx.at>
6341
6342 * undo.c (record_point): Don't call Fundo_boundary for first
6343 change. (Bug#731)
6344
63452008-09-22 Juanma Barranquero <lekktu@gmail.com>
6346
6347 * emacs.c (Fdaemonp): Doc fix.
6348
63492008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6350
6351 * emacs.c (main): Place #ifdef in the proper place.
6352
63532008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6354
6355 * emacs.c (standard_args): Add --daemon.
6356 (main): Disconnect from the terminal when --daemon is passed.
6357 (is_daemon): New variable.
6358 (Fdaemonp): New function.
6359 (syms_of_emacs): Defsubr it.
6360
63612008-09-20 Chong Yidong <cyd@stupidchicken.com>
6362
6363 * xdisp.c (get_next_display_element): Handle string display
6364 correctly when checking for the end of a box run.
6365
63662008-09-20 Glenn Morris <rgm@gnu.org>
6367
6368 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6369 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6370 (Frename_file): Avoid copying to trash if a rename involves
6371 a delete. (Bug#964).
6372
63732008-09-20 Eli Zaretskii <eliz@gnu.org>
6374
6375 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6376 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6377 frames as well as termcap frames.
6378 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6379 get_named_tty.
6380
63812008-09-19 Eli Zaretskii <eliz@gnu.org>
6382
6383 * process.c (procfs_system_process_attributes): Fix cmdline in
6384 case /proc/PID/cmdline is empty.
6385
6386 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6387 x_display_pixel_height.
6388
63892008-09-19 Juanma Barranquero <lekktu@gmail.com>
6390
6391 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6392
6393 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6394 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6395
63962008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6397
6398 * dispextern.h (struct it): Move line_wrap away from the middle of
6399 bitfields. Move voffset in struct iterator_stack_entry after the
6400 bitfields. Move tab_width near after another short.
6401
64022008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6403
6404 * frame.h (struct frame): Move alpha from the middle of bitfields.
6405
6406 * window.h (struct window): Move frozen_window_start_p after the
6407 rest of the bitfields to reduce padding.
6408
64092008-09-18 Chong Yidong <cyd@stupidchicken.com>
6410
6411 * xterm.h (x_display_info): Remove `height' and `width' members.
6412
6413 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6414
6415 * w32term.h (w32_display_info): Remove `height', `width',
6416 `height_in', and `width_in' members.
6417
b8ff72fa
SM
6418 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6419 New functions.
aac0c6e3
MR
6420 (x_calc_absolute_position): Use them.
6421 (x_term_init): Omit removed `height' and `width' members.
6422
b8ff72fa
SM
6423 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6424 New functions.
aac0c6e3
MR
6425 (w32_read_socket, x_calc_absolute_position): Use them.
6426 (w32_initialize_display_info, w32_term_init): Omit removed members
6427 of w32_display_info.
6428
b8ff72fa
SM
6429 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6430 New functions.
6431 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6432
b8ff72fa
SM
6433 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6434 New functions.
aac0c6e3
MR
6435 (x_calc_absolute_position): Use them.
6436 (x_term_init): Omit removed `height' and `width' members.
6437
6438 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6439 (compute_tip_xy):
6440 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6441 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6442 x_display_pixel_width.
6443
64442008-09-18 Kenichi Handa <handa@m17n.org>
6445
6446 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6447 (composition_compute_stop_pos): Fix handling of static composition.
6448 (Fcomposition_get_gstring): Check FROM and TO at first.
6449
64502008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6451
46e722a9 6452 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6453 mixup (YAILOM).
6454
64552008-09-17 Chong Yidong <cyd@stupidchicken.com>
6456
6457 * indent.c (Fvertical_motion): Use position reported by iterator
6458 instead of PT for determining screen motion (bug#943).
6459
64602008-09-17 Romain Francoise <romain@orebokech.com>
6461
6462 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6463
64642008-09-17 Kenichi Handa <handa@m17n.org>
6465
6466 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6467
6468 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6469 if necessary.
6470
64712008-09-16 Kenichi Handa <handa@m17n.org>
6472
6473 * coding.c (make_conversion_work_buffer): Avoid calling
6474 Fget_buffer_create if it is not necessary.
6475
64762008-09-15 Martin Rudalics <rudalics@gmx.at>
6477
6478 * window.c (Fselect_window): Don't update window_select_count and
6479 use_time when norecord is not nil.
6480
64812008-09-14 Kenichi Handa <handa@m17n.org>
6482
6483 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6484 specpdl_ptr.
6485
64862008-09-12 Kenichi Handa <handa@m17n.org>
6487
6488 * indent.c (scan_for_column): Don't handle automatic composition
6489 if the current buffer is not associated with a window.
6490
6491 * composite.c (composition_reseat_it): If the current buffer is
6492 not associated with a window, ignore the automatic composition.
6493 (find_automatic_composition): Likewise.
6494
64952008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6496
6497 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6498 (Fgpm_mouse_stop): Use it.
6499 * termhooks.h (close_gpm): Declare.
6500 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6501 connection if Gpm_GetEvent fails.
6502
6503 * window.c (set_window_buffer): Always preserve current-buffer.
6504
65052008-09-12 Glenn Morris <rgm@gnu.org>
6506
6507 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6508
65092008-09-11 Glenn Morris <rgm@gnu.org>
6510
6511 * charset.c (charset-map-path): Doc fix.
6512
65132008-09-10 Kenichi Handa <handa@m17n.org>
6514
6515 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6516
6517 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6518 compose a grapheme cluster with the preceding base glyph.
6519
6520 * composite.c (composition_compute_stop_pos): Fix previous change.
6521 Reset cmp_it->id to -1 at first.
6522
65232008-09-10 Glenn Morris <rgm@gnu.org>
6524
6525 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6526
65272008-09-09 Chong Yidong <cyd@stupidchicken.com>
6528
6529 * keyboard.c (read_key_sequence): Reapply translation maps when
6530 switching keyboards.
6531
65322008-09-09 Kenichi Handa <handa@m17n.org>
6533
6534 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6535 characters.
6536
6537 * composite.c (FORWARD_CHAR): Fix calculation
6538 of (POSITION).pos_byte.
6539 (composition_compute_stop_pos): Limit the search of composition to
6540 at most 500 characters ahead. If we reach the limit or find a
6541 newline, set cmp_it->ch to -2 and return 0.
6542 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6543
65442008-09-08 Kenichi Handa <handa@m17n.org>
6545
6546 * indent.c (Fvertical_motion): Be sure to set
6547 it_overshoot_expected if it.cmp_it.id is non-negative.
6548
65492008-09-07 Andreas Schwab <schwab@suse.de>
6550
6551 * callproc.c (Fcall_process): Don't hold references to string data
6552 across garbage collection. Move initialisation of new_argv down
6553 to avoid compiler bug.
6554
65552008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6556
6557 * process.c (Fsystem_process_attributes): Doc fix.
6558
65592008-09-07 Chong Yidong <cyd@stupidchicken.com>
6560
6561 * callproc.c (Fcall_process): Canonicalize current directory name.
6562
6563 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6564 iterator advances to the next line if the current line ends in a
6565 continued tab.
6566
65672008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6568
6569 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6570 member to point to cmp_from.
6571
6572 * xdisp.c: Doc fix for references to gidx data member.
6573
65742008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6575
6576 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6577
65782008-09-07 Kenichi Handa <handa@m17n.org>
6579
6580 * composite.c (FORWARD_CHAR): Check STOP after
6581 incrementing (POSITION).pos.
6582
65832008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6584
6585 * process.c (Fsystem_process_attributes): Doc fix.
6586
65872008-09-06 Chong Yidong <cyd@stupidchicken.com>
6588
6589 * keyboard.c (Ftop_level): Doc fix.
6590
65912008-09-06 Eli Zaretskii <eliz@gnu.org>
6592
6593 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6594 minibuffer, don't let lower part of menu invade the echo area.
6595
6596 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6597 "char *q" to access menu text and advance through it. Revert the
6598 change that displayed ">" instead of ASCII character 0x10.
6599
66002008-09-05 Eli Zaretskii <eliz@gnu.org>
6601
6602 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6603 toggle boxes and radio buttons on MS-DOS as well.
6604
66052008-09-05 Kenichi Handa <handa@m17n.org>
6606
6607 * composite.c (autocmp_chars): Check lookback count.
6608 (composition_compute_stop_pos): Set cmp_it->lookback.
6609 (composition_reseat_it): Check lookback count.
6610 (struct position_record): New struct.
6611 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6612 (find_automatic_composition): New function.
6613 (composition_adjust_point): Use find_automatic_composition.
6614
6615 * dispextern.h (struct composition_it): New member lookback.
6616
66172008-09-02 Chong Yidong <cyd@stupidchicken.com>
6618
6619 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6620 if moving by a single line.
6621
66222008-09-02 Andreas Schwab <schwab@suse.de>
6623
6624 * xterm.c (x_delete_display): Fix merge error.
6625
6626 * fileio.c (Fexpand_file_name): Remove unused variables.
6627
66282008-09-02 Eli Zaretskii <eliz@gnu.org>
6629
6630 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6631 storage on all platforms, not just on DOS_NT.
6632
66332008-09-02 Jason Rumney <jasonr@gnu.org>
6634
b8ff72fa
SM
6635 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
6636 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
6637
66382008-09-01 Chong Yidong <cyd@stupidchicken.com>
6639
6640 * xfaces.c (Finternal_set_alternative_font_family_alist)
6641 (Finternal_set_alternative_font_registry_alist): Properly copy
6642 entire alist structure.
6643
66442008-09-01 Kenichi Handa <handa@m17n.org>
6645
d66c0241 6646 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 6647 representative chars of the script is a vector.
d66c0241
JB
6648 (ftfont_list): Handle the case where the representative chars of
6649 the script is a vector.
aac0c6e3
MR
6650
6651 * character.c (syms_of_character): Docstring of
6652 script-representative-chars fixed.
6653
66542008-08-31 Eli Zaretskii <eliz@gnu.org>
6655
6656 * msdos.c (BUILD_CHAR_GLYPH): New macro.
6657 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
6658 the menu. Allocate larger buffer for `text', to account for
6659 possible ^C characters.
6660
66612008-08-31 Martin Rudalics <rudalics@gmx.at>
6662
6663 * xdisp.c (prepare_menu_bars): Don't call
6664 Vwindow_size_change_functions with arg Qt.
6665
66662008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
6667
6668 * font.h (font_range):
6669 * fileio.c (report_file_error):
46e722a9
SM
6670 * composite.c (composition_update_it): Yet another int/Lisp_Object
6671 mixup (YAILOM).
aac0c6e3
MR
6672
66732008-08-30 Glenn Morris <rgm@gnu.org>
6674
6675 * data.c (Fmake_variable_frame_local): Doc fix.
6676
6677 * frame.c (Fmodify_frame_parameters): Doc fix.
6678
66792008-08-30 Eli Zaretskii <eliz@gnu.org>
6680
6681 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
6682 needed by GetTokenInformation.
6683 (w32_system_process_attributes): Check return values of all system
6684 APIs.
6685
6686 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
6687 only when the state changes.
6688 (IT_update_begin, IT_update_end): Add termscript trace.
6689
6690 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
6691 clipboard is unavailable. Set dst to NULL if it doesn't point to
6692 malloc'ed data.
6693 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
6694 passing random values to xfree.
6695
6696 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 6697 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
6698
66992008-08-29 Jason Rumney <jasonr@gnu.org>
6700
6701 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
6702
67032008-08-29 Eli Zaretskii <eliz@gnu.org>
6704
6705 * composite.c (fill_gstring_body): Avoid compiler warnings.
6706
6707 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
6708 LGLYPH_SET_CODE to avoid compiler warnings.
6709
2ae37cf0 6710 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
6711
6712 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
6713
6714 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
6715 LGLYPH_SET_CODE.
6716
67172008-08-29 Kenichi Handa <handa@m17n.org>
6718
6719 * fileio.c (report_file_error): Don't downcase the first character
6720 of errstring if it is still unibyte.
6721
67222008-08-29 Kenichi Handa <handa@m17n.org>
6723
6724 These changes are to re-implement the automatic composition so
6725 that it doesn't use text properties.
6726
6727 * Makefile.in (ftfont.o): Depend on composite.h.
6728 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
6729
6730 * character.h (Vunicode_category_table): Extern it.
6731
6732 * character.c (Vunicode_category_table): New variable.
6733 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
6734
6735 * chartab.c (optimize_sub_char_table): Perform more greedy
6736 optimization.
6737
b8ff72fa
SM
6738 * composite.h (enum composition_method):
6739 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
6740 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
6741 (Vcomposition_function_table): Extern it.
6742 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
6743 (composition_gstring_put_cache, composition_gstring_from_id)
6744 (composition_gstring_p, composition_gstring_width)
6745 (composition_compute_stop_pos, composition_reseat_it)
6746 (composition_update_it, composition_adjust_point): Extern them.
6747 (Fcomposition_get_gstring): EXFUN it.
6748
d66c0241 6749 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
6750 (Vcomposition_function_table)
6751 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
6752 (gstring_hash_table, gstring_work, gstring_work_headers):
6753 New variables.
aac0c6e3
MR
6754 (gstring_lookup_cache, composition_gstring_put_cache)
6755 (composition_gstring_from_id, composition_gstring_p)
6756 (composition_gstring_width, fill_gstring_header)
6757 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
6758 (composition_reseat_it, composition_update_it)
b8ff72fa 6759 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
6760 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
6761 and gstring_work_headers. DEFVAR_LISP composition-function-table.
6762 Defsubr compostion_get_gstring.
6763
6764 * dispextern.h (struct glyph): New union u.cmp. Delete the member
6765 cmp_id.
6766 (struct glyph_string): Delete the member gidx. New members
6767 cmp_id, cmp_from, and cmp_to.
6768 (enum it_method): Delete GET_FROM_COMPOSITION.
6769 (struct composition_it): New struct.
6770 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
6771 Delete c, len, cmp_id, cmp_len in u.comp.
6772
6773 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 6774 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 6775 (enum lglyph_indices): Likewise.
b8ff72fa 6776 (font_range): Adjust extern.
aac0c6e3
MR
6777 (font_fill_lglyph_metrics): Extern it.
6778
6779 * font.c (QCf): New variable.
6780 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6781 (font_prepare_composition): Delete this function.
6782 (font_range): Type and arguments changed.
6783 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
6784 (font_fill_lglyph_metrics): New function.
b8ff72fa 6785 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 6786 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
6787 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
6788 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
6789
6790 * fontset.h (font_for_char): Extern it.
6791
6792 * fontset.c (font_for_char): New function.
6793
6794 * ftfont.c: Include composite.h.
6795 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6796 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6797
6798 * indent.c: Include composite.h and dispextern.h.
6799 (check_composition): Delete this function.
6800 (scan_for_column): Handle composition by
6801 composition_compute_stop_pos, composition_reseat_it, and
6802 composition_update_it.
6803 (compute_motion): Likewise.
6804 (Fvertical_motion): Fix checking of composition.
6805
6806 * keyboard.c (adjust_point_for_property): Check composition by
6807 composition_adjust_point.
6808
b8ff72fa 6809 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6810 struct glyph_string.
6811
b8ff72fa
SM
6812 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6813 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6814 struct glyph.
6815 (produce_composite_glyph): Likewise.
6816
b8ff72fa
SM
6817 * w32term.c (x_draw_composite_glyph_string_foreground):
6818 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6819 (x_draw_glyph_string): Likewise.
6820
6821 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6822 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6823
6824 * xdisp.c: Include font.h.
6825 (it_props): Delete the entry for Qauto_composed.
6826 (init_iterator): Initialize it->cmp_it.id to -1.
6827 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6828 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6829 (handle_auto_composed_prop): Delete it.
6830 (handle_composition_prop): Handle only static composition.
6831 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6832 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6833 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6834 (pop_it): Likewise.
6835 (get_next_element): Delete next_element_from_composition.
6836 (CHAR_COMPOSED_P): New macro.
6837 (get_next_display_element): For automatic composition, get a face
6838 from the font in the glyph-string.
6839 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6840 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6841 (next_element_from_string): Check if the character at the current
6842 position is composed by CHAR_COMPOSED_P.
6843 (next_element_from_buffer): Likewise.
d66c0241
JB
6844 (next_element_from_composition): Adjust for the change of struct it.
6845 Update it->cmp_it.
b8ff72fa
SM
6846 (dump_glyph): Adjust for the change of struct glyph.
6847 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6848 it and struct glyph. Don't handle automatic composition here.
6849 (fill_gstring_glyph_string): New function.
6850 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6851 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6852 (BUILD_GSTRING_GLYPH_STRING): New macro.
6853 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6854 automatic composition.
b8ff72fa 6855 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6856 struct glyph.
b8ff72fa 6857 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6858
b8ff72fa 6859 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6860 the change of struct glyph_string.
6861 (x_draw_glyph_string): Likewise.
6862
68632008-08-29 Glenn Morris <rgm@gnu.org>
6864
6865 * buffer.c (word-wrap): Doc fix.
6866 * xdisp.c (truncate-partial-width-windows): Doc fix.
6867 Increase default to 50.
6868
68692008-08-29 Chong Yidong <cyd@stupidchicken.com>
6870
6871 * xdisp.c (update_tool_bar_unwind): New function.
6872 (update_tool_bar): Temporarily set selected frame before building
6873 tool-bar items.
6874
68752008-08-28 Michael Albinus <michael.albinus@gmx.de>
6876
6877 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6878 snprintf, respectively.
6879 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6880
68812008-08-28 Chong Yidong <cyd@stupidchicken.com>
6882
6883 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6884 LDFLAGS to GNUstep CC invocation.
6885
68862008-08-27 Chong Yidong <cyd@stupidchicken.com>
6887
6888 * indent.c (Fvertical_motion): Revert last change. Handle the
6889 general case where we are moving forward, and PT spans multiple
6890 screen lines.
6891
6892 * eval.c (find_handler_clause): Temporarily increase
6893 max-lisp-eval-depth while printing the backtrace buffer, to
6894 guarantee that help-mode code can run.
6895
68962008-08-27 Eli Zaretskii <eliz@gnu.org>
6897
6898 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6899 colors under -rv.
6900 (IT_set_frame_parameters): Don't swap foreground and background
6901 colors if `(reverse . t)' is present in the frame properties.
6902 (internal_terminal_init): Call init_frame_faces only for the
6903 initial frame.
6904
69052008-08-27 Andreas Schwab <schwab@suse.de>
6906
6907 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6908
69092008-08-27 Andreas Schwab <schwab@suse.de>
6910
6911 * search.c (search_buffer): Set char_base to zero only at the end.
6912
69132008-08-27 Kenichi Handa <handa@m17n.org>
6914
b8ff72fa 6915 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6916
69172008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6918
6919 * xterm.c (x_term_init): Temporarily hide the partially
6920 initialized terminal while calling vendor-specific-keysyms.
6921
69222008-08-26 Eli Zaretskii <eliz@gnu.org>
6923
6924 * msdos.c (internal_terminal_init): Most initializations done only
6925 once, especially initial_screen_colors[] and termscript open.
6926
69272008-08-26 Chong Yidong <cyd@stupidchicken.com>
6928
6929 * eval.c (Fcondition_case): Doc fix.
6930
6931 * widgetprv.h (EmacsFramePart): Change font member to the new font
6932 struct.
6933
6934 * widget.c: Include character.h and font.h for XSETFONT.
6935 (setup_frame_gcs): Compute X font id from font struct, just once.
6936
69372008-08-26 Eli Zaretskii <eliz@gnu.org>
6938
6939 * term.c (get_named_tty): Fix last change.
6940
69412008-08-26 Chong Yidong <cyd@stupidchicken.com>
6942
6943 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6944 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6945
69462008-08-25 Eli Zaretskii <eliz@gnu.org>
6947
6948 * frame.c (do_switch_frame): Mark previously displayed frame as
6949 obscured for FRAME_MSDOS_P frames as well.
6950
69512008-08-24 Eli Zaretskii <eliz@gnu.org>
6952
6953 * frame.c (make_terminal_frame): Initialize f->terminal,
6954 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6955 Set the top frame to newly created frame.
6956 (Fmake_terminal_frame): Reuse the_only_display_info.
6957
6958 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6959 estimating available memory.
6960
b97439ce 69612008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6962
6963 * nsterm.m (ns_draw_window_cursor): Don't call
6964 NSDisableScreenUpdates and NSEnableScreenUpdates on
6965 non-NS_IMPL_COCOA systems.
6966
69672008-08-23 Andreas Schwab <schwab@suse.de>
6968
6969 * process.c (procfs_system_process_attributes): Fix use of
6970 uninitialized variables.
6971
69722008-08-23 Eli Zaretskii <eliz@gnu.org>
6973
6974 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6975
6976 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6977 calling tty-set-up-initial-frame-faces.
6978
b8ff72fa
SM
6979 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6980 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6981
6982 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6983 addition to output_termcap.
6984
6985 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6986
6987 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6988 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6989 highlight.
6990
6991 * process.c [!subprocesses]: Define QCname.
6992 (syms_of_process): Intern and staticpro it.
6993
6994 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6995 Adjust for changes in encoding/decoding routines.
6996 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6997 encode_coding and decode_coding.
6998
b8ff72fa 6999 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7000
7001 * dosfns.c: Include frame.h before termhooks.h.
7002 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7003 variable termscript.
7004
7005 * s/msdos.h (USER_FULL_NAME): Define.
7006 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7007
7008 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7009 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7010 pw->pw_gecos.
7011
7012 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7013 SELECTED_FRAME as additional (1st) argument.
7014 (tty_read_avail_input): Handle output_msdos_raw in
7015 addition to output_termcap.
7016
7017 * msdos.c: Include frame.h before termhooks.h.
7018 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7019 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7020 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7021 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7022 (IT_set_terminal_modes, IT_reset_terminal_modes)
7023 (IT_set_frame_parameters): Use tty->termscript instead of a global
7024 variable termscript.
7025 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7026 global variable terminal_coding. Don't refer to
7027 Vnonascii_translation_table.
7028 (internal_terminal_init): Set Vwindow_system in current_kboard.
7029 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7030 Announce date and time of session start, if termscript is open.
7031 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7032 term.c:init_tty). Open termscript only of not already open.
7033 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7034 here instead of dos_ttraw. Don't initialize display if this is an
7035 initial tty. Don't set FRAME_FONT.
7036 (Vwindow_system_version): Bump to 23.
7037 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7038 is available, set up mouse_position_hook.
7039 (dos_ttraw, IT_set_terminal_modes): If called with initial
7040 terminal, do nothing.
7041 (IT_set_frame_parameters): Handle the Qtty_type frame
7042 parameter by calling internal_terminal_init.
7043 (dos_set_window_size, show_mouse_face)
7044 (clear_mouse_face, IT_note_mode_line_highlight)
7045 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7046 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7047 (initialize_msdos_display): New function.
7048 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7049 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7050 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7051 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7052 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7053 (request_sigio, unrequest_sigio): Don't define, now defined on
7054 sysdep.c.
7055 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7056
7057 * term.c [MSDOS]: Include msdos.h.
7058 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7059 conditional to DOS_NT. Allow only one call to this function in a
7060 session. Don't allocate a new struct tty_display_info; instead,
7061 reuse the_only_display_info. Call get_tty_size to get screen
7062 dimensions. Call init_baud_rate to set bad_rate.
7063 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7064 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7065 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7066 (get_tty_terminal, get_named_tty, Ftty_type)
7067 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7068 output_termcap.
b8ff72fa
SM
7069 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7070 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7071 only when subprocesses are supported.
aac0c6e3
MR
7072
7073 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7074 f->output_data.x.
7075 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7076 terminal devices.
7077
5582fbc7 7078 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7079 x_output.
7080 (FRAME_FONT): Use output_data.tty.
7081 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7082 (struct x_display_info): Rename from display_info. Update all users in
7083 msdos.c.
aac0c6e3 7084 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7085 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7086 (dos_ttraw): Update prototype.
7087
7088 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7089 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7090
70912008-08-23 Jason Rumney <jasonr@gnu.org>
7092
7093 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7094 (fn_TIFFSetDirectory): New library function used.
7095 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7096 (tiff_load): Use :index to select among multiple images. Set count
7097 property when multiple images exist.
7098 (gif_format): Use :index, not :image.
7099
71002008-08-23 Chong Yidong <cyd@stupidchicken.com>
7101
7102 * xdisp.c (try_scrolling): Check INT_MAX instead of
7103 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7104 to obtain INT_MAX.
7105
71062008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7107
7108 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7109
71102008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7111
7112 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7113 GNUstep library location.
7114
71152008-08-21 Chong Yidong <cyd@stupidchicken.com>
7116
7117 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7118 before using it.
7119
7120 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7121
71222008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7123
7124 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7125 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7126 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7127 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7128 (EmacsApp-cursor_blink_handler): Remove declaration.
7129 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7130 match 01 Feb 2008 changes in xterm.c.
7131 (ns_read_socket): Add cast to avoid warning.
7132 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7133 GNUstep.
7134
71352008-08-20 Chong Yidong <cyd@stupidchicken.com>
7136
7137 * xselect.c (x_get_foreign_selection): Return nil if desired
7138 selection could not be obtained, instead of signalling an error.
7139
71402008-08-20 David Reitter <david.reitter@gmail.com>
7141
7142 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7143 * nsterm.m: Remove ns-specific code for cursor blinking.
7144 (ns_draw_window_cursor): Clear cursor properly rather than
7145 redrawing the area. Respect width of bar cursors.
7146 These changes enable the use of generic blink-cursor-mode and
7147 generic cursor types in NS and support smooth cursor movements (do
7148 not blink off after command).
7149 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7150 Nextstep, too.
7151
71522008-08-19 Kenichi Handa <handa@m17n.org>
7153
7154 * font.c (Vfont_log_deferred): New variable.
7155 (font_add_log): Check Vfont_log_deferred.
7156 (font_deferred_log): New function.
7157
7158 * font.h (font_deferred_log): Extern it.
7159
7160 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7161 for sorting.
7162 (face_for_char): Use deferred log.
7163
71642008-08-18 Kenichi Handa <handa@m17n.org>
7165
7166 * fontset.c (face_for_char): Add font log.
7167
7168 * font.c (font_add_log): Add the font properties :script, :lang,
7169 and :otf in the log.
7170
71712008-08-17 Chong Yidong <cyd@stupidchicken.com>
7172
7173 * xdisp.c: Remove dead code.
7174 (handle_invisible_prop, next_overlay_string): Defer call to
7175 setup_for_ellipsis.
7176 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7177
71782008-08-15 Chong Yidong <cyd@stupidchicken.com>
7179
7180 * xfaces.c (lookup_derived_face): Properly handle possible zero
7181 return value of get_lface_attributes.
7182 (merge_faces): Don't tell lookup_derived_face to signal an error
7183 if face is not found.
7184
7185 * dired.c (Fdirectory_files): Doc fix.
7186
7187 * process.c (make_process): Initialize kill_without_query struct
7188 member.
7189
71902008-08-15 Eli Zaretskii <eliz@gnu.org>
7191
7192 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7193 Alternative calculation of totphys for Visual Studio 6.
7194
7195 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7196
7197 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7198 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7199 All users changed.
7200 (stat): Only root directory passed to GetDriveType. Allow RAM
7201 disk as well as local fixed disk when w32-get-true-file-attributes
7202 is set to `local'.
7203 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7204 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7205 (w32_cached_id, w32_add_to_cache): New functions.
7206 (get_name_and_id): Look account names in the cache before calling
7207 lookup_account_sid.
7208 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7209 New initialization flags.
7210 (globals_of_w32): Initialize them to zero.
7211 (w32_system_process_attributes): Use w32_cached_id and
7212 w32_add_to_cache.
7213
72142008-08-14 Lawrence Mitchell <wence@gmx.li>
7215
7216 * lread.c (Fread_char, Fread_char_exclusive): If no character
7217 event is read before timeout is reached, return nil, rather than
7218 converting to a number.
7219
72202008-08-14 Chong Yidong <cyd@stupidchicken.com>
7221
7222 * fns.c (use_dialog_box): Doc fix.
7223
7224 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7225 on OS X.
7226
72272008-08-13 Chong Yidong <cyd@stupidchicken.com>
7228
7229 * frame.c (Qns_parse_geometry): New var.
7230 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7231
72322008-08-11 Chong Yidong <cyd@stupidchicken.com>
7233
7234 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7235 space character in calculating tabs.
7236
72372008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7238
7239 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7240
72412008-08-10 Glenn Morris <rgm@gnu.org>
7242
7243 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7244 silence gcc "limited range of data type" warnings in some
7245 make_fixnum_or_float calls.
7246
72472008-08-09 Eli Zaretskii <eliz@gnu.org>
7248
7249 * w32.c (w32_system_process_attributes): If the process does not
7250 exist, return nil.
7251
7252 * w32.c: Include thelp32.h, psapi.h and coding.h.
7253 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7254 declarations.
7255 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7256 (Process32Next_Proc): New typedefs.
7257 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7258 (g_b_init_process32_next, g_b_init_open_thread_token)
7259 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7260 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7261 (g_b_init_get_process_working_set_size)
7262 (g_b_init_global_memory_status_ex): New static variables.
7263 (globals_of_w32): Initialize them.
7264 (create_toolhelp32_snapshot, process32_first, process32_next)
7265 (open_thread_token, impersonate_self, revert_to_self)
7266 (get_process_memory_info, get_process_working_set_size)
7267 (global_memory_status, global_memory_status_ex): New wrapper
7268 functions.
7269 (w32_list_system_processes, w32_system_process_attributes)
7270 (enable_privilege, restore_privilege, ltime, process_times):
7271 New functions.
7272 (convert_time_raw): New function.
7273 (convert_time): Remove conversion of FILETIME into time in 100
7274 nsec units, call convert_time_raw instead.
7275
7276 * process.h (w32_list_system_processes, w32_system_process_attributes):
7277 Add prototypes.
7278 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7279 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7280 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7281 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7282
7283 * process.c (Fsystem_process_attributes): Doc fix.
7284
72852008-08-08 Chong Yidong <cyd@stupidchicken.com>
7286
7287 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7288 a continued multi-char glyph; if so, advance to the actual glyph.
7289
72902008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7291
7292 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7293
7294 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7295 (.m.o): Use it.
7296 * config.in: Regenerate.
7297
72982008-08-07 Chong Yidong <cyd@stupidchicken.com>
7299
7300 * xdisp.c (redisplay_window): Revert last change.
7301 (try_window): Check bottom scroll margin too.
7302
73032008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7304
7305 * config.in: Regenerate.
7306
7307 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7308 -list-load-path-shadows'.
7309 (nsgui.h): Reduce number of things depending on it.
7310
73112008-08-06 Chong Yidong <cyd@stupidchicken.com>
7312
7313 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7314 instead of window-end which does the wrong thing at eob.
7315 (try_cursor_movement): Minor optimization.
7316 (redisplay_window): If scroll margin is defined, don't assume
7317 window doesn't need scrolling.
7318
73192008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7320
7321 * config.in: Regenerate.
7322
7323 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7324 (mostlyclean): Don't delete *.d under NS.
7325
7326 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7327
73282008-08-06 Kenichi Handa <handa@m17n.org>
7329
7330 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7331
73322008-08-06 Andreas Schwab <schwab@suse.de>
7333
7334 * config.in: Regenerate.
7335
73362008-08-05 Chong Yidong <cyd@stupidchicken.com>
7337
7338 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7339 forcing a window start.
7340
7341 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7342 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7343
73442008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7345
7346 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7347 argument.
7348
73492008-08-05 Juanma Barranquero <lekktu@gmail.com>
7350
7351 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7352 <scroll-down-aggressively, before-change-functions>:
7353 <after-change-functions>: Reflow docstrings.
7354
73552008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7356 Ken Raeburn <raeburn@gnu.org>
7357
7358 Dock menu customization, based on a patch by Ken Raeburn, plus some
7359 other fixes.
7360 * nsmenu.m (dockMenu): New variable.
7361 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7362
7363 * nsterm.h (dockMenu): Declare.
7364
7365 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7366 (ns_term_init): Initialize dockMenu.
7367 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7368 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7369 left.
7370
7371 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7372
73732008-08-04 Chong Yidong <cyd@stupidchicken.com>
7374
7375 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7376
7377 * config.in: Regenerate.
7378
73792008-08-04 Seiji Zenitani <zenitani@mac.com>
7380
7381 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7382
73832008-08-04 Chong Yidong <cyd@stupidchicken.com>
7384
7385 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7386
73872008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7388
7389 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7390
7391 * keyboard.h: Comment an #endif.
7392
7393 * lisp.h (have_menus_p): Adjust comment.
7394
7395 * menu.c (find_and_return_menu_selection): Fix comparison with
7396 client_data.
7397
7398 * nsmenu.m (popup_activated_flag): New variable.
7399 (popup_activated): New function.
7400 (menu-or-popup-active-p): New exported lisp definition.
7401 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7402 when popup done.
7403 (ns_popup_dialog): Set popup_activated_flag.
7404
7405 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7406 version for GNUstep (handled by conditional typedef in nsterm.m).
7407 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7408 in rgb.txt).
7409
7410 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7411
7412 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7413
7414 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7415
7416 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7417 shortcircuit if popup_activated like GTK and X toolkit.
7418
7419 * m/inter386.h: Change DARWIN to DARWIN_OS.
7420
7421 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7422 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7423 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7424 comment on NO_SOCK_SIGIO.
7425
74262008-08-03 Chong Yidong <cyd@stupidchicken.com>
7427
7428 * nsterm.m (windowDidResize): Remove stopModal call.
7429
74302008-08-03 Andreas Schwab <schwab@suse.de>
7431
7432 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7433 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7434
74352008-08-02 Chong Yidong <cyd@stupidchicken.com>
7436
7437 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7438 Don't use uninitialized pointer variable when using getrlimit.
7439
74402008-08-02 Jason Rumney <jasonr@gnu.org>
7441
7442 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7443
74442008-08-02 Eli Zaretskii <eliz@gnu.org>
7445
7446 * alloc.c (NSTATICS): Bump to 0x640.
7447
7448 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7449
7450 * lisp.h: Add prototype for directory_files_internal.
7451
7452 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7453 New functions.
7454 (syms_of_process): Defsubr them. Add initializations for various
7455 Q* symbols used in procfs_system_process_attributes.
7456 (procfs_list_system_processes, procfs_system_process_attributes)
7457 [HAVE_PROCFS]: New functions.
7458 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7459 (procfs_get_total_memory): New functions.
7460
74612008-08-01 Juanma Barranquero <lekktu@gmail.com>
7462
7463 * xfaces.c (Fx_load_color_file): Fix previous change;
7464 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7465
74662008-08-01 Michael Albinus <michael.albinus@gmx.de>
7467
7468 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7469
74702008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7471
7472 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7473
74742008-08-01 Chong Yidong <cyd@stupidchicken.com>
7475
7476 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7477
7478 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7479 define NSApplicationDelegateReplySuccess.
7480 (EmacsView -converstationIdentifier): Use long instead of
7481 NSInteger for GNUstep, since it doesn't have NSInteger.
7482
7483 * xmenu.c: Revert last change.
7484
7485 * keyboard.h: Fix last change.
7486
74872008-08-01 Juanma Barranquero <lekktu@gmail.com>
7488
7489 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7490 on Windows.
7491
74922008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7493
7494 Warning clearing and clean-up in NS port.
7495 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7496 Add prototypes.
7497 * nsgui.h (FACE_DEFAULT): Remove, unused.
7498 (XGCValues): Change colors to unsigned long.
7499 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7500 nsterm.m.
7501 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7502 (ns_list_fonts): Remove, unused.
7503 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7504 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7505 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7506 (nsfont_draw): Compare face colors to 0, not nil.
7507 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7508 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7509 (-addSubmenuWithTitle:): Use NSMenuItem class.
7510 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7511 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7512 (ns_clip_to_row): Make gc arg a BOOL.
7513 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7514 ns_clip_to_row() call.
7515 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7516 used). Cast FRAME_FONT assignments.
7517 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7518 (ns_string_to_lispmod): Change arg to const char.
7519 (ns_term_init): Use NSMenuItem class.
7520 (EmacsApp -openFile:): Move to different section of file.
7521 (EmacsApp -application:openFiles:): Don't return a value, call
7522 -replyToOpenOrPrint:.
7523 (EmacsView -keyDown:): Fix up cast.
7524 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7525 (EmacsView -menuDown:): Cast tag in call to
7526 find_and_call_menu_selection().
7527 (ns_list_fonts): Remove, unused.
7528 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7529 (ns_fontname_to_xlfd): Make static.
7530 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7531 Remove prototypes (now in keyboard.h).
7532 (next_menubar_widget_id): Remove, unused.
7533 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7534 Remove prototypes (now in keyboard.h).
7535 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7536
75372008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7538
7539 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7540 (floatfns.o): Depend on syssignal.h.
7541 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7542
7543 * systty.h: Fix previous change that removed BSD_TERMIOS.
7544 Add comments to #ifdefs.
7545
75462008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7547
7548 * w32fns.c (w32-load-color-file): Remove.
7549 (x-open-connection): Use renamed Fx_load_color_file.
7550 * xfaces.c (x-load-color-file): Add.
7551 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7552 Emacs.clr.
7553 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7554
75552008-07-31 Michael Albinus <michael.albinus@gmx.de>
7556
7557 * dbusbind.c (Fdbus_call_method_asynchronously)
7558 (Fdbus_method_error_internal): New defuns.
7559 (xd_read_message): Handle also reply messages.
7560 (Vdbus_registered_functions_table): Extend docstring.
7561
75622008-07-31 Juanma Barranquero <lekktu@gmail.com>
7563
7564 * keyboard.c (gobble_input): Fix previous change.
7565
75662008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7567
7568 * bitmaps/README:
7569 * xfns.c:
7570 * termcap.c:
7571 * term.c:
7572 * syswait.h:
7573 * systty.h:
7574 * systime.h:
7575 * syssignal.h:
7576 * sysdep.c:
7577 * process.h:
7578 * process.c:
7579 * print.c:
7580 * ndir.h:
7581 * lread.c:
7582 * keyboard.c:
7583 * getpagesize.h:
7584 * floatfns.c:
7585 * fileio.c:
7586 * emacs.c:
7587 * doc.c:
7588 * dispnew.c:
7589 * dired.c:
7590 * data.c:
7591 * callproc.c:
7592 * buffer.c:
7593 * README:
7594 * Makefile.in:
7595 * s/template.h:
7596 * s/msdos.h:
7597 * m/vax.h: Remove VMS support.
7598 * s/vms.h:
7599 * vlimit.h:
7600 * uaf.h:
7601 * temacs.opt:
7602 * param.h:
7603 * ioctl.h: Remove file.
7604
76052008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7606
7607 * s/ms-w32.h (MULTI_KBOARD): Remove.
7608 * xterm.c:
7609 * xselect.c:
7610 * xfns.c:
7611 * window.c:
7612 * w32term.c:
7613 * w32fns.c:
7614 * terminal.c:
7615 * termhooks.h:
7616 * term.c:
7617 * sysdep.c:
7618 * keyboard.h:
7619 * keyboard.c:
7620 * frame.h:
7621 * frame.c:
7622 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7623 * config.in: Regenerate.
7624
76252008-07-30 Jason Rumney <jasonr@gnu.org>
7626
7627 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7628
7629 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7630 (w32font_open_internal): Get unicode version of textmetrics.
7631 Don't enable or disable glyph indices here.
7632 (w32font_open): Disable use of glyph indices.
7633
7634 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
7635
76362008-07-30 Chong Yidong <cyd@stupidchicken.com>
7637
7638 * minibuf.c (Vread_buffer_function): Doc fix.
7639
76402008-07-30 John Paul Wallington <jpw@pobox.com>
7641
7642 * minibuf.c (read_buffer_completion_ignore_case): New var.
7643 (Fread_buffer): Use it.
7644
76452008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
7646
7647 * systty.h (sensemode): Remove empty #if. Remove reference to
7648 BSD_TERMIOS, unused.
7649
7650 * sysdep.c: Remove reference to DGUX.
7651 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
7652
7653 * config.in: Regenerate.
7654
76552008-07-30 Jason Rumney <jasonr@gnu.org>
7656
7657 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
7658
76592008-07-29 Jason Rumney <jasonr@gnu.org>
7660
7661 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
7662 is populated.
7663 (uniscribe_encode_char): Always use uniscribe.
7664 Avoid using context if cache is populated.
7665
76662008-07-29 Jan Djärv <jan.h.d@swipnet.se>
7667
7668 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
7669 open menu.
7670
7671 * gtkutil.c (menu_nav_ended): Remove.
7672 (create_menus): Remove signal connect for menu_nav_ended.
7673
76742008-07-28 Chong Yidong <cyd@stupidchicken.com>
7675
7676 * xdisp.c (redisplay_window): Check return value of
7677 compute_window_start_on_continuation_line before forcing a window
7678 start.
7679
76802008-07-28 Jason Rumney <jasonr@gnu.org>
7681
7682 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
7683
7684 * w32term.c (w32_enable_unicode_output, cleartype_active):
7685 Remove obsolete display options.
7686 (x_draw_glyph_string_background): Don't use old cleartype_active
7687 workaround.
7688 (w32_initialize): Remove cleartype_active initialization.
7689 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
7690
76912008-07-28 Andreas Schwab <schwab@suse.de>
7692
7693 * lisp.h (init_weak_hash_tables, syms_of_font)
7694 (xd_read_queued_messages, syms_of_dbusbind): Declare.
7695 (remove_hash_entry): Don't declare.
7696 * eval.c (maybe_call_debugger): Make static and move before use.
7697 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
7698 * xdisp.c: Include "gtkutil.h" if USE_GTK.
7699 * xterm.h (x_set_frame_alpha): Declare.
7700
77012008-07-28 Jan Djärv <jan.h.d@swipnet.se>
7702
7703 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
7704 (create_menus): Connect selection-done to menu_nav_ended.
7705
77062008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7707
7708 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
7709 Set Vx_resource_name to a fallback. Replace read of 'buffered'
7710 parameter with read of 'alpha' one.
7711 (Qns_frame_parameter): Remove.
5582fbc7 7712 * nsselect.m (selection-coding-system)
aac0c6e3
MR
7713 (next-selection-coding-system, Vselection_coding_system)
7714 (Vnext_selection_coding_system): Drop.
7715
77162008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7717
7718 * nsfns.m (do-applescript, do_applescript): Rename to
7719 ns-do-applescript, ns_do_applescript, and move within file.
7720
77212008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7722
7723 Remove support for Mac Carbon.
7724 * mactoolbox.c:
7725 * macterm.h:
7726 * macterm.c:
7727 * macselect.c:
7728 * macmenu.c:
7729 * macgui.h:
7730 * macfns.c:
7731 * mac.c: Remove file.
7732 * s/darwin.h:
7733 * m/intel386.h:
7734 * xfaces.c:
7735 * xdisp.c:
7736 * window.c:
7737 * tparam.c:
7738 * termhooks.h:
7739 * termcap.c:
7740 * term.c:
7741 * syssignal.h:
7742 * sysselect.h:
7743 * sysdep.c:
7744 * process.c:
7745 * lread.c:
7746 * lisp.h:
7747 * keyboard.c:
7748 * image.c:
7749 * fringe.c:
7750 * frame.h:
7751 * frame.c:
7752 * fontset.c:
7753 * font.h:
7754 * font.c:
7755 * fns.c:
7756 * fileio.c:
7757 * emacs.c:
7758 * dispnew.c:
7759 * dispextern.h:
7760 * config.in:
7761 * atimer.c:
2ae37cf0 7762 * Makefile.in: Remove code for Carbon.
aac0c6e3 7763
f0131492 77642008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
7765
7766 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
7767
77682008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7769
7770 * macterm.h (kCGBitmapByteOrder32Host): New define for
7771 non-universal SDKs.
7772
7773 * image.c (mac_create_cg_image_from_image, image_load_image_io)
7774 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7775
7776 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
7777 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
7778
77792008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
7780
7781 * w32inevt.c: Include dispextern.h.
7782
77832008-07-26 Andreas Schwab <schwab@suse.de>
7784
7785 * print.c (print_object): Fix off-by-one in last change.
7786
77872008-07-25 Juanma Barranquero <lekktu@gmail.com>
7788
7789 * term.c (syms_of_term): Don't initialize default_orig_pair,
7790 default_set_foreground and default_set_background on Windows.
7791
77922008-07-25 Jason Rumney <jasonr@gnu.org>
7793
7794 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7795 ScriptItemize. Clean up return value checking. Remove unused
7796 variables.
7797 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7798 shaping engine.
7799
7800 * w32font.c (w32font_has_char): Handle the case where we can't
7801 determine the script for a character.
7802
78032008-07-25 Chong Yidong <cyd@stupidchicken.com>
7804
7805 * term.c (syms_of_term): Initialize default_orig_pair,
7806 default_set_foreground, and default_set_background.
7807
7808 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7809 clash (bug#86).
7810 (getloadavg): Callers changed.
7811
7812 * image.c (svg_load_image): Fix last change.
7813 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7814 image size is valid. Use g_object_unref instead of deprecated
7815 rsvg_handle_free to free rsvg handle.
7816 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7817
78182008-07-25 Jason Rumney <jasonr@gnu.org>
7819
7820 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7821 surrogates before looking up glyph index.
7822 (w32font_text_extents): Encode as surrogates if falling back to
7823 functions that need UTF-16 wide chars.
7824
7825 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7826 BMP as surrogates before looking up glyph index.
7827
78282008-07-25 Chong Yidong <cyd@stupidchicken.com>
7829
7830 * image.c (svg_load_image): Check for failure in return value of
7831 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7832
78332008-07-25 Jason Rumney <jasonr@gnu.org>
7834
7835 * w32font.c (Fx_select_font): Reverse sense of second arg.
7836
78372008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7838
7839 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7840 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7841
7842 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7843 (PURESIZE): Use it.
7844
78452008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7846
7847 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7848 * m/alpha.h (TEXT_END):
7849 * m/ibmrs6000.h (TEXT_END):
7850 * m/macppc.h (TEXT_END):
7851 * s/darwin.h (TEXT_END):
7852 * s/msdos.h (TEXT_END): Remove, unused.
7853 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7854 * s/cygwin.h: Remove comment.
7855
7856 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7857 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7858 * m/intel386.h (DOT_GLOBAL_START):
7859 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7860 (USG): Remove, file not used on USG platforms.
7861
7862 * Makefile.in (HAVE_X11): Remove empty #else.
7863
78642008-07-24 Andreas Schwab <schwab@suse.de>
7865
7866 * fileio.c (Finsert_file_contents): Properly adjust undo list
7867 after format conversion.
7868
78692008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7870
7871 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7872 (menu_nav_ended): Remove.
7873 (create_menus): Remove signal connect for menu_nav_ended.
7874 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7875 create_menus.
7876 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7877
78782008-07-23 Jason Rumney <jasonr@gnu.org>
7879
7880 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7881 with opened font.
7882 (w32font_open): Set font type to gdi.
7883
7884 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7885
78862008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7887
7888 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7889 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7890 defines it.
7891 * unexec.c (ADDR_CORRECT): Define unconditionally.
7892
7893 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7894
7895 * unexec.c: Remove code depending on !COFF and USG, the file is
7896 not used for such systems.
7897
7898 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7899 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7900 (LD_SWITCH_SYSTEM_1): Remove, update users.
7901
7902 * s/darwin.h (DATA_END):
7903 * m/intel386.h (DATA_END):
7904 * m/ibmrs6000.h (DATA_END):
7905 * m/alpha.h (DATA_END): Remove, unused.
7906
7907 * config.in: Regenerate.
7908 * s/ms-w32.h (subprocesses): Define unconditionally.
7909 * s/template.h (subprocesses): Update comment.
7910 * s/vms.h (subprocesses):
7911 * s/usg5-4.h (subprocesses):
7912 * s/hpux10-20.h (subprocesses):
7913 * s/gnu-linux.h (subprocesses):
7914 * s/cygwin.h (subprocesses):
7915 * s/bsd-common.h (subprocesses):
7916 * s/aix4-2.h (subprocesses):
7917 * s/darwin.h (subprocesses): Do not define, defined by default now.
7918
7919 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7920 Remove all references.
7921 (temacs): Add GNUstep specific ld flags.
7922
7923 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7924 similarly to what X does.
7925
79262008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7927
7928 * nsfns.m (x-list-fonts): Remove.
7929 (syms_of_nsfns): Drop the x-list-fonts declaration.
7930 * nsterm.m: Get rid of remaining "//" comments.
7931
79322008-07-22 Chong Yidong <cyd@stupidchicken.com>
7933
7934 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7935
7936 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7937 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7938 (Fns_own_selection_internal, Fx_disown_selection_internal)
7939 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7940
7941 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7942 ... */' style of docstrings. Doc fixes.
7943
79442008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7945
7946 * terminfo.c (UP, BC, PC): Undo previous change.
7947
7948 * nsfns.m: Rename ns prefixed functions/variables to the
7949 corresponding x versions. Update references.
7950
79512008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7952
7953 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7954
79552008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7956
7957 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7958 Remove forwarding functions.
7959 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7960 non-static.
7961 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7962 non-static.
7963 (ns_frame_parm_handlers): Use the new names.
7964 (syms_of_nsfns): Move to the end of file.
7965
7966 * nsterm.m (syms_of_nsterm): Move to the end of file.
7967
7968 * dispnew.c (init_display): Remove code for X10.
7969
79702008-07-22 Jason Rumney <jasonr@gnu.org>
7971
7972 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7973 bare drive.
7974
79752008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7976
7977 * nsterm.m (syms_of_nsterm): Remove debugging println.
7978
79792008-07-22 David Reitter <david.reitter@gmail.com>
7980
7981 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7982 Carbon implementation of the same functionality: execute arbitrary
7983 AppleScript code.
7984
79852008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7986
7987 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7988 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7989 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7990 (Fx_display_mm_height, Fx_display_mm_width)
7991 (Fx_display_backing_store, Fx_display_visual_class)
7992 (Fx_display_save_under, Fx_open_connection)
7993 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7994 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7995 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7996 (Fx_display_pixel_width, Fx_display_pixel_height)
7997 (Fx_display_usable_bounds, Fx_display_planes)
7998 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7999 ... */' style of docstrings.
8000
80012008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8002
8003 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8004 on this platform.
8005 (mips):
8006 * m/iris4d.h (mips): Do not define.
8007 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8008
8009 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8010
8011 * image.c:
8012 * nsfns.m:
8013 * nsselect.m:
8014 * nsterm.h:
8015 * nsterm.m: Rename ns prefixed functions/variables to the
8016 corresponding x versions. Update references.
8017
8018 * m/ibms390x.h (NO_REMAP): Do not undefine.
8019
8020 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8021
80222008-07-21 Chong Yidong <cyd@stupidchicken.com>
8023
8024 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8025 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8026 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8027 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8028 (Fns_display_mm_height, Fns_display_mm_width)
8029 (Fns_display_backing_store, Fns_display_visual_class)
8030 (Fns_display_save_under, Fns_open_connection)
8031 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8032 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8033 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8034 (Fns_display_pixel_width, Fns_display_pixel_height)
8035 (Fns_display_usable_bounds, Fx_display_planes)
8036 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8037
80382008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8039
8040 * print.c (print_object): Check print_depth before searching for
8041 circularities.
8042
80432008-07-21 Michael Albinus <michael.albinus@gmx.de>
8044
8045 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8046 only sprintf.
8047
80482008-07-21 Kenichi Handa <handa@m17n.org>
8049
8050 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8051
80522008-07-20 Andreas Schwab <schwab@suse.de>
8053
8054 * syntax.c (find_start_pos, find_start_value)
8055 (find_start_value_byte, find_start_begv, find_defun_start)
8056 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8057
80582008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8059
8060 * s/sol2-3.h: Insert contents of s/sol2.h.
8061 (LD_SWITCH_SYSTEM): Remove redundant definition.
8062 * s/sol2.h: Remove, unused.
8063
80642008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8065
8066 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8067
80682008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8069
8070 * Makefile.in (ns_appdir): Fix typo in find command.
8071
80722008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8073
8074 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8075
8076 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8077 added not supported anymore.
8078
8079 * s/usg5-4-2.h (LIBS_SYSTEM):
8080 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8081
8082 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8083 * s/lynxos.h (GETPGRP_NO_ARG):
8084 * s/hpux10-20.h (NO_SIOCTL_H):
8085 * s/gnu.h (GETPGRP_NO_ARG):
8086 * s/gnu-linux.h (NO_SIOCTL_H):
8087 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8088 * s/cygwin.h (GETPGRP_NO_ARG):
8089 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8090 (C_DEBUG_SWITCH): Remove duplicate definition.
8091
8092 * m/ibms390.h: Remove boilerplate comments.
8093
8094 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8095
8096 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8097 (wait_reading_process_output): Remove code for SunOS, platform not
8098 supported anymore. Use SOLARIS2 instead of sun.
8099
81002008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8101
8102 * font.c (font_open_by_name): Under NS, default lface height to zero.
8103 (font_open_for_lface): Under NS, set size based on frame fontsize.
8104 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8105 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8106
81072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8108
8109 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8110 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8111 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8112 YES/NO.
8113 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8114 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8115 * Makefile.in (clean): Clear out build destination dir.
8116
81172008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8118
8119 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8120 xterm, xselect.
8121 * lisp.h: Remove declaration of hash_remove.
8122 * nsgui.h: Remove redefinitions of hash_remove.
8123 * fns.c (hash_remove): Rename to hash_remove_from_table.
8124
81252008-07-19 Seiji Zenitani <zenitani@mac.com>
8126
8127 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8128 strdup() the family UTF8String before modifying it.
8129
81302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8131
8132 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8133 NS_FACE_BACKGROUND with 0 instead of nil.
8134 * nsfont.m (nsfont_draw): Same.
8135
81362008-07-19 Chong Yidong <cyd@stupidchicken.com>
8137
8138 * nsfns.m (ns_set_background_color): Fix crash.
8139
81402008-07-18 Chong Yidong <cyd@stupidchicken.com>
8141
8142 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8143
81442008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8145
8146 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8147
81482008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8149
8150 * gtkutil.c: Include <config.h> instead of "config.h".
8151
8152 * lisp.h (Foverlay_buffer): Add EXFUN.
8153
8154 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8155 child process to complete child_setup. Undo 2005-09-21 change.
8156
8157 * s/darwin.h: Mention setsid after vfork.
8158
81592008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8160
8161 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8162 Depend on macgui.h.
8163
8164 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8165 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8166
8167 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8168 and f19.
8169 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8170
8171 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8172 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8173 Remove enumerators.
8174
8175 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8176 Check if FACE_FROM_ID returns NULL.
8177
81782008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8179
8180 * w32inevt.c (change_frame_size): Remove extern declaration.
8181 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8182 change_frame_size.
8183
81842008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8185
8186 * getloadavg.c: Revert last change (2008-07-15).
8187
81882008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8189
8190 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8191 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8192 from configure.
8193
81942008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8195
8196 * s/sol2.h:
8197 * s/sol2-4.h: Reorganize conditionals.
8198
8199 * ecrt0.c: Remove code depending on m68000, not used anymore.
8200
8201 * fns.c (hash_remove): Make static.
8202 * lisp.h (hash_remove): Don't prototype.
8203
8204 * m/ibmrs6000.h:
8205 * m/ibms390x.h:
8206 * m/macppc.h: Remove boilerplate comments.
8207
8208 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8209 Solaris, which does not need them.
8210
8211 * m/vax.h: Remove comments about unsupported systems.
8212
8213 * s/darwin.h: Reorganize ifdefs.
8214
82152008-07-17 Andreas Schwab <schwab@suse.de>
8216
8217 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8218
82192008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8220
8221 Use SDATA. Follow coding convention of placing operators at
8222 beginning of next line rather than end of previous line, and placing
8223 spaces around infix operators.
8224
8225 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8226 in case it was defined already.
8227 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8228 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8229 ns_default.
8230 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8231 Lisp_Objects.
8232 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8233 (ns_defined_color, ns_color_to_lisp): Declare.
8234 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8235 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8236 it's accepted even with USE_LISP_UNION_TYPE.
8237 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8238 (update_frame_tool_bar): Remove apparently obsolete tests for
8239 non-integerness of f->tool_bar_lines.
8240 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8241 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8242 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8243 (nsfont_open): Don't confuse NULL for Qnil.
8244 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8245 * menu.h (find_and_call_menu_selection):
8246 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8247 (find_and_return_menu_selection): Always return something.
8248 * frame.h: Include dispextern.h for Display_Info.
8249 (display_x_get_resource): Declare.
8250
82512008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8252
8253 * syntax.c: Remove stdio.h include accidentally introduced in
8254 Emacs.app commit.
8255 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8256 NS_IMPL_COCOA.
8257 * keyboard.c (handle_async_input, input_available_signal): Remove
8258 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8259
82602008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8261
8262 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8263 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8264 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8265 Use SDATA.
8266
8267 * keymap.c: Remove all NS-specific code.
8268 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8269 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8270 where_is_preferred_modifier, return a different value depending on how
8271 preferred is the binding.
8272 (where_is_internal): Adjust accordingly.
8273 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8274 Adjust to new preferred_sequence_p.
8275 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8276 * keyboard.c (parse_solitary_modifier): Not static any more.
8277 * keyboard.h (parse_solitary_modifier): Declare.
8278
82792008-07-16 Andreas Schwab <schwab@suse.de>
8280
8281 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8282 of easymenu.
8283
82842008-07-16 Chong Yidong <cyd@stupidchicken.com>
8285
8286 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8287 that we don't move off the line.
8288
82892008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8290
8291 * keyboard.c (Qsuper): Remove.
8292 (parse_menu_item): Don't call where_is_internal specially for NS.
8293
82942008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8295
8296 * s/gnu-linux.h: Remove boilerplate comments.
8297
8298 * m/alpha.h (__ELF__): Consolidate conditions.
8299
8300 * m/m68k.h (linux): Use GNU_LINUX instead.
8301 Remove boilerplate comments.
8302
8303 * m/intel386.h: Undo refactoring from previous change.
8304 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8305 too, remove dead code.
8306 (linux): Use GNU_LINUX instead.
8307
83082008-07-16 Jason Rumney <jasonr@gnu.org>
8309
8310 * w32gui.h: Repeat 26 June changes lost by last change.
8311
83122008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8313
8314 * systty.h: Remove code for Aix on 386, unsupported platform.
8315
8316 * s/ms-w32.h: Remove boilerplate comments.
8317 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8318
8319 * s/gnu-linux.h (TERM): Remove support.
8320 (HAVE_SYSVIPC): Remove, unused.
8321 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8322 for this system.
8323
8324 * process.c: Remove support for IRIS, unused.
8325 Remove support for TERM, not relevant anymore.
8326
8327 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8328 used with the definition.
8329
8330 * s/aix4-2.h (static): Do not undef.
8331
8332 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8333 only used on Aix.
8334 (HAVE_SYSVIPC): Remove, unused.
8335
8336 * m/hp800.h (CANNOT_DUMP): Do not undef.
8337
8338 * m/alpha.h: Fix comment.
8339
8340 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8341 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8342 used by this configuration.
8343 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8344 * unexec.c: Remove code depending on HPUX and
8345 USG_SHARED_LIBRARIES, not used with this file. Remove code
8346 depending on IRIS, unused. Remove if 0-ed code.
8347
8348 * s/template.h: Remove comments about static.
8349
8350 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8351 Remove if 0-ed code.
8352 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8353 were the same as the default.
8354 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8355 Remove boilerplate comments.
8356 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8357 (HAVE_SYSVIPC): Remove, unused.
8358 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8359
8360 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8361 Remove boilerplate comments.
8362 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8363 Remove boilerplate comments.
8364 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8365 Remove boilerplate comments.
8366 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8367
8368 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8369 USG systems which do not use DATA_SEG_BITS.
8370 Refactor code. Remove boilerplate comments.
8371
8372 * m/ibms390.h:
8373 * m/m68k.h:
8374 * s/bsd-common.h:
8375 * s/cygwin.h:
8376 * s/darwin.h:
8377 * s/freebsd.h:
8378 * s/gnu.h:
8379 * s/msdos.h: Remove boilerplate comments.
8380
8381 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8382 do not use this file.
aac0c6e3
MR
8383 (IRIS_4D): Remove, unused.
8384
8385 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8386 do not use this file.
aac0c6e3
MR
8387 (SIGN_EXTEND_CHAR):
8388 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8389 * unexmips.c: Remove file, unused.
8390
8391 * editfns.c (Fuser_full_name): Replace the only use of
8392 USER_FULL_NAME with its value.
8393 * config.in: Regenerate.
8394
83952008-07-16 David Reitter <david.reitter@gmail.com>
8396
8397 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8398 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8399
84002008-07-16 Glenn Morris <rgm@gnu.org>
8401
8402 * emacs.c (system-type): Doc fix.
8403
84042008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8405
8406 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8407 If the cache doesn't work, let's fix it, rather than work around it.
8408
84092008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8410
8411 * Makefile.in: Correct additions for nsfont.o in last commit.
8412 * nsfont.m: New file (forgot last commit).
8413
84142008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8415
8416 * callproc.c (set_initial_environment): Initialize
8417 Vprocess_environment under CANNOT_DUMP (fixes crash when
8418 batch-compiling for bootstrap).
8419
84202008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8421 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8422
8423 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8424 fix crash due to different init order.
8425
84262008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8427
8428 Changes and additions for NeXTstep windowing system (Cocoa and
8429 GNUstep) support.
8430
8431 * Makefile.in:
8432 * config.in: Support defines and build commands for NS port.
8433 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8434 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8435 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8436 windowing.
8437 (struct face): Add synth_ital field.
8438 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8439 (init_display): Initialize Vinitial_window_system to "ns" when so
8440 compiled.
8441 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8442 (display_arg): Use under NS.
8443 (main): Under NS, allocate autorelease pool and handle command line
8444 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8445 (standard_args): Add NS-specific args.
8446 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8447 * font.c (DEFAULT_ENCODING): New variable.
8448 (font_find_for_lface): Use it.
8449 (syms_of_font): Load syms_of_nsfont under NS.
8450 * font.h: Declare nsfont_driver when compiled under NS.
8451 * fontset.c: When compiling under NS, include nsterm.h.
8452 (fontset_from_font): Autoconstruct fontset under NS.
8453 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8454 symbol, document and use it.
8455 (do_switch_frame): When for_deletion under Cocoa, add
8456 Fraise_frame(Qnil).
8457 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8458 (x_get_arg): Allow "yes" and "no" as boolean values.
8459 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8460 Qright under Cocoa.
8461 (focus-follows-mouse): Default to 0 under NS.
8462 * frame.h (enum output_method): Add output_ns.
8463 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8464 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8465 (FRAME_WINDOW_P): NS-specific definition.
8466 * fringe.c (max_used_fringe_bitmap): Make public.
8467 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8468 (getloadavg): Use NeXT code under descendant OS's.
8469 * image.c (includes and header section, x_create_bitmap_from_data)
8470 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8471 (image_background_transparent, x_clear_image_1)
8472 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8473 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8474 (x_to_xcolors, x_from_xcolors, x_disable_image)
8475 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8476 other GUIs, including XPM support using code originally written for
8477 Carbon GUI.
8478 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8479 using NS API.
8480 (image_ascent): Use font metrics macros instead of direct struct field
8481 access.
8482 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8483 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8484 Also, handle NS as GTK for menu bar purposes.
8485 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8486 toolkit where they differ.
8487 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8488 use cachelist, still needed under NS.
8489 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8490 (struct widget_value): Define it here for menu.c.
8491 * keymap.c (includes): Include modifier internals.
8492 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8493 NS.
8494 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8495 support for preferring sequences using certain modifiers, specified by
8496 the FIRSTONLY argument.
8497 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8498 under NS GNUstep implementation.
8499 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8500 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8501 * menu.c: Include nsterm.h under NS.
8502 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8503 (free_menubar_widget_tree_value, update_submenu_strings)
8504 (find_and_call_menu_selection): Treat NS as X and NT.
8505 (find_and_return_menu_selection): New function, used for popup menus.
8506 * nsgui.h:
8507 * nsterm.h:
8508 * nsfns.m:
8509 * nsimage.m:
8510 * nsmenu.m:
8511 * nsselect.m:
8512 * nsterm.m: New files.
8513 * process.c (wait_reading_process_output): Under NS, call ns_select()
8514 instead of plain select().
8515 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8516 beginning of buffer.
8517 * sysselect.h (init_process): Rename when compiling under Cocoa to
8518 avoid name conflict.
8519 * termhooks.h (display_info): Add ns_display_info to union.
8520 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8521 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8522 COCOA environment.
8523 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8524 unexec() signature. (Note, this will dump, but the resulting file
8525 crashes; unexosx is used instead; keeping around for reference and
8526 possible aid in getting dump working under GNUstep.)
8527 * w32gui.h (button_type, widget_value): Remove definitions (now in
8528 keyboard.h).
8529 * window.c: Include nsterm.h when compiling under NS.
8530 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8531 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8532 other GUI windowing systems.
8533 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8534 GTK.
8535 (x_consider_frame_title): Under NS, set icon type and frame
8536 modified-state indicator; use ns_set_name_as_filename() when using
8537 formatted title.
8538 (update_window_cursor): Make public when compiling under NS.
8539 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8540 (hourglass_atimer, Vhourglass_delay
8541 * xfaces.c (header section, init_frame_faces, clear_font_table)
8542 (defined_color, unload_color, x_face_list_fonts)
8543 (prepare_face_for_display): Add NS support parallel to other GUIs.
8544 Emulate GCs like other non-X GUIs.
8545 (split_font_name): Don't lowercase font name under NS.
8546 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8547 under NS.
8548 * s/darwin.h: Add support for compilation under NS.
8549
85502008-07-15 Jason Rumney <jasonr@gnu.org>
8551
8552 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8553 (w32_show_hourglass): Rename from show_hourglass.
8554 (w32_hide_hourglass): Rename from hide_hourglass.
8555 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8556 (Vhourglass_delay): Declare extern.
8557 (hourglass_started): Remove.
8558
8559 * xdisp.c (Vhourglass_delay): Remove static.
8560 (hourglass_started, start_hourglass, cancel_hourglass):
8561 Don't include these versions on WINDOWSNT.
8562
85632008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8564
8565 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8566 variables (formerly in xfns.c).
8567 (show_hourglass, hide_hourglass): New prototypes (same).
8568 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8569 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8570 in xfns.c).
8571 (syms_of_xdisp): Declare/initialize display-hourglass,
8572 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8573 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8574 formerly in xfns.c.
8575 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8576 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8577 (start_hourglass, cancel_hourglass): Remove.
8578 (show_hourglass, hide_hourglass): Remove prototypes and static
8579 modifiers.
8580 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8581 hourglass_atimer, hourglass_shown_p declaration/initialization.
8582 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8583 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8584 (start_hourglass, cancel_hourglass): Remove.
8585 (show_hourglass, hide_hourglass): Remove prototypes and static
8586 modifiers.
8587 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8588 hourglass_atimer, hourglass_shown_p declaration/initialization.
8589 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8590 (DEFAULT_HOURGLASS_DELAY): Remove.
8591 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8592 hourglass_shown_p declaration/initialization.
8593
85942008-07-14 Jason Rumney <jasonr@gnu.org>
8595
8596 * w32fns.c (w32_get_arg): Remove wrapper function.
8597 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8598 directly.
8599 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8600
86012008-07-14 Kenichi Handa <handa@m17n.org>
8602
8603 * xfont.c (xfont_open): Add workaround for X's bug.
8604
86052008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8606
8607 * fontset.c: Include <stdio.h> unconditionally.
8608
86092008-07-13 Michael Albinus <michael.albinus@gmx.de>
8610
8611 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8612 for filtering.
8613
86142008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8615
8616 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8617
8618 * m/macppc.h:
8619 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8620
8621 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8622 (SPECIAL_EMACS_INT):
8623 * m/ia64.h (SPECIAL_EMACS_INT):
8624 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8625 * s/gnu.h (NLIST_STRUCT):
8626 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8627 * s/gnu-linux.h (LINUX):
8628 * s/msdos.h (HAVE_FACES):
8629 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8630
8631 * systty.h:
8632 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8633 anymore.
8634
86352008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
8636
8637 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
8638 always defined as int.
8639
8640 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
8641 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
8642 * s/gnu-linux.h (HAVE_WAIT_HEADER):
8643 * s/freebsd.h (HAVE_WAIT_HEADER):
8644 * s/bsd-common.h (HAVE_UNION_WAIT):
8645 * s/aix4-2.h (HAVE_WAIT_HEADER):
8646 * m/mips.h (HAVE_UNION_WAIT):
8647 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
8648 (COFF, static): Do not define, they are undefined later in the file.
8649
8650 * process.c (update_status): Don't use a union.
8651 (status_convert):
8652 (sigchld_handler): Use int instead of WAITTYPE.
8653
86542008-07-12 Chong Yidong <cyd@stupidchicken.com>
8655
8656 * indent.c (Fvertical_motion): Restore hscroll before moving to
8657 goal column.
8658
86592008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8660
8661 * lisp.h: Remove left over code.
8662
86632008-07-11 Andreas Schwab <schwab@suse.de>
8664
8665 * lisp.h: Fix logic in last change.
8666
8667 * menu.h: New file.
8668 * menu.c: Include it.
8669 * xmenu.c: Likewise.
8670 * Makefile.in: Update dependencies.
8671
86722008-07-11 Kenichi Handa <handa@m17n.org>
8673
8674 * fontset.c (fontset_from_font): Cancel the previous change.
8675
86762008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
8677
8678 * lisp.h:
8679 * w32heap.c:
8680 * emacs.c:
8681 * alloc.c: Replace all references of NO_UNION_TYPE with
8682 USE_LISP_UNION_TYPE.
8683
8684 * m/xtensa.h (NO_UNION_TYPE):
8685 * m/vax.h (NO_UNION_TYPE):
8686 * m/template.h (NO_UNION_TYPE):
8687 * m/sparc.h (NO_UNION_TYPE):
8688 * m/mips.h (NO_UNION_TYPE):
8689 * m/macppc.h (NO_UNION_TYPE):
8690 * m/m68k.h (NO_UNION_TYPE):
8691 * m/iris4d.h (NO_UNION_TYPE):
8692 * m/intel386.h (NO_UNION_TYPE):
8693 * m/ibms390x.h (NO_UNION_TYPE):
8694 * m/ibms390.h (NO_UNION_TYPE):
8695 * m/ibmrs6000.h (NO_UNION_TYPE):
8696 * m/ia64.h (NO_UNION_TYPE):
8697 * m/hp800.h (NO_UNION_TYPE):
8698 * m/arm.h (NO_UNION_TYPE):
8699 * m/amdx86-64.h (NO_UNION_TYPE):
8700 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
8701 defining it the same.
8702
87032008-07-10 Chong Yidong <cyd@stupidchicken.com>
8704
8705 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
8706
87072008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8708
8709 * fileio.c:
8710 * sysdep.c
8711 * systty.h:
8712 * m/ibmrs6000.h:
8713 * m/iris4d.h:
8714 * s/aix4-2.h:
8715 * s/freebsd.h:
8716 * s/gnu-linux.h:
8717 * s/hpux10-20.h:
8718 * s/hpux11.h:
8719 * s/netbsd.h:
8720 * s/sol2-3.h:
8721 * s/sol2-4.h:
8722 * s/sol2.h:
8723 * s/usg5-4.h:
8724 * s/vms.h: Remove references to unused variables.
8725
87262008-07-10 Andreas Schwab <schwab@suse.de>
8727
8728 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
8729 pattern before matching the generic family.
8730
87312008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
8732
8733 * unexec.c:
8734 * s/vms.h:
8735 * s/usg5-4-2.h:
8736 * s/sol2-5.h:
8737 * s/freebsd.h:
8738 * s/darwin.h: Remove dead code.
8739
8740 * m/template.h:
8741 * m/sparc.h:
8742 * m/mips.h:
8743 * m/m68k.h:
8744 * m/iris4d.h:
8745 * m/intel386.h:
8746 * m/ibms390x.h:
8747 * m/ibms390.h:
8748 * m/ia64.h:
8749 * m/hp800.h:
8750 * m/arm.h:
8751 * m/amdx86-64.h: Remove dead code and references to unused
8752 and compiler defined symbols.
8753
8754 * unexmips.c:
8755 * unexelf.c: Remove references to desupported systems.
8756
8757 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
8758
8759 * m/powermac.h: Remove boilerplate comments.
8760 (NO_REMAP): Remove unused definition.
8761
8762 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
8763 define them.
8764
87652008-07-10 Kenichi Handa <handa@m17n.org>
8766
8767 * xfont.c (xfont_open): Log the reason of failure.
8768
87692008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
8770
8771 * fontset.c (fontset_get_font_group):
8772 * font.c (font_check_otf): Specify argument types.
8773
87742008-07-09 Kenichi Handa <handa@m17n.org>
8775
8776 * coding.c (detect_coding_utf_8): Set detect_info->found only when
8777 non-ASCII char is found.
8778
8779 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
8780 (reorder_font_vector): Change the arg preferred_family to font.
8781 Prefer the spec matching with font.
8782 (fontset_get_font_group): New function.
8783 (fontset_find_font): Change the format of an element of a realized
8784 fontset. Use fontset_get_font_group.
8785 (fontset_font): Try the current fontset, the default fontset, the
8786 fallbacks of the current fontset, and the fallbacks of the default
8787 fontset in this order.
8788 (face_for_char): Delete the shortcut to use the current font.
8789 (fontset_from_font): Don't set fonts for Latin in the fontset.
8790
8791 * font.h (font_make_object, font_match_p): Adjust prototypes.
8792
8793 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8794
8795 * font.c (font_make_object): New arg entity and pixelsize.
8796 (font_check_otf_features, font_check_otf): New functions.
8797 (font_match_p): Check :lang, :script, and :otf properties.
8798
8799 * xfont.c (xfont_open): Adjust it for the change of
8800 font_make_object.
8801 (xfont_text_extents): Fix initial setting of metrics.
8802
8803 * ftfont.c (struct ftfont_info): New member index, delete member
8804 fc_charset_idx. Make the member order compatible with struct
8805 xftfont_info.
8806 (fc_charset_table): Change charset names to registry names.
8807 (ftfont_pattern_entity): Delete the args registry and
8808 fc_charset_idx. Change the value of :font-entity property
8809 to (FONTNAME . INDEX). Always set :registry property to
8810 `iso10646-1'.
8811 (struct ftfont_cache_data): New struct.
8812 (ftfont_lookup_cache): New arg for_face.
8813 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8814 (ftfont_driver): Set the member otf_capability.
8815 (ftfont_get_charset): Adjust it for the change of
8816 fc_charset_table.
8817 (OTF_TAG_SYM): New macro.
8818 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8819 for the change of fc_charset_table.
8820 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8821 ftfont_pattern_entity. Add FC_INDEX to objset.
8822 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8823 and ftfont_pattern_entity.
8824 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8825 font_make_object, struct ftfont_info.
8826 (ftfont_has_char): Use ftfont_get_fc_charset.
8827 (ftfont_otf_features, ftfont_otf_capability): New functions.
8828 (ftfont_shape): Use ftfont_get_otf.
8829 (ftfont_text_extents): Fix initial setting of metrics.
8830
8831 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8832 member order compatible with struct ftfont_info.
8833 (xftfont_open): Add FC_CHARSET to the pattern. Set
8834 xftfont_info->ft_size. Don't unlock the face. Check BDF
8835 properties if appropriate.
8836 (xftfont_close): Unlock the face.
8837 (xftfont_anchor_point, xftfont_shape): Deleted.
8838 (syms_of_xftfont): Don't set members anchor_point and shape of
8839 xftfont_driver.
8840
8841 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8842 font_make_object.
8843
8844 * w32font.c (w32font_open): Adjust it for the change of
8845 font_make_object.
8846 (w32font_open_internal): Don't set properties of font_object here.
8847
88482008-07-08 Chong Yidong <cyd@stupidchicken.com>
8849
8850 * macfns.c (x_create_tip_frame):
8851 * w32fns.c (x_create_tip_frame):
8852 * xfns.c (x_create_tip_frame): Pass parameter argument to
8853 face-set-after-frame-default.
8854
8855 * xfaces.c (Finternal_merge_in_global_face): Save merged
8856 attributes for the default face back into the face vector.
8857
88582008-07-08 Andreas Schwab <schwab@suse.de>
8859
8860 * fontset.h: Declare fontset_from_font. Don't declare
8861 new_fontset_from_font and fontset_from_font_name.
8862 * xterm.c: Include "fontset.h".
8863 * Makefile.in (xterm.o): Update dependencies.
8864
88652008-07-08 Glenn Morris <rgm@gnu.org>
8866
8867 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8868 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8869
88702008-07-07 Chong Yidong <cyd@stupidchicken.com>
8871
8872 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8873 (x_set_frame_parameters): Don't bind it.
8874
88752008-07-07 Juanma Barranquero <lekktu@gmail.com>
8876
8877 * w32fns.c (map_w32_filename): Declare extern.
8878
88792008-07-07 Jason Rumney <jasonr@gnu.org>
8880
8881 * w32term.c (WS_EX_LAYERED): Define if not already.
8882
88832008-07-06 Chong Yidong <cyd@stupidchicken.com>
8884
8885 * xfaces.c (set_font_frame_param): Don't try to set the font
8886 parameter if it is still unspecified in the lface.
8887
88882008-07-05 Chong Yidong <cyd@stupidchicken.com>
8889
8890 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8891 face if it didn't already exist.
8892
8893 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8894
88952008-07-05 Andreas Schwab <schwab@suse.de>
8896
8897 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8898
88992008-07-05 Chong Yidong <cyd@stupidchicken.com>
8900
8901 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8902 word-wrapping.
8903 (IT_DISPLAYING_WHITESPACE): New macro.
8904 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8905 when word-wrapping. Simplify word-wrapping logic. Use correct
8906 pixel positions when saving copies of the iterator.
8907 (display_line): Use proper wrap point if the last character on a
8908 line was preceded by whitespace.
8909
89102008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8911
8912 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8913
89142008-07-04 Kenichi Handa <handa@m17n.org>
8915
8916 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8917
8918 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8919
89202008-07-02 Jason Rumney <jasonr@gnu.org>
8921
8922 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8923 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8924
8925 * xdisp.c (next_element_from_display_vector): Move assignment out
8926 of if statement.
8927
89282008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8929
8930 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8931
8932 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8933 (syms_of_fileio): Initialize and export them.
8934 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8935
8936 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8937 (Fsystem_move_file_to_trash): New function.
8938 (syms_of_w32fns): Export it to lisp.
8939
89402008-07-01 Jason Rumney <jasonr@gnu.org>
8941
8942 * w32font.c (w32font_text_extents): Don't count overhang as part
8943 of width.
8944
89452008-06-30 Miles Bader <miles@gnu.org>
8946
8947 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8948 Add `avoid_cursor_p' field.
8949
8950 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8951 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8952 (append_glyph, append_composite_glyph, produce_image_glyph)
8953 (append_stretch_glyph): Initialize avoid_cursor_p.
8954 (get_it_property): Rename from `get_line_height_property'.
8955 (x_produce_glyphs): Use get_it_property.
8956 (handle_line_prefix, push_display_prop): New functions.
8957 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8958 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8959 New variables.
8960 (syms_of_xdisp): Initialize them.
8961
89622008-06-30 Kenichi Handa <handa@m17n.org>
8963
8964 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8965 XftDefaultSubstitute (they are called in XftFontMatch).
8966 (xftfont_open): Fix args to ftfont_font_format.
8967
8968 * ftfont.c (fc_charset_table): New member lang.
8969 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8970 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8971 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8972 (ftfont_open): Fix args to ftfont_font_format.
8973 (ftfont_font_format): New arg filename.
8974
89752008-06-30 Chong Yidong <cyd@stupidchicken.com>
8976
8977 * xfaces.c (Finternal_merge_in_global_face): If default face was
8978 modified, realize it again. Update the font face attribute.
8979
89802008-06-29 Jason Rumney <jasonr@gnu.org>
8981
8982 * w32term.c (x_set_frame_alpha): Fix logic.
8983
89842008-06-29 Kenichi Handa <handa@m17n.org>
8985
8986 * fontset.c (Finternal_char_font): Return font-object instead of
8987 font-name.
8988
8989 * composite.c (get_composition_id): Fix the width calculation for TAB.
8990
89912008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8992
8993 * indent.c (Fvertical_motion): Properly handle float column arg.
8994
89952008-06-28 Jason Rumney <jasonr@gnu.org>
8996
8997 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8998 (pfnSetLayeredWindowAttributes): New function pointer.
8999 (w32_initialize): Initialize it when supported.
9000 (x_set_frame_alpha): New function.
9001
9002 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9003 (w32_frame_parm_handlers): Set alpha handler.
9004
9005 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9006
90072008-06-27 Jason Rumney <jasonr@gnu.org>
9008
9009 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9010 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9011 (w32_to_x_charset, x_to_w32_charset)
9012 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9013 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9014 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9015 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9016 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9017 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9018 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9019 (Qw32_charset_unicode): Remove.
9020 (syms_of_w32fns): Update for above changes.
9021
9022 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9023 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9024 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9025 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9026 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9027 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9028 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9029 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9030 (syms_of_w32font): Update for above changes.
9031
90322008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9033
9034 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9035 removed #if.
9036 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9037
90382008-06-26 Juanma Barranquero <lekktu@gmail.com>
9039 Eli Zaretskii <eliz@gnu.org>
9040
9041 * makefile.w32-in (LOCAL_FLAGS):
9042 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9043
9044 * sysdep.c (_spawnlp, _getpid):
9045 Declare with explicit _cdecl instead of _CRTAPI1.
9046
9047 * editfns.c (Fget_internal_run_time):
9048 Check for WINDOWSNT with #ifdef, not #if.
9049
90502008-06-26 Jason Rumney <jasonr@gnu.org>
9051
9052 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9053
9054 * w32term.c (x_draw_glyph_string_foreground)
9055 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9056 Use FONT_HANDLE macro.
9057 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9058
9059 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9060 (uniscribe_encode_char): Use FONT_HANDLE macro.
9061
9062 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9063 (w32font_text_extents): Use precast w32_font.
9064 (w32font_close): Free cached metrics.
9065 (w32font_open_internal): Allocate space for name on stack.
9066
90672008-06-26 Chong Yidong <cyd@stupidchicken.com>
9068
9069 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9070
90712008-06-26 Jason Rumney <jasonr@gnu.org>
9072
9073 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9074 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9075
90762008-06-26 Juanma Barranquero <lekktu@gmail.com>
9077
9078 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9079
90802008-06-26 Jason Rumney <jasonr@gnu.org>
9081
9082 * w32bdf.c, w32bdf.h: Remove obsolete files.
9083
9084 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9085
9086 * w32gui.h: Don't include w32bdf.h.
9087 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9088 Remove obsolete font support.
9089
9090 * w32font.h (struct w32font_info): Remove compat_w32_font.
9091 Add hfont member.
9092 (FONT_COMPAT): Remove obsolete macro.
9093
9094 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9095 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9096 (w32font_open_internal): Remove compat code. Set new hfont member.
9097 (Fx_select_font): Use new hfont member.
9098
9099 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9100 (uniscribe_encode_char): Use new hfont member.
9101
9102 * w32term.c (x_draw_glyph_string_foreground)
9103 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9104 (x_draw_glyph_string): Use metrics in w32font_info.
9105
91062008-06-26 Kenichi Handa <handa@m17n.org>
9107
9108 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9109
91102008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9111
9112 * unexnext.c:
9113 * m/ews4800.h:
9114 * m/hp9000s300.h:
9115 * m/ibm370aix.h:
9116 * m/mips-siemens.h:
9117 * m/ncr386.h:
9118 * m/next.h:
9119 * m/pmax.h:
9120 * m/powerpcle.h:
9121 * m/tandem-s2.h:
9122 * s/386bsd.h:
9123 * s/bsd386.h:
9124 * s/bsd4-1.h:
9125 * s/bsd4-2.h:
9126 * s/bsdos2-1.h:
9127 * s/bsdos2.h:
9128 * s/bsdos3.h:
9129 * s/bsdos4.h:
9130 * s/nextstep.h:
9131 * s/ultrix4-3.h:
9132 * s/usg5-0.h:
9133 * s/usg5-2-2.h:
9134 * s/usg5-2.h:
9135 * s/usg5-4-3.h:
9136 * s/ux4800.h:
9137 * s/uxpds.h:
9138 * s/uxpv.h: Remove support for obsolete systems.
9139 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9140 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9141 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9142 Remove, insert contents in s/aix4-2.h.
9143 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9144 * s/bsd4-3.h: Rename to ...
9145 * s/bsd-common.h: ... this.
9146 * data.c:
9147 * doc.c:
9148 * ecrt0.c:
9149 * emacs.c:
9150 * fileio.c:
9151 * floatfns.c:
9152 * keyboard.c:
9153 * mem-limits.h:
9154 * print.c:
9155 * process.c:
9156 * sysdep.c:
9157 * syssignal.h:
9158 * systty.h:
9159 * syswait.h:
9160 * term.c:
9161 * unexec.c:
9162 * unexelf.c:
9163 * unexhp9k800.c:
9164 * m/hp800.h:
9165 * m/ibmrs6000.h:
9166 * m/mips.h:
9167 * m/vax.h:
9168 * s/darwin.h:
9169 * s/freebsd.h:
9170 * s/gnu.h:
9171 * s/ms-w32.h:
9172 * s/msdos.h:
9173 * s/netbsd.h:
9174 * s/template.h: Remove references to obsolete variables.
9175
9176 * Makefile.in: Add dependencies for all unexec files.
9177 (admindir): Remove unused variable.
9178 (UNEXEC_SRC): Remove references.
9179
91802008-06-25 Chong Yidong <cyd@stupidchicken.com>
9181
9182 * xfns.c (x_default_font_parameter): If Xft is available, first
9183 try Monospace-12 for the default font.
9184
91852008-06-25 Jason Rumney <jasonr@gnu.org>
9186
9187 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9188
91892008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9190
9191 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9192
9193 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9194
91952008-06-25 Juanma Barranquero <lekktu@gmail.com>
9196
9197 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9198 <scroll-conservatively>: Fix typo in docstring.
9199
9200 * xselect.c (Fx_send_client_event): Doc fix.
9201
92022008-06-25 Kenichi Handa <handa@m17n.org>
9203
9204 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9205
9206 * font.c (font_parse_fcname): Remove unused variables.
9207 (font_sort_entites): Delete the arg SPEC. Caller changed.
9208 Fix for the case of ! best_only.
9209 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9210
9211 * lisp.h (Fstring_to_unibyte): EXFUN it.
9212
9213 * character.h (str_to_unibyte): Extern it.
9214
9215 * character.c (str_to_unibyte): New function.
9216
9217 * fns.c (Fstring_to_unibyte): New function.
9218 (syms_of_fns): Defsubr it.
9219
92202008-06-24 Kenichi Handa <handa@m17n.org>
9221
9222 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9223 DPI too.
9224 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9225
92262008-06-24 Andreas Schwab <schwab@suse.de>
9227
9228 * Makefile.in (${lispsource}loaddefs.el): Rename from
9229 ../lisp/loaddefs.el.
9230 (bootstrap-clean): Do what distclean does but don't remove
9231 Makefile.
9232 (distclean): Depend on bootstrap-clean and remove Makefile.
9233
92342008-06-24 Chong Yidong <cyd@stupidchicken.com>
9235
9236 * buffer.h (struct buffer): New member word_wrap.
9237
9238 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9239 word-wrap.
9240 (init_buffer_once): Initialize them.
9241
9242 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9243 line_wrap enum possessing three possible values.
9244
9245 * termopts.h: Replace truncate_partial_width_windows with
9246 Vtruncate_partial_width_windows.
9247
9248 * dispnew.c (direct_output_for_insert): Avoid direct output when
9249 inserting a space with word wrap on.
9250
9251 * indent.c (compute_motion): Obey integer values of
9252 truncate-partial-width-windows.
9253
9254 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9255 replacing truncate_partial_width_windows.
9256 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9257 truncate only if the window width is below that integer.
9258 (start_display, resize_mini_window, produce_stretch_glyph)
9259 (display_string, move_it_in_display_line_to): Use line_wrap.
9260 (back_to_previous_visible_line_start, reseat_1): Reset
9261 string_from_display_prop_p.
9262 (display_line): Extend default face to end of line when wrapping.
9263
92642008-06-24 Kim F. Storm <storm@cua.dk>
9265
9266 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9267 to wrap continued lines at word boundaries.
9268
92692008-06-24 Jason Rumney <jasonr@gnu.org>
9270
9271 * font.c (Ffont_face_attributes): Multiply pixel size before point
9272 conversion to avoid multiplying rounding error.
9273
92742008-06-23 Jason Rumney <jasonr@gnu.org>
9275
9276 * w32term.c (x_draw_glyph_string_background)
9277 (x_draw_glyph_string): Remove old bdf font code.
9278
9279 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9280
92812008-06-22 Kenichi Handa <handa@m17n.org>
9282
9283 * font.c (font_find_for_lface): Try the adstyle specified in
9284 the property of LFACE_FONT of LFACE (if any).
9285
92862008-06-21 Seiji Zenitani <zenitani@mac.com>
9287 Ryo Yoshitake <ryo@shiftmode.net>
9288
9289 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9290
92912008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9292
9293 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9294 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9295 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9296 (witness-emacs): Remove.
9297 (lisp, shortlisp): Move loaddefs.el earlier.
9298 (mostlyclean): Forget about witness-emacs.
9299
93002008-06-22 Glenn Morris <rgm@gnu.org>
9301
9302 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9303 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9304
93052008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9306
9307 * Makefile.in (PRECOMP): Remove.
9308 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9309 (witness-emacs): Run `compile-first'.
9310 (.el.elc): Use the new compile-onefile target.
9311
93122008-06-21 Kenichi Handa <handa@m17n.org>
9313
9314 * xftfont.c (xftfont_open): Handle QCembolden only when
9315 FC_EMBOLDEN is defined.
9316
93172008-06-21 Andreas Schwab <schwab@suse.de>
9318
9319 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9320 (.el.elc): Likewise.
9321
93222008-06-21 Miles Bader <miles@gnu.org>
9323
9324 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9325 build dir, not the lisp source dir.
9326
93272008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9328
9329 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9330 (bootstrapclean): Remove.
9331 (.el.elc): New rule.
9332 (PRECOMP): New var.
9333 (../lisp/subdirs.el): Remove.
9334 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9335 (witness-emacs): New target.
9336 (mostlyclean): Remove witness-emacs as well.
9337 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9338 Add witness-emacs dependency.
9339
93402008-06-20 Chong Yidong <cyd@stupidchicken.com>
9341
9342 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9343 defined by the font.
9344
93452008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9346
9347 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9348 (bootstrap-clean): New target that keeps TAGS around.
9349 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9350 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9351
93522008-06-20 Jason Rumney <jasonr@gnu.org>
9353
9354 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9355 Remove obsolete font code.
9356
9357 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9358 to determine language support.
9359
93602008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9361
9362 * sysdep.c (cfsetspeed): New fun extracted from the code.
9363 (cfmakeraw): Move before first use.
9364
93652008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9366
9367 * sysdep.c (cfmakeraw): Provide fallback implementation.
9368 (serial_configure): Provide fallback implementation of cfsetspeed.
9369
93702008-06-20 Kenichi Handa <handa@m17n.org>
9371
9372 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9373 the pattern.
9374
9375 * fontset.c (fontset_from_font): Copy font_spec before changing
9376 the elements.
9377
9378 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9379
93802008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9381
9382 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9383 for explicit `font' parameters.
9384
9385 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9386
93872008-06-19 Kenichi Handa <handa@m17n.org>
9388
9389 * frame.c: Include <ctype.h>.
9390 (x_set_font_backend): Allow spacing characters in the X resource
9391 for FontBackend.
9392
93932008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9394
9395 * w32fns.c, xfns.c (Qfont_param): New var.
9396 (syms_of_w32fns): Initialize it.
9397 (x_default_font_parameter): Record explicit `font' into
9398 `font-parameter'.
9399
94002008-06-18 Kenichi Handa <handa@m17n.org>
9401
9402 * font.c (font_parse_xlfd): Fix previous change.
9403 (font_parse_fcname): Don't use :fc-unknown-spec.
9404 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9405 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9406 (font_add_log): Prepend the driver name to the resulting fonts.
9407
9408 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9409 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9410 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9411
9412 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9413 (QCembolden): New variables.
9414 (syms_of_xftfont): DEFSYM them.
9415 (xftfont_open): Call XftFontMatch. Don't trust the result of
9416 XftTextExtents8 if the pixel_size is less than 5.
9417
94182008-06-18 Andreas Schwab <schwab@suse.de>
9419
9420 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9421 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9422
94232008-06-18 Jason Rumney <jasonr@gnu.org>
9424
9425 * w32font.c (w32font_list, w32font_match): Add logging.
9426
9427 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9428
94292008-06-17 Chong Yidong <cyd@stupidchicken.com>
9430
9431 * font.c (font_parse_fcname): Store divider characters for
9432 unknown-spec list. For known key symbols, intern using correct
9433 symbol name.
9434
94352008-06-17 Kenichi Handa <handa@m17n.org>
9436
9437 * xfaces.c (realize_default_face): If the frame is not on window
9438 system, set the fontset of face to nil.
9439
94402008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9441
9442 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9443
94442008-06-16 Juanma Barranquero <lekktu@gmail.com>
9445
9446 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9447 (build_font_name_from_vector): Delete externs.
9448
9449 * xfaces.c (struct font_name): Don't declare.
9450
94512008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9452
9453 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9454
94552008-06-16 Chong Yidong <cyd@stupidchicken.com>
9456
9457 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9458
94592008-06-16 Juanma Barranquero <lekktu@gmail.com>
9460
9461 * font.c (Ffont_spec): Fix usage in docstring.
9462 (Ffont_face_attributes): Doc fix.
9463
94642008-06-16 Andreas Schwab <schwab@suse.de>
9465
9466 * font.c (Ffont_face_attributes): Fix definition.
9467
94682008-06-16 Jason Rumney <jasonr@gnu.org>
9469
9470 * font.h (font_style_symbolic_from_value): Remove.
9471
9472 * font.c (font_style_symbolic_from_value): Remove.
9473 (font_style_symbolic): Revert to pre 2008-06-13 version.
9474
9475 * w32font.c (w32_to_fc_weight): New function.
9476 (w32font_full_name, logfont_to_fcname): Use it.
9477
94782008-06-16 Kenichi Handa <handa@m17n.org>
9479
9480 * font.c (font_check_object): Delete it.
9481 (font_clear_cache): Check if a font-object is alive.
9482 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9483 font-object to nil.
9484 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9485 (font_at): Don't call font_check_object.
9486 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9487
94882008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9489
9490 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9491
94922008-06-16 Chong Yidong <cyd@stupidchicken.com>
9493
9494 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9495
94962008-06-15 Chong Yidong <cyd@stupidchicken.com>
9497
9498 * font.c (font_parse_fcname): Only one decimal point.
9499 (font_unparse_fcname): Handle data in family and foundry indices
9500 as symbols, not strings.
9501 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9502
9503 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9504
9505 * font.h (font_unparse_gtkname): Add prototype.
9506
95072008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9508
9509 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9510
95112008-06-15 Andreas Schwab <schwab@suse.de>
9512
9513 * font.c (font_update_drivers): Fix crash when no drivers match.
9514
95152008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9516
9517 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9518 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9519
95202008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9521
9522 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9523
95242008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9525
9526 * process.c (Fserial_process_configure, Fprocess_send_eof):
9527 Use EQ to compare Lisp_Objects.
9528
95292008-06-13 Jason Rumney <jasonr@gnu.org>
9530
9531 * w32fns.c (Fw32_select_font): Remove old font API function.
9532
9533 * w32font.c (logfont_to_fcname): New function.
9534 (Fx_select_font): New font dialog function compatible with
9535 GTK/fontconfig version.
9536
9537 * font.c (font_style_symbolic_from_value): New function.
9538 (font_style_symbolic): Use it.
9539
9540 * font.h (font_style_symbolic_from_value): Declare new function.
9541
95422008-06-13 Juanma Barranquero <lekktu@gmail.com>
9543
9544 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9545 <font-width-table>: Fix typos in docstrings.
9546
95472008-06-13 Daniel Engeler <engeler@gmail.com>
9548
9549 These changes add serial port access.
9550 * process.c: Add HAVE_SERIAL.
9551 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9552 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9553 (list_processes_1, select_wrapper, Fstop_process)
9554 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9555 (status_notify): Modify to handle serial processes.
9556 [HAVE_SERIAL] (Fserial_process_configure)
9557 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9558 New functions.
9559 * process.h (struct Lisp_Process): Add `type'.
9560 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9561 New functions.
9562 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9563 serial ports.
b71ac3dd 9564 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9565 * w32.h: Add FILE_SERIAL.
9566 (struct _child_process): Add ovl_read, ovl_write.
9567
95682008-06-13 Kenichi Handa <handa@m17n.org>
9569
9570 * dispextern.h (enum lface_attribute_index): New member
9571 LFACE_FOUNDRY_INDEX.
9572
9573 * font.c (font_score): Delete arg alternate_families. Check only
9574 weight, slant, width, and size. Ignore the difference of alias
9575 style symbols.
9576 (font_sort_entites): Adjust for the above change. Reflect the
9577 order of font-driver to scores.
9578 (font_list_entities): Don't check alternate_familes here.
9579 (font_clear_prop): Handle foundry.
9580 (font_update_lface): Don't parse "foundry-family" form here.
9581 Handle FONT_FOUNDRY_INDEX.
9582 (font_find_for_lface): Likewise. Handle alternate families here.
9583 If registry is nil, try iso8859-1 and ascii-0.
9584 (font_open_for_lface): Pay attention to size in ENTITY.
9585 (font_open_by_name): Simplify by calling font_load_for_lface.
9586 (free_font_driver_list): Delete it.
9587 (font_update_drivers): Preserve the order of backends.
9588 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9589 of font_score and font_sort_entites.
9590 (font_update_sort_order): Likewise.
9591
9592 * xfaces.c (LFACE_FOUNDRY): New macro.
9593 (check_lface_attrs): Check foundry.
9594 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9595 (merge_face_vectors): Check foundry.
9596 (merge_face_ref): Likewise.
9597 (Finternal_set_lisp_face_attribute): Likewise.
9598 (x_update_menu_appearance): Likewise.
9599 (Finternal_get_lisp_face_attribute): Likewise.
9600 (lface_hash): Likewise.
9601 (lface_same_font_attributes_p): Likewise.
9602 (x_supports_face_attributes_p): Likewise.
9603 (tty_supports_face_attributes_p): Likewise.
9604 (Finternal_set_alternative_font_family_alist): Intern strings.
9605 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9606 (realize_default_face): Set LFACE_FOUNDRY (lface).
9607
9608 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9609 font-driver at first.
9610
9611 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9612
96132008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9614
9615 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9616
96172008-06-12 Jim Meyering <meyering@redhat.com>
9618
9619 Make unexec_free handle NULL the same way free does.
9620 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9621
96222008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9623
9624 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9625 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9626 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9627 (WEAK_ALIAS): Simplify.
9628 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9629 when searching a unibyte buffer.
9630
96312008-06-12 Chong Yidong <cyd@stupidchicken.com>
9632
9633 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9634
96352008-06-12 Juanma Barranquero <lekktu@gmail.com>
9636
9637 * w32font.c: Include ctype.h.
9638
96392008-06-11 Jason Rumney <jasonr@gnu.org>
9640
9641 * w32font.c (w32font_encode_char): Detect missing glyphs that are
9642 misreported as space.
9643 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
9644 as aliases for registry iso10646-1.
9645
96462008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9647
9648 * buffer.c (clone_per_buffer_values): Skip `name'.
9649
96502008-06-11 Chong Yidong <cyd@stupidchicken.com>
9651
9652 * font.c (font_parse_fcname): Fix last change; accept decimal
9653 points in font size.
9654
96552008-06-10 Jason Rumney <jasonr@gnu.org>
9656
9657 * w32uniscribe.c (add_opentype_font_name_to_list):
9658 Skip non unicode fonts.
9659
96602008-06-10 Chong Yidong <cyd@stupidchicken.com>
9661
9662 * xfns.c (Fx_font_dialog): New function.
9663
9664 * gtkutil.c (xg_dialog_response_cb): Rename from
9665 xg_file_response_callback.
9666 (pop_down_dialog): Rename from pop_down_file_dialog.
9667 (xg_get_file_name): Callers changed.
9668 (xg_get_font_name): New function.
9669
9670 * gtkutil.h (xg_get_font_name): Insert prototype.
9671
96722008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9673
9674 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
9675 x_underline_minimum_display_offset.
9676 (syms_of_xdisp): Declare it here rather than in xterm.c.
9677 * dispextern.h (underline_minimum_offset): Declare it.
9678 * w32term.c (x_draw_glyph_string): Use it.
9679 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
9680 (syms_of_xterm): Don't declare it any more.
9681 (x_draw_glyph_string): Adjust to the new name.
9682
8719abec 96832008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
9684
9685 * xterm.c (x_underline_minimum_display_offset): New var.
9686 (x_draw_glyph_string): Use it.
9687 (syms_of_xterm): Declare it.
9688
96892008-06-10 Chong Yidong <cyd@stupidchicken.com>
9690
9691 * font.c (font_parse_fcname): Accept GTK-style font names too.
9692
96932008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
9694
9695 * dired.c (file_name_completion): Don't return t if the match is exact
9696 but with different capitalization.
9697 * minibuf.c (Ftry_completion): Simplify.
9698
9699 * window.c (Vwindow_point_insertion_type): New var.
9700 (set_window_buffer): Use it.
9701 (syms_of_window): Init and export it to Lisp.
9702
97032008-06-10 Kenichi Handa <handa@m17n.org>
9704
9705 * font.h (font_intern_prop): Prototype adjusted.
9706
9707 * font.c (font_intern_prop): New arg force_symbol.
9708 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
9709 Adjust for the change of font_intern_prop.
9710
9711 * ftfont.c (ftfont_pattern_entity):
9712 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
9713 (w32_registry):
9714 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9715 the change of font_intern_prop.
9716
97172008-06-09 Juanma Barranquero <lekktu@gmail.com>
9718
9719 * w32menu.c (digest_single_submenu): Declare extern.
9720
97212008-06-09 Jason Rumney <jasonr@gnu.org>
9722
9723 * w32term.c (x_make_frame_visible): Use alternate restore flags.
9724
9725 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
9726 (parse_single_submenu): Remove.
9727 (digest_single_submenu): Remove.
9728 (syms_of_w32menu): Don't initialise variables that have moved
9729 to menu.c.
9730 (set_frame_menubar): Sync with version in xmenu.c.
9731 (w32_menu_show): Sync with xmenu_show in xmenu.c.
9732
9733 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
9734 Make static again.
9735
97362008-06-09 Jason Rumney <jasonr@gnu.org>
9737
9738 Changes to w32 files related to the move of common menu code
9739 to menu.c on 2008-06-08 by Chong Yidong.
9740
9741 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
9742 defs to w32gui.h.
9743 (single_keymap_panes, push_menu_item, push_menu_pane):
9744 Make globally visible.
9745
9746 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
9747 (local_free, malloc_widget_value, free_widget_value)
9748 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
9749 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
9750 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
9751 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
9752 (menu_items, menu_items_allocated, menu_items_used)
9753 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
9754 (init_menu_items, finish_menu_items, discard_menu_items)
9755 (grow_menu_items, push_submenu_start, push_submenu_end)
9756 (push_left_right_boundary, push_menu_pane, push_menu_item)
9757 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
9758 (free_menubar_widget_tree_value, parse_single_submenu)
9759 (update_submenu_strings): Remove functions.
9760 (xmalloc_widget_value): Remove and declare extern.
9761
9762 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
9763 (OBJ1): Build it.
9764
9765 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
9766 (local_heap, local_alloc, local_free, malloc_widget_value)
9767 (free_widget_value): Define here.
9768
97692008-06-09 Kenichi Handa <handa@m17n.org>
9770
9771 * font.h (Qascii_0): Extern it.
9772
9773 * font.c (Qascii_0): New variable.
9774 (syms_of_font): DEFSYM it.
9775 (font_open_by_name): If the registry "iso8859-1" fails, try also
9776 "ascii-0".
9777
9778 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
9779
97802008-06-08 Kenichi Handa <handa@m17n.org>
9781
9782 * .gdbinit (xfont): New command.
9783
97842008-06-08 Andreas Schwab <schwab@suse.de>
9785
9786 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
9787 * Makefile.in (menu.o): Update dependencies.
9788
9789 * Makefile.in (obj): Always add menu.o.
9790 * emacs.c (main): Always call syms_of_menu.
9791 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9792
97932008-06-08 Chong Yidong <cyd@stupidchicken.com>
9794
9795 * Makefile.in: Compile menu.c.
9796
9797 * lisp.h: Declare syms_of_menu.
9798
9799 * emacs.c (main): Call syms_of_menu.
9800
9801 * keyboard.h: Relocate platform-independent menu definitions from
9802 xmenu.c.
9803
9804 * menu.c: New file. Relocate platform-independent menu
9805 definitions from xmenu.c. Suggested by Adrian Robert.
9806
9807 * xmenu.c: Remove platform-independent menu definitions.
9808 (menu_items menu_items_inuse, menu_items_allocated)
9809 (menu_items_used, menu_items_n_panes)
9810 (menu_items_submenu_depth): Move to keyboard.h.
9811 (init_menu_items, finish_menu_items, unuse_menu_items)
9812 (discard_menu_items, restore_menu_items, save_menu_items)
9813 (grow_menu_items, push_submenu_start, push_submenu_end)
9814 (push_left_right_boundary, push_menu_pane, push_menu_item)
9815 (keymap_panes, single_keymap_panes, single_menu_item)
9816 (list_of_panes, list_of_items, find_and_call_menu_selection)
9817 (xmalloc_widget_value, free_menubar_widget_value_tree)
9818 (parse_single_submenu, digest_single_submenu)
9819 (update_submenu_strings): Move to menu.c.
9820
98212008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9822
9823 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9824
98252008-06-06 Miles Bader <miles@gnu.org>
9826
9827 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9828 face, not frame default.
9829
98302008-06-05 Martin Rudalics <rudalics@gmx.at>
9831
9832 * window.c (pop_up_windows, pop_up_frames)
9833 (display_buffer_reuse_frames, Vpop_up_frame_function)
9834 (Vdisplay_buffer_function, Veven_window_heights)
9835 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9836 (Vspecial_display_function, Vsame_window_buffer_names)
9837 (Vsame_window_regexps, split_height_threshold)
9838 (Vsplit_window_preferred_function): Move those vars to window.el.
9839 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9840 (Fdisplay_buffer): Move those functions to window.el.
9841 (syms_of_window): Remove corresponding declarations.
9842 (display_buffer): New function.
9843 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9844 * dispnew.c (Flast_nonminibuf_frame): New function.
9845 * buffer.c (Fpop_to_buffer): Move to window.el.
9846
98472008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9848
9849 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9850
98512008-06-05 Kenichi Handa <handa@m17n.org>
9852
9853 * coding.c (detect_coding): Fix previous change.
9854 (detect_coding_system): Likewise.
9855
98562008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9857
9858 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9859
9860 * keymap.c (Vminibuffer_local_filename_must_match_map):
9861 Rename from Vminibuffer_local_must_match_filename_map.
9862 (syms_of_keymap):
9863 * minibuf.c (Fcompleting_read): Adjust accordingly.
9864 * commands.h: Rename declaration as well.
9865
98662008-06-05 Kenichi Handa <handa@m17n.org>
9867
9868 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9869 family name.
9870 (Ffont_put): Likewise.
9871
9872 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9873 current font-spec.
9874
9875 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9876 is unspecified.
9877
9878 * xfaces.c (realize_x_face): If the font-related face attributes
9879 are the same as those of default face, realize a new fontset from
9880 default->fontset.
9881 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9882
98832008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9884
9885 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9886 (move_it_in_display_line): New wrapper.
9887
9888 * window.c (window_scroll_pixel_based_preserve_x)
9889 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9890 (window_scroll_pixel_based, window_scroll_line_based):
9891 Use them to preserve column positions.
9892 (syms_of_window): Initialize them.
9893
9894 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9895 (HPOS . VPOS) pair.
9896
9897 * dispextern.h (move_it_in_display_line): Declare.
9898
98992008-06-05 Juanma Barranquero <lekktu@gmail.com>
9900
9901 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9902 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9903 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9904
99052008-06-04 Juanma Barranquero <lekktu@gmail.com>
9906
9907 * window.c (Fset_window_parameter): Doc fix.
9908 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9909
99102008-06-04 Joakim Verona <joakim@verona.se>
9911
9912 * window.h (struct window): Add new member window_parameters.
9913
9914 * window.c (Fwindow_parameters, Fwindow_parameter)
9915 (Fset_window_parameter): New defuns.
9916 (syms_of_window): Defsubr the new defuns.
9917 (make_window): Initialize window_parameters to nil.
9918
99192008-06-04 John Paul Wallington <jpw@pobox.com>
9920
9921 * eval.c (Fdefmacro): Doc fix.
9922
99232008-06-04 Kenichi Handa <handa@m17n.org>
9924
9925 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9926 Be sure to call setup_coding_system when we find a proper coding system.
9927 (detect_coding_system): Fix handling of coding->head_ascii.
9928
99292008-06-03 Andreas Schwab <schwab@suse.de>
9930
9931 * font.c (font_prop_validate_spacing): Fix last change.
9932
99332008-06-03 Kenichi Handa <handa@m17n.org>
9934
9935 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9936 (font_parse_fcname): Fix handling of unknown key.
9937
9938 * xfont.c (xfont_list): Try an alias.
9939
9940 * charset.c (char_charset): Return NULL if the arg charset_list is
9941 specified and C doesn't belong to any of them.
9942
99432008-06-02 Chip Coldwell <coldwell@redhat.com>
9944
9945 * font.c (font_pixel_size): Don't take cdr of an integer.
9946
99472008-06-02 Jim Meyering <meyering@redhat.com>
9948
9949 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9950 * alloc.c (xfree): Return right away for a NULL arg.
9951 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9952 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9953 * mac.c (create_apple_event_from_event_ref): Likewise.
9954 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9955 Likewise.
9956 * doprnt.c (doprnt1): Likewise.
9957 * frame.c (frame): Likewise.
9958 * keyboard.c (wipe_kboard): Likewise.
9959 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9960 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9961 * term.c (tty_default_color_capabilities, maybe_fatal)
9962 (delete_tty): Likewise.
9963 * w16select.c (string): Likewise.
9964 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9965 * w32bdf.c (w32_free_bdf_font): Likewise.
9966 * w32fns.c (w32_unload_font): Likewise.
9967 * w32font.c (w32font_close): Likewise.
9968 * window.c (size_window): Likewise.
9969 * xselect.c (receive_incremental_selection): Likewise.
9970 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9971 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9972 * w32.c (stat): Likewise.
9973
9974 Remove useless if-before-free tests.
9975 * editfns.c (Fset_time_zone_rule): Likewise.
9976 * lread.c (nosuffix): Likewise.
9977 * ralloc.c (get_bloc): Likewise.
9978 * regex.c (reg_free): Likewise.
9979 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9980 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9981 * xsmfns.c (smc_save_yourself_CB): Likewise.
9982
99832008-06-02 Kenichi Handa <handa@m17n.org>
9984
9985 * font.c (font_find_for_lface): Handle float font size.
9986 (font_open_for_lface): Likewise.
9987
9988 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9989 comparing the properties.
9990
99912008-06-01 Jason Rumney <jasonr@gnu.org>
9992
9993 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9994 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9995 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9996 Don't add empty script list.
9997 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9998
99992008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10000
10001 * Makefile.in (dot, dotdot): Remove, update users.
10002 ".." has been used elsewhere in the file for a long time.
10003 (LIBXT_STATIC): Remove conditional based on unused variable.
10004
100052008-06-01 Miles Bader <miles@gnu.org>
10006
10007 * xfaces.c (Vface_remapping_alist): New variable.
10008 (syms_of_xfaces): Initialize it.
10009 (enum named_merge_point_kind): New type.
10010 (struct named_merge_point): Add `named_merge_point_kind' field.
10011 (push_named_merge_point): Make cycle detection respect different
10012 named-merge-point kinds.
10013 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10014 Remove face-name alias resolution.
10015 (lface_from_face_name): New definition using
10016 `lface_from_face_name_no_resolve'.
10017 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10018 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10019 (get_lface_attributes): New definition that layers face-remapping on
10020 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10021 (lookup_basic_face): New function.
10022 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10023 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10024 `get_lface_attributes'.
10025 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10026 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10027 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10028
10029 * xdisp.c (init_iterator): Pass base_face_id through
10030 `lookup_basic_face' when we actually use it as a face-id.
10031 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10032 DEFAULT_FACE_ID.
10033
10034 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10035 lookup the initial face-id.
10036
10037 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10038
100392008-06-01 Juanma Barranquero <lekktu@gmail.com>
10040
10041 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10042 (Fremove_text_properties): Fix typos in docstrings.
10043
100442008-05-31 Kenichi Handa <handa@m17n.org>
10045
10046 * font.c (font_list_entities): Fix the car part of data to be
10047 stored in the cache.
10048
10049 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10050
100512008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10052
10053 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10054 Add a `test' argument so another predicate than `equal' can be used.
10055 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10056 (map_char_table): Remove unused vars `c' and `i'.
10057 * lisp.h (Foptimize_char_table): Adjust declaration.
10058 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10059
100602008-05-30 Kenichi Handa <handa@m17n.org>
10061
10062 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10063 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10064 defined.
10065
100662008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10067
10068 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10069 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10070 frame-local settings for the same variable.
10071
100722008-05-30 Kenichi Handa <handa@m17n.org>
10073
10074 * fontset.c (Ffont_info): Move to font.c.
10075 (syms_of_fontset): Delete defsubr of Sfont_info.
10076
10077 * font.c (font_style_to_value, font_score): Delete casting of the
10078 args to xstcasecmp.
10079 (register_font_driver): Increment num_font_drivers only when
10080 registering the driver globally.
10081 (Ffont_info): Move from fontset.c. Handle a font object too.
10082 (syms_of_font): Defsubr Sfont_info.
10083
100842008-05-29 Kenichi Handa <handa@m17n.org>
10085
10086 * coding.h (enum define_coding_utf8_arg_index): New enum.
10087 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10088 coding_attr_utf_bom.
10089 (enum utf_bom_type): Rename from utf_16_bom_type.
10090 (struct utf_16_spec): Adjust for the above change.
10091 (struct coding_system): Add utf_8_bom in `spec' union.
10092
10093 * coding.c (CODING_UTF_8_BOM): New macro.
10094 (enum coding_category): Delete coding_category_utf_8, add
10095 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10096 coding_category_utf_8_sig.
10097 (CATEGORY_MASK_UTF_8): Delete it.
10098 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10099 (CATEGORY_MASK_UTF_8_SIG): New macros.
10100 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10101 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10102 CATEGORY_MASK_UTF_8_SIG.
10103 (CATEGORY_MASK_UTF_8): New macro.
10104 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10105 (detect_coding_utf_8): Check BOM.
10106 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10107 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10108 (encode_coding_utf_16): Likewise.
10109 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10110 (detect_coding, detect_coding_system): Handle utf-8-auto.
10111 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10112 (syms_of_coding): Fix setting up of Vcoding_category_table.
10113
101142008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10115
10116 * process.c (Faccept_process_output): If `millisec' is non-nil,
10117 `seconds' default to 0.
10118 (wait_reading_process_output): Also return non-nil if we read output
10119 from a non-running process.
10120
101212008-05-29 Jason Rumney <jasonr@gnu.org>
10122
10123 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10124 `raster' specified.
10125 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10126 in the uniscribe backend, but disallow any font that has no
10127 unicode subrange support.
10128
101292008-05-29 Juanma Barranquero <lekktu@gmail.com>
10130
10131 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10132 Fix typos in docstrings.
10133
101342008-05-29 Kenichi Handa <handa@m17n.org>
10135
10136 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10137 (Fx_family_fonts): Set frame correctly.
10138
101392008-05-28 Jason Rumney <jasonr@gnu.org>
10140
10141 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10142
101432008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10144
10145 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10146 calling build_annotations.
10147
101482008-05-28 Juanma Barranquero <lekktu@gmail.com>
10149
10150 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10151 (Fencode_coding_string):
10152 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10153 <latin-extra-code-table>: Fix typos in docstrings.
10154 (syms_of_coding) <coding-system-alist>: Doc fix.
10155 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10156
101572008-05-28 Kenichi Handa <handa@m17n.org>
10158
10159 * fontset.c (Ffont_info): Don't call font_close_object.
10160
10161 * font.c (font_parse_family_registry): Use Ffont_put to validate
10162 foundry and family.
10163 (font_delete_unmatched): Don't check spacing.
10164 (font_list_entities): Add spacing to the spec to list fonts.
10165
10166 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10167 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10168
10169 * coding.c (encode_coding_raw_text): Fix previous change.
10170 (encode_coding_object): When the dst_object is a buffer and is
10171 different from src_object, move gap to PT.
10172
101732008-05-27 Chong Yidong <cyd@stupidchicken.com>
10174
10175 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10176
101772008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10178
10179 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10180 all branches. Compute it differently.
10181
10182 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10183
101842008-05-27 Juanma Barranquero <lekktu@gmail.com>
10185
10186 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10187 into "else if () ... else ...".
10188
101892008-05-27 Jason Rumney <jasonr@gnu.org>
10190
10191 * w32font.c (w32font_open_internal): Determine if glyph indices
10192 are likely to work here.
10193
101942008-05-27 Chong Yidong <cyd@stupidchicken.com>
10195
10196 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10197 draw overlap glyphs with appropriate highlighting.
10198
101992008-05-27 Kenichi Handa <handa@m17n.org>
10200
10201 * xfont.c (xfont_open): Fix calculation of font->average_width.
10202
102032008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10204
10205 * casefiddle.c (casify_object): Try to guess better whether the
10206 argument is a byte or a char.
10207
102082008-05-26 Andreas Schwab <schwab@suse.de>
10209
10210 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10211 Always send multiples of format size.
10212
10213 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10214
102152008-05-26 Jason Rumney <jasonr@gnu.org>
10216
10217 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10218 (compute_metrics): Don't set failure if we just cleared the cache.
10219 (w32_weight_table): Remove unused variable.
10220 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10221 backwards compatibility.
10222
102232008-05-25 Kenichi Handa <handa@m17n.org>
10224
10225 * w32term.c (x_draw_glyph_string):
10226 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10227
10228 * xfaces.c: Delete unused function prototypes.
10229 (xstrlwr, font_frame): Delete them.
10230 (clear_face_cache): Delete unused variable.
10231
10232 * xftfont.c (xftfont_open): Delete unused variable.
10233 If underline_thickness is not 1, adjust underline_position.
10234
10235 * ftxfont.c (ftxfont_open): Delete unused variable.
10236
10237 * fontset.c (face_for_char): Optimize for the case of no charset
10238 property.
10239
10240 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10241 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10242 (otf_open, font_otf_capability, generate_otf_features)
10243 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10244 Comment out by surrounding "#if 0" and "#endif" for the moment.
10245 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10246 (syms_of_font): Codes for accessing above commented out.
10247
102482008-05-24 Eli Zaretskii <eliz@gnu.org>
10249
10250 * w32proc.c: Include dispextern.h.
10251
10252 * w32.c: Include dispextern.h.
10253
102542008-05-23 Juanma Barranquero <lekktu@gmail.com>
10255
10256 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10257 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10258 Fix typos in docstrings.
10259
102602008-05-23 Jason Rumney <jasonr@gnu.org>
10261
10262 * xsmfns.c: Remove includes that are already included by config.h.
10263
102642008-05-23 Kenichi Handa <handa@m17n.org>
10265
10266 * charset.c (Qemacs, charset_emacs): New variables.
10267 (char_charset): Fix for non-Unicode characters.
10268 (syms_of_charset): Define charset_emacs.
10269
10270 * w32term.c (x_draw_glyph_string): Be sure to update
10271 s->underline_thickness and s->underline_position. Be sure to draw
10272 underline within the current line area.
10273
10274 * xterm.c (x_draw_glyph_string): Be sure to update
10275 s->underline_thickness and s->underline_position. Be sure to draw
10276 underline within the current line area.
10277
10278 * fontset.c: Delete unused variables and add casting for char *
10279 throughout the file.
10280 (fontset_font): Try the fallback fonts of the current fontset
10281 before consulting the default fontset.
10282
10283 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10284
10285 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10286
102872008-05-22 Jason Rumney <jasonr@gnu.org>
10288
10289 * font.c: Don't include strings.h.
10290
10291 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10292
10293 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10294 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10295 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10296 to call xstrcasecmp.
10297
10298 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10299
10300 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10301
10302 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10303
10304 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10305
103062008-05-22 Kenichi Handa <handa@m17n.org>
10307
10308 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10309
10310 * font.c (font_prop_validate_style): Adjust for the format
10311 change of font_style_table.
10312
10313 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10314 two args.
10315
10316 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10317 two args.
10318
103192008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10320
10321 * minibuf.c (keys_of_minibuf): Delete.
10322 * lisp.h (keys_of_minibuf): Delete.
10323 * emacs.c (main): Don't call keys_of_minibuf.
10324
103252008-05-22 Kenichi Handa <handa@m17n.org>
10326
10327 * ftfont.c (ftfont_resolve_generic_family): Rename from
10328 ftfont_list_generic_family. Return a single family for each
10329 generic family.
10330 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10331 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10332 Call font_add_log.
10333 (ftfont_match): Call font_add_log.
10334
10335 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10336 (FONT_DEBUG): Define it.
10337 (font_add_log): Extern it.
10338 (font_assert): Rename from xassert.
10339
10340 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10341 (xfont_list_family): Call font_add_log.
10342 (xfont_match): Likewise.
10343 (memq_no_quit): Delete.
10344
10345 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10346 call of Ffont_xlfd_name.
10347
10348 * xfaces.c (struct table_entry, slant_table, weight_table)
10349 (swidth_table): Move to font.c.
10350
10351 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10352 xassert are changed to font_assert. Delete many unused variables.
10353 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10354 New variables.
10355 (struct table_entry): Move from xfaces.c and modified.
10356 (weight_table, slant_table, width_table): Move from xfaces.c and
10357 contents adjusted for the change of struct table_entry.
10358 (font_style_to_value, font_style_symbolic): Adjust for the
10359 format change of font_style_table.
10360 (font_parse_family_registry): Don't overwrite existing foundry and
10361 family of font_spec.
10362 (font_score): Fix calculation of diff for sizes.
10363 (font_sort_entites): Call font_add_log.
10364 (font_delete_unmatched): Return a newly created list.
10365 (font_list_entities): Fix previous change. Call font_add_log.
10366 (font_matching_entity, font_open_entity, font_close_entity):
10367 Call font_add_log.
10368 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10369 (Finternal_set_font_style_table): Delete.
10370 (BUILD_STYLE_TABLE): New macro.
10371 (build_style_table): New function.
10372 (Vfont_log, font_log_env_checked): New variables.
10373 (font_add_log): New function.
10374 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10375 Declare Lisp variables "font-weight-table", "font-slant-table",
10376 "font-width-table", and "font-log". Initialize font_style_table.
10377
103782008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10379
10380 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10381
103822008-05-21 Seiji Zenitani <zenitani@mac.com>
10383 Ryo Yoshitake <ryo@shiftmode.net>
10384
10385 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10386 (Vframe_alpha_lower_limit): New variable.
10387 (x_set_alpha): New function.
10388
10389 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10390
10391 * xfns.c (x-create-frame, Qalpha):
10392 Initialize the frame parameter `alpha'.
10393 * xterm.c (OPAQUE, OPACITY): New.
10394 (x_set_frame_alpha): New function.
10395 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10396
10397 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10398 * w32fns.c (w32_frame_parm_handlers): Likewise.
10399
104002008-05-20 Jason Rumney <jasonr@gnu.org>
10401
10402 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10403 truetype fonts to opentype list.
10404
104052008-05-20 Juanma Barranquero <lekktu@gmail.com>
10406
10407 * fontset.c (Ffontset_info): Doc fix.
10408 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10409 <ignore-relative-composition>: Fix typos in docstrings.
10410
10411 * font.c (syms-of-font) <font-encoding-alist>:
10412 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10413 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10414 (Ffont_otf_alternates): Doc fixes.
10415
104162008-05-20 Kenichi Handa <handa@m17n.org>
10417
10418 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10419 font.h through out the file.
10420 (FONT_DRIVERS): Rename from FONTOBJ.
10421 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10422 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10423
10424 * emacs.c (main): Call syms_of_font unconditionally.
10425
10426 * font.h (find_font_encoding): Extern it.
10427
10428 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10429 fontset.c.
10430 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10431 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10432 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10433 only when HAVE_WINDOW_SYSTEM is defined.
10434 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10435 when HAVE_WINDOW_SYSTEM is defined.
10436
10437 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10438 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10439
10440 * xfaces.c: Include font.h unconditionally.
10441 (merge_face_ref, merge_face_vectors)
10442 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10443
104442008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10445
10446 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10447 indirect_variable.
10448 * eval.c (lisp_indirect_variable): New fun.
10449 (Fuser_variable_p): Use it.
10450
104512008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10452
10453 * lisp.h (indirect_variable):
10454 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10455 Use Lisp_Symbol pointers rather than Lisp_Object.
10456 Adjust callers.
10457 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10458 To this end, change calling-convention.
10459
10460 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10461 if some non-hidden buffers are selected by string&pred.
10462
104632008-05-19 Chong Yidong <cyd@stupidchicken.com>
10464
10465 * process.c (wait_reading_process_output): Always check status
10466 when in batch mode.
10467
104682008-05-19 Kenichi Handa <handa@m17n.org>
10469
10470 * font.c (font_list_entities): Fix handling of cache.
10471 (font_matching_entity): Likewise.
10472
10473 * ftfont.c (cs_iso8859_1): Delete.
10474 (ft_face_cache): New variable.
10475 (struct ftfont_info): New member fc_charset_idx.
10476 (ftfont_build_basic_charsets): Delete.
10477 (fc_charset_table): New variable.
10478 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10479 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10480 Callers changed.
10481 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10482 (ftfont_spec_pattern): New argument fc_charset_idx.
10483 Check registry more rigidly. Change callers.
10484 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10485 change of :font-entity property of the font.
10486
10487 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10488 property of the font.
10489
104902008-05-18 Juanma Barranquero <lekktu@gmail.com>
10491
10492 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10493 (Funencodable_char_position, Fcheck_coding_systems_region)
10494 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10495 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10496 (Ffind_operation_coding_system, Fset_coding_system_priority)
10497 (Fcoding_system_eol_type): Doc fixes.
10498
104992008-05-17 Glenn Morris <rgm@gnu.org>
10500
10501 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10502
105032008-05-16 Eli Zaretskii <eliz@gnu.org>
10504
10505 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10506 and st_gid.
10507
10508 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10509 HAVE_WINDOW_SYSTEM is not defined.
10510
10511 * xfaces.c (merge_face_ref, merge_face_vectors)
10512 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10513 HAVE_WINDOW_SYSTEM is defined.
10514 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10515
105162008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10517
10518 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10519
105202008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10521
10522 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10523
105242008-05-15 Kenichi Handa <handa@m17n.org>
10525
10526 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10527 preference.
10528
105292008-05-15 Glenn Morris <rgm@gnu.org>
10530
10531 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10532
105332008-05-15 Chong Yidong <cyd@stupidchicken.com>
10534
10535 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10536 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10537
10538 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10539
105402008-05-15 Kenichi Handa <handa@m17n.org>
10541
10542 * ftfont.c (ftfont_list): Downcase family name to check generic
10543 families.
10544
10545 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10546 font-spec for QCfont value.
10547
10548 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10549 buffer. Check the return value of it.
10550
105512008-05-14 Jason Rumney <jasonr@gnu.org>
10552
10553 * w32term.c (w32_get_glyph_overhangs): Remove.
10554 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10555
105562008-05-14 Kenichi Handa <handa@m17n.org>
10557
10558 * font.c (font_prop_validate): Make nil a valid value.
10559 (font_clear_cache): Check if the cached vector of entities is nil
10560 or not.
10561
105622008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10563
10564 * emacs.c (main_thread): Conditionalize on
10565 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10566 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10567
10568 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10569 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10570 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10571
105722008-05-14 Kenichi Handa <handa@m17n.org>
10573
10574 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10575 has no corresponding coding system.
10576
105772008-05-14 Jason Rumney <jasonr@gnu.org>
10578
10579 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10580
10581 * w32font.h (w32font_open_internal): Update declaration.
10582
10583 * w32font.c (w32font_open_internal): Change last argument from
10584 w32font_info struct to font object. Fill in font object from
10585 font_entity. Get Outline metrics if possible. Use them to
10586 calculate underline position and thickness. Use xlfd name as name
10587 property. Don't set codepage.
10588 (w32font_open): Pass font_object to w32font_open_internal. Don't
10589 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10590 (w32font_draw): Use s->font.
10591 (clear_cached_metrics): Don't clear non-existent blocks.
10592
10593 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10594 font was not found.
10595 (x_draw_glyph_string): Use underline position and thickness from font.
10596
10597 * w32uniscribe.c (uniscribe_open): Pass font_object to
10598 w32font_open_internal.
10599
106002008-05-14 Kenichi Handa <handa@m17n.org>
10601
10602 These changes are to delete all legacy font-handling codes, and
10603 make Emacs use only font-backends.
10604
10605 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10606 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10607
10608 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10609
10610 * charset.h (Vcharset_non_preferred_head)
10611 (Vcurrent_iso639_language): Extern them.
10612
10613 * charset.c (Vcharset_non_preferred_head): New variable.
10614 (Vcurrent_iso639_language): New variable.
10615 (syms_of_charset): Declare it as a Lisp variable.
10616 (char_charset): Don't check non preferred charsets. As a last
10617 resort, return charset_unicode.
10618 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10619
10620 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10621 conditionals. Don't check enable_font_backend. Delete all codes
10622 used only when USE_FONT_BACKEND is not defined.
10623
10624 * dispextern.h (struct glyph_string): Change type of `font' to
10625 `struct font *'.
10626 (struct glyph_string): New member underline_position and
10627 underline_thickness.
10628 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10629 (struct face): Change type of `font' to `struct font *'. Remove
10630 members `font_name', `font_info_id'.
10631 (per_char_metric, encode_char): Delete externs.
10632 (calc_pixel_width_or_height): Adjust the prototype.
10633
10634 * emacs.c (enable_font_backend): Delete extern.
10635 (main): Don't set enable_font_backend. Don't check the command
10636 line argument "-disable-font-backend".
10637
10638 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
10639 (enum font_property_index): New members FONT_DPI_INDEX,
10640 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
10641 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
10642 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
10643 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
10644 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
10645 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
10646 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
10647 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
10648 (struct font_spec, struct font_entity): New structs.
10649 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
10650 (struct font): Many members from old "struct font_info" moved to
10651 here. Members font and entity deleted.
10652 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
10653 the new font-related objects.
10654 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
10655 (CHECK_FONT_GET_OBJECT): Likewise.
10656 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
10657 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
10658 (struct font_driver): New members case_sensitive anc check. Type
10659 of the member list and open changed.
10660 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
10661 (font_symbolic_width, font_find_object, font_get_spec)
10662 (font_set_lface_from_name): Delete extern.
10663 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
10664
10665 * font.c: Include <strings.h>.
10666 (enable_font_backend): Delete it.
10667 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
10668 (CHECK_VALIDATE_FONT_SPEC): Delete it.
10669 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
10670 (null_string): Delete it.
10671 (null_vector): Make it static.
10672 (font_family_alist): Delete it.
10673 (Qnormal): Extern it.
10674 (QCextra, QClanguage): Delete it.
10675 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
10676 (font_make_spec, font_make_entity, font_make_object)
10677 (font_intern_prop): Renamed from intern_downcase. Don't downcase
10678 the string. Callers changed.
10679 (font_pixel_size): Adjusted for the format change of font-related
10680 objects.
10681 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
10682 (font_style_to_value, font_style_symbolic): New function.
10683 (build_font_family_alist): Delete it.
10684 (font_registry_charsets): Use Fassoc_string instead of
10685 assq_no_quit.
10686 (font_prop_validate_symbol): Don't return null_string.
10687 (font_prop_validate_style): Adjusted for the change of
10688 style-related values in a font vector.
10689 (font_property_table): Delete entries for QClanguage and
10690 QCantialias, add entries for QCavgwidth.
10691 (get_font_prop_index): Delete the 2nd argument FROM.
10692 (font_prop_validate): Arguments changed.
10693 (font_put_extra): Adjusted for the change of font-related objects.
10694 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
10695 (font_parse_fcname, font_unparse_fcname)
10696 (font_prepare_composition): Likewise.
10697 (font_parse_family_registry): Renamed from font_merge_old_spec.
10698 (otf_open): Delete the 1st arg entity.
10699 (font_otf_capability): Adjusted for the above change.
10700 (font_score): New arg alternate_families. Adjusted for the change
10701 of font-related objects.
10702 (font_sort_entites): New arg best_only.
10703 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
10704 Delete them.
10705 (font_match_p): Check alternate families.
10706 (font_find_object): Delete it.
10707 (font_check_object): New function.
10708 (font_clear_cache): Adjusted for the change of font-related objects.
10709 (font_delete_unmatched): New arg.
10710 (font_list_entities): Call font_driver->list with a spec that
10711 doesn't specify style-related properties.
10712 (font_matching_entity): Arguments changed. Caller changed.
10713 (font_open_entity): Adjusted for the change of font-related objects.
10714 (font_close_object, font_has_char, font_encode_char)
10715 (font_get_name, font_get_spec): Likewise.
10716 (font_spec_from_name, font_clear_prop, font_update_lface):
10717 New functions.
10718 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
10719 (font_prepare_for_face, font_done_for_face, font_open_by_name)
10720 (font_at): Adjusted for the change of font-related objects.
10721 (font_range): New function.
10722 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
10723 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
10724 (Fcopy_font_spec, Fmerge_font_spec): New function.
10725 (Ffont_family_list): Renamed from list-families.
10726 (Finternal_set_font_style_table): Arguments changed.
10727 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
10728 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
10729 change of font-related objects.
10730 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
10731
10732 * fontset.h (struct font_info): Delete it. Most members go to
10733 struct font.
10734 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
10735 (enum FONT_SPEC_INDEX): Delete it.
10736 (font_info, list_fonts_func, load_font_func, query_font_func)
10737 (set_frame_fontset_func, find_ccl_program_func)
10738 (get_font_repertory_func, new_fontset_from_font_name): Delete
10739 externs.
10740 (fontset_from_font_name): Extern it.
10741 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
10742 (FONT_INFO_FROM_FACE): Deleted.
10743 (face_for_font): Adjust prototype.
10744
10745 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
10746 conditionals. Don't check enable_font_backend. Delete all codes
10747 used only when USE_FONT_BACKEND is not defined.
10748 (get_font_info_func, list_font_func, load_font_func)
10749 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
10750 (get_font_repertory_func): Delete them.
10751 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
10752 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
10753 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
10754 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
10755 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
10756 (fontset_compare_rfontdef): New function.
10757 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
10758 rfont-defs by qsort. Adjusted for the change of font-group vector.
10759 (load_font_get_repertory): Deleted.
10760 (fontset_find_font): Use new macros to ref/set elements of
10761 font-def and rfont-def.
10762 (fontset_font): Fix the timing of remembering that no font for C.
10763 (free_face_fontset): Do nothing if the face has no fontset.
10764 (face_suitable_for_char_p): Use new macros to ref/set elements of
10765 rfont-def.
10766 (face_for_char): Likewise. Call face_for_char with font_object.
10767 (fs_load_font): Delete. Delete #pragma surrounding it.
10768 (fs_query_fontset): Use strcasecmp instead of strcmp.
10769 (generate_ascii_font_name): Adjusted for the format change of
10770 font-spec.
10771 (Fset_fontset_font): Likewise. Use new macros to set elements of
10772 font-def.
10773 (Fnew_fontset): Use font_unparse_xlfd to generate
10774 FONTSET_ASCII (fontset).
10775 (new_fontset_from_font_name): Deleted.
10776 (fontset_from_font): Renamed from new_fontset_from_font. Check if
10777 a fontset is already created for the font. FIx updating of
10778 Vfontset_alias_alist.
10779 (fontset_ascii_font): Deleted.
10780 (Ffont_info): Adjusted for the format change of font-spec.
10781 (Finternal_char_font): Likewise.
10782 (Ffontset_info): Likewise.
10783 (syms_of_fontset): Don't check load_font_func.
10784
10785 * fns.c (internal_equal): Handle PREV_FONT.
10786
10787 * frame.h: Delete USE_FONT_BACKEND conditional.
10788
10789 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
10790 conditionals. Don't check enable_font_backend. Delete all codes
10791 used only when USE_FONT_BACKEND is not defined.
10792 (x_set_font): Call x_new_font, not x_new_fontset2.
10793 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10794 already set for the frame.
10795
10796 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10797 a font-entity by font_make_entity. Use font_intern_prop instead
10798 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10799 font property. If a font is scalable, set avgwidth property to 0.
10800 Set font-entity property by font_put_extra.
10801 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10802 (ffont_driver): Adjusted for the change of struct font_driver.
10803 (ftfont_spec_pattern): New function.
10804 (ftfont_list): Return a list, not vector.
10805 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10806 (ftfont_list_family): Don't downcase names.
10807 (ftfont_free_entity): Deleted.
10808 (ftfont_open): Return a font-object. Adjusted for the change of
10809 struct font. Get underline_thickness and underline_position from
10810 font property. Don't update dpyinfo->smallest_font_height and
10811 dpyinfo->smallest_char_width.
10812 (ftfont_close): Don't free `struct font'.
10813 (ftfont_has_char): Adjusted for the format change of font-entity.
10814 (ftfont_encode_char, ftfont_text_extents): Likewise.
10815
10816 * ftxfont.c (ftxfont_list): Return a list, not vector.
10817 (ftxfont_open): Return a font-object. Adjusted for the change of
10818 struct font. Get underline_thickness and underline_position from
10819 font property. Don't update dpyinfo->smallest_font_height and
10820 dpyinfo->smallest_char_width.
10821 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10822 (ftxfont_draw): Adjusted for the change of struct font.
10823
10824 * image.c (image_ascent): Don't include "charset.h". Include
10825 "character.h" and "font.h".
10826
10827 * lisp.h (enum pvec_type): New member PREV_FONT.
10828 (Fassoc_string): EXFUN it.
10829
10830 * print.c: Include font.h.
10831 (print_object): Handle font-related objects.
10832
10833 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10834 conditionals. Don't check enable_font_backend. Delete all codes
10835 used only when USE_FONT_BACKEND is not defined.
10836 (handle_auto_composed_prop): Do nothing if it->f is not on a
10837 window system. Check how many following characters can be
10838 displayed by the same font.
10839 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10840 'struct font *'.
10841 (get_char_face_and_encoding): Assign the whole encoding task to
10842 the `encode-char' method of a font driver.
10843 (fill_composite_glyph_string): Adjusted for the change of `struct
10844 face' and `struct glyph_string'.
10845 (fill_glyph_string): Likewise.
10846 (get_per_char_metric): Arguments changed.
10847 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10848 and `struct glyph_string'.
10849 (produce_stretch_glyph, calc_line_height_property)
10850 (x_produce_glyphs): Likewise.
10851
10852 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10853 conditionals. Don't check enable_font_backend. Delete all codes
10854 used only when USE_FONT_BACKEND is not defined. Use
10855 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10856 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10857 (Qp): Extern them.
10858 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10859 Deleted.
10860 (struct font_name): Deleted.
10861 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10862 (compare_fonts_by_sort_order): New function.
10863 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10864 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10865 Deleted.
10866 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10867 compare_fonts_by_sort_order.
10868 (Fx_font_family_list): Call Ffont_family_list.
10869 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10870 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10871 (face_symbolic_slant, face_symbolic_swidth)
10872 (split_font_name_into_vector, build_font_name_from_vector)
10873 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10874 (font_rescale_ratio, split_font_name, build_font_name)
10875 (free_font_names, sort_fonts, x_face_list_fonts)
10876 (face_font_available_p, sorted_font_list, cmp_font_names)
10877 (font_list_1, concat_font_list, font_list, remove_duplicates):
10878 Deleted.
10879 (Fx_list_fonts): Use Ffont_list.
10880 (LFACE_AVGWIDTH): Deleted.
10881 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10882 by FONTP.
10883 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10884 (set_lface_from_font_name): Delete it.
10885 (set_lface_from_font): Renamed from
10886 set_lface_from_font_and_fontset. Caller changed. Don't set
10887 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10888 for face.
10889 (merge_face_vectors): Copy font-spec if necessary.
10890 Clear properties of the font-spec if necessary.
10891 (merge_face_ref): Clear properties of the font-spec if necessary.
10892 (Finternal_set_lisp_face_attribute): Likewise.
10893 (set_font_frame_param): Use font_load_for_lface to load a
10894 font-object, and call Fmodify_frame_parameters with it.
10895 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10896 font name by Ffont_xlfd_name.
10897 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10898 QCslant, and QCwidth.
10899 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10900 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10901 Compare fonts by EQ.
10902 (lookup_non_ascii_face): Deleted.
10903 (face_for_font): The 2nd argument changed.
10904 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10905 Check atomic font properties by case insensitive.
10906 (realize_non_ascii_face): Set face->overstrike correctly.
10907 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10908 (dump_realized_face): Get font name from
10909 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10910
10911 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10912 conditionals. Don't check enable_font_backend. Delete all codes
10913 used only when USE_FONT_BACKEND is not defined.
10914 (xic_create_xfontset): Original code deleted and renamed from
10915 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10916 (x_make_gc): Don't set GCFont in GCs.
10917 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10918 opened by "fixed".
10919 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10920 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10921 get_font_repertory_func.
10922
10923 * xfont.c: Include <stdlib.h> and "ccl.h".
10924 (struct xfont_info): New structure.
10925 (xfont_query_font): Deleted.
10926 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10927 moved from xterm.c.
10928 (xfont_driver): Adjusted for the change of struct font_driver.
10929 (compare_font_names): New function.
10930 (xfont_list_pattern): Sort font names case insensitively. Make
10931 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10932 (xfont_list): Return a list, not vector.
10933 (xfont_match): If the font doesn't have QCname property, generate
10934 a name from the other font properties.
10935 (xfont_open): Return a font-object. Adjusted for the change of
10936 struct font. Get underline_thickness and underline_position from
10937 font property. Don't update dpyinfo->smallest_font_height and
10938 dpyinfo->smallest_char_width.
10939 (xfont_close): Don't free struct font.
10940 (xfont_prepare_face): Adjusted for the change of struct font.
10941 (xfont_done_face): Deleted.
10942 (xfont_has_char): Adjusted for the change of struct font.
10943 (xfont_encode_char, xfont_draw): Likewise.
10944 (xfont_check): New function.
10945
10946 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10947 callback function.
10948 (xftfont_match): Adjusted for the format change of font-entity.
10949 (xftfont_open): Adjusted for the format change of font-entity and
10950 font-object. Adjusted for the change of struct font. Return a
10951 font-object. Don't update dpyinfo->smallest_font_height and
10952 dpyinfo->smallest_char_width.
10953 (xftfont_close): Block input while calling XftFontClose.
10954 (xftfont_prepare_face): Don't block input while calling
10955 xftfont_get_colors. Adjusted for the change of struct font.
10956 (xftfont_shape): Return value of error case fixed.
10957
10958 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10959
10960 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10961 conditionals.
10962 (FONT_WIDTH): Return (f)->max_width.
10963 (struct x_display_info): Delete member `font'.
10964 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10965 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10966 (struct x_output): Change type of `font' to `struct font *'.
10967
10968 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10969 conditionals. Don't check enable_font_backend. Delete all codes
10970 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10971 (x_per_char_metric, x_encode_char): Deleted.
10972 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10973 (x_compute_glyph_string_overhangs): Adjusted for the change of
10974 `struct face'.
10975 (x_draw_glyph_string_foreground)
10976 (x_draw_composite_glyph_string_foreground): Likewise.
10977 (x_draw_glyph_string): Likewise. Use font->underline_position and
10978 font->underline_thickness.
10979 (x_new_font): Renamed from x_new_fontset2.
10980 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10981 (x_check_font): Call `check' method of a font driver.
10982 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10983 (x_query_font, x_get_font_repertory): Deleted.
10984 (x_find_ccl_program): Renamed and moved to xfont.c.
10985 (x_redisplay_interface): Adjusted for the change of `struct
10986 redisplay_interface'.
10987
10988 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10989 conditionals. Don't check enable_font_backend. Delete all codes
10990 used only when USE_FONT_BACKEND is not defined. Surround non-used
10991 code by "#ifdef OLD_FONT" and "endif".
10992 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10993
10994 * w32font.h (struct w32font_info): New member.
10995 (FONT_COMPAT): New macro.
10996 (w32font_open_internal): Prototype adjusted.
10997
10998 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10999 OLD_FONT" and "endif".
11000
11001 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11002 conditionals. Don't check enable_font_backend. Delete all codes
11003 used only when USE_FONT_BACKEND is not defined.
11004 (w32font_open): Return a font-object. Make a font-object by
11005 font_make_object. Adjusted for the change of struct w32font_info.
11006 (w32font_close): Don't free struct font. Adjusted for the change
11007 of struct w32font_info.
11008 (w32font_encode_char, w32font_text_extents, w32font_draw):
11009 Adjusted for the change of struct w32font_info.
11010 (w32font_draw): Likewise.
11011 (w32font_list_internal): Return a list, not vector.
11012 (w32font_open_internal): Change the 4th arg to font-object.
11013 Adjusted for the change of struct w32font_info and font-object format.
11014 (add_font_name_to_list): Don't downcase names.
11015 (w32_enumfont_pattern_entity): Make a font-entity by
11016 font_make_entity. Adjusted for the format change of font-entity.
11017 Use FONT_SET_STYLE to set a style-related font property. If a
11018 font is scalable, set avgwidth property to 0. Set font-entity
11019 property by font_put_extra.
11020 (font_matches_spec): Adjusted for the format change of font-entity.
11021 (w32_weight_table, w32_decode_weight): New variables.
11022 (w32_encode_weight): New function.
11023 (fill_in_logfont): Adjusted for the format change of font-spec.
11024 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11025 weight value.
11026 (w32font_driver): Adjusted for the change of struct font_driver.
11027
11028 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11029 conditionals. Don't check enable_font_backend. Surround non-used
11030 code by "#ifdef OLD_FONT" and "endif".
11031 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11032 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11033
11034 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11035 conditionals. Don't check enable_font_backend. Delete all codes
11036 used only when USE_FONT_BACKEND is not defined. Surround non-used
11037 code by "#ifdef OLD_FONT" and "endif".
11038
11039 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11040 (uniscribe_open): Return value changed to font-object.
11041 Adjusted for the format change of font-object.
11042 (uniscribe_otf_capability): Adjusted for the change of struct font.
11043 (add_opentype_font_name_to_list): Don't downcase names.
11044 (uniscribe_font_driver): Adjusted for the change of struct
11045 font_driver.
11046
110472008-05-13 Chong Yidong <cyd@stupidchicken.com>
11048
11049 * dispnew.c (update_frame_1): Check if tty output is still valid
11050 before flushing it.
11051
110522008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11053
11054 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11055 to Gtk+ menus.
11056
110572008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11058
11059 * dired.c (file_name_completion): Tweak the code so as to always do it
11060 in a single pass. Tighten the scope of some variables.
11061
11062 * dired.c (Qdefault_directory): New var.
11063 (file_name_completion): Use it instead of Fexpand_file_name.
11064 (syms_of_dired): Initialize it.
11065
110662008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11067
11068 * fileio.c (double_dollars): Remove dead code.
11069
110702008-05-10 Eli Zaretskii <eliz@gnu.org>
11071
11072 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11073 Mention w32-get-true-file-attributes in doc string.
11074
11075 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11076
110772008-05-09 Glenn Morris <rgm@gnu.org>
11078
11079 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11080 2008-04-23.
11081
110822008-05-09 Eli Zaretskii <eliz@gnu.org>
11083
11084 Support for reporting owner and group of each file on MS-Windows:
11085 * dired.c (stat_uname, stat_gname): New functions, with special
11086 implementation for w32.
11087 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11088
11089 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11090 (dflt_group_name): New static variable.
11091 (dflt_group): Rename from the_group.
11092 (init_user_info): Init dflt_group fields. Get user's group name
11093 from LookupAccountSid.
11094 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11095 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11096 New initialization states.
11097 (globals_of_w32): Initialize them to zero. Initialize the default
11098 group name to "None".
11099 (GetFileSecurity_Name): New global var, the name of the function
11100 to call for GetFileSecurity.
11101 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11102 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11103 (get_file_security, get_security_descriptor_owner)
11104 (get_security_descriptor_group, is_valid_sid)
11105 (get_file_security_desc, get_rid, get_name_and_id)
11106 (get_file_owner_and_group): New functions.
11107 (stat): Use get_file_security_desc and get_file_owner_and_group to
11108 report the owner and primary group of each file. Don't ignore the
11109 high 32 bits of file's size, now that st_size is 64-bit wide.
11110 Fix test when to get true file attributes.
11111 (init_user_info): Use get_rid instead of equivalent inline code.
11112 (fstat): Don't ignore the high 32 bits of file's size.
11113
111142008-05-09 Chong Yidong <cyd@stupidchicken.com>
11115
11116 * image.c (png_load): Use correct bit-depth for setting background
11117 color.
11118
111192008-05-08 Eli Zaretskii <eliz@gnu.org>
11120
11121 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11122 epa-hook.elc.
11123
111242008-05-08 Juanma Barranquero <lekktu@gmail.com>
11125
11126 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11127
111282008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11129
11130 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11131 because the original parameters are in pure storage now.
11132 (mac_window): Remove unused params. Update callers.
11133
111342008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11135
11136 * lread.c (substitute_object_recurse): Use lower-level primitives.
11137 Don't signal errors when traversing sub-char-tables.
11138 Don't loop over all the possible characters when traversing char-tables.
11139
11140 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11141 just like we do in print.c.
11142
111432008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11144
11145 * minibuf.c (Ftry_completion): Remove code left over from when we used
11146 scmp instead of Fcompare_strings.
11147
111482008-05-04 Juanma Barranquero <lekktu@gmail.com>
11149
11150 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11151
111522008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11153
11154 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11155 Create bitmap context in native byte order.
11156
11157 * macterm.c (XDrawLine)
11158 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11159 context in native byte order.
11160
111612008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11162
11163 * config.in: Regenerate.
11164
11165 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11166 New definitions for Image I/O support.
11167 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11168 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11169 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11170 (mac_data_provider_release_data, image_load_image_io)
11171 [USE_MAC_IMAGE_IO]: New functions.
11172 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11173 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11174 (init_image_func_pointer) [MAC_OSX]: Remove function.
11175 (image_load_quartz2d) [MAC_OSX]: Check availability of
11176 CGImageCreateWithPNGDataProvider at compile time.
11177 Use lowercase `false' for boolean constant.
11178 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11179 Use image_load_image_io.
11180 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11181 Don't check MyCGImageCreateWithPNGDataProvider.
11182 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11183 Don't call init_image_func_pointer.
11184
11185 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11186
11187 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11188 Make variable non-static.
11189 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11190 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11191
11192 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11193 (RED_FROM_ULONG): Mask off higher bits.
11194 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11195
11196 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11197 Include AvailabilityMacros.h.
11198 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11199 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11200
112012008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11202
11203 * chartab.c (Fset_char_table_range): If range is t, really set all
11204 chars to that value.
11205
112062008-05-03 Eli Zaretskii <eliz@gnu.org>
11207
11208 * dired.c (Ffile_attributes): Don't allow the device number become
11209 negative.
11210
112112008-05-02 Daiki Ueno <ueno@unixuser.org>
11212
11213 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11214
112152008-05-02 Juri Linkov <juri@jurta.org>
11216
11217 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11218 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11219 DEFAULT argument as a list of default values in docstrings.
11220
112212008-05-01 Chong Yidong <cyd@stupidchicken.com>
11222
11223 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11224
112252008-05-01 Martin Rudalics <rudalics@gmx.at>
11226
11227 * dispnew.c (change_frame_size_1): Preserve small windows when
11228 shrinking frames by calling set_window_height|width with third
11229 arg 2.
11230
11231 * window.h (struct window): Replace field too_small_ok by field
11232 resize_proportionally.
11233
11234 * window.c (make_window): Initialize resize_proportionally.
11235 (enlarge_window): Temporarily set resize_proportionally to make
11236 sure that shrink_windows does scale the window proportionally.
11237 (shrink_windows): When window has resize_proportionally set try
11238 to shrink it proportionally by stealing from other windows.
11239 (struct saved_window, Fset_window_configuration)
11240 (compare_window_configurations): Handle resize_proportionally.
11241 (WINDOW_TOTAL_SIZE): New macro.
11242 (window_min_size, shrink_windows, size_window): Use it.
11243 (check_min_window_sizes): Remove. Invalid values of
11244 window-min-height|width are handled by window_min_size_2 now.
11245 (size_window, Fsplit_window, enlarge_window)
11246 (adjust_window_trailing_edge, grow_mini_window): Don't call
11247 check_min_window_sizes.
11248 (window_min_size_2, window_min_size_1, window_min_size):
11249 New argument safe_p for retrieving "safe" minimum sizes.
11250 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11251 (adjust_window_trailing_edge, grow_mini_window):
11252 Adjust arguments of window_min_size... functions.
11253 (shrink_windows): Argument min_size removed. New argument
11254 safe_p allows shrinking windows to their safe minimum sizes.
11255 Calculate minimum size and decide whether a window shall be
11256 deleted for each window individually.
11257 (size_window): When nodelete_p equals 2, tell shrink_windows to
11258 delete windows only if their new minimum size is no more safe.
11259 (shrink_window_lowest_first): Call window_min_size_1 to make
11260 sure to preserve modeline of bottom-most window when resizing
11261 the minibuffer.
11262 (Fset_window_configuration, Fcurrent_window_configuration)
11263 (compare_window_configurations): Do not handle
11264 window-min-height|width any more.
11265 (syms_of_window): Clarify window-min-height|width doc-strings.
11266
112672008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11268
11269 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11270 some more. Copy some of the code from Ftry_completions.
11271 Remove special case code that dates back to initial revision when the
11272 slash was only added when necessary and that can't trigger nowadays.
11273
112742008-04-27 Kenichi Handa <handa@m17n.org>
11275
11276 * font.c (font_prop_validate): Signal `error' instead of `font'.
11277
112782008-04-29 Jason Rumney <jasonr@gnu.org>
11279
11280 * w32fns.c (Fw32_battery_status): New defun.
11281 (syms_of_w32fns): Defsubr it.
11282
112832008-04-28 Andreas Schwab <schwab@suse.de>
11284
11285 * dired.c (file_name_completion): Fix another mixing of encoded
11286 and decoded names.
11287
112882008-04-28 Juanma Barranquero <lekktu@gmail.com>
11289
11290 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11291
112922008-04-27 Juanma Barranquero <lekktu@gmail.com>
11293
11294 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11295
112962008-04-27 Andreas Schwab <schwab@suse.de>
11297
11298 * dired.c (file_name_completion): Fix inappropriate mixing of
11299 encoded and decoded names.
11300
11301 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11302
11303 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11304
113052008-04-26 Eli Zaretskii <eliz@gnu.org>
11306
11307 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11308 2008-03-31, it's not needed anymore with `struct stat' definition
11309 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11310 for the same reasons.
11311
113122008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11313
11314 * m/sparc.h: Additional redefinitions for GNU/Linux.
11315
113162008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11317
11318 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11319 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11320 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11321 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11322 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11323 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11324 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11325 Likewise.
11326
11327 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11328 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11329 (mac_ax_number_of_characters): Add externs.
11330 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11331 [USE_MAC_TSM]: Likewise.
11332 (mac_handle_text_input_event) [MAC_OSX]:
11333 Handle kEventTextInputOffsetToPos for no active input area case.
11334 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11335 (mac_handle_document_access_event)
11336 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11337 (install_application_handler) [MAC_OSX]: Register handlers for
11338 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11339 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11340 Register mac_handle_document_access_event.
11341
11342 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11343 Make functions non-static.
11344
113452008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11346
11347 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11348 (read_file_name_completion_ignore_case, insert_default_directory)
11349 (Qdefault_directory): Move to minibuffer.el.
11350 (Fread_file_name): Call the new `read-file-name' instead.
11351
113522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11353
11354 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11355 Make function non-static.
11356 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11357 Remove function.
11358 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11359 Move to mactoolbox.c.
11360 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11361
11362 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11363 (mac_rect_make): New macro.
11364
11365 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11366 instead of float.
11367 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11368 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11369 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11370 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11371 CGRectMake.
11372 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11373 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11374 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11375 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11376 instead of WindowRef in argument type.
11377 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11378 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11379 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11380 instead of DISPLAY. All uses changed.
11381 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11382 (x_calc_absolute_position): Simplify so as not to use
11383 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11384
11385 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11386 instead of WindowRef in argument type.
11387 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11388 [TARGET_API_MAC_CARBON]: Remove externs.
11389 (create_apple_event, mac_event_parameters_to_lisp)
11390 [TARGET_API_MAC_CARBON]: Add externs.
11391
11392 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11393 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11394 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11395 is clicked.
11396 (x_activate_menubar): Remove extern for saved_menu_event_location.
11397 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11398 Move from mac.c.
11399
114002008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11401
11402 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11403 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11404
114052008-04-23 Jason Rumney <jasonr@gnu.org>
11406
11407 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11408 attributes only for local files.
11409
11410 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11411 default to Qlocal.
11412
114132008-04-22 Juri Linkov <juri@jurta.org>
11414
11415 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11416 read-buffer-to-switch instead of using the letter "B".
11417
114182008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11419
11420 * fileio.c (Qdefault_directory): New variable.
11421 (Fread_file_name): Use it to pass `dir' to the completion functions.
11422
114232008-04-20 Chong Yidong <cyd@stupidchicken.com>
11424
11425 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11426
114272008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11428
11429 * keyboard.c (Vpre_help_message): Remove.
11430 (show_help_echo): Remove default C code.
11431
11432 * dired.c (directory_files_internal, file_name_completion):
11433 Only call ENCODE_FILE if the string is indeed decoded.
11434
114352008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11436
11437 * Makefile.in (TOOLKIT_DEFINES): Remove.
11438 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11439
114402008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11441
11442 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11443 (mactoolbox.o): New target.
11444
11445 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11446 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11447
11448 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11449 Use mac_set_frame_window_background instead of XSetWindowBackground.
11450 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11451 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11452 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11453 instead of SetWindowTitleWithCFString.
11454 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11455 Move function to mactoolbox.c.
11456 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11457 Use mac_set_window_modified instead of SetWindowModified.
11458 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11459 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11460 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11461 FrontNonFloatingWindow. Use mac_activate_window instead of
11462 ActivateWindow. Use mac_active_non_floating_window instead of
11463 ActiveNonFloatingWindow.
11464 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11465 Use mac_show_hourglass and mac_hide_hourglass.
11466 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11467 instead of GetGlobalMouse.
11468 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11469 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11470 Use mac_bring_window_to_front instead of BringToFront.
11471 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11472 mactoolbox.c.
11473 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11474 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11475 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11476 mactoolbox.c.
11477
11478 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11479 (XtPointer): Move typedef from macmenu.c.
11480 (enum button_type): Move enum from macmenu.c.
11481 (widget_value): Move typedef from macmenu.c.
11482 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11483 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11484 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11485 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11486 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11487 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11488 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11489 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11490 (Selection): Move typedef from macselect.c.
11491 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11492 macterm.c.
11493 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11494 (mac_is_window_collapsed, mac_bring_window_to_front)
11495 (mac_send_window_behind, mac_hide_window, mac_show_window)
11496 (mac_collapse_window, mac_front_non_floating_window)
11497 (mac_active_non_floating_window, mac_activate_window)
11498 (mac_move_window_structure, mac_move_window, mac_size_window)
11499 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11500
11501 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11502 (enum mac_menu_kind): Move enum to mactoolbox.c.
11503 (min_menu_id): Move variable to mactoolbox.c.
11504 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11505 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11506 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11507 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11508 [TARGET_API_MAC_CARBON]: Likewise.
11509 (XtPointer): Move typedef to macgui.h.
11510 (enum button_type): Move enum to macgui.h.
11511 (widget_value): Move typedef to macgui.h.
11512 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11513 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11514 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11515 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11516 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11517 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11518 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11519 (popup_activated_flag): Make variable non-static.
11520 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11521 (add_menu_item, fill_menu, dispose_menus):
11522 Move functions to mactoolbox.c.
11523 (restore_show_help_function, menu_target_item_handler)
11524 (install_menu_target_item_handler, mac_handle_dialog_event)
11525 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11526 [TARGET_API_MAC_CARBON]: Likewise.
11527 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11528 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11529 (find_and_call_menu_selection, name_is_separator): Make function
11530 non-static.
11531 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11532 to mactoolbox.c.
11533 (set_frame_menubar): Don't call install_menu_quit_handler.
11534 (menu_item_selection): New variable.
11535 (mac_menu_show): Use create_and_show_popup_menu.
11536 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11537 selection but set variable menu_item_selection. All uses changed.
11538 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11539 Call install_menu_quit_handler. Move to mactoolbox.c.
11540
11541 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11542 (Selection): Move typedef to macgui.h.
11543 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11544 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11545 Make variables non-static.
11546 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11547 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11548 Make functions non-static.
11549 (Vmac_service_selection) [MAC_OSX]: Likewise.
11550 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11551 (mac_valid_selection_target_p, mac_clear_selection)
11552 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11553 (mac_put_selection_value, mac_selection_has_target_p)
11554 (mac_get_selection_value, mac_get_selection_target_list)
11555 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11556 Move functions to mactoolbox.c.
11557 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11558 Likewise.
11559 (copy_scrap_flavor_data, mac_handle_service_event)
11560 (install_service_handler) [MAC_OSX]: Likewise.
11561 (syms_of_macselect) <Vmac_dnd_known_types>:
11562 Use mac_dnd_default_known_types.
11563
11564 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11565 Move to mactoolbox.c.
11566 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11567 (Fx_selection_owner_p): Add EXFUN.
11568 (install_window_handler, remove_window_handler, XSetWindowBackground):
11569 Remove externs.
11570 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11571 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11572 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11573 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11574 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11575 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11576 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11577 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11578 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11579 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11580 (mac_valid_selection_target_p, mac_clear_selection)
11581 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11582 (mac_put_selection_value, mac_selection_has_target_p)
11583 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11584 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11585 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11586 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11587 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11588 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11589 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11590 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11591 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11592
11593 * mactoolbox.c: New file.
11594
115952008-04-18 Jason Rumney <jasonr@gnu.org>
11596
11597 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11598
115992008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11600
11601 * character.c (Fmultibyte_char_to_unibyte):
11602 Return latin1 chars unchanged.
11603
11604 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11605 relocated if it points to `name'.
11606
116072008-04-17 Kenichi Handa <handa@m17n.org>
11608
11609 * data.c (Faset): Allow setting a multibyte character in an
11610 ASCII-only unibyte string.
11611
11612 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11613
116142008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11615
11616 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11617 done in config.h.
11618
116192008-04-16 Juanma Barranquero <lekktu@gmail.com>
11620
11621 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11622 (Fchar_direction): Add usage in the docstring.
11623
116242008-04-15 Chong Yidong <cyd@stupidchicken.com>
11625
11626 * keyboard.c (read_key_sequence): Remove always-true checks.
11627
116282008-04-14 Jason Rumney <jasonr@gnu.org>
11629
11630 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11631 compatibility struct, for better underline positioning.
11632
116332008-04-13 David Hansen <david.hansen@gmx.net>
11634
11635 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
11636 string.
11637
116382008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
11639
11640 * m/hp800.h (XUINT, XSET): Remove.
11641
116422008-04-12 Juanma Barranquero <lekktu@gmail.com>
11643
11644 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
11645 previous change.
11646
116472008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
11648
11649 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
11650 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
11651
116522008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11653
11654 * keymap.h (map_keymap_canonical): Declare.
11655 * xmenu.c (single_keymap_panes): Use it.
11656
116572008-04-11 Glenn Morris <rgm@gnu.org>
11658
11659 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
11660 set the target's value to that of the alias.
11661
116622008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
11663
11664 * term.c (set_tty_color_mode): Left over typo.
11665
116662008-04-10 Michael Albinus <michael.albinus@gmx.de>
11667
11668 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
11669 only after check for file name handler functions. Signal, when
11670 native functionality is not supported.
11671 (syms_of_fileio): Declare it unconditionally.
11672
116732008-04-10 Jason Rumney <jasonr@gnu.org>
11674
11675 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
11676 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
11677
11678 * w32.c (logon_network_drive): Also logon to remote drives that
11679 are mapped to drive letters.
11680
116812008-04-10 Glenn Morris <rgm@gnu.org>
11682
11683 * xdisp.c (truncate-partial-width-windows): Doc fix.
11684
116852008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
11686
11687 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
11688 Move functions to minibuffer.el.
11689 (syms_of_fileio): Don't declare them.
11690
116912008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11692
11693 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
11694 (syms_of_minibuf): Remove its initialization.
11695
11696 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
11697
116982008-04-09 Juanma Barranquero <lekktu@gmail.com>
11699
11700 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
11701
117022008-04-09 Jason Rumney <jasonr@gnu.org>
11703
11704 * makefile.w32-in (distclean): Delete makefile too.
11705 (maintainer-clean): New target.
11706
11707 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
11708
11709 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
11710 for new font backend and composite cases.
11711
117122008-04-09 Jan Djärv <jan.h.d@swipnet.se>
11713
11714 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
11715 Most of the code moved to run_timers.
11716 (do_pending_atimers): Call run_timers.
11717 (run_timers): New function.
11718
11719 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
11720 run atimers.
11721
11722 * process.c (wait_reading_process_output): The same as above.
11723
117242008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
11725
11726 * minibuf.c (last_exact_completion): Remove variable.
11727 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
11728 (complete_and_exit_1, complete_and_exit_2)
11729 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
11730 (Fdisplay_completion_list, display_completion_list_1)
11731 (Fminibuffer_completion_help, Fself_insert_and_exit)
11732 (Fexit_minibuffer, Fminibuffer_message): Move functions to
11733 minibuffer.el.
11734 (syms_of_minibuf): Remove corresponding initializations.
11735
11736 * keyboard.c (Qdeactivate_mark): New var.
11737 (command_loop_1): Use it to call `deactivate-mark'.
11738 (syms_of_keyboard): Initialize it.
11739
11740 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
11741 to another frame.
11742 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
11743 Don't call set_tty_color_mode.
11744 (store_frame_param): Reset previous_frame rather than call
11745 set_tty_color_mode.
11746 * term.c (set_tty_color_mode): Rewrite.
11747 * dispextern.h (set_tty_color_mode): New type.
11748 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
11749
117502008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
11751
11752 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
11753 for generic chars, which do not exist any more in emacs-unicode.
11754
117552008-04-08 Michael Albinus <michael.albinus@gmx.de>
11756
11757 * coding.c (detect_coding_emacs_mule)
11758 (Ffind_operation_coding_system): Fix typo.
11759
117602008-04-08 Jason Rumney <jasonr@gnu.org>
11761
11762 * w32uniscribe.c (SNAME): Extract only symbol name.
11763
11764 * w32font.h (struct w32_metric_cache): New struct.
11765 (w32font_info): Use it.
11766 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
11767 (CACHE_BLOCKSIZE): New constants.
11768
11769 * w32font.c (Qja, Qko, Qzh): New symbols.
11770 (syms_of_w32font): Initialise them.
11771 (font_matches_spec): Use them to filter by language.
11772 (recompute_cached_metrics): Remove function.
11773 (compute_metrics, clear_cached_metrics): New functions.
11774 (w32font_encode_char): Use them to manage metric cache.
11775 (w32font_text_extents): Cache metrics for all glyphs on demand.
11776 Delay converting glyph indices to WORD until needed.
11777 (w32font_open_internal): Initialize metric cache to empty.
11778 (registry_to_w32_charset): Charset should always be a symbol.
11779 (fill_in_logfont, list_all_matching_fonts): Family should
11780 always be a symbol.
11781
117822008-04-06 Jason Rumney <jasonr@gnu.org>
11783
11784 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
11785 Give up if glyph indices not supported. Use uniscribe obtained
11786 ABC widths for individual metrics. Map glyph clusters back to
11787 characters using fClusterStart flag. Return number of glyphs
11788 produced, not chars processed.
11789 (uniscribe_shape): Map char at FROM to current glyph.
11790
117912008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11792
11793 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11794 Use SetMenuItemHierarchicalMenu.
11795
117962008-04-05 Jason Rumney <jasonr@gnu.org>
11797
11798 * image.c (pbm_load): Allow color values up to 65535.
11799 Throw an error if max_color_idx is outside the supported range.
11800 Report an error when image size is invalid.
11801 Read two bytes at a time when raw images have max_color_idx above 255.
11802
118032008-04-05 Eli Zaretskii <eliz@gnu.org>
11804
11805 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11806 cFileName a file name that includes `?' characters, use the 8+3
11807 alias in cAlternateFileName instead.
11808
118092008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11810
11811 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11812 append "CCL: Quitted" when the CCL program is quitted.
11813 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11814
11815 * ccl.h (struct ccl_program): New member quit_silently.
11816
118172008-04-05 Chong Yidong <cyd@stupidchicken.com>
11818
11819 * search.c (compile_pattern_1): Treat non-nil and non-string of
11820 search-spaces-regexp as nil.
11821
11822 * minibuf.c (Fassoc_string): Tweak docstring.
11823
118242008-04-05 Eli Zaretskii <eliz@gnu.org>
11825
11826 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11827 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11828 2008-03-14 to force inode be positive.
11829
11830 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11831 _S_* ones, since we now use our own sys/stat.h.
11832 (stat, fstat): Don't mangle the inode number.
11833 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11834
118352008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11836
11837 * frame.h (struct frame): Give one more bit to `visible' since we use
11838 values larger than 1 to indicate obscured frames on ttys.
11839
11840 * keymap.c (Qkeymap_canonicalize): New var.
11841 (Fmap_keymap_internal): New fun.
11842 (describe_map): Use keymap-canonicalize.
11843
11844 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11845 (Fundo_boundary): Set them.
11846 (syms_of_undo): Initialize them.
11847 (record_point): Use them instead of last_point_position*.
11848 (last_undo_buffer): Change type.
11849
118502008-04-04 Jason Rumney <jasonr@gnu.org>
11851
11852 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11853 (recompute_cached_metrics): Don't set ascent and descent per char.
11854
11855 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11856 (uniscribe_check_otf): Add GC protection before consing.
11857 Rearrange loop for counting features.
11858
118592008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11860
11861 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11862 buffer with byte-size of source buffer.
11863
118642008-04-03 Chong Yidong <cyd@stupidchicken.com>
11865
11866 * callint.c (Fcall_interactively): Handle temporary region even
11867 when shift-select-mode is off.
11868
118692008-04-03 Jason Rumney <jasonr@gnu.org>
11870
11871 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11872
118732008-04-03 Kenichi Handa <handa@m17n.org>
11874
11875 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11876 (CATEGORY_MASK_UTF_16): Likewise.
11877 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11878 binary file.
11879 (detect_coding): Add null-byte detection for a binary file.
11880 (detect_coding_system): Likewise.
11881
118822008-04-03 Jason Rumney <jasonr@gnu.org>
11883
11884 * w32uniscribe.c: New file.
11885
11886 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11887
11888 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11889
11890 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11891 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11892 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11893 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11894 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11895 (Qphonetic): New symbols.
11896 (syms_of_w32font): Initialize them.
11897 (font_supported_scripts): Use them.
11898 (w32font_list_family): List all charsets.
11899 (w32font_text_extents, recompute_cached_metrics): Fix metric
11900 calculations.
11901 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11902 Give opentype fonts their own format.
11903 (font_matches_spec): New arguments backend and logfont.
11904 Handle :otf spec for uniscribe backend.
11905 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11906 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11907
11908 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11909 font backend.
11910 (globals_of_w32fns): Initialize uniscribe font backend.
11911
11912 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11913 dependencies.
11914 (w32uniscribe.$(O)): New file to build.
11915 (FONT_OBJ): Include w32uniscribe.$(O).
11916 (LIBS): Add uniscribe libraries.
11917
11918 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11919
119202008-04-02 Chong Yidong <cyd@stupidchicken.com>
11921
11922 * callint.c (Vshift_select_mode): New var.
11923 (Finteractive): Document new ^ spec.
11924 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11925 is present.
11926
11927 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11928 (command_loop_1): Avoid running the direct display versions of
11929 forward-char and backward-char if shift-selection may occur.
11930 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11931 shift-translation takes place.
11932
11933 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11934 avoid clobbering by define-minor-mode.
11935
11936 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11937 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11938
11939 * syntax.c (Fforward_word): Add ^ interactive spec.
11940
11941 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11942 (Fscroll_right): Add ^ interactive spec.
11943
119442008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11945
11946 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11947
11948 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11949
11950 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11951
119522008-03-31 Juri Linkov <juri@jurta.org>
11953
11954 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11955
119562008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11957
11958 * gtkutil.c (xg_set_geometry): Fix indentation.
11959 (xg_resize_outer_widget): Remove.
11960 (x_wm_size_hint_off): Fix indentation.
11961 (xg_frame_set_char_size): Call flush_and_sync after
11962 gtk_window_resize.
11963 (x_wm_set_size_hint): Pass NULL as geometry window to
11964 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11965 Add menu bar and tool bar height to base height.
11966 (xg_update_frame_menubar, free_frame_menubar)
11967 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11968 (update_frame_tool_bar, free_frame_tool_bar):
11969 Change xg_resize_outer_widget to xg_frame_set_char_size.
11970
119712008-03-30 Michael Albinus <michael.albinus@gmx.de>
11972
11973 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11974 (Fdbus_call_method): New parameter TIMEOUT.
11975 (dbus-send-signal): Optimize UNGCPRO call.
11976
119772008-03-29 Juri Linkov <juri@jurta.org>
11978
11979 * window.c (Fdisplay_buffer): Move call to
11980 Vsplit_window_preferred_function out of conditions that check
11981 if window is eligible for vertical splitting.
11982 When Vsplit_window_preferred_function is non-nil, call it and use
11983 its non-nil return value as window. Otherwise, continue doing
11984 vertical splitting using Fsplit_window with arg horflag=nil.
11985 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11986 default value from `split-window' to nil.
11987
119882008-03-29 Juri Linkov <juri@jurta.org>
11989
11990 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11991 for interactive code letters 'b' and 'B'.
11992
119932008-03-29 Eli Zaretskii <eliz@gnu.org>
11994
11995 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11996 multibyte string.
11997
119982008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11999
12000 * keyboard.c (pending_funcalls): New var.
12001 (timer_check): Run it.
12002 (syms_of_keyboard): Initialize it.
12003 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12004 (Vdelete_terminal_functions): New vars.
12005 (syms_of_terminal): Initialize them.
12006 (Fdelete_terminal): Run delete-terminal-functions.
12007 * xdisp.c (safe_eval): Rewrite.
12008 (safe_call2): New fun.
12009 * frame.c (Qdelete_frame_functions): New var.
12010 (syms_of_frame): Initialize it.
12011 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12012 * lisp.h (safe_call2, pending_funcalls): Declare.
12013
120142008-03-28 Andreas Schwab <schwab@suse.de>
12015
12016 * indent.c (Fmove_to_column): Move declaration before statements.
12017
120182008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12019
12020 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12021 (struct frame): Use bit fields for boolean vars.
12022
12023 * process.c (server_accept_connection): Simplify naming.
12024 (emacs_get_tty_pgrp): Use SDATA.
12025
12026 * coding.c (decode_coding_object): Fix last change.
12027
120282008-03-27 Jason Rumney <jasonr@gnu.org>
12029
12030 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12031
120322008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12033
12034 * charset.c (Fdefine_charset_internal): Change the way of
12035 registering charsets in Vcharset_order_list.
12036 (syms_of_charset): Make the charset `eight-bit' supplementary.
12037
120382008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12039
12040 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12041 operations, to avoid having the difference between pointers
12042 overflow.
12043
120442008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12045
12046 * indent.c (check_display_width): New fun.
12047 (scan_for_column): Use it.
12048
12049 * data.c (syms_of_data): Mark most-positive-fixnum and
12050 most-negative-fixnum as constants.
12051
12052 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12053
12054 * indent.c (scan_for_column): Extract from current_column_1.
12055 Merge with the same code from Fmove_to_column.
12056 (current_column_1, Fmove_to_column): Use it.
12057
120582008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12059
12060 * keymap.c (map_keymap_internal): New fun.
12061 (map_keymap): Use it.
12062 (Fmap_keymap_internal): New fun.
12063 (Fmap_keymap): Remove left-out test from before make_save_value.
12064
12065 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12066
12067 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12068 Use XCAR/XCDR.
12069
12070 * process.h (struct Lisp_Process): Remove filter_multibyte.
12071 * process.c (QCfilter_multibyte): Remove.
12072 (setup_process_coding_systems): Don't use filter_multibyte.
12073 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12074 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12075 (Fset_process_filter_multibyte): Change the coding-system to
12076 approximate the previous behavior.
12077 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12078 coding-system.
12079
12080 * coding.c (decode_coding_object): When not decoding into a buffer,
12081 obey the coding system's preference of (uni|multi)byte.
12082
120832008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12084
12085 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12086 every char is changed and has a different byte-length.
12087 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12088 Fix int -> EMACS_INT.
12089
120902008-03-23 David Hansen <david.hansen@gmx.net>
12091
12092 * dbusbind.c (xd_read_message): Remove extra copying of message
12093 strings. Check for NULL `interface' or `member'.
12094
120952008-03-22 Eli Zaretskii <eliz@gnu.org>
12096
12097 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12098 cFileName a file name that includes `?' characters, use the 8+3
12099 alias in cAlternateFileName instead.
12100
121012008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12102
12103 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12104
121052008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12106
12107 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12108 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12109 work on current_buffer only instead (that was already the case
12110 for some of the code anyway).
12111 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12112 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12113 (SET_PT, SET_PT_BOTH): Adjust.
12114 * intervals.h (set_point, temp_set_point, set_point_both)
12115 (temp_set_point_both): Remove redundant declarations.
12116
121172008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12118
12119 * fileio.c (Finsert_file_contents):
12120 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12121 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12122 when buffer != current_buffer anyway.
12123
121242008-03-20 Andreas Schwab <schwab@suse.de>
12125
12126 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12127 as default.
12128
121292008-03-19 Jason Rumney <jasonr@gnu.org>
12130
12131 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12132 (syms_of_w32fns): Initialize them.
12133 (HOURGLASS_ID): New constant.
12134 (x_window_to_frame): Don't check hourglass_window.
12135 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12136 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12137 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12138 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12139 Only change the cursor if hourglass is not active.
12140 (Fx_create_frame): Initialize frame's current_cursor.
12141 (hourglass_atimer): Remove.
12142 (hourglass_started): New function.
12143 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12144 (show_hourglass): Adapt to w32, changing argument to frame.
12145
12146 * w32term.h (struct w32_output): Remove hourglass_window.
12147 Add current_cursor.
12148
12149 * eval.c (call_debugger, Fsignal):
12150 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12151 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12152 (Fexecute_extended_command, cancel_hourglass_unwind):
12153 * minibuf.c (read_minibuf):
12154 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12155
121562008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12157
12158 * window.c (run_funs): New fun.
12159 (run_window_configuration_change_hook): Use it to run the buffer-local
12160 and the global part of the hook.
12161
12162 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12163 (unwind_format_mode_line): Restore selected window.
12164 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12165
121662008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12167
12168 * editfns.c (Fchar_equal): Check they are valid characters.
12169
12170 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12171
121722008-03-17 Andreas Schwab <schwab@suse.de>
12173
12174 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12175 against a charset.
12176
12177 * lisp.h (Fbuffer_list): Declare.
12178
121792008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12180
aac0c6e3
MR
12181 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12182 handlebox_widget is != 0.
12183
121842008-03-16 Juri Linkov <juri@jurta.org>
12185
12186 * callint.c (Fcall_interactively): For interactive code letters
12187 'b' and 'B' put the buffer list into the list of default "future"
12188 values of the minibuffer.
12189
121902008-03-16 Andreas Schwab <schwab@suse.de>
12191
12192 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12193 modifiers.
12194
12195 * regex.c (re_match_2_internal): Correct matching of a charset
12196 against latin-1 characters.
12197
121982008-03-16 Kenichi Handa <handa@m17n.org>
12199
12200 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12201 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12202 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12203 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12204 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12205 CHAR_STRING_ADVANCE.
12206 (produce_chars): Fix for the case that the source and the
12207 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12208 instead of CHAR_STRING_ADVANCE.
12209 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12210 STRING_CHAR_ADVANCE.
12211
122122008-03-15 Andreas Schwab <schwab@suse.de>
12213
12214 * regex.c (re_match_2_internal): Correct matching of eight bit
12215 characters in unibyte strings.
12216
122172008-03-15 Martin Rudalics <rudalics@gmx.at>
12218
12219 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12220 at end of range when it coincides with the end of the buffer.
12221
122222008-03-14 Eli Zaretskii <eliz@gnu.org>
12223
12224 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12225
12226 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12227
122282008-03-14 Jason Rumney <jasonr@gnu.org>
12229
12230 * editfns.c (initial_tz): New variable.
12231 (syms_of_editfns): Initialize it.
12232 (Fset_time_zone_rule): Set it when first called.
12233 Use it when TZSTRING is nil.
12234
12235 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12236 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12237 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12238 (globals_of_w32fns): Initialize them.
12239 (compute_tip_xy): Use them to position tooltips.
12240
122412008-03-14 Glenn Morris <rgm@gnu.org>
12242
12243 * emacs.c (main): Revert previous change.
12244 (standard_args): Revert -internal-script back to -scriptload,
12245 and remove the long-option form.
12246
122472008-03-13 Glenn Morris <rgm@gnu.org>
12248
12249 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12250 Remove option -enable-font-backend.
12251
122522008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12253
12254 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12255
122562008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12257
12258 * xterm.c (x_connection_closed): For GTK: If this is the last
12259 terminal just exit without closing the display.
12260
122612008-03-11 Jason Rumney <jasonr@gnu.org>
12262
12263 * w32font.c (w32font_full_name): Use floor to round.
12264
f0131492 122652008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12266
12267 * sound.c (alsa_configure): Declare vol at beginning of block.
12268
12269 * fontset.c (Ffontset_info): Remove extra semicolon.
12270
122712008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12272
12273 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12274 size of resulting string.
12275
122762008-03-10 Jason Rumney <jasonr@gnu.org>
12277
12278 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12279
122802008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12281
12282 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12283 Don't pretend as if characters with display property haven't been
12284 consumed for string-replacing-string case.
12285
122862008-03-08 Kim F. Storm <storm@cua.dk>
12287
12288 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12289 (get_next_display_element, next_element_from_string)
12290 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12291
122922008-03-08 Andreas Schwab <schwab@suse.de>
12293
12294 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12295
122962008-03-06 Jason Rumney <jasonr@gnu.org>
12297
12298 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12299 when charset not specified. Only translate ANSI to unicode when
12300 font_type is truetype.
12301 (w32font_coverage_ok): New function.
12302 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12303
123042008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12305
12306 * lread.c (Fread_char): Resolve modifiers.
12307 (Fread_char_exclusive): Likewise.
12308
12309 * character.c (char_resolve_modifier_mask): New function.
12310 (char_string): Use char_resolve_modifier_mask.
12311 (Fchar_resolve_modifiers): New function.
12312 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12313 function.
12314
123152008-03-04 Jason Rumney <jasonr@gnu.org>
12316
12317 * makefile.w32-in: Always include w32font.c in the build.
12318 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12319
123202008-03-04 Andreas Schwab <schwab@suse.de>
12321
12322 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12323 (versionclean): Likewise.
12324
123252008-03-04 Juanma Barranquero <lekktu@gmail.com>
12326
12327 * .cvsignore: Add oo.
12328
123292008-03-03 Andreas Schwab <schwab@suse.de>
12330
12331 * coding.c (decode_coding_object): Inhibit gap shrinking while
12332 decoding in place.
12333
123342008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12335
12336 * w32term.c: Remove unused include "gnu.h".
12337 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12338
12339 * gnu.h: Rename to ...
12340 * emacs-icon.h: ... this.
12341 * xterm.c: Use emacs-icon.h instead of gnu.h.
12342 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12343
123442008-03-03 Juanma Barranquero <lekktu@gmail.com>
12345
12346 * w32font.c: Include math.h.
12347
123482008-03-03 Jason Rumney <jasonr@gnu.org>
12349
12350 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12351 Compute options separately.
12352 (w32font_open_internal): Set glyph_idx before caching metrics.
12353
12354 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12355 Define if system headers don't.
12356 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12357 (w32font_encode_char): Don't declare here.
12358
12359 * w32font.c (Quniscribe, QCformat): New symbols.
12360 (syms_of_w32font): Define them.
12361 (w32font_has_char): Indicate uncertainty.
12362 (w32font_encode_char): Encode as glyph point. Make static.
12363 (recompute_cached_metrics): New function.
12364 (w32font_open_internal): Use it. Set font to use glyph points
12365 initially. Set format based on type of font.
12366 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12367 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12368 on it. Set format based on information available here.
12369 (add_font_entity_to_list): Identify backend based on opentype_only.
12370
123712008-03-02 Andreas Schwab <schwab@suse.de>
12372
12373 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12374
12375 * coding.c (decode_coding_big5, produce_chars):
12376 Fix typos in last change.
12377
123782008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12379
12380 * gnu.h: New icon.
12381
123822008-03-02 Kenichi Handa <handa@m17n.org>
12383
12384 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12385 `dos', don't decode '\r' if that is the last in the source.
12386 (decode_coding_utf_16, decode_coding_emacs_mule)
12387 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12388 (decode_coding_raw_text, decode_coding_charset): Likewise.
12389 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12390
123912008-03-01 Jason Rumney <jasonr@gnu.org>
12392
12393 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12394
123952008-03-01 Kim F. Storm <storm@cua.dk>
12396
12397 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12398
123992008-03-01 Jason Rumney <jasonr@gnu.org>
12400
12401 * w32font.c (w32font_full_name): New function.
12402 (w32font_open_internal): Use it.
12403
124042008-03-01 Kim F. Storm <storm@cua.dk>
12405
12406 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12407
124082008-03-01 Jason Rumney <jasonr@gnu.org>
12409
12410 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12411
124122008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12413
12414 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12415 xg_frame_resized when the event is for the edit widget.
12416
12417 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12418
12419 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12420 set_char_size.
12421 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12422 operations on widgets here. Just set frame size if needed.
12423 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12424 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12425 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12426 the whole frame.
12427 (xg_create_tool_bar): Move attachment of the tool bar to
12428 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12429 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12430
124312008-03-01 Jason Rumney <jasonr@gnu.org>
12432
12433 * w32fns.c (w32_msg_pump): Disable debug code.
12434
124352008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12436
12437 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12438
124392008-02-29 Chong Yidong <cyd@stupidchicken.com>
12440
12441 * xdisp.c (next_overlay_string): Don't set
12442 overlay_strings_at_end_processed_p if we're currently reading from
12443 a display string.
12444
124452008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12446
12447 * xdisp.c (get_overlay_strings_1): Fix typo.
12448
124492008-02-29 Chong Yidong <cyd@stupidchicken.com>
12450
12451 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12452
124532008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12454
12455 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12456
12457 * xdisp.c (display_mode_element): Cancel the previous change.
12458 (decode_mode_spec): Likewise.
12459 (handle_auto_composed_prop): Don't make composition if it->string
12460 is a string.
12461
124622008-02-27 Kim F. Storm <storm@cua.dk>
12463
12464 * lisp.h (GLYPH): Change type from int to struct with separate char
12465 and face_id members.
12466 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12467 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12468 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12469 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12470 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12471 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12472 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12473 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12474 handle new Lisp glyph code encoding, either an integer or a cons.
12475
12476 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12477 (GLYPH_ALIAS): Delete.
12478 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12479 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12480 (GLYPH_FROM_CHAR): Replace macro by ...
12481 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12482
12483 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12484 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12485 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12486 (GLYPH_INVALID_P): New macro.
12487 (spec_glyph_lookup_face): Update prototype.
12488
12489 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12490 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12491 new glyph code encoding.
12492 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12493 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12494
12495 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12496 Adapt to new glyph type and new glyph code encoding.
12497
12498 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12499
12500 * indent.c (current_column, current_column_1, Fmove_to_column)
12501 (compute_motion): Adapt to new glyph code encoding.
12502
12503 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12504
125052008-02-27 Chong Yidong <cyd@stupidchicken.com>
12506
12507 * process.c (wait_reading_process_output): Check for window
12508 changes caused by timers.
12509 Suggested by Johan Bockgård.
12510
125112008-02-27 Glenn Morris <rgm@gnu.org>
12512
12513 * emacs.c (USAGE1): Add `--disable-font-backend'.
12514
125152008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12516
12517 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12518 is made to the buffer.
12519
125202008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12521
12522 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12523 (face_at_string_position):
12524 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12525 (face_at_string_position):
12526 * xdisp.c (display_string, next_overlay_change):
12527 * buffer.h (overlays_at):
12528 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12529 Update callers.
12530
125312008-02-26 Chong Yidong <cyd@stupidchicken.com>
12532
12533 * editfns.c (Fformat): Doc fix.
12534
125352008-02-26 Juanma Barranquero <lekktu@gmail.com>
12536
12537 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12538 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12539 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12540
125412008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12542
12543 * buffer.c (Fbuffer_swap_text): New function.
12544 (syms_of_buffer): Defsubr it.
12545
125462008-02-25 Chong Yidong <cyd@stupidchicken.com>
12547
12548 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12549
125502008-02-25 Jason Rumney <jasonr@gnu.org>
12551
12552 * w32font.c (w32font_draw): Draw one character at a time when padding.
12553
125542008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12555
12556 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12557 Handle a nil arg. Use run_window_configuration_change_hook.
12558 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12559 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12560 Use run_window_configuration_change_hook.
12561
125622008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12563
12564 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12565 1-pixel width.
12566
125672008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12568
12569 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12570 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12571 if the glyph in the font is zero pixel with.
12572
12573 * dispextern.h (struct glyph_string): New member padding_p.
12574
12575 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12576
12577 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12578
12579 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12580
12581 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12582
12583 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12584
125852008-02-25 Jason Rumney <jasonr@gnu.org>
12586
12587 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12588
125892008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12590
12591 Allow fine-grained image-cache flushing.
12592 * dispextern.h (struct image): Add `dependencies' field.
12593 (clear_image_caches): Change arg to Lisp_Object.
12594 * image.c (make_image): Initialize `dependencies' field.
12595 (clear_image_cache): Change arg to allow fine-grained flushing.
12596 Perform the flush even if image-cache-eviction-delay is nil.
12597 (clear_image_caches): Change arg to Lisp_Object.
12598 (Fclear_image_cache): Expand meaning of the argument.
12599 (mark_image): Mark `dependencies' field.
12600 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12601 (lface_hash): Use XHASH rather than XFASTINT.
12602 (face_at_buffer_position): Fix int -> EMACS_INT position.
12603 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12604 (select_frame_for_redisplay): Remove code duplication.
12605 (redisplay_internal): Adapt arg to call to clear_image_caches.
12606
126072008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12608
12609 * s/vms4-0.h:
12610 * s/vms4-2.h:
12611 * s/vms4-4.h:
12612 * s/vms5-5.h: Remove, unused.
12613
12614 * s/irix5-2.h:
12615 * s/irix6-0.h:
12616 * s/riscos5.h:
12617 * s/mach-bsd4-3.h:
12618 * m/mips4.h: Remove files for obsolete systems.
12619
12620 * Makefile.in:
12621 * filelock.c:
12622 * unexmips.c:
12623 * m/hp9000s300.h:
12624 * m/iris4d.h:
12625 * s/aix3-1.h:
12626 * s/hpux.h:
12627 * s/msdos.h:
12628 * s/usg5-0.h:
12629 * s/usg5-2-2.h:
12630 * s/usg5-2.h:
12631 * s/usg5-3.h: Remove references to obsolete variables.
12632
12633 * s/irix5-0.h: Remove, move all the contents ...
12634 * s/irix6-5.h: ... here. Simplify.
12635 * config.in: Regenerate.
12636
126372008-02-24 Jason Rumney <jasonr@gnu.org>
12638
12639 * w32term.c (x_draw_glyph_string_background): Clear the background
12640 manually when cleartype is in use.
12641 (x_draw_glyph_string_foreground): Draw text transparently when
12642 cleartype is in use.
12643
12644 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
12645 a font into it unless we have to.
12646
126472008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12648
12649 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
12650 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 12651
aac0c6e3
MR
126522008-02-18 Jason Rumney <jasonr@gnu.org>
12653
12654 * w32fns.c (Fw32_shell_execute): Encode parameters.
12655
126562008-02-09 Eli Zaretskii <eliz@gnu.org>
12657
12658 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
12659
126602008-02-05 Juanma Barranquero <lekktu@gmail.com>
12661
12662 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
12663
126642008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
12665
12666 * xterm.c (x_set_offset): Don't change the gravity if
12667 CHANGE_GRAVITY is -1.
12668
126692008-02-23 Chong Yidong <cyd@stupidchicken.com>
12670
12671 * fileio.c (auto_save_error_occurred): New var.
12672 (auto_save_error): Set it.
12673 (Fdo_auto_save): Don't overwrite the error message if an auto-save
12674 error occurred.
12675
126762008-02-23 Eli Zaretskii <eliz@gnu.org>
12677
12678 * w32.c (globals_of_w32): Add initializations for
12679 g_b_init_get_sid_sub_authority and
12680 g_b_init_get_sid_sub_authority_count.
12681
126822008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
12683
12684 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
12685 (font_parse_xlfd): Use them for sanity check.
12686 (Finternal_set_font_style_table): Make sure the table is bijective.
12687
12688 Consolidate the image_cache to the terminal struct.
12689 * termhooks.h (P_): Remove redundant def.
12690 (struct terminal): New field `image_cache'.
12691 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
12692 of FRAME_X_IMAGE_CACHE.
12693 * xterm.h (struct x_display_info): Remove image_cache field.
12694 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12695 * w32term.h (struct w32_display_info): Remove image_cache field.
12696 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12697 * macterm.h (struct mac_display_info): Remove image_cache field.
12698 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
12699 * xterm.c (x_term_init):
12700 * w32term.c (w32_term_init):
12701 * macterm.c (mac_term_init): Set the image_cache in the terminal.
12702 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
12703 Remove declarations.
12704 (clear_image_caches, mark_image_cache): New declarations.
12705 * xfaces.c (clear_face_cache):
12706 * xdisp.c (redisplay_internal): Use clear_image_caches.
12707 * image.c (clear_image_cache): Don't check that a frame is on
12708 a window-system before checking if it shares the same cache.
12709 (clear_image_caches): New function.
12710 (Fclear_image_cache): Use it.
12711 (mark_image): Move from allo.c.
12712 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
12713 * alloc.c (mark_image, mark_image_cache): Move to image.c.
12714 (mark_object): Don't call mark_image_cache for frames.
12715 (mark_terminals): Call mark_image_cache.
12716
12717 * lisp.h (Fdelete_terminal): Declare.
12718
12719 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
12720 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
12721 wrong_type_argument.
12722
127232008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
12724
12725 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
12726 malayalam.el, and tamil.el. Add sinhala.el.
12727
127282008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
12729
12730 * xterm.c (x_connection_closed): Consolidate identical tests.
12731 (x_delete_terminal): Don't crash if called via x_connection_closed.
12732
127332008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
12734
12735 * xdisp.c (decode_mode_spec): New arg string.
12736 (display_mode_element): Adjust for the above change.
12737
127382008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
12739
12740 * callint.c (Fcall_interactively): Use AREF.
12741
127422008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
12743
12744 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
12745
127462008-02-18 Jan Djärv <jan.h.d@swipnet.se>
12747
12748 * xfns.c (Fx_show_tip): Set string to " " if empty.
12749
127502008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
12751
12752 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
12753 with Qt.
12754
127552008-02-17 Kenichi Handa <handa@m17n.org>
12756
12757 * ftfont.c (ftfont_shape): Return Lispy number.
12758
12759 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
12760 for GCs.
12761 (Finternal_set_font_selection_order): Call font_update_sort_order
12762 only when enable_font_backend is set.
12763 (realize_x_face): Set face->font_info to that of default face only
12764 when enable_font_backend is set.
12765
12766 * xdisp.c (handle_composition_prop): Set it->c to the fist
12767 character of the composed region.
12768 (fill_composite_glyph_string): Set base_face->font_info to
12769 s->font_info. Get a face for ascii from base_face->ascii_face.
12770 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
12771 with a face already decided.
12772 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
12773 non-negative.
12774 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
12775 call font_prepare_composition unconditionally.
12776
12777 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
12778
12779 * xterm.h (struct x_display_info): New member font.
12780
12781 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
12782 (x_set_mouse_face_gc, x_new_font): Likewise.
12783 (x_term_init): Setup display_info->font.
12784 (x_delete_terminal): Free display_info->font.
12785
12786 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
12787
12788 * ftxfont.c (ftxfont_default_fid): Delete it.
12789 (ftxfont_open): Set xfont->fid to 0.
12790 (ftxfont_end_for_frame): Clear data specific to the frame and the
12791 font-driver.
12792
12793 * xftfont.c (xftfont_default_fid): Delete it.
12794 (xftfont_open): Set xfont->fid to 0.
12795
12796 * fontset.c (FONTSET_OBJLIST): New macro.
12797 (fontset_find_font): Update font-object list of the fontset.
12798 (free_realized_fontset): New function.
12799 (free_face_fontset): Call free_realized_fontset.
12800 (Ffont_info): Call font_close_object only when enable_font_backend
12801 is set.
12802
12803 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12804 [HAVE_NTGUI]: Include w32term.h.
12805 [MAC_OS]: Include macterm.ch.
12806 (font_otf_ValueRecord): Use make_number.
12807 (font_finish_cache): Fix handling of reference count.
12808 (font_clear_cache): Update num_fonts.
12809 (font_open_entity): Update smallest_char_width and
12810 smallest_font_height of the frame.
12811 (font_close_object): Update num_fonts.
12812 (Fclear_font_cache): Fix finding the target cache data.
12813
128142008-02-16 Glenn Morris <rgm@gnu.org>
12815
12816 * fontset.c (Finternal_char_font): Fix compilation warning.
12817
128182008-02-16 Eli Zaretskii <eliz@gnu.org>
12819
12820 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12821 instead of char arrays. Enlarge the size of array passed to
12822 get_token_information.
12823
12824 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12825 warnings.
12826
128272008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12828
12829 * .gdbinit: Don't set `args', it breaks gdb --args.
12830
128312008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12832
12833 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12834 within a narrowed buffer.
12835
128362008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12837
12838 * coding.c (decode_coding_object, encode_coding_object):
12839 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12840
128412008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12842
12843 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12844 hardcoding 1.
12845 (detect_coding_system):
12846 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12847 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12848 * insdel.c (insert_from_gap):
12849 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12850 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12851 (string_to_multibyte):
12852 * character.c (chars_in_text, multibyte_chars_in_text):
12853 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12854
12855 * character.h (FETCH_STRING_CHAR_ADVANCE)
12856 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12857 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12858 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12859
12860 * casefiddle.c (casify_region): Only call after-change and composition
12861 functions on the part of the region that was changed.
12862
12863 * keyboard.c (read_avail_input):
12864 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12865
128662008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12867
12868 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12869 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12870
128712008-02-11 Juanma Barranquero <lekktu@gmail.com>
12872
12873 * w32menu.c (push_submenu_start, push_submenu_end)
12874 (push_left_right_boundary, push_menu_pane, push_menu_item):
12875 * keyboard.c (read_key_sequence): Don't pass args with side effects
12876 to AREF, it fails when compiling with -DENABLE_CHECKING.
12877
128782008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12879
12880 * Makefile.in (${lispsource}international/charprop.el):
12881 Delete this target.
12882
12883 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12884 emacs-unicode-2.
12885
128862008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12887
12888 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12889
128902008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12891
12892 * frame.c (Qnoelisp): New symbol.
12893 (syms_of_frame): Initialize it.
12894 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12895 harmless Elisp code, from a strong `force' from x_connection_closed.
12896 * frame.h (Qnoelisp): Declare.
12897 * xterm.c (x_connection_closed): Pass `noelisp'.
12898
12899 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12900 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12901 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12902 rather than `int' for the type of `type'.
12903
129042008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12905
12906 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12907
12908 * Makefile.in (GNUC): Remove support for gcc-1.x.
12909
129102008-02-10 Richard Stallman <rms@gnu.org>
12911
12912 * lisp.h (ASET): Use AREF, not ASLOT.
12913
129142008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12915
12916 * lisp.h (ASET): Check bounds.
12917
129182008-02-10 Glenn Morris <rgm@gnu.org>
12919
12920 * buffer.c (mode-name): Doc fix.
12921
129222008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12923
12924 * Makefile.in:
12925 * emacs.c:
12926 * gmalloc.c:
12927 * keyboard.c:
12928 * lisp.h:
12929 * m/ibm370aix.h:
12930 * process.c:
12931 * regex.c:
12932 * s/hpux.h:
12933 * sysdep.c:
12934 * sysselect.h:
12935 * systty.h:
12936 * unexec.c:
12937 * w32term.c:
12938 * xsmfns.c:
12939 * xterm.c: Remove code that deals with obsolete variables.
12940
12941 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12942
12943 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12944 nothing else needs it anymore.
12945
129462008-02-09 Eli Zaretskii <eliz@gnu.org>
12947
12948 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12949 instead of unibyte_char_to_multibyte.
12950
129512008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12952
12953 * s/gnu-linux.h: Remove commented out code.
12954
12955 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12956
12957 * Makefile.in: Update what RMS says about using autoconf.
12958 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12959 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12960 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12961 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12962
129632008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12964
12965 * keymap.c (Fkey_description): Move side effect outside of macro call.
12966
12967 * xfaces.c (Finternal_make_lisp_face):
12968 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12969
12970 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12971 (syms_of_fontset): Use ASET.
12972
12973 * fns.c (concat): Move side effect outside of macro call.
12974 (hash_clear): Use ASET.
12975
129762008-02-08 Richard Stallman <rms@gnu.org>
12977
12978 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12979 If FORCE, and frame has a surrogate minibuffer for another frame,
12980 delete the other frame first.
12981
129822008-02-07 Timo Savola <timo.savola@iki.fi>
12983
12984 * xterm.c (x_detect_focus_change): Handle embed client message.
12985 (handle_one_xevent): Ditto.
12986 (handle_one_xevent): If embedded and we get a button press/release,
12987 request focus.
12988 (xembed_set_info, xembed_send_message): New functions.
12989 (x_make_frame_visible): Call xembed_set_info if embedded.
12990 (x_make_frame_invisible): Call xembed_set_info if embedded.
12991 (x_term_init): Initialize Xatom_XEMBED.
12992 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12993 (x_iconify_frame): Ditto.
12994
12995 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12996 (enum xembed_info, enum xembed_message, enum xembed_focus)
12997 (enum xembed_modifier, enum xembed_accelerator): New.
12998 (xembed_set_info, xembed_send_message): Declare.
12999 (FRAME_X_EMBEDDED_P): New.
13000
13001 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13002 gtk_plug_new.
13003
13004 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13005 window ID of a frame.
13006 (x_window): Reparent frame if embedded.
13007 (Fx_create_frame): Don't set border width if embedded.
13008
13009 * emacs.c (USAGE3): Add --parent-id.
13010 (standard_args): Ditto.
13011
130122008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13013
13014 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13015
130162008-02-07 Jim Meyering <meyering@redhat.com>
13017
13018 Use "do...while (0)", not "if (1)...else" in macro definitions.
13019 The latter provokes a warning from gcc about the empty else, when
13020 followed by ";". Also, without that trailing semicolon, it would
13021 silently swallow up any following statement.
13022 * syntax.h (SETUP_SYNTAX_TABLE)
13023 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13024 * buffer.h (DECODE_POSITION): Likewise.
13025 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13026 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13027 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13028 (FETCH_CHAR_ADVANCE): Likewise.
13029 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13030
130312008-02-07 Jim Meyering <meyering@redhat.com>
13032
13033 * lread.c [lint]: Don't include <sys/inode.h>.
13034
130352008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13036
13037 * xselect.c (x_handle_dnd_message):
13038 * xmenu.c (digest_single_submenu, xmenu_show):
13039 * xdisp.c (with_echo_area_buffer_unwind_data)
13040 (format_mode_line_unwind_data, unwind_format_mode_line)
13041 (display_menu_bar):
13042 * eval.c (Ffetch_bytecode):
13043 * doc.c (store_function_docstring):
13044 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13045 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13046 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13047
130482008-02-07 Kenichi Handa <handa@m17n.org>
13049
13050 * ftxfont.c (ftxfont_open): Don't set
13051 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13052
13053 * ftfont.c (ftfont_open): Fix previous change.
13054
130552008-02-06 Jason Rumney <jasonr@gnu.org>
13056
13057 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13058 Use cached metrics for ASCII characters.
13059 (w32font_open_internal): Don't set font's owning_frame.
13060 Cache metrics for ASCII characters.
13061
13062 * w32font.h (struct w32font_info): Add ascii_metrics.
13063 Remove owning_frame.
13064
130652008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13066
13067 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13068 to negative value.
13069
13070 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13071
13072 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13073
13074 * charset.c (syms_of_charset): Set QCtest and Qeq.
13075
130762008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13077
13078 * process.c (Fstart_process):
13079 * callproc.c (Fcall_process): Handle the case where
13080 Funhandled_file_name_directory returns nil.
13081
13082 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13083 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13084 * font.c (check_gstring): Use them and AREF to access the vector before
13085 we know it's really a gstring.
13086 (Ffont_shape_text): Fix typo.
46e722a9 13087 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13088
13089 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13090 Declare.
13091
13092 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13093
130942008-02-05 Jason Rumney <jasonr@gnu.org>
13095
13096 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13097 Set smallest_font_height and smallest_char_width in display info.
13098
130992008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13100
13101 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13102
131032008-02-05 Miles Bader <miles@gnu.org>
13104
13105 * xfaces.c (get_lface_attributes, merge_named_face)
13106 (lookup_named_face, lookup_derived_face, realize_named_face):
13107 Revert 2008-02-01 change by cyd@stupidchicken.com.
13108
131092008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13110
13111 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13112 fallback fonts.
13113 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13114
131152008-02-04 Jason Rumney <jasonr@gnu.org>
13116
13117 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13118 set full_name.
13119 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13120
131212008-02-03 Jason Rumney <jasonr@gnu.org>
13122
13123 * makefile.w32-in (OBJ1): Include font.o here.
13124 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13125
131262008-02-02 Jason Rumney <jasonr@gnu.org>
13127
13128 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13129
131302008-02-01 Jason Rumney <jasonr@gnu.org>
13131
13132 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13133
13134 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13135
131362008-02-01 Andreas Schwab <schwab@suse.de>
13137
13138 * Makefile.in (shortlisp, lisp): Update for rename of
13139 ../lisp/language/myanmar.el.
13140
131412008-02-01 Chong Yidong <cyd@stupidchicken.com>
13142
13143 * xfaces.c (get_lface_attributes): Delete function.
13144 (merge_named_face, lookup_named_face, lookup_derived_face)
13145 (realize_named_face): Call lface_from_face_name directly, and use
13146 the fact that merge_face_vectors does not alter its FROM argument.
13147
131482008-02-01 Jason Rumney <jasonr@gnu.org>
13149
13150 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13151 input in the default locale. Handle non-Unicode multibyte input.
13152
131532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13154
13155 * fontset.c (reorder_font_vector): Exclude nil elements from the
13156 font group. Don't try multiple fonts.
13157 (fontset_font): Adjust for the above change.
13158 (Finternal_char_font): Return nil if the found font doesn't
13159 contain the character ch.
13160
13161 * Makefile.in (lisp, shortlisp): Add cham.el.
13162
131632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13164
13165 * font.h (FONTP): Make it return 1 also for a font-object.
13166
13167 * .gdbinit (xfontset): New function.
13168
13169 * font.c (font_find_for_lface): Check if the character C is
13170 supported or not only for the first font.
13171
13172 * fontset.c (reorder_font_vector): Fix typo.
13173 (fontset_find_font): Don't add a font-spec specifying a script.
13174 Use 0 (not Qt) for the indication of empty font-group. Change the
13175 format of RFONT-DEF. Return Qt if no font in the font-group
13176 support the character.
13177 (fontset_font): Adjust for the above change. If no font was
13178 found the character, remember that.
13179 (face_for_char): Adjust for the change of RFONT-DEF.
13180 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13181 no font for the target.
13182 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13183
131842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13185
13186 * font.c (font_load_for_face): Handle the case that the font in
13187 face->lface is a string.
13188
131892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13190
13191 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13192
131932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13194
13195 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13196 Fix previous change. If the frame is not on a window system,
13197 signal an error.
13198
131992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13200
13201 * coding.c (decode_coding_object, encode_coding_object): Adjust
13202 marker positions after conversion.
13203
13204 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13205
132062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13207
13208 * font.c (font_find_for_lface): Fix the handling of the return
13209 value of font_has_char.
13210 (Ffont_shape_text): Fix previous change.
13211
13212 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13213 (fontset_ref_and_range): Delete it.
13214 (fontset_find_font): Call char_table_ref_and_range instead of
13215 FONTSET_REF_AND_RANGE.
13216 (make_fontset): Don't setup font groups of Latin here.
13217 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13218 (new_fontset_from_font): Make the specified font the default for
13219 all Latin characters.
13220
132212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13222
13223 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13224 is on a window system before accessing the fontset of the frame.
13225
132262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13227
13228 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13229
13230 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13231 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13232
13233 * font.c (Ffont_shape_text): If the font driver doesn't have a
13234 shaper function, make zero-width glyphs to have at least one-pixel
13235 width. Fix setting of `to' field of glyphs.
13236
132372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13238
13239 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13240 glyphs.
13241
13242 * font.h (struct font_driver): Improve docstring of member `shape'.
13243
132442008-02-01 Kenichi Handa <handa@m17n.org>
13245
13246 * composite.c (syms_of_composite): Fix docstring of
13247 auto-composition-function.
13248
13249 * font.h (LGLYPH_SIZE): New macro.
13250
13251 * font.c (Ffont_fill_gstring): Stop filling when a character not
13252 supported by the font is found.
13253 (Ffont_shape_text): When a shape callback function returns nil,
13254 try at most two more times with larger gstring.
13255 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13256
13257 * xdisp.c (handle_auto_composed_prop): Change the argument to
13258 auto-composition-function.
13259
13260 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13261 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13262 Lispy glyph and store it in the lgstring.
13263
13264 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13265
13266 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13267
132682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13269
13270 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13271
13272 * fontset.c (Vfont_encoding_charset_alist): New variable.
13273 (syms_of_fontset): DEFVAR it.
13274 (reorder_font_vector, fontset_find_font): Optimize for the case of
13275 no need of reordering.
13276 (face_for_char): Map the charset property by
13277 Vfont_encoding_charset_alist.
13278
132792008-02-01 Jason Rumney <jasonr@gnu.org>
13280
13281 * w32font.c (logfonts_match): Don't check adstyle here.
13282 (font_matches_spec): Check here against physical font instead.
13283 (add_font_entity_to_list): Avoid some substitutions.
13284
13285 * font.c (font_parse_fcname): Default weight and slant to normal.
13286 (font_score): Prefer normal fonts if weight or slant unspecified.
13287 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13288 match freetype scores.
13289
132902008-02-01 Jason Rumney <jasonr@gnu.org>
13291
13292 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13293 font, as it may have been deleted.
13294 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13295 most common hyphenless variation.
13296 (logfonts_match): Check generic family.
13297 (font_matches_spec): Don't check generic family here.
13298 (fill_in_logfont): Set generic family based on adstyle.
13299
13300 * w32font.h (w32font_get_cache): Update declaration.
13301
133022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13303
13304 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13305
13306 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13307 If none of the new drivers are available, call font_update_drivers
13308 with the old drivers.
13309
13310 * w32font.c (w32font_get_cache): Adjust the argument type.
13311
13312 * xfont.c (xfont_get_cache): Adjust the argument type.
13313
13314 * font.h (struct font_driver): Change argument type of get_cache.
13315
13316 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13317
13318 * font.c (Ffont_get): Fix arguments to Fassoc.
13319 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13320 (font_clear_cache): New function.
13321 (font_list_entities, font_matching_entity): Use font_get_cache.
13322 (font_update_drivers): Call font_clear_cache when finishing a driver.
13323
13324 * fontset.c (fontset_find_font): Fix previous change.
13325
133262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13327
13328 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13329 dpyinfo->font_table.
13330 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13331 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13332
13333 * font.c (font_at): Handle the case that the arg C is negative.
13334 Handle the unibyte case.
13335 (Ffont_at): Call font_at with the arg C -1.
13336
13337 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13338 the position here, and call font_at with the arg C -1.
13339 Don't check the range of the existing composition at the point.
13340
133412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13342
13343 * fontset.c (fontset_add): New args charset_id and family.
13344 Change caller.
13345 (load_font_get_repertory, fontset_find_font): Assume that
13346 font_spec is always a font-spec object.
13347 (Fset_fontset_font): Always store a font-spec object in a fontset.
13348
13349 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13350 instead of get_property_and_range.
13351
133522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13353
13354 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13355 (xftfont_open): Don't keep locking face.
13356 (xftfont_close): Don't unlock face.
13357 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13358
13359 * fontset.c (fontset_find_font): Don't prefer a font of
13360 supplementary charset.
13361
133622008-02-01 Kenichi Handa <handa@m17n.org>
13363
13364 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13365 script, langsys_tag to langsys, new member script.
13366 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13367 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13368 listing to the script specified in that property. Fix arg to
13369 OTF_check_features.
13370
133712008-02-01 Jason Rumney <jasonr@gnu.org>
13372
13373 * w32font.h: New file.
13374
13375 * w32font.c: Include it.
13376 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13377 (w32font_open): Set owning_frame.
13378 (w32font_text_extents): Use owning_frame.
13379 (struct font_callback_data): Add opentype_only field.
13380 (add_font_entity_to_list): Use it to filter fonts.
13381 Don't check against full name.
13382 (w32font_list_internal): New function.
13383 (w32font_list): Use it.
13384 (w32font_match_internal): New function.
13385 (w32font_match): Use it.
13386 (w32font_open_internal): New function.
13387 (w32font_open): Use it.
13388 (w32font_get_cache, w32font_close, w32font_has_char)
13389 (w32font_encode_char, w32font_text_extents, w32font_draw):
13390 Make non-static.
13391
13392 * makefile.w32-in (w32font.o): Depend on w32font.h.
13393
133942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13395
13396 * charset.c (Fdefine_charset_internal): Record a supplementary
13397 charset at the tail of Vcharset_order_list.
13398
13399 * font.c (Ffont_shape_text): Fix the return value.
13400
13401 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13402
13403 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13404
134052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13406
13407 * ftfont.c (struct OpenTypeSpec): New struct.
13408 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13409 (ftfont_get_open_type_spec): New function.
13410 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13411
13412 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13413
134142008-02-01 Jason Rumney <jasonr@gnu.org>
13415
13416 * w32font.c (add_font_entity_to_list): Compare only the beginning
13417 of full name.
13418
134192008-02-01 Kenichi Handa <handa@m17n.org>
13420
13421 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13422 Never return HANDLED_RECOMPUTE_PROPS.
13423
134242008-02-01 Kenichi Handa <handa@m17n.org>
13425
13426 * font.c (font_gstring_produce): Delete it.
13427
13428 * composite.h (COMPOSITION_METHOD):
13429 Handle COMPOSITION_WITH_GLYPH_STRING.
13430
134312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13432
13433 * xfont.c (Qx): Delete.
13434 (syms_of_xfont): Don't initialize Qx.
13435
13436 * composite.h (enum composition_method):
13437 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13438
134392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13440
13441 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13442 (choose_face_font): Accept new form of font-spec.
13443
13444 * frame.h (font_driver_list): Declare it unconditionally.
13445 (struct frame): Define members font_driver_list and font_data_list
13446 unconditionally.
13447
13448 * fontset.c: Include "font.h" unconditionally.
13449 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13450 (Fset_fontset_font): Accept a font-spec object.
13451
13452 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13453 PIXEL_SIZE part a wild card.
13454
13455 * dispextern.h (struct glyph_string): Define members clip and
13456 num_clips unconditionally.
13457 (struct face): Define members font_info and extra unconditionally.
13458
13459 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13460 ftfont_info only when HAVE_LIBOTF is defined.
13461
134622008-02-01 Andreas Schwab <schwab@suse.de>
13463
13464 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13465 and end.
13466
134672008-02-01 Jason Rumney <jasonr@gnu.org>
13468
13469 * w32font.c (w32font_driver): Add new fields.
13470
134712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13472
13473 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13474 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13475 (LIBES): Add @M17N_FLT_CFLAGS@.
13476
13477 * composite.c (compose_text): Don't treat the new style
13478 composition specially.
13479
13480 * emacs.c (main): Call syms_of_font unconditionally.
13481
13482 * font.h (FONT_ENTITY_NOT_LOADABLE)
13483 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13484 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13485 (struct font_driver): New member shape.
13486 (font_registry_charsets): Extern it.
13487 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13488 (font_otf_capability, font_drive_otf): Delete their externs.
13489
13490 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13491 (font_charset_alist, font_registry_charsets): Move from xfont.c
13492 and rename.
13493 (font_prop_validate_otf): New function.
13494 (font_property_table): Register it for QCotf.
13495 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13496 (font_drive_otf): Delete.
13497 (font_prepare_composition): New arg F. Adjust for the change of
13498 lispy gstring.
13499 (font_find_for_lface): New arg C.
13500 (font_load_for_face): Adjust for the change of font_find_for_lface.
13501 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13502 lispy gstring.
13503 (Ffont_shape_text): New function.
13504 (Fopen_font): If the font size is not given, use 12-pixel.
13505 (Ffont_at): New arg STRING.
13506 (syms_of_font): Initalize font_charset_alist.
13507 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13508 conditionally.
13509
13510 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13511 fonts of the same font-spec. Change the format of RFONT-DEF.
13512 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13513 Adjust for the change of RFONT-DEF.
13514 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13515
13516 * ftfont.h: New file.
13517
13518 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13519 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13520 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13521 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13522 font_otf_capability and font_drive_otf, set ftfont_shape.
13523 (ftfont_list): Adjust for the change of :otf property value.
13524 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13525 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13526 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13527 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13528 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13529 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13530
13531 * w32term.c (x_draw_composite_glyph_string_foreground):
13532 Adjust for the change of lispy gstring.
13533
13534 * xdisp.c (handle_composition_prop): Adjust for the change of
13535 lispy gstring. Call a function for auto-composition with the
13536 third arg it->window.
13537 (fill_composite_glyph_string): Adjust for the change of lispy string.
13538 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13539
13540 * xfaces.c (set_font_frame_param): Adjust for the change of
13541 font_find_for_lface.
13542
13543 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13544 (xfont_registry_charsets): Likewise. Change caller.
13545 (syms_of_xfont): Don't handle x_font_charset_alist.
13546
13547 * xftfont.c: Include "ftfont.h".
13548 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13549 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13550 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13551 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13552 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13553 Set xftfont_driver.shape to xftfont_shape.
13554
13555 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13556 the change of lispy gstring.
13557
135582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13559
13560 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13561
135622008-02-01 Jason Rumney <jasonr@gnu.org>
13563
13564 * w32font.c (w32font_draw): Fill background manually.
13565
135662008-02-01 Jason Rumney <jasonr@gnu.org>
13567
13568 * font.c (Qfontp): Remove unused symbol.
13569 (QCantialias): New symbol.
13570 (syms_of_font): Define it.
13571 (font_property_table): Set a validator for QCantialias.
13572
13573 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13574 Define if not already.
13575 (QCfamily): Share with xfaces.c.
13576 (Qstandard, Qsubpixel, Qnatural): New symbols.
13577 (syms_of_w32font): Define them. Don't define QCfamily here.
13578 (w32_antialias_type, lispy_antialias_type): New functions.
13579 (w32_enumfont_pattern_entity): New arg requested_font.
13580 Set antialias parameter if non-default was requested.
13581 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13582
135832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13584
13585 * lread.c (read1): Undo the previous change.
13586
135872008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13588
13589 * frame.c (Fdelete_frame): Call font_update_drivers only when
13590 USE_FONT_BACKEND is defined.
13591
135922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13593
13594 * font.h (struct font_bitmap): New member bits_per_pixel.
13595 (struct font_driver): New members start_for_frame and end_for_frame.
13596 (struct font_data_list): New struct.
13597 (font_put_frame_data, font_get_frame_data): Extern them.
13598
13599 * frame.h (struct frame): New member font_data_list.
13600
13601 * font.c (font_update_drivers): Call driver->start_for_frame and
13602 driver->end_for_frame at proper timings.
13603 (font_put_frame_data, font_get_frame_data): New functions.
13604 (Ffont_spec): Add usage in the docstring.
13605
13606 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13607 (Fdelete_frame): Call font_update_drivers.
13608
13609 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13610 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13611 (xftfont_get_xft_draw): New function.
13612 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13613 (xftfont_end_for_frame): New function.
13614 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13615
13616 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13617 Change argument. Cache GCs in the per-frame data.
13618 (struct ftxfont_frame_data): New struct.
13619 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13620 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13621 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13622 (ftxfont_end_for_frame): New function.
13623 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13624
13625 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13626
136272008-02-01 Kenichi Handa <handa@m17n.org>
13628
13629 * xselect.c (Vselection_coding_system)
13630 (Vnext_selection_coding_system): Delete them.
13631 (syms_of_xselect): Don't declare selection-coding-system and
13632 next-selection-coding-system. They are declared in select.el.
13633
136342008-02-01 Jason Rumney <jasonr@gnu.org>
13635
13636 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
13637
13638 * w32fns.c: Include imm.h.
13639 (get_composition_string_fn, get_ime_context_fn): New optional
13640 system functions.
13641 (globals_of_w32fns): Load them from imm32.dll.
13642 (ignore_ime_char): New flag.
13643 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
13644 WM_IME_ENDCOMPOSITION messages.
13645
13646 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
13647 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
13648
136492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13650
13651 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
13652 (READCHAR_REPORT_MULTIBYTE): New macro.
13653 (readchar): New 2nd arg MULTIBYTE.
13654 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
13655 Make symbol's name multibyte according to the multibyteness of the
13656 source.
13657
136582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13659
13660 * xfaces.c (face_for_overlay_string): Call lookup_face with
13661 correct arguments (fix of synching with the trunk).
13662
136632008-02-01 Kenichi Handa <handa@m17n.org>
13664
13665 * font.c (font_prop_validate_symbol, font_prop_validate_style)
13666 (font_prop_validate_non_neg, font_prop_validate_spacing):
13667 Delete argument prop_index.
13668 (font_property_table): Change arguments to validater. Change Callers.
13669 (font_lispy_object): Delete.
13670 (font_at): Use font_find_object instead fo font_lispy_object.
13671
136722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13673
13674 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
13675 and file names.
13676
136772008-02-01 Jason Rumney <jasonr@gnu.org>
13678
13679 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
13680 (font_matches_spec): Remove debug output.
13681 (add_font_entity_to_list): Avoid using substituted fonts.
13682
136832008-02-01 Jason Rumney <jasonr@gnu.org>
13684
13685 * doc.c (Fsnarf_documentation):
13686 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
13687
136882008-02-01 Miles Bader <miles@gnu.org>
13689
13690 * dispextern.h (struct glyph_row): Only define "clip" field if
13691 HAVE_WINDOW_SYSTEM is defined.
13692
136932008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13694
13695 Fix up multi-tty merge.
13696
13697 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
13698 and indentation.
13699
13700 * xfaces.c (free_realized_face, clear_face_gcs):
13701 Include font_done_for_face in the input_blocked section, just in case.
13702
13703 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
13704 (get_char_face_and_encoding): Undo last change and remove the *other*
13705 duplicate definition (i.e. keep the one that's better scoped and that
13706 includes code for the font-backend).
13707
13708 * terminal.c (create_terminal): Default keyboard_coding to
13709 `no-conversion' and terminal_coding to `undecided'.
13710
13711 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
13712
13713 * fontset.c (free_realized_fontsets): Check that the table entry does
13714 contain a fontset before trying to compare it to `base'.
13715
13716 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
13717 syms_of_charset, and syms_of_coding earlier because init_window_once
13718 now needs Vcoding_system_hash_table to be setup.
13719
13720 * coding.h (default_buffer_file_coding): Remove.
13721
13722 * coding.c (default_buffer_file_coding): Remove.
13723 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
13724 than ->symbol, and use the terminal-local coding system.
13725 (syms_of_coding): Don't setup the coding-systems that are not
13726 terminal-local.
13727 (Fdefine_coding_system_internal): Use XCAR/XCDR.
13728
13729 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
13730 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
13731
13732 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
13733 in chartab.c and were re-added here by mistake.
13734 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
13735
13736 * doc.c (Fsnarf_documentation):
13737 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
13738 src to etc.
13739
13740 * ChangeLog.10: Add mistakenly removed entry.
13741
137422008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
13743
13744 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
13745
137462008-02-01 Miles Bader <miles@gnu.org>
13747
13748 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
13749 Add extra args to FACE_FOR_CHAR.
13750
137512008-02-01 Kenichi Handa <handa@m17n.org>
13752
13753 * keymap.c (where_is_internal_1): If key is a cons, store the copy
13754 in sequence.
13755
13756 * chartab.c (map_sub_char_table, map_char_table): If the range
13757 contains just one character, call the function with that character
13758 even if the depth is not 3.
13759
137602008-02-01 Jason Rumney <jasonr@gnu.org>
13761
13762 * w32font.c (w32font_text_extents): Calculate metrics for the
13763 whole string.
13764
137652008-02-01 Jason Rumney <jasonr@gnu.org>
13766
13767 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
13768
137692008-02-01 Jason Rumney <jasonr@gnu.org>
13770
13771 * w32term.c (x_set_glyph_string_clipping): Use
13772 get_glyph_string_clip_rects.
13773 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13774 Adjust for the change of struct glyph_string.
13775
13776 * w32font.c (w32font_draw): Do clipping here.
13777
137782008-02-01 Kenichi Handa <handa@m17n.org>
13779
13780 * xftfont.c (xftfont_draw): Adjust for the change of struct
13781 glyph_string.
13782
13783 * xterm.c (x_set_glyph_string_clipping): Use
13784 get_glyph_string_clip_rects.
13785 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
13786 Adjust for the change of struct glyph_string.
13787
13788 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
13789 the resulting clip(s}.
13790 (expose_overlaps): Add arg r. Change callers. Set it to
13791 row->clip temporarily.
13792 (expose_window): Redraw rows overlapping the exposed area.
13793
13794 * dispextern.h (struct glyph_row): New member clip.
13795 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13796 clip_height, new member clip, and num_clips.
13797
137982008-02-01 Kenichi Handa <handa@m17n.org>
13799
13800 * data.c (Fchar_or_string_p): Fix docstring.
13801
138022008-02-01 Kenichi Handa <handa@m17n.org>
13803
13804 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13805 create a temporary XftDraw object.
13806
138072008-02-01 Kenichi Handa <handa@m17n.org>
13808
13809 * font.c (Ffontp): Fix docstring.
13810
13811 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13812 strong evidence of ISO-2022.
13813
138142008-02-01 Kenichi Handa <handa@m17n.org>
13815
13816 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13817 SYNTAX_ENTRY_FOLLOW_PARENT.
13818
138192008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13820
13821 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13822 its type.
13823 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13824 Update to the new type of weak_hash_tables and next_weak.
13825
13826 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13827 a plain C pointer to Lisp_Hash_Table.
13828
13829 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13830 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13831 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13832 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13833 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13834 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13835 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13836 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13837 (GC_EQ): Remove since they've been identical to their non-GC_
13838 alter-egos ever since the markbit was eradicated.
13839
13840 * alloc.c:
13841 * buffer.c:
13842 * buffer.h:
13843 * data.c:
13844 * fileio.c:
13845 * filelock.c:
13846 * fns.c:
13847 * frame.h:
13848 * lisp.h:
13849 * macterm.c:
13850 * print.c:
13851 * process.c:
13852 * w32fns.c:
13853 * w32menu.c:
13854 * w32term.c:
13855 * xfns.c:
13856 * xmenu.c:
13857 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13858
138592008-02-01 Kenichi Handa <handa@m17n.org>
13860
13861 * chartab.c (map_sub_char_table): Make it work for the top-level
13862 char-table. Fix handling of parent char-table.
13863 (map_char_table): Adjust for the above change.
13864
138652008-02-01 Jason Rumney <jasonr@gnu.org>
13866
13867 * w32font.c (Qgdi): Rename from Qw32.
13868
138692008-02-01 Jason Rumney <jasonr@gnu.org>
13870
13871 * w32bdf.c (get_quoted_string): Make function static.
13872
138732008-02-01 Kenichi Handa <handa@m17n.org>
13874
13875 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13876 bigger ascent and descent than those of the font, use them as
13877 font's ascent and descent.
13878
138792008-02-01 Kenichi Handa <handa@m17n.org>
13880
13881 * Makefile.in (${lispsource}international/charprop.el): Move this
13882 target within "#ifdef HAVE_UNIDATA" and "#endif".
13883
138842008-02-01 Kenichi Handa <handa@m17n.org>
13885
13886 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13887 (shortlisp): Add ../lisp/language/tai-viet.el.
13888
138892008-02-01 Ulrich Mueller <ulm@gentoo.org>
13890
13891 * Makefile.in (${lispsource}international/charprop.el): Depend on
13892 temacs${EXEEXT}.
13893
138942008-02-01 Jason Rumney <jasonr@gnu.org>
13895
13896 * w32font.c (w32font_close): Delete the GDI font object.
13897
13898 * w32menu.c: Include character.h.
13899
13900 * w32proc.c: Likewise.
13901
13902 * w32select.c: Likewise.
13903
13904 * makefile.w32-in (w32proc.o): Depend on character.h.
13905
139062008-02-01 Jason Rumney <jasonr@gnu.org>
13907
13908 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13909
13910 * w32menu.c (syms_of_w32menu): Likewise.
13911
13912 * w32proc.c (syms_of_ntproc): Likewise.
13913
13914 * w32select.c (syms_of_w32select): Likewise.
13915
13916 * w32term.c (syms_of_w32term): Likewise.
13917
139182008-02-01 Jason Rumney <jasonr@gnu.org>
13919
13920 * w32font.c (w32font_draw): Delete brush after using it.
13921
139222008-02-01 Jason Rumney <jasonr@gnu.org>
13923
13924 * w32font.c (w32font_open): Don't set font_idx.
13925 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13926 to font settings.
13927 (w32font_draw): Fill background explicitly.
13928
139292008-02-01 Jason Rumney <jasonr@gnu.org>
13930
13931 * w32term.c (w32_initialize): Don't call w32font_initialize.
13932
13933 * w32font.c (w32font_info): Remove subranges.
13934 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13935 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13936 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13937 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13938 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13939 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13940 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13941 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13942 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13943 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13944 New symbols.
13945 (font_callback_data): New struct.
13946 (w32font_list, w32font_match): Use it.
13947 (w32font_open): Don't populate subranges.
13948 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13949 (w32font_encode_char): Always return unicode code-point as-is.
13950 (w32font_text_extents): Supply a transformation matrix to
13951 GetGlyphOutline. Never look up by glyph index. Avoid looping
13952 twice. Use unicode version of GetTexExtentPoint32 instead of
13953 glyph index version.
13954 (set_fonts_frame): Remove.
13955 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13956 set frame parameter. Use backward compatible fake foundries.
13957 Save generic family in extra slot under QCfamily. Make width slot
13958 constant. Save QCspacing value. Save list of scripts instead of
13959 binary subranges.
13960 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13961 (add_font_entity_to_list): Use font_callback_data struct. Filter
13962 unwanted fonts.
13963 (add_one_font_entity_to_list): Use font_callback_data struct.
13964 (w32_registry): Default to iso10646_1.
13965 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13966 string font registries. Don't fill in font name if it is a generic
13967 family name, fill family instead. Use spacing, family and script
13968 extra info to fill pitch, family and charset fields.
13969 (list_all_matching_fonts): Use font_callback_data struct.
13970 (unicode_range_for_char): Remove.
13971 (font_supported_scripts): New function.
13972 (w32font_initialize): Remove.
13973 (syms_of_w32font): Update which symbols are defined.
13974
139752008-02-01 Jason Rumney <jasonr@gnu.org>
13976
13977 * font.c (font_pixel_size): Reverse assq_no_quit args.
13978
13979 * w32term.h (FONT_WIDTH): Report max width, not average.
13980 (FONT_MAX_WIDTH): Remove.
13981 (FONT_AVG_WIDTH): New macro.
13982
13983 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13984 redefinition of FONT_WIDTH.
13985
13986 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13987 (w32_cache_char_metrics): Use FONT_WIDTH.
13988
13989 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13990
139912008-02-01 Jason Rumney <jasonr@gnu.org>
13992
13993 * w32font.c (w32font_open): Make lfHeight negative.
13994
13995 * w32fns.c (x_default_font_parameter): Use new style font name.
13996 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13997
139982008-02-01 Jason Rumney <jasonr@gnu.org>
13999
14000 * w32font.c (QCsubranges): New symbol.
14001 (w32font_open, w32font_has_char): Get subranges from subproperty
14002 of extra.
14003 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14004 (syms_of_w32font): Define :subranges symbol.
14005
14006 * font.c (font_put_extra): Expose externally.
14007
14008 * font.h (font_put_extra): Move declaration from font.c.
14009
14010 * font.c (Ffont_get): Use font driver to determine otf capability.
14011 (adjust_anchor): Check if driver defines anchor_point before using.
14012
14013 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14014 (w32font_draw): Use options.
14015 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14016 Fix detection of truetype fonts.
14017 (registry_to_w32_charset): Handle charsets other than iso8859-1
14018 expressed as lisp symbols.
14019 (w32_registry): Express charset as lisp symbol.
14020 (fill_in_logfont): Reverse pixel and point height logic.
14021 Don't set width here. Set quality to default.
14022
14023 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14024 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14025
14026 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14027 Remove redundant loop and allocation.
14028
14029 * makefile.w32-in (font.o, w32font.o): New objects.
14030 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14031 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14032
14033 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14034 STORE_XCHARB a valid l-value.
14035
14036 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14037 calculations for non-Truetype fonts.
14038 (x_draw_glyph_string): Sync with xterm.c.
14039 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14040 Remove redundant code.
14041 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14042
14043 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14044 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14045
14046 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14047 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14048
14049 * w32font.c: New file for w32 font backend.
14050
140512008-02-01 Kenichi Handa <handa@m17n.org>
14052
14053 * term.c: Don't include "buffer.h" twice.
14054
140552008-02-01 Kenichi Handa <handa@m17n.org>
14056
14057 * character.c (Funibyte_string): New function.
14058 (syms_of_character): Defsubr it.
14059
140602008-02-01 Jason Rumney <jasonr@gnu.org>
14061
14062 * w32term.c [USE_FONT_BACKEND]:
14063 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14064 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14065 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14066 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14067 (x_free_frame_resources): Sync with xterm.c.
14068
140692008-02-01 Andreas Schwab <schwab@suse.de>
14070
14071 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14072 char-table size.
14073
140742008-02-01 Kenichi Handa <handa@m17n.org>
14075
14076 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14077
140782008-02-01 Kenichi Handa <handa@m17n.org>
14079
14080 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14081 font_otf_gpos, add font_drive_otf.
14082
14083 * fontset.c (fontset_find_font): Pay attention to font size
14084 specified for a font.
14085 (reorder_font_vector): Check contents of font_def.
14086
14087 * font.c (struct otf_list): Delete it.
14088 (otf_list): Make it a lisp variable.
14089 (otf_open): Use lispy otf_list.
14090 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14091 (check_otf_features): New function.
14092 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14093 New functions.
14094 (font_drive_otf): New function merging font_otf_gsub and
14095 font_otf_gpos.
14096 (font_open_for_lface): New arg spec. Change argument order.
14097 (font_load_for_face): Adjust for the change of font_open_for_lface.
14098 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14099 Ffont_otf_gpos.
14100 (syms_of_font): Staticpro otf_list. Delete defsubr of
14101 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14102
14103 * xfaces.c (set_font_frame_param): Adjust for the change of
14104 font_open_for_lface.
14105
14106 * font.h (font_open_for_lface): Adjust prototype.
14107 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14108 member otf_drive.
14109 (font_otf_gsub, font_otf_gpos): Delete externs.
14110 (font_drive_otf): Extern it.
14111
141122008-02-01 Kenichi Handa <handa@m17n.org>
14113
14114 * font.c (font_at): If the window W is not on a window system,
14115 return Qnil.
14116
14117 * coding.c (produce_chars, encode_coding): Don't call
14118 insert_from_gap if no characters to produce.
14119
141202008-02-01 Kenichi Handa <handa@m17n.org>
14121
14122 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14123 Fclear_face_cache.
14124
14125 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14126
141272008-02-01 Miles Bader <miles@gnu.org>
14128
14129 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14130 Parse "--disable-font-backend" option.
14131 (standard_args): Add "--disable-font-backend" option.
14132
141332008-02-01 Kenichi Handa <handa@m17n.org>
14134
14135 * fontset.c (fontset_find_font): New function.
14136 (fontset_font): Use fontset_find_font.
14137 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14138 Register the specified font for all Latin characters.
14139 (new_fontset_from_font): Register the specified font for all Latin
14140 characters.
14141 (dump_fontset): For a realized fontset, include the base fontset
14142 name in the returned vector.
14143
141442008-02-01 Kenichi Handa <handa@m17n.org>
14145
14146 * character.h (CHAR_STRING): Cast C to unsigned on calling
14147 char_string.
14148
14149 * character.c (char_string): Type of arg C changed to unsigned.
14150 Signal an error if C is an invalid character code.
14151
14152 * editfns.c (general_insert_function, Fchar_to_string):
14153 Use CHARACTERP, not INTEGERP.
14154
141552008-02-01 Kenichi Handa <handa@m17n.org>
14156
14157 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14158 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14159
14160 * regex.c (analyse_first): Fix for multibyte characters in "case
14161 charset:" and "case categoryspec:".
14162
141632008-02-01 Andreas Schwab <schwab@suse.de>
14164
14165 * Makefile.in (LIBES): Move standard libraries to the end.
14166
141672008-02-01 Kenichi Handa <handa@m17n.org>
14168
14169 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14170 nonzero, don't shrink the buffer nextb.
14171
14172 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14173
14174 * coding.c (coding_alloc_by_making_gap): New arg offset.
14175 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14176 offset.
14177 (decode_coding_iso_2022): Update coding->safe_charsets.
14178 (decode_coding_gap): Temporarily set
14179 current_buffer->text->inhibit_shrinking to 1.
14180
141812008-02-01 Kenichi Handa <handa@m17n.org>
14182
14183 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14184 indexing into elements of s->cmp and s->char2b.
14185
141862008-02-01 Juanma Barranquero <lekktu@gmail.com>
14187
14188 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14189
141902008-02-01 Kenichi Handa <handa@m17n.org>
14191
14192 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14193 target_multibyte instead of multibyte.
14194 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14195 (bcmp_translate): Change the argument name from multibyte to
14196 target_multibyte.
14197
141982008-02-01 Kenichi Handa <handa@m17n.org>
14199
14200 These changes are to compile a regexp into a pattern that can be
14201 used both for multibyte and unibyte targets.
14202
14203 * Makefile.in (search.o): Depend on charset.h.
14204
14205 * character.c (multibyte_char_to_unibyte_safe): New function.
14206
14207 * search.c: Include "charset.h".
14208 (compile_pattern_1): Delete argument multibyte. Don't set
14209 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14210 (compile_pattern): Don't compare cp->buf.target_multibyte.
14211 Compare cp->buf.charset_unibyte.
14212 (compile_pattern): Set cp->buf.target_multibyte.
14213
14214 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14215
14216 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14217
14218 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14219 multibyte. Change callers.
14220 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14221 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14222 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14223 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14224 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14225 (regex_compile): Make the compiled pattern usable both for
14226 multibyte and unibyte targets.
14227 (analyse_first): Make the fastmap usable both for multibyte and
14228 unibyte targets.
14229 (TRANSLATE_VIA_MULTIBYTE): Delete.
14230 (re_match_2_internal): Pay attention to the case that the
14231 multibyteness of bufp and target may be different.
14232
142332008-02-01 Kenichi Handa <handa@m17n.org>
14234
14235 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14236 empty box occupy at least one column width.
14237
142382008-02-01 Miles Bader <miles@gnu.org>
14239
14240 * Makefile.in: Remove redundant HAVE_XFT clause.
14241
142422008-02-01 Kenichi Handa <handa@m17n.org>
14243
14244 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14245
142462008-02-01 Kenichi Handa <handa@m17n.org>
14247
14248 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14249 being nil.
14250
142512008-02-01 Kenichi Handa <handa@m17n.org>
14252
14253 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14254
142552008-02-01 Kenichi Handa <handa@m17n.org>
14256
14257 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14258
142592008-02-01 Kenichi Handa <handa@m17n.org>
14260
14261 * search.c (simple_search): Fix previous change.
14262
142632008-02-01 Kenichi Handa <handa@m17n.org>
14264
14265 * xftfont.c (ftfont_font_format): Extern declaration.
14266
14267 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14268
14269 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14270 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14271
14272 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14273 (ftfont_font_format): Fix previous change.
14274
14275 * font.h (Ffont_xlfd_name): EXFUN it.
14276
14277 * font.c (font_parse_xlfd): Fix the array size of `f'.
14278 (register_font_driver): Use EQ to compare driver->type.
14279
14280 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14281 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14282 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14283
142842008-02-01 Kenichi Handa <handa@m17n.org>
14285
14286 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14287 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14288
142892008-02-01 Kenichi Handa <handa@m17n.org>
14290
14291 * xfont.c (xfont_open): Set font->format.
14292
14293 * xftfont.c (xftfont_open): Set font->format.
14294
14295 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14296 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14297 (ftfont_open): Set font->format.
14298 (ftfont_font_format): New function.
14299
14300 * font.h (struct font): New member format.
14301
14302 * font.c (Qopentype): New variable.
14303 (syms_of_font): Defsym it.
14304 (Fquery_font): Change the format of the last element of the return
14305 value.
14306
143072008-02-01 Kenichi Handa <handa@m17n.org>
14308
14309 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14310 last resort.
14311
143122008-02-01 Kenichi Handa <handa@m17n.org>
14313
14314 * coding.c (detect_coding_charset): Fix detection of multi-byte
14315 charset.
14316
143172008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14318
14319 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14320
143212008-02-01 Kenichi Handa <handa@m17n.org>
14322
14323 * xdisp.c (get_next_display_element): Set it->face_id for the
14324 first component of a composition.
14325 (x_produce_glyphs): Check if the font is changed or not for composition.
14326
143272008-02-01 Kenichi Handa <handa@m17n.org>
14328
14329 * fontset.c (Qlatin): New variable.
14330 (syms_of_fontset): Define it as a lisp symbol.
14331 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14332
143332008-02-01 Kenichi Handa <handa@m17n.org>
14334
14335 * font.c (font_unparse_fcname): Pay attention to the case that
14336 some of font property is a null string.
14337
143382008-02-01 Kenichi Handa <handa@m17n.org>
14339
14340 * term.c: Include "composite.h".
14341 (encode_terminal_code): Output all components of composition.
14342 Check the size of encode_terminal_src.
14343 (produce_glyphs): For composition, call produce_composite_glyph.
14344 (append_composite_glyph, produce_composite_glyph): New functions.
14345
14346 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14347 is not found, get font_info from the current ascii face.
14348
143492008-02-01 Kenichi Handa <handa@m17n.org>
14350
14351 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14352 buffer-file-name to Qnil before calling insert_from_buffer.
14353
14354 * font.c (font_unparse_fcname): Pay attention to the case that
14355 foundry is a null string.
14356
143572008-02-01 Kenichi Handa <handa@m17n.org>
14358
14359 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14360
14361 * font.c (Qunicode_sip): New variable.
14362 (syms_of_font): Declare it as a Lisp symbol.
14363
14364 * font.h (Qunicode_sip): Extern it.
14365
143662008-02-01 Kenichi Handa <handa@m17n.org>
14367
14368 * composite.c (get_composition_id): Pay attention to TAB component.
14369
14370 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14371 TAB. Adjust for the change of s->char2b which always points to
14372 the first element of allocated memory.
14373
14374 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14375
14376 * xdisp.c (handle_composition_prop): Set it->c to the first
14377 non-TAB component.
14378 (fill_composite_glyph_string): Change argument.
14379 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14380 (x_produce_glyphs): Fix handling of left/right padding.
14381
143822008-02-01 Kenichi Handa <handa@m17n.org>
14383
14384 * coding.c (detect_coding_system): Fix for handling off
14385 inhibit_iso_escape_detection. Fix for the case that no coding
14386 system is defined for a specific coding category.
14387
143882008-02-01 Kenichi Handa <handa@m17n.org>
14389
14390 * font.c (font_matching_entity): Delete unused local var.
14391
14392 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14393 opening a font.
14394
14395 * fileio.c (Finsert_file_contents): On recovering a file, assume
14396 Unix-like eol.
14397 (choose_write_coding_system): On auto-saving a file, force
14398 Unix-like eol.
14399
14400 * coding.c (setup_coding_system): Fix setting of
14401 coding->common_flags based on eol_type.
14402 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14403 inherit from it.
14404
144052008-02-01 Kenichi Handa <handa@m17n.org>
14406
14407 * alloc.c (NSTATICS): Increas to 0x600.
14408
144092008-02-01 Kenichi Handa <handa@m17n.org>
14410
14411 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14412 (ftfont_list): Don't check :name property.
14413 (ftfont_match): New function.
14414 (ftfont_pattern_entity): If the pattern doesn't contain
14415 FC_SPACING, don't assume FC_MONO.
14416
14417 * font.h (struct font_driver): New member `match'.
14418 (font_update_drivers): Adjust prototype.
14419
14420 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14421 property of FONT.
14422 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14423 them unconditionally.
14424 (font_matching_entity): New function.
14425 (font_open_by_name): Try font_matching_entity if exact match is
14426 not found.
14427 (font_update_drivers): Delete the arg FONT. Return a list of
14428 actually used backends. Don't free faces, font caches here.
14429 Don't store data in frame parameters. Don't call x_set_font.
14430 (Ffont_spec): Store :name property as is.
14431 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14432 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14433 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14434 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14435 Call font->driver->otf_gsub instead of font_otf_gsub.
14436
14437 * frame.c (x_set_font_backend): Do more works that were done in
14438 font_update_drivers before.
14439
14440 * xfont.c (xfont_match): New function.
14441 (xfont_driver): Set xfont_driver.match to xfont_match.
14442 (xfont_draw): Set font in GC if necessary.
14443
14444 * ftxfont.c (ftxfont_match): New function.
14445 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14446
14447 * xftfont.c (xftfont_match): New function.
14448 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14449
144502008-02-01 Kenichi Handa <handa@m17n.org>
14451
14452 * font.h (struct font): New member scalable.
14453 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14454 (font_otf_gsub): Adjust prototype.
14455
14456 * font.c (font_otf_capability): Fix handling of the default langsys.
14457 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14458 Check the contents of SPEC.
14459 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14460 (check_gstring): New function.
14461 (REPLACEMENT_CHARACTER): New macro.
14462 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14463 glyph codes of GSTRING.
14464 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14465 (font_prepare_composition): Set cmp->glyph_len.
14466 (font_open_entity): Set font->scalable.
14467 (Ffont_get): Handle :otf property.
14468 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14469 functions.
14470 (Fquery_font): Use font->font.full_name.
14471 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14472 Sfont_otf_alternates.
14473
14474 * ftfont.c (ftfont_open): Set font->font.full_name and
14475 font->font.name properly. Fix calculation of font->font.height
14476 and font->min_width.
14477
14478 * ftxfont.c (ftxfont_create_gcs): New function.
14479 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14480 (ftxfont_draw_backgrond): Fix filling region.
14481 (ftxfont_default_fid): New function.
14482 (ftxfont_open): Set xfont->fid to the return value of
14483 ftxfont_default_fid.
14484 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14485 (ftxfont_done_face): Free only GCs that are created by
14486 ftxfont_create_gcs.
14487 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14488
14489 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14490 Clip to src->width, etc (not src->clip_XXX).
14491
14492 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14493 FontBackend frame parameter.
14494
144952008-02-01 Kenichi Handa <handa@m17n.org>
14496
14497 * font.h (struct font_driver_list): New member `on'.
14498 (Fclear_font_cache): EXFUN it.
14499 (font_update_drivers): Extern it.
14500
14501 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14502 (font_list_entities): Check driver_list->on.
14503 (register_font_driver): Initalize `on' member to 0.
14504 (font_update_drivers): New function.
14505 (Fclear_font_cache): Check driver_list->on.
14506
14507 * frame.h (Qfont_backend): Extern it.
14508 (x_set_font_backend): Extern it.
14509
14510 * frame.c (Qfont_backend): New variable.
14511 (frame_parms): New element for font-backend.
14512 (x_set_font_backend): New function.
14513
14514 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14515 FontBackend frame parameter.
14516 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14517 x_set_font_backend.
14518
14519 * xfont.c (xfont_list): Don't try listing by :name property if the
14520 name is not for XLFD.
14521
145222008-02-01 Kenichi Handa <handa@m17n.org>
14523
14524 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14525 (LGLYPH_SET_TO): New macros.
14526 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14527 element of G is vector or not.
14528 (font_at): Extern it.
14529
14530 * font.c: Include window.h.
14531 (font_lispy_object): New function.
14532 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14533 end of valid glyph.
14534 (font_close_object): Fix getting (struct font *).
14535 (font_at): New function.
14536 (Ffont_get): If FONT is a font-object, get entity from it.
14537 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14538 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14539 range check.
14540 (Ffont_at): New function.
14541 (syms_of_font): Defsubr Sfont_at.
14542
14543 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14544 before the entry for Qcomposition.
14545 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14546 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14547 the font in gstring.
14548 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14549 LGLYPH_FORM (g) to detect the end of valid glyph.
14550 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14551 we are composing with gstring.
14552
14553 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14554 Check if adjustment is vector or not.
14555
14556 * Makefile.in (font.o): Make it depends on window.h.
14557
145582008-02-01 Kenichi Handa <handa@m17n.org>
14559
14560 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14561 adjustment is vector or not.
14562
145632008-02-01 Miles Bader <miles@gnu.org>
14564
14565 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14566
145672008-02-01 Kenichi Handa <handa@m17n.org>
14568
14569 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14570 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14571 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14572
14573 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14574 (DEVICE_DELTA): Fix typo.
14575 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14576 LGLYPH format.
14577
14578 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14579 the change of LGLYPH format.
14580
145812008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * ftfont.c (ftfont_list): Fix typo.
14584 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14585
145862008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14587
14588 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14589
14590 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14591 xftface_info is non-NULL.
14592
145932008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14594
14595 * ftfont.c (ftfont_list): Move misplaced #endif.
14596
145972008-02-01 Kenichi Handa <handa@m17n.org>
14598
14599 * ftfont.c (ftfont_list): Pay attention to the case that
14600 FC_CAPABILITY is not defined.
14601
146022008-02-01 Kenichi Handa <handa@m17n.org>
14603
14604 * xftfont.c (xftfont_open): Set charset related members to -1.
14605
14606 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14607 QCname.
14608 (ftfont_open): Set charset related members to -1.
14609
14610 * fontset.c (Votf_script_alist): New variable.
14611 (syms_of_fontset): Initialize it.
14612 (fontset_font): Delete unused variable.
14613
14614 * fontset.h (Votf_script_alist): Extern it.
14615
14616 * font.c (font_find_for_lface): Optimize code.
14617
14618 * font.h (font_close_object, font_merge_old_spec): Extern them.
14619
146202008-02-01 Kenichi Handa <handa@m17n.org>
14621
14622 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14623 (syms_of_font): Initialize them.
14624 (font_pixel_size): Allow float value in dpi.
14625 (font_prop_validate_type): Delete.
14626 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14627 Change caller.
14628 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14629 (font_prop_validate_extra): Delete.
14630 (font_prop_validate_spacing): New function.
14631 (font_property_table): Add elements for all known properties.
14632 (get_font_prop_index): Rename from check_font_prop_name. New
14633 argument FROM. Change caller.
14634 (font_prop_validate): Validate all known properties.
14635 (font_put_extra): Delete argument force. Change caller.
14636 (font_expand_wildcards): Make it static. Fix the way of shrinking
14637 the possible range.
14638 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
14639 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
14640 Change caller.
14641 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
14642 (font_parse_fcname): Delete argument merge. Fix parsing of point
14643 size. Don't validate properties values here. Change caller.
14644 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
14645 (font_open_by_name): Delete unused variable.
14646 (Ffont_spec): Likewise. Validate property values.
14647 (Ffont_match_p): New function.
14648
14649 * font.h (QCscalable): Extern it.
14650 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
14651
14652 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
14653
14654 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
14655 (xfont_list_pattern): New function.
14656 (xfont_list): Use xfont_list_pattern.
14657
146582008-02-01 Kenichi Handa <handa@m17n.org>
14659
14660 * font.h (Flist_fonts): EXFUN it.
14661
146622008-02-01 Jason Rumney <jasonr@gnu.org>
14663
14664 * w32term.c (w32_initialize): Add back smoothing_type and
14665 smoothing_enabled definitions.
14666
146672008-02-01 Kenichi Handa <handa@m17n.org>
14668
14669 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
14670 s->face->font on determining underline position.
14671
146722008-02-01 Kenichi Handa <handa@m17n.org>
14673
14674 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
14675 (font_has_char): Accept font-object too.
14676 (font_find_for_lface): Try at first with a size specified in face.
14677
146782008-02-01 Kenichi Handa <handa@m17n.org>
14679
14680 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
14681 font_open_by_name.
14682
146832008-02-01 Kenichi Handa <handa@m17n.org>
14684
14685 * font.h (QCspacing, QCdpi): Extern them.
14686 (enum font_spacing): New enum.
14687 (FONT_PIXEL_SIZE_QUANTUM): New macro.
14688
14689 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
14690 (QCspacing, QCdpi): New variables.
14691 (syms_of_font): Initialize them.
14692 (font_pixel_size): New function.
14693 (font_put_extra): New function.
14694 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
14695 in FONT_EXTRA.
14696 (font_parse_fcname): Handle enumerated values (e.g. bold).
14697 Fix handling font size. Add QCname property that contains only
14698 unknown properties.
14699 (font_score): Change argument. Change caller. Pay attention to
14700 FONT_PIXEL_SIZE_QUANTUM.
14701 (font_sort_entites, font_list_entities, font_find_for_lface)
14702 (font_open_for_lface, font_open_by_name): Fix handling of font size.
14703 (Ffont_spec): Add QCname property that contains only unknown properties.
14704
14705 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
14706 include weight in listing pattern, instead check weight of each
14707 listed font. Don't include scalable in pattern. Pay attention to
14708 FONT_PIXEL_SIZE_QUANTUM.
14709
147102008-02-01 Kenichi Handa <handa@m17n.org>
14711
14712 * font.c (font_parse_fcname): Fix parsing of point-size.
14713 (font_unparse_fcname): Produce symbolic names for style properties.
14714 (font_list_entities): Handle float size correctly.
14715 (font_open_by_name): Prefer `normal' property values if the name
14716 doesn't specify them.
14717
14718 * fontset.c (Finternal_char_font): Use font_get_name, not
14719 Ffont_xlfd_name.
14720
14721 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
14722 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
14723 pattern. Don't force scalable.
14724
14725 * xftfont.c (xftfont_open): For generating a name, start from
14726 96-byte buffer.
14727
147282008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14729
14730 * frame.h (x_new_fontset2): Fix prototype.
14731
147322008-02-01 Kenichi Handa <handa@m17n.org>
14733
14734 * font.h (struct font_driver): Delete member parse_name.
14735 (font_match_p, font_get_spec, font_parse_fcname)
14736 (font_unparse_fcname): Extern them.
14737 (font_get_name): Adjust prototype.
14738
14739 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
14740 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
14741 (font_expand_wildcards): Fix handling ENCODING field. Avoid
14742 unnecessary checks for weight, slant, and swidth.
14743 (font_parse_fcname): New function.
14744 (font_unparse_fcname): New function.
14745 (font_parse_name): New function.
14746 (font_match_p): New function.
14747 (font_get_name): Change return value to Lisp string.
14748 (font_get_spec): New function.
14749 (Qunspecified, Qignore_defface): Don't extern them.
14750 (font_find_for_lface): Assume that LFACE is fully specified.
14751 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
14752 object, use it for FACE.
14753 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
14754 driver->parse_name.
14755 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
14756
14757 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
14758 prototype.
14759
14760 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
14761 argument F. Don't call Fnew_fontset. Instead, directly call
14762 make_fontset.
14763
14764 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
14765
14766 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
14767 of x_new_fontset2.
14768
14769 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
14770 (Qsans__serif): New variables.
14771 (ftfont_generic_family_list): New variable.
14772 (syms_of_ftfont): Initialize the above variables.
14773 (ftfont_pattern_entity): Delete argument NAME.
14774 (ftfont_list_generic_family): New function.
14775 (ftfont_parse_name): Delete this function.
14776 (ftfont_list): Try generic family only when FcFontList found no font.
14777 (ftfont_list_family): Fix args to FcObjectSetBuild.
14778
14779 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
14780 object in attrs[LFACE_FONT_INDEX].
14781 (set_lface_from_font_name): Cancel all changes for font-backend.
14782 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
14783 function.
14784 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
14785 font object in QCfont attribute.
14786 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
14787 (realize_default_face) [USE_FONT_BACKEND]: Call
14788 set_lface_from_font_and_fontset.
14789
14790 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
14791 "fixed", and signal error here if no suitable font was found.
14792
14793 * xfont.c (xfont_parse_name): Delete this function.
14794
14795 * xftfont.c (xftfont_open): Change coding style of error
14796 handling. Generate fontconfig's fontname pattern.
14797
14798 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14799 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14800
14801 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14802 Both args FONTSET and FONT_OBJECT must be existing ones.
14803
148042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14805
14806 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14807
148082008-02-01 Kenichi Handa <handa@m17n.org>
14809
14810 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14811
14812 * font.h (struct font): Fix typo.
14813
14814 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14815 XLFD_XXX_INDEX.
14816 (enum xlfd_field_mask): New enum.
14817 (intern_font_field): Changed argument. Change caller. If digits
14818 are followed by non-digits, return a symbol.
14819 (font_expand_wildcards): New function.
14820 (font_parse_xlfd): Fix wildcard handling.
14821 (Ffont_spec): If :name is specified, reflect the info in the other
14822 properties.
14823
14824 * ftfont.c (ftfont_pattern_entity): Fix typo.
14825 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14826 locale.
14827
148282008-02-01 Kenichi Handa <handa@m17n.org>
14829
14830 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14831
14832 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14833 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14834 registry doesn't specify encoding part.
14835 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14836 (font_open_by_name): At first try parsing the name.
14837 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14838 as Lisp symbols.
14839
14840 * fontset.c (reorder_font_vector): Pay attention to the case that
14841 the 3rd element of font_def is nil.
14842 (fontset_font): For the default fontset, append one more fontset
14843 elements for a script-based font specification. Don't add script
14844 attribute on finding a font.
14845 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14846 font name.
14847 (fontset_ascii_font): If a font can't be opened, return nil.
14848
14849 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14850 (ftfont_pattern_entity): New function.
14851 (ftfont_get_cache): Assume that freetype_font_cache is already
14852 initialized.
14853 (ftfont_list): Handle the case that a file is specified in font
14854 name. Use ftfont_pattern_entity to generate entities.
14855 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14856 (syms_of_ftfont): Initialize freetype_font_cache.
14857
14858 * xftfont.c (xftfont_open): Make the font name fontconfig's
14859 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14860 (xftfont_close): Free font->font.name if not NULL.
14861
14862 * xfont.c (xfont_list): If script is specified for a font, return
14863 null_vector.
14864 (xfont_list_family): Declare argument type.
14865
14866 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14867 name, set LFACE_FONT (lface) to nil.
14868
14869 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14870 return Qnil.
14871
148722008-02-01 Kenichi Handa <handa@m17n.org>
14873
14874 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14875 (standard_args): Add "-enable-font-backend".
14876
148772008-02-01 Kenichi Handa <handa@m17n.org>
14878
14879 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14880 (struct xftdraw_list, xftdraw_list): Delete them.
14881 (register_xftdraw, check_xftdraw): Delete them.
14882 (xftfont_prepare_face): Don't call register_xftdraw.
14883 (xftfont_done_face): Don't call check_xftdraw.
14884 (xftfont_draw): Get background color only when with_background is
14885 nonzero.
14886
14887 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14888
148892008-02-01 Kenichi Handa <handa@m17n.org>
14890
14891 These changes are for the new font handling codes.
14892
14893 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14894 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14895 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14896 (FONTSRC, FONTOBJ): New variables.
14897 (obj): Add $(FONTOBJ).
14898 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14899 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14900 @LIBOTF_LIBS@.
14901 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14902 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14903
14904 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14905
14906 * character.h (Vscript_representative_chars): Extern it.
14907
14908 * character.c (Vscript_representative_chars): New variable.
14909 (syms_of_character): Declare it as a Lisp variable.
14910
14911 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14912 enable_font_backend is nonzero, accept the composition method
14913 COMPOSITION_WITH_GLYPH_STRING.
14914
14915 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14916 enumeration COMPOSITION_WITH_GLYPH_STRING.
14917
14918 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14919 members clip_x, clip_y, clip_width, and clip_height.
14920 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14921
14922 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14923 --enable-font-backend. Call syms_of_font.
14924
14925 * fns.c (assoc_no_quit): New function.
14926
14927 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14928 (face_for_font, new_fontset_from_font)
14929 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14930
14931 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14932 (fontset_font, fontset_ascii, face_for_char)
14933 (make_fontset_for_ascii_face, Ffont_info)
14934 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14935 is nonzero, use font-backend mechanism.
14936 (find_font_encoding): Make it non-static.
14937 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14938 New functions.
14939
14940 * frame.h (struct frame): New members resx and resy.
14941 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14942 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14943
14944 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14945 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14946
14947 * lisp.h (assoc_no_quit): Extern it.
14948
14949 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14950 Through out the file, use FONT_INFO_FROM_FACE instead of
14951 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14952 rif->per_char_metric.
14953 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14954 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14955 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14956 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14957 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14958 nonzero, use font-backend mechanism.
14959 (get_per_char_metric): New function.
14960
14961 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14962 (set_lface_from_font_name)
14963 (set_font_frame_param, free_realized_face)
14964 (prepare_face_for_display, clear_face_gcs)
14965 (Finternal_set_font_selection_order, realize_x_face)
14966 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14967 font-backend mechanism.
14968 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14969 (load_face_font) [USE_FONT_BACKEND]: Abort.
14970 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14971 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14972
14973 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14974 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14975 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14976 nonzero, register all available font drivers. Call
14977 x_default_font_parameter for deciding a font.
14978 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14979
14980 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14981 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14982 (x_set_glyph_string_clipping_exactly)
14983 (x_compute_glyph_string_overhangs)
14984 (x_draw_glyph_string_foreground)
14985 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14986 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14987 enable_font_backend is nonzero, use font-backend mechanism.
14988 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14989
149902008-02-01 Kenichi Handa <handa@m17n.org>
14991
14992 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14993 system_eol_type.
14994 (syms_of_coding): Initialize system_eol_type.
14995
14996 * process.c (Fset_process_coding_system): Inherit system's eol
14997 format if necessary.
14998
149992008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15000
15001 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15002
150032008-02-01 Kenichi Handa <handa@m17n.org>
15004
15005 * coding.c (decode_eol): Pay attention to buffer relocation in
15006 del_range_2.
15007 (decode_coding): Call decode_eol before restoring undo_list.
15008
150092008-02-01 Kenichi Handa <handa@m17n.org>
15010
15011 * charset.c (Fdefine_charset_internal): Fix setting of
15012 emacs_mule_bytes.
15013
150142008-02-01 Kenichi Handa <handa@m17n.org>
15015
15016 * keyboard.c (read_char): Check if C is a character or not before
15017 looking up Vkeyboard_translate_table.
15018
150192008-02-01 Kenichi Handa <handa@m17n.org>
15020
15021 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15022 condition to terminate the loop.
15023
150242008-02-01 Kenichi Handa <handa@m17n.org>
15025
15026 * coding.c (produce_composition): Compare charbuf[i] instead of
15027 args[i] against 0.
15028 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15029
150302008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15033 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15034 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15035 detect_coding.
15036 (emacs_mule_char): Handle old style (Emacs 20) component character
15037 of a composition.
15038 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15039 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15040 composition rule.
15041 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15042
150432008-02-01 Kenichi Handa <handa@m17n.org>
15044
15045 * coding.c (encode_coding_ccl): Allocate destination dynamically
15046 when necessary.
15047
150482008-02-01 Kenichi Handa <handa@m17n.org>
15049
15050 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15051 the loop. When quitted, show a proper error message.
15052
150532008-02-01 Kenichi Handa <handa@m17n.org>
15054
15055 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15056 src->clip_head and src->clip_tail temporarily instead of src->hl.
15057
15058 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15059 character sequence.
15060 (Fccl_execute_on_string): Use ASET, not XSET.
15061
150622008-02-01 Kenichi Handa <handa@m17n.org>
15063
15064 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15065
150662008-02-01 Kenichi Handa <handa@m17n.org>
15067
15068 * coding.c (decode_coding): Fix the condition of terminating the
15069 decoding loop.
15070
150712008-02-01 Kenichi Handa <handa@m17n.org>
15072
15073 * data.c (Faset): On setting a character bigger than 255 in a
15074 unibyte string, signal an error instead of make the string multibyte.
15075
150762008-02-01 Kenichi Handa <handa@m17n.org>
15077
15078 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15079 made by a mapping table.
15080
150812008-02-01 Kenichi Handa <handa@m17n.org>
15082
15083 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15084 not.
15085 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15086 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15087
15088 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15089 s->face is NULL or not.
15090
150912008-02-01 Kenichi Handa <handa@m17n.org>
15092
15093 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15094 (x_draw_glyph_string): Fix drawing of right_overhang and
15095 left_overhang around/on cursor.
15096
15097 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15098
150992008-02-01 Kenichi Handa <handa@m17n.org>
15100
15101 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15102
151032008-02-01 Kenichi Handa <handa@m17n.org>
15104
15105 * coding.c (Fdefine_coding_system_internal)
15106 (Fdefine_coding_system_alias): Avoid a duplicated element in
15107 Vcoding_system_alist.
15108
151092008-02-01 Kenichi Handa <handa@m17n.org>
15110
15111 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15112
15113 * coding.c (Qcoding_system_define_form): New variable.
15114 (syms_of_coding): Intern and staticpro it.
15115 (Fcoding_system_p): Check Qcoding_system_define_form.
15116 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15117
15118 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15119 Fcoding_system_p.
15120 (CHECK_CODING_SYSTEM): If ID is not available, call
15121 Fcheck_coding_system.
15122 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15123 Try also Fcheck_coding_system.
15124
151252008-02-01 Kenichi Handa <handa@m17n.org>
15126
15127 * coding.c (code_conversion_restore): GCPRO arg.
15128
151292008-02-01 Kenichi Handa <handa@m17n.org>
15130
15131 * character.c (lisp_string_width): Check multibyteness of STRING.
15132
151332008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15134
15135 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15136 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15137 (decode_mac_font_name): Use decode_coding_c_string instead of
15138 decode_coding.
15139 (x_load_font): Initialize fontp->fontset to -1. Set
15140 fontp->encoding_type.
15141
151422008-02-01 Kenichi Handa <handa@m17n.org>
15143
15144 * search.c (search_buffer): Give up BM search on case-fold-search
15145 if one of a target character has a case-equivalence of different
15146 byte length even if that target charcter is an ASCII.
15147 (simple_search): Fix calculation of byte length of matched text.
15148 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15149
151502008-02-01 Kenichi Handa <handa@m17n.org>
15151
15152 * coding.c (decode_coding): Fix handling of invalid bytes.
15153
151542008-02-01 Kenichi Handa <handa@m17n.org>
15155
15156 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15157 Unicode characters.
15158
151592008-02-01 Kenichi Handa <handa@m17n.org>
15160
15161 * coding.c (encode_coding_object): If a pre-write-conversion
15162 function makes a new buffer, kill it.
15163
151642008-02-01 Kenichi Handa <handa@m17n.org>
15165
15166 * coding.c (QCascii_compatible_p): New variable.
15167 (syms_of_coding): Initialize it.
15168 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15169 calling string_char.
15170 (record_conversion_result): Add `default:' case.
15171 (coding_charset_list): Delete unused variable `coding_type'.
15172 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15173 property in the plist of the coding system.
15174 (Fcoding_system_put): Check QCascii_compatible_p.
15175
151762008-02-01 Miles Bader <miles@gnu.org>
15177
15178 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15179 removed calculation of frame `f', as it's now used.
15180
151812008-02-01 Kenichi Handa <handa@m17n.org>
15182
15183 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15184 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15185 (UNIDATA): New variable.
15186 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15187 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15188 $(RUN_TEMACS) unconditionally.
15189
151902008-02-01 Kenichi Handa <handa@m17n.org>
15191
15192 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15193 (admindir): New variable.
15194 ($(lispsource)international/charprop.el): New target.
15195
151962008-02-01 Miles Bader <miles@gnu.org>
15197
15198 * character.c (chars-in-region): Remove obsolete function.
15199 (syms_of_character): Remove its initialization.
15200
152012008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15202
15203 * w32select.c (validate_coding_system)
15204 (setup_windows_coding_system): New functions.
15205 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15206 setup_windows_coding_system.
15207 (setup_config, Fw32_get_clipboard_data): Use
15208 validate_coding_system.
15209 (Fx_selection_exists): Move call to setup_config to a place
15210 where signals are allowed.
15211
15212 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15213 (Fcheck_coding_system): Add declarations.
15214
152152008-02-01 Kenichi Handa <handa@m17n.org>
15216
15217 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15218
152192008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15220
15221 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15222 string as the second argument for x_new_fontset.
15223
152242008-02-01 Kenichi Handa <handa@m17n.org>
15225
15226 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15227 (encode_coding_object): Use safe_call instead of call2.
15228
152292008-02-01 Kenichi Handa <handa@m17n.org>
15230
15231 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15232
15233 * Makefile.in (lisp): Include charprop.el.
15234
152352008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15236
15237 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15238 Not sure if it's unnecessary.
15239
152402008-02-01 Steven Tamm <steventamm@mac.com>
15241
15242 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15243 some possibly unnecessary fontset checking code that crashed
15244 when creating a new frame.
15245
152462008-02-01 Kenichi Handa <handa@m17n.org>
15247
15248 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15249 lookup_face.
15250
15251 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15252
15253 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15254
152552008-02-01 Kenichi Handa <handa@m17n.org>
15256
15257 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15258 (coding_charset_list): New function.
15259
15260 * coding.h (coding_charset_list): Extern it.
15261
152622008-02-01 Kenichi Handa <handa@m17n.org>
15263
15264 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15265 concatenation of family and registry.
15266
152672008-02-01 Kenichi Handa <handa@m17n.org>
15268
15269 * character.h (BYTE8_STRING): Fix typo.
15270
15271 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15272 string to multibyte (sync to HEAD).
15273
15274 * casefiddle.c (casify_region): Handle changes in byte-length
15275 using replace_range_2 (sync to HEAD).
15276
152772008-02-01 Andreas Schwab <schwab@suse.de>
15278
15279 * chartab.c (map_char_table): GCPRO table and arg.
15280
152812008-02-01 Kenichi Handa <handa@m17n.org>
15282
15283 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15284 already at limit.
15285
152862008-02-01 Kenichi Handa <handa@m17n.org>
15287
15288 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15289 instead of fast_c_string_match_ignore_case.
15290 (find_font_encoding): Change argument to Lisp_Object. Use
15291 fast_string_match_ignore_case instead of
15292 fast_c_string_match_ignore_case. Change caller.
15293
152942008-02-01 Kenichi Handa <handa@m17n.org>
15295
15296 * xdisp.c (get_next_display_element): In unibyte case, decide to
15297 display in octal form by checking a character by
15298 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15299
15300 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15301
15302 * character.c (unibyte_has_multibyte_table): New variable.
15303
15304 * character.h (unibyte_has_multibyte_table): Extern it.
15305 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15306
153072008-02-01 Kenichi Handa <handa@m17n.org>
15308
15309 * coding.c (encode_coding_iso_2022): Fix handling of charset
15310 annotation.
15311
153122008-02-01 Kenichi Handa <handa@m17n.org>
15313
15314 * coding.c (setup_coding_system): If coding_system is nil, use
15315 Qundecided.
15316 (Fterminal_coding_system): Return nil if terminal coding system is
15317 `undecided'.
15318 (syms_of_coding): Define coding-system `undecided' here. Setup
15319 terminal_coding as `undecided'.
15320
153212008-02-01 Kenichi Handa <handa@m17n.org>
15322
15323 * xdisp.c (message_dolog, set_message_1): Call
15324 unibyte_char_to_multibyte with arg type int.
15325
15326 * lread.c (read1): Fix reading of a char-table.
15327
15328 * print.c (print_object): Include sub char-table in circularities
15329 detection.
15330
153312008-02-01 Kenichi Handa <handa@m17n.org>
15332
15333 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15334 Append the found sequences in car of ARGS instead of prepending.
15335
153362008-02-01 Kenichi Handa <handa@m17n.org>
15337
15338 * fileio.c (report_file_error): Make a unibyte string from
15339 strerror (errorno).
15340 (Fsubstitute_in_file_name): Fix the arg to
15341 unibyte_char_to_multibyte. It is evaluated twice.
15342
153432008-02-01 Kenichi Handa <handa@m17n.org>
15344
15345 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15346
153472008-02-01 Kenichi Handa <handa@m17n.org>
15348
15349 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15350 BOM is not found.
15351 (detect_coding, detect_coding_system): Optimization for ISO-2022
15352 when no 8-bit data is found.
15353
153542008-02-01 Jason Rumney <jasonr@gnu.org>
15355
15356 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15357
153582008-02-01 Kenichi Handa <handa@m17n.org>
15359
15360 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15361 CHARS.
15362
153632008-02-01 Steven Tamm <steventamm@mac.com>
15364
15365 * macterm.c (mac_encode_char): Add charset argument and update
15366 to use encoding_type.
15367 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15368 switch to pure fontset.
15369 (decode_mac_font_name): Temporarily remove decoding.
15370 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15371 (x_load_font): Temporarily remove encoding.
15372
153732008-02-01 Kenichi Handa <handa@m17n.org>
15374
15375 * xfaces.c (Fface_font): If frame is not on a window system,
15376 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15377 refer to face->font.
15378 (split_font_name_into_vector, build_font_name_from_vector)
15379 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15380 when HAVE_WINDOW_SYSTEM is defined.
15381
153822008-02-01 Kenichi Handa <handa@m17n.org>
15383
15384 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15385 (x_produce_glyphs): Fix setting of members of cmp in case
15386 cmp->glyph_len is zero.
15387
15388 * fontset.c (Fset_fontset_font): Fix docstring.
15389 (Ffontset_info): Make it backward compatible. New arg ALL.
15390
153912008-02-01 Kim F. Storm <storm@cua.dk>
15392
15393 * process.c (read_process_output): Grow decoding_buf when needed;
15394 this could cause a crash in allocate_string and compact_small_strings.
15395
153962008-02-01 Kenichi Handa <handa@m17n.org>
15397
15398 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15399
154002008-02-01 Kenichi Handa <handa@m17n.org>
15401
15402 * coding.c (setup_coding_system): Set coding->common_flags
15403 correctly for raw-text.
15404 (consume_chars): On encoding unibyte text by raw-text, don't check
15405 multibyte form.
15406 (encode_coding): On encoding by raw-text, never use translation tables.
15407
15408 * fileio.c (e_write): Short cut for the case of no encoding.
15409
154102008-02-01 Kenichi Handa <handa@m17n.org>
15411
15412 * coding.c (detect_coding, detect_coding_system): Delete unused
15413 variables.
15414
154152008-02-01 Kenichi Handa <handa@m17n.org>
15416
15417 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15418 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15419
154202008-02-01 Kenichi Handa <handa@m17n.org>
15421
15422 * coding.c (Ffind_coding_systems_region_internal): Include
15423 raw-text and no-conversion in the result.
15424
154252008-02-01 Kenichi Handa <handa@m17n.org>
15426
15427 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15428 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15429 FONT_DEF.
15430 (font_def_arg, add_arg, from_arg, to_arg): New args.
15431 (set_fontset_font): Change argument.
15432 (Fset_fontset_font): Fix for the case that TARGET is a script
15433 name and charset name.
15434 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15435
154362008-02-01 Kenichi Handa <handa@m17n.org>
15437
15438 * fontset.c (fontset_font): Rename from fontset_face. Change return
15439 value.
15440 (face_suitable_for_char_p, face_for_char): Adjust for the change
15441 of fontset_font.
15442 (make_fontset_for_ascii_face): Fix setting of the fontset element
15443 for ASCII.
15444 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15445 to get a font name.
15446 (Ffontset_info): Adjust for the change of fontset_font.
15447
15448 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15449
15450 * character.h (LEADING_CODE_LATIN_1_MIN)
15451 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15452
154532008-02-01 Kenichi Handa <handa@m17n.org>
15454
15455 * editfns.c (check_translation): New function.
15456 (Ftranslate_region_internal): Handle M:N mapping.
15457
154582008-02-01 Kenichi Handa <handa@m17n.org>
15459
15460 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15461
154622008-02-01 Kenichi Handa <handa@m17n.org>
15463
15464 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15465 goto invalid_code.
15466 (decode_coding_iso_2022): Fix handling of invalid designation.
15467
15468 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15469 after calling code_conversion_save.
15470
154712008-02-01 Kenichi Handa <handa@m17n.org>
15472
15473 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15474
15475 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15476
15477 * fontset.c: Include "intervals.h".
15478 (fontset_face): Fix comparing of Lisp_Objects.
15479 (free_face_fontset, new_fontset_from_font_name): Fix
15480 Lisp_Object/int mixup.
15481
15482 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15483
15484 * coding.c: Add many prototypes for static functions.
15485 (get_translation_table): Allow max_lookup to be NULL.
15486 (decode_coding, Ffind_coding_systems_region_internal)
15487 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15488 get_translation_table with max_lookup NULL.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * coding.c (get_translation_table): Declare it as Lisp_Object.
15493 (LOOKUP_TRANSLATION_TABLE): New macro.
15494 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15495 instead of CHAR_TABLE_REF.
15496
154972008-02-01 Kenichi Handa <handa@m17n.org>
15498
15499 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15500 annotation data format.
15501 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15502 Change arguments FROM and TO to single argument NCHARS. Change caller.
15503 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15504 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15505 (decode_coding_ccl, decode_coding_charset): Pay attention to
15506 coding->charbuf_used.
15507 (get_translation): New function.
15508 (produce_chars): New arguments translation_table and last_block.
15509 Translate characters here. Return number of carryover chars.
15510 Change caller.
15511 (produce_composition): New argument pos. Change caller.
15512 Adjust for the change of annotation data format.
15513 (produce_charset, produce_annotation): Likewise.
15514 (decode_coding, encode_coding): Don't call translate_chars.
15515 (consume_chars): New arg translation_table. Change caller.
15516 (translate_chars): Delete.
15517 (syms_of_coding): Make translation-table's number of extra slots 2.
15518
155192008-02-01 Kenichi Handa <handa@m17n.org>
15520
15521 * search.c (simple_search): Fix setting this_pos_byte in backward
15522 search.
15523
15524 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15525 byte sequence.
15526 (detect_coding_ccl): Fix setting of the variable valids.
15527
155282008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15531
15532 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15533
15534 * editfns.c (Ftranslate_region_internal): Rename from
15535 Ftranslate_region. Accept a char-table in TABLE.
15536 (syms_of_editfns): Defsubr Stranslate_region_internal.
15537
15538 * xfaces.c (set_lface_from_font_name): If a font is specified for
15539 a frame, generate a fontset from the font.
15540 (build_scalable_font_name): If the scalable font is requested for
15541 a specific size, don't change that size.
15542 (try_font_list): Try a scalable font also in the case that a
15543 pattern string is specified.
15544
155452008-02-01 Kenichi Handa <handa@m17n.org>
15546
15547 * xfaces.c (Fface_font): New optional arg CHARACTER.
15548
155492008-02-01 Kenichi Handa <handa@m17n.org>
15550
15551 * charset.h (CHARSET_OFFSET): New macro.
15552
155532008-02-01 Kenichi Handa <handa@m17n.org>
15554
15555 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15556
15557 * fontset.c (fontset_face): Handle the case that repertory is a
15558 char-table.
15559 (find_font_encoding): Return nil for unknown encoding.
15560 (Fset_fontset_font): Ignore a font of unknown encoding.
15561
155622008-02-01 Kenichi Handa <handa@m17n.org>
15563
15564 * keymap.c (describe_vector): Handle default value of a char table.
15565
15566 * fontset.c (fontset_face): Handle fallback fonts correctly.
15567 (Ffontset_info): Return infomation about fallback fonts.
15568
155692008-02-01 Kenichi Handa <handa@m17n.org>
15570
15571 * fontset.c (FONTSET_DEFAULT): New macro.
15572 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15573 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15574 the case that it is nil.
15575 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15576 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15577
15578 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15579 subset or superset.
15580
155812008-02-01 Kenichi Handa <handa@m17n.org>
15582
15583 * emacs.c (main): Call init_charset after syms_of_XXX.
15584
15585 * charset.c (Vcharset_map_directory): Delete.
15586 (Vcharset_map_path): New variable.
15587 (load_charset_map_from_file): Use Vcharset_map_path instead.
15588 (init_charset): Initialize Vcharset_map_path.
15589 (syms_of_charset): Delete declaration of "charset-map-directory",
15590 add declaration of "charset-map-path".
15591
155922008-02-01 Kenichi Handa <handa@m17n.org>
15593
15594 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15595 ASCII only string.
15596
15597 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15598
15599 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15600 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15601
156022008-02-01 Kenichi Handa <handa@m17n.org>
15603
15604 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15605
15606 * coding.c (QCmnemonic, QCdefalut_char)
15607 (QCdecode_translation_table, QCencode_translation_table)
15608 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15609 (get_translation_table): Return a list of translation tables if
15610 necessary.
15611 (decode_coding): Call get_translation_table with ENCODEP 0.
15612 (char_encodable_p): If translation_table is non-nil, always call
15613 translate_char.
15614 (Fdefine_coding_system_internal): Accept list of translation
15615 tables as :encode-translation-table and :decode-translation-table.
15616 (Fcoding_system_put): New function.
15617 (syms_of_coding): Declare new symbols. Defsubr
15618 Scoding_system_put.
15619 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15620 typically JISX0212.
15621
15622 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15623 when the charset is superset type.
15624
15625 * character.c (translate_char): Accept list of translation tables.
15626
156272008-02-01 Kenichi Handa <handa@m17n.org>
15628
15629 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15630 (CODING_ATTR_TRANS_TBL): New macro.
15631
15632 * coding.c (get_translation_table): New function.
15633 (translate_chars): Fix the bug of skipping annotation data.
15634 (decode_coding, encode_coding): Utilize get_translation_table.
15635 (char_encodable_p, Funencodable_char_position): Translate char if
15636 necessary.
15637 (Ffind_coding_systems_region_internal)
15638 (Fcheck_coding_systems_region): Setup translation table for encode
15639 in a coding system attribute vector in advance.
15640 (Fdefine_coding_system_internal): Allow a symbol as translation
15641 table. For shift-jis type coding system, allow 4th charset.
15642
156432008-02-01 Kenichi Handa <handa@m17n.org>
15644
15645 * coding.c (decode_coding_sjis): Check the first byte rigidly.
15646
15647 * xdisp.c (get_next_display_element): Pass -1 as POS to
15648 FACE_FOR_CHAR if displaying a C-string.
15649
156502008-02-01 Kenichi Handa <handa@m17n.org>
15651
15652 * composite.c (get_composition_id): Handle xoff and yoff in a
15653 composition rule.
15654
15655 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
15656 (struct composition): New member lbearing and rbearing.
15657
15658 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
15659 (x_get_glyph_overhangs): Handle a composition glyph.
15660 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
15661
15662 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
15663 composition glyph.
15664
156652008-02-01 Kenichi Handa <handa@m17n.org>
15666
15667 * print.c: Include charset.h.
15668 (Vprint_charset_text_property): New variable.
15669 (Qdefault): Extern it.
15670 (PRINT_STRING_NON_CHARSET_FOUND)
15671 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
15672 (print_check_string_result): New variable.
15673 (print_check_string_charset_prop): New function.
15674 (print_prune_charset_plist): New variable.
15675 (print_prune_string_charset): New function.
15676 (print_object): Call print_prune_string_charset if
15677 Vprint_charset_text_property is not t.
15678 (print_interval): Print nothing if interval->plist is nil.
15679 (syms_of_print): Declare Vprint_charset_text_property as a lisp
15680 variable. Init and staticpro print_prune_charset_plist.
15681
156822008-02-01 Kenichi Handa <handa@m17n.org>
15683
15684 * fontset.c (new_fontset_from_font_name): Use the specified font
15685 for all characters in the new fontset.
15686
15687 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15688 OBJECT args.
15689
15690 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
15691 OBJECT args for composition too.
15692
15693 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
15694 OBJECT args.
15695
156962008-02-01 Kenichi Handa <handa@m17n.org>
15697
15698 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
15699
15700 * fontset.c (reorder_font_vector): Adjust for the change of
15701 FONT_DEF format.
15702 (fontset_face): New arg id. Change caller.
15703 (face_for_char): New args pos and object.
15704 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
15705 (fs_query_fontset): Check NAME by Fassoc too.
15706 (Fset_fontset_font): Allow non-XLFD font name.
15707 (Ffontset_info): Adjust for the change of FONT_DEF format.
15708
15709 * fontset.h (face_for_char): Adjust prototype.
15710
15711 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
15712 (append_space, extend_face_to_end_of_line)
15713 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15714 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
15715
15716 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
15717 POS and OBJECT args.
15718
15719 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
15720 POS and OBJECT args.
15721
157222008-02-01 Jason Rumney <jasonr@gnu.org>
15723
15724 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
15725 of GlobalAlloc'ed memory.
15726
157272008-02-01 Kenichi Handa <handa@m17n.org>
15728
15729 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
15730
15731 * charset.h (charset_table_used): Delete extern.
15732
15733 * charset.c (charset_table_used): Make it static.
15734 (map_charset_chars): Fix args to c_function with.
15735
15736 * chartab.c (map_sub_char_table_for_charset): Fix args to
15737 c_function with.
15738
15739 * coding.h (enum coding_result_code): Delete
15740 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
15741
15742 * coding.c (Qinsufficient_source, Qinconsistent_eol)
15743 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
15744 (Vlast_code_conversion_error): New variables.
15745 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
15746 (ONE_MORE_BYTE): Record error if any instead of signaling an
15747 error. If non-ASCII multibyte char is found, return the negative
15748 value of the code. All callers changed to check it.
15749 (ONE_MORE_BYTE_NO_CHECK): Likewise.
15750 (record_conversion_result): New function. Change all codes setting
15751 coding->result to call this function.
15752 (detect_coding_utf_8, decode_coding_utf_8)
15753 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
15754 Don't use the local variable incomplete.
15755 (emacs_mule_char): Change the second arg to `const'.
15756 (decode_coding): Fix of flushing out unprocessed data.
15757 (make_conversion_work_buffer): Fix making of a work buffer.
15758 (decode_coding_object): Return coding->dst_object.
15759
15760 * fontset.c (set_fontset_font): Fix args.
15761
15762 * lisp.h (CHARACTERBITS): Define as 22.
15763
15764 * process.c (send_process): Be sure to set coding->src_multibyte.
15765
15766 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
15767
157682008-02-01 Kenichi Handa <handa@m17n.org>
15769
15770 * xdisp.c (handle_auto_composed_prop): Give limit to
15771 Fnext_single_char_property_change.
15772
157732008-02-01 Kenichi Handa <handa@m17n.org>
15774
15775 * composite.c (syms_of_composite): Don't make the composition hash
15776 table weak.
15777
15778 * fontset.c (Fset_fontset_font): Fix docstring.
15779
15780 * lisp.h (detect_coding_system): Adjust prototype.
15781
15782 * fileio.c (kill_workbuf_unwind): Delete this function.
15783 (Finsert_file_contents): Adjust the call of detect_coding_system.
15784 Get conversion_buffer by code_conversion_save. Use the macro
15785 CODING_MAY_REQUIRE_DECODING. After decoding, update
15786 coding_system.
15787
15788 * coding.h (make_conversion_work_buffer): Delete extern.
15789 (code_conversion_save): Extern it.
15790
15791 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15792 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15793 (decode_coding_utf_8): Don't do eol converion.
15794 (detect_coding_utf_16): Check coding->src_chars, not
15795 coding->src_bytes. Add heuristics for those that have no signature.
15796 (decode_coding_emacs_mule, decode_coding_iso_2022)
15797 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15798 Don't do eol converion.
15799 (adjust_coding_eol_type): Return a new coding system.
15800 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15801 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15802 each change.
15803 (decode_coding): Pay attention to undo_list. Do eol conversion for
15804 all types of coding-systems (if necessary).
15805 (Vcode_conversion_work_buf_list): Delete it.
15806 (Vcode_conversion_reused_workbuf): Rename from
15807 Vcode_conversion_reused_work_buf.
15808 (Vcode_conversion_workbuf_name): New variable.
15809 (reused_workbuf_in_use): New variable.
15810 (make_conversion_work_buffer): Delete the arg DEPTH.
15811 (code_conversion_restore): Change argument to cons.
15812 (code_conversion_save): Delete the argument BUFFER. Change callers.
15813 (detect_coding_system): New argument src_chars. Change callers.
15814 Fix for utf-16 detection.
15815 (init_coding_once): Don't use ISO_carriage_return.
15816 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15817 reused_workbuf_in_use.
15818
158192008-02-01 Kenichi Handa <handa@m17n.org>
15820
15821 * keymap.c (store_in_keymap): Pay attention to the case that idx
15822 is a cons specifying a character range.
15823
158242008-02-01 Kenichi Handa <handa@m17n.org>
15825
15826 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15827 HANDLED_RECOMPUTE_PROPS.
15828
15829 * coding.c (Fdefine_coding_system_internal): Fix checking of
15830 ascii compatibility.
15831
158322008-02-01 Kenichi Handa <handa@m17n.org>
15833
15834 * charset.c (find_charsets_in_text): Delete unused locale variable.
15835 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15836
15837 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15838 Resync charset_list to Vemacs_mule_charset_list.
15839
15840 * keymap.c (store_in_keymap): Pay attention to the case that idx
15841 is a cons specifying a character range.
15842
158432008-02-01 Kenichi Handa <handa@m17n.org>
15844
15845 * composite.c (update_compositions): Bind inhibit-read-only, etc
15846 to t before calling remove-list-of-text-properties.
15847
15848 * print.c (print_object): Always print ASCII chars as is.
15849
158502008-02-01 Kenichi Handa <handa@m17n.org>
15851
15852 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15853
15854 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15855 is a char table.
15856
158572008-02-01 Kenichi Handa <handa@m17n.org>
15858
15859 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15860
158612008-02-01 Kenichi Handa <handa@m17n.org>
15862
15863 * xfaces.c (set_lface_from_font_name): Fix for the case that
15864 FONTNAME is not fontset name.
15865
158662008-02-01 Kenichi Handa <handa@m17n.org>
15867
15868 * fns.c (base64_encode_1): Fix previous change.
15869
158702008-02-01 Kenichi Handa <handa@m17n.org>
15871
15872 * fontset.c (set_fontset_font): New function.
15873 (Fset_fontset_font): If a font is specified for a charset, use
15874 map_charset_chars to store the font spec in a fontset.
15875
158762008-02-01 Kenichi Handa <handa@m17n.org>
15877
15878 * fontset.c (fontset_face): Create a fallback fontset on demand.
15879 (make_fontset): Don't create a fallback fontset here.
15880 (free_face_fontset): Free a fallback fontset (if any) too.
15881 (n_auto_fontsets): Delete this variable.
15882 (auto_fontset_alist): New variable.
15883 (new_fontset_from_font_name): Check auto_fontset_alist.
15884 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15885 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15886 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15887 Defsubr Sfontset_list_all.
15888
158892008-02-01 Kenichi Handa <handa@m17n.org>
15890
15891 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15892
158932008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15896
158972008-02-01 Kenichi Handa <handa@m17n.org>
15898
15899 * editfns.c (Fgoto_char): Fix docstring.
15900
159012008-02-01 Kenichi Handa <handa@m17n.org>
15902
15903 * insdel.c (insert_from_gap): Adjust intervals correctly.
15904
159052008-02-01 Jason Rumney <jasonr@gnu.org>
15906
15907 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15908 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15909 (w32_initialize): Try to load it.
15910 (x_get_font_repertory): Use it if available.
15911 (w32_encode_char): Add shortcut for unicode output.
15912
15913 * w32fns.c (w32_load_system_font): Default charset to -1.
15914 (x_to_w32_charset): Match all fonts for unicode.
15915 (w32_to_x_charset): New parameter matching. Don't return partial
15916 or wildcard charsets.
15917 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15918 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15919 (w32_to_x_font): Match charset to real charset.
15920 (enum_font_cb2): Always list unicode versions.
15921
15922 * makefile.w32-in (temacs): Increase EMHEAP.
15923
159242008-02-01 Jason Rumney <jasonr@gnu.org>
15925
15926 * w32term.c (w32_encode_char): New charset parameter.
15927 font_info.encoding becomes encoding_type.
15928 (x_get_font_repertory): New function. Warning: stub only!
15929 (x_new_font): Return quickly if font already set.
15930 (x_new_fontset): fontsetname parameter is Lisp_Object.
15931 Use new fs_query_fontset. Try new_fontset_from_font_name.
15932 Use fontset_name for return value.
15933
15934 * w32term.h: Declare x_get_font_repertory.
15935
15936 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15937 place of find_charset_in_text. Use encode_coding_object in place
15938 of encode_coding.
15939 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15940 decode_coding.
15941
15942 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15943 of x_new_fontset.
15944 (w32_load_system_font): Initialize charset as unicode.
15945 font_info.encoding becomes encoding_type.
15946 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15947 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15948 (syms_of_w32fns): Set get_font_repertory_func.
15949
15950 * w32console.c: Include character.h. Use terminal_encode_buffer
15951 from term.c.
15952 (write_glyphs): Use new version of encode_terminal_code. Use
15953 encode_coding_object in place of encode_coding.
15954
15955 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15956 encoding becomes encoding_type.
15957
15958 * term.c (terminal_encode_buffer): Make externally visible.
15959
15960 * makefile.w32-in: Add character.h dependancies.
15961 (character.o, chartab.o): New targets.
15962
159632008-02-01 Kenichi Handa <handa@m17n.org>
15964
15965 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15966 CODING_ID_EOL_TYPE.
15967
159682008-02-01 Andreas Schwab <schwab@suse.de>
15969
15970 * coding.c (produce_chars): Revert last change.
15971
159722008-02-01 Kenichi Handa <handa@m17n.org>
15973
15974 * charset.h (charset_unicode): Extern it.
15975
15976 * charset.c (string_xstring_p): Check by (C >= 0x100).
15977 (find_charsets_in_text): Change format of the arc CHARSETS. New
15978 arg MULTIBYTE.
15979 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15980 change of find_charsets_in_text.
15981 (Fsplit_char): Fix doc. Never return unknown.
15982
15983 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15984
15985 * coding.c (Fdefine_coding_system_alias): Update
15986 Vcoding_system_list.
15987
15988 * fontset.c (load_font_get_repertory): Pay attention to the case
15989 that ENCODING of a font is specified by a char-table.
15990
15991 * xterm.c (x_get_font_repertory): Handle the case that the
15992 encoding of font is other than Unicode.
15993
159942008-02-01 Kenichi Handa <handa@m17n.org>
15995
15996 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15997 if a character is encodable by the terminal coding system. If
15998 not, produces proper number of `?'s. Update
15999 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16000 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16001
160022008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16005 variables.
16006 (encode_terminal_code): Change argument. Encode multiple
16007 characters at once. Store the result of encoding in
16008 terminal_encode_buffer.
16009 (write_glyphs, insert_glyphs): Adjust for the change of
16010 encode_terminal_code.
16011 (term_init): Initialize terminal_encode_buffer and
16012 terminal_encode_buf_size.
16013
16014 * coding.c (consume_chars): If coding->src_object is nil, don't
16015 check annotation.
16016
160172008-02-01 Kenichi Handa <handa@m17n.org>
16018
16019 * character.c (char_string): Use ASCII_CHAR_P instead of
16020 SINGLE_BYTE_CHAR_P.
16021
160222008-02-01 Kenichi Handa <handa@m17n.org>
16023
16024 * xdisp.c (handle_auto_composed_prop): Check if the last
16025 characters of auto-composed region is newly composed with the
16026 following characters.
16027 (handle_composition_prop): Fix checking of point being inside
16028 composition.
16029
160302008-02-01 Kenichi Handa <handa@m17n.org>
16031
16032 * fns.c (concat): Don't change multibyteness of the result by
16033 concatenating an 8-bit character.
16034
16035 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16036 multibyteness of the result when newelt is an 8-bit character.
16037
160382008-02-01 Dave Love <fx@gnu.org>
16039
16040 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16041 EMACS_INT.
16042
16043 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16044
16045 * xfaces.c (face_numeric_value): Declare dim size_t.
16046 (Finternal_lisp_face_equal_p): Remove unused f.
16047
16048 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16049 (MATRIX_ROW): Remove unused vars.
16050 (draw_glyphs, x_insert_glyphs, fast_find_position)
16051 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16052 byte/char counts.
16053
16054 * regex.c (regex_compile): Remove unused var.
16055
16056 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16057
16058 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16059 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16060
16061 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16062
16063 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16064
16065 * fileio.c (Fwrite_region): Remove unused var.
16066
16067 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16068 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16069
16070 * composite.c (Fremove_list_of_text_properties): Declare.
16071
16072 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16073 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16074 (coding_inherit_eol_type): Remove unused attrs.
16075 (detect_coding): Cast arg of detect_eol.
16076
16077 * charset.c (syms_of_charset): Remove unused var p.
16078 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16079 byte/char counts.
16080
16081 * casetab.c (set_case_table): Remove unused var.
16082
16083 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16084 unused vars.
16085
160862008-02-01 Dave Love <fx@gnu.org>
16087
16088 * xterm.c (x_bitmap_mask): Declare.
16089
160902008-02-01 Dave Love <fx@gnu.org>
16091
16092 * xterm.c (x_term_init): Fix type error.
16093
16094 * lisp.h: Add Funibyte_char_to_multibyte.
16095
16096 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16097 (Fset_coding_system_priority): Doc fix.
16098
16099 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16100
16101 * indent.c (check_composition): Make start and end EMACS_INT.
16102
16103 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16104
16105 * xdisp.c (handle_composition_prop, check_point_in_composition):
16106 Make buffer positions EMACS_INT.
16107
16108 * composite.c (find_composition, run_composition_function)
16109 (update_compositions, Ffind_composition_internal): Make buffer
16110 positions EMACS_INT.
16111
16112 * composite.h (find_composition, update_compositions): Make
16113 position args EMACS_INT.
16114
16115 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16116
16117 * intervals.c (get_property_and_range):
16118 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16119
16120 * unexalpha.c: Don't include varargs.h.
16121
161222008-02-01 Dave Love <fx@gnu.org>
16123
16124 * coding.h (ENCODE_UTF_8): New.
16125
16126 * Makefile.in (gtkutil.o): Depend on coding.h.
16127
16128 * coding.c (Fset_coding_system_priority): Doc fix.
16129
161302008-02-01 Kenichi Handa <handa@m17n.org>
16131
16132 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16133 the case of auto saving.
16134
161352008-02-01 Andreas Schwab <schwab@suse.de>
16136
16137 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16138 `range' from GC.
16139
161402008-02-01 Kenichi Handa <handa@m17n.org>
16141
16142 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16143
161442008-02-01 Kenichi Handa <handa@m17n.org>
16145
16146 * fileio.c (choose_write_coding_system): Return a decided coding system.
16147 (Fwrite_region): Set Vlast_coding_system_used to the return value
16148 of choose_write_coding_system.
16149
161502008-02-01 Kenichi Handa <handa@m17n.org>
16151
16152 * charset.c (Fset_charset_priority): Pay attention to duplicated
16153 arguments.
16154
16155 * coding.c (QCcategory): New variable.
16156 (syms_of_coding): Defsym it. Set all elements of
16157 Vcoding_category_table and their symbol values.
16158 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16159 coding-category-XXX, and coding-category-list.
16160 (Fdefine_coding_system_internal): Add category in the plist.
16161
161622008-02-01 Kenichi Handa <handa@m17n.org>
16163
16164 * callproc.c (Fcall_process): Handle carryover correctly.
16165
16166 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16167 (raw_text_coding_system): Check NILP (coding_system).
16168 (coding_inherit_eol_type): Check NILP (coding_system) and
16169 NILP (parent).
16170 (consume_chars): Fix for the case of raw-text.
16171
16172 * process.c (read_process_output): Handle carryover correctly.
16173
161742008-02-01 Dave Love <fx@gnu.org>
16175
16176 * regex.c (re_search_2): Fix last change.
16177
161782008-02-01 Kenichi Handa <handa@m17n.org>
16179
16180 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16181 target_multibyte. Even in a unibyte case, return a converted
16182 multibyte char.
16183 (GET_CHAR_AFTER): New macro.
16184 (PATFETCH): Translate via multibyte char.
16185 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16186 (SETUP_MULTIBYTE_RANGE): New macro.
16187 (regex_compile): Setup compiled code so that its multibyteness
16188 matches that of a target. Fix the handling of "[X-YZ]" using
16189 SETUP_MULTIBYTE_RANGE.
16190 (analyse_first) <charset>: For filling fastmap for all multibyte
16191 characters, don't check by BASE_LEADING_CODE_P.
16192 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16193 the same as RE_MULTIBYTE_P (bufp) now.
16194 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16195 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16196 (TRANSLATE_VIA_MULTIBYTE): New macro.
16197 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16198 It is the same as RE_MULTIBYTE_P (bufp) now.
16199 <exactn>: Translate via multibyte.
16200 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16201 translate it.
16202 <charset, charset_not>: Fetch a character by
16203 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16204 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16205 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16206 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16207 by GET_CHAR_AFTER.
16208 (bcmp_translate): Likewise.
16209
16210 * search.c (compile_pattern): Check the member target_multibyte,
16211 not the member multibyte of buf.
16212
16213 * lread.c (read1): While reading a string, set force_singlebyte
16214 and force_multibyte correctly.
16215
16216 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16217 up of unibyte_to_multibyte_table.
16218
162192008-02-01 Kenichi Handa <handa@m17n.org>
16220
16221 * coding.c (setup_coding_system): If coding has
16222 post-read-conversion or pre-write-conversion, set
16223 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16224 respectively.
16225 (decode_coding_gap): Run post-read-conversion if any.
16226
16227 * fileio.c (Finsert_file_contents): Even if we read into a
16228 unibyte buffer, check if we must decode the result or not.
16229
162302008-02-01 Kenichi Handa <handa@m17n.org>
16231
16232 * coding.c (make_conversion_work_buffer): Change the work buffer
16233 name to the same one as that of Emacs 21.
16234
162352008-02-01 Kenichi Handa <handa@m17n.org>
16236
16237 * coding.h (make_conversion_work_buffer): Adjust prototype.
16238 (code_conversion_restore): Don't extern it.
16239
16240 * coding.c (detected_mask): Delete unused variable.
16241 (decode_coding_iso_2022): Pay attention to the byte sequence of
16242 CTEXT extended segment, and retain those bytes as is.
16243 (decode_coding_ccl): Delete unused variable `valids'.
16244 (setup_coding_system): Delete unused variable `category'.
16245 (consume_chars): Delete unused variable `category'. Make it work
16246 for non-multibyte case.
16247 (make_conversion_work_buffer): Change argument.
16248 (saved_coding): Delete unused variable.
16249 (code_conversion_restore): Don't check saved_coding->destination.
16250 (code_conversion_save): New function.
16251 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16252 instead of record_unwind_protect.
16253 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16254 (detect_coding_system): Delete unused variable `mask'.
16255 (Fdefine_coding_system_internal): Delete unused variable id.
16256
16257 * fileio.c (kill_workbuf_unwind): New function.
16258 (Finsert_file_contents): On replacing, call
16259 make_conversion_work_buffer with correct args, and call
16260 record_unwind_protect with the first arg kill_workbuf_unwind.
16261
16262 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16263
162642008-02-01 Kenichi Handa <handa@m17n.org>
16265
16266 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16267 (fontset_add): Fix for the case that TO is less than TO1.
16268 (Ffontset_info): Don't use fallback fontset on checking the
16269 default fontset.
16270 (dump_fontset): New function for debugging.
16271
16272 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16273 coding_type is Qcharset.
16274
162752008-02-01 Kenichi Handa <handa@m17n.org>
16276
16277 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16278 (map_char_table): Don't inherit the value from the parent on
16279 initializing VAL. Adjust for the above change.
16280
162812008-02-01 Kenichi Handa <handa@m17n.org>
16282
16283 * coding.c (Qsignature, Qendian): Delete these variables.
16284 (syms_of_coding): Don't initialize them.
16285 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16286 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16287 detect_info->found.
16288 (decode_coding_utf_16): Don't detect BOM here.
16289 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16290 is NOT utf_16_without_bom.
16291 (setup_coding_system): For a coding system of type utf-16, check
16292 if the attribute :endian is Qbig or not (not nil or not), and set
16293 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16294 (detect_coding): If coding type is utf-16 and BOM detection is
16295 required, detect it.
16296 (Fdefine_coding_system_internal): For a coding system of type
16297 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16298
162992008-02-01 Kenichi Handa <handa@m17n.org>
16300
16301 * coding.c (coding_set_source): Fix for the case that the current
16302 buffer is different from coding->src_object.
16303 (decode_coding_object): Don't use the conversion work buffer if
16304 DST_OBJECT is a buffer.
16305
163062008-02-01 Dave Love <fx@gnu.org>
16307
16308 * lread.c (read_emacs_mule_char) [len==2]: Index
16309 emacs_mule_charset correctly.
16310
163112008-02-01 Dave Love <fx@gnu.org>
16312
16313 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16314 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16315 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16316 treated specially.)
16317 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16318 (detected_mask): Remove Big5 bits.
16319
163202008-02-01 Kenichi Handa <handa@m17n.org>
16321
16322 The following changes are to make the font rescaling facility
16323 compatible with Emacs 21.
16324
16325 * xfaces.c (Vface_font_rescale_alist): Rename from
16326 Vface_resizing_fonts.
16327 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16328 (font_rescale_ratio): Rename from font_resizing_ratio.
16329 (split_font_name): Set font->rescale_ratio.
16330 (better_font_p): Pay attention to font->rescale_ratio.
16331 (build_scalable_font_name): Likewise. Change RESX, and RESY
16332 fields.
16333 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16334
163352008-02-01 Kenichi Handa <handa@m17n.org>
16336
16337 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16338 (Qutf_16_le): Remove these variables.
16339 (syms_of_coding): Don't DEFSYM them.
16340 (decode_coding_utf_16): Fix handling of BOM.
16341 (encode_coding_utf_16): Fix handling of BOM.
16342
163432008-02-01 Kenichi Handa <handa@m17n.org>
16344
16345 * fileio.c (Finsert_file_contents): On replacing, before decoding
16346 the file into the work buffer, set point of the work buffer to the end.
16347
163482008-02-01 Dave Love <fx@gnu.org>
16349
16350 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16351
163522008-02-01 Dave Love <fx@gnu.org>
16353
16354 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16355 and fix C types.
16356
163572008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * xdisp.c (SKIP_GLYPHS): New macro.
16360 (set_cursor_from_row): Pay attention to string display properties.
16361
16362 * category.c (copy_category_entry): Fix for the case that RANGE
16363 is an integer.
16364
16365 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16366
16367 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16368
163692008-02-01 Kenichi Handa <handa@m17n.org>
16370
16371 * charset.c (Fcharset_id_internal): New function.
16372 (syms_of_charset): Defsubr it.
16373
16374 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16375 with the last arg charset_list acquired from coding.
16376 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16377 the attribute coding_attr_ccl_valids.
16378
16379 * coding.h (enum define_coding_ccl_arg_index): Set the first
16380 member coding_arg_ccl_decoder to coding_arg_max.
16381
16382 * ccl.h (ccl_driver): Adjust prototype.
16383
16384 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16385 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16386 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16387 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16388 last arg Qnil.
16389
163902008-02-01 Kenichi Handa <handa@m17n.org>
16391
16392 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16393 call encode_char.
16394
16395 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16396
163972008-02-01 Dave Love <fx@gnu.org>
16398
16399 * composite.c (syms_of_composite): Make composition_hash_table weak.
16400
164012008-02-01 Kenichi Handa <handa@m17n.org>
16402
16403 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16404 (font_name_registry): Don't extern them.
16405 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16406
16407 * fontset.h (Qfontset): Don't extern it.
16408 (new_fontset_from_font_name): Extern it.
16409
16410 * fontset.c: Give 8 extra slots to fontset objects.
16411 (Qfontset_info): New variable.
16412 (syms_of_fontset): Defsym it.
16413 (FONTSET_FALLBACK): New macro.
16414 (fontset_face): Try also the default fontset.
16415 (make_fontset): Realize a fallback fontset from the default fontset.
16416 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16417 using split_font_name_into_vector and build_font_name_from_vector.
16418 (Fset_fontset_font): Access the elements of font_spec by enum
16419 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16420 name by using split_font_name_into_vector.
16421 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16422 generate a proper font name from the fontset name. Update
16423 Vfontset_alias_alist.
16424 (n_auto_fontsets): New variable.
16425 (new_fontset_from_font_name): New function.
16426 (Ffont_info): Store the information about fonts generated from the
16427 default fontset in the first extra slot of the returned char-table.
16428
16429 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16430 (font_name_registry): Delete function.
16431 (split_font_name_into_vector): New function.
16432 (build_font_name_from_vector): New function.
16433 (font_list): The argument REGISTRY is now a list of registry names.
16434 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16435 specifies an explicit font name, return the name as is. Make a
16436 list of registy names.
16437
16438 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16439 of x_new_fontset.
16440 (Fx_create_frame): Don't call x_new_fontset here. Just use
16441 x_list_fonts to check the existence of fonts.
16442
16443 * xterm.h (x_new_fontset): Adjust prototype.
16444
16445 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16446 string. Use new_fontset_from_font_name to create a fontset from a
16447 font name.
16448
164492008-02-01 Kenichi Handa <handa@m17n.org>
16450
16451 * syntax.c (Vfind_word_boundary_function_table): New name for
16452 Vnext_word_boundary_function_table.
16453 (find-word-boundary-function-table): New name for
16454 next-word-boundary-function-table.
16455
164562008-02-01 Dave Love <fx@gnu.org>
16457
16458 * Makefile.in: Fix some dependencies.
16459
16460 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16461 set it to nil before returning.
16462
16463 * composite.c (update_compositions): Fix type error.
16464
16465 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16466
164672008-02-01 Kenichi Handa <handa@m17n.org>
16468
16469 * xterm.c (x_new_font): Optimize for the case that the font is
16470 already set for the frame.
16471
164722008-02-01 Kenichi Handa <handa@m17n.org>
16473
16474 * chartab.c (char_table_ascii): Check if the char table contents
16475 is sub-char-table or not.
16476 (char_table_set, char_table_set_range): Fix argument to
16477 char_table_ascii.
16478
16479 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16480 (detect_coding_utf_8, detect_coding_utf_16)
16481 (detect_coding_emacs_mule, detect_coding_iso_2022)
16482 (detect_coding_sjis, detect_coding_big5)
16483 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16484 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16485 sequence is valid in this coding system. Change callers.
16486 (MAX_ANNOTATION_LENGTH): New macro.
16487 (ADD_ANNOTATION_DATA): New macro.
16488 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16489 ADD_ANNOTATION_DATA. Change the format of annotation data.
16490 (ADD_CHARSET_DATA): New macro.
16491 (emacs_mule_char): New argument ID. Change callers.
16492 (decode_coding_emacs_mule, decode_coding_iso_2022)
16493 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16494 Produce charset annotation data in coding->charbuf.
16495 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16496 to charset annotation data in coding->charbuf.
16497 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16498 coding->common_flags if the coding system is iso-2022 based and
16499 uses designation.
16500 (produce_composition): Adjust for the new annotation data format.
16501 (produce_charset): New function.
16502 (produce_annotation): Handle charset annotation.
16503 (handle_composition_annotation, handle_charset_annotation): New
16504 functions.
16505 (consume_chars): Handle charset annotation. Utilize the above two
16506 functions.
16507 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16508 buffer, get the deleted text as a string and set
16509 coding->src_object to that string.
16510 (detect_coding, detect_coding_system): Use the new struct
16511 coding_detection_info.
16512
16513 * coding.h (struct coding_detection_info): New structure.
16514 (struct coding_system): Adjust prototype of the member `detector'.
16515 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16516
165172008-02-01 Kenichi Handa <handa@m17n.org>
16518
16519 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16520
165212008-02-01 Dave Love <fx@gnu.org>
16522
16523 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16524 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16525 to new local and nullify apropos_accumulate before returning.
16526 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16527
165282008-02-01 Kenichi Handa <handa@m17n.org>
16529
16530 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16531 correctly.
e3eea1fc 16532
aac0c6e3
MR
165332008-02-01 Dave Love <fx@gnu.org>
16534
16535 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16536
165372008-02-01 Kenichi Handa <handa@m17n.org>
16538
16539 The following changes are to make character composition happen
16540 automatically on displaying.
16541
16542 * Makefile.in (lisp, shortlisp): Add composite.elc.
16543
16544 * composite.h (Qauto_composed, Vauto_composition_function)
16545 (Qauto_composition_function): Extern them.
16546
16547 * composite.c (Vcomposition_function_table)
16548 (Qcomposition_function_table): Delete variables.
16549 (Qauto_composed, Vauto_composition_function)
16550 (Qauto_composition_function): New variables.
16551 (run_composition_function): Don't call
16552 compose-chars-after-function.
16553 (update_compositions): Clear `auto-composed' text property.
16554 (compose_chars_in_text): Delete this function.
16555 (syms_of_composite): Staticpro Qauto_composed and
16556 Qauto_composition_function. Declare Vauto_composition_function as
16557 a Lisp variable.
16558
16559 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16560
16561 * xdisp.c (it_props): Add an entry for Qauto_composed.
16562 (handle_auto_composed_prop): New function.
16563
16564 * xselect.c (selection_data_to_lisp_data): Don't call
16565 compose_chars_in_text.
16566
165672008-02-01 Dave Love <fx@gnu.org>
16568
16569 * keyboard.c (read_char): Modify checking around use of
16570 Vkeyboard_translate_table.
16571
16572 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16573 and fix C types.
16574
165752008-02-01 Kenichi Handa <handa@m17n.org>
16576
16577 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16578 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16579 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16580 the case that the last byte is '\r' correctly.
16581 (decode_coding): Flush out the unprocessed data correctly.
16582 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16583
165842008-02-01 Dave Love <fx@gnu.org>
16585
16586 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16587 Add XK_ISO... case.
16588 (xaw_scroll_callback): Revert last change.
16589
165902008-02-01 Kenichi Handa <handa@m17n.org>
16591
16592 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16593
165942008-02-01 Kenichi Handa <handa@m17n.org>
16595
16596 * xfaces.c (Vface_resizing_fonts): New variable.
16597 (struct font_name): New member `resizing_ratio'.
16598 (font_resizing_ratio): New function.
16599 (split_font_name): Set font->resizing_ratio.
16600 (better_font_p): Pay attention to font->resizing_ratio.
16601 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16602 RESX, and RESY fields.
16603 (try_alternative_families): Try scalable fonts if
16604 Vscalable_fonts_allowed is not Qt.
16605 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16606
166072008-02-01 Dave Love <fx@gnu.org>
16608
16609 * xterm.c (xaw_scroll_callback): Cast correctly.
16610
166112008-02-01 Dave Love <fx@gnu.org>
16612
16613 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16614 (lispy_kana_keys): Comment out.
16615 (make_lispy_event) [XK_kana_A]: Comment out.
16616
16617 * xterm.c (xaw_scroll_callback): Cast call_data.
16618 (XTread_socket): Deal with ASCII keysyms.
16619 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16620
166212008-02-01 Dave Love <fx@gnu.org>
16622
16623 * xterm.c (Vx_keysym_table): New.
16624 (syms_of_xterm): Initialize it.
16625 (XTread_socket): Use it.
16626 From head: Eliminate incorrect optimization that tried to avoid
16627 decoding the output of X*LookupString.
16628 (x_get_font_repertory): Delete charset declaration.
16629
166302008-02-01 Kenichi Handa <handa@m17n.org>
16631
16632 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16633 return 0.
16634 (Fdefine_coding_system_internal): Setup
16635 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
16636
166372008-02-01 Dave Love <fx@gnu.org>
16638
16639 * coding.c (Fcheck_coding_system): Doc fix.
16640
16641 * editfns.c (Finsert_byte): Return a proper value.
16642
166432008-02-01 Kenichi Handa <handa@m17n.org>
16644
16645 * coding.c (decode_coding): Fix args to translate_chars. Pay
16646 attention to Vstandard_translation_table_for_decode.
16647 (encode_coding): Fix args to translate_chars. Pay attention to
16648 Vstandard_translation_table_for_encode.
16649
16650 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
16651 SINGLE_BYTE_CHAR_P.
16652
16653 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
16654 not by SINGLE_BYTE_CHAR_P.
16655
16656 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
16657 SINGLE_BYTE_CHAR_P.
16658
16659 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
16660 SINGLE_BYTE_CHAR_P.
16661
16662 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
16663 by SINGLE_BYTE_CHAR_P.
16664
16665 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
16666 SINGLE_BYTE_CHAR_P.
16667
166682008-02-01 Dave Love <fx@gnu.org>
16669
16670 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
16671
166722008-02-01 Dave Love <fx@gnu.org>
16673
16674 * fns.c (Flanginfo): Fix typo.
16675
16676 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
16677
166782008-02-01 Kenichi Handa <handa@m17n.org>
16679
16680 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
16681 (detect_coding_emacs_mule, detect_coding_iso_2022)
16682 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
16683 incomplete byte sequence. Don't update *mask when correctly detected.
16684 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
16685 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
16686 (detect_coding, detect_coding_system): Adjust for the changes above.
16687
166882008-02-01 Kenichi Handa <handa@m17n.org>
16689
16690 * character.c (char_string): Rename from
16691 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
16692 (string_char): Rename from string_char.
16693
16694 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
16695 if C is greater than MAX_3_BYTE_CHAR.
16696 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
16697 string_char instead of string_char_with_unification.
16698
166992008-02-01 Dave Love <fx@gnu.org>
16700
16701 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
16702
167032008-02-01 Kenichi Handa <handa@m17n.org>
16704
16705 * keymap.c (push_key_description): Pay attention to force_multibyte.
16706
16707 * regex.c (re_search_2): Fix for the case of unibyte buffer.
16708
167092008-02-01 Dave Love <fx@gnu.org>
16710
16711 * charset.c (define_charset_internal): Rename `supprementary'.
16712
16713 * Makefile.in (lisp, shortlisp): Remove latin-N.
16714
167152008-02-01 Dave Love <fx@gnu.org>
16716
16717 * xfns.c (x_window, x_window): Use use_xim.
16718
16719 * xterm.c (use_xim): Initialize.
16720 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16721 (x_term_init): Maybe set use_xim.
16722
16723 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16724
167252008-02-01 Kenichi Handa <handa@m17n.org>
16726
16727 * search.c (search_buffer): Fix case-fold-search of multibyte
16728 characters.
16729 (boyer_moore): Rename the last argument to char_high_bits.
16730
167312008-02-01 Kenichi Handa <handa@m17n.org>
16732
16733 * xdisp.c (display_string): Fix for the case of zero width glyph.
16734
16735 * xfns.c (x_set_font): Change the error message of the case that
16736 x_new_fontset returns Qt.
16737
16738 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
16739 (Finternal_set_lisp_face_attribute): Use signal_error for the
16740 error of invalid fontset.
16741
16742 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
16743 fontset, return Qt.
16744
167452008-02-01 Dave Love <fx@gnu.org>
16746
16747 * unexelf.c (unexec): Make .got handling not SGI-specific.
16748
16749 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
16750
16751 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
16752
16753 * keyboard.c (read_key_sequence): Fix type error.
16754
16755 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
16756 type error.
16757
16758 * fontset.c (fontset_add): Return Lisp_Object.
16759
167602008-02-01 Dave Love <fx@gnu.org>
16761
16762 * charset.h (charset_ordered_list_tick): Declare extern.
16763
167642008-02-01 Kenichi Handa <handa@m17n.org>
16765
16766 The following changes (and some of 2008-02-01 changes of mine) are
16767 for handling syntax, category, and case conversion for unibyte
16768 characters by converting them to multibyte on the fly. With these
16769 changes, we don't have to setup syntax and case tables for unibyte
16770 characters in each language environment.
16771
16772 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
16773 multibyte if necessary.
16774
16775 * bytecode.c (Fbyte_code): Likewise.
16776
16777 * character.h (LEADING_CODE_LATIN_1_MIN)
16778 (LEADING_CODE_LATIN_1_MAX): New macros.
16779 (unibyte_to_multibyte_table): Extern it.
16780 (unibyte_char_to_multibyte): New macro.
16781 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
16782 (CHAR_LEADING_CODE): New macro.
16783 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
16784
16785 * character.c (unibyte_to_multibyte_table): New variable.
16786 (unibyte_char_to_multibyte): Move to character.h and define as macro.
16787 (multibyte_char_to_unibyte): If C is an eight-bit character,
16788 convert it to the corresponding byte value.
16789
16790 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
16791 not 1, signals an error. Update the elements of
16792 unibyte_to_multibyte_table.
16793 (init_charset_once): Initialize unibyte_to_multibyte_table.
16794 (syms_of_charset): Define the charset `iso-8859-1'.
16795
16796 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16797 as is without converting it to unibyte. In a unibyte buffer,
16798 convert C to multibyte before checking the syntax.
16799
16800 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16801
16802 * minibuf.c (Fminibuffer_complete_word): Use the macro
16803 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16804
16805 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16806
16807 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16808 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16809 that is zero, convert an eight-bit char to multibyte.
16810 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16811 non-emacs case.
16812 (PATFETCH): Convert an eight-bit char to multibyte.
16813 (HANDLE_UNIBYTE_RANGE): New macro.
16814 (regex_compile): Setup the compiled pattern for multibyte chars
16815 even if the given regex string is unibyte. Use PATFETCH_RAW
16816 instead of PATFETCH in many places. To handle `charset'
16817 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16818 only for ASCII chars.
16819 (analyse_first) <exactn>: Simplify because the compiled pattern
16820 is multibyte.
16821 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16822 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16823 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16824 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16825 multibyte always 1.
16826 (re_search_2): In emacs, set the locale variable multibyte to 1,
16827 otherwise to 0. New local variable target_multibyte. Check it
16828 to decide the multibyteness of STR1 and STR2. If
16829 target_multibyte is zero, convert unibyte chars to multibyte
16830 before translating and checking fastmap.
16831 (TARGET_CHAR_AND_LENGTH): New macro.
16832 (re_match_2_internal): In emacs, set the locale variable multibyte
16833 to 1, otherwise to 0. New local variable target_multibyte. Check
16834 it to decide the multibyteness of STR1 and STR2. Use
16835 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16836 <charset, charset_not>: If multibyte is nonzero, check fastmap
16837 only for ASCII chars. Call bcmp_translate with
16838 target_multibyte, not with multibyte.
16839 <begline>: Declare the local variable C as `unsigned'.
16840 (bcmp_translate): Change the last arg name to target_multibyte.
16841
16842 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16843 the regexp pattern and the matching target. Set cp->buf.multibyte
16844 to the multibyteness of the regexp pattern. Set
16845 cp->but.target_multibyte to the multibyteness of the matching target.
16846 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16847 FETCH_STRING_CHAR_ADVANCE.
16848 (Freplace_match): Convert unibyte chars to multibyte.
16849
16850 * syntax.c (char_quoted, back_comment, scan_words)
16851 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16852 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16853 unibyte chars to multibyte.
16854 (skip_chars): Delete the arg syntaxp, and move the code for
16855 handling syntaxes to skip_syntaxes. Change callers.
16856 Fix the case that the multibyteness of STRING and the current
16857 buffer doesn't match.
16858 (skip_syntaxes): New function.
16859 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16860 SINGLE_BYTE_CHAR_P.
16861
168622008-02-01 Kenichi Handa <handa@m17n.org>
16863
16864 * xfaces.c (QCfontset): New variable.
16865 (LFACE_FONTSET): New macro.
16866 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16867 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16868 (Finternal_set_lisp_face_attribute)
16869 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16870 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16871 check also LFACE_FONTSET_INDEX.
16872 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16873 attrs[LFACE_FONT_INDEX].
16874 (syms_of_xfaces): Intern and staticpro QCfontset.
16875
16876 * dispextern.h (enum lface_attribute_index): New member
16877 LFACE_FONTSET_INDEX.
16878
16879 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16880
168812008-02-01 Kenichi Handa <handa@m17n.org>
16882
16883 * coding.c (coding_set_destination): Fix coding->destination for
16884 the case converting a region.
16885 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16886 (encode_coding_object): Fix coding->dst_pos and
16887 coding->dst_pos_byte for the case converting a region.
16888
16889 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16890
16891 * character.h (BYTE8_STRING): New macro.
16892
16893 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16894
168952008-02-01 Kenichi Handa <handa@m17n.org>
16896
16897 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16898 characters by octal form.
16899
16900 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16901
16902 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16903 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16904 _fetch_multibyte_char_len.
16905 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16906
16907 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16908
16909 * casefiddle.c (casify_object): Simplify. Handle the case that
16910 the case conversion change the byte length.
16911 (casify_region): Likewise.
16912
16913 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16914
16915 * character.c (_fetch_multibyte_char_len): Delete this variable.
16916 (syms_of_character): Setup Vprintable_chars.
16917
16918 * editfns.c (Fchar_equal): Fix for the unibyte case.
16919 (Finsert_byte): New function.
16920 (syms_of_editfns): Defsubr it.
16921
16922 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16923 of direct code 0x3ffff.
16924
16925 * search.c (Freplace_match): Fix for the unibyte case.
16926
169272008-02-01 Kenichi Handa <handa@m17n.org>
16928
16929 * lread.c (safe_to_load_p): Fix the logic.
16930
16931 * syntax.c (scan_words): Don't treat characters belonging to
16932 different scripts as constituting a word.
16933
16934 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16935
16936 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16937
16938 * emacs.c (main): In the case of --unibyte, instead of aborting on
16939 finding non-empty buffer, make it unibyte.
16940
169412008-02-01 Kenichi Handa <handa@m17n.org>
16942
16943 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16944 to create a fontset.
16945
169462008-02-01 Dave Love <fx@gnu.org>
16947
16948 * character.c (Funibyte_char_to_multibyte): Doc fix.
16949
16950 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16951
169522008-02-01 Kenichi Handa <handa@m17n.org>
16953
16954 * fontset.c (fontset_add): Make the type `int'.
16955 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16956
16957 * character.c (unibyte_char_to_multibyte)
16958 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16959 charset_unibyte, not charset_primary.
16960
16961 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16962
16963 * charset.c (charset_unibyte): Rename from charset_primary.
16964 (Funibyte_charset): Rename from Fprimary_charset.
16965 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16966 (syms_of_charset): Adjust for the above changes.
16967
16968 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16969 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16970 it->multibyte_p is zero.
16971
16972 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16973 Delete extern.
16974
169752008-02-01 Kenichi Handa <handa@m17n.org>
16976
16977 * coding.c (Fdefine_coding_system_internal): Fix category setting
16978 for a coding system of type iso-2022.
16979
169802008-02-01 Kenichi Handa <handa@m17n.org>
16981
16982 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16983
169842008-02-01 Kenichi Handa <handa@m17n.org>
16985
16986 * syntax.c (Vnext_word_boundary_function_table): New variable.
16987 (next-word-boundary-function-table): Declare it as a Lisp variable
16988 in syms_of_syntax.
16989 (scan_words): Call functions in Vnext_word_boundary_function_table
16990 if any.
16991
16992 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16993
16994 * fontset.c (fs_load_font): If fontp->charset is not negative,
16995 return fontp without setting its members.
16996
169972008-02-01 Dave Love <fx@gnu.org>
16998
16999 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17000
17001 * m/sparc.h (HAVE_ALLOCA): Delete.
17002
17003 * s/irix6-5.h: Don't include strings.h.
17004 (bcopy, bzero, bcmp): Don't undef.
17005
17006 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17007
17008 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17009 (TIOCSIGSEND): Don't test IRIX6.
17010 (bcopy, bzero, bcmp): Define conditionally.
17011
170122008-02-01 Kenichi Handa <handa@m17n.org>
17013
17014 * buffer.c (Qas, Qmake, Qto): New variables.
17015 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17016 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17017
17018 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17019 we are inserting a process output into a multibyte buffer.
17020
17021 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17022 multibyte_char_to_unibyte.
17023
17024 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17025 by the primary charset, make it eight-bit char.
17026 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17027
17028 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17029 (charset_8_bit__control, charset_8_bit_graphic)
17030 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17031 (define_charset_internal): New function.
17032 (syms_of_charset): Call define_charset_internal for pre-defined
17033 charsets.
17034
17035 * charset.h (charset_8_bit): Extern it.
17036
17037 * coding.c (make_conversion_work_buffer): Adjust for the change
17038 of Fset_buffer_multibyte.
17039 (encode_coding_raw_text): Increment p0 in the loop.
17040
17041 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17042
17043 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17044 for the change of Fset_buffer_multibyte.
17045
17046 * fns.c (Fstring_to_multibyte): New function.
17047 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17048
170492008-02-01 Dave Love <fx@gnu.org>
17050
17051 * xfns.c (x_put_x_image): Declare args.
17052
17053 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17054 (try_font_list): Declare an arg.
17055
17056 * xdisp.c (message2_nolog, set_message): Declare an arg.
17057
17058 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17059
17060 * syntax.c (scan_sexps_forward): Declare an arg.
17061
17062 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17063 Declare an arg.
17064
17065 * lisp.h (Fnew_fontset): Declare.
17066
17067 * keymap.c (push_key_description): Call CHARACTERP correctly.
17068
17069 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17070 (face_for_char): Delete unused vars.
17071 (Fset_fontset_font): Doc fix. Delete unused vars.
17072
17073 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17074
17075 * composite.c (update_compositions): Declare arg.
17076
17077 * cm.c (calccost, cmgoto): Declare args.
17078
17079 * charset.c: Remove `emacs' conditional. Doc fixes.
17080 (map_char_table_for_charset): Declare.
17081
17082 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17083
17084 * ccl.c: Remove `emacs' conditional.
17085
170862008-02-01 Kenichi Handa <handa@m17n.org>
17087
17088 The following changes are to allow specifying multiple font
17089 patterns for a character range (specified by script or charset).
17090
17091 * Makefile.in (abbrev.o): Depend on syntax.h.
17092 (xfaces.o): Depend on charset.h.
17093
17094 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17095 SINGLE_BYTE_CHAR_P.
17096
17097 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17098
17099 * character.h (Vchar_script_table): Extern it.
17100
17101 * character.c (Vscript_alist): Delete.
17102 (Vchar_script_table, Qchar_script_table): New variable.
17103 (syms_of_character): Declare Vchar_script_table as a lisp variable
17104 and initialize it.
17105
17106 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17107 have property char-table-extra-slots, make no extra slot.
17108
17109 * dispextern.h (struct face): Delete member `charset'.
17110 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17111 SINGLE_BYTE_CHAR_P.
17112 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17113 Add prototypes.
17114 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17115 (generate_ascii_font_name): Rename from generate_ascii_font.
17116
17117 * fontset.h (get_font_repertory_func): New prototype.
17118 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17119 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17120
17121 * fontset.c (Qprepend, Qappend): New variables.
17122 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17123 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17124 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17125 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17126 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17127 (load_font_get_repertory): New functions.
17128 (fontset_set): Delete.
17129 (fontset_face): New arg FACE. Return face ID, not face.
17130 Complete re-write to handle new fontset structure. Change caller.
17131 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17132 (face_for_char): Don't call lookup_face.
17133 (make_fontset_for_ascii_face): New arg FACE.
17134 (fs_load_font): New arg CHARSET_ID. Don't check
17135 Vfont_encoding_alist here.
17136 (find_font_encoding): New function.
17137 (list_fontsets): Use STRINGP, not ! NILP.
17138 (accumulate_script_ranges): New function.
17139 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17140 re-written to handle new fontset structure.
17141 (Ffontset_font): Return a copy of element.
17142 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17143 docstring of font-encoding-alist.
17144
17145 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17146 (Fset_fotset_font): Fix arguments to 5.
17147
17148 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17149
17150 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17151 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17152 (highlight_trailing_whitespace): Adjust for the change of
17153 lookup_named_face.
17154
17155 * xfaces.c: Include charset.h.
17156 (load_face_font): Delete argument C. Change caller.
17157 (generate_ascii_font_name): Rename from generate_ascii_font.
17158 (font_name_registry): New function.
17159 (cache_face): Store ascii faces before non-ascii faces in buckets.
17160 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17161 Lookup only ascii faces.
17162 (lookup_non_ascii_face): New function.
17163 (lookup_named_face): Delete argument C. Change caller.
17164 (lookup_derived_face): Delete argument C. Change caller.
17165 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17166 a string, just call font_list with it.
17167 (choose_face_font): Delete arguments FACE and C. New arg
17168 FONT_SPEC. Change caller.
17169 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17170 Change caller.
17171 (realize_non_ascii_face): New function.
17172 (realize_x_face): Call load_face_font here.
17173 (realize_tty_face): Delete argument C. Change caller.
17174 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17175 get a face ID.
17176 (dump_realized_face): Don't print charset of FACE.
17177
17178 * xfns.c (x_set_font): Always call x_new_fontset and
17179 store_frame_parameter.
17180 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17181 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17182
17183 * xterm.h (x_get_font_repertory): Extern it.
17184
17185 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17186 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17187 it->multibyte_p is zero.
17188 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17189 (x_new_fontset): If FONTSETNAME doesn't match any existing
17190 fontsets, create a new one.
17191 (x_get_font_repertory): New function.
17192
171932008-02-01 Kenichi Handa <handa@m17n.org>
17194
17195 * coding.c (Ffind_coding_systems_region_internal): Detect an
17196 ASCII only string correctly.
17197
17198 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17199 version is 0.
17200
172012008-02-01 Kenichi Handa <handa@m17n.org>
17202
17203 * lread.c: Include "coding.h".
17204 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17205 (load_each_byte, unread_char): New variables.
17206 (readchar_backlog): Delete.
17207 (readchar): Return a character unless load_each_byte is nonzero.
17208 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17209 cons. If unread_char is not -1, simply return it.
17210 (unreadchar): Handle the case that readcharfun is
17211 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17212 (read_multibyte): Delete.
17213 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17214 (read_emacs_mule_char): New functions.
17215 (Fload): Even if the file doesn't have the extension ".elc", if
17216 safe_to_load_p returns a positive version number, assume that the
17217 file contains bytecompiled code. If the version is less than 22,
17218 load the file while decoding multibyte sequences by emacs-mule.
17219 (readevalloop): Don't use readchar_backlog.
17220 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17221 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17222 (read_escape): Delete the arg BYTEREP.
17223 (read1): Set load_each_byte to 1 temporarily while handling
17224 #@NUMBER. Don't call read_multibyte.
17225 (read_vector): Call Fread with a cons. If readcharfun is
17226 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17227 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17228 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17229 and Qload_force_doc_strings.
17230
172312008-02-01 Kenichi Handa <handa@m17n.org>
17232
17233 * xdisp.c (face_before_or_after_it_pos): Call
17234 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17235
172362008-02-01 Kenichi Handa <handa@m17n.org>
17237
17238 * character.h (TRAILING_CODE_P): New macro.
17239 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17240 (string_char_with_unification): Fix prototype.
17241 (Vscript_alist): Extern it.
17242
17243 * character.c (Vscript_alist): New variable.
17244 (string_char_with_unification, str_as_unibyte)
17245 (string_escape_byte8): Add `const' to local variables.
17246 (syms_of_character): Declare script-alist as a Lisp variable.
17247
17248 * charset.h (Vcharset_ordered_list): Extern it.
17249 (charset_ordered_list_tick): Extern it.
17250 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17251 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17252 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17253 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17254 (Funify_charset): Adjust for the change of Funify_charset.
17255
17256 * charset.c (charset_ordered_list_tick): New variable.
17257 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17258 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17259 deunify intead of unify a charset.
17260 (string_xstring_p): Add `const' to local variables.
17261 (find_charsets_in_text): Add `const' to arguments and local variables.
17262 (encode_char): Adjust for the change of Funify_charset. Fix
17263 detecting of invalid code.
17264 (Fset_charset_priority): Increment charset_ordered_list_tick.
17265 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17266 and TO_CODE.
17267
17268 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17269 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17270 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17271 (decode_coding_ccl, consume_chars)
17272 (Ffind_coding_systems_region_internal)
17273 (Fcheck_coding_systems_region): Add `const' to local variables.
17274
17275 * print.c (print_object): Use octal form for printing the
17276 contents of a bool vector.
17277
172782008-02-01 Dave Love <fx@gnu.org>
17279
17280 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17281 <version == 20>: Refuse to load.
17282
172832008-02-01 Dave Love <fx@gnu.org>
17284
17285 * fns.c: Move coding.h.
17286 (Qcodeset, Qdays, Qmonths): New.
17287 (concat): Use CHARACTERP instead of INTEGERP.
17288 (Flocale_codeset): Delete.
17289 (Flanginfo): New function.
17290 (syms_of_fns): Change accordingly.
17291
17292 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17293
172942008-02-01 Dave Love <fx@gnu.org>
17295
17296 * casetab.c (init_casetab_once, init_casetab_once): Fix
17297 CHAR_TABLE_SET call.
17298
17299 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17300
17301 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17302
17303 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17304 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17305 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17306
17307 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17308
17309 * coding.c (ENCODE_DESIGNATION, decode_eol)
17310 (make_conversion_work_buffer, code_conversion_restore)
17311 (Fdefine_coding_system_internal): Convert Lisp types.
17312 (code_conversion_restore): Use EQ, not ==.
17313 (Fencode_coding_string): Fix code_convert_string call.
17314
17315 * coding.h (code_convert_region): Fix prototype.
17316
17317 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17318
17319 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17320 (Ffontset_info): Convert Lisp types.
17321
17322 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17323
17324 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17325
17326 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17327
17328 * chartab.c: Include "...h", not <...h> in some cases.
17329
17330 * callproc.c (Fcall_process): Remove unused variables.
17331
173322008-02-01 Dave Love <fx@gnu.org>
17333
17334 * coding.c (Fset_coding_system_priority): Allow null arg list.
17335
173362008-02-01 Dave Love <fx@gnu.org>
17337
17338 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17339 (Fself_insert_and_exit): Use CHARACTERP.
17340
17341 * callproc.c (Fcall_process): Remove unused vars.
17342
17343 * xterm.c (XTread_socket): Add extra dead keysyms.
17344
17345 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17346
17347 * dispextern.h: Remove prototypes for redraw_frame,
17348 redraw_garbaged_frames.
17349
17350 * cmds.c (Fself_insert_command): Use CHARACTERP.
17351
17352 * chartab.c (make_sub_char_table): Remove unused var.
17353 (Fset_char_table_default, Fmap_char_table): Doc fix.
17354
17355 * keymap.c (access_keymap): Remove generic char code.
17356 (push_key_description): Use CHARACTERP.
17357
173582008-02-01 Dave Love <fx@gnu.org>
17359
17360 * charset.c: Doc fixes.
17361 (Funify_charset): Extra checking.
17362
173632008-02-01 Dave Love <fx@gnu.org>
17364
17365 * lread.c: Remove some unused variables.
17366 (safe_to_load_p): If safe, return the magic number version byte.
17367 (Fload): Maybe use load-with-code-conversion.
17368
173692008-02-01 Kenichi Handa <handa@m17n.org>
17370
17371 * category.c (Fmodify_category_entry): Don't modify the contents
17372 of category_set for characters out of the range. Avoid
17373 unnecessary modification.
17374
17375 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17376 Vchar_unify_table. The default value of the table is now nil.
17377
17378 * character.c (syms_of_character): Setup Vchar_width_table for
17379 eight-bit-control and raw-byte chars.
17380
17381 * charset.h (enum define_charset_arg_index): Delete
17382 charset_arg_parents and add charset_arg_subset and
17383 charset_arg_superset.
17384 (enum charset_attr_index): Delete charset_parents and add
17385 charset_subset and charset_superset.
17386 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17387 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17388 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17389 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17390 (CHARSET_SUPERSET): New macros.
17391 (charset_work): Extern it.
17392 (ENCODE_CHAR): Use charset_work.
17393 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17394 (map_charset_chars): Extern it.
17395
17396 * charset.c (load_charset_map): Set the default value of encoder
17397 and deunifier char-tables to nil.
17398 (map_charset_chars): Change argument. Change callers. Use
17399 map_char_table_for_charset instead of map_char_table.
17400 (Fmap_charset_chars): New optional args from_code and to_code.
17401 (Fdefine_charset_internal): Adjust for the change of
17402 `define-charset' (:parents -> :subset or :superset).
17403 (charset_work): New variable.
17404 (encode_char, syms_of_charset): Adjust for the change of
17405 Fdefine_charset_internal.
17406 (Ffind_charset_string): Setup the vector `charsets' correctly.
17407
17408 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17409 the previous change.
17410 (char_table_ref_and_range): Adjust for the above change.
17411 (map_sub_char_table_for_charset): New function.
17412 (map_char_table_for_charset): New function.
17413
17414 * keymap.c (describe_vector): Handle a char-table directly here.
17415 (describe_char_table): Delete.
17416
17417 * lisp.h (map_charset_chars): Delete.
17418
174192008-02-01 Dave Love <fx@gnu.org>
17420
17421 * fns.c (count_combining): Comment out (unused).
17422 (Flocale_codeset): New.
17423 (syms_of_fns): Defsubr it.
17424
17425 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17426 (size_t): Remove.
17427
174282008-02-01 Dave Love <fx@gnu.org>
17429
17430 * Makefile.in (chartab.o): Depend on charset.h.
17431
174322008-02-01 Kenichi Handa <handa@m17n.org>
17433
17434 * character.c (syms_of_character): Set the default value of
17435 Vprintable_chars to Qnil.
17436
174372008-02-01 Dave Love <fx@gnu.org>
17438
17439 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17440
174412008-02-01 Kenichi Handa <handa@m17n.org>
17442
17443 * charset.c (load_charset_map): Handle the case that from < to
17444 correctly.
17445
17446 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17447 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17448 Pay attention to raw-8-bit chars.
17449
174502008-02-01 Kenichi Handa <handa@m17n.org>
17451
17452 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17453 It is not bytecompiled now.
17454
17455 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17456 (charset_jisx0208): New variables.
17457 (Fdefine_charset_internal): Setup them if appropriate.
17458 (init_charset_once): Initialize them to -1.
17459
17460 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17461 (charset_jisx0208): Extern them.
17462
17463 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17464 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17465 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17466 (setup_iso_safe_charsets): Fix arguments to Fassq.
17467 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17468 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17469 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17470 (encode_coding_iso_2022): Change the 1st arg to
17471 ENCODE_ISO_CHARACTER to a variable.
17472
174732008-02-01 Kenichi Handa <handa@m17n.org>
17474
17475 * charset.h (enum define_charset_arg_index): New enums
17476 charset_arg_min_code and charset_arg_max_code.
17477 (struct charset): New member char_index_offset.
17478
17479 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17480 Take charset->char_index_offset into account.
17481 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17482 args[charset_arg_max_code]. Setup charset.char_index_offset.
17483 (syms_of_charset): Fix args to Fdefine_charset_internal.
17484
174852008-02-01 Dave Love <fx@gnu.org>
17486
17487 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17488
174892008-02-01 Dave Love <fx@gnu.org>
17490
17491 * coding.c: Doc fixes.
17492 (Fcoding_system_aliases): Fix return value.
17493 (Qmac): Remove (duplicated) definition.
17494
174952008-02-01 Dave Love <fx@gnu.org>
17496
362654a6
JB
17497 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17498 New functions.
aac0c6e3
MR
17499
17500 * character.c (Fstring): Doc fix.
17501
17502 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17503
362654a6 17504 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17505 (font-encoding-alist): Doc fix.
17506
175072008-02-01 Dave Love <fx@gnu.org>
17508
17509 * term.c (costs_set): Declare static, non-initialized for pcc.
17510 (encode_terminal_code): Remove unused var.
17511
17512 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17513 for K&R.
17514
17515 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17516
17517 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17518 (suffixes): Move out of make_subsidiaries for K&R.
17519
17520 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17521
17522 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17523
175242008-02-01 Dave Love <fx@gnu.org>
17525
17526 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17527
17528 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17529
175302008-02-01 Yong Lu <lyongu@asia-infonet.com>
17531
17532 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17533
17534 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17535
175362008-02-01 Kenichi Handa <handa@m17n.org>
17537
17538 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17539 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17540
175412008-02-01 Kenichi Handa <handa@m17n.org>
17542
17543 * coding.c (decode_coding_charset): Adjust for the change of
17544 Fdefine_coding_system_internal.
17545 (Fdefine_coding_system_internal): For a coding system of
17546 `charset' type, store a list of charset IDs in
17547 `charset_attr_charset_valids' element of coding attributes.
17548
175492008-02-01 Kenichi Handa <handa@m17n.org>
17550
17551 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17552 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17553 caller. Handle 2-byte and 3-byte charsets correctly.
17554 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17555 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17556 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17557 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17558 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17559 sequence.
17560 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17561 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17562 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17563 and alt&rule composition.
17564 (decode_coding_iso_2022): Handle composition correctly.
17565 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17566
17567 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17568 re-defining a charset. If the charset has :emacs-mule-id, setup
17569 emacs_mule_bytes.
17570 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17571
175722008-02-01 Kenichi Handa <handa@m17n.org>
17573
17574 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17575 (encode_coding_big5, encode_coding_charset): If coding requires safe
17576 encoding, produce a character specified by
17577 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17578
175792008-02-01 Dave Love <fx@gnu.org>
17580
17581 * xterm.c (XSetIMValues): Declare.
17582
17583 * process.c: Conditionally include sys/wait.h, pty.h.
17584
17585 * print.c (print_object): Fix print format for 64-bit systems.
17586
17587 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17588
17589 * buffer.c (emacs_strerror): Declare.
17590
17591 * fontset.c (Fclear_face_cache): Declare.
17592 (accumulate_font_info): Comment-out (unused).
17593 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17594 variables.
17595
17596 * character.h (string_escape_byte8): Declare.
17597
17598 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17599 unused vars.
17600 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17601 (Fmap_charset_chars): Doc fix.
17602
17603 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17604 (Fset_coding_system_priority, Fset_coding_system_priority)
17605 (Fdefine_coding_system_internal): Doc fix.
17606
176072008-02-01 Dave Love <fx@gnu.org>
17608
17609 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17610
176112008-02-01 Kenichi Handa <handa@m17n.org>
17612
17613 * character.c (string_escape_byte8): Make multibyte string with
17614 correct size.
17615
17616 * charset.c (Fmake_char): Delete unnecessary code.
17617
176182008-02-01 Kenichi Handa <handa@m17n.org>
17619
17620 * xfns.c (x_encode_text): Allocate coding.destination here, and
17621 call encode_coding_object with dst_object Qnil.
17622
17623 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17624 multibyte form correctly.
17625
17626 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17627 against Vfont_encoding_alist.
17628
17629 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17630 handling of charset list.
17631 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17632 (decode_coding_object): Move point to coding->dst_pos before
17633 calling post-read-conversion function.
17634 (encode_coding_object): Give correct arguments to
17635 pre-write-conversion. Ignore the return value of
17636 pre-write-conversion function. Pay attention to the case that
17637 pre-write-conversion changes the current buffer. If dst_object is
17638 Qt, even if coding->src_bytes is zero, allocate at least one byte
17639 to coding->destination.
17640
17641 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
17642
17643 * charset.c (Fmake_char): Make it more backward compatible.
17644 (Fmap_charset_chars): Fix docstring.
17645
176462008-02-01 Dave Love <fx@gnu.org>
17647
17648 * coding.c: Doc fixes.
17649 (Fdefine_coding_system_alias): Use names, not symbols, in
17650 coding-system-alist.
17651
176522008-02-01 Kenichi Handa <handa@m17n.org>
17653
17654 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
17655 of calling free_realized_face.
17656
176572008-02-01 Yong Lu <lyongu@asia-infonet.com>
17658
17659 * charset.c (read_hex): Don't treat SPC as a comment starter.
17660 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
17661 (Fdecode_char): Fix typo.
17662
176632008-02-01 Kenichi Handa <handa@m17n.org>
17664
17665 * charset.h (struct charset): New member `code_space_mask'.
17666
17667 * coding.c (coding_set_source): Delete the local variable beg_byte.
17668 (encode_coding_charset, Fdefine_coding_system_internal):
17669 Delete the local variable charset.
17670 (Fdefine_coding_system_internal): Setup
17671 attrs[coding_attr_charset_valids] correctly.
17672
17673 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
17674 member to check if CODE is valid or not.
17675 (Fdefine_charset_internal): Initialize `code_space_mask' member.
17676 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
17677 is within the range of charset->min_code and carset->max_code.
17678
176792008-02-01 Dave Love <fx@gnu.org>
17680
17681 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
17682
17683 * dispextern.h (generate_ascii_font): Fix return type.
17684
17685 * xfaces.c (generate_ascii_font): Fix arg declaration.
17686
17687 * coding.c (coding_inherit_eol_type)
17688 (Fset_terminal_coding_system_internal)
17689 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
17690
176912008-02-01 Kenichi Handa <handa@m17n.org>
17692
17693 * coding.c (decode_coding_charset, encode_coding_charset): Handle
17694 multiple charsets correctly.
17695
176962008-02-01 Kenichi Handa <handa@m17n.org>
17697
17698 * search.c (boyer_moore): Fix handling of multibyte character
17699 translation.
17700
17701 * xdisp.c (display_mode_element): When the variable `elt' is
17702 changed, update `this' and `lisp_string'.
17703
177042008-02-01 Kenichi Handa <handa@m17n.org>
17705
17706 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
17707
17708 * callproc.c (Fcall_process): Be sure to give the current buffer
17709 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
17710
17711 * charset.c (struct charset_map_entries): New struct.
17712 (load_charset_map): Rename from parse_charset_map. New args
17713 entries and n_entries. Change caller.
17714 (load_charset_map_from_file): Rename from load_charset_map.
17715 Change caller. New arg control_flag. Call load_charset_map at
17716 the tail.
17717 (load_charset_map_from_vector): New function.
17718 (Fdefine_charset_internal): Setup charset.compact_codes_p.
17719 (encode_char): If the charset is compact, change a character index
17720 to a code point.
17721
17722 * coding.c (coding_alloc_by_making_gap): Check the case that the
17723 source and destination are the same correctly.
17724 (decode_coding_raw_text): Set coding->consumed_char and
17725 coding->consumed to 0.
17726 (produce_chars): If coding->chars_at_source is nonzero, update
17727 coding->consumed_char and coding->consumed before calling
17728 alloc_destination.
17729 (Fdefine_coding_system_alias): Register ALIAS in
17730 Vcoding_system_alist.
17731 (syms_of_coding): Define `no-conversion' coding system at the tail.
17732
17733 * fileio.c (Finsert_file_contents): Set coding_system instead of
17734 val. If the current buffer is multibyte, always call
17735 decode_coding_gap.
17736
17737 * xfaces.c (try_font_list): Give higher priority to fontset's
17738 family than face's family.
17739
177402008-02-01 Kenichi Handa <handa@m17n.org>
17741
17742 * callproc.c (Fcall_process): Be sure to give the current buffer
17743 to decode_coding_c_string.
17744
17745 * xfaces.c (try_font_list): Give a family specified in a fontset
17746 higher priority than a family specified in a face.
17747
177482008-02-01 Kenichi Handa <handa@m17n.org>
17749
17750 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
17751 Fix arguments to insert_from_buffer.
17752
17753 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
17754
177552008-02-01 Kenichi Handa <handa@m17n.org>
17756
17757 * coding.c (produce_chars): Set the variable `multibytep' correctly.
17758 (decode_coding_gap): Set coding->dst_multibyte correctly.
17759
177602008-02-01 Kenichi Handa <handa@m17n.org>
17761
17762 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
17763 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
17764 (encode_coding_utf_16): Substitute coding->default_char for
17765 non-Unicode characters.
17766 (decode_coding): Don't call record_insert here.
17767 (setup_coding_system): Initialize `surrogate' of
17768 coding->spec.utf_16 to 0.
17769 (EMIT_ONE_BYTE): Fix for multibyte case.
17770
17771 * insdel.c (insert_from_gap): Call record_insert.
17772
177732008-02-01 Kenichi Handa <handa@m17n.org>
17774
17775 * casefiddle.c (casify_region): Fix multibyte case.
17776
17777 * character.c (c_string_width): Add return type `int'.
17778 (char_string_with_unification): Delete arg ADVANCED.
17779
17780 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
17781 (CHAR_STRING): Adjust for the change of char_string_with_unification.
17782 (CHAR_STRING_ADVANCE): Make it do-while statement.
17783
17784 * chartab.c (sub_char_table_set_range): Optimize for the case
17785 DEPTH == 3. Add workaround code for a GCC optimization bug.
17786
17787 * charset.c (parse_charset_map): Remove an unused variable.
17788
17789 * coding.c: Delete unused variables.
17790
17791 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17792 earlier. If inserted is zero and the coding system doesn't
17793 require flushing, don't call decode_coding_gap.
17794
17795 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17796
177972008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 The following changes are for using Unicode as an internal
17800 character model, and use UTF-8 format for buffer/string
17801 representation.
17802
17803 * .gdbinit (xchartable): Adjust for the change of char table structure.
17804 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17805
17806 * Makefile.in (obj): Add character.o and chartab.o.
17807 (lisp, shortlisp): Remove utf-8.elc.
17808 (*.o): For many files, change dependency on charset.h to
17809 character.h, and add dependency on character.h.
17810 (character.o, chartab.o): New targets.
17811
17812 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17813 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17814 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17815 of "charset.h".
17816
17817 * dired.c, filelock.c: Include "character.h".
17818
17819 * alloc.c: Include "character.h" instead of "charset.h".
17820 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17821 (syms_of_alloc): Remove defsubr for Smake_char_table.
17822
17823 * buffer.c: Include "character.h" instead of "charset.h", don't
17824 include "coding.h".
17825 (Fset_buffer_multibyte): Adjust for UTF-8.
17826
17827 * buffer.h: EXFUN Fbuffer_live_p.
17828
17829 * callproc.c: Include "character.h" instead of "charset.h".
17830 (Fcall_process): Big change for the new code-conversion APIs.
17831
17832 * casetab.c: Include "character.h" instead of "charset.h".
17833 (set_canon, set_identity, shuffle): Adjust for the new
17834 map_char_table spec.
17835 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17836 accessing the char table structure.
17837
17838 * chartab.c: New file that implements char table.
17839
17840 * category.c: Include "character.h".
17841 (copy_category_entry): New function.
17842 (copy_category_table): Call map_char_table and copy_category_entry.
17843 (Fmake_category_table): Initialize all top-level slots.
17844 (char_category_set): New function.
17845 (modify_lower_category_set): Delete.
17846 (Fmodify_category_entry): Call char_table_ref_and_range.
17847
17848 * category.h (CATEGORY_SET): Just call char_category_set.
17849
17850 * ccl.c: Include "character.h".
17851 (Qccl, Qcclp): New variables.
17852 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17853 it's less than 256.
17854 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17855 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17856 and DST type.
17857 (ccl_driver): Change types of argument, adjust code accordingly.
17858 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17859 ccl_driver.
17860 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17861
17862 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17863 New members src_multibyte, dst_multibyte, consumed, and produced.
17864 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17865 (CODING_SPEC_CCL_PROGRAM): New macro.
17866 (ccl_driver): Update prototype.
17867 (Qccl, Qcclp, Fccl_program_p): Extern them.
17868 (CHECK_CCL_PROGRAM): New macro.
17869
17870 * character.c, character.h, chartab.c: New files.
17871
17872 * charset.c: Mostly re-written. Move character and multibyte sequence
17873 handling codes to character.c.
17874
17875 * charset.h: Mostly re-written. Move character and multibyte sequence
17876 handling codes to character.h.
17877
17878 * coding.c, coding.h: Mostly re-written.
17879
17880 * composite.c: Include "character.h" instead of "charset.h".
17881 (CHAR_WIDTH): Move to character.h.
17882 (HASH_KEY, HASH_VALUE): Delete.
17883
17884 * composite.h (enum composition_method): Change order of enumeration
17885 symbols.
17886
17887 * data.c: Include "character.h" instead of "charset.h".
17888 (Faref): Call CHAR_TABLE_REF for a char table.
17889 (Faset): Call CHAR_TABLE_SET for a char table.
17890
17891 * dispextern.h (free_realized_face, check_face_attribytes)
17892 (generate_ascii_font): Extern them.
17893 (free_realized_multibyte_face): Delete extern.
17894
17895 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17896 table structure.
17897
17898 * editfns.c: Include "character.h" instead of "charset.h".
17899 (Fchar_to_string): Always call CHAR_STRING.
17900
17901 * emacs.c (main): Call init_charset_once, init_charset,
17902 syms_of_chartab, and syms_of_character.
17903
17904 * fileio.c: Include "character.h" instead of "charset.h".
17905 (Finsert_file_contents): Big change for the new code-conversion API.
17906 (choose_write_coding_system, Fwrite_region): Likewise.
17907 (build_annotations_2): Delete.
17908 (e_write): Big change for the new code-conversion API.
17909
17910 * fns.c: Include "character.h" instead of "charset.h".
17911 (copy_sub_char_table): Move to chartab.c.
17912 (Fcopy_sequence): Call copy_char_table for a char table.
17913 (concat): Delete codes calling count_multibyte.
17914 (string_char_to_byte, string_byte_to_char): Adjust for the new
17915 multibyte form.
17916 (internal_equal): Adjust for the change of char table structure.
17917 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17918 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17919 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17920 (char_table_translate, optimize_sub_char_table)
17921 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17922 chartab.c.
17923 (char_table_ref_and_index): Delete.
17924 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17925 (Fmd5): Call preferred_coding_system instead of accessing
17926 Vcoding_category_list. Adjust for the new code-conversion API.
17927 (syms_of_fns): Move defsubr for char table related functions to
17928 chartab.c.
17929
17930 * fontset.c: Mostly re-written.
17931
17932 * fontset.h (struct font_info): Change type of the member encoding_type.
17933 (enum FONT_SPEC_INDEX): New enum.
17934 (fontset_font_pattern, fs_load_font): Update prototype.
17935 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17936
17937 * indent.c: Include "character.h" instead of "charset.h".
17938 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17939
17940 * insdel.c: Include "character.h" instead of "charset.h".
17941 (copy_text): Don't refer to Vnonascii_translation_table.
17942 (insert_from_gap): New function.
17943
17944 * keyboard.c: Include "character.h" instead of "charset.h".
17945 (command_loop_1): Never call direct_output_forward_char before
17946 a non-ASCII character.
17947 (read_char): If Vkeyboard_translate_table is a char table, always
17948 translate a character.
17949
17950 * keymap.c: Include "character.h".
17951 (store_in_keymap): Handle the case that IDX is a cons.
17952 (Fdefine_key): Handle the case that KEY is a cons and the car part
17953 is also a cons (range).
17954 (push_key_description): Adjust for the new character code.
17955 (describe_vector): Call describe_char_table for a char table.
17956 (describe_char_table): New function.
17957
17958 * keymap.h (describe_char_table): Extern it.
17959
17960 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17961 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17962 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17963 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17964 Delete.
17965 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17966 structure.
17967 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17968 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17969 (CHARTAB_SIZE_BITS_3): New macros.
17970 (chartab_size): Extern it.
17971 (struct Lisp_Char_Table): Re-design.
17972 (struct Lisp_Sub_Char_Table): New structure.
17973 (HASH_KEY, HASH_VALUE): Move from fns.c.
17974 (CHARACTERBITS): Define as 22.
17975 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17976 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17977 (GC_SUB_CHAR_TABLE_P): New macro.
17978 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17979 (code_convert_string_norecord): Deleted extern.
17980 (init_character_once, syms_of_character, init_charset)
17981 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17982
17983 * lread.c: Include "character.h".
17984 (read_multibyte): New arg NBYTES.
17985 (read_escape): Change the meaning of returned *BYTEREP.
17986 (to_multibyte): Delete.
17987 (read1): Adjust the handling of char table and string.
17988
17989 * print.c: Include "character.h" instead of "charset.h".
17990 (print_string): Convert 8-bit raw bytes to octal form by
17991 string_escape_byte8.
17992 (print_object): Adjust for the new multibyte form. Print 8-bit
17993 raw bytes always in octal form. Handle sub char table correctly.
17994
17995 * process.c: Include "character.h" instead of "charset.h".
17996 (read_process_output, send_process): Adjust for the new
17997 code-conversion API.
17998
17999 * puresize.h (BASE_PURESIZE): Increase.
18000
18001 * regex.c: Include "character.h" instead of "charset.h".
18002 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18003 (regex_compile): Accept a range whose starting and ending
18004 character have different leading bytes.
18005 (analyse_first): Adjust for the above change.
18006
18007 * search.c: Include "character.h" instead of "charset.h".
18008 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18009 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18010
18011 * syntax.c: Include "character.h" instead of "charset.h".
18012 (syntax_parent_lookup): Delete.
18013 (Fmodify_syntax_entry): Accept a cons as CHAR.
18014 (skip_chars): Adjust for the new multibyte form.
18015 (init_syntax_once): Call char_table_set_range instead of directly
18016 accessing the structure of a char table.
18017
18018 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18019 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18020 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18021 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18022
18023 * term.c: Include "buffer.h" and "character.h".
18024 (encode_terminal_code, write_glyphs): Adjust for the new
18025 code-conversion API.
18026 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18027
18028 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18029
18030 * xdisp.c: Include "character.h".
18031 (get_next_display_element): Adjust for the new multibyte form.
18032 (disp_char_vector): Adjust for the new char table structure.
18033 (decode_mode_spec_coding): Adjust for the new structure of
18034 coding system.
18035 (decode_mode_spec): Adjust for the new code-conversion API.
18036
18037 * xfaces.c: Include "character.h" instead of "charset.h".
18038 (load_face_font): Adjust for the change of choose_face_font and
18039 FS_LOAD_FONT.
18040 (generate_ascii_font): New function.
18041 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18042 (set_font_frame_param): Adjust for the change of choose_face_font.
18043 (free_realized_face): Make it public.
18044 (free_realized_faces_for_fontset): Rename from
18045 free_realized_multibyte_face. Free also faces realized for ASCII.
18046 (choose_face_font): Change arguments. Adjust for the change of
18047 fontset_font_pattern and FS_LOAD_FONT.
18048
18049 * xfns.c: Include "character.h".
18050 (x_encode_text): Adjust for the new code-conversion API.
18051
18052 * xselect.c: Don't include "charset.h".
18053 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18054
18055 * xterm.c: Include "character.h".
18056 (x_encode_char): New argument CHARSET. Change caller.
18057 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18058 Call ENCODE_CHAR instead of SPLIT_CHAR.
18059 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18060 CHAR_WIDTH instead of CHARSET_WIDTH.
18061 (XTread_socket): Adjust for the new code-conversion API.
18062 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18063 (x_load_font): Adjust for the change of struct font.
18064
180652008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18066
18067 * xfaces.c (face_at_buffer_position): Remove unused vars.
18068
180692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18070
18071 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18072 Fix overflow checking.
18073
180742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18075
18076 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18077 Cancel previous change.
18078
180792008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18080
18081 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18082 ccl->eight_bit_control. Fix check for buffer overflow.
18083 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18084 (ccl_driver): Initialize extra_bytes to 0.
18085
180862008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18087
18088 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18089 return it ORed with ctrl_modifier.
18090
180912008-01-29 Miles Bader <miles@gnu.org>
18092
18093 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18094
180952008-01-28 Jason Rumney <jasonr@gnu.org>
18096
18097 * w32.c (stat): Don't double check for networked drive.
18098
180992008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18100
18101 * window.c (run_window_configuration_change_hook): New function.
18102 Code extracted from set_window_buffer. Set the selected frame.
18103 (set_window_buffer): Use it.
18104 * window.h (run_window_configuration_change_hook): Declare.
18105 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18106
18107 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18108
181092008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18110
18111 * Makefile.in: Remove references to unused macros.
18112
181132008-01-26 Eli Zaretskii <eliz@gnu.org>
18114
18115 * w32.c (g_b_init_get_sid_sub_authority)
18116 (g_b_init_get_sid_sub_authority_count): New static variables.
18117 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18118 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18119 (init_user_info): Use them to retrieve uid and gid.
18120 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18121 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18122 st_uid and st_gid of the file.
18123
181242008-01-26 Jason Rumney <jasonr@gnu.org>
18125
18126 * w32.c (logon_network_drive): New function.
18127 (stat): Use it.
18128
181292008-01-26 Chong Yidong <cyd@stupidchicken.com>
18130
18131 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18132 invisible text covered with an ellipsis.
18133
181342008-01-25 Richard Stallman <rms@gnu.org>
18135
18136 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18137 jump back to beginning. Move some other initializations after that.
18138 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18139 New variables.
18140 (syms_of_xdisp): Init them.
18141
18142 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18143
18144 * buffer.c (reset_buffer_local_variables):
18145 Implement `permanent-local-hook'.
18146 (Qpermanent_local_hook): New variable.
18147 (syms_of_buffer): Init and staticpro it.
18148
181492008-01-25 Michael Albinus <michael.albinus@gmx.de>
18150
18151 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18152
181532008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18154
18155 * fns.c (Fclrhash): Return TABLE.
18156
181572008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18158
18159 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18160 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18161 is set even without positional changes.
18162 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18163
18164 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18165
181662008-01-23 Jason Rumney <jasonr@gnu.org>
18167
18168 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18169
18170 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18171 the unicode range available in MULE by locale-coding-system.
18172 Improve dbcs lead byte detection. Set event timestamp and modifiers
18173 earlier.
18174
181752008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18176
18177 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18178 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18179 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18180 when used on child processes.
18181
181822008-01-21 Michael Albinus <michael.albinus@gmx.de>
18183
18184 * dbusbind.c (Fdbus_method_return_internal): Rename from
18185 Fdbus_method_return.
18186 (Fdbus_unregister_object): Move to dbus.el.
18187 (Fdbus_call_method, Fdbus_method_return_internal)
18188 (Fdbus_send_signal): Improve debug messages.
18189
181902008-01-20 Martin Rudalics <rudalics@gmx.at>
18191
18192 * undo.c (undo_inhibit_record_point): New variable.
18193 (syms_of_undo): Initialize it.
18194 (record_point): Don't record point when undo_inhibit_record_point
18195 is set.
18196
181972008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18198
18199 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18200
18201 * xdisp.c (Qauto_hscroll_mode): New var.
18202 (syms_of_xdisp): Initialize it.
18203 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18204 window's buffer.
18205 (hscroll_windows): Don't check automatic_hscrolling_p here.
18206
18207 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18208 vscroll if we're setting window-buffer to the value it already has.
18209
182102008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18211
18212 * m/intel386.h: Remove references to XENIX.
18213
182142008-01-17 Andreas Schwab <schwab@suse.de>
18215
18216 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18217 instead of HAVE_X86_64_LIB64_DIR.
18218 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18219
182202008-01-17 Glenn Morris <rgm@gnu.org>
18221
18222 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18223 to HAVE_X86_64_LIB64_DIR.
18224
182252008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18226
18227 * s/irix3-3.h:
18228 * s/irix4-0.h:
18229 * s/386-ix.h:
18230 * s/domain.h:
18231 * s/hpux9-x11r4.h:
18232 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18233
18234 * sysdep.c: Remove code containing references to symbols defined
18235 by unsupported systems.
18236
182372008-01-16 Glenn Morris <rgm@gnu.org>
18238
18239 * coding.c (select-safe-coding-system-function): Doc fix.
18240
182412008-01-15 Glenn Morris <rgm@gnu.org>
18242
18243 * config.in: Revert 2008-01-13 change: this is a generated file.
18244
182452008-01-13 Tom Tromey <tromey@redhat.com>
18246
18247 * lisp.h: Fix typo.
18248
182492008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18250
18251 * m/sequent-ptx.h:
18252 * m/sequent.h:
18253 * s/ptx.h:
18254 * s/ptx4-2.h:
18255 * s/ptx4.h: Remove files for systems no longer supported.
18256
18257 * callproc.c (Fcall_process): Fix previous change.
18258
182592008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18260
18261 * unexsunos4.c: Remove file, system not supported anymore.
18262
18263 * m/mips.h:
18264 * m/intel386.h:
18265 * callproc.c:
18266 * config.in:
18267 * ecrt0.c:
18268 * emacs.c:
18269 * fileio.c:
18270 * frame.c:
18271 * getpagesize.h:
18272 * keyboard.c:
18273 * lread.c:
18274 * process.c:
18275 * puresize.h:
18276 * sysdep.c:
18277 * systty.h:
18278 * syswait.h:
18279 * unexec.c:
18280 * xdisp.c:
18281 * alloc.c: Remove code containing references to symbols defined by
18282 unsupported systems.
18283
182842008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18285
18286 * coding.c (detect_coding_mask): Fix previous change.
18287
182882008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18289
18290 * coding.c (detect_coding_iso2022): New arg
18291 latin_extra_code_state. Allow Latin extra codes only
18292 when *latin_extra_code_state is nonzero.
18293 (detect_coding_mask): If there is a NULL byte, detect the encoding
18294 as UTF-16 or binary. If Latin extra codes exist, detect the
18295 encoding as ISO-2022 only when there's no other proper encoding is
18296 found.
18297
182982008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18299
18300 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18301 #ifdef MAC_OS.
18302
183032008-01-08 Richard Stallman <rms@gnu.org>
18304
18305 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18306
183072008-01-06 Nick Roberts <nickrob@snap.net.nz>
18308
18309 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18310 menu bar in parentheses.
18311
183122008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18313
18314 * m/7300.h:
18315 * m/acorn.h:
18316 * m/alliant-2800.h:
18317 * m/alliant.h:
18318 * m/alliant1.h:
18319 * m/alliant4.h:
18320 * m/altos.h:
18321 * m/amdahl.h:
18322 * m/apollo.h:
18323 * m/att3b.h:
18324 * m/aviion-intel.h:
18325 * m/aviion.h:
18326 * m/celerity.h:
18327 * m/clipper.h:
18328 * m/cnvrgnt.h:
18329 * m/convex.h:
18330 * m/cydra5.h:
18331 * m/delta88k.h:
18332 * m/dpx2.h:
18333 * m/dual.h:
18334 * m/elxsi.h:
18335 * m/f301.h:
18336 * m/gould-np1.h:
18337 * m/gould.h:
18338 * m/i860.h:
18339 * m/ibmps2-aix.h:
18340 * m/ibmrt-aix.h:
18341 * m/ibmrt.h:
18342 * m/irist.h:
18343 * m/is386.h:
18344 * m/isi-ov.h:
18345 * m/mega68.h:
18346 * m/mg1.h:
18347 * m/news-r6.h:
18348 * m/news-risc.h:
18349 * m/news.h:
18350 * m/nh3000.h:
18351 * m/nh4000.h:
18352 * m/ns16000.h:
18353 * m/ns32000.h:
18354 * m/nu.h:
18355 * m/orion.h:
18356 * m/orion105.h:
18357 * m/paragon.h:
18358 * m/pfa50.h:
18359 * m/plexus.h:
18360 * m/pyramid.h:
18361 * m/pyrmips.h:
18362 * m/sh3el.h:
18363 * m/sps7.h:
18364 * m/sr2k.h:
18365 * m/stride.h:
18366 * m/sun1.h:
18367 * m/sun2.h:
18368 * m/sun3-68881.h:
18369 * m/sun3-fpa.h:
18370 * m/sun3-soft.h:
18371 * m/sun3.h:
18372 * m/sun386.h:
18373 * m/symmetry.h:
18374 * m/tad68k.h:
18375 * m/tahoe.h:
18376 * m/targon31.h:
18377 * m/tek4300.h:
18378 * m/tekxd88.h:
18379 * m/tower32.h:
18380 * m/tower32v3.h:
18381 * m/ustation.h:
18382 * m/wicat.h:
18383 * m/xps100.h:
18384 * s/cxux.h:
18385 * s/cxux7.h:
18386 * s/dgux.h:
18387 * s/dgux4.h:
18388 * s/dgux5-4-3.h:
18389 * s/dgux5-4r2.h:
18390 * s/esix.h:
18391 * s/esix5r4.h:
18392 * s/hiuxmpp.h:
18393 * s/hiuxwe2.h:
18394 * s/iris3-5.h:
18395 * s/iris3-6.h:
18396 * s/isc2-2.h:
18397 * s/isc3-0.h:
18398 * s/isc4-0.h:
18399 * s/isc4-1.h:
18400 * s/newsos5.h:
18401 * s/newsos6.h:
18402 * s/osf1.h:
18403 * s/osf5-0.h:
18404 * s/riscix1-1.h:
18405 * s/riscix12.h:
18406 * s/sco4.h:
18407 * s/sco5.h:
18408 * s/sunos4-0.h:
18409 * s/sunos4-1.h:
18410 * s/sunos413.h:
18411 * s/sunos4shr.h:
18412 * s/umax.h:
18413 * s/unipl5-2.h:
18414 * s/xenix.h:
18415 * cxux-crt0.s:
18416 * unexapollo.c:
18417 * unexconvex.c:
18418 * unexenix.c:
18419 * unexsni.c: Remove files for systems no longer supported.
18420
18421 * m/intel386.h: Remove references to unsupported systems.
18422
18423 * w32.c (get_emacs_configuration): Remove reference to i860.
18424
18425 * sysdep.c: Remove dead code.
18426
184272008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18428
18429 * s/rtu.h:
18430 * m/masscomp.h: Remove files. Platform is obsolete.
18431
184322008-01-04 Michael Albinus <michael.albinus@gmx.de>
18433
18434 * dbusbind.c (Fdbus_method_return): New function.
18435 (xd_read_message): Add the serial number to the event.
18436 (Fdbus_register_method): Activate the function.
18437
184382008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18439
18440 * keyboard.c (read_key_sequence): Fix typo.
18441
184422008-01-03 Michael Albinus <michael.albinus@gmx.de>
18443
18444 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18445 (xd_signature, xd_append_arg): Handle element type detection for
18446 empty arrays.
18447 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18448 SDATA () calls; this must be solved more general.
18449 (Fdbus_register_signal): Use SBYTES instead of strlen.
18450
184512008-01-03 Magnus Henoch <magnus@zemdatav>
18452
18453 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18454 unsigned int for byte values (necessary for big-endian platform).
18455 (Fdbus_call_method): Handle the case of no returned arguments.
18456
184572007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18458
18459 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18460
184612007-12-31 Magnus Henoch <mange@freemail.hu>
18462
18463 * dbusbind.c (xd_signature): Signature of variant is just "v".
18464
184652007-12-30 Michael Albinus <michael.albinus@gmx.de>
18466
18467 * dbusbind.c: Fix several errors and compiler warnings.
18468 Reported by Tom Tromey <tromey@redhat.com>.
18469 (XD_ERROR, XD_DEBUG_MESSAGE)
18470 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18471 (xd_append_arg): Part for basic D-Bus types rewritten.
18472 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18473 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18474 appropriate.
18475 (xd_read_message): Return Qnil. Don't signal an error; it is not
18476 useful during event reading.
18477 (Fdbus_register_signal): Signal an error if the check for
18478 FUNCTIONP fails.
18479 (Fdbus_register_method): New function. The implementation is not
18480 complete, the call of the function signals an error therefore.
18481 (Fdbus_unregister_object): New function, renamed from
18482 Fdbus_unregister_signal. The initial check signals an error, if
18483 the object is not well formed.
18484
184852007-12-30 Richard Stallman <rms@gnu.org>
18486
18487 * textprop.c (get_char_property_and_overlay):
18488 Signal error if POSITION is out of range in a buffer.
18489
184902007-12-29 Martin Rudalics <rudalics@gmx.at>
18491
18492 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18493 because the original parameters are in pure storage now.
18494
184952007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18496
18497 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18498
184992007-12-22 Eli Zaretskii <eliz@gnu.org>
18500
18501 * callint.c (syms_of_callint) <command-history>: Add reference to
18502 history-length in the doc string.
18503
185042007-12-17 Jason Rumney <jasonr@gnu.org>
18505
18506 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18507 before passing as wParam.
18508
185092007-12-22 Michael Albinus <michael.albinus@gmx.de>
18510
18511 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18512 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18513 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18514 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18515 as number.
18516 (Fdbus_call_method): Fix docstring.
18517
185182007-12-21 Michael Albinus <michael.albinus@gmx.de>
18519
18520 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18521 New macros.
18522 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18523 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18524 Simplify.
18525 (xd_signature): New function.
18526 (xd_append_arg): Compute also signatures. Major rewrite.
18527 (xd_retrieve_arg): Make debug messages friendly.
18528 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18529 Check for signatures of arguments.
18530
185312007-12-19 Michael Albinus <michael.albinus@gmx.de>
18532
18533 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18534 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18535 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18536 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18537 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18538 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18539 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18540 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18541 (xd_retrieve_value): Remove. Functionality included in ...
18542 (xd_append_arg): New function.
18543 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18544
185452007-12-16 Michael Albinus <michael.albinus@gmx.de>
18546
18547 * dbusbind.c (top): Include <stdio.h>.
18548 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18549 dbus_message_new_method_call and dbus_message_new_signal.
18550 (Fdbus_register_signal): Rename unique_name to uname.
18551 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18552 non-existing unique name. Fix typos in matching rule. Return an
18553 object which is useful in Fdbus_unregister_signal.
18554 (Fdbus_unregister_signal): Reimplementation, in order to remove
18555 only the corresponding entry.
18556 (Vdbus_registered_functions_table): Change the order of entries.
18557 Apply these changes in xd_read_message and Fdbus_register_signal.
18558
185592007-12-16 Andreas Schwab <schwab@suse.de>
18560
18561 * fileio.c (Finsert_file_contents): Fix overflow check to not
18562 depend on undefined integer overflow.
18563
185642007-12-14 Jason Rumney <jasonr@gnu.org>
18565
18566 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18567 for characters above 127.
18568
185692007-12-13 Jason Rumney <jasonr@gnu.org>
18570
18571 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18572 before dereferencing array.
18573 (lookup_vk_code): Remove zero comparison.
18574
185752007-12-14 Michael Albinus <michael.albinus@gmx.de>
18576
18577 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18578 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18579 Use `unsigned int' instead of `uint'.
18580 (xd_read_message, Fdbus_register_signal): Split expressions into
18581 multiple lines before operators "&&" and "||", according to the
18582 GNU Coding Standards.
18583
185842007-12-14 Eli Zaretskii <eliz@gnu.org>
18585
18586 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18587
185882007-12-12 Juri Linkov <juri@jurta.org>
18589
18590 * buffer.c (Frename_buffer): In interactive spec replace
18591 `read-buffer' with `read-string' that uses `buffer-name-history'
18592 as history, and the current buffer's name as default.
18593
185942007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18595
18596 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18597 manipulating the backtrace manually.
18598 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18599 (struct backtrace, backtrace_list): Remove.
18600 (command_loop_1): Remove dead var `no_direct'.
18601
18602 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18603 preserve non-built-in buffer-local variables.
18604 (Fkill_all_local_variables): Don't re-create&re-set permanent
18605 buffer-local variables.
18606
186072007-12-09 Juri Linkov <juri@jurta.org>
18608
18609 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18610 Lisp code that uses `read-buffer' with current buffer as default.
18611
186122007-12-08 Michael Albinus <michael.albinus@gmx.de>
18613
18614 * dbusbind.c (xd_read_message): Generate an event for every
18615 registered handler. There might be several handlers registered
18616 for the same signal.
18617 (Fdbus_register_signal): Don't overwrite a registration for the
18618 same signal. Add a new registration if handlers are different.
18619 (Vdbus_registered_functions_table): Rework doc string.
18620
186212007-12-07 Michael Albinus <michael.albinus@gmx.de>
18622
18623 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18624 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18625 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18626 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18627 Unify argument lists.
18628 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18629 arguments and hash table keys. Use unique name for service.
18630 (Fdbus_unregister_signal): Remove checks.
18631 (Vdbus_registered_functions_table): Fix doc string.
18632
186332007-12-05 Magnus Henoch <mange@freemail.hu>
18634
18635 * process.c (make_process): Initialize pty_flag to 0.
18636
186372007-12-05 Jason Rumney <jasonr@gnu.org>
18638
18639 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
18640 specified XBMs.
18641
186422007-12-05 Richard Stallman <rms@gnu.org>
18643
18644 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
18645
186462007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18647
18648 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
18649 New variable.
18650 (mac_try_close_socket) [MAC_OSX]: New function.
18651 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
18652 Update cfsockets_for_select. Replace invalid CFRunLoop source.
18653
18654 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
18655 Use mac_try_close_socket.
18656
186572007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18658
18659 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
18660 reloc_base.
18661 (copy_dysymtab): Compute relocation base here.
18662 (rebase_reloc_address) [__ppc64__]: New function.
18663 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
18664 changed.
18665
186662007-12-05 Jason Rumney <jasonr@gnu.org>
18667
18668 * w32proc.c (sys_spawnve): Quote args with wildcards.
18669
186702007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18671
18672 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
18673 __objc_* sections.
18674 (unrelocate) [_LP64]: Set relocation base to address of data segment.
18675
186762007-12-05 Michael Albinus <michael.albinus@gmx.de>
18677
18678 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
18679 Move check for Vdbus_registered_functions_table to
18680 xd_read_queued_messages.
18681 (xd_read_queued_messages): Protect xd_read_message calls by
18682 internal_condition_case_1.
18683
186842007-12-04 Michael Albinus <michael.albinus@gmx.de>
18685
18686 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
18687 Qdbus_system_bus and Qdbus_session_bus, respectively.
18688 (Vdbus_intern_symbols): Remove.
18689 (Vdbus_registered_functions_table): New hash table.
18690 (XD_SYMBOL_INTERN_SYMBOL): Remove.
18691 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
18692 Rewrite in order to manage registered functions by hash table
18693 Vdbus_registered_functions_table.
18694
186952007-12-03 Jan Djärv <jan.h.d@swipnet.se>
18696
18697 * xterm.c: Update URL to Window Manager Specification in comment.
18698
186992007-12-02 Michael Albinus <michael.albinus@gmx.de>
18700
18701 * config.in (HAVE_DBUS): Add.
18702
18703 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
18704 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
18705 (obj): Add $(DBUS_OBJ).
18706 (LIBES): Add $(DBUS_LIBS).
18707 (dbusbind.o): New target.
18708
18709 * dbusbind.c: New file.
18710
18711 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
18712
18713 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
18714 (Qdbus_event): New Lisp symbol.
18715 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
18716 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 18717 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
18718
18719 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
18720
187212007-12-01 Richard Stallman <rms@gnu.org>
18722
18723 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
18724
187252007-11-30 Jason Rumney <jasonr@gnu.org>
18726
18727 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
18728 (w32con_reset_terminal_modes): Clear screen buffer.
18729 (w32_face_attributes): Don't use color indexes that are out of range.
18730 Only reverse the default colors.
18731
18732 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
18733 WINDOWSNT.
18734
18735 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
18736
187372007-11-29 Jason Rumney <jasonr@gnu.org>
18738
18739 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
18740 (w32_face_attributes): Use Vtty_defined_color_alist to determine
18741 if the terminal colors are initialized.
18742 (unspecified_fg, unspecified_bg): Remove unused declarations.
18743
187442007-11-29 Andreas Schwab <schwab@suse.de>
18745
18746 * keyboard.c (apply_modifiers): Fix typo.
18747
187482007-11-29 Richard Stallman <rms@gnu.org>
18749
18750 * keymap.c (Fcurrent_local_map): Doc fix.
18751
187522007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
18753
18754 * s/gnu-kfreebsd.h: New file.
18755
187562007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
18757
18758 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
18759 Don't cast redundantly.
18760
18761 * keyboard.c (KEY_TO_CHAR): New macro.
18762 (parse_modifiers, apply_modifiers): Accept integer arguments.
18763 (read_key_sequence): Use them to unify the "shift->unshift" mapping
18764 for chars and symbol keys.
18765 After doing such remapping, apply function-key-map again.
18766
187672007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
18768
18769 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
18770 compiled anymore.
18771
187722007-11-26 Andreas Schwab <schwab@suse.de>
18773
18774 * process.c (list_processes_1): Fix indentation level of the
18775 command column.
18776
187772007-11-23 Andreas Schwab <schwab@suse.de>
18778
18779 * editfns.c (Fformat): Handle %c specially since it requires the
18780 argument to be of type int.
18781
187822007-11-23 Markus Triska <markus.triska@gmx.at>
18783
18784 * emacs.c (main): Call init_editfns before init_process, since
18785 init_process sets Vprocess_connection_type depending on OS release.
18786
187872007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
18788
18789 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
18790 (find_symbol_value): Use do_symval_forwarding.
18791
18792 * data.c (set_internal): Set the value in the `cons-cell' (for
18793 Buffer_Local_values) not only for frame-local variables.
18794
187952007-11-22 Andreas Schwab <schwab@suse.de>
18796
18797 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18798 values to sprintf.
18799 * keymap.c (Fsingle_key_description): Likewise.
18800 * print.c (print_object): Likewise.
18801
188022007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18803
18804 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18805 file for image is nil.
18806
188072007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18808
18809 * term.c: Include stdarg.h.
18810 (fatal): Implement using varargs.
18811 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18812
188132007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18814
18815 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18816 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18817 Update call to buffer_slot_type_mismatch.
18818 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18819 (buffer_slot_type_mismatch): Update.
18820 * buffer.c (buffer_local_types): Remove.
18821 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18822 (defvar_per_buffer): Set the type in the buffer_objfwd.
18823
188242007-11-21 Jason Rumney <jasonr@gnu.org>
18825
18826 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18827 CreateFileMapping returns NULL on failure.
18828
188292007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18830
18831 * search.c (Fset_match_data): Remove the `evaporate' feature.
18832 (unwind_set_match_data): Don't use the `evaporate' feature.
18833
188342007-11-21 Jason Rumney <jasonr@gnu.org>
18835
18836 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18837
18838 * w32console.c (w32con_write_glyphs): Remove unused variables.
18839
188402007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18841
18842 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18843
18844 * s/darwin.h (MULTI_KBOARD): Remove.
18845
18846 * macfns.c (x_create_tip_frame, Fx_create_frame)
18847 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18848
188492007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18850
18851 * buffer.c (Fbuffer_local_value): Remove redundant test.
18852 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18853 than in `current-buffer' to match the comment.
18854 Do the swap using swap_in_global_binding.
18855
18856 * data.c (store_symval_forwarding, set_internal):
18857 * eval.c (specbind): Remove dead code.
18858
18859 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18860 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18861 Since we do not want to see internal Lisp_*fwd objects here.
18862
188632007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18864
18865 * sysdep.c (init_system_name): Use getaddrinfo if available.
18866
18867 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18868 (x_scroll_bar_note_movement): start, end, with, height in struct
18869 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18870
188712007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18872
18873 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18874
188752007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18876
18877 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18878 This undoes Richard's change of 14-Oct-2002.
18879
18880 * alloc.c (allocate_other_vector):
18881 * lisp.h (allocate_other_vector): Remove.
18882
18883 * window.c (struct save_window_data): Move non-lisp data to the end
18884 and make it `int' rather than Lisp_Object.
18885 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18886 Done wrap/unwrap integer values.
18887 (Fset_window_configuration, compare_window_configurations):
18888 Update use of fields to their new types.
18889
18890 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18891 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18892 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18893 (SET_SCROLL_BAR_X_WINDOW): Remove.
18894 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18895 Access the new x_window field directly.
18896 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18897 Don't wrap/unwrap integers into Lisp_Objects.
18898 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18899 (x_scroll_bar_report_motion):
18900 Don't wrap/unwrap integers into Lisp_Objects.
18901 (x_term_init): Use SDATA.
18902 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18903 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18904 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18905 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18906 * xfns.c (x_set_background_color):
18907 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18908 Access the new x_window field directly.
18909
18910 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18911 (allocate_pseudovector): Make non-static.
18912
18913 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18914 (allocate_pseudovector): Declare.
18915 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18916
189172007-11-15 Andreas Schwab <schwab@suse.de>
18918
18919 * editfns.c (Fformat): Correctly format EMACS_INT values.
18920 Also take precision into account when formatting an integer.
18921
18922 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18923
189242007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18925
18926 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18927 (syms_of_keyboard): Defsubr it.
18928
18929 * data.c (swap_in_global_binding): Fix longstanding bug where
18930 store_symval_forwarding was not called with the right second argument,
18931 thus causing objfwd-ing from being dropped.
18932
189332007-11-14 Juanma Barranquero <lekktu@gmail.com>
18934
18935 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18936 (Fx_display_pixel_height, Fx_display_planes)
18937 (Fx_display_color_cells, Fx_server_max_request_size)
18938 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18939 (Fx_display_visual_class, Fx_display_save_under):
18940 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18941 (Fx_display_pixel_height, Fx_display_planes)
18942 (Fx_display_color_cells, Fx_server_max_request_size)
18943 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18944 (Fx_display_mm_height, Fx_display_mm_width)
18945 (Fx_display_backing_store, Fx_display_visual_class)
18946 (Fw32_select_font, Fx_display_save_under):
18947 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18948 (Fx_display_pixel_height, Fx_display_planes)
18949 (Fx_display_color_cells, Fx_server_max_request_size)
18950 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18951 (Fx_display_save_under): Fix typos in docstrings.
18952
189532007-11-14 Juanma Barranquero <lekktu@gmail.com>
18954
18955 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18956 corresponding to deleted entries; they are an implementation detail.
18957 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18958 Remove variables.
18959 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18960 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18961 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18962 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18963 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18964 (Fw32_define_rgb_color, Fw32_load_color_file)
18965 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18966 Fix typos in docstrings.
18967 (Fx_server_version): Reflow docstring.
18968 (Fw32_shell_execute): Doc fixes.
18969
189702007-11-13 Juanma Barranquero <lekktu@gmail.com>
18971
18972 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18973 if w32_parse_hot_key returned nil.
18974
189752007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18976
18977 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18978
189792007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18980
aac0c6e3
MR
18981 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18982
18983 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18984
18985 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18986 Remove W32_SCROLL_BAR_CLICK_EVENT.
18987
18988 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18989 Add MULTIMEDIA_KEY_EVENT.
18990
18991 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18992 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18993 (make_lispy_event) [WINDOWSNT]: Use it to translate
18994 MULTIMEDIA_KEY_EVENT.
18995
18996 * w32term.h (WM_APPCOMMAND): Define if not already.
18997 (GET_APPCOMMAND_LPARAM): Likewise.
18998
18999 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19000 WM_APPCOMMAND.
19001
19002 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19003 (syms_of_w32fns): Export and initialize it.
19004 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19005
190062007-11-09 Chong Yidong <cyd@stupidchicken.com>
19007
19008 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19009 twice.
19010
19011 * xdisp.c (handle_face_prop): Fix last change.
19012
190132007-11-09 Richard Stallman <rms@gnu.org>
19014
19015 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19016 not just for after-strings and before-strings.
19017 Call face_for_overlay_string and pass the overlay to it.
19018 (handle_display_prop): Determine whether property came from an overlay.
19019 Pass OVERLAY arg to handle_single_display_spec.
19020 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19021 (load_overlay_strings): Fill in it->string_overlays.
19022 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19023
19024 * xfaces.c (face_for_overlay_string): Function renamed from
19025 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19026
19027 * dispextern.h (struct it): New elt string_overlays.
19028 New elt from_overlay, also in stack.
19029 Rearrange a few elements.
19030 (face_for_overlay_string): Decl renamed from
19031 face_at_buffer_position_no_overlays, and add argument.
19032
190332007-11-09 Richard Stallman <rms@gnu.org>
19034
19035 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19036 to get the base face for an overlay string.
19037
19038 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19039
19040 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19041
19042 * xdisp.c (handle_stop): Move some code out of loop.
19043
190442007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19045
19046 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19047 Fix conversion from Lisp object to ATSUFontID.
19048
190492007-11-09 Jason Rumney <jasonr@gnu.org>
19050
19051 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19052
190532007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19054
19055 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19056 Don't assume regions are aligned to page boundary.
19057 (print_load_command_name): Add LC_UUID if defined.
19058
190592007-11-09 Richard Stallman <rms@gnu.org>
19060
19061 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19062
190632007-11-07 Jason Rumney <jasonr@gnu.org>
19064
19065 * s/windows95.h: Remove.
19066
190672007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19068
19069 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19070 abort with a message on unhandled store_type values.
19071
190722007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19073
19074 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19075 Remove HAVE_X11R5 and HAVE_X11R4.
19076
190772007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19078
19079 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19080
190812007-11-01 Johan Bockgård <bojohan@gnu.org>
19082
19083 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19084 Don't set s->stippled_p here, since it has already been set by
19085 x_set_glyph_string_gc from x_draw_glyph_string.
19086
190872007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19088
19089 * sunfns.c: Remove file.
19090
19091 * m/sun386.h:
19092 * m/sun2.h:
19093 * m/sparc.h: Remove Sun windows code.
19094
190952007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19096
19097 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19098 (init_keyboard): Set current_kboard's window-system to nil.
19099 (tty_read_avail_input): Typo.
19100 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19101
191022007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19103
19104 * s/usg5-4.h:
19105 * s/usg5-3.h:
19106 * s/ptx.h:
19107 * m/is386.h:
19108 * m/ibmps2-aix.h:
19109 * Makefile.in: Remove all mentions of X10.
19110
19111 * dispnew.c (syms_of_display): Don't mention version 10.
19112
191132007-10-28 Juanma Barranquero <lekktu@gmail.com>
19114
19115 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19116 ($(BLD)/abbrev.$(O)): Remove.
19117
191182007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19119
19120 Rewrite abbrev.c in Elisp.
19121 * image.c (Qcount): Don't declare as extern.
19122 (syms_of_image): Initialize and staticpro `Qcount'.
19123 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19124 * emacs.c (main): Don't call syms_of_abbrev.
19125 * Makefile.in (obj): Remove abbrev.o.
19126 (abbrev.o): Remove.
19127 * abbrev.c: Remove.
19128
191292007-10-26 Martin Rudalics <rudalics@gmx.at>
19130
19131 * window.c (window_min_size_2): Don't count header-line.
19132
191332007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19134
19135 * frame.h (struct frame): Move all bit fields after the first bit
19136 field to take advantage of the available space. Group all the
19137 chars together to reduce wasted space due to padding.
19138
191392007-10-26 Juanma Barranquero <lekktu@gmail.com>
19140
19141 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19142
19143 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19144 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19145 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19146 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19147 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19148 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19149 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19150 (last_marked, mark_object_loop_halt): Make static.
19151
19152 * frame.c (syms_of_frame) <delete-frame-functions>:
19153 Fix typo in docstring.
19154
191552007-10-25 Juanma Barranquero <lekktu@gmail.com>
19156
19157 * w32.c (init_environment): Fix tiny memory leak.
19158 (w32_get_resource): Remove unused variable `ok'.
19159
191602007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19161
19162 Make `window-system' into a keyboard-local variable (rather than
19163 frame-local as done originally by multi-tty).
19164
19165 * keyboard.h (struct kboard): Add Vwindow_system.
19166 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19167 (mark_kboards): Mark Vwindow_system.
19168
19169 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19170 (init_display): Don't set the obsolete `window-system' frame-param.
19171
19172 * xterm.c (x_term_init):
19173 * w32term.c (w32_create_terminal):
19174 * term.c (init_tty): Set Vwindow_system.
19175 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19176 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19177
19178 * xfns.c (Fx_create_frame, x_create_tip_frame):
19179 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19180 * macfns.c (Fx_create_frame):
19181 Don't set the obsolete `window-system' frame-param.
19182
19183 * frame.h (Qwindow_system): Remove.
19184 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19185 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19186
191872007-10-24 Richard Stallman <rms@gnu.org>
19188
19189 * frame.c (x_figure_window_size): For fullscreen case,
19190 set USPosition | PPosition without clobbering rest of window_prompting.
19191
19192 * keyboard.c (Fcurrent_idle_time): Doc fix.
19193
19194 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19195
191962007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19197
19198 * process.c (unwind_request_sigio): Only define if __ultrix__.
19199
19200 * callproc.c (child_setup): Remove spurious *.
19201
19202 * lisp.h (Fget_text_property): Declare.
19203 (have_menus_p): Declare it here rather than in sys-dep header files.
19204 * macterm.h (have_menus_p):
19205 * msdos.h (have_menus_p):
19206 * xterm.h (have_menus_p): Remove.
19207
19208 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19209 (Fmake_variable_frame_local): Just check the variable's const-ness
19210 rather than checking nil or t.
19211
192122007-10-22 Jason Rumney <jasonr@gnu.org>
19213
19214 * w32fns.c: Include math.h.
19215 (w32_abort): Declaration moved to nt/config.nt.
19216
19217 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19218 (abort): Redefinition moved to nt/config.nt.
19219
19220 * m/windowsnt.h: Remove.
19221
192222007-10-22 Juanma Barranquero <lekktu@gmail.com>
19223
19224 * emacs.c (Fdump_emacs): Fix typo in message.
19225 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19226 <installation-directory>: Reflow docstring.
19227
192282007-10-22 Juri Linkov <juri@jurta.org>
19229
19230 * minibuf.c: Allow minibuffer default to be a list of default values.
19231 With empty input use the first element of this list as returned default.
19232 (string_to_object)
19233 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19234 (read_minibuf): If defalt is cons, set histstring to its car.
19235 (Fread_string): If default_value is cons, set val to its car.
19236 (Fread_buffer): If def is cons, use its car.
19237 (Fcompleting_read): If defalt is cons, set val to its car.
19238
192392007-10-21 Michael Albinus <michael.albinus@gmx.de>
19240
19241 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19242
192432007-10-20 Juanma Barranquero <lekktu@gmail.com>
19244
19245 * doc.c (Fdocumentation): Check for advice in all cases.
19246
192472007-10-19 Chong Yidong <cyd@stupidchicken.com>
19248
19249 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19250
192512007-10-19 Richard Stallman <rms@gnu.org>
19252
19253 * doc.c (Fdocumentation): Check for and handle an advised function.
19254
192552007-10-19 Juanma Barranquero <lekktu@gmail.com>
19256
19257 * process.c (Fset_process_filter): Doc fix.
19258
192592007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19260
19261 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19262 which caused key-translation-map to applied repeatedly (thus breaking
19263 double-mode).
19264
192652007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19266
19267 * xselect.c (x_own_selection, x_handle_selection_clear)
19268 (x_clear_frame_selections):
19269 * w32menu.c (list_of_panes, list_of_items):
19270 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19271 * textprop.c (validate_plist, interval_has_all_properties)
19272 (interval_has_some_properties, interval_has_some_properties_list)
19273 (add_properties, text_property_list):
19274 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19275 * minibuf.c (Fassoc_string):
19276 * macselect.c (x_own_selection, x_clear_frame_selections)
19277 (Fx_disown_selection_internal):
19278 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19279 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19280
192812007-10-17 Chong Yidong <cyd@stupidchicken.com>
19282
19283 * process.c: Link to libs for calling res_init() if available.
19284 (Fmake_network_process): Call res_init() before getaddrinfo or
19285 gethostbyname, if possible.
19286
192872007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19288
19289 * lread.c (read1): Set pvectype for char_tables.
19290
19291 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19292 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19293 Add type checks.
19294 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19295
19296 * alloc.c (free_misc): Use XMISCTYPE.
19297 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19298
192992007-10-17 Glenn Morris <rgm@gnu.org>
19300
19301 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19302 (syms_of_minibuf): Add Qcompletion_ignore_case.
19303 * dired.c (Qcompletion_ignore_case): Change to external.
19304 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19305 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19306 (Fread_file_name): Use it rather than intern'ing.
19307
19308 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19309 (Fread_coding_system): Ignore case of user input.
19310
193112007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19312
19313 * xdisp.c (handle_display_prop): Ignore display specs after
19314 replacing one when string text is being replaced.
19315 (handle_single_display_spec): Pretend as if characters with display
19316 property haven't been consumed only when buffer text is being replaced.
19317
193182007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19319
19320 * xfns.c (Fx_create_frame, Fx_display_list):
19321 * window.c (window_fixed_size_p, enlarge_window)
19322 (shrink_window_lowest_first):
19323 * macterm.c (init_font_name_table):
19324 * macfns.c (Fx_create_frame, Fx_display_list):
19325 * lread.c (close_load_descs):
19326 * keyboard.c (read_char_x_menu_prompt):
19327 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19328 * coding.c (code_convert_region_unwind): Test the type of an object
19329 rather than just !NILP before extracting data from it.
19330
19331 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19332
19333 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19334 (XMISCANY): New macro.
19335 (XMISCTYPE): Use it.
19336 (struct Lisp_Misc_Any): New type.
19337 (union Lisp_Misc): Use it.
19338 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19339 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19340 (find_symbol_value, set_internal, default_value, Fset_default)
19341 (Fmake_variable_buffer_local, Fmake_local_variable)
19342 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19343 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19344 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19345 * alloc.c (allocate_buffer): Set the size and tag.
19346 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19347 Use XMISCANY.
19348 (die): Follow the GNU convention for error messages.
19349 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19350 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19351 tag any more.
19352 (set_buffer_internal_1):
19353 * frame.c (store_frame_param):
19354 * eval.c (specbind):
19355 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19356
19357 * doc.c (Fsnarf_documentation): Simplify.
19358
193592007-10-14 Juanma Barranquero <lekktu@gmail.com>
19360
19361 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19362 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19363
193642007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19365
19366 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19367
193682007-10-14 Juanma Barranquero <lekktu@gmail.com>
19369
19370 * eval.c (do_autoload): Don't save autoloads.
19371
19372 * data.c (Ffset): Save autoload of the function being set.
19373
193742007-10-07 John Paul Wallington <jpw@pobox.com>
19375
19376 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19377 parameter before setting up faces.
19378
193792007-10-13 Eli Zaretskii <eliz@gnu.org>
19380
19381 * ccl.c (Fregister_code_conversion_map):
19382 * keyboard.c (append_tool_bar_item): Reformat last change.
19383
19384 * lisp.h (eabs): Rename from `abs'. All callers changed.
19385
193862007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19387
19388 * buffer.c (add_overlay_mod_hooklist):
19389 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19390 * fontset.c (make_fontset):
19391 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19392 (append_tool_bar_item):
19393 * macmenu.c (grow_menu_items):
19394 * w32menu.c (grow_menu_items):
19395 * xmenu.c (grow_menu_items): Use larger_vector.
19396
193972007-10-13 Eli Zaretskii <eliz@gnu.org>
19398
19399 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19400 selected frame'' on MSDOS).
19401
194022007-10-12 Martin Rudalics <rudalics@gmx.at>
19403
19404 * frame.c (Qexplicit_name): New variable.
19405 (x_report_frame_params): Report it in parameter alist.
19406 (syms_of_frame): Intern and staticpro it.
19407
194082007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19409
19410 * macfns.c (x_create_tip_frame): Set terminal for frame.
19411
194122007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19413
19414 * frame.c (Qenvironment): Remove.
19415 (syms_of_frame) <Qenvironment>: Don't initialize.
19416 (Fdelete_frame): Don't treat the `environment' param specially.
19417 * frame.h (Qenvironment): Don't declare.
19418 * callproc.c (set_initial_environment): Don't set unused frame param.
19419
19420 * frame.c (Fframe_with_environment): Remove.
19421 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19422
19423 * lisp.h (Fframe_with_environment): Don't declare.
19424
194252007-10-10 Juanma Barranquero <lekktu@gmail.com>
19426
19427 * indent.c (indent_tabs_mode, last_known_column)
19428 (last_known_column_modified): Make static.
19429 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19430
194312007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19432
19433 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19434
194352007-10-09 Jason Rumney <jasonr@gnu.org>
19436
19437 * w32term.c (x_set_window_size): Disable code that attempts to tell
19438 Lisp code about a size change before it actually happens.
19439
194402007-10-09 Richard Stallman <rms@gnu.org>
19441
19442 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19443 return HANDLED_RETURN.
19444
194452007-10-08 Martin Rudalics <rudalics@gmx.at>
19446
19447 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19448 when there's an unread command event.
19449
19450 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19451 window autoselection act appropriately when leaving selected frame.
19452 (syms_of_frame): Initialize focus_follows_mouse.
19453 * frame.h (focus_follows_mouse): Extern it.
19454 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19455 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19456 * msdos.c (dos_rawgetc): Likewise.
19457 * w32term.c (w32_read_socket): Likewise.
19458 * xterm.c (handle_one_xevent): Likewise.
19459 * xdisp.c (syms_of_xdisp): In doc-string of
19460 mouse-autoselect-window mention focus-follows-mouse.
19461
194622007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19463
19464 * macterm.c (mac_load_query_font): Fix missing return value.
19465 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19466 Add BLOCK_INPUT.
19467
194682007-10-08 Richard Stallman <rms@gnu.org>
19469
19470 * xdisp.c (get_window_cursor_type): Implement documented behavior
19471 for cursor-in-non-selected-windows = t.
19472
194732007-10-08 Jason Rumney <jasonr@gnu.org>
19474
19475 * w32.c (w32_get_resource): Always close registry keys.
19476
194772007-10-08 Jason Rumney <jasonr@gnu.org>
19478
19479 * makefile.w32-in (LIBS): Add COMCTL32.
19480
19481 * w32fns.c (globals_of_w32fns): Init common controls.
19482
194832007-10-08 Richard Stallman <rms@gnu.org>
19484
19485 * image.c (our_memory_buffer): Rename from omfib_buffer.
19486
194872007-10-08 Richard Stallman <rms@gnu.org>
19488
19489 * buffer.c (Foverlays_at): Doc fix.
19490
194912007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19492
19493 * fns.c (Fplist_put): Preserve uneven tail data.
19494
194952007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19496
19497 * termhooks.h (enum event_kind): Remove trailing comma.
19498
19499 * frame.h (enum): Remove trailing comma.
19500
195012007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19502
19503 * w32proc.c (delete_child): Don't terminate threads of zombies.
19504
195052007-10-08 Martin Rudalics <rudalics@gmx.at>
19506
19507 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19508
19509 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19510 last-repeatable-command.
19511 (init_kboard): Initialize Vlast_repeatable_command.
19512 (command_loop_1): Set it to real_this_command unless that was
19513 bound to an input event.
19514 (mark_kboards): Mark it.
19515
195162007-10-08 Richard Stallman <rms@gnu.org>
19517
19518 * eval.c (condition-case): Doc fix.
19519
195202007-10-08 Masatake YAMATO <jet@gyve.org>
19521
19522 * xfaces.c (tty_supports_face_attributes_p): Fix code
19523 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19524 was copied and not edited.
19525
195262007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19527
19528 Add new `input-decode-map' keymap and use it for terminal
19529 escape sequences.
19530 * keyboard.h (struct kboard): Add Vinput_decode_map.
19531 Remove Vlocal_key_translation_map.
19532 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19533 (init_kboard): Init input-decode-map.
19534 Replace local-key-translation-map back with key-translation-map.
19535 (syms_of_keyboard): Declare input-decode-map.
19536 Remove local-key-translation-map. Update docstrings.
19537 (mark_kboards): Mark Vinput_decode_map.
19538 Don't mark Vlocal_key_translation_map.
19539 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19540 Replace local-key-translation-map back with key-translation-map.
19541 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19542 Bind in input-decode-map rather than function-key-map.
19543
19544 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19545 This was made redundant by the previous introduction of XSETPVECTYPE.
19546
195472007-10-09 Richard Stallman <rms@gnu.org>
19548
19549 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19550
195512007-09-29 Richard Stallman <rms@gnu.org>
19552
19553 * eval.c (internal_condition_case_2, internal_condition_case_1)
19554 (internal_condition_case): Reenable abort if x_catching_errors ()
19555 to see if that really happens and why.
19556
195572007-10-06 Andreas Schwab <schwab@suse.de>
19558
19559 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19560
195612007-10-04 Juanma Barranquero <lekktu@gmail.com>
19562
19563 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19564
195652007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19566
19567 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19568
195692007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19570
19571 * window.h (struct window):
19572 * window.c (struct save_window_data, struct saved_window):
19573 * termhooks.h (struct terminal):
19574 * process.h (struct Lisp_Process):
19575 * frame.h (struct frame):
19576 * buffer.h (struct buffer):
19577 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19578 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19579 The size field of (pseudo)vectors is now unsigned.
19580 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19581
19582 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19583 Turn `count' into an integer.
19584
19585 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19586 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19587 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19588 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19589 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19590
19591 * alloc.c (allocate_pseudovector): New fun.
19592 (ALLOCATE_PSEUDOVECTOR): New macro.
19593 (allocate_window, allocate_terminal, allocate_frame)
19594 (allocate_process): Use it.
19595 (mark_vectorlike): New function.
19596 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19597 (mark_terminals): Use it.
19598 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19599 (Fmake_byte_code): Use XSETPVECTYPE.
19600
19601 * frame.c (Fframe_parameters): Minor simplification.
19602
19603 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19604
19605 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19606
19607 * buffer.c (Fget_buffer_create, init_buffer_once):
19608 * lread.c (defsubr):
19609 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19610
19611 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19612 defined differently in the m/*.h files.
19613 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19614 (XSETPVECTYPE): New macro.
19615 (XSETPSEUDOVECTOR): Use it.
19616
19617 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19618 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19619
19620 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19621 * lread.c (defvar_per_buffer):
19622 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19623
19624 * window.c (candidate_window_p): Only consider as visible frames that
19625 are on the same terminal.
19626
19627 * m/ibms390x.h (MARKBIT): Remove unused macro.
19628
196292007-10-01 Juanma Barranquero <lekktu@gmail.com>
19630
19631 * lread.c (Fload): Fix typo in docstring.
19632
196332007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19634
19635 * floatfns.c (Fexpt): Manually check for overflows, so that a power
19636 of a non-zero value can't yield zero.
19637
196382007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
19639
19640 * term.c (term_clear_mouse_face, term_mouse_highlight)
19641 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
19642
19643 * print.c (safe_debug_print): Use XHASH.
19644
19645 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
19646 Lisp elements such as tags.
19647 (XHASH): New macro.
19648 (EQ): Use it.
19649 (SREF, SSET, STRING_COPYIN): Use SDATA.
19650 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
19651
19652 * alloc.c (mark_terminal): Remove left-over declaration.
19653 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
19654 (allocate_vectorlike): Remove type argument. Adjust callers.
19655 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
19656 Only handle the one remaining MEM_TYPE_VECTORLIKE.
19657
19658 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
19659 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
19660 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
19661 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
19662 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
19663 Use them.
19664
19665 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
19666 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
19667 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
19668
196692007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
19670
19671 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
19672 loaded by default.
19673
196742007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
19675
19676 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
19677 on this tty.
19678 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
19679
19680 * term.c (mouse_face_window): Rename from Qmouse_face_window.
19681 Update all users.
19682 (handle_one_term_event): Use Gpm_DrawPointer.
19683 (Fgpm_mouse_start): Rename from Fterm_open_connection.
19684 Signal errors instead of returning nil. Always return nil.
19685 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
19686 Make it a noop if gpm-mouse was not activated.
19687 (syms_of_term): Update names.
19688
196892007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
19690
19691 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
19692 (init_sys_modes): Check that gpm_tty is the current tty.
19693
19694 * alloc.c (allocate_terminal): Set the vector size to only count the
19695 lisp fields. Initialize those to nil.
19696 (mark_object): Don't treat terminals specially.
19697 (mark_terminal): Remove.
19698 (mark_terminals): Use mark_object instead.
19699
19700 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
19701 the GC to the beginning.
19702
19703 * indent.h:
19704 * indent.c: Use EMACS_INT for ints coming from Elisp data.
19705
19706 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
19707
197082007-09-25 Jason Rumney <jasonr@gnu.org>
19709
19710 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
19711
19712 * w32console.c (create_w32cons_output): Remove.
19713
19714 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
19715
19716 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
19717 (reset_sys_modes): Use reset_terminal_modes_hook.
19718
197192007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
19720
19721 * eval.c (do_autoload): Don't output any message.
19722
197232007-09-24 Juri Linkov <juri@jurta.org>
19724
19725 * emacs.c (standard_args): Change priority of "--no-splash"
19726 from 40 to 3. Add "--no-desktop" with the same priority.
19727
197282007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
19729
19730 * alloc.c (gc_sweep): Check cons cell mark bits word by word
19731 and optimize the case where they are all 1.
19732
197332007-09-23 Johannes Weiner <hannes@saeurebad.de>
19734
19735 * lisp.h (abs): Define if not defined.
19736 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
19737 Don't define `abs', since it's defined in lisp.h.
19738
197392007-09-22 Eli Zaretskii <eliz@gnu.org>
19740
19741 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
19742 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
19743 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
19744 (init_tty): Use DEV_TTY instead of "/dev/tty".
19745 [WINDOWSNT]: No need to protect from NAME arg being null.
19746
197472007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
19748
19749 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
19750 up the tty state.
19751
197522007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19753
19754 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
19755 (gpm_tty): Change its type.
19756 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
19757 (gpm_tty): Change its type and initialize it.
19758 (Fterm_open_connection): Check the frame is indeed a tty.
19759 Use the new gpm_tty.
19760 (Fterm_close_connection): Use the new gpm_tty.
19761 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
19762 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
19763
197642007-09-21 Juanma Barranquero <lekktu@gmail.com>
19765
19766 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
19767 underline_color, to draw strike-through.
19768
197692007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
19770
19771 * lisp.h (allocate_terminal): Declare.
19772
19773 * window.c (candidate_window_p): Consider frames that are being placed
19774 by the user as somewhere between visible and iconified.
19775 (window_loop): Prefer windows on the current frame.
19776 (Fselect_window): Move the use of select-frame to the beginning so we
19777 can just delegate all the work (it'll call us back anyway).
19778
19779 * frame.c (Qdisplay_environment_variable):
19780 * frame.h (Qdisplay_environment_variable): Delete.
19781
19782 * .gdbinit (xbacktrace): Print the arg's address rather than the value
19783 of the first arg, since that value may be a union.
19784
19785 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
19786 parameter rather than Qdisplay_environment_variable. If all else
19787 fails, look for DISPLAY in initial-environment.
19788
197892007-09-21 Glenn Morris <rgm@gnu.org>
19790
19791 * Makefile.in (emacstool): Remove target.
19792 (lisp, shortlisp): Remove termdev.elc.
19793
197942007-09-21 Markus Triska <markus.triska@gmx.at>
19795
19796 * xterm.c (x_delete_display): Compile session management conditionally.
19797
197982007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19799
19800 * callproc.c (getenv_internal_1): New function.
19801 (getenv_internal): Use it.
19802 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19803
19804 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19805 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19806 (Fset_terminal_parameter): Work with dead terminals as well.
19807 (Fmodify_terminal_parameters): Remove.
19808
19809 * terminal.c (get_terminal): Handle terminals.
19810 Make sure the terminal returned is live.
19811 (create_terminal): Use allocate_terminal.
19812 (mark_terminals): Move to alloc.c.
19813 (delete_terminal): Use terminal->name as liveness status.
19814 NULL out fields after freeing their contents.
19815 Don't deallocate the object.
19816 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19817 rather than an int.
19818 (Fterminal_live_p): Accept non-integer arguments.
19819 (Fterminal_list): Return terminal objects rather than an ints.
19820
19821 * alloc.c (enum mem_type): New member for `terminal' objects.
19822 (allocate_terminal): New function.
19823 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19824 Handle terminals.
19825 (mark_terminal): New fun.
19826 (mark_terminals): Move from terminal.c.
19827
19828 * term.c (get_tty_terminal): Don't treat output_initial specially.
19829 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19830 (delete_tty): Use terminal->name as liveness status.
19831
19832 * termhooks.h (struct terminal): Make it into a pseudovector.
19833 Remove `deleted' replaced by checking `name's nullness.
19834
19835 * print.c (print_object): Handle terminals.
19836
19837 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19838 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19839
19840 * frame.c (make_terminal_frame):
19841 * keyboard.c (tty_read_avail_input):
19842 * w32term.c (x_delete_terminal):
19843 * xfns.c (Fx_create_frame, x_create_tip_frame):
19844 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19845
198462007-09-20 Glenn Morris <rgm@gnu.org>
19847
19848 * process.c (Fmake_network_process): Doc fix.
19849
198502007-09-19 Jason Rumney <jasonr@gnu.org>
19851
19852 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19853
198542007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19855
19856 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19857 Fix a C warning regarding variable constness.
19858
19859 * xterm.c (handle_one_xevent): Fix a C warning.
19860
198612007-09-18 Jason Rumney <jasonr@gnu.org>
19862
19863 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19864
198652007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19866
19867 * gtkutil.c (gdpy_def): New variable.
19868 (xg_initialize): Initialize gdpy_def.
19869 (xg_display_close): If no other display exists, set gdpy_def to a
19870 new connection.
19871
198722007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19873
19874 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19875 when we have no file name for the icon.
19876 (xg_tool_bar_expose_callback): Remove.
19877 (xg_create_tool_bar): Don't connect expose signal to
19878 xg_tool_bar_expose_callback.
19879 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19880
198812007-09-16 Andreas Schwab <schwab@suse.de>
19882
19883 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19884 values instead of zapping them.
19885
198862007-09-14 Glenn Morris <rgm@gnu.org>
19887
19888 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19889 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19890 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19891 scope and rename to omfib_buffer for clarity.
19892 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19893
198942007-09-14 Kenichi Handa <handa@m17n.org>
19895
19896 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19897
198982007-09-13 Jason Rumney <jasonr@gnu.org>
19899
19900 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19901
19902 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19903
19904 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19905 (mac_term_init): Call here instead, passing rif.
19906
199072007-09-13 Glenn Morris <rgm@gnu.org>
19908
19909 * s/hpux.h: No longer define `static' as nothing.
19910
199112007-09-13 Johan Bockgård <bojohan@gnu.org>
19912
19913 * callint.c (Fcall_interactively): Remove unused var `fun'.
19914
199152007-09-12 Romain Francoise <romain@orebokech.com>
19916
19917 * window.c (prefer_window_split_horizontally, display_buffer):
19918 Revert 2007-09-08 change.
19919
199202007-09-12 Glenn Morris <rgm@gnu.org>
19921
19922 * alloca.c: Remove file.
19923 * Makefile.in (alloca): Do not undef.
19924 (allocaobj, alloca.o): Remove.
19925 (otherobj): Remove allocaobj.
19926 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19927 * regex.c (C_ALLOCA): Remove all references and code that was only
19928 used when this was defined.
19929 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19930 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19931 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19932
19933 * Makefile.in (SOURCES, unlock, relock): Delete.
19934
19935 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19936 (menu_grab_callback): All uses changed.
19937
19938 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19939 (x_reply_selection_request): All uses changed.
19940
199412007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19942
19943 * lread.c (load_warn_old_style_backquotes): Change message to look
19944 better when it appears in the middle of byte-compiler messages.
19945
199462007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19947
19948 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19949
19950 * xterm.c (x_create_terminal): Add comment.
19951
19952 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19953
199542007-09-10 Richard Stallman <rms@gnu.org>
19955
19956 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19957
199582007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19959
19960 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19961 (DEFUN): Document `intspec', use it instead of `prompt'.
19962
19963 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19964
19965 * data.c (Finteractive_form): If the interactive specification starts
19966 with a `(', use it as a Lisp form.
19967
19968 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19969 name and file modes.
19970
19971 * callint.c (Fcall_interactively): Comment fixes.
19972
199732007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19974
19975 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19976 and compiled functions.
19977
199782007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19979
19980 * window.c (prefer_window_split_horizontally): New variable.
19981 (display_buffer): Consider splitting window horizontally depending
19982 on prefer_window_split_horizontally.
19983
199842007-09-08 Eli Zaretskii <eliz@gnu.org>
19985
19986 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19987
199882007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19989
19990 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19991
19992 * frame.c (x_set_frame_parameters): Check number is positive before
19993 using XFASTINT.
19994
19995 * window.c (freeze_window_start): Don't presume selected_window holds
19996 a window object.
19997 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19998
199992007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20000
20001 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20002
200032007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20004
20005 * window.c (Vsplit_window_preferred_function): New var.
20006 (Fdisplay_buffer): Use it.
20007 (syms_of_window): Export, and initialize it.
20008
200092007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20010
20011 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20012
200132007-09-06 Glenn Morris <rgm@gnu.org>
20014
20015 * gtkutil.c (menu_grab_callback) <cnt>:
20016 * xselect.c (x_reply_selection_request) <cnt>: Move static
20017 variable to file scope.
20018
200192007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20020
20021 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20022 consistent values of selected_frame and selected_window.
20023
200242007-09-04 Jason Rumney <jasonr@gnu.org>
20025
20026 * w32console.c (initialize_w32_display): Zero unused hooks.
20027
200282007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20029
20030 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20031 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20032
200332007-09-04 Jason Rumney <jasonr@gnu.org>
20034
20035 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20036 in w32console.c. Set up input. Remove XXX comments that have been
20037 confirmed as correct.
20038
20039 * s/ms-w32.h (MULTI_KBOARD): Define.
20040
20041 * w32console.c (one_and_only_w32cons): Remove.
20042 (initialize_w32_display): Take terminal argument.
20043
20044 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20045 initialize_w32_display.
20046 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20047
20048 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20049
20050 * keyboard.c (discard_mouse_events): Discard it.
20051 (make_lispy_event): Translate it to a lisp event.
20052 (lispy_wheel_names): Add wheel-left and right events.
20053 (syms_of_keyboard): Enlarge wheel_syms.
20054
20055 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20056 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20057
20058 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20059
20060 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20061 from WM_MOUSEHWHEEL.
20062 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20063
20064 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20065 terminal.
20066
20067 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20068 keyboard for the terminal.
20069
200702007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20071
20072 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20073 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20074 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20075 and resume-tty-function to resume-tty-hook.
20076 (Fsuspend_tty, Fresume_tty): Use new names.
20077
200782007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20079
20080 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20081 if it starts with "n:".
20082
200832007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20084
20085 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20086
200872007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20088
20089 * frame.h:
20090 * frame.c (Qterm_environment_variable): Remove.
20091 (syms_of_frame): Don't init and staticpro it.
20092
20093 * callproc.c (getenv_internal): Remove special case for $TERM.
20094
20095 * callproc.c (Vinitial_environment): New variable.
20096 (set_initial_environment): Initialize it.
20097 (syms_of_callproc): Declare it.
20098 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20099 TERM under which a process runs is never related to the TERM in which
20100 Emacs is running.
20101
201022007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20103
20104 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20105 * s/darwin.h: ... do it here.
20106
201072007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20108
20109 * lisp.h (set_initial_environment): Rename from set_global_environment.
20110
20111 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20112 removed by mistake on the multi-tty branch.
20113
20114 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20115 (Fmodify_frame_parameters): Return a value.
20116
20117 * image.c (png_load): Comment-out var only used in commented-out code.
20118
20119 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20120 before passing it to mark_object.
20121
20122 * xfaces.c (internal_resolve_face_name): Return a value.
20123 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20124
20125 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20126 (x_icon): Comment-out var only used in commented-out code.
20127
201282007-08-29 Romain Francoise <romain@orebokech.com>
20129
20130 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20131 QUIT hasn't been provided.
20132
201332007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20134
20135 * callproc.c (child_setup, getenv_internal): Use the
20136 display-environment-variable and term-environment-variable frame params.
20137 (set_initial_environment): Initialise Vprocess_environment.
20138
20139 * config.in: Disable multi-keyboard support on a mac.
20140
20141 * frame.c (Qterm_environment_variable)
20142 (Qdisplay_environment_variable): New variables.
20143 (syms_of_frame): Intern and staticpro them.
20144 (Fmake_terminal_frame): Disable output method test.
20145
20146 * frame.h: Declare them here.
20147
20148 * macfns.c (x_set_mouse_color): Get rif from the frame.
20149 (x_set_tool_bar_lines): Don't use updating_frame.
20150 (mac_window): Add 2 new parameters for consistency with other systems.
20151 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20152 frame parameters following what is done in X11 and w32. Don't use
20153 FRAME_MAC_DISPLAY_INFO.
20154 (Fx_open_connection, start_hourglass): Remove window-system check.
20155 (x_create_tip_frame): Get the keyboard from the terminal.
20156
20157 * macmenu.c: Reorder includes.
20158 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20159
20160 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20161 terminal parameter.
20162 (x_clear_frame): Add a frame parameter.
20163 (note_mouse_movement): Get rif from the frame.
20164 (mac_term_init): Initialize the terminal.
20165 (mac_initialize): Make static and move terminal initialization ...
20166 (mac_create_terminal): ... to this new function.
20167
20168 * macterm.h (struct mac_display_info): Add terminal.
20169 (mac_initialize): Delete declaration.
20170
20171 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20172
20173 * sysdep.c: Comment out text after #endif.
20174
20175 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20176 is defined. Better initialize ttys in windows. Use terminal
20177 specific mouse_position_hook.
20178
20179 * termhooks.h (union display_info): Add mac_display_info.
20180
20181 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20182 Set the default minibuffer frame, window_system and the rest of the
20183 frame parameters following what is done in X11.
20184
20185 * w32term.c (w32_initialize): Make static.
20186
20187 * xselect.c (x_handle_selection_clear): Only access
20188 terminal->kboard when MULTI_KBOARD is defined.
20189
20190 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20191 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20192
201932007-08-29 Jason Rumney <jasonr@gnu.org>
20194
20195 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20196 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20197
20198 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20199 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20200
20201 * keyboard.c (restore_kboard_configuration): Only define when
20202 MULTI_KBOARD defined.
20203
20204 * makefile.w32-in: Update dependancies from Makefile.in.
20205 (OBJ1): Add terminal.$(O)
20206
20207 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20208 Don't define function body.
20209 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20210
20211 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20212
20213 * w32.c (request_sigio, unrequest_sigio): Remove.
20214
20215 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20216 (w32con_clear_frame, w32con_clear_end_of_line)
20217 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20218 (w32con_delete_glyphs, w32con_set_terminal_window)
20219 (scroll_line, w32_sys_ring_bell): Add frame arg.
20220 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20221 Add terminal arg.
20222 (PICK_FRAME): Remove.
20223 (w32con_write_glyphs): Use frame specific terminal coding.
20224 (one_and_only_w32cons): New global variable.
20225 (initialize_w32_display): Use it for storing hooks.
20226 (create_w32cons_output): New function.
20227
20228 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20229 arg a frame.
20230
20231 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20232 Set window_system.
20233 (x_set_tool_bar_lines): Don't use updating_frame.
20234 (Fx_create_frame): Set terminal and ref count.
20235 (Fx_open_connection): Remove window-system check.
20236
20237 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20238
20239 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20240 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20241 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20242 Add frame arg.
20243 (x_delete_terminal, w32_create_terminal): New functions.
20244 (w32_term_init): Create a terminal.
20245 (w32_initialize): Move terminal specific initialization to
20246 w32_create_terminal.
20247
20248 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20249 (w32_clear_rect, w32_clear_area): Use background from frame.
20250 (w32_display_info): Add terminal.
20251 (w32_sys_ring_bell, x_delete_display): Declare here.
20252
20253 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20254
20255 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20256
202572007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20258
20259 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20260 Fix get_named_tty calls for the controlling tty.
20261
202622007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20263
20264 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
20265
202662007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20267
20268 * term.c (tty_insert_glyphs): Add missing first parameter.
20269
202702007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20271
20272 * buffer.c (Fbuffer_list, Fbury_buffer):
20273 Take frame->buried_buffer_list into account.
20274
20275 * cm.c (current_tty): New variable, for cmputc().
20276 (cmputc): Use it.
20277 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20278 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20279 (cmgoto): Add tty parameter. Pass it on to calccost().
20280 Use emacs_tputs() instead of tputs().
20281
20282 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20283 tputs().
20284 (current_tty): New variable, for cmputc().
20285 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20286
20287 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20288 (internal_condition_case, internal_condition_case_1)
20289 (internal_condition_case_2): Don't abort when x_catching_errors.
20290
20291 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20292 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20293 prevent crashes caused by bogus longjmps in read_char.
20294
20295 * keymap.h (Fset_keymap_parent): Add EXFUN.
20296
20297 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20298 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20299 Remove redundant definition.
20300
20301 * macfns.c (x_set_mouse_color, x_make_gc):
20302 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20303
20304 * w32term.c (x_free_frame_resources):
20305 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20306 (w32_initialize): Use the accessor macros for terminal characteristics.
20307
20308 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20309 Use the accessor macros for terminal characteristics.
20310 * msdos.c (internal_terminal_init): Use the accessor macros for
20311 terminal characteristics.
20312 (ScreenVisualBell, internal_terminal_init):
20313 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20314
20315 * termopts.h (no_redraw_on_reenter): Declare.
20316
20317 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20318 (mark_terminals, mark_ttys): Declare.
20319 (Fgarbage_collect): Call them.
20320 (mark_object): Mark buried_buffer_list.
20321
20322 * prefix-args.c: Include stdlib.h for exit.
20323
20324 * syssignal.h: Add comment.
20325
20326 * indent.c: Include stdio.h.
20327
20328 * window.h (Vinitial_window_system): Declare.
20329 (Vwindow_system): Delete declaration.
20330
20331 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20332
20333 * image.c (lookup_image): Don't initialize `c' until the xasserts
20334 have been run.
20335
20336 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20337 FRAME_FOREGROUND_PIXEL.
20338
20339 * print.c (print_preprocess): Don't lose print_depth levels while
20340 iterating.
20341
20342 * widget.c (update_from_various_frame_slots):
20343 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20344
20345 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20346 frames.
20347 (window_internal_height): Remove bogus make_number call.
20348 (init_window_once): Call make_terminal_frame with two zero parameters.
20349
20350 * fileio.c (Fread_file_name): Update comment.
20351
20352 * callint.c (Fcall_interactively):
20353 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20354 Make sure it is correctly unwound.
20355
20356 * xsmfns.c (x_session_close): New function.
20357
20358 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20359 Delete declarations.
20360
20361 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20362 (x_output): Remove background_pixel and foreground_pixel fields.
20363 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20364 (x_delete_device, x_session_close): Declare.
20365
20366 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20367 (read_filtered_event): Call `read_char' with a local
20368 `wrong_kboard_jmpbuf'.
20369
20370 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20371 Don't call single_kboard_state. Use FRAME_RIF.
20372
20373 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20374 systems.
20375
20376 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20377 (Fframe_with_environment, Fset_input_meta_mode)
20378 (Fset_quit_char): EXFUN.
20379 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20380 (init_sys_modes, reset_sys_modes): Update prototypes.
20381 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20382
20383 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20384 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20385 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20386 Delete declarations.
20387 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20388 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20389 New declarations.
20390
20391 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20392 already does that during init_display(). Call syms_of_keymap
20393 before syms_of_keyboard. Call `syms_of_terminal'.
20394 Call set_initial_environment, not set_process_environment.
20395 (shut_down_emacs): Call reset_all_sys_modes() instead of
20396 reset_sys_modes().
20397
20398 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20399 (internal_resolve_face_name, resolve_face_name_error): New functions.
20400 (resolve_face_name): Protect against loops and errors thrown by Fget.
20401 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20402 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20403
20404 * scroll.c: Replace CURTTY() with local variables throughout the
20405 file (where applicable).
20406 (calculate_scrolling, calculate_direct_scrolling)
20407 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20408 characteristics.
20409
20410 * keymap.c (Vfunction_key_map): Remove.
20411 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20412 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20413 (Vkey_translation_map): Remove.
20414 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20415 (Fdescribe_buffer_bindings)
20416 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20417 Update for terminal-local key-translation-map.
20418
20419 * Makefile.in (callproc.o): Update dependencies.
20420 (lisp, shortlisp): Add termdev.elc.
20421 (obj): Add terminal.o.
20422 (terminal.o): Add dependencies.
20423 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20424 (data.o, fns.o): Add termhooks.h dependency.
20425 (SOME_MACHINE_LISP): Add dnd.elc.
20426 (minibuf.o): Fix typo.
20427 Update dependencies.
20428
20429 * data.c (do_symval_forwarding, store_symval_forwarding)
20430 (find_symbol_value): Use the selected frame's keyboard, not
20431 current_kboard.
20432
20433 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20434 Vwindow_system.
20435
20436 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20437 Fmenu_bar_open.
20438 (syms_of_xmenu): Update defsubr.
20439 (mouse_position_for_popup, Fx_popup_menu)
20440 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20441 (set_frame_menubar, free_frame_menubar)
b97439ce 20442 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20443 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20444 an X frame.
20445
20446 * xselect.c (x_own_selection): Abort if not an X frame.
20447 (some_frame_on_display): Check if it is an X frame.
20448 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20449
20450 * coding.c: Include frame.h and termhooks.h.
20451 (terminal_coding, keyboard_coding): Delete.
20452 (Fset_terminal_coding_system_internal)
20453 (Fset_keyboard_coding_system_internal)
20454 (Fkeyboard_coding_system)
20455 (Fterminal_coding_system): Add a terminal parameter.
20456 Get terminal_coding from the terminal.
20457 (init_coding_once): Don't call setup_coding_system here.
20458
20459 * dispextern.h (set_scroll_region, turn_off_insert)
20460 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20461 (tty_clear_end_of_line, tty_setup_colors)
20462 (delete_tty, updating_frame)
20463 (produce_special_glyphs, produce_glyphs, write_glyphs)
20464 (insert_glyphs): Remove.
20465 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20466 (tty_turn_off_highlight, get_tty_size): Add declaration.
20467 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20468
20469 * frame.h (enum output_method): Add output_initial.
20470 (struct x_output): Delete.
20471 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20472 Access foreground_pixel and background_pixel directly from the frame.
20473 (tty_display): Delete.
20474 (struct frame): Add buried_buffer_list, foreground_pixel,
20475 background_pixel and terminal. Delete kboard.
20476 (union output_data): Add tty.
20477 (FRAME_KBOARD): Get the kboard from the terminal.
20478 (FRAME_INITIAL_P): New macro.
20479 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20480 (Qterm_environment_variable, Qdisplay_environment_variable)
20481 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20482 New declarations.
20483
20484 * termchar.h (tty_output, tty_display_info): New structures.
20485 (tty_list): Declare.
20486 (FRAME_TTY, CURTTY): New macros.
20487 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20488 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20489 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20490 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20491
20492 * callproc.c: Include frame.h and termhooks.h, for terminal
20493 parameters.
20494 (add_env): New function.
20495 (child_setup): Use it.
20496 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20497 (getenv_internal): Fix get_terminal_param call.
20498 (Fgetenv_internal, egetenv): Update doc.
20499 (syms_of_callproc): Initialize Vprocess_environment to nil.
20500 Register and initialize them. Remove obsolete defvars. Update doc
20501 strings.
20502 (child_setup): Handle Vlocal_environment_variables.
20503 (getenv_internal): Add terminal parameter.
20504 Handle Vlocal_environment_variables.
20505 (Fgetenv_internal): Add terminal parameter.
20506 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20507 environment in a frame (not terminal) parameter. Update doc strings.
20508 (set_initial_environment): Rename from set_global_environment.
20509 Store Emacs environment in initial frame parameter.
20510
20511 * xdisp.c (redisplay_internal): Update references to
20512 `previous_terminal_frame'.
20513 (display_mode_line, Fformat_mode_line): Replace calls to
20514 `push_frame_kboard' with `push_kboard'.
20515 (get_glyph_string_clip_rects): Add extra parentheses and
20516 braces to prevent compiler warnings.
20517 (calc_pixel_width_or_height): Add xassert to check that the
20518 frame is alive. Don't call `lookup_image' on a termcap frame.
20519 (message2_nolog, message3_nolog, redisplay_internal)
20520 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20521 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20522 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20523 (Fx_display_pixel_width, Fx_display_pixel_height)
20524 (Fx_display_planes, Fx_display_color_cells)
20525 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20526 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20527 (Fx_display_backing_store, Fx_display_visual_class)
20528 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20529 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20530
20531 * xfns.c (x_set_foreground_color x_set_background_color)
20532 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20533 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20534 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20535 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20536 terminal that is being deleted.
20537 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20538 frame parameter, and make sure it overrides any user-supplied setting.
20539 (Fx_close_connection, Fx_synchronize): Unify argument names with
20540 the rest of the DEFUNs.
20541
20542 * dispnew.c (Fsend_string_to_terminal): Update call to
20543 `get_tty_terminal'.
20544 (Fredraw_frame, Fsend_string_to_terminal)
20545 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20546 FRAME_TERMCAP_P and FRAME_TTY.
20547 (window_change_signal): Don't believe width/height values that are
20548 impossibly small.
20549 (Vinitial_window_system): Rename from Vwindow_system.
20550 (termscript, Wcm, rif): Delete.
20551
20552 * termhooks.h (struct terminal): New struct containing the
20553 previously global text display hooks and new members NAME,
20554 DELETED and PARAM_ALIST.
20555 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20556 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20557 (FRAME_RIF): New macros.
20558 (get_terminal_param, get_device): New declarations.
20559 (termscript): Delete declaration.
20560
20561 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20562 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20563 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20564 FRAME_FOREGROUND_PIXEL.
20565 (x_fully_uncatch_errors): Disable definition.
20566 (x_scroll_bar_expose): Fix reference to foreground pixel.
20567 (XTread_socket): Disable loop on all X displays.
20568 (x_delete_terminal): Don't set terminal->deleted and let
20569 delete_terminal delete the frames on the terminal.
20570 (x_delete_display): Doc update to reflect changes in
20571 delete_terminal.
20572 (x_display_info) <terminal>: Move member earlier in the struct.
20573 (deleting_tty): Remove old variable.
20574 (Fsuspend_tty): Call clear_tty_hooks.
20575 (Fresume_tty, init_tty): Call set_tty_hooks.
20576 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20577 errors on X frames.
20578 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20579 (handle_one_xevent): Initialize `f' to NULL.
20580 (x_delete_terminal, x_create_terminal): New functions.
20581 (XTset_terminal_modes, XTreset_terminal_modes)
20582 (XTread_socket, x_connection_closed, x_term_init)
20583 (x_term_init, x_delete_display): Add terminal parameter.
20584 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20585 X connections.
20586
20587 * frame.c: Include termchar.h.
20588 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20589 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20590 (Qdisplay_environment_variable): New vars.
20591 (Fframep): Deal with output_initial.
20592 (Fframe-live-p): Doc fix.
20593 (Fwindow-system): New function.
20594 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20595 (make_terminal_frame): Don't create frames on a terminal that is
20596 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20597 (store_frame_param): Check for found_for_frame before calling XFRAME.
20598 (Fmake_terminal_frame): Handle NULL tty names correctly.
20599 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20600 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20601 frames to refer to a deleted frame in their 'environment parameter.
20602 (Fframe_with_environment): New function.
20603 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20604 (get_future_frame_param): New function.
20605 (Fmake_terminal_frame): Use it.
20606 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20607
20608 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20609 * sysdep.c (reset_sys_modes): Update for renames.
20610
20611 * keyboard.c (tty_read_avail_input): New function.
20612 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20613 (syms_of_keyboard): Defsubr them.
20614 (Fset_input_meta_mode, Fset_quit_char): New functions.
20615 (Fset_input_mode): Split to above functions.
20616 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20617 parameter. Use it in call to `read_char'.
20618 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20619 Set wrong_kboard_jmpbuf correctly in recursive calls.
20620 Use current_kboard to access Vkeyboard_translate_table.
20621 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20622 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20623 Update longjmp invocations. Remember the original current_kboard,
20624 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20625 changes it. Comment out unnecessary calls to
20626 `record_single_kboard_state' and `any_kboard_state'.
20627 Update recursive calls.
20628 (wrong_kboard_jmpbuf): Remove global variable.
20629 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20630 Handle deleted interrupted_kboards correctly; that is a legal
20631 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20632 and read_char calls. Abort if interrupted_kboard died in read_char.
20633 (any_kboard_state, single_kboard_state)
20634 (push_frame_kboard): Remove function.
20635 (pop_kboard): Switch out of single_kboard mode if the kboard has
20636 been deleted. Remove unused variable. Help debugging by not
20637 changing current_kboard unnecessarily. Set current_kboard to the
20638 kboard of the selected frame when the stored kboard object has
20639 been deleted before pop_kboard.
20640 (temporarily_switch_to_single_kboard): Change first parameter to a
20641 frame pointer. Throw an error when caller wants to change kboards
20642 while in single_kboard mode. Don't push_kboard if we weren't in
20643 single kboard state. Don't pop_kboard if we popped into any
20644 kboard state.
20645 (restore_kboard_configuration): Abort if pop_kboard changed the
20646 kboard in single_kboard mode. Call pop_kboard only after setting
20647 up single_kboard mode.
20648 (Frecursive_edit): Switch to single_kboard mode only in nested
20649 command loops.
20650 (cmd_error, command_loop, command_loop_1, timer_check):
20651 Comment out unnecessary call to `any_kboard_state' and
20652 `record_single_kboard_state'.
20653 (delete_kboard): Exit single_kboard mode if we have just deleted
20654 that kboard. Use FRAME_KBOARD.
20655 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
20656 `fatal_error_signal'.
20657 (record_single_kboard_state): Don't push_kboard if we weren't in
20658 single kboard state. Don't pop_kboard if we popped into any
20659 kboard state.
20660 (push_frame_kboard): Rename to push_kboard.
20661 (kbd_buffer_get_event): Use FRAME_TERMINAL.
20662 (read_avail_input): Read input from all terminals.
20663 (mark_kboards): Also mark Vkeyboard_translate_table.
20664 (kbd_buffer_store_event_hold): Simplify condition.
20665 (read_key_sequence): Reinitialize fkey and keytran at each replay.
20666 (Vkeyboard_translate_table): Move to struct kboard.
20667 (init_kboard): Initialize Vkeyboard_translate_table.
20668 (syms_of_keyboard): Use DEFVAR_KBOARD to define
20669 Vkeyboard_translate_table. Update doc strings. Update docs of
20670 local-function-key-map and function-key-map.
20671
20672 * terminal.c: New file.
20673
20674 * term.c: Include errno.h.
20675 (Vring_bell_function, device_list, initial_device)
20676 (next_device_id, ring_bell, update_begin, update_end)
20677 (set_terminal_window, cursor_to, raw_cursor_to)
20678 (clear_to_end, clear_frame, clear_end_of_line)
20679 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
20680 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
20681 (syms_of_term): Move their initialization to terminal.c.
20682 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
20683 (Ftty_display_color_cells)
20684 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
20685 (clear_tty_hooks, set_tty_hooks)
20686 (init_tty, maybe_fatal): New functions.
20687 (Ftty_type): Return nil if terminal is not on a tty instead of
20688 throwing an error. Doc update.
20689 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
20690 Doc update. Initialize new subrs and variables.
20691 (delete_tty): Use terminal->deleted.
20692 (tty_set_terminal_modes): Rename from set_terminal_modes.
20693 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
20694 (set_scroll_region): Rename to `tty_set_scroll_region'.
20695 (turn_on_insert): Rename to `tty_turn_on_insert'.
20696 (turn_off_insert): Rename to `tty_turn_off_insert'.
20697 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
20698 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
20699 (toggle_highligh): Rename to `tty_toggle_highlight'.
20700 (background_highlight): Rename to `tty_background_highlight'.
20701 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
20702 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
20703 (tty_set_scroll_region, tty_background_highlight)
20704 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
20705 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
20706 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
20707 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
20708 Add static modifier.
20709 (tty_reset_terminal_modes, tty_set_terminal_window)
20710 (tty_set_scroll_region, tty_background_highlight)
20711 (tty_highlight_if_desired, tty_cursor_to)
20712 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
20713 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
20714 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
20715 renames.
20716
207172007-08-28 Jan Djärv <jan.h.d@swipnet.se>
20718
20719 * keyboard.c: Qrtl is new.
20720 (parse_tool_bar_item): Handle :rtl keyword.
20721 (syms_of_keyboard): Intern :rtl keyword.
20722
20723 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
20724
20725 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
20726 so no Lisp code is executed.
20727 (file_for_image, find_rtl_image): New functions.
20728 (xg_get_image_for_pixmap): Use file_for_image.
20729 (update_frame_tool_bar): If direction is RTL, use RTL image if
20730 defined. Use Gtk stock images if defined.
20731
207322007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20733
20734 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
20735 for nonexistent or zero-width glyph in composition glyph.
20736
207372007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
20738
20739 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
20740
20741 * xdisp.c (Finvisible_p): New function.
20742 (syms_of_xdisp): defsubr it.
20743
207442007-08-24 Juanma Barranquero <lekktu@gmail.com>
20745
20746 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
20747 Doc fixes.
20748
207492007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20750
20751 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
20752
207532007-08-24 Martin Rudalics <rudalics@gmx.at>
20754
20755 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
20756 whether decoding has modified buffer contents.
20757
207582007-08-24 Jason Rumney <jasonr@gnu.org>
20759
20760 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
20761 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
20762 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
20763 (init_svg_functions) [HAVE_NTGUI]: New function.
20764 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
20765 (svg_load_image): Use them.
20766 (svg_load_image) [HAVE_NTGUI]: Implement background.
20767
207682007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20769
20770 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
20771 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
20772 (LIBX): Remove @RSVG_LIBS@.
20773 (LIBES): Add $(RSVG_LIBS).
20774
20775 * image.c (svg_load_image): Blend with specified background if exists.
20776 Use IMAGE_BACKGROUND. Add Mac OS Support.
20777
20778 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
20779 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
20780 Remove macros.
20781 [MAC_OSX] (socket_callback): Do nothing.
20782 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
20783 ReceiveNextEvent.
20784 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
20785 socket_callback.
20786 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
20787
207882007-08-22 Glenn Morris <rgm@gnu.org>
20789
20790 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
20791
207922007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20793
20794 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20795
20796 * image.c: Add support for SVG images. Some additional comments
20797 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20798 (svg_image_p): New function to test for SVG image.
20799 (svg_load): New function to load SVG image.
20800 (svg_load_image): New function, helper for svg_load.
20801 (Qsvg): New Lisp_object.
20802 (svg_keyword_index): New enum.
20803 (svg_format): New static `image_keyword' struct.
20804 (svg_type): New static `image_type' struct.
20805 (librsvg/rsvg.h): Include it.
20806
208072007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20808
20809 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20810
208112007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20812
20813 * lread.c (Qold_style_backquotes): New var.
20814 (syms_of_lread): Init and staticpro it.
20815 (load_warn_old_style_backquotes): New fun.
20816 (Fload): Use them to warn about old style backquotes.
20817 (end_of_file_error, Fload): Remove unused vars.
20818
20819 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20820
20821 * lread.c (Vold_style_backquotes): New var.
20822 (syms_of_lread): Init and export it to Elisp.
20823 (read1): Set it when we find an old-style (back)quote.
20824
208252007-08-22 Jason Rumney <jasonr@gnu.org>
20826
20827 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20828
208292007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20830
20831 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20832
208332007-08-19 Richard Stallman <rms@gnu.org>
20834
20835 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20836
208372007-08-19 Andreas Schwab <schwab@suse.de>
20838
20839 * alloc.c (pure): Round PURESIZE up.
20840
208412007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20842
20843 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20844 active frame.
20845
208462007-08-16 Richard Stallman <rms@gnu.org>
20847
20848 * eval.c (Fcommandp): Add parens to clarify.
20849
20850 * minibuf.c (Fall_completions): Use enum for type of table.
20851
20852 * emacs.c (USAGE2): Improve text.
20853
208542007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20855
20856 * term.c (tty_default_color_capabilities): Declare static
20857 variables in file scope, to avoid HPUX compiler problem.
20858
208592007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20860
20861 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20862 to gtk_toolbar_insert.
20863
208642007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20865
20866 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20867
20868 * insdel.c (reset_var_on_error): New fun.
20869 (signal_before_change, signal_after_change):
20870 Use it to reset (after|before)-change-functions to nil in case of error.
20871 Bind inhibit-modification-hooks to t.
20872 Don't bind (after|before)-change-functions to nil while they run.
20873
208742007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20875
20876 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20877 filling pixmap with stippled background.
20878
208792007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20880
20881 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20882 Don't use invisible frame as parent window for repositioning.
20883
208842007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20885
20886 * print.c (new_backquote_output): Rename from old_backquote_output.
20887 (print): Inverse its logic (according to its name) so as to match the
20888 behavior of new_backquote_flag in lread.c.
20889
208902007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20891
20892 * gmalloc.c (posix_memalign): New function.
20893
20894 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20895 ActivateControl/DeactivateControl here.
20896 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20897 frame-notice-user-settings is non-nil.
20898 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20899 for kEventParamFMFontStyle.
20900 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20901 mac_pass_command_to_system and mac_pass_control_to_system here.
20902 (XTread_socket): Call ActivateControl/DeactivateControl here.
20903 (XTread_socket) [TARGET_API_MAC_CARBON]:
20904 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20905 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20906 for window repositioning.
20907
209082007-08-08 Glenn Morris <rgm@gnu.org>
20909
20910 * Replace `iff' in doc-strings and comments.
20911
209122007-08-07 Chong Yidong <cyd@stupidchicken.com>
20913
20914 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20915
209162007-08-07 Martin Rudalics <rudalics@gmx.at>
20917
20918 * fileio.c (Finsert_file_contents): Run format-decode and
20919 after_insert_file_functions on entire buffer when REPLACE is
20920 non-nil and inhibit modification_hooks and point_motion_hooks.
20921 For consistency, run after_insert_file_functions iff something
20922 got inserted. Move signal_after_change and update_compositions
20923 after code running after_insert_file_functions. Make sure that
20924 undo_list doesn't record intermediate steps of the decoding process.
20925
209262007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20927
20928 * emacs.c (main)
20929 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20930 Call malloc_enable_thread on interactive startup.
20931
20932 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20933 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20934 [USE_PTHREAD]: Conditionalize with it.
20935 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20936 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20937 New functions.
20938
209392007-08-06 Chong Yidong <cyd@stupidchicken.com>
20940
20941 * xdisp.c (redisplay_window): When restoring original buffer
20942 position, make sure it is still valid.
20943
20944 * image.c (png_load): Ignore png-supplied background color.
20945
209462007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20947
20948 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20949 Use kCFAbsoluteTimeIntervalSince1970.
20950
20951 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20952 New variable.
20953 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20954 event loop should be quit.
20955 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20956 Quit dialog event loop if quit_dialog_event_loop is set.
20957
20958 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20959 (Selection): New typedef. Use instead of ScrapRef.
20960 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20961 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20962 (mac_clear_selection): Rename from clear_scrap.
20963 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20964 scrap_has_target_type. All uses changed.
20965 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20966 (mac_selection_has_target_p): New functions.
20967 (mac_put_selection_value): Rename from put_scrap_string.
20968 (mac_get_selection_value): Rename from get_scrap_string.
20969 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20970 (put_scrap_private_timestamp, scrap_has_target_type)
20971 (get_scrap_private_timestamp): Remove functions.
20972 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20973 (x_own_selection, x_get_local_selection):
20974 Use mac_valid_selection_value_p.
20975 (x_own_selection): Don't use put_scrap_private_timestamp.
20976 Record OWNERSHIP-INFO into Vselection_alist instead.
20977 (x_get_local_selection): Don't check type if request is local.
20978 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20979 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20980
209812007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20982
20983 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20984 add comment explaining why.
20985
209862007-08-03 Richard Stallman <rms@gnu.org>
20987
20988 * fileio.c (Fvisited_file_modtime): Use make_time.
20989
209902007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20991
20992 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20993 build.
20994
209952007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20996
20997 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20998
209992007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21000
21001 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21002
210032007-07-30 Richard Stallman <rms@gnu.org>
21004
21005 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21006
210072007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21008
21009 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21010
210112007-07-28 Nick Roberts <nickrob@snap.net.nz>
21012
21013 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21014 remote default-directory.
21015
21016 * buffer.c (mode-line-format): Update doc string.
21017
210182007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21019
21020 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21021 scroll bar gap.
21022 (x_scroll_bar_create): Set bar->fringe_extended_p.
21023 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21024 on frame edge. Check fringe background extension. Don't clear
21025 extended fringe background area.
21026
21027 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21028 (w32_fill_area): Enclose multiple statements with do ... while (0).
21029
21030 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21031 Extend fringe background to scroll bar gap.
21032 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21033 Set bar->fringe_extended_p.
21034 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21035 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21036 background extension. Don't clear extended fringe background area.
21037
21038 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21039 New member fringe_extended_p.
21040
210412007-07-25 Glenn Morris <rgm@gnu.org>
21042
21043 * Relicense all FSF files to GPLv3 or later.
21044
21045 * COPYING: Switch to GPLv3.
21046
210472007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21048
21049 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21050
21051 * data.c (Finteractive_form): Check for the presence of an
21052 `interactive-form' symbol property more thoroughly.
21053
21054 * data.c (Finteractive_form): Use an `interactive-form' property if
21055 present, analogous to the function-documentation property.
21056
210572007-07-24 Jason Rumney <jasonr@gnu.org>
21058
21059 * w32fns.c (x_real_positions): Get real position from OS instead of
21060 calculating it.
21061
210622007-07-23 Jason Rumney <jasonr@gnu.org>
21063
21064 * filelock.c (current_lock_owner): Allow for @ sign in username.
21065
210662007-07-22 Nick Roberts <nickrob@snap.net.nz>
21067
21068 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21069 remote default-directory.
21070
21071 * buffer.c (mode-line-format): Describe above case in doc string.
21072
210732007-07-20 Eli Zaretskii <eliz@gnu.org>
21074
21075 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21076 Define if not defined.
21077
210782007-07-18 Jason Rumney <jasonr@gnu.org>
21079
21080 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21081
210822007-07-18 Richard Stallman <rms@gnu.org>
21083
21084 * data.c (Fsetq_default): Doc fix.
21085
21086 * eval.c (Fsetq): Doc fix.
21087
210882007-07-18 Juanma Barranquero <lekktu@gmail.com>
21089
21090 * coding.c (Ffind_operation_coding_system):
21091 * eval.c (For, Fand): Doc fixes.
21092 Reported by Johan Bockgård.
21093
210942007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21095
21096 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21097
21098 * xterm.h: Declare x_ewmh_activate_frame.
21099
21100 * xterm.c (x_ewmh_activate_frame): New function.
21101 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21102
211032007-07-17 Martin Rudalics <rudalics@gmx.at>
21104
21105 * window.c (Fdisplay_buffer): If largest or LRU window is the
21106 only window, split it even if it is not eligible for splitting.
21107 This restores the original behavior broken by the 2007-07-15
21108 change.
21109
211102007-07-17 Glenn Morris <rgm@gnu.org>
21111
21112 * abbrev.c (abbrev_check_chars): New function.
21113 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21114 Call abbrev_check_chars to check abbrev characters are word
21115 constituents. Doc fix.
21116
211172007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21118
21119 * process.c (Fstart_process, Fmake_network_process)
21120 (read_process_output): Fix up last changes.
21121
211222007-07-16 Eli Zaretskii <eliz@gnu.org>
21123
21124 * makefile.w32-in (clean): Don't delete *~.
21125
211262007-07-16 Andreas Schwab <schwab@suse.de>
21127
21128 * window.c (Fdisplay_buffer): Use NILP.
21129 (Fset_window_scroll_bars): Likewise.
21130
211312007-07-15 Martin Rudalics <rudalics@gmx.at>
21132
21133 * window.c (window_min_size_2): New function.
21134 (window_min_size_1, size_window, Fdisplay_buffer)
21135 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21136 windows without mode- or header-lines when window-min-height is
21137 too small.
21138 (size_window): Reset nodelete_p after testing it, following an
21139 earlier note by Kim F. Storm.
21140 (display_buffer): Do not set split_height_threshold to twice the
21141 value of window_min_height to avoid changing the value of a
21142 customizable variable. Rather explicitly check whether the
21143 height of the window that shall be splitted is at least as large
21144 as split_height_threshold.
21145 (Fwindow_full_width_p): New defun.
21146 (syms_of_window): Defsubr it.
21147
21148 * window.h: Add EXFUN for Fwindow_full_width_p.
21149
211502007-07-14 Jason Rumney <jasonr@gnu.org>
21151
21152 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21153
211542007-07-14 Richard Stallman <rms@gnu.org>
21155
21156 * eval.c (maybe_call_debugger): New function.
21157 (find_handler_clause): Use maybe_call_debugger.
21158 Call it when the handler says `debug'.
21159 Eliminate DEBUGGER_VALUE_PTR.
21160 (Fsignal): Eliminate debugger_value.
21161 (Qdebug): New variable.
21162 (syms_of_eval): Initialize it.
21163
211642007-07-14 Juanma Barranquero <lekktu@gmail.com>
21165
21166 * eval.c (Fprogn):
21167 * keyboard.c (Ftrack_mouse):
21168 * print.c (Fwith_output_to_temp_buffer):
21169 * window.c (Fsave_window_excursion): Doc fix.
21170
211712007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21172
21173 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21174
211752007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21176
21177 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21178 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21179 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21180 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21181 Remove unused encoding_carryover.
21182 * process.c: Adjust all functions accordingly.
21183
211842007-07-12 Richard Stallman <rms@gnu.org>
21185
21186 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21187
211882007-07-11 Jason Rumney <jasonr@gnu.org>
21189
21190 * makefile.w32-in (LIBS): Include OLE32.
21191
21192 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21193 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21194
211952007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21196
21197 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21198 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21199 from a Lisp_Object into a bare pointer.
21200 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21201 Adjust the code correspondingly.
21202
21203 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21204
21205 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21206 (term_show_mouse_face): Remove unused var `j'.
21207 (handle_one_term_event): Remove unused vars `i' and `j'.
21208 Don't cast return value of ttyname since it's not necessary.
21209
212102007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21211
21212 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21213 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21214
21215 * fns.c (map_char_table): Use an array of int for `indices' rather than
21216 an array of Lisp_Objects (which are only ever integers anyway).
21217 (Fmap_char_table): Update caller.
21218 * lisp.h: Update prototype.
21219 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21220 * fontset.c (Ffontset_info):
21221 * casetab.c (set_case_table): Update callers.
21222
21223 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21224
21225 * keymap.c (struct accessible_keymaps_data)
21226 (struct where_is_internal_data): New structures.
21227 (accessible_keymaps_1, where_is_internal_1): Use them to change
21228 interface to adhere to the one used by map_keymap.
21229 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21230 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21231
21232 * keymap.h (map_keymap_function_t): More informative prototype.
21233
212342007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21235
21236 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21237 (looking_at_1): Don't change search_regs and last_thing_searched
21238 if `inhibit-changing-match-data' is non-nil.
21239 (string_match_1, search_buffer, set_search_regs): Likewise.
21240 (syms_of_search): Add Lisp level definition for
21241 `inhibit-changing-match-data' and set it to nil.
21242 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21243 start and end of the match, instead of using values in search_regs.
21244
212452007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21246
21247 * minibuf.c (Fcompleting_read): New value `confirm-only'
21248 for `require-match'.
21249
212502007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21251
21252 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21253 part of the 2007-06-27 change to syms_of_fileio.
21254
212552007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21256
21257 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21258 Check WINDOWP before using XWINDOW. Consolidate return statements.
21259
212602007-06-27 Richard Stallman <rms@gnu.org>
21261
21262 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21263
212642007-06-27 Juanma Barranquero <lekktu@gmail.com>
21265
21266 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21267
212682007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21269
21270 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21271 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21272 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21273 (_free_internal, memalign): Use them.
21274 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21275 Initialize to PTHREAD_MUTEX_INITIALIZER.
21276 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21277 (morecore_nolock): Rename from morecore. All uses changed.
21278 Use only nolock versions of internal allocation functions.
21279 (_malloc_internal_nolock, _realloc_internal_nolock)
21280 (_free_internal_nolock): New functions created from
21281 _malloc_internal, _realloc_internal, and _free_internal.
21282 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21283 Copy hook value to automatic variable before its use.
21284 (memalign): Copy hook value to automatic variable before its use.
21285
212862007-06-26 Kenichi Handa <handa@m17n.org>
21287
21288 * coding.c (Ffind_operation_coding_system): Docstring improved.
21289 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21290
212912007-06-25 David Kastrup <dak@gnu.org>
21292
21293 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21294 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21295 cater for additional parameter.
21296
21297 * keymap.h: Adjust number of parameters to `current-active-maps'.
21298
21299 * doc.c (Fsubstitute_command_keys): Adjust call of
21300 `current-active-maps'.
21301
213022007-06-25 David Kastrup <dak@gnu.org>
21303
21304 * callint.c (Fcall_interactively): Make the parsing of interactive
21305 specs somewhat more readable.
21306
213072007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21308
21309 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21310 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21311 if extended background has already been filled.
21312
213132007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21314
21315 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21316 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21317
21318 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21319 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21320 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21321 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21322 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21323 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21324 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21325 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21326 Run timers during dialog popup.
21327 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21328
213292007-06-21 Jason Rumney <jasonr@gnu.org>
21330
21331 * image.c (convert_mono_to_color_image): Swap fore and background.
21332
213332007-06-20 Jason Rumney <jasonr@gnu.org>
21334
21335 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21336 (w32_free_bdf_font): Unmap memory not handle.
21337
213382007-06-20 Sam Steingold <sds@gnu.org>
21339
21340 * gmalloc.c (__morecore): Fix the declaration to comply with the
21341 definition.
21342
213432007-06-20 Juanma Barranquero <lekktu@gmail.com>
21344
21345 * w32term.c (w32_delete_display): Remove leftover declaration.
21346 (w32_define_cursor, w32_initialize): Make static.
21347
21348 * w32.c (_wsa_errlist): Fix typo in error message.
21349 (init_environment): Ignore any environment variable from the
21350 registry having a null value.
21351
213522007-06-20 Glenn Morris <rgm@gnu.org>
21353
21354 * Makefile.in (LIBGIF): Default to -lgif.
21355
213562007-06-17 Jason Rumney <jasonr@gnu.org>
21357
21358 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21359 unicode strings.
21360
213612007-06-16 Juanma Barranquero <lekktu@gmail.com>
21362
21363 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21364 Fix typo in docstring.
21365
213662007-06-16 Eli Zaretskii <eliz@gnu.org>
21367
21368 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21369 and their keybindings.
21370
213712007-06-15 Chong Yidong <cyd@stupidchicken.com>
21372
21373 * composite.c (update_compositions): Fix last fix.
21374
213752007-06-14 Jason Rumney <jasonr@gnu.org>
21376
21377 * w32.c (get_process_times_fn): New function pointer.
21378 (globals_of_w32): Intialize it if present in kernel32.dll.
21379 (w32_get_internal_run_time): New function.
21380
21381 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21382
213832007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21384
21385 * composite.c (update_compositions): Check the validness of
21386 compositions.
21387
213882007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21389
21390 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21391 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21392
21393 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21394 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21395
21396 * macgui.h (USE_MAC_TOOLBAR): New define.
21397
21398 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21399 Return immediately unless popup is activated.
21400
21401 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21402 background to scroll bar gap.
21403 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21404 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21405 scroll bars on frame edge. Check fringe background extension.
21406 Don't clear extended fringe background area.
21407 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21408 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21409 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21410 [USE_MAC_TOOLBAR]: New macros.
21411 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21412 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21413 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21414 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21415 [USE_MAC_TOOLBAR]: New functions.
21416 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21417 manually if previous repositioning has failed.
21418 (mac_handle_keyboard_event): Use precomputed event kind.
21419 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21420 as tool bar item click. Handle mouse movement over tool bar items.
21421
21422 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21423 toolbar_win_gravity.
21424 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21425 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21426 Add externs.
21427
21428 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21429 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21430
214312007-06-14 Chong Yidong <cyd@stupidchicken.com>
21432
21433 * image.c (search_image_cache): Remove unused variable.
21434
214352007-06-13 Chong Yidong <cyd@stupidchicken.com>
21436
21437 * xfns.c, xmenu.c: Link to xaw3d if available.
21438
214392007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21440
21441 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21442 frame_foreground and frame_background.
21443
21444 * image.c (lookup_image): Save frame foreground and background colors.
21445 (search_image_cache): Check if saved and current frame colors match.
21446
214472007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21448
21449 * regex.c (regex_compile): Remove the `regnum' counter.
21450 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21451
214522007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21453
21454 * term.c: Include intervals.h to declare Fget_text_property.
21455
214562007-06-10 Jason Rumney <jasonr@gnu.org>
21457
21458 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21459
214602007-06-08 Juanma Barranquero <lekktu@gmail.com>
21461
21462 * callint.c (Fcall_interactively):
21463 * editfns.c (Fdelete_and_extract_region):
21464 * fileio.c (Fread_file_name):
21465 * fns.c (Fmapconcat):
21466 * keyboard.c (cmd_error_internal):
21467 * keymap.c (Fkey_description):
21468 * lread.c (openp):
21469 * minibuf.c (read_minibuf):
21470 * search.c (wordify):
21471 * sunfns.c (sel_read):
21472 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21473 * xfns.c (x_default_scroll_bar_color_parameter):
21474 * xmenu.c (menu_help_callback):
21475 * xselect.c (Fx_get_atom_name):
21476 * xterm.c (x_term_init): Use empty_unibyte_string.
21477
214782007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21479
21480 * alloc.c (init_strings): Initialize canonical empty strings.
21481 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21482 canonical empty string when the requested size is 0.
21483
21484 * emacs.c (empty_unibyte_string): Rename from empty_string.
21485 (empty_multibyte_string): New canonical empty string.
21486 (syms_of_emacs): Don't initialize empty_string.
21487
21488 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21489 string, if appropriate.
21490 (empty_unibyte_string, empty_multibyte_string): New externs.
21491 (empty_string): Remove extern.
21492
21493 * lread.c (syms_of_lread): Use empty_unibyte_string.
21494
214952007-06-07 Jason Rumney <jasonr@gnu.org>
21496
21497 * s/ms-w32.h: Don't define HAVE_TZNAME.
21498
21499 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21500
215012007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21502
21503 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21504
21505 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21506 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21507
21508 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21509 Don't call next handler.
21510 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21511 Remove argument. Install handler to application.
21512 (set_frame_menubar): Don't change deep_p.
21513 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21514 FRAME_OUTER_TO_INNER_DIFF_Y.
21515 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21516 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21517 [HAVE_DIALOGS]: New macros.
21518 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21519 Use them.
21520 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21521
21522 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21523 init_service_handler. All callers changed. Return OSStatus value.
21524
21525 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21526 All callers changed so as not to call SetPortWindowPort.
21527 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21528 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21529 mac_draw_string_common.
21530 (mac_draw_image_string_qd): Likewise.
21531 (mac_draw_string_common): Use them. Add INLINE.
21532 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21533 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21534 GetGlobalMouse.
21535 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21536 and FRAME_OUTER_TO_INNER_DIFF_Y.
21537 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21538 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21539 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21540 repositioning window to mac_handle_window_event.
21541 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21542 saving window location to mac_handle_window_event
21543 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21544 (install_menu_target_item_handler): Remove argument in extern.
21545 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21546 Also accept command events.
21547 (do_keystroke): New function created from XTread_socket.
21548 (init_command_handler): Remove functions.
21549 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21550 and save window location by kEventWindowShowing and kEventWindowHiding
21551 handlers here. Don't call next handler for window state change and
21552 focus events.
21553 (mac_handle_application_event, mac_handle_keyboard_event)
21554 [TARGET_API_MAC_CARBON]: New functions.
21555 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21556 kEventWindowShowing and kEventWindowHiding events. Move installation
21557 of mouse, font, text input and menu target item handlers to
21558 install_application_handler.
21559 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21560 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21561 New function.
21562 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21563 Register it.
21564 (XTread_socket) [TARGET_API_MAC_CARBON]:
21565 Consolidate SendEventToEventTarget calls.
21566 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21567 Move application activation handler to mac_handle_application_event.
21568 Move keyboard handler to mac_handle_keyboard_event.
21569 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21570 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21571 init_command_handler. Call install_application_handler.
21572
21573 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21574 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21575
215762007-06-07 Glenn Morris <rgm@gnu.org>
21577
21578 * emacs.c (main): Use `emacs-copyright' in --version output.
21579
215802007-06-06 Chong Yidong <cyd@stupidchicken.com>
21581
21582 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21583
215842007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21585
21586 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21587
21588 * macgui.h: Replace WindowPtr with WindowRef.
21589
21590 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21591 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21592 Replace ControlHandle with ControlRef.
21593 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21594
21595 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21596 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21597 Replace ControlHandle with ControlRef.
21598 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21599 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21600
21601 * macterm.h (struct scroll_bar): Rename member control_handle_low
21602 and control_handle_high to control_ref_low and control_ref_high.
21603 All uses changed.
21604 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21605 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21606 respectively. All uses changed.
21607 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21608 (install_window_handler, remove_window_handler): Replace WindowPtr
21609 with WindowRef in externs.
21610
216112007-06-05 Juanma Barranquero <lekktu@gmail.com>
21612
21613 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21614
216152007-06-03 Nick Roberts <nickrob@snap.net.nz>
21616
21617 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21618
21619 * frame.c (Fmouse_position, Fmouse_pixel_position):
21620 Condition on HAVE_GPM too.
21621
21622 * term.c (term_mouse_highlight): Remove unused variables.
21623 (Fterm_open_connection): Set gpm_zerobased to 1.
21624 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21625 Use zero based co-ordinates.
21626 (handle_one_term_event): Report a drag as mouse movement too.
21627
21628 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21629
216302007-06-03 Chong Yidong <cyd@stupidchicken.com>
21631
21632 * image.c (search_image_cache): New function. Require background
21633 color match if background color is unspecified in the image spec.
21634 (uncache_image, lookup_image): Use it.
21635
216362007-06-01 Juanma Barranquero <lekktu@gmail.com>
21637
21638 * window.c (Fshrink_window): Reflow docstring.
21639
216402007-06-02 Chong Yidong <cyd@stupidchicken.com>
21641
21642 * Version 22.1 released.
21643
216442007-06-01 Richard Stallman <rms@gnu.org>
21645
21646 * xfns.c (x_encode_text): Add GCPRO.
21647
216482007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21649
21650 * xfns.c (x_set_name_internal): Save encoded name before
21651 x_encode_text in case string data is relocated.
21652
216532007-05-31 Richard Stallman <rms@gnu.org>
21654
21655 * buffer.c (syms_of_buffer): Doc fix.
21656
216572007-05-30 Nick Roberts <nickrob@snap.net.nz>
21658
21659 * sysdep.c (init_sys_modes): Add rather than replace with
21660 O_NONBLOCK.
21661
21662 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
21663 term_mouse_moveto.
21664
21665 * termhooks.h (term_mouse_moveto): New extern.
21666
21667 * term.c (mouse_face_window): Rename...
21668 (Qmouse_face_window): ...to this.
21669 (term_show_mouse_face, term_clear_mouse_face)
21670 (term_mouse_highlight): Use Qmouse_face_window.
21671 (term_mouse_moveto): New function.
21672 (term_mouse_position): Make it work.
21673 (syms_of_term): Uncomment assignment to mouse_position_hook.
21674 Staticpro Qmouse_face_window.
21675
216762007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21677
21678 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
21679 around current_column call.
21680
216812007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
21682
21683 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
21684 * xdisp.c (next_element_from_buffer):
21685 * window.c (delete_window):
21686 * term.c (term_mouse_highlight):
21687 * msdos.c (getdefdir):
21688 * macterm.c (mac_create_bitmap_from_bitmap_data)
21689 (init_font_name_table):
21690 * fns.c (Fsxhash):
21691 * data.c (Fmake_local_variable):
21692 * ccl.c (ccl_driver): Likewise.
21693
216942007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21695
21696 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
21697 Call mac_wakeup_from_rne on window size change.
21698
216992007-05-25 Chong Yidong <cyd@stupidchicken.com>
21700
21701 * image.c (uncache_image): Fix typo.
21702
217032007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
21704
21705 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
21706
217072007-05-22 Richard Stallman <rms@gnu.org>
21708
21709 * xterm.c (x_connection_closed): Remove NO_RETURN.
21710
217112007-05-22 Martin Rudalics <rudalics@gmx.at>
21712
21713 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
21714
217152007-05-21 Chong Yidong <cyd@stupidchicken.com>
21716
21717 * image.c (uncache_image): New function.
21718 (Fimage_refresh): New function.
21719
217202007-05-20 Jan Djärv <jan.h.d@swipnet.se>
21721
21722 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
21723
217242007-05-20 Nick Roberts <nickrob@snap.net.nz>
21725
21726 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
21727 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
21728
217292007-05-20 Nick Roberts <nickrob@snap.net.nz>
21730
21731 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
21732 conditional on [HAVE_GPM_H].
21733
217342007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
21735
21736 * syntax.c (skip_chars): Update syntax-table only after we checked that
21737 the new location is valid.
21738
217392007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21740
21741 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
21742 mac_get_window_bounds.
21743
217442007-05-20 Nick Roberts <nickrob@snap.net.nz>
21745
21746 * Makefile.in (LIBGPM): Allow it to be set from configure.
21747 If set then link Emacs with it.
21748
21749 * config.in: Regenerate.
21750
21751 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
21752 New externs.
21753
21754 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
21755 Include gpm.h.
21756 (handle_one_term_event, term_gpm): New externs.
21757
21758 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
21759 and allow it to be interrupted by SIGIO.
21760
21761 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
21762 (wait_reading_process_output): Wait on gpm_fd too.
21763 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
21764 (add_gpm_wait_descriptor_called_flag): New variable.
21765 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
21766
21767 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
21768 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
21769 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
21770 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
21771 (make_lispy_event): Add case GPM_CLICK_EVENT.
21772 (read_avail_input): Handle mouse input.
21773
21774 * term.c (write_glyphs_with_face): New function.
21775 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
21776 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
21777 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
21778 (mouse_face_face_id, term_gpm, pos_x, pos_y)
21779 (last_mouse_x, last_mouse_y): New variables.
21780 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
21781 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
21782 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
21783 (Fterm_close_connection): New functions.
21784 (term_init): Initialise mouse_face_window.
21785
217862007-05-19 Chong Yidong <cyd@stupidchicken.com>
21787
21788 * xdisp.c (redisplay_window): If first window line is a
21789 continuation line, recompute the new window start instead of
21790 recentering.
21791
217922007-05-18 Glenn Morris <rgm@gnu.org>
21793
21794 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21795 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21796
217972007-05-17 Glenn Morris <rgm@gnu.org>
21798
21799 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21800
218012007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21802
21803 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21804 dead key repeat and up events.
21805
218062007-05-14 Chong Yidong <cyd@stupidchicken.com>
21807
21808 * image.c (pbm_load): Check image size for monochrome pbm.
21809
218102007-05-13 Chong Yidong <cyd@stupidchicken.com>
21811
21812 * xterm.c (XTread_socket): Revert last change.
21813
218142007-05-12 Chong Yidong <cyd@stupidchicken.com>
21815
21816 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21817
21818 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21819
218202007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21821
21822 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21823 mixup (YAILOM).
21824
218252007-05-07 Andreas Schwab <schwab@suse.de>
21826
21827 * keymap.c (Flookup_key): Fix typo in last change.
21828
218292007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21830
21831 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21832 mapping for unibyte strings.
21833
218342007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21835
21836 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21837 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21838
218392007-04-29 Richard Stallman <rms@gnu.org>
21840
21841 * insdel.c (replace_range): For undo, record insertion first.
21842
218432007-04-29 Andreas Schwab <schwab@suse.de>
21844
21845 * lisp.h (VECSIZE): Use OFFSETOF.
21846
218472007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21848
21849 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21850 disabled lines.
21851
218522007-04-28 Richard Stallman <rms@gnu.org>
21853
21854 * lread.c (read_escape): In a string, \s is always space.
21855
218562007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21857
21858 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21859
21860 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21861 submenu for menu bar items.
21862
21863See ChangeLog.10 for earlier changes.
21864
21865;; Local Variables:
21866;; coding: utf-8
21867;; add-log-time-zone-rule: t
aac0c6e3
MR
21868;; End:
21869
e3eb1dae 21870 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
21871
21872 This file is part of GNU Emacs.
21873
21874 GNU Emacs is free software: you can redistribute it and/or modify
21875 it under the terms of the GNU General Public License as published by
21876 the Free Software Foundation, either version 3 of the License, or
21877 (at your option) any later version.
21878
21879 GNU Emacs is distributed in the hope that it will be useful,
21880 but WITHOUT ANY WARRANTY; without even the implied warranty of
21881 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21882 GNU General Public License for more details.
21883
21884 You should have received a copy of the GNU General Public License
21885 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21886
21887;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40