* m/intel386.h (NO_REMAP): Move definition ...
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c435b432
DN
12010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2
a568f507
DN
3 * m/intel386.h (NO_REMAP): Move definition ...
4 * s/msdos.h (NO_REMAP): ... here.
5
4cd9f6c2
DN
6 * m/vax.h (CRT0_DUMMIES): Remove, unused.
7
c435b432
DN
8 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9 used on those platforms.
10
42a2c622
DN
112010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
12
13 Remove extern errno declarations.
14 * xterm.c:
15 * xrdb.c:
16 * w32term.c:
17 * unexec.c:
18 * unexaix.c:
19 * sysdep.c:
20 * process.c:
21 * lread.c:
22 * keyboard.c:
23 * floatfns.c:
24 * filelock.c:
25 * fileio.c:
26 * emacs.c (main):
27 * ecrt0.c:
28 * dispnew.c:
29 * callproc.c:
30 * buffer.c: Remove errno extern declarations.
31 * s/netbsd.h (NEED_ERRNO): Remove.
32
8224f93d
DN
332010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
34
35 Remove all uses of LIBX11_SYSTEM.
36 * Makefile.in (LIBX11_SYSTEM): Remove.
37 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
38 instead.
39
814062c7
EZ
402010-04-01 Eli Zaretskii <eliz@gnu.org>
41
ed68db4d
EZ
42 Remove support for DJGPP v1.x (bug#5813).
43
44 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
45 * s/msdos.h:
46 * unexec.c (make_hdr, copy_text_and_data):
47 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 48 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
49 (IT_set_terminal_modes, __write, _rename, gethostname)
50 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
51 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
52 the value of __DJGPP__.
ed68db4d
EZ
53 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
54 compatibility code.
8224f93d
DN
55 * lread.c:
56 * gmalloc.c (memalign):
57 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
58 * emacs.c (main):
59 * dosfns.c (init_dosfns):
ed68db4d
EZ
60 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
61
52f4d8d5
EZ
622010-04-01 Eli Zaretskii <eliz@gnu.org>
63
814062c7
EZ
64 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
65 string with `cursor' property comes from an `after-string'
66 overlay. (Bug#5816)
67
0dc2e11d
GM
682010-04-01 Glenn Morris <rgm@gnu.org>
69
70 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
71 Define as Makefile variables.
72 (LIBX): Use above variables rather than directly using autoconf.
73
1d29df59
DN
742010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
75
76 Clean up BSD_SYSTEM use.
77 * xterm.c:
78 * process.c:
79 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
80 for including <sys/ioctl.h>.
81 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
82 code is only used for MSDOS.
83
1546c559
JL
842010-03-31 Juri Linkov <juri@jurta.org>
85
86 * image.c: Add `Qextension_data'.
87 (syms_of_image): Initialize and staticpro `Qextension_data'.
88 (Fimage_metadata): Rename from `Fimage_extension_data'.
89 (gif_load): Put GIF extension data to the property
90 `Qextension_data'.
91
6521c534
CY
922010-03-31 Chong Yidong <cyd@stupidchicken.com>
93
94 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
95 * nsterm.h: Fix prototype.
96
52c30783
EZ
972010-03-31 Eli Zaretskii <eliz@gnu.org>
98
99 * xdisp.c (highlight_trailing_whitespace): Support highlight of
100 trailing whitespace in right-to-left rows.
101
855a0da7
SM
1022010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
103
104 Get rid of the direct_output optimizations.
105 * keyboard.c (nonundocount): Remove extern declaration.
106 (command_loop_1): Remove brittle optimisation for cheap and
107 common operations.
108 * xdisp.c (redisplay_internal): Don't bother checking
109 redisplay_performed_directly_p any more.
110 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
111 any more.
112 * dispnew.c (redisplay_performed_directly_p)
113 (direct_output_for_insert, direct_output_forward_char):
114 * dispextern.h (redisplay_performed_directly_p)
115 (direct_output_for_insert, direct_output_forward_char): Remove.
116 * cmds.c (nonundocount): Make it static.
117
85738751 1182010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
119
120 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
121
85738751 1222010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
123
124 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
125 invisible (Bug#5766).
126
85738751 1272010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 128
855a0da7
SM
129 * xdisp.c (x_consider_frame_title, update_window_cursor):
130 Remove HAVE_NS conditionals.
9ae6e189
CY
131 (prepare_menu_bars)[HAVE_NS]: Call ns_set_doc_edited.
132
133 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
134 filename for the title.
135 (ns_set_doc_edited): Do nothing if the selected window is a
136 minibuffer window.
137
138 * nsterm.h: Add prototypes for ns_set_name_as_filename and
139 ns_set_doc_edited.
140
141 * nsterm.m: Remove unneeded prototype.
142
85738751 1432010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
144
145 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
146 in the DOC file. (Bug#5336)
147
85738751 1482010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
149
150 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
151
75d1428c
SM
1522010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
153
154 * window.c (keys_of_window): Remove redundant/overridden bindings.
155
82043cfb
EZ
1562010-03-30 Eli Zaretskii <eliz@gnu.org>
157
158 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
159 Restore original behavior when the iterator is not bidi_p.
160
b5dd0ae7
DN
1612010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
162
163 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
164
bd924a5d
EZ
1652010-03-30 Eli Zaretskii <eliz@gnu.org>
166
167 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
168 are outside the range of cached character positions.
169
3580374b
JB
1702010-03-30 Juanma Barranquero <lekktu@gmail.com>
171
172 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
173
a7b02820
EZ
1742010-03-30 Eli Zaretskii <eliz@gnu.org>
175
176 Initial support for bidirectional editing.
177
178 * Makefile.in (obj): Include bidi.o.
179 (bidi.o): New target.
180
181 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
182 ($(BLD)/bidi.$(O)): New target.
183
184 * bidi.c: New file.
185
186 * buffer.h (struct buffer): New members bidi_display_reordering
187 and bidi_paragraph_direction.
188
189 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
190 and bidi_paragraph_direction.
191 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
192 and bidi-paragraph-direction.
193 (Fbuffer_swap_text): Swap the values of
194 bidi_display_reordering and bidi_paragraph_direction.
195
196 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
197 (bidi_type_t, bidi_dir_t): New types.
198 (bidi_saved_info, bidi_stack, bidi_it): New structures.
199 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
200 prev_stop, base_level_stop, and eol_pos.
201 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
202 (IT_STACK_SIZE): Enlarge to 5.
203 (struct glyph_row): New member reversed_p.
204 <string_buffer_position>: Update prototype.
205 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
206 glyph_row if bidi_it.paragraph_dir == R2L.
207 (struct glyph): New members resolved_level and bidi_type.
208
209 * dispnew.c (direct_output_forward_char): Give up if we need bidi
210 processing or buffer's direction is right-to-left.
211 (prepare_desired_row): Preserve the reversed_p flag.
212 (row_equal_p): Compare the reversed_p attributes as well.
213
214 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
215 bidi_init_it and set it->paragraph_embedding from the current
216 buffer's value of bidi_paragraph_direction.
217 (reseat_1): Initialize bidi_it.first_elt.
218 (set_iterator_to_next, next_element_from_buffer): Use the value of
219 paragraph_embedding to determine the paragraph direction.
220 (set_iterator_to_next): Under bidi reordering, call
221 bidi_get_next_char_visually. Call bidi_paragraph_init if the
222 new_paragraph flag is set in the bidi iterator.
223 (next_element_from_buffer): If bidi_it.first_elt is set,
224 initialize paragraph direction and find the first character to
225 display in the visual order. If reseated to a middle of a line,
226 prime the bidi iterator starting at the line's beginning. Handle
227 the situation where we overstepped stop_charpos due to
228 non-linearity of the bidi iteration. Likewise for when we back up
229 beyond the previous stop_charpos. When moving across stop_charpos,
230 record it in prev_stop.
231 (display_line): Set row->end and it->start for the next row to the
232 next character in logical order. Always extend reversed_p rows to
233 the end of line, even if they end at ZV. Copy the reversed_p flag
234 to the next glyph row. Keep calling set_cursor_from_row for
235 bidi-reordered rows even if we already have a possible candidate
236 for cursor position. Set row_end after all the row's glyphs have
237 been produced, by looping over the glyphs. Record the position
238 after EOL in it->eol_pos, and use it to set end_pos of the last
239 row produced for a continued line.
240 <Qright_to_left, Qleft_to_right>: New variables.
241 (syms_of_xdisp): Initialize and staticpro them.
242 (string_buffer_position_lim): New function.
243 (string_buffer_position): Most of code moved to
244 string_buffer_position_lim. Last argument and return value are
245 now EMACS_INT; all callers changed.
246 (set_cursor_from_row): Rewritten to support bidirectional text and
247 reversed glyph rows.
248 (text_outside_line_unchanged_p, try_window_id): Disable
249 optimizations if we are reordering bidirectional text and the
250 paragraph direction can be affected by the change.
251 (append_glyph, append_composite_glyph)
252 (produce_image_glyph, append_stretch_glyph): Set the
253 resolved_level and bidi_type members of each glyph.
254 (append_glyph): If the glyph row is reversed, prepend the glyph
255 rather than appending it.
256 (handle_stop_backwards): New function.
257 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
258 (reseat): call handle_stop_backwards to recompute prev_stop and
259 base_level_stop for the new position.
260 (handle_invisible_prop): Under bidi iteration, skip invisible text
261 using bidi_get_next_char_visually. If we are `reseat'ed, init the
262 paragraph direction. Update IT->prev_stop after skipping
263 invisible text.
264 (move_it_in_display_line_to): New variables prev_method
265 and prev_pos. Compare for strict equality in
266 BUFFER_POS_REACHED_P.
267 (try_cursor_movement): Examine all the candidate rows that occlude
268 point, to return the best match. If rows are bidi-reordered
269 and point moved backwards, back up to the row that is not a
270 continuation line, and start looking for a suitable row from
271 there.
272
273 * term.c (append_glyph): Reverse glyphs by pre-pending them,
274 rather than appending, if the glyph_row's reversed_p flag is set.
275 Set the resolved_level and bidi_type members of each glyph.
276
277 * .gdbinit (pbiditype): New command.
278 (pgx): Use it to display bidi level and type of the glyph.
279 (pitx): Display some bidi information about the iterator.
280 (prowlims, pmtxrows): New commands.
281
32a8894e
DN
2822010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
283
284 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
285 * s/usg5-4.h (LIBS_DEBUG):
286 * s/irix6-5.h (C_DEBUG_SWITCH):
287 * s/gnu-linux.h (LIBS_DEBUG):
288 * s/darwin.h (LIBS_DEBUG):
289 * s/bsd-common.h (LIBS_DEBUG):
290 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
291 * m/iris4d.h (LIBS_DEBUG):
292 * m/hp800.h (LIBS_DEBUG): Remove definitions.
293
294 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
295 (LIBS_DEBUG): Remove definition.
296
649dbf36
CY
2972010-03-27 Chong Yidong <cyd@stupidchicken.com>
298
299 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
300 Windows.
301
cad4261f
YM
3022010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
303
304 * process.c (Fmake_network_process): Don't call turn_on_atimers around
305 `connect' (Bug#5723).
306
cd591dbc
HE
3072010-03-25 Helmut Eller <eller.helmut@gmail.com>
308
309 * process.c (Fmake_network_process): Call `select' for interrupted
310 `connect' rather than creating new socket (Bug#5173).
311
e867cb5d 3122010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
313
314 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
315
316 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
317
318 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
319
e867cb5d 3202010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
321
322 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
323 XLoadQueryFont.
324
e867cb5d 3252010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
326
327 * coding.c (decode_coding_ccl): Fix previous change for the
328 multibyte case.
fb608df3
KH
329 (encode_coding_ccl): Don't setup ccl program here. Fix for the
330 case that the output buffer is fullfilled.
331 (encode_coding): Setup ccl program here.
fbdc1721 332
e867cb5d 3332010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
334
335 * editfns.c (Fformat): Account for string precision when computing
336 field width (Bug#5710).
337
5845f0ed
DN
3382010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
339
814fb708
DN
340 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
341
5845f0ed
DN
342 Simplify LIBS_MACHINE definitions.
343 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
344 * m/iris4d.h (LIBS_MACHINE): Likewise.
345 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
346 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 347 * s/netbsd.h: Remove commented out code.
5845f0ed 348
b7064064
DN
3492010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
350
df7734b2
DN
351 Remove dead code dealing with POSIX_SIGNALS.
352 * atimer.c (set_alarm): Remove dead code, all USG systems define
353 POSIX_SIGNALS.
354 * data.c (arith_error): Likewise.
355 * keyboard.c (input_available_signal, handle_user_signal)
356 (interrupt_signal): Likewise.
357 * process.c (sigchld_handler): Likewise.
358 (create_process): Remove if 0 code. Remove HPUX conditional when
359 !defined (POSIX_SIGNALS), it cannot be true.
360 * syssignal.h: Remove USG5_4 and USG conditionals when
361 !POSIX_SIGNALS, they cannot be true.
362
b7064064
DN
363 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
364 NO_SOCK_SIGIO, not used anymore.
365
55da5ee3
DN
3662010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
367
0be96e3a
DN
368 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
369 support vax on BSDs.
370
55da5ee3
DN
371 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
372 * s/aix4-2.h (ORDINARY_LINK): ... here.
373
c0282183
AS
3742010-03-21 Andreas Schwab <schwab@linux-m68k.org>
375
82c3d67a
AS
376 * Makefile.in (abs_builddir): Define.
377 (bootstrap_exe): Use it.
378 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 379
3613edce
SM
3802010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
381
382 * Makefile.in (bootstrap_exe): Use an absolute name.
383
7f110ddc
DN
3842010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
385
22e87574
DN
386 Remove support for old GNU/Linux using libc version 5.
387 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
388 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
389
05a670e6
DN
390 Consolidate redundant definitions in s/bsd-common.h.
391 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
392 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
393 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
394 doing it in all files that include this one.
395 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
396 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
397 (LDAV_SYMBOL, KERNEL_FILE): Remove.
398 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
399 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
400 (LDAV_SYMBOL, KERNEL_FILE): Remove.
401 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
402 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
403 (LDAV_SYMBOL, KERNEL_FILE): Remove.
404
2968f561
DN
405 Consolidate redundant definitions.
406 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
407 it's undefined in all files that include this one.
408 (POSIX_SIGNALS): Define here instead of doing it in all files that
409 include this one.
410 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
411 (POSIX_SIGNALS): Do not define.
412 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
413 (POSIX_SIGNALS): Do not define.
414 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
415 (POSIX_SIGNALS): Do not define.
416
15d25dc0
DN
417 Remove support for old UNIX System V systems.
418 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
419 * s/usg-5-4-2.h: Remove.
420
07e339e4
DN
421 Remove support for Solaris on PPC and for old versions.
422 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
423 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
424 that cancel each other.
425 * s/sol2-3.h:
426 * s/sol2-4.h:
427 * s/sol2-5.h: Remove.
428 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
429 (NO_REMAP): Remove, unused.
430 (UNEXEC): Move definition ...
431 * s/aix4-2.h (UNEXEC): ... here.
432
7f110ddc
DN
433 * s/openbsd.h: Remove support for non-ELF and for systems that do
434 not support shared libraries.
435 * s/netbsd.h:
436 * s/freebsd.h: Likewise.
437
605f35cd
DN
4382010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
439
440 Remove non-working support for lynxos 3.0.
441 * s/lynxos.h: Remove file.
442
443 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
444 COFF_BSD_SYMBOLS, nothing defines it anymore.
445
aed71cf4
DN
4462010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
447
448 Remove obsolete uses of HAVE_SHM.
449 * emacs.c (standard_args):
450 (Fdump_emacs):
451 (syms_of_emacs): Remove code depending on HAVE_SHM.
452
453 * alloc.c: Remove HAVE_SHM dependent definition.
454
455 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
456
aded53ff
GM
4572010-03-18 Glenn Morris <rgm@gnu.org>
458
17284745
GM
459 * emacs.c (USAGE4): Hard-code bug address.
460 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
461 (bug_reporting_address): Remove.
462 (main): Don't call bug_reporting_address.
463
aded53ff
GM
464 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
465 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
466
303500aa
CY
4672010-03-15 Chong Yidong <cyd@stupidchicken.com>
468
469 * xfns.c (Fx_create_frame):
470 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
471 on left.
472
cef3058f
CY
4732010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
474
475 * editfns.c (Fformat): Account for string precision when computing
476 field width (Bug#5710).
477
a647d59d
CY
4782010-03-12 Chong Yidong <cyd@stupidchicken.com>
479
4fa42018
CY
480 * xfns.c (Fx_create_frame): Set default to Qright.
481
a647d59d
CY
482 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
483 all window systems.
484
6da23aaa
EZ
4852010-03-12 Eli Zaretskii <eliz@gnu.org>
486
a96f6398 487 These changes remove termcap.c from the build on Posix platforms.
6da23aaa
EZ
488 * Makefilie.in (termcapobj): Move termcap.o from here...
489 (MSDOS_OBJ): ...to here.
490 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
491 now identical to when LIBS_TERMCAP is defined.
492
493 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
494
495 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
496
a96f6398 497 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 498
288f9fc0
CY
4992010-03-10 Chong Yidong <cyd@stupidchicken.com>
500
501 * Branch for 23.2.
502
d48cd3f4
SM
5032010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
504
505 Cleanup setup of gl_state in various parts of the code.
506 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
507 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
508 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
509 (skip_chars):
510 * regex.c (regex_compile): Use it.
511 (re_compile_pattern): Don't set gl_state.current_syntax_table since
512 it's now set in regex_compile when/if we need it.
513
618db430
SM
5142010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
515
c0335e02
SM
516 Make it possible to C-g in a tight bytecode loop again (bug#5680).
517 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
518 (QUIT): Use it to consolidate code and remove redundancy.
519 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
520
254c06a8
SM
521 * regex.c (regex_compile): Setup gl_state as well.
522
618db430
SM
523 * syntax.c (skip_chars): Setup gl_state (bug#3823).
524 (in_classes): Use CONSP before XCAR/XCDR.
525
233f0c9f
CY
5262010-03-03 Chong Yidong <cyd@stupidchicken.com>
527
528 * keymap.c (Fwhere_is_internal): Use Fequal to compare
529 definitions, so that keyboard macros are correctly handled
530 (Bug#5481).
531
75f80e63
EZ
5322010-03-02 Eli Zaretskii <eliz@gnu.org>
533
534 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
535 text that could be relocated inside the call to emacs_mule_char.
536 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
537 (CODING_DECODE_CHAR): Add a comment describing its purpose.
538
dcfb9bc4
KH
5392010-03-02 Kenichi Handa <handa@m17n.org>
540
fc9a17bc
KH
541 * character.c (parse_str_as_multibyte): Fix handling of the
542 multibyte form of raw-bytes.
543 (str_as_multibyte): Likewise.
544
dcfb9bc4
KH
545 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
546 form of raw-bytes.
547
412c01b6
CY
5482010-02-28 Chong Yidong <cyd@stupidchicken.com>
549
550 * charset.c (load_charset_map_from_file)
551 (load_charset_map_from_vector): Zero out allocated
552 charset_map_entries before using them.
553
df7e1ea0
AS
5542010-02-27 Andreas Schwab <schwab@linux-m68k.org>
555
556 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
557
fe69a722
CY
5582010-02-27 Chong Yidong <cyd@stupidchicken.com>
559
4ed28cf4
CY
560 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
561 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 562
7379cfce
KH
5632010-02-26 Kenichi Handa <handa@m17n.org>
564
f88cc4d6
KH
565 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
566
7379cfce
KH
567 * xdisp.c (reseat_to_string): Fix previous change.
568
cf2fdcfb
CY
5692010-02-26 David Reitter <david.reitter@gmail.com>
570
571 * nsfont.m (nsfont_draw): ns_antialias_text should be a
572 Lisp_Object (Bug#4736).
573
cc6c7c75
KH
5742010-02-25 Kenichi Handa <handa@m17n.org>
575
576 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
577
32e737d7
JD
5782010-02-24 Jan Djärv <jan.h.d@swipnet.se>
579
580 * xterm.c (XTflash): Move declarations before statements.
581
582 * gtkutil.c (xg_get_gdk_display): Remove (unused).
583 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
584 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
585 (xg_create_tool_bar): Remove unused variables.
586 (x_wm_set_size_hint): Move declarations before statements.
587 (xg_create_frame_widgets): Remove variable grav,
588
676cae9f
CY
5892010-02-21 Chong Yidong <cyd@stupidchicken.com>
590
591 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
592
886cc2b8
SM
5932010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
594
595 * term.c (fatal): Add a final \n if needed (bug#5596).
596
ddb2d8e2
CY
5972010-02-18 Chong Yidong <cyd@stupidchicken.com>
598
599 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
600
2a4f8d3d
GM
6012010-02-18 Glenn Morris <rgm@gnu.org>
602
603 * callint.c (Finteractive): Doc fix.
604
ebaf11b6
KH
6052010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
606
886cc2b8
SM
607 * coding.c (record_conversion_result):
608 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
609 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
610 memory allocation error.
611
d0396581
KH
6122010-02-17 Kenichi Handa <handa@m17n.org>
613
886cc2b8
SM
614 * coding.c (decode_coding_ccl): Don't setup ccl program here.
615 Fix for the case that the output buffer is fullfilled.
d0396581
KH
616 (decode_coding): Setup ccl program here. Keep looping when the
617 decoder stopped because the output buffer is
618 fullfilled (bug#5534).
619
620 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
621
98599f74
JD
6222010-02-13 Jan Djärv <jan.h.d@swipnet.se>
623
471e4f04 624 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 625 bug #5571.
886cc2b8 626 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 627 overdrawn.
98599f74 628
182659ae
JD
6292010-02-10 Jan Djärv <jan.h.d@swipnet.se>
630
631 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
632 doing_interact here.
633 (ice_connection_closed): New function.
634 (x_session_check_input, smc_die_CB, ice_io_error_handler)
635 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
636 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
637 returns I/O error.
638 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
639 bug #5512.
640
9be32c4e 6412010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
642
643 * nsfont.m (nsfont_open): The system's value for the font descent
644 is negative, so round it down to avoid clipping.
645
a2f3eb19
CY
6462010-02-06 Chong Yidong <cyd@stupidchicken.com>
647
648 * charset.c (load_charset_map_from_file)
649 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 650 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 651
3088147c
CY
6522010-02-05 Chong Yidong <cyd@stupidchicken.com>
653
654 * charset.c (load_charset_map_from_file): Allocate large
655 charset_map_entries structure on the heap rather than the stack.
656 (Bug#5526).
657
b57d9029
KH
6582010-01-31 Kenichi Handa <handa@m17n.org>
659
660 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 661 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 662
c67d885b
CY
6632010-01-31 Chong Yidong <cyd@stupidchicken.com>
664
665 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
666 <deactivated@gmail.com> (Bug#3605).
667
8fab2362
CY
6682010-01-31 David De La Harpe Golden <david@harpegolden.net>
669
670 * fileio.c (Frename_file): Correctly rename symlinks to
671 directories (Bug#5496).
672
cb2a62f2
CY
6732010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
674
675 * nsterm.m (ns_ring_bell): Handle visible bell like X.
676
944c7a26
AS
6772010-01-30 Andreas Schwab <schwab@linux-m68k.org>
678
679 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
680
c024ac08
CY
6812010-01-29 Chong Yidong <cyd@stupidchicken.com>
682
683 * frame.c (DEFAULT_ROWS): Change default to 35.
684
685 * xfns.c (x_default_font_parameter): Change default XFT font to
686 monospace-10 (Bug#3643).
687
af93af83
EZ
6882010-01-29 Eli Zaretskii <eliz@gnu.org>
689
690 * w32inevt.c (key_event): Remove unnecessary comparison of
691 event->uChar.AsciiChar with 128.
692
ca0eb708
CY
6932010-01-28 Chong Yidong <cyd@stupidchicken.com>
694
b242dbfc
CY
695 * fileio.c (Frename_file): Fix last change (Bug#5487).
696
ca0eb708
CY
697 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
698
699 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
700
45d45af5
JD
7012010-01-28 Jan Djärv <jan.h.d@swipnet.se>
702
703 * xfns.c (Fx_create_frame): Remove window size matching code from
704 2010-01-15.
705 (x_get_current_desktop, x_get_desktop_workarea): Remove
706
7e233730
JR
7072010-01-27 Jason Rumney <jasonr@gnu.org>
708
709 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 710 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 711
86e893e3
KH
7122010-01-27 Kenichi Handa <handa@m17n.org>
713
714 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 715 pattern string (Bug#4209).
86e893e3 716
8719abec
CY
7172010-01-27 David De La Harpe Golden <david@harpegolden.net>
718
719 * fileio.c (Frename_file): Call copy-directory and
720 delete-directory for directories, in order to handle cross-device
721 renaming (Bug#3353).
722
844794c8
JD
7232010-01-25 Jan Djärv <jan.h.d@swipnet.se>
724
aa3e13b5 725 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 726 sizes 24 and 10. Bug #3643.
844794c8 727
bd4b5750
SM
7282010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
729
8dc1adf6 730 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
731 * keymap.c (shadow_lookup): Add `remap' arg.
732 (describe_map, describe_vector): Update calls to shadow_lookup.
733 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
734 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
735 perform remapping during shadow_lookup check of remapped_sequences.
736
285d07e2
CY
7372010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
738
739 * image.c (png_load): Use png_sig_cmp instead of the obsolete
740 png_check_sig, which has been removed in libpng 1.4.
741
c6d09b8d
CY
7422010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
743
744 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
745 lacks this header file).
746
3d782998
YM
7472010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
748
749 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
750 as in Emacs 22.
751
2aff7c53
YM
7522010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
753
754 * lisp.h (make_pure_string): String pointer arg now points to const.
755
756 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
757 args now point to const.
758
74327f7a
EZ
7592010-01-22 Eli Zaretskii <eliz@gnu.org>
760
761 * lread.c (Fload): Don't treat files without .elc extension as
762 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
763 them. (bug#5303)
764
4d1e6632
KH
7652010-01-20 Kenichi Handa <handa@m17n.org>
766
767 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
768 treat the source as actual byte sequence.
769
1fdede8f
AM
7702010-01-19 Alan Mackenzie <acm@muc.de>
771
772 Fix spurious before-change-functions invocation from (insert ?\n).
773 * textprop.c (set_text_properties): rename parameter
774 `signal_after_change_p' to `coherent_change_p', and make the
775 invocation of `modify_region' conditional on it.
776
67477f30
JD
7772010-01-19 Jan Djärv <jan.h.d@swipnet.se>
778
779 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
780 for debug purpose.
781 (syms_of_xsettings): Declare xft-settings.
782
244b023e
CY
7832010-01-18 Chong Yidong <cyd@stupidchicken.com>
784
785 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
786
617364fe
CY
7872010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
788
789 * xterm.c (event_handler_gdk): Block input (Bug#5037).
790
4fe22cdf
CY
7912010-01-16 Chong Yidong <cyd@stupidchicken.com>
792
793 * emacs.c (standard_args): Adjust arg priorities to reflect how
794 they are processed in startup.el.
795
e118d2be
AS
7962010-01-16 Andreas Schwab <schwab@linux-m68k.org>
797
798 * Makefile.in (lisp, shortlisp): Update.
799
523ae620
SM
8002010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
801
802 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
803 code, link the new kboard into all_kboard before running Lisp code,
804 and protect the new terminal with GCPRO (Bug#5365).
805 (x_term_init): Remove unused var `atom'.
806 (x_delete_display, x_delete_terminal): Remove unused var `i'.
807
f0d13888
JD
8082010-01-15 Jan Djärv <jan.h.d@swipnet.se>
809
810 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
811 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
812 to find out usable size of the desktop. Don't make frames larger than
ac146f82 813 this. Bug #3643.
f0d13888 814
cc320f07
KH
8152010-01-15 Kenichi Handa <handa@m17n.org>
816
817 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
818
7ffdf101
CY
8192010-01-15 Chong Yidong <cyd@stupidchicken.com>
820
821 * nsterm.m (Qnone): Define.
822
823 * nsfns.m (Qnone): Move definition to nsterm.m.
824
d12bd917
KH
8252010-01-14 Kenichi Handa <handa@m17n.org>
826
827 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
828 systems.
829
d9a7c140
KH
8302010-01-14 Kenichi Handa <handa@m17n.org>
831
832 Make auto-composition work on all buffers even if they are
833 fundamental mode.
834
835 * composite.c (Vauto_composition_mode): New variable.
836 (composition_compute_stop_pos): Check Vauto_composition_mode
837 instead of Vauto_composition_function.
838 (composition_adjust_point, Ffind_composition_internal): Likewise.
839 (syms_of_composite): Declare Lisp variable
840 "auto-composition-mode" here.
841
63286bb2
CY
8422010-01-13 Chong Yidong <cyd@stupidchicken.com>
843
844 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
845 during call to vendor-specific-keysyms (Bug#5365).
846
c2623ee7
YM
8472010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
848
849 * keyboard.c (input_available_signal) [SYNC_INPUT]:
850 Call SIGNAL_THREAD_CHECK (Bug#5333).
851
852 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
853 Call SIGNAL_THREAD_CHECK.
854
0b5397c2
SM
8552010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
856
857 Try to fix bug#5314. This is probably not the final word, tho.
858 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
859 recent-auto-save-p as a side-effect.
860 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
861 * buffer.c (Fkill_buffer, reset_buffer):
862 * editfns.c (Fsubst_char_in_region):
863 * fileio.c (Finsert_file_contents, Fdo_auto_save)
864 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
865
dc954cb2
KH
8662010-01-13 Kenichi Handa <handa@m17n.org>
867
868 Display buffer name, etc. in mode line by composing correctly.
869
870 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
871 STRING is not nil.
0b5397c2 872 (display_mode_element): Adjust for the change of
dc954cb2
KH
873 decode_mode_spec and display_line.
874 (decode_mode_spec): Change arg MULTIBYTE to STRING.
875 (display_string): Handle the case that STRING is non-null and
876 LISP_STRING is not nil.
877
0b5397c2
SM
878 * xterm.c (x_draw_composite_glyph_string_foreground):
879 Pay attention to s->face->overstrike.
dc954cb2
KH
880
881 * composite.c (composition_reseat_it): Don't check PT if STRING is
882 non nil.
883
4a00eaca
YM
8842010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
885
886 * keyboard.c (read_char): Don't apply previous change when current
887 buffer is unchanged by command execution.
888
60abb287
JD
8892010-01-12 Jan Djärv <jan.h.d@swipnet.se>
890
891 * keyboard.c (read_char): Return after executing from special map.
892
893db5bc
GM
8932010-01-12 Glenn Morris <rgm@gnu.org>
894
895 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
896 bug-gnu-emacs rather than emacs-pretest-bug.
897
4d03ece0
CY
8982010-01-11 Chong Yidong <cyd@stupidchicken.com>
899
900 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
901 initializing the Lisp variables that depend on them.
902
1df47e38
YM
9032010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
904
905 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
906 Clear areas that will not be updated after change of menu bar lines.
907 Clear the menu bar window's current matrix when the window gets empty.
908
2f1c6384
CY
9092010-01-09 Chong Yidong <cyd@stupidchicken.com>
910
e398c61c
CY
911 * intervals.h, textprop.c (extend_property_ranges): Return value
912 and args changed. Discard properties that begin at or after the
913 new end (Bug#5306).
914
915 * editfns.c (Fformat): Caller changed.
916
e5a29a10
CY
917 * nsterm.m (ns_set_default_prefs): Delete function.
918 (syms_of_nsterm): Initialize ns_command_modifier,
919 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
920 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
921
2f1c6384
CY
922 * xdisp.c (pos_visible_p): Check for invisible text at the correct
923 position (Bug#4040).
924
d427a9fa
EZ
9252010-01-09 Eli Zaretskii <eliz@gnu.org>
926
927 * editfns.c (Ffloat_time): Doc fix.
928
21b9df2f
JD
9292010-01-09 Jan Djärv <jan.h.d@swipnet.se>
930
931 * xfns.c (Fx_create_frame): Don't create frame larger than display
932 by default bug#3643.
933
4b00d3b1
YM
9342010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
935
936 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
937 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
938 windows above internal border.
939
940 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
941 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
942 windows above internal border.
943
944 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
945 tool bar windows specially.
946
947 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
948
949 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
950 specially.
951 (XTflash): Take account of menu bar height.
952
953 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
954 specially.
955
5075d853
JD
9562010-01-08 Jan Djärv <jan.h.d@swipnet.se>
957
ac146f82 958 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
959 also be true before we can return early (bug #5339).
960
474217c8
CY
9612010-01-06 David Reitter <david.reitter@gmail.com>
962
963 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
964 (Fns_display_usable_bounds): Rewrite, computing bounds properly
965 (Bug#3233).
966
c0e6d47d
JD
9672010-01-06 Jan Djärv <jan.h.d@swipnet.se>
968
d0cf45b7
JD
969 * font.c (font_open_entity): Enable chache and call cached_font_ok
970 for the driver if defined.
971 (QCuser_spec): New symbol.
972 (font_spec_from_name): Save name as user-spec.
973 (font_load_for_lface): Keep user-spec instead of name.
974 (font_open_by_name): Save name as user-spec.
975 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 976 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
977
978 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
979 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
980 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
981
982 * font.h (struct font_driver): Add cached_font_ok.
983
c0e6d47d
JD
984 * xterm.c (x_clear_frame): Queue draw for scroll bars.
985
7c583cd8
JD
9862010-01-05 Jan Djärv <jan.h.d@swipnet.se>
987
988 * xterm.c (x_new_font): Move code for setting rows/cols before
989 resizing ...
ac146f82 990 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
991
992 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
993 (xg_frame_resized, xg_frame_set_char_size):
994 Call xg_clear_under_internal_border.
7c583cd8 995 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 996
03f77f0a
CY
9972010-01-05 Chong Yidong <cyd@stupidchicken.com>
998
999 * keyboard.c (read_key_sequence): Catch keyboard switch after
1000 making a new tty frame (Bug#5095).
1001
2a1ef5be
KH
10022010-01-05 Kenichi Handa <handa@m17n.org>
1003
1004 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1005
e3eb1dae
SM
10062010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1007
1008 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1009 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1010 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1011
777013f2
MA
10122010-01-03 Michael Albinus <michael.albinus@gmx.de>
1013
1014 * dbusbind.c (xd_add_watch): Improve debug message.
1015 (xd_remove_watch): Improve debug message. If DATA is the session
1016 bus, unset D-Bus session environment.
1017 (Fdbus_init_bus): Pass the bus as argument to
1018 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1019
8932b1c2
CY
10202010-01-01 Chong Yidong <cyd@stupidchicken.com>
1021
87231e2c
CY
1022 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1023
4801c5fa
CY
1024 * lread.c (syms_of_lread): Make it clearer that these are the
1025 names of loaded files (Bug#5068).
1026
8932b1c2
CY
1027 * eval.c (run_hook_with_args): Handle the case where the global
1028 value has the obsolete single-function form (Bug#5026).
1029
11e3c684
CY
10302009-12-27 Chong Yidong <cyd@stupidchicken.com>
1031
1032 * minibuf.c (Fall_completions): Minor optimization.
1033
5b28ce35
EZ
10342009-12-26 Eli Zaretskii <eliz@gnu.org>
1035
5ce6e4f4
JB
1036 * .gdbinit (pgx): Fix display of composite glyphs.
1037 Display cmp.from and cmp.to as well.
1038 (pitx): Fix last change.
5b28ce35 1039
bcffff46
KH
10402009-12-25 Kenichi Handa <handa@m17n.org>
1041
1042 * composite.h (composition_adjust_point): Update prototype.
1043
1044 * composite.c (composition_reseat_it): Don't make a composition
1045 spanning over point.
1046 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1047 composable characters.
1048 (composition_adjust_point): New arg NEW_PT. Callers changed.
1049
1050 * keyboard.c (command_loop_1): Force redisplay if the last point
1051 was within a composition.
1052 (adjust_point_for_property): Don't adjust point for automatic
1053 composition when called after buffer modification.
1054
3f670e9a
EZ
10552009-12-19 Eli Zaretskii <eliz@gnu.org>
1056
5ce6e4f4
JB
1057 * .gdbinit (pitx): Don't use enum names, use their values.
1058 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1059 (pgx): Don't use enum names, use their values.
1060 (pitmethod): New helper command.
1061 (pitx): Use it to display iteration method.
1062 (pgrowit): New command.
1063
ad903955
EZ
1064 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1065
3f670e9a
EZ
1066 Update dependencies in Makefile.in.
1067
1068 * Makefile.in (alloc.o): Depend on termhooks.h.
1069 (atimer.o): Depend on blockinput.h.
1070 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1071 and frame.h.
1072 (callint.o): Depend on systime.h, coding.h, and composite.h.
1073 (callproc.o): Depend on buffer.h.
1074 (casefiddle.o): Don't depend on charset.h.
1075 (casetab.o): Depend on character.h.
1076 (ccl.o): Depend on composite.h.
1077 (chartab.o): Depend on ccl.h.
1078 (cm.o): Depend on dispextern.h.
1079 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1080 (coding.o): Don't depend on $(INTERVALS_H).
1081 (composite.o): Don't depend on dispextern.h explicitly (it's in
1082 $(INTERVALS_H)). Depend on ccl.h.
1083 (data.o): Depend on systime.h, coding.h, composite.h,
1084 dispextern.h, font.h, and ccl.h.
1085 (dired.o): Depend on composite.h.
1086 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1087 composite.h (it's in $(INTERVALS_H)).
1088 (doc.o): Depend on systime.h, coding.h, and composite.h.
1089 (editfns.o): Don't depend explicitly on dispextern.h.
1090 (emacs.o): Depend on frame.h and coding.h.
1091 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1092 (fileio.o): Depend on frame.h and commands.h. Don't depend
1093 explicitly on dispextern.h.
1094 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1095 composite.h.
1096 (fns.o): Don't depend on termhooks.h.
1097 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1098 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1099 coding.h, $(INTERVALS_H), window.h, xterm.h.
1100 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1101 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1102 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1103 fontset.h, ccl.h, and ftfont.h.
1104 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1105 (gtkutil.o): Depend on dispextern.h and composite.h.
1106 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1107 termhooks.h, and ccl.h.
1108 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1109 (intervals.o): Depend on systime.h and coding.h.
1110 (keyboard.o): Depend on composite.h and coding.h.
1111 (keymap.o): Depend on coding.h and frame.h.
1112 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1113 (macros.o): Depend on systime.h, coding.h, and composite.h.
1114 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1115 and atimer.h.
1116 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1117 dispextern.h explicitly.
0b5397c2
SM
1118 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1119 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1120 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1121 (regex.o): Don't depend on charset.h.
1122 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1123 (search.o): Don't depend explicitly on composite.h.
1124 (sound.o): Depend on atimer.h and systime.h.
1125 (syntax.o): Don't depend explicitly on composite.h.
1126 (sysdep.o): Depend on coding.h and composite.h.
1127 (term.o): Depend on xterm.h and buffer.h.
1128 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1129 (textprop.o): Don't depend on dispextern.h explicitly.
1130 (undo.o): Depend on dispextern.h.
1131 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1132 dispextern.h and composite.h explicitly.
1133 (xdisp.o): Depend on ccl.h.
1134 (xfaces.o): Depend on coding.h and ccl.h.
1135 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1136 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1137 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1138 ftfont.h.
1139 (xgselect.o): New dependency.
1140 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1141 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1142 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1143 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1144 (xsmfns.o): Depend on frame.h and dispextern.h.
1145 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1146 sysselect.h.
1147
7a6f7fea
AS
11482009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1149
1150 * font.c (Fclear_font_cache): Pass correct cache argument to
1151 font_clear_cache.
1152
f4c21026
AS
11532009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1154
1155 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1156 twice.
1157
f7ab0997
CY
11582009-12-15 Chong Yidong <cyd@stupidchicken.com>
1159
1160 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1161 calling file-remote-p. Reported by Jim Meyering.
1162
fa8e045a
MA
11632009-12-15 Michael Albinus <michael.albinus@gmx.de>
1164
1165 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1166 avoid compiler warnings. (Bug #5217)
fa8e045a 1167
a63dba42
KH
11682009-12-14 Kenichi Handa <handa@m17n.org>
1169
1170 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1171 in 8-bit encoding.
1172
5ce6e4f4 11732009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1174
1175 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1176 tooltip windows.
1177
223e5fc6
JD
11782009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1179
36acb2a7
JD
1180 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1181 Xatom_net_window_type.
1182
1183 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1184 Xatom_net_window_type.
1185
b8f00677
JD
1186 * xterm.c (my_log_handler): New function.
1187 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1188 so we can filter out buggy messages. (Bug #5120).
b8f00677 1189
e5f0bc9a
JD
1190 * xterm.c (xg_scroll_callback): Parameter list changed,
1191 use parameter GtkScrollType to determine scroll/line/page.
1192 Only allow dragging if a button < 4 is grabbed (bug #5177).
1193 (xg_end_scroll_callback): New function.
1194 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1195 xg_create_scroll_bar.
1196
1197 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1198 (scroll_end_callback): Remove.
1199 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1200 button-release-event. Replace value-changed event with change-value,
1201 bug #5177,
1202 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1203 bug #5177.
1204
1205 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1206 (xg_create_scroll_bar): Add GCallback end_callback.
1207
223e5fc6
JD
1208 * xftfont.c (QClcdfilter): New variable.
1209 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1210 (syms_of_xftfont): Initialize QClcdfilter.
1211
3c055b77
JD
12122009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1213
1214 * xsettings.c (struct xsettings): Add member seen.
1215 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1216 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1217 (apply_xft_settings): Only update Xft settings with what member seen
1218 indicates as new.
1219
05fe33ff
EZ
12202009-12-12 Eli Zaretskii <eliz@gnu.org>
1221
1222 * dispextern.h (struct text_pos): Use EMACS_INT;
1223 (struct glyph): Use EMACS_INT for charpos.
1224 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1225 region_beg_charpos, region_end_charpos,
1226 redisplay_end_trigger_charpos, and also for
1227 iterator_stack_entry.end_charpos and
1228 iterator_stack_entry.stop_charpos.
1229
e8d7886a
JD
12302009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1231
5ce6e4f4 1232 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1233 (xg_create_scroll_bar): Call scroll_end_callback on button release
1234 event (bug #5177).
1235 (xg_event_is_for_scrollbar): != replaced with ==.
1236
d0db2ec8
KH
12372009-12-12 Kenichi Handa <handa@m17n.org>
1238
1239 * ftfont.c (struct ftfont_info): New member matrix.
1240 (ftfont_open): Setup xftfont_info->matrix.
1241 (MFLTFontFT): New member matrix.
1242 (FLOOR, CEIL, ROUND): New macros.
1243 (ftfont_get_metrics): Handle matrix transformation.
1244 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1245
1246 * xftfont.c (struct xftfont_info): New member matrix.
1247 (xftfont_open): Setup xftfont_info->matrix.
1248
12492009-12-10 Kenichi Handa <handa@m17n.org>
1250
1251 * xdisp.c (append_space_for_newline): Consider face-remapping.
1252
2cc7b62f
AS
12532009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1254
b87dd913
AS
1255 * xsettings.c: Include "keyboard.h".
1256
eba5eb94
AS
1257 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1258
2cc7b62f
AS
1259 Fix implicit function declarations.
1260 * cmds.c: Include "frame.h".
1261 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1262 * frame.h: Move declaration of delete_frame outside of
1263 HAVE_WINDOW_SYSTEM.
1264
a4ef73c8
CY
12652009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1266
1267 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1268
1269 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1270 GTK builds.
1271
944a300c
AS
12722009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1273
1274 * unexelf.c (unexec): Don't search for .data twice.
1275
022eef62
CY
12762009-12-05 Chong Yidong <cyd@stupidchicken.com>
1277
426ac949
CY
1278 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1279 if push failed.
1280 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1281 of push_display_prop (Bug#5000).
1282
022eef62
CY
1283 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1284 value of font_list_entities (Bug#5085).
1285
be95bee9
JB
12862009-12-04 Juanma Barranquero <lekktu@gmail.com>
1287
1288 Fix `string-to-number' to deal consistently with integers and floats.
1289 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1290 trailing characters, not just whitespace.
1291 (read1): Pass new arg 0 to keep old behavior.
1292 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1293 trailing chars, as it is already done for integers. Doc fixes.
1294 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1295
24c2d7ce
EZ
12962009-12-04 Eli Zaretskii <eliz@gnu.org>
1297
0b5397c2
SM
1298 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1299 Delete unused enumeration value.
24c2d7ce 1300
7e694795
EZ
13012009-12-03 Eli Zaretskii <eliz@gnu.org>
1302
1303 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1304
84b31826
SM
13052009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1306
1307 * process.c (Fmake_network_process): Fix up the tests for
1308 "connectionless socket", so they DTRT for seqpacket sockets as well.
1309
f00c449b
SM
13102009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1311
1312 * process.c (Qseqpacket): New symbol.
1313 (HAVE_SEQPACKET): New macro.
1314 (Fmake_network_process): Accept new :type `seqpacket'.
1315 (init_process): Add `seqpacket' feature when applicable.
1316 (syms_of_process): Initialize Qseqpacket.
1317
8096a0ff
YM
13182009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1319
1320 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1321 if entity is Qnil.
1322
3e0de07f
SM
13232009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1324
1325 * print.c (print_preprocess): Preprocess the key_and_value table of
1326 hashtables, even tho they're "hidden" (bug#5082).
1327
abeafb2a
JD
13282009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1329
1330 * frame.c (frame_make_pointer_invisible)
1331 (frame_make_pointer_visible): Declare f before statements.
1332
4bf47195
EZ
13332009-11-28 Eli Zaretskii <eliz@gnu.org>
1334
1335 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1336 omitted dependencies on lisp.h.
1337
c525b3f2
JD
13382009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1339
ece2d4ed
JD
1340 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1341 is NULL.
1342
1343 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1344
1345 * frame.c (frame_make_pointer_invisible)
3e0de07f 1346 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1347 frame.
1348
c525b3f2
JD
1349 * search.c (simple_search): Remove warning by making *p const.
1350
2f00e299
DN
13512009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1352
1353 * xdisp.c (power_letter): Remove duplicate const.
1354
084b049b
JD
13552009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1356
a1fadc6f
JD
1357 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1358
5ce6e4f4 1359 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1360 defaults (bug #5025).
1361
28259cac
SM
13622009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1363
1364 * insdel.c (adjust_markers_for_delete): Move it in the
1365 right direction! (bug#4803)
1366
e8e14166
YM
13672009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1368
1369 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1370
1371 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1372
86677b58
GM
13732009-11-24 Glenn Morris <rgm@gnu.org>
1374
1375 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1376
581e51e8
JD
13772009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1378
cfc86c7a
JD
1379 * Makefile.in: Must create deps for ecrt0.o in its rule.
1380
581e51e8
JD
1381 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1382 because that is what Gtk+ font dialog understands.
1383
1384 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1385 of Fcopy_sequence.
1386 (font_open_by_name): Put name given into QCname for font-object returned.
1387
1388 * frame.c (x_set_font): Save original font name as frame parameter
1389 font-parameter.
1390
1391 * xsettings.c (set_default_xft_settings): New function.
1392 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1393 is found.
1394
8b264ecb
AS
13952009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1396
1397 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1398 searching backwards through multibyte buffer.
1399
872870b2
JD
14002009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1401
1402 * xterm.c: #include xgselect.h.
1403 (x_initialize): Call xgselect_initialize.
1404
1405 * xsettings.c (something_changedCB): C++ comments => C comments.
1406 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1407 does that now.
1408
1409 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1410 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1411 (scroll_bar_button_cb): Remove.
5ce6e4f4 1412 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1413 event.
1414 (xg_create_scroll_bar): Don't bind button-press-event and
1415 button-release-event.
1416
1417 * process.c: Include xgselect.h if defined (USE_GTK) ||
1418 defined (HAVE_GCONF).
1419 (wait_reading_process_output): Call xg_select for the same condition.
1420
1421 * xgselect.c (xg_select): New function to better integrate with
1422 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1423
1424 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1425
1426 * Makefile.in (XOBJ): Add xgselect.o.
1427
62a6e103
AS
14282009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1429
0b5397c2
SM
1430 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1431 Remove ignored second argument. All callers changed.
62a6e103
AS
1432 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1433 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1434 * xdisp.c (string_char_and_length): Likewise.
1435
b0ca0f33
DN
14362009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1437
1438 * xterm.c (x_new_font):
1439 * print.c (print_object):
1440 * cmds.c (Fself_insert_command): Move declarations before statements.
1441
dd5a6279
CY
14422009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1443
1444 * s/cygwin.h: Remove unneeded linker flags.
1445
4a8e097d
JD
14462009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1447
0d1d0d26
JD
1448 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1449
1450 * xsettings.h: Declare xsettings_get_system_font.
1451
1452 * xsettings.c (xsettings_get_system_font): New function.
1453 (init_gconf): No use initiating gconf unless we have Xft also.
1454 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1455 HAVE_GCONF.
1456
4a8e097d
JD
1457 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1458 add a blank entry so it doesn't collapse into nothing.
1459
8ab1650e
SM
14602009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1461
1462 * lread.c (Funintern): Comment out last change.
1463
82c602f0
RS
14642009-11-19 Richard Stallman <rms@gnu.org>
1465
1466 * lread.c (Funintern): Error if symbol is t or nil.
1467
87e32266
SM
14682009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1469
1470 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1471 representation of Lisp integers.
1472 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1473
1b9ac145
AS
14742009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1475
1476 * lisp.h: Remove declaration of Ffont_get_system_font.
1477 * xfns.c: Move include of "xsettings.h".
1478 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1479
dfb3c4c6
JD
14802009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1481
87e32266
SM
1482 * xsettings.c (something_changedCB, Ffont_get_system_font):
1483 Check use_system_font.
dfb3c4c6
JD
1484 (syms_of_xsettings): DEFVAR font-use-system-font.
1485
9370c1d8
AS
14862009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1487
25fe851a
AS
1488 * xfns.c (x_default_font_parameter): Remove dead assignment.
1489
9370c1d8
AS
1490 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1491
637fa988
JD
14922009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1493
87e32266 1494 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1495 not have FC_LCD_*. #define them if not there.
a6eb20d8 1496
87e32266 1497 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1498
637fa988
JD
1499 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1500
1501 * xterm.c (handle_one_xevent): Call xft_settings_event for
1502 ClientMessage, PropertyNotify and DestroyNotify.
1503 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1504 Call xsettings_initialize.
1505
1506 * xftfont.c (xftfont_fix_match): New function.
1507 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1508 Call xftfont_fix_match after XftFontMatch.
1509
1510 * xfont.c (xfont_driver): Initialize all members.
1511
87e32266
SM
1512 * xfns.c (x_default_font_parameter):
1513 Try font from Ffont_get_system_font.
637fa988
JD
1514 Do not get font from x_default_parameter if we got one from
1515 Ffont_get_system_font.
87e32266 1516 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1517
1518 * w32font.c (w32font_driver): Initialize all members.
1519
1520 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1521
1522 * lisp.h: Declare syms_of_xsettings.
1523
87e32266
SM
1524 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1525 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1526
1527 * ftfont.c (ftfont_filter_properties): New function.
1528
1529 * frame.c (x_set_font): Remove unused variable lval.
1530
87e32266 1531 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1532
1533 * font.c (font_put_extra): Don't return if val is nil, it means
1534 boolean option is off.
1535 (font_parse_fcname): Collect all extra properties in extra_props
1536 and call filter_properties for all drivers with extra_props and
1537 font as parameter.
87e32266
SM
1538 (font_open_entity): Do not use cache, it does not pick up new
1539 fontconfig settings like hinting.
637fa988
JD
1540 (font_load_for_lface): If spec had a name in it, store it in entity.
1541
1542 * emacs.c (main): Call syms_of_xsettings
1543
1544 * config.in: HAVE_GCONF is new.
1545
1546 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1547 xsettings.o is new.
1548
5a942932
KH
15492009-11-17 Kenichi Handa <handa@m17n.org>
1550
1551 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1552 back to the default font in case that no suitable font is found.
1553
b7c7a4d1
SM
15542009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1555
1556 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1557 Suggested by Chad Brown <yandros@mit.edu>.
1558 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1559
072f1e39
JD
15602009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1561
1562 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1563
5d1e70a2
AS
15642009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1565
87e32266 1566 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1567
a53cfbe5
JD
15682009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1569
473a99b7
JD
1570 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1571 has a parent.
1572
a53cfbe5 1573 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1574 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1575
1576 * config.in: Generated (AUTO_DEPEND).
1577
f04bb9b2
MA
15782009-11-13 Michael Albinus <michael.albinus@gmx.de>
1579
b7c7a4d1 1580 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1581 Vdbus_registered_functions_table, because it contains also
1582 properties. Fix docstring.
b7c7a4d1 1583 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1584
8f11f7ec
SM
15852009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1586
1587 * alloc.c (mark_object): Don't reprocess marked strings.
1588 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1589 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1590
8a605fe8
KH
15912009-11-13 Kenichi Handa <handa@m17n.org>
1592
8f11f7ec 1593 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1594 semantics of Vword_combining_categories.
1595 (Vword_combining_categories): Describe the slight change of the
1596 semantics.
1597
241c4680
EZ
15982009-11-13 Eli Zaretskii <eliz@gnu.org>
1599
1600 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1601
1602 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1603
5d58e44c
SM
16042009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1605
1606 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1607
5e13f9d3
JB
16082009-11-12 Juanma Barranquero <lekktu@gmail.com>
1609
1610 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1611
cf54c754
DR
16122009-11-11 David Reitter <david.reitter@gmail.com>
1613
1614 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1615 variables to fix 2009-11-09 change.
1616
a4ada374
DN
16172009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1618
91433552
DN
1619 * process.c (ifflag_def): Make flag_sym constant.
1620 (Fnetwork_interface_info): Use a constant pointer.
1621 (ifflag_table):
1622 * xfns.c (cursor_bits):
1623 * xdisp.c (power_letter):
1624 * termcap.c (speeds, esctab):
1625 * sysdep.c (baud_convert):
1626 * keyboard.c (lispy_accent_codes, modifier_names):
1627 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1628 (jpeg_format, tiff_format, gif_format, svg_format)
1629 (interlace_start, interlace_increment, gs_format):
1630 * gtkutil.c (separator_names):
1631 * fringe.c (swap_nibble):
1632 * fns.c (base64_value_to_char, base64_char_to_value):
1633 * fileio.c (make_temp_name_tbl):
1634 * coding.c (suffixes): Make constant.
1635
f4265f6c
DN
1636 * frame.c (make_initial_frame):
1637 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1638 build_string.
1639 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1640
04420943
DN
1641 * s/freebsd.h:
1642 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1643
0a5d24ae
DN
1644 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1645 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1646
a4ada374
DN
1647 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1648 * xterm.c (syms_of_xterm):
1649 * xfaces.c (syms_of_xfaces):
1650 * xdisp.c (syms_of_xdisp):
1651 * lread.c (syms_of_lread):
1652 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1653 build_string.
91433552 1654
a4ada374
DN
1655 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1656
af98fc7f
SM
16572009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1658
8ab1650e 1659 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1660
e90292a9
JD
16612009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1662
1663 * keyboard.h: Declare timer_check.
1664
1665 * keyboard.c (timer_check_2): New function that does what the old
1666 timer_check did.
1667 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1668 returned, i.e. don't return -1 with timers pending.
1669
1670 * process.c: Remove extern declaration of timer_check.
1671
1672 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1673 even if timer_check returned -1.
1674
af98fc7f
SM
1675 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1676 xg_dialog_data.
e90292a9
JD
1677 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1678 the event loop.
1679 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1680 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1681 Destroy the dialog after xg_dialog_run.
1682
045b83c0
SM
16832009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1684
1685 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1686
1fb99a3a
JD
16872009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1688
1689 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1690
04e452cb
JB
16912009-11-09 Juanma Barranquero <lekktu@gmail.com>
1692
1693 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1694
ef7417fd
SM
16952009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1696
1697 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1698 w32menu.c, and nsmenu.m.
1699 Simplify the obsolete case where position is nil.
1700 (cleanup_popup_menu): New function, moved from nsmenu.m.
1701 (struct skp): Remove slot `notreal'.
1702 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1703 adjust callers.
1704 (single_menu_item): Adjust call to parse_menu_item.
1705 (syms_of_menu): Defsubr x-popup-menu.
1706 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1707 (keymap_panes): Don't export any more.
1708 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1709 (xmenu_show): Declare.
1710 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1711 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1712 * keyboard.h (parse_menu_item): Update declaration.
1713 * xmenu.c (Fx_popup_menu): Remove.
1714 (syms_of_xmenu): Don't defsubr x-popup-menu.
1715 * w32menu.c (Fx_popup_menu): Remove.
1716 (syms_of_w32menu): Don't defsubr x-popup-menu.
1717 * nsmenu.m (cleanup_popup_menu): Remove.
1718 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1719 moved to menu.c's Fx_popup_menu.
1720 (Fx_popup_menu): Remove.
1721 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1722 menu_items (it's done in menu.c already).
1723
424d6179
SM
17242009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1725
1726 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1727 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1728
c0df13a6 17292009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
1730
1731 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 1732 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
1733 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1734 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1735
2de9f71c
SM
17362009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1737
1738 Let integers use up 2 tags to give them one extra bit and thus double
1739 their range.
1740 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1741 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1742 New macros.
1743 (enum Lisp_Type): Use them. Give explicit values.
1744 (Lisp_Type_Limit): Remove.
1745 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1746 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1747 Pay attention to USE_2_TAGS_FOR_INTS.
1748 (INTEGERP): Use LISP_INT_TAG_P.
1749 * fns.c (internal_equal): Simplify the default case.
1750 (sxhash): Use case_Lisp_Int.
1751 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1752 any more.
1753 (Ftype_of): Use case_Lisp_Int.
1754 (store_symval_forwarding): Take into account the fact that Ints can
1755 now have more than one tag.
1756 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1757 buffer_slot_type_mismatch):
1758 * xfaces.c (face_attr_equal_p):
1759 * print.c (print_object):
1760 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1761 Use case_Lisp_Int.
1762
323637a2
EZ
17632009-11-06 Eli Zaretskii <eliz@gnu.org>
1764
7ac65b38
EZ
1765 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1766
323637a2
EZ
1767 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1768 warning.
1769
e511451f
JD
17702009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1771
1772 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1773
1774 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1775
1776 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1777 ButtonPressRelease and MotionNotify (bug#4870).
1778
5e2327cf
DN
17792009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1780
5adc433e
DN
1781 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1782
d67b4f80
DN
1783 * xterm.c (syms_of_xterm):
1784 * xselect.c (syms_of_xselect):
1785 * xmenu.c (syms_of_xmenu):
1786 * xfns.c (syms_of_xfns):
1787 * xfaces.c (syms_of_xfaces):
1788 * xdisp.c (syms_of_xdisp):
1789 * window.c (syms_of_window):
1790 * w32fns.c (syms_of_w32fns):
1791 * undo.c (syms_of_undo):
1792 * textprop.c (syms_of_textprop):
1793 * terminal.c (syms_of_terminal):
1794 * syntax.c (syms_of_syntax):
1795 * sound.c (syms_of_sound):
1796 * search.c (syms_of_search):
1797 * print.c (syms_of_print):
1798 * minibuf.c (syms_of_minibuf):
1799 * macros.c (syms_of_macros):
1800 * keymap.c (syms_of_keymap, initial_define_key)
1801 (initial_define_lispy_key):
1802 * keyboard.c (syms_of_keyboard):
1803 * insdel.c (syms_of_insdel):
1804 * image.c (syms_of_image):
1805 * fringe.c (syms_of_fringe):
1806 * frame.c (syms_of_frame):
1807 * fontset.c (syms_of_fontset):
1808 * fns.c (syms_of_fns):
1809 * fns.c (syms_of_fns):
1810 * fileio.c (syms_of_fileio):
1811 * fileio.c (syms_of_fileio):
1812 * eval.c (syms_of_eval):
1813 * doc.c (syms_of_doc):
1814 * dispnew.c (syms_of_display):
1815 * dired.c (syms_of_dired):
1816 * dbusbind.c (syms_of_dbusbind):
1817 * data.c (syms_of_data):
1818 * composite.c (syms_of_composite):
1819 * coding.c (syms_of_coding):
1820 * cmds.c (syms_of_cmds):
1821 * charset.c (define_charset_internal, syms_of_character):
1822 * ccl.c (syms_of_ccl):
1823 * category.c (syms_of_category, init_category_once):
1824 * casetab.c (syms_of_casetab):
1825 * casefiddle.c (syms_of_casefiddle):
1826 * callint.c (syms_of_callint):
1827 * bytecode.c (syms_of_bytecode):
1828 * buffer.c (keys_of_buffer, syms_of_buffer):
1829 * alloc.c (syms_of_alloc):
1830 * process.c (syms_of_process, init_process):
1831 * lread.c (syms_of_lread, init_obarray):
1832 * font.c (build_style_table):
1833 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1834 intern_c_string, calls to make_pure_string with
1835 make_pure_c_string. Use pure_cons instead of Fcons.
1836
5e2327cf
DN
1837 * process.c (socket_options): Make it const.
1838 (set_socket_option, init_process): Use a const pointer.
1839
1840 * lread.c (intern_c_string): New function.
1841 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1842 (defvar_int): Uset it. Make the name const char*.
1843
1844 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1845 (defvar_int): Update prototypes.
1846 (DEFUN, EXFUN): Support for prototypes is now required.
1847 (intern_c_string): New prototype.
1848 (struct Lisp_Subr): Make symbol_name constant.
1849
1850 * font.c (struct table_entry): Remove unused member. Make NAMES
1851 constant.
1852 (weight_table, slant_table, width_table): Make constant.
1853
1854 * emacs.c (struct standard_args): Make name and longname constant.
1855
1856 * character.h (DEFSYM): Use intern_c_string.
1857
a56eaaef
DN
18582009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1859
1860 * alloc.c (make_pure_c_string): New function.
1861
1862 * eval.c (Fautoload): Purecopy all arguments.
1863
f6a07420
KH
18642009-11-05 Kenichi Handa <handa@m17n.org>
1865
1866 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1867 the buffer in case of replace.
1868
5d28d4b1
DN
18692009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1870
1871 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1872
b349d111
SM
18732009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1874
d528b1ce
SM
1875 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1876 when applicable (bug#4851).
1877
b349d111
SM
1878 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1879 (P_): Support for prototypes is now required.
1880
c38eb027
CY
18812009-10-31 Chong Yidong <cyd@stupidchicken.com>
1882
1883 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1884 (Bug#4827).
1885
0405f8d9
EZ
18862009-10-30 Eli Zaretskii <eliz@gnu.org>
1887
d528b1ce 1888 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 1889
ca0a881a
DN
18902009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1891
1892 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1893
d528b1ce
SM
1894 * lread.c (Fload): Purecopy the file name when building
1895 Vpreloaded_file_list.
ca0a881a 1896
47e0e0e4
JR
18972009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1898
1899 * w32fns.c (syms_of_w32fns): Change default value of
1900 w32-scroll-lock-modifier to nil. (Bug#2827)
1901
057bce6f
JB
19022009-10-26 Juanma Barranquero <lekktu@gmail.com>
1903
782a943e 1904 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 1905
242bc74c
AS
19062009-10-26 Andreas Schwab <schwab@redhat.com>
1907
1908 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1909
522d013a
JB
19102009-10-26 Juanma Barranquero <lekktu@gmail.com>
1911
1912 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1913 For delta < 0, skip check that only makes sense when the mini-window
1914 is going to be enlarged. (Bug#4534)
1915
18060980
CY
19162009-10-25 Chong Yidong <cyd@stupidchicken.com>
1917
1918 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1919 string in menu maps (Bug#4471).
1920
fec8f0fe
CY
19212009-10-24 Chong Yidong <cyd@stupidchicken.com>
1922
1923 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1924 FRAME_NS_VIEW on terminal frames (Bug#4765).
1925
10d66ec0
AS
19262009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1927
1cae01f7
AS
1928 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1929 DBUS_TYPE_UINTnn separately to get proper sign extension.
1930
58a12889
AS
1931 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1932 can properly handle unsigned types.
d528b1ce 1933 (make_uid, make_gid): Remove.
58a12889 1934
987c9327
AS
1935 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1936 types again.
1937
522d013a 1938 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
1939 (system_process_attributes): Likewise.
1940
905a9ed3
DN
19412009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1942
1943 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1944
1945 * eval.c (Fautoload): Purecopy the filename. Simplify.
1946
1947 * category.c (Fdefine_category): Purecopy docstring.
1948
a599b3e8
AS
19492009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1950
7b792fc9
AS
1951 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1952
a599b3e8
AS
1953 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1954
b35ac83e
CY
19552009-10-23 Chong Yidong <cyd@stupidchicken.com>
1956
1957 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1958 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1959 (Bug#4775).
1960
e8903e00
SM
19612009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1962
1963 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1964 (init_fileio_once):
1965 * lisp.h (init_fileio_once): Remove.
1966 * emacs.c (main): Don't call init_fileio_once.
1967
8f43cbf3
DN
19682009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1969
1970 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1971
26898943
AS
19722009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1973
1974 * doprnt.c (doprnt): Fix overflow check.
1975
5c646d5a
JD
19762009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1977
3132a7ea
JD
1978 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1979
5c646d5a
JD
1980 * xterm.h (x_wait_for_event): Declare it.
1981
1982 * xterm.c (pending_event_wait): New variable.
1983 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1984 see pending_event_wait.eventtype.
1985 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
1986 (x_new_font): Call change_frame_size with new rows/columns before we
1987 try to resize the frame.
5c646d5a 1988 (x_wait_for_event): New function.
d528b1ce
SM
1989 (x_set_window_size_1): Don't change gravity unless change_gravity
1990 is set.
5c646d5a
JD
1991 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
1992 don't change frame size, instead wait for the ConfigureNotify.
1993 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
1994 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
1995 (x_initialize): Initialize pending_event_wait.
1996
1997 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
1998 size.
1999
2000 * widget.c (EmacsFrameSetValues): Add comment.
2001 (EmacsFrameSetCharSize): Just call x_set_window_size.
2002
2003 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2004 x_wait_for_event.
d528b1ce 2005 (flush_and_sync): Remove again.
5c646d5a
JD
2006 (xg_get_font_name): Suggest monospace if no previous font is known.
2007
e9c1637d
SM
20082009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2009
2010 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2011 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2012
5a72cccb
YM
20132009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2014
2015 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2016 processing pending events when event is filtered for input method.
ab04798f 2017 (Bug#3681)
5a72cccb 2018
2629aa37
JB
20192009-10-20 Juanma Barranquero <lekktu@gmail.com>
2020
2021 * fns.c: Add #endif accidentally removed in previous change.
2022
c3417a74
DN
20232009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2024
2025 * fns.c: Remove code for unsupported system: MAC_OS.
2026 * image.c: Likewise. Include setjmp.h.
2027
9685cef2
JD
20282009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2029
2030 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2031 pixel -1 (bug #4742).
2032
d7306fe6
DN
20332009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2034
019d2c4c
DN
2035 * process.c (create_pty): Remove conditionals for no longer
2036 supported systems: UNIPLUS and RTU.
2037
ee6bacd4
DN
2038 * xterm.c:
2039 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2040
d7306fe6
DN
2041 * alloc.c: Do not define struct catchtag.
2042 * eval.c: Move struct catchtag definition ...
2043 * lisp.h: ... here.
2044
2045 * image.c: Move png.h #include earlier to avoid warnings.
2046
2047 * xterm.c:
2048 * xsmfns.c:
2049 * xselect.c:
2050 * xrdb.c:
2051 * xmenu.c:
2052 * xftfont.c:
2053 * xfont.c:
2054 * xfns.c:
2055 * xfaces.c:
2056 * xdisp.c:
2057 * window.c:
2058 * widget.c:
2059 * w32xfns.c:
2060 * w32uniscribe.c:
2061 * w32term.c:
2062 * w32select.c:
2063 * w32reg.c:
2064 * w32proc.c:
2065 * w32menu.c:
2066 * w32inevt.c:
2067 * w32heap.c:
2068 * w32font.c:
2069 * w32fns.c:
2070 * w32console.c:
2071 * w32.c:
2072 * w16select.c:
2073 * vm-limit.c:
2074 * unexsol.c:
2075 * unexec.c:
2076 * unexcw.c:
2077 * unexaix.c:
2078 * undo.c:
2079 * tparam.c:
2080 * textprop.c:
2081 * terminfo.c:
2082 * terminal.c:
2083 * termcap.c:
2084 * term.c:
2085 * syntax.c:
2086 * sound.c:
2087 * sheap.c:
2088 * search.c:
2089 * scroll.c:
2090 * region-cache.c:
2091 * regex.c:
2092 * ralloc.c:
2093 * process.c:
2094 * print.c:
b024548b
DN
2095 * nsterm.m:
2096 * nsselect.m:
2097 * nsmenu.m:
2098 * nsimage.m:
2099 * nsfont.m:
2100 * nsfns.m:
d7306fe6
DN
2101 * msdos.c:
2102 * minibuf.c:
2103 * menu.c:
2104 * marker.c:
2105 * macros.c:
2106 * keymap.c:
2107 * keyboard.c:
2108 * intervals.c:
2109 * insdel.c:
2110 * indent.c:
2111 * gtkutil.c:
2112 * ftxfont.c:
2113 * ftfont.c:
2114 * fringe.c:
2115 * frame.c:
2116 * fontset.c:
2117 * font.c:
2118 * fns.c:
2119 * floatfns.c:
2120 * filelock.c:
2121 * fileio.c:
2122 * emacs.c:
2123 * editfns.c:
2124 * dosfns.c:
2125 * doprnt.c:
2126 * doc.c:
2127 * dispnew.c:
2128 * dired.c:
2129 * dbusbind.c:
2130 * data.c:
2131 * composite.c:
2132 * coding.c:
2133 * cmds.c:
2134 * cm.c:
2135 * chartab.c:
2136 * charset.c:
2137 * character.c:
2138 * ccl.c:
2139 * category.c:
2140 * casetab.c:
2141 * casefiddle.c:
2142 * callproc.c:
2143 * callint.c:
2144 * bytecode.c:
2145 * buffer.c:
2146 * atimer.c: Include setjmp.h. (Bug#4643)
2147
fd5f21e6
SM
21482009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2149
4c0354d7
SM
2150 Remove leftover table unibyte_to_multibyte_table.
2151 * character.c (unibyte_to_multibyte_table): Remove.
2152 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2153 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2154 * character.h (UNIBYTE_TO_CHAR): New macro.
2155 (MAKE_CHAR_MULTIBYTE): Use it.
2156 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2157 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2158 (message_dolog, set_message_1):
2159 * search.c (Freplace_match):
2160 * editfns.c (Fcompare_buffer_substrings):
2161 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2162 (concat):
2163 * insdel.c (copy_text, count_size_as_multibyte):
2164 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2165 * term.c (produce_glyphs):
2166 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2167 * regex.c (RE_CHAR_TO_MULTIBYTE):
2168 * cmds.c (internal_self_insert):
2169 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2170
fd5f21e6
SM
2171 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2172
4418646e
DN
21732009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2174
2175 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2176
35f5c1d2
JB
21772009-10-16 Juanma Barranquero <lekktu@gmail.com>
2178
2179 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2180
a0cd8f6b
AR
21812009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2182
2183 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2184 still needed under Tiger.
2185
2186 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2187
2188 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2189 __Apple__.
2190
2191 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2192
01a8d3fa
KH
21932009-10-15 Kenichi Handa <handa@m17n.org>
2194
2195 * print.c (print_object): Escape a symbol like "2E10" too.
2196
bf6c75c9 21972009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2198
2199 Cleanups and changes for 64-bit compile under Snow Leopard.
2200 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2201
2202 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2203
c5959062 2204 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2205 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2206 cast argument.
2207 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2208 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2209
2210 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2211
2212 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2213 where appropriate.
2214
2215 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2216 where appropriate.
6e4780c5
JB
2217 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2218 Use stringWithUTF8String.
bf6c75c9
AR
2219 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2220
6e4780c5
JB
2221 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2222 Add formal protocol mention to inheritance.
bf6c75c9
AR
2223 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2224
6e4780c5
JB
2225 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2226 Fix printf format.
bf6c75c9
AR
2227 (ns_query_color): Use CGFloat where appropriate.
2228 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2229 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2230 argument.
2231
3d87f118
AR
2232 * config.in (NS_HAVE_NSINTEGER): Drop.
2233
a95c8102
AR
2234 * dbusbind.c (dbus-method-return-internal)
2235 (dbus-method-error-internal): Use long format in printf, and cast
2236 argument.
2237
2238 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2239 in printf, and cast argument.
2240
6873acca 2241 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2242 cast argument.
2243
9ec6f100
GM
22442009-10-11 Glenn Morris <rgm@gnu.org>
2245
2246 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2247
5be883cd
JD
22482009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2249
2250 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2251 menu bar with a small width so it doesn't enlarge the frame.
2252
d7a39b51
JB
22532009-10-08 Juanma Barranquero <lekktu@gmail.com>
2254
2255 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2256
0c2b6f8e
GM
22572009-10-06 Glenn Morris <rgm@gnu.org>
2258
2259 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2260 SOME_MACHINE_LISP (this enters indirectly via DOC).
2261
e02131a2
EZ
22622009-10-05 Eli Zaretskii <eliz@gnu.org>
2263
2264 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2265
b4744254
EZ
22662009-10-04 Eli Zaretskii <eliz@gnu.org>
2267
2268 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2269 Doc fix.
2270
dbf64827
JB
22712009-10-03 Martin Rudalics <rudalics@gmx.at>
2272
2273 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2274
e9a0aef8
MA
22752009-10-02 Michael Albinus <michael.albinus@gmx.de>
2276
d528b1ce 2277 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2278 used anymore outside fileio.c.
2279
2280 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2281
64eb2b56
JB
22822009-10-01 Juanma Barranquero <lekktu@gmail.com>
2283
2284 * lisp.h (Qdelete_directory_internal):
2285 Declare, instead of Qdelete_directory.
2286
2287 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2288
9d28c33e
SM
22892009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2290
2291 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2292
9d8f3bd9
MA
22932009-10-01 Michael Albinus <michael.albinus@gmx.de>
2294
9d28c33e 2295 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2296 Fdelete_directory. It is not a command anymore. It has no file
2297 name handler.
2298
9694740b
SM
22992009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2300
2301 * xdisp.c (get_next_display_element): Use an enum in last change.
2302
748e162f
KH
23032009-09-28 Kenichi Handa <handa@m17n.org>
2304
9694740b 2305 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2306 unibyte_display_via_language_environment in handling
2307 Vnobreak_char_display.
2308
17efd58d
AR
23092009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2310
2311 * nsterm.h (ns_app_name): New extern variable.
2312
2313 * nsterm.m (ns_app_name): New variable.
2314 (ns_term_init): Set and use it.
2315 (ns_term_shutdown): Use it.
2316
2317 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2318 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2319
2320 * nsfns.m (ns_set_name_iconic, ns_set_name)
2321 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2322 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2323
9694740b
SM
2324 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2325 Remove double-casting in client_data comparison.
31c2d412 2326
3208cb35
YM
23272009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2328
2329 * keyboard.c (make_lispy_event): Remember last wheel direction.
2330 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2331
b7d552d6
GM
23322009-09-26 Glenn Morris <rgm@gnu.org>
2333
2334 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2335 internal.elc. Add term/pc-win.elc.
2336 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2337 term/x-win.elc.
2338 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2339 term/w32-win.elc.
2340 (NS_SUPPORT): New.
2341 (lisp): Add NS_SUPPORT.
2342 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2343
4ff670a8
DR
23442009-09-25 David Reitter <david.reitter@gmail.com>
2345
2346 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2347 on Mac OS X 10.6+ (bug#4513).
2348
feabfb6c
JB
23492009-09-24 Juanma Barranquero <lekktu@gmail.com>
2350
2351 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2352 some parts of Emacs code (like font selection) don't grok them.
2353 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2354
de59072a
AS
23552009-09-24 Andreas Schwab <schwab@redhat.com>
2356
2357 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2358
a489517b
JB
23592009-09-24 Juanma Barranquero <lekktu@gmail.com>
2360
2361 * dired.c (Fdirectory_files): Fix typo in docstring.
2362
0592970c
AR
23632009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2364
2365 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2366 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2367 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2368 under GNUstep.
2369 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2370
2371 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2372 glyph advancement.
2373
48e8a88b
AR
23742009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2375
2376 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2377 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2378
2379 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2380 deleted (bug #4492).
2381
e14f0a78
AR
2382 * nsfont.m (Vns_reg_to_script): New lisp variable.
2383 (syms_of_nsfont): Declare it.
2384 (ns_registry_to_script): New function.
2385 (ns_get_req_script): Call it.
2386 (ns_findfonts): Don't give up on non-unicode registry.
2387
2388 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2389
5b650faa
SM
23902009-09-20 Tom Tromey <tromey@redhat.com>
2391
2392 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2393 batch mode (bug#4228).
2394
a489517b 23952009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2396
2397 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2398 carefully. (Bug #4339)
0bae4e09 2399
fcfe06f3
CY
24002009-09-18 Chong Yidong <cyd@stupidchicken.com>
2401
d798ba87 2402 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2403
31642728
AR
24042009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2405
2406 * emacs.c (inhibit_x_resources): Update doc string for NS.
2407 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2408 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2409
2410 * nsterm.h (ns_no_defaults): Remove.
2411
2412 * nsterm.m (ns_no_defaults): Remove.
2413 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2414 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2415 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2416 don't update the NSWindow itself.
2417 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2418 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2419
2420 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2421 ns_use_qd_smoothing.
2422
2423 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2424 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2425 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2426 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2427
8686ac71
JB
24282009-09-17 Juanma Barranquero <lekktu@gmail.com>
2429
2430 * emacs.c (inhibit_x_resources): New variable.
2431 (main) [HAVE_NS]: Don't process --quick command line option.
2432 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2433
2434 * lisp.h (inhibit_x_resources): Declare it extern.
2435
2436 * w32reg.c (x_get_string_resource):
2437 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2438
e227ba05
EZ
24392009-09-17 Eli Zaretskii <eliz@gnu.org>
2440
362654a6
JB
2441 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2442 Add lisp/term/internal.elc.
e227ba05 2443
742d40e8
SM
24442009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2445
2446 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2447 (bug#4461).
2448
005bd5a2
DN
24492009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2450
2451 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2452
2453 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2454 (OBJECTS_MACHINE): Remove, unused.
2455
f9af9719
SM
24562009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2457
2458 * frame.c (x_get_resource_string): Remove unused.
2459
0307c7d2
JD
24602009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2461
2462 * xterm.c (x_new_font): Call change_frame_size before calling
2463 x_set_window_size, in case frame size won't change.
2464
2465 * frame.c (x_set_font): Remove dead code.
2466
428b13d6
SM
24672009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2468
2469 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2470
5766c380
SM
24712009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2472
2473 * lread.c (Fload): Don't output a message after loading an obsolete
2474 package any more (done in Lisp now).
2475
2fd0161b
CY
24762009-09-12 Chong Yidong <cyd@stupidchicken.com>
2477
2478 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2479
bc5e75b6
SM
24802009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2481
2482 * keymap.c (Fwhere_is_internal): Use nconc2.
2483
c31c985e
AM
24842009-09-11 Alan Mackenzie <acm@muc.de>
2485
2486 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2487 batch mode.
2488
78012bd2
AS
24892009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2490
2491 * xdisp.c (display_mode_element): Detect cycles.
2492
9d889332
SM
24932009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2494
2495 * keymap.c (where_is_internal): Don't erroneously return nil right after
2496 filling the cache.
2497 (where_is_internal_1): Fix up typo.
2498
7ab5d780
GM
24992009-09-11 Glenn Morris <rgm@gnu.org>
2500
2501 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2502 share a common doc-string.
2503
5238a749
SM
25042009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2505
66d77eda
SM
2506 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2507 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2508
5238a749
SM
2509 * keymap.c (QCadvertised_binding): New constant.
2510 (syms_of_keymap): Initialize it.
2511 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2512 if applicable.
2513
19f48442
SM
25142009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2515
50d4ba39
SM
2516 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2517 (parse_menu_item): Streamline since bindings are recomputed all the
2518 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2519 more and don't support lmenu's menu-alias any more either.
2520
a88a5372
SM
2521 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2522 (where_is_internal): Strip it down to only traverse the keymaps.
2523 Move the cache handling from Fwhere_is_internal to here.
2524 (Fwhere_is_internal): Move the handling of remapping and the choice of
2525 the best binding from where_is_internal to here.
2526 Unify the cached/noncached paths, so remapping is also handled
2527 correctly when the cache is used, and so the cache can be used to
2528 speed up remap-handling when applicable.
2529 Give preference to non-remapped bindings.
2530 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2531 non-remapped bindings.
2532 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2533 command remapping.
2534
19f48442
SM
2535 * xdisp.c (display_mode_element): Move list length limit from 50 to
2536 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2537
599498c3 25382009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2539
2540 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2541
f9b7b5ac
SM
25422009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2543
a53af587
JB
2544 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2545 (Bug#4334)
2546
f9b7b5ac
SM
2547 * keymap.c (where_is_internal): Filter out shadowed remappings.
2548 Assume that where_is_internal returns unshadowed bindings to simplify
2549 the code and get rid of the gotos. Use ASIZE.
2550
04f4b72d
JD
25512009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2552
4da146f2
JD
2553 * xterm.c (x_focus_changed): If we get a focusout and pointer
2554 is invisible, make it visible.
2555
04f4b72d
JD
2556 * xterm.h: Remove condition for declaration of
2557 x_*_window_to_frame.
2558
7cef7ce3
SM
25592009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2560
2561 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2562 initial terminal as well.
2563
a54fa5b7
JD
25642009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2565
2566 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2567 x_menubar_window_to_frame.
a54fa5b7
JD
2568
2569 * xterm.c: Remove declarations also in xterm.h
2570 (XTmouse_position): Do not return valid positions
2571 for clicks in the menubar and the toolbar for Gtk+.
2572
2573 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2574 if the widget for the event has the same top level as a frame,
2575 return the frame.
2576 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2577 internal windows, bug #4122.
2578 (x_non_menubar_window_to_frame): Remove.
2579
5a021dd0
GM
25802009-09-02 Glenn Morris <rgm@gnu.org>
2581
2582 * buffer.c (default-major-mode): Move most of the doc from here...
2583 (major-mode): ... to here.
2584
548fe2f3
NR
25852009-08-30 Nick Roberts <nickrob@snap.net.nz>
2586
2587 * process.c (wait_reading_process_output): Keep the descriptor
2588 when pty is used by a non-child process, e.g., in I/O buffer of
2589 GDB this allows inferior to be restarted.
2590
e0840eef
EZ
25912009-08-29 Eli Zaretskii <eliz@gnu.org>
2592
2593 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2594 both branches into one.
2595
82e98df4
SM
25962009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2597
2598 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2599 (main): Use enable-multibyte-characters rather than
2600 default-enable-multibyte-characters. Output a warning message when
2601 running a unibyte session.
2602
890617cb
YM
26032009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2604
2605 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2606 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2607 (copy_data_segment): Also copy __program_vars section.
2608 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2609 (dump_it) [LC_DYLD_INFO]: Use it.
2610
2611 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2612
e7adeadc
EZ
26132009-08-28 Eli Zaretskii <eliz@gnu.org>
2614
2615 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2616 $(SRC)/buildobj.h.
2617 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2618 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2619 $(SRC)/buildobj.h.
2620 (clean): Add buildobj.h.
2621
3ed8bbdc
TZ
26222009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2623
2624 * print.c (print_object): Set escapeflag to 1 when printing
2625 hashtable keys and values.
2626
155a6764
SM
26272009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2628
2629 * lread.c (read_integer): Use doubles (and potentially return a float
2630 number) as we do in string-to-number.
2631 (read1): Use strtol to read integers, signal errors on strtol's
2632 overflow and use floats if strtol's output is too large for
2633 Elisp integers.
2634
877610de
EZ
26352009-08-27 Eli Zaretskii <eliz@gnu.org>
2636
2637 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2638 (make-buildobj-SH): Fix last change.
2639 (SRC): Move to before where it's first used.
2640
ef73e7be
KH
26412009-08-27 Kenichi Handa <handa@m17n.org>
2642
550c8289
KH
2643 * process.c (send_process): Use encode_coding_object instead of
2644 encode_coding_string to perform eol-conversion even if the string
2645 is unibyte.
2646
60afa08d
KH
2647 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2648 character.
2649
ef73e7be 2650 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2651 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2652
7b3a82d7
DN
26532009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2654
5654bf63
DN
2655 * callproc.c (Fcall_process): Remove always true #if.
2656
7b3a82d7
DN
2657 * lisp.h: Replace #if 0 code for checking with text pointing to
2658 the --enable-checking configure flag.
2659
2660 * emacs.c (main): Mention the --enable-profiling configure flag
2661 instead of using CFLAGS.
2662
878bde49
KR
26632009-08-26 Ken Raeburn <raeburn@raeburn.org>
2664
2665 * Makefile.in (buildobj.h): New target.
2666 (doc.o): Depend on it.
2667 (temacs${EXEEXT}): Don't generate buildobj.lst.
2668 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2669 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2670 ($(BLD)/doc.$(O)): Depend on it.
2671 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2672 provided by Eli Zaretskii.)
2673 ($(TEMACS)): Don't generate buildobj.lst.
2674 * doc.c: Include buildobj.h.
2675 (buildobj): New static variable.
2676 (Fsnarf_documentation): Use it, instead of opening and reading
2677 buildobj.lst.
2678
1574224c
MA
26792009-08-25 Michael Albinus <michael.albinus@gmx.de>
2680
2681 * dbusbind.c (Fdbus_call_method)
2682 (Fdbus_call_method_asynchronously): Use English numeric format for
2683 timeout values in doc string.
2684
d9da2f45
KH
26852009-08-25 Kenichi Handa <handa@m17n.org>
2686
ef73e7be
KH
2687 * alloc.c (mark_char_table): New function.
2688 (mark_object): Use mark_char_table for a char-table.
2689
d9da2f45
KH
2690 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2691 (CHAR_TABLE_REF): Use it.
2692
c8edcc01
KR
26932009-08-23 Ken Raeburn <raeburn@raeburn.org>
2694
2695 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2696 before invoking the newly build emacs to check for load-path
2697 shadowing.
2698
7763401b
GM
26992009-08-22 Glenn Morris <rgm@gnu.org>
2700
2701 * Makefile.in (bootstrap_exe): New variable.
2702 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2703 Use ${bootstrap_exe}.
2704
729eadda
EZ
27052009-08-22 Eli Zaretskii <eliz@gnu.org>
2706
2707 * coding.h (encode_coding_string): Don't encode unibyte strings.
2708 (Bug#4047)
2709
eb4c6ace
MA
27102009-08-22 Michael Albinus <michael.albinus@gmx.de>
2711
2712 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2713
2714 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2715 intended as hotfix only.
2716 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2717
36e34d1b
AR
27182009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2719
2720 * nsterm.m (ns_get_color): Update documentation properly for last
2721 change, and clean up loose ends in the code left by it. Fix
2722 longstanding bug with 16-bit hex parsing, and add support for
2723 yet another X11 format (rgb:r/g/b) for compatibility.
2724 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2725 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2726
f983eb8a
SM
27272009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2728
2729 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2730
3f56d3c6
MA
27312009-08-20 Michael Albinus <michael.albinus@gmx.de>
2732
2733 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2734 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2735 (xd_initialize, xd_pending_messages): Check, whether
2736 $DBUS_SESSION_BUS_ADDRESS is set.
2737
fb641d68
YM
27382009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2739
2740 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2741
2742 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2743
cf59a374
GM
27442009-08-20 Glenn Morris <rgm@gnu.org>
2745
2746 * emacs.c (system-type): Doc fix.
2747
1373f3be
SM
27482009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2749
2750 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2751 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2752
058ed861
MA
27532009-08-18 Michael Albinus <michael.albinus@gmx.de>
2754
1373f3be
SM
2755 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2756 New functions.
058ed861
MA
2757 (xd_initialize): Revert change from 2009-08-16.
2758
563a866e 27592009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
2760
2761 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 2762 font-group vector, return nil.
5fc05db0 2763
e42bdf01
CY
27642009-08-17 Chong Yidong <cyd@stupidchicken.com>
2765
2766 * process.c (status_notify): Don't perform redisplay.
2767 (Fdelete_process, list_processes_1, process_send_signal):
2768 Expliticly perform redisplay.
2769 (wait_reading_process_output): Always check process status, but
2770 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2771
4230ab74
KR
27722009-08-17 Ken Raeburn <raeburn@raeburn.org>
2773
1373f3be 2774 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
2775 (XFLOAT_INIT): New macro for storing a float value.
2776 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2777 * fns.c (sxhash): Copy out the value of a float in order to
2778 examine its bytes.
2779 * dbusbind.c (xd_append_arg): Likewise.
2780
4230ab74
KR
2781 * emacs.c (main): Don't call syms_of_data twice.
2782
a0645cdd
MA
27832009-08-16 Michael Albinus <michael.albinus@gmx.de>
2784
2785 * dbusbind.c (xd_initialize): Add connection file descriptor to
2786 input_wait_mask, in order to let select() detect, whether a new
2787 message has been arrived.
ca4f31ea 2788 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 2789
485db0ba
MA
27902009-08-15 Michael Albinus <michael.albinus@gmx.de>
2791
1373f3be
SM
2792 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2793 New functions.
485db0ba
MA
2794
2795 * lisp.h (xd_pending_messages): Declare.
2796
2797 * keyboard.c (readable_events): Call xd_pending_messages.
2798
b5b98ff4
CY
27992009-08-15 Chong Yidong <cyd@stupidchicken.com>
2800
1373f3be 2801 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 2802
f8354c6e
CY
2803 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2804
b5b98ff4
CY
2805 * buffer.c (set_buffer_internal_1)
2806 (swap_out_buffer_local_variables): Check for unbound local
2807 variables (Bug#4138).
2808
8b9fc636
EZ
28092009-08-14 Eli Zaretskii <eliz@gnu.org>
2810
2811 * process.c (create_pty): Fix last change.
2812
ce959360
CY
28132009-08-13 Chong Yidong <cyd@stupidchicken.com>
2814
2815 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2816 (xbm_load_image): Caller changed.
64b807c9 2817 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 2818
c7baf7e9
NR
28192009-08-13 Nick Roberts <nickrob@snap.net.nz>
2820
2821 * process.c (create_pty): New function.
2822 (Fstart_process): Use it to allow Emacs to just associate a pty
2823 with the buffer. See associated change in gdb-mi.el.
2824 (list_processes_1): Deal with no program name.
2825 (start_process_unwind): Use pid == -2 to mean no process.
2826
1ac9108a
SM
28272009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2828
2829 * cmds.c (nonundocount): New global variable.
2830 (keys_of_cmds): Initialize it.
2831 (Fself_insert_command): Use it to combine upto 20 sequential chars
2832 into a single undo entry, just like the Qself_insert_command code in
2833 keyboard.c does.
2834 Call frame_make_pointer_invisible, also like the Qself_insert_command
2835 code in keyboard.c does.
2836 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2837 than its own local replacement for it.
2838
e267324c
KR
28392009-08-10 Ken Raeburn <raeburn@raeburn.org>
2840
1ac9108a 2841 * fns.c (concat): Don't re-set string length to its current value.
77437343 2842
1ac9108a
SM
2843 * coding.h (decode_coding_string, encode_coding_string):
2844 Use SBYTES macro.
f0bed503 2845
1ac9108a 2846 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
2847 (doprnt): Merge with doprnt1, discarding lispstrings code.
2848 * lisp.h (doprnt_lisp): Don't declare.
2849
416e006d
JL
28502009-08-07 Juri Linkov <juri@jurta.org>
2851
2852 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2853
6f7d5780
DN
28542009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2855
2856 * print.c (syms_of_print): Undo previous change.
2857
f19a0f5b
TZ
28582009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2859
2860 * lread.c (read1, syms_of_lread): Read hashtables back from the
2861 readable format.
2862
2863 * print.c (print_preprocess, print_object): Print hashtables fully
2864 and readably.
2865 (syms_of_print): Provide 'hashtable-print-readable.
2866
b9173dc2
AR
28672009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2868
2869 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2870 no family set.
2871 (nsfont_open): Handle case when entity has no family.
2872
1586503c
AR
28732009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2874
2875 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2876 element, not a list, for match case.
2877
087048cd
KH
28782009-07-28 Kenichi Handa <handa@m17n.org>
2879
2880 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2881 rigidly.
2882
2883 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2884 font_parse_xlfd. Check font properties more rigidly.
2885
780c2506
DN
28862009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2887
31fd7c5c
JB
2888 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2889 bsd-common.h.
780c2506 2890
a8c0cc18
KH
28912009-07-27 Kenichi Handa <handa@m17n.org>
2892
2893 * xfaces.c (face_with_height): Call font_clear_prop.
2894
4fbe2306
CY
28952009-07-26 Chong Yidong <cyd@stupidchicken.com>
2896
111d9af3
CY
2897 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2898
2899 * xterm.c (x_term_init): Use Qx.
2900
4fbe2306
CY
2901 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2902
1ac9108a 2903 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
2904 (ns_get_color): Revert 2009-07-16 change.
2905
beb0b7f9
EZ
29062009-07-25 Eli Zaretskii <eliz@gnu.org>
2907
2908 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 2909 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 2910
2baf5e76
KR
29112009-07-25 Ken Raeburn <raeburn@raeburn.org>
2912
1ac9108a
SM
2913 * coding.h (decode_coding_string, encode_coding_string):
2914 Use SCHARS macro.
8890e5f5 2915
2baf5e76 2916 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 2917 (load_depth): Delete.
2baf5e76
KR
2918 (Qload_in_progress): New variable.
2919 (load_unwind): Don't reference load_depth or load_in_progress.
2920 (Fload): Likewise; specbind Qload_in_progress instead.
2921 (init_lread): Don't initialize load_depth.
2922 (syms_of_lread): Initialize and protect Qload_in_progress.
2923
1395c6f5
AR
29242009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2925
2926 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2927
4e2f36cf
AR
29282009-07-23 Yavor Doganov <yavor@gnu.org>
2929
2930 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2931
5dd9a6f7
AR
29322009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2933
2934 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
2935 Bugs 3792, 3720, 2402.
2936 (ns_lookup_indexed_color): Check for bad index.
2937 (ns_index_color): Init unused slot to 0.
2938 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2939 Bug 3714, possibly 3082.
5dd9a6f7 2940
c902b920
JR
29412009-07-22 Jason Rumney <jasonr@gnu.org>
2942
1ac9108a
SM
2943 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2944 Position IME window at cursor (Bug#2570).
c902b920
JR
2945 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2946 (globals_of_w32fns): Dynamically load functions required above.
2947
2948 * w32term.c (w32_draw_window_cursor): Send message to reposition
2949 any IME window.
2950
090101cf
CY
29512009-07-21 Chong Yidong <cyd@stupidchicken.com>
2952
2953 * fileio.c: Revert 2009-07-16 changes.
2954 (Vauto_save_include_big_deletions): New variable.
2955 (Fdo_auto_save): Disable auto-save only if
2956 auto-save-include-big-deletions is nil.
2957
e6583e3d
CY
29582009-07-21 Chong Yidong <cyd@stupidchicken.com>
2959
2960 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2961 the overflowed pixels into account (Bug#3879).
2962
ece435a5
KR
29632009-07-21 Ken Raeburn <raeburn@raeburn.org>
2964
2965 * lread.c (load_depth): New variable.
2966 (Fload, load_unwind, init_lread): Set it to the load recursion
2967 depth; set load_in_progress as a simple boolean based on the
2968 current load_depth. (Bug#3892)
2969
40b2d973
AR
29702009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2971
2972 * nsfont.m (ns_has_attribute): Remove.
2973 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2974
10be7e0d
JL
29752009-07-18 Juri Linkov <juri@jurta.org>
2976
2977 * process.c (Fset_process_query_on_exit_flag): Mention killing
2978 a buffer in docstring.
2979
fa055055
KH
29802009-07-17 Kenichi Handa <handa@m17n.org>
2981
2982 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2983
042f7b69
YM
29842009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2985
2986 * nsfns.m (Fns_set_alpha): Remove function.
2987 (syms_of_nsfns): Don't defsubr it.
2988
2989 * nsterm.m (ns_get_color): Remove incompatible color formats.
2990 (ns_color_to_lisp): Generate #rrggbb color format string.
2991
4be941e3
RS
29922009-07-16 Richard Stallman <rms@gnu.org>
2993
2994 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
2995 (Fset_buffer_auto_saved): Handle save_length = -2.
2996
4e6b227d
CY
29972009-07-16 Chong Yidong <cyd@stupidchicken.com>
2998
2999 * xterm.c (Qx_gtk_map_stock): New var.
3000
3001 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3002 of calling intern each time.
3003
a1856973
YM
30042009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3005
3006 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3007 does tiling.
3008
3009 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3010
497e54d8
KH
30112009-07-14 Kenichi Handa <handa@m17n.org>
3012
72d36834
KH
3013 * font.c (font_vconcat_entity_vectors): New function.
3014 (struct font_sort_data): New member font_driver_preference.
3015 (font_compare): Check font_driver_preference.
3016 (font_sort_entities): The format of the first argument changed.
3017 (font_delete_unmatched): Likewise.
3018 (font_list_entities): The return type changed.
3019 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3020 (font_find_for_lface): Adjuste for the above changes.
3021 Don't suppress the checking of C even if the repertory supports it.
3022 (Flist_fonts): Adjust for the above changes.
72d36834 3023
1ac9108a
SM
3024 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3025 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3026 Reject a font who has adstyle property that is different from a
3027 langname derived from registry property.
1ac9108a 3028 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3029
b6046155
EZ
30302009-07-13 Eli Zaretskii <eliz@gnu.org>
3031
3032 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3033 local copy of dirfilename.
3034
fb6b6049
KH
30352009-07-13 Kenichi Handa <handa@m17n.org>
3036
e2402a5e
KH
3037 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3038 against max_char.
3039
fb6b6049
KH
3040 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3041 calling XSYMBOL (sym).
3042
65156807
EZ
30432009-07-11 Eli Zaretskii <eliz@gnu.org>
3044
1ac9108a
SM
3045 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3046 New function.
3047 (directory_files_internal) [WINDOWSNT]:
3048 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3049 the filesystem of the directory is fast or slow.
3050
3051 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3052 file name.
3053 (is_slow_fs): New function.
3054 (stat): Use it to determine whether to issue more system calls to
3055 get accurate file attributes, when w32-get-true-file-attributes is
3056 `local'.
3057
e0ab5fcf
JD
30582009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3059
3060 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3061 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3062 parameter font-parameter as default to the font dialog.
3063
784ceded
KH
30642009-07-10 Kenichi Handa <handa@m17n.org>
3065
3066 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3067
fb8edc0b
EZ
30682009-07-09 Eli Zaretskii <eliz@gnu.org>
3069
1ac9108a 3070 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3071
fb8edc0b
EZ
3072 * w32.c (stat): Treat UNC file names as residing on remote
3073 drives. (Bug#3542)
3074
635c75b1
KH
30752009-07-09 Kenichi Handa <handa@m17n.org>
3076
3077 * fontset.c (fontset_find_font): Fix previous change.
3078
c1d5ce94
MA
30792009-07-08 Michael Albinus <michael.albinus@gmx.de>
3080
3081 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3082 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3083 error flag.
3084
edb61b39
KH
30852009-07-08 Kenichi Handa <handa@m17n.org>
3086
374bf7e4
KH
3087 * fontset.c (fontset_find_font): Fix the logic of handling
3088 charset_matched.
3089 (font_for_char): Delete unused var.
3090 (generate_ascii_font_name): Delete it.
3091
edb61b39
KH
3092 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3093
3094 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3095 (encode_coding_sjis): Fix the code range check.
3096
0f3f018c
CY
30972009-07-07 Chong Yidong <cyd@stupidchicken.com>
3098
3099 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3100 (Fexpand_file_name): Copy string data properly (Bug#3772).
3101
fcaf6f3a
JD
31022009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3103
3104 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3105 first MapNotify.
3106
6809ca75
KH
31072009-07-07 Kenichi Handa <handa@m17n.org>
3108
3109 * character.h (unibyte_has_multibyte_table): Delete extern.
3110 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3111
3112 * charset.c (Fset_charset_priority): Update charset_unibyte.
3113 (syms_of_charset): Initialize charset_unibyte.
3114
3115 * character.c (unibyte_has_multibyte_table): Delete it.
3116 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3117 charset_unibyte.
3118 (multibyte_char_to_unibyte_safe): Likewise.
3119 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3120
1ac9108a 3121 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3122 (x_produce_glyphs): Likewise.
3123
3124 * .gdbinit (xcharset): Fix the treating $arg0.
3125
ad9e2d54
EZ
31262009-07-04 Eli Zaretskii <eliz@gnu.org>
3127
3128 Emulation of `getloadavg' on MS-Windows.
3129 * w32.c: Include float.h
3130 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3131 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3132 (get_native_system_info, get_system_times): New functions.
3133 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3134 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3135 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3136 g_b_init_get_system_times, and num_of_processors.
3137
0a3472c7
JR
31382009-07-03 Jason Rumney <jasonr@gnu.org>
3139
3140 * w32term.c (w32_initialize): Use standard types.
3141
80904120
EZ
31422009-07-03 Eli Zaretskii <eliz@gnu.org>
3143
3144 * dired.c (Ffile_attributes): Decode user and group names by the
3145 locale's encoding. (Bug#3443)
3146
6978862d
DN
31472009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3148
f8d23104
DN
3149 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3150 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3151
3152 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3153
3154 * term.c (init_tty): Remove spurious #ifdef.
3155
6978862d
DN
3156 * m/mips.h: Mention this file is also used for netbsd.
3157 * m/pmax.h: Remove file.
3158
e044e4fc
JD
31592009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3160
3161 * xterm.h (struct x_display_info): Add invisible_cursor.
3162 (struct x_output): Add current_cursor.
3163
3164 * xterm.c (XTtoggle_invisible_pointer): New function.
3165 (x_define_frame_cursor): Don't define cursor if invisible or the
3166 same as before. Set current_cursor.
3167 (x_create_terminal): Set toggle_invisible_pointer_hook.
3168
3169 * xfns.c (make_invisible_cursor): New function.
3170 (x_set_mouse_color): Call make_invisible_cursor.
3171 Set current_cursor.
3172 (x_window): Set current_cursor.
3173
3174 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3175
3176 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3177 inserting a character.
3178 (read_avail_input): Call frame_make_pointer_visible.
3179
3180 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3181 (frame_make_pointer_invisible, frame_make_pointer_visible):
3182 New functions.
e044e4fc
JD
3183 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3184
3185 * frame.h: Declare frame_make_pointer_invisible and
3186 frame_make_pointer_visible.
3187 (struct frame): Add pointer_invisible.
3188
574c8efa
JD
31892009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3190
7b507248
JD
3191 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3192 frame isn't visible.
3193 (xg_frame_resized): If width/height is -1, get size of window
3194 from X server.
3195
3196 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3197 for MapNotify.
3198
835bdaa7 3199 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3200 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3201 (flush_and_sync): Reintroduce.
574c8efa 3202
3f1c6666 32032009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3204
31fd7c5c 3205 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3206
3207 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3208 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3209
3210 * frame.h: Declare Qsticky.
3211
cad9ef74
JD
3212 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3213
3214 * nsfns.m (ns_frame_parm_handlers): Ditto.
3215
3216 * frame.c: Declare Qsticky.
3217 (frame_parms): Add sticky.
3218
3219 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3220
3221 * xterm.h: Declare x_set_sticky.
3222
3223 * xterm.c (x_set_sticky): New function.
3224
69b16610
JD
3225 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3226 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3227 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3228
3229 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3230
3231 * frame.c: Qmaximized is new.
3232 (x_set_frame_parameters): Do not handle fullscreen specially.
3233 Only set width and height if explicitly set.
3234 (x_set_fullscreen): Handle Qmaximized.
3235 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3236 (syms_of_frame): Initialize Qmaximized.
3237
1ac9108a
SM
3238 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3239 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3240
3241 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3242 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3243 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3244 set gravity to NorthWestGravity when USE_GTK.
3245 (set_wm_state): New function.
31fd7c5c 3246 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3247 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3248 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3249 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3250 to x_real_positions and x_fullscreen_adjust.
3251
3252 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3253 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3254 flush_and_sync.
3255 (xg_height_changed): New function.
3256 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3257 and gtk_window_set_policy. Set frame gravity after parsing the
3258 geometry string.
3f1c6666
JD
3259 (xg_update_frame_menubar, free_frame_menubar)
3260 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3261 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3262 Remove calls to xg_frame_set_char_size.
3263
fd503d99
KH
32642009-07-01 Kenichi Handa <handa@m17n.org>
3265
3266 * keyboard.c (decode_keyboard_code): New function.
3267 (tty_read_avail_input): Decode the input bytes if necessary.
3268
1ac9108a
SM
3269 * coding.c (setup_coding_system):
3270 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3271 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3272 use Qno_conversion.
3273
24ed93fb
YM
32742009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3275
3276 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3277
99061dfc
CY
32782009-06-30 Chong Yidong <cyd@stupidchicken.com>
3279
1ac9108a 3280 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3281
ff90fbde
JR
32822009-06-30 Jason Rumney <jasonr@gnu.org>
3283
3284 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3285 is already loaded.
3286 Set user model ID if supported (bug#1849).
3287
5f445726
JM
32882009-06-29 Jim Meyering <meyering@redhat.com>
3289
3290 Remove useless if-before-xfree test.
3291 * nsfont.m (nsfont_close): Remove useless test.
3292 * term.c (delete_tty): Likewise.
3293 * w32.c (system_process_attributes): Likewise.
3294 * w32font.c (w32font_close): Likewise.
3295 * xfaces.c (x_free_gc): Likewise.
3296 * xselect.c (buffer): Likewise.
3297
b9607587
AS
32982009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3299
3300 * process.c (send_process): Keep decoded string in a local
3301 variable and protect it from GC. (Bug#3521)
3302
89ba96f4
EZ
33032009-06-28 Eli Zaretskii <eliz@gnu.org>
3304
3305 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3306 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3307
098a1589
CY
33082009-06-28 Chong Yidong <cyd@stupidchicken.com>
3309
485422be
CY
3310 * xdisp.c (start_display, handle_face_prop)
3311 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3312 (redisplay_window, try_window_id, produce_image_glyph):
3313 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3314
098a1589
CY
3315 * xterm.c (x_update_window_begin, x_new_focus_frame)
3316 (x_scroll_bar_handle_click, handle_one_xevent)
3317 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3318 (x_make_frame_visible, x_make_frame_invisible)
3319 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3320 code chunks that are now obsolete.
3321
78c38319
MA
33222009-06-28 Michael Albinus <michael.albinus@gmx.de>
3323
3324 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3325 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3326 for hours, when optimzation is enabled.
3327 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3328 (xd_read_message): Make them static.
3329
4189ed40
CY
33302009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3331
3332 * term.c (turn_on_face): Allow simultaneously bold and dim
3333 terminal faces (Bug#3530).
3334
cd9b5e16
CY
33352009-06-27 Chong Yidong <cyd@stupidchicken.com>
3336
4e23bedb
CY
3337 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3338
cd9b5e16
CY
3339 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3340 truncation glyphs (Bug#3686).
3341
07cc3c35
GM
33422009-06-27 Glenn Morris <rgm@gnu.org>
3343
3344 * m/pmax.h: Restore file, with only netbsd portions.
3345
31fd7c5c 33462009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3347
cd9b5e16 3348 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3349
42d4a64f
KH
33502009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3351
3352 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3353 the arg FORCE_SYMBOL.
3354
930fe55b 33552009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3356
3357 * fontset.c (fontset_find_font): When a usable rfont_def is found
3358 in a fallback font-group, make it the first element of the group.
3359
57ebc3fd
CY
33602009-06-24 Chong Yidong <cyd@stupidchicken.com>
3361
3362 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3363
f084f942
KH
33642009-06-24 Kenichi Handa <handa@m17n.org>
3365
3366 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3367 set for C.
3368 (fontset_font): Record the availability of a font for C both in
3369 the realized fontsets of the current one and the default one.
3370
2f686c87
DN
33712009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3372
3373 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3374 conditional, it is always defined on AIX.
3375
666e158e
MB
33762009-06-23 Miles Bader <miles@gnu.org>
3377
3378 * window.c (Vrecenter_redisplay): New variable.
3379 (syms_of_window): Initialize it.
3380 (Qtty): New extern declaration.
3381 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3382
c6da7cd2
JM
33832009-06-23 Jim Meyering <meyering@redhat.com>
3384
1ac9108a
SM
3385 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3386 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3387 pointer dereferences are guaranteed to be valid.
c6da7cd2 3388
678dca3d
KH
33892009-06-23 Kenichi Handa <handa@m17n.org>
3390
74d75424
KH
3391 * emacs.c (main): Call init_font ().
3392
3393 * font.h (Vfont_log): Extern it.
3394 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3395
3396 * font.c (font_sort_entities, font_list_entities)
3397 (font_matching_entity, font_open_entity)
3398 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3399 (Vfont_log): Delete static.
3400 (font_log_env_checked): Delete this variable.
3401 (font_add_log): Don't check font_log_env_checked.
3402 (font_deferred_log): Check Vfont_log.
3403 (init_font): New function.
3404
678dca3d
KH
3405 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3406
3407 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3408
3409 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3410
3411 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3412
3413 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3414 (face_for_char): Don't call font_deferred_log here.
3415 (font_for_char): Likewise.
3416
8a668709
CY
34172009-06-22 Chong Yidong <cyd@stupidchicken.com>
3418
9a01ee33
CY
3419 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3420 rather than its background_width for drawing the overline and
3421 underline (Bug#489).
3422
3423 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3424 rather than its background_width for drawing the overline and
3425 underline (Bug#489).
ec7c9926
CY
3426 (xg_default_icon_file): New variable.
3427 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3428 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3429
8a668709
CY
3430 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3431 (load_overlay_strings): Remove externs.
3432 (fast_find_position): Function deleted.
3433 (mouse_face_from_buffer_pos): New function, based on
3434 fast_find_position. Correctly handle before-strings,
3435 display-strings, and after-strings (Bug#1220).
3436 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3437
4d4c02d8
CY
34382009-06-21 Chong Yidong <cyd@stupidchicken.com>
3439
1ac9108a 3440 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3441 (move_it_in_display_line_to, move_it_in_display_line_to)
3442 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3443
70243478
CY
34442009-06-21 Chong Yidong <cyd@stupidchicken.com>
3445
3446 * Branch for 23.1.
3447
13087e59
JR
34482009-06-21 Jason Rumney <jasonr@gnu.org>
3449
3450 * w32term.c (keyboard_codepage): New static variable.
3451 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3452 (w32_read_socket) [WM_CHAR]: Use it to decode character
3453 input (bug#3237).
3454 (w32_initialize): Initialize it.
3455 (codepage_for_locale): New function.
3456
4735b74e
KR
34572009-06-20 Ken Raeburn <raeburn@raeburn.org>
3458
3459 * process.c (status_message): Pass Faset index argument as a lisp
3460 object, so as to work with USE_LISP_UNION_TYPE.
3461
0e727afa
YM
34622009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3463
3464 * coding.c (Ffind_coding_systems_region_internal):
3465 Cache checked characters.
3466
cf299835
KH
34672009-06-18 Kenichi Handa <handa@m17n.org>
3468
1ac9108a 3469 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3470
90f20d94
AS
34712009-06-18 Andreas Schwab <aschwab@redhat.com>
3472
3473 * xdisp.c (redisplay_internal): Check that the frame is still
3474 live after redisplay of its windows.
3475 (redisplay_windows): Check that the window is still live.
3476
7f1faf1c
KH
34772009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3478
3479 * coding.c (detect_coding_utf_16): Fix previous change.
3480
cc13543e
KH
34812009-06-16 Kenichi Handa <handa@m17n.org>
3482
3483 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3484 UTF-16 by checking the dispersion of Eth and Oth bytes.
3485
977b85f4
AS
34862009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3487
3488 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3489
66bd43d1
KH
34902009-06-15 Kenichi Handa <handa@m17n.org>
3491
3492 * process.c (status_message): Fix previous change. Be sure to
3493 decode a localized string.
3494
cb5ca9c5
YM
34952009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3496
3497 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3498 add comment explaining why.
3499
ec7709ba 35002009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3501
ec7709ba 3502 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3503
4b7f335c
AR
35042009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3505
3506 * nsfont.m (ns_attribute_value): Remove.
3507 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3508 (ns_has_attribute): Shrink the normal range.
3509 (ns_findfonts): Don't worry about requested spec in determining
3510 need for synthItal.
e41820ee 3511 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3512
73b26103
SZ
35132009-06-14 Seiji Zenitani <zenitani@mac.com>
3514
3515 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3516
5753e4da
KH
35172009-06-11 Kenichi Handa <handa@m17n.org>
3518
3519 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3520 overhang for the static composition case.
3521
3561b671
KH
35222009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3523
5753e4da
KH
3524 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3525 overhang for the automatic composition case.
3526
3561b671
KH
3527 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3528 composition case.
3529
852bbd41
CY
35302009-06-10 Chong Yidong <cyd@stupidchicken.com>
3531
3532 * xdisp.c (get_next_display_element): When handling wrap-prefix
3533 and line-prefix, treat \n as a control character (bug#3502).
3534
9903d1e6
KH
35352009-06-10 Kenichi Handa <handa@m17n.org>
3536
3537 * font.c (font_parse_family_registry): Fix for one-char foundry.
3538 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3539
0bcbaaaa
CY
35402009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3541
3542 * process.c (status_message): Fix handling of multibyte signal
3543 string (Bug#3499).
3544
40aa3f13
JM
35452009-06-09 Jim Meyering <meyering@redhat.com>
3546
1f80c7e2
CY
3547 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3548 color name is missing.
40aa3f13 3549
72d51285
KH
35502009-06-09 Kenichi Handa <handa@m17n.org>
3551
3552 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3553 FROM-CODE and TO-CODE are codepoints of CHARSET.
3554
c1d04d84
AR
35552009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3556
3557 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3558
35592009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3560
3561 Changes to support :script/:lang/:otf in NS font driver.
3562 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3563 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3564 indicate not part of font driver interface, and change callers.
3565 (ns_get_family): Remove pointless null check.
3566 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3567 ns_spec_to_descriptor, ns_descriptor_to_entity.
3568 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3569 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3570 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3571 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3572 (ns_get_req_script, ns_accumulate_script_ranges)
3573 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3574 New functions.
3575 (nsfont_list, nsfont_match): Use ns_findfonts.
3576 (nsfont_open): Use font descriptor instead of traits.
3577 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3578 (dump_glyphstring): Rename to ns_dump_glyphstring.
3579
c7eb9816
AR
3580 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3581
c1d04d84
AR
3582 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3583
3584 * fontset.c (fontset_from_font): Remove NS-specific code.
3585
ec7709ba 35862009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3587
3588 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3589 nonactive windows.
3590
31fd7c5c 35912009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3592
1ac9108a 3593 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3594
68852c13 35952009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3596
3597 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3598
6756cd1d
CY
35992009-06-07 Chong Yidong <cyd@stupidchicken.com>
3600
3601 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3602 account for the overflowing of newlines into the last glyph on the
3603 display line (Bug#3482).
3604
28bf482a
DR
36052009-06-05 David Reitter <david.reitter@gmail.com>
3606
ec7709ba
JB
3607 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3608 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3609 Fns_selection_exists_p, Fns_selection_owner_p.
3610
fdb55376
JR
36112009-06-03 Jason Rumney <jasonr@gnu.org>
3612
3613 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3614 available. (Bug#3379)
3615
05129fbe
KH
36162009-05-29 Kenichi Handa <handa@m17n.org>
3617
1ac9108a
SM
3618 * coding.c (get_translation_table):
3619 Check Venable_character_translation.
05129fbe 3620
ec7709ba 36212009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3622
ec7709ba
JB
3623 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3624 (x_make_frame_visible): Move frame to front rather than calling
15891144 3625 ns_raise_frame().
ec7709ba 3626 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3627 isn't key window.
ec7709ba 3628 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3629 drawRect may be called by NSView even if the frame is hidden.
3630
ec7709ba
JB
3631 * nsfns.m (Fx_create_frame): Follow other ports in
3632 determining visibility; default to t. Ensure async_visible is set.
15891144 3633
21f73755
EZ
36342009-05-23 Eli Zaretskii <eliz@gnu.org>
3635
3636 * dired.c (Ffile_attributes): Doc fix.
3637
34001e41
CY
36382009-05-22 Chong Yidong <cyd@stupidchicken.com>
3639
3640 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3641
46306a17
SM
36422009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3643
3644 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3645 and xfont_scratch_props.
3646 (syms_of_xfont): Do it here instead.
3647 (xfont_find_ccl_program): Delete, unused.
3648 (xfont_open): Delete unused var `i'.
3649
ef6e0694
KH
36502009-05-21 Kenichi Handa <handa@m17n.org>
3651
3652 * fontset.c (Qlatin): Don't make it static.
3653
46306a17
SM
3654 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3655 New functions.
ef6e0694
KH
3656 (xfont_scripts_cache, xfont_scratch_props): New variables.
3657 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3658 (xfont_list_pattern): Argument changed. Callers changed.
3659 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3660 (xfont_list): Don't reject a font spec with :script property.
3661 (xfont_has_char): Fix setting of encoding.
3662 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3663 xfont_scratch_props.
3664
36652009-05-19 Kenichi Handa <handa@m17n.org>
3666
46306a17 3667 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3668 Callers changed.
3669
36702009-05-18 Kenichi Handa <handa@m17n.org>
3671
3672 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3673
ac71ced7
SM
36742009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3675
3676 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3677 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3678
1c6d1051
YM
36792009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3680
3681 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3682 (x_delete_terminal): Dissociate resource database from display and
3683 then call XrmDestroyDatabase before closing display.
3684
9b9b779c
AR
36852009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3686
3687 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3688 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3689 whether selected frame is viable before raising it (based on patch
3690 by David Reitter), and improve commentary.
3691 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3692
cccd42d5
KH
36932009-05-15 Kenichi Handa <handa@m17n.org>
3694
3695 * font.c (Ffont_spec): Check arguments.
3696
337fbd17
CY
36972009-05-14 Chong Yidong <cyd@stupidchicken.com>
3698
3699 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3700 weight when testing attributes (Bug#3282).
3701
47a6002f
JD
37022009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3703
3704 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3705 what we expect to get in the next ConfigureNotify event.
3706
9cb363db
YM
3707 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3708 before Xft one (Bug#1696).
3709
b9126609
CY
37102009-05-07 David Reitter <david.reitter@gmail.com>
3711
3712 * nsfns.m (Fx_display_planes): Compute bitplanes using
3713 NSBitsPerPixelFromDepth (Bug#3207).
3714
27a69fd9
CY
37152009-05-10 Chong Yidong <cyd@stupidchicken.com>
3716
3717 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3718
00f37552
TTN
37192009-05-10 Ulrich Mueller <ulm@gentoo.org>
3720
3721 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3722
2d82a920
DR
37232009-05-07 David Reitter <david.reitter@gmail.com>
3724
ec7709ba
JB
3725 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3726 Respect mouse face background.
2d82a920 3727
46b0d52d
DR
37282009-05-07 David Reitter <david.reitter@gmail.com>
3729
ec7709ba
JB
3730 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3731 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
3732 in ns_update_begin and ns_update_end.
3733
ce1b23bb
SM
37342009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3735
5996e1b7
SM
3736 * nsfns.m (ns_get_screen): Rewrite.
3737 Don't presume selected-frame is of type `ns'.
3738
ba98e3a0
SM
3739 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3740 all drivers.
3741
ce1b23bb
SM
3742 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3743
bcda200f
YM
37442009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3745
3746 * keyboard.h (add_user_signal): Fix typo in extern.
3747
3748 * lisp.h (add_user_signal): Remove extern.
3749
3750 * unexelf.c (unexec): Consider a section to precede the .bss section
3751 if its addresses overlap that of .bss.
3752 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3753 instead of dumping process.
3754
864660a2
SM
37552009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3756
3757 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3758
50da4e56
SM
37592009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3760
3761 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3762
51520a1a
DN
37632009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3764
3765 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3766 any statements.
3767
409ea3a1
AS
37682009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3769
59c4c60f
AS
3770 * process.c (read_process_output): Make sure the current buffer is
3771 always restored.
3772
409ea3a1
AS
3773 * coding.c (record_conversion_result): Don't modify
3774 Vlast_code_conversion_error for successful result.
3775 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3776
56f00ed2
KH
37772009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3778
3779 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 3780 (load_charset_map): Remove unnecessary code.
56f00ed2 3781
4491c9d2
DR
37822009-04-30 David Reitter <david.reitter@gmail.com>
3783
35f5b128 3784 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
3785 through f24.
3786
6970f632
CY
37872009-04-30 Chong Yidong <cyd@stupidchicken.com>
3788
3789 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3790
3791 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3792 face_at_buffer_position.
3793 (face_before_or_after_it_pos, get_next_display_element)
3794 (note_mouse_highlight): Update face_at_buffer_position call.
3795
3796 * term.c (term_mouse_highlight):
3797 * msdos.c (IT_note_mouse_highlight):
3798 * fontset.c (Finternal_char_font):
35f5b128 3799 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
3800
3801 * dispextern.h (face_at_buffer_position): Update prototype.
3802
0c616f63
KH
38032009-04-30 Kenichi Handa <handa@m17n.org>
3804
35f5b128 3805 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 3806
ad3aaf33
AS
38072009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3808
3809 * callproc.c (Fcall_process): Fix GC protection. Make sure
3810 current buffer is always restored.
3811
c3c963a0
YM
38122009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3813
3814 * atimer.c (init_atimer): Also clear stopped_atimers.
3815
3816 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3817
7e3386cb
YM
3818 * process.c (create_process): Clean up merger residues of
3819 2008-07-17 change.
3820
91f68422
CY
38212009-04-29 Ulrich Mueller <ulm@gentoo.org>
3822
3823 * lread.c (Vread_circle): New variable.
3824 (read1): Disable recursive read if Vread_circle is nil.
3825
24b34550
KH
38262009-04-29 Kenichi Handa <handa@m17n.org>
3827
3828 * fontset.h (set_default_ascii_font): Delete extern.
3829
3830 * fontset.c (set_default_ascii_font): Delete this unused function.
3831
3832 * frame.c (x_set_font): When ARG is a font-object, check if the
3833 font-object matches with the ASCII font-spec of the frame's
9c358bda 3834 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 3835
77bf07e1
AS
38362009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3837
3838 * fns.c (Flocale_info): Protect vector from GC during decoding.
3839
3840 * process.c (Fstart_process): Protect argv strings from GC during
3841 encoding.
3842
2c55aacf
AS
38432009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3844
3845 * sysdep.c: Include <ctype.h>.
3846
b892d3c9
DR
38472009-04-27 David Reitter <david.reitter@gmail.com>
3848
35f5b128 3849 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
3850 Remove commented-out code.
3851
9d0644c4
JB
38522009-04-26 Johan Bockgård <bojohan@gnu.org>
3853
3854 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3855
b7053016
JR
38562009-04-25 Jason Rumney <jasonr@gnu.org>
3857
3858 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3859
4e8231f3
YM
38602009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3861
3862 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3863 Swap bytes in short integer if fringe bitmap width > 8.
3864
493dcf2c
KH
38652009-04-23 Kenichi Handa <handa@m17n.org>
3866
3867 * xfaces.c (Fx_list_fonts): If a font size is specified in
3868 PATTERN, set it in returned scalable fonts.
3869
401e9e57
CY
38702009-04-22 Chong Yidong <cyd@stupidchicken.com>
3871
708e05dc
CY
3872 * keyboard.c (Fset_input_meta_mode): Doc fix.
3873
3874 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3875
1ac9108a 3876 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
3877
3878 * coding.c (Fterminal_coding_system): Doc fix.
3879
3880 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3881 (Fx_display_pixel_height, Fx_display_planes)
3882 (Fx_display_color_cells, Fx_server_max_request_size)
3883 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3884 (Fx_display_mm_height, Fx_display_mm_width)
3885 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
3886 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3887 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
3888 (check_x_display_info): Handle terminal objects instead of
3889 terminal ids.
3890
401e9e57
CY
3891 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3892 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
3893 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3894 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 3895
df80c7f0
KH
38962009-04-21 Kenichi Handa <handa@m17n.org>
3897
5a8f12af 3898 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 3899 (font_score): Check AVGWIDTH too.
908567ef 3900
df80c7f0
KH
3901 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3902 worst case.
1ac9108a
SM
3903 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3904 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 3905
705af33f
JR
39062009-04-19 Jason Rumney <jasonr@gnu.org>
3907
3908 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 3909 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
3910
3911 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3912 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3913 get_phys_cursor_geometry.
3914
b71ac3dd 3915 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
3916 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3917 using get_phys_cursor_geometry.
3918
3919 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3920 correctly calculated.
3921
dc2933eb
JD
39222009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3923
1ac9108a
SM
3924 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3925 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
3926 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3927 is deprecated.
3928
973e7849
AS
39292009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3930
3931 * font.c (font_put_frame_data): Use xfree instead of free.
3932
314d66f4
JB
39332009-04-17 Juanma Barranquero <lekktu@gmail.com>
3934
3935 * w32font.c (Qja, Qko): Remove declarations.
3936 (syms_of_w32font): Don't DEFSYM them.
3937
cf702558
CY
39382009-04-17 Chong Yidong <cyd@stupidchicken.com>
3939
3940 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3941
3942 * font.h (Qja, Qko): Extern them.
3943
3944 * ftfont.c (Qja, Qko): Remove declarations.
3945
3946 * xfont.c (Qja, Qko): Remove declarations.
3947
b50504f5
KH
39482009-04-17 Kenichi Handa <handa@m17n.org>
3949
bde25748
KH
3950 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3951 string from a vector to handle Latin-1 characters correctly.
3952
b50504f5
KH
3953 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3954 entity even if the cache hits.
3955
f4646fff
AS
39562009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3957
3958 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 3959 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 3960
e7deaab0
AS
3961 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3962 * lisp.h: Adjust prototypes.
3963
0a0e7d49
CY
39642009-04-16 Chong Yidong <cyd@stupidchicken.com>
3965
3966 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3967 change (Bug#3003).
3968
3c908a57
KH
39692009-04-16 Kenichi Handa <handa@m17n.org>
3970
1ac9108a 3971 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
3972
3973 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3974 adstyle.
3975
3976 * ftfont.c (Qja, Qko): Don't make them static.
3977 (enum ftfont_cache_for): New enum.
3978 (fc_charset_table): Undo the previous change.
3979 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
3980 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3981 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
3982 non-scarable font, try to get AVERAGE_WIDTH.
3983 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3984 Change ft_face_cache from a list of a hash-table. Don't check
3985 `ja' and `ko' adstyle here.
3986 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3987 FTFONT_CACHE_FOR_CHARET.
3988 (ftfont_get_charset): Undo the previous change.
1ac9108a 3989 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
3990 (ftfont_close): Likewise.
3991 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
3992
3993 * font.c (font_sort_entites): Change the meaning of the arg
3994 BEST-ONLY. Don't optimize for VEC of lenght 1.
3995 (font_select_entity): Just return the value of font_sort_entites.
3996
3997 * xfaces.c (merge_face_vectors): Reflect font properties in
3998 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
3999 font_clear_prop if a face attribute doesn't change.
4000
3c908a57
KH
4001 * charset.h (charset_ksc5601): Extern it.
4002
4003 * charset.c (charset_ksc5601): New variable.
4004 (Fdefine_charset_internal): Set charset_ksc5601.
4005 (init_charset_once): Initialize charset_ksc5601 to -1.
4006
d65859c3
DN
40072009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4008
4009 * fileio.c (history_delete_duplicates): Remove unused declaration.
4010
4011 * callint.c (history_delete_duplicates): New declaration.
4012 (Fcall_interactively): Remove command history duplicates when
4013 history_delete_duplicates is true.
4014
3ba010e5
EZ
40152009-04-14 Eli Zaretskii <eliz@gnu.org>
4016
4017 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4018
06f19b91
KH
40192009-04-14 Kenichi Handa <handa@m17n.org>
4020
4021 * font.c (Ffont_info): Fix docstring. Fix the second element of
4022 the returned value (bug#2949).
4023
2cce8bfc
CY
40242009-04-14 Chong Yidong <cyd@stupidchicken.com>
4025
4026 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4027
d156542d
KH
40282009-04-14 Kenichi Handa <handa@m17n.org>
4029
4030 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4031 encoding charset is ascii_compatible.
4032
4033 * charset.c (Fdefine_charset_internal): Make charset
4034 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4035 code_offset is 0, and covers all ASCII characters.
4036
86fa089e
SM
40372009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4038
4039 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4040 (ns_string_to_pasteboard_internal):
4041 * nsmenu.m (process_dialog):
4042 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4043 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4044 * lisp.h (Fx_load_color_file): Declare.
4045
a8a3728b
KH
40462009-04-13 Kenichi Handa <handa@m17n.org>
4047
1ac9108a 4048 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4049 (font_select_entity): Suppress the code to optimize for the same
4050 kind of fonts.
4051 (font_load_for_lface): Get a font that supports at least ASCII
4052 characters.
4053
4054 * ftfont.c (Qja, Qko): New variables.
4055 (fc_charset_table): Delete uniquifier data for iso8859-1.
4056 (ftfont_get_latin1_charset): New function.
4057 (get_adstyle_property): New function.
4058 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4059 bitmap fonts.
4060 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4061 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4062 `ko' or `ja'.
4063 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4064 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4065 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4066 property.
4067 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4068 (syms_of_ftfont): DEFSYM Qja and Qko.
4069
483670b5
KH
40702009-04-09 Kenichi Handa <handa@m17n.org>
4071
12b55765
KH
4072 * charset.c (map_charset_chars): For a charset of `superset'
4073 method, fix calculation of code range.
4074
483670b5
KH
4075 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4076 from the list of extra properties.
4077 (font_clear_prop): Be sure to delete `:name' font property.
4078
57d3b93b
KH
40792009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4080
b4b2c2ca
YM
4081 * dispnew.c (redraw_overlapping_rows): Fix detection of
4082 overlapping for topmost and bottommost rows.
4083
1ac9108a 4084 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4085
472c3609
JR
40862009-04-06 Jason Rumney <jasonr@gnu.org>
4087
4088 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4089
ab193662
KH
40902009-04-06 Kenichi Handa <handa@m17n.org>
4091
4092 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4093
4094 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4095
0c26f026
KH
40962009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4097
4098 * ftfont.c (ftfont_open): Fix checking of the return value of
4099 FT_Load_Char. Fix setting font->underline_thickness.
4100
e173bbce
CY
41012009-04-04 Chong Yidong <cyd@stupidchicken.com>
4102
4103 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4104 (Fterminal_parameters, Fterminal_parameter)
4105 (Fset_terminal_parameter): In doc string, refer to terminal
4106 objects rather than terminal ids.
4107
693a2698
EZ
41082009-04-04 Eli Zaretskii <eliz@gnu.org>
4109
4110 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4111 ret_lim_data. (Bug#2867)
4112
d5221487
CY
41132009-04-03 Chong Yidong <cyd@stupidchicken.com>
4114
4115 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4116 so they don't get wider than the window, matching 2006-01-23
4117 change to the partner function in xdisp.c (Bug#2800).
4118
223509a3
KH
41192009-04-03 Kenichi Handa <handa@m17n.org>
4120
4121 * print.c (print_object): Make each lowest sub_char_table start a
4122 new line (Bug#2866).
4123
74fcd0b1
KH
41242009-04-02 Kenichi Handa <handa@m17n.org>
4125
4126 * fontset.c (fontset_font): Record no-font when a fontset
4127 explicitly tells not to try another font-specs.
4128
c542407d
SM
41292009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4130
4131 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4132
e3869731
KH
41332009-03-30 Kenichi Handa <handa@m17n.org>
4134
d8d2f142
KH
4135 * fontset.c (fontset_from_font): Specify only registry in a
4136 font-spec for all characters supported by that registry.
4137
e3869731
KH
4138 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4139 even if HAVE_M17N_FLT is not defined.
4140
5da5f805
CY
41412009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4142
4143 * ftfont.c: Conditionalize prototyping and use of
4144 ftfont_variation_glyphs.
4145
ab226c50
SM
41462009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4147
9628fed7
SM
4148 * frame.c (delete_frame): Work around compiler bug.
4149
4150 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4151 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4152 Some more EMACS_INT.
4153 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4154
4155 * xdisp.c (dump_glyph): Fix typo.
4156
ae19ba7c
SM
4157 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4158 (adjust_markers_gap_motion, adjust_markers_for_delete)
4159 (adjust_markers_for_insert, adjust_point)
4160 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4161 (make_gap, copy_text, count_size_as_multibyte, insert)
4162 (insert_and_inherit, insert_before_markers)
4163 (insert_before_markers_and_inherit, insert_1)
4164 (count_combining_before, count_combining_after, insert_1_both)
4165 (insert_from_string, insert_from_string_before_markers)
4166 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4167 (insert_from_buffer_1, adjust_after_replace)
4168 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4169 (replace_range_2, del_range, del_range_1, del_range_byte)
4170 (del_range_both, del_range_2, modify_region)
4171 (prepare_to_modify_buffer, signal_before_change)
4172 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4173 for buffer positions and sizes.
4174 * lisp.h: Adjust prototypes accordingly.
4175
4176 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4177 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4178 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4179
ab226c50
SM
4180 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4181
46dfb8fb
JD
41822009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4183
4184 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4185 lines and columns so we keep the same pixel height and width.
4186
4187 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4188 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4189 (x_handle_net_wm_state): New function to update frame parameter
4190 fullscreen.
4191 (x_term_init): Initialize atoms for _NET_WM_STATE.
4192
4193 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4194
d347e494
SM
41952009-03-27 Kevin Ryde <user42@zip.com.au>
4196
4197 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4198 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4199 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4200 (Fgpm_mouse_stop): Pass that new parameter.
4201 * termhooks.h (close_gpm): Adjust prototype.
4202
84db11d6
SM
42032009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4204
c95a5008
SM
4205 * lisp.h (Fx_focus_frame): Declare.
4206
84db11d6
SM
4207 * callint.c (Fcall_interactively): For '^' just delegate the work to
4208 handle-shift-selection.
4209 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4210
0a1958d6
CY
42112009-03-24 Chong Yidong <cyd@stupidchicken.com>
4212
0bfdff23
CY
4213 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4214
0a1958d6
CY
4215 * data.c (Qinteractive_form): New variable.
4216 (Finteractive_form): Use it.
4217
4218 * eval.c (Fcommandp): Use Qinteractive_form.
4219
58aec0d6
JR
42202009-03-24 Jason Rumney <jasonr@gnu.org>
4221
4222 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4223 Calculate total size precisely. Decode environment variables
4224 before substituting. (Bug#38)
4225
553dd618
KH
42262009-03-24 Kenichi Handa <handa@m17n.org>
4227
4228 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4229 encoding (Bug#2722).
553dd618 4230
c39ea606
JD
42312009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4232
4233 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4234 that gdpy is set.
4235
bc9b2b5e
AM
42362009-03-22 Alan Mackenzie <acm@muc.de>
4237
4238 * callint.c (Finteractive): Clarify the doc string - even
4239 promptless elements need \n separators.
4240
9f995a76
JR
42412009-03-22 Jason Rumney <jasonr@gnu.org>
4242
4243 * w32term.c (syms_of_w32term): Doc fix for
4244 x-use-underline-position-properties.
4245
22749e9a
EZ
42462009-03-21 Eli Zaretskii <eliz@gnu.org>
4247
4248 * w32.c (getpwuid): Change argument type to unsigned.
4249 (struct w32_id): Change type of `rid' member to unsigned.
4250 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4251 argument ID to unsigned. All callers changed.
4252 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4253
e00553bf
EZ
42542009-03-20 Eli Zaretskii <eliz@gnu.org>
4255
4256 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4257 negative, produce a float value.
4258
4259 * dired.c (make_uid, make_gid): New functions.
4260 (Ffile_attributes): Use them to avoid negative UID and GID.
4261
f761d6b6
JB
42622009-03-20 Juanma Barranquero <lekktu@gmail.com>
4263
4264 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4265 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4266 Fix typos in docstrings.
4267
d507f8d7
KH
42682009-03-19 Kenichi Handa <handa@m17n.org>
4269
4270 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4271 changed, use font_load_for_lface to get a new font object.
4272 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4273
4274 * frame.c (x_set_font): Handle the case that ARG is a cons.
4275
c68845e0
GM
42762009-03-19 Glenn Morris <rgm@gnu.org>
4277
4278 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4279
bfa49dd1
CY
42802009-03-19 Chong Yidong <cyd@stupidchicken.com>
4281
4282 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4283
8458d4c1
KH
42842009-03-19 Kenichi Handa <handa@m17n.org>
4285
4286 * charset.c (load_charset_map_from_file): When a mapfile can't be
4287 loaded, signal an error.
4288
78e7d1fe
EZ
42892009-03-18 Eli Zaretskii <eliz@gnu.org>
4290
4291 * dired.c (Ffile_attributes): Make sure UID and GID are always
4292 positive, even if the value is too large for a positive EMACS_INT.
4293 Doc fix.
4294
4295 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4296
5da9fdfa
YM
42972009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4298
4299 * xmenu.c (xdialog_show): Move Fredisplay call ...
4300 (Fx_popup_dialog): ... here.
4301
7519c40d
SM
43022009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4303
4304 * dired.c (file_name_completion): Disable the first optimization just
4305 installed, since it is not implemented correctly.
4306
2cd298e2
SM
43072009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4308
4309 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4310 only if the entry can affect bestmatch.
2cd298e2
SM
4311 Stop the search early, as Ftry_completion already does.
4312
48d37adf
CY
43132009-03-17 Chong Yidong <cyd@stupidchicken.com>
4314
e10c9c93 4315 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4316
9286b16a
CY
43172009-03-15 Chong Yidong <cyd@stupidchicken.com>
4318
4319 * keyboard.c (parse_menu_item): Don't display remappings as menu
4320 equivalent bindings (Bug#788).
4321
f7b146dc
JR
43222009-03-15 Jason Rumney <jasonr@gnu.org>
4323
4324 * w32term.h (WM_EMACS_PAINT): New message.
4325 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4326 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4327 before passing to lisp thread. (Bug#950)
4328
f761d6b6 43292009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4330
d93f9575
CY
4331 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4332 variable as it was never reset.
4333 (ns_term_init): Remove initialization of Lisp-settable defaults
4334 and ns_expand_space.
4335 (-setPanelFromDefaultValues): Remove ns_expand_space.
4336 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4337 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4338 i.e. no additional spacing, similar to Carbon port.
4339
d93f9575
CY
4340 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4341 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4342
305018ec
JD
43432009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4344
4345 * sound.c (alsa_configure): Remove call to deprecated
4346 snd_pcm_sw_params_set_xfer_align.
4347
f761d6b6 43482009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4349
4350 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4351 after clicking in a detached tool bar.
4352 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4353
46e722a9
SM
43542009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4355
348db3dd
SM
4356 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4357 int/Lisp_Object mixup).
46e722a9 4358
a3d16f39
KH
43592009-03-13 Kenichi Handa <handa@m17n.org>
4360
4361 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4362 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4363 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4364 (set_fontset_font): Change ARG to a vector. Handle range_list in
4365 ARG correctly.
4366 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4367 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4368 the above change.
4369 (fontset_from_font): Fix previous change.
fe24f56a 4370 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4371 entry. If FONTSET is the default fontset, don't set the extra
4372 slot of the returning char-table.
4373
b066e6b6
JB
43742009-03-12 Juanma Barranquero <lekktu@gmail.com>
4375
4376 * nsfns.m (Fx_close_connection): Doc fix.
4377 (Fns_do_applescript): Reflow docstring.
4378 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4379 (Fx_display_pixel_width, Fx_display_pixel_height)
4380 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4381 Fix typos in docstrings.
4382 (Fns_set_alpha): Fix typos in error messages.
4383
d472514e 43842009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4385
d472514e 4386 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4387 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4388 were used for such events.
4389
d472514e
JB
4390 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4391 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4392
d472514e 4393 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4394 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4395
fb930676
KH
43962009-03-11 Kenichi Handa <handa@m17n.org>
4397
ff85581a
KH
4398 * font.h (font_open_by_spec): Extern it.
4399
c50b7e98
KH
4400 * font.c (font_open_by_spec): New function.
4401 (font_open_by_name): Use font_open_by_spec.
4402
fb930676
KH
4403 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4404 fontset of the frame.
4405
4406 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4407 modify the default font of frames that use this fontset.
4408 (num_auto_fontsets): New variable.
4409 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4410 name. Be sure to set FONTSET_ASCII to the correct font name.
4411 (update_auto_fontset_alist): New function.
4412
df4e8455
JB
44132009-03-11 Juanma Barranquero <lekktu@gmail.com>
4414
4415 * makefile.w32-in: Update dependencies.
4416
0a375797
AR
44172009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4418
4419 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4420
61313fa3
SM
44212009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4422
4423 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4424
b55103fb
CY
44252009-03-10 Chong Yidong <cyd@stupidchicken.com>
4426
4427 * lread.c (Feval_buffer): Doc fix.
4428
dde2559c
KH
44292009-03-09 Kenichi Handa <handa@m17n.org>
4430
4431 * charset.c (Qfile_name_handler_alist): Extern it.
4432 (load_charset_map_from_file): Temporarily bind
4433 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4434
df4e8455 44352009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4436
47f588bb
GM
4437 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4438 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4439
4ddf94bd
AR
44402009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4441
4c9bdfc2
AR
4442 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4443 (x_set_window_size): Change back to calculated method of setting
4444 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4445 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4446 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4447
fe41ae9e
AR
4448 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4449
4c9bdfc2
AR
4450 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4451 accelerator in parens under GNUstep.
4452
825d0875
KH
44532009-03-06 Kenichi Handa <handa@m17n.org>
4454
4455 These changes are to detect incorrect composition sequence without
f3b3be74 4456 looking ahead the source. (Bug#2370)
825d0875
KH
4457
4458 * coding.h: Include "composite.h".
4459 (enum compisition_state): New enum.
4460 (struct compisition_status): New struct.
4461 (struct iso_2022_spec): New member cmp_status.
4462 (struct emacs_mule_spec): New struct.
4463 (struct coding_system): New members ctext_extended_segment_len and
4464 embedded_utf_8. Change the union member
4465 spec.emacs_mule_full_support to spec.emacs_mule.
4466
4467 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4468 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4469 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4470 (ADD_COMPOSITION_DATA): New arg nbytes.
4471 (emacs_mule_char): New arg cmp_status.
4472 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4473 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4474 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4475 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4476 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4477 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4478 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4479 (EMACS_MULE_COMPOSITION_END): New macro.
4480 (emacs_mule_finish_composition): New function.
4481 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4482 (decode_coding_emacs_mule): Avoid long looking ahead while
4483 handling composition.
4484 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4485 (ENCODE_COMPOSITION_RULE): New macro.
4486 (finish_composition): New function.
4487 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4488 (DECODE_COMPOSITION_START): New implementation.
4489 (DECODE_COMPOSITION_END): Likewise.
4490 (STORE_COMPOSITION_RULE): New macro.
4491 (decode_coding_iso_2022): Avoid long looking ahead while handling
4492 composition, CTEXT extended segment, and embedded UTF-8.
4493 (setup_coding_system): For a coding of type iso-2022, reset
4494 CODING_ISO_EXTSEGMENT_LEN (coding) and
4495 CODING_ISO_EMBEDDED_UTF_8 (coding).
4496 (get_translation): Delete arguments last_block, from_nchars,
4497 to_nchars. Callers changed.
4498 (produce_chars): Don't modify charbuf. Adjusted for the change of
4499 get_translation.
98a326f7 4500 (produce_composition): Adjust for the new annotation sequence.
825d0875 4501 (handle_composition_annotation): Likewise.
98a326f7 4502 (consume_chars): Adjust for the change of get_translation.
825d0875 4503
ccbc4452
AR
45042009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4505
4ddf94bd 4506 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4507
988a7ddb
KH
45082009-03-05 Kenichi Handa <handa@m17n.org>
4509
4510 * font.c (font_select_entity): New function.
4511 (font_find_for_lface): Use font_select_entity to select a font.
4512
4513 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4514 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4515 font with C restriction.
4516
98a326f7 45172009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4518
be1bce46 4519 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4520
10ea2b82
JR
45212009-03-04 Jason Rumney <jasonr@gnu.org>
4522
2c93b248 4523 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4524 characters that have already been read. (Bug#2569)
2c93b248 4525
10ea2b82
JR
4526 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4527 Log an error message if check_image_size failed.
4528 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4529 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4530
71a0c011
EZ
45312009-03-02 Eli Zaretskii <eliz@gnu.org>
4532
4533 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4534 when decoding process output.
4535
2f63bba8
RS
45362009-03-01 Richard M Stallman <rms@gnu.org>
4537
4538 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4539
4540 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4541
0a9564cb
EZ
45422009-02-28 Eli Zaretskii <eliz@gnu.org>
4543
4544 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4545 (decode_coding_emacs_mule, decode_coding_iso_2022)
4546 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4547 (decode_coding_raw_text, decode_coding_charset)
4548 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4549 Honor inhibit-eol-conversion. (Bug #2186)
4550
449148b3
JR
45512009-02-28 Jason Rumney <jasonr@gnu.org>
4552
4553 * coding.c (detect_coding_charset): If not checking latin extra,
4554 fail on characters between 0x80 and 0xA0. (Bug#2354)
4555
a4aee864
EZ
45562009-02-28 Eli Zaretskii <eliz@gnu.org>
4557
4558 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4559 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4560
d88bee5a
GM
45612009-02-27 Glenn Morris <rgm@gnu.org>
4562
4563 * callint.c (Finteractive): Doc fix.
4564
a808f22d
KH
45652009-02-27 Kenichi Handa <handa@m17n.org>
4566
4567 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4568
caf8d60c
CY
45692009-02-27 Chong Yidong <cyd@stupidchicken.com>
4570
4571 * font.c (font_style_to_value): Set value for unknown symbols to
4572 100 instead of 255.
b61137ea
CY
4573 (weight_table, slant_table, width_table): Treat "unspecified" as
4574 the default value.
caf8d60c 4575
1a0de25c
JB
45762009-02-26 Juanma Barranquero <lekktu@gmail.com>
4577
4578 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4579
8fc45744
JB
45802009-02-25 Juanma Barranquero <lekktu@gmail.com>
4581
107bd7d1
JB
4582 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4583 error as soon as a recursive load is detected.
8fc45744 4584
f097e223
AR
45852009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4586
4587 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4588 before caching.
4589
8810a12f
KH
45902009-02-24 Kenichi Handa <handa@m17n.org>
4591
4592 * fontset.c (fontset_find_font): Fix the condition for checking
4593 unavailable font.
4594
2c7d1565
GM
45952009-02-24 Glenn Morris <rgm@gnu.org>
4596
4597 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4598 whitespace that confuses documentation.
4599
a20878b6
MB
46002009-02-23 Miles Bader <miles@gnu.org>
4601
4602 * process.c (Flist_system_processes, Fprocess_attributes)
4603 (syms_of_process): Rename `system-process-attributes' to
4604 `process-attributes'.
4605
b3b58c01
AS
46062009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4607
1b3b981b
AS
4608 * coding.h (struct coding_system): Make safe_charsets a pointer to
4609 unsigned char.
4610 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4611 being 255.
4612 (SAFE_CHARSET_P): Likewise.
4613 (setup_iso_safe_charsets): Properly setup safe_charsets.
4614 (Fdefine_coding_system_internal): Likewise.
4615 (setup_coding_system): Likewise. Remove unneeded casts.
4616 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4617 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4618 unneeded casts.
4619
b3b58c01
AS
4620 * insdel.c (del_range_2): Don't modify gap contents when called
4621 from decode_coding_object. (Bug#1809)
4622
0b6f228c
CY
46232009-02-21 Chong Yidong <cyd@stupidchicken.com>
4624
4625 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4626 Qfont_object.
4627 (Ftype_of): Recognize font objects.
4628
4629 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4630
4631 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4632 moved to data.c.
4633
52f8870b
AR
46342009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4635
4636 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4637 async_iconified. Based on a patch by Christian Lynbech
4638 <christian.lynbech@tieto.com>.
4639 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4640
7087d5e9
GM
46412009-02-20 Glenn Morris <rgm@gnu.org>
4642
4643 * syntax.c (Fskip_chars_forward): Fix doc typo.
4644
41d2ceef
CY
46452009-02-20 Chong Yidong <cyd@stupidchicken.com>
4646
4647 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4648
1a3b7ca6
CY
46492009-02-19 Chong Yidong <cyd@stupidchicken.com>
4650
4651 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4652
73cce38d
KH
46532009-02-19 Kenichi Handa <handa@m17n.org>
4654
4655 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4656 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4657
a51092ee
DN
46582009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4659
4660 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4661
c423ecca
KH
46622009-02-18 Kenichi Handa <handa@m17n.org>
4663
4664 * font.c (font_check_otf_features): Fix handling of `nil' element.
4665 (Ffont_spec): Describe :lang and :otf in the docstring.
4666
4c1958f4
AS
46672009-02-16 Andreas Schwab <schwab@suse.de>
4668
4669 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4670 string.
4671
5704f39a
KH
46722009-02-16 Kenichi Handa <handa@m17n.org>
4673
4674 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4675 (Bug#1723)
5704f39a 4676
8f0085aa
CY
46772009-02-14 Chong Yidong <cyd@stupidchicken.com>
4678
a057d86a 4679 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4680
4681 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4682 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4683
aff01dd9
EZ
46842009-02-14 Eli Zaretskii <eliz@gnu.org>
4685
4686 * msdos.c (MAX_SCREEN_BUF): New macro.
4687 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4688 Encode the entire run of glyphs sharing the same face, instead of
4689 doing that one glyph at a time (fixes a bug with displaying
4690 double-size characters).
4691
ba301db3
AR
46922009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4693
4694 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4695
4696 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4697 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 4698 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
4699
4700 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 4701 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 4702
51d861de
SM
47032009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4704
ac146f82 4705 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
4706 invisible areas.
4707
7fed8996
JR
47082009-02-12 Jason Rumney <jasonr@gnu.org>
4709
631ea4fb
JR
4710 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4711 (add_font_entity_to_list): Call check_face_name even when family
4712 is unspecified.
4713
cb4a3e42
JR
4714 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4715 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 4716 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 4717
7fed8996 4718 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 4719 raster fonts. (Bug#2219)
7fed8996 4720
895416e3
KH
47212009-02-12 Kenichi Handa <handa@m17n.org>
4722
4723 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4724 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4725 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 4726 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4727 (find_automatic_composition): While looking forward and backward,
4728 check static composition. Fix where to stop looking forward.
4729 (composition_adjust_point): Fix checking of static composition.
4730 (Fcomposition_get_gstring): Pay attention to
1dacf998 4731 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
4732
4733 * lisp.h (fast_looking_at): Extern it.
4734
4735 * search.c (fast_looking_at): New function.
4736
51d861de 4737 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
4738 <struct glyph>.u.cmp.to.
4739 (append_composite_glyph): Likewise.
4740
51d861de 4741 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
4742 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4743 composition.
51d861de 4744 (append_composite_glyph): Adjust for the change of
895416e3
KH
4745 <strcut glyph>.u.cmp.to.
4746
8510724d
JB
47472009-02-11 Juanma Barranquero <lekktu@gmail.com>
4748
4749 * casetab.c (init_casetab_once):
4750 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4751 * font.c (font_update_lface):
4752 * fontset.c (Fnew_fontset):
4753 * ftfont.c (ftfont_drive_otf):
4754 * xfont.c (xfont_open):
4755 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4756
294fa707
SM
47572009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4758
4759 * fileio.c (Fwrite_region): !NILP -> CONSP.
4760
b5bfebec
AS
47612009-02-10 Andreas Schwab <schwab@suse.de>
4762
4763 * process.c (send_process): Properly relocate pointer into data
adab88bd 4764 when using encoded data. (Bug#2272)
b5bfebec 4765
cb84a2be
KH
47662009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4767
4768 * coding.c (detect_coding_charset): Fix previous change.
4769
89e09428
JR
47702009-02-08 Jason Rumney <jasonr@gnu.org>
4771
4772 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 4773 disappeared while hourglass was displayed. (Bug #2193)
89e09428 4774
4470a277
AS
47752009-02-07 Andreas Schwab <schwab@suse.de>
4776
4777 * unexelf.c (unexec): Fix error message.
4778
3175b12a
AR
47792009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4780
4781 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 4782 when modal window is active. (Bug #2152)
3175b12a
AR
4783 (applicationShouldTerminate:): Remove now-unneeded while loop
4784 around NSRunAlertPanel.
4785
4786 * nsmenu.m (popupSession): New file-global variable.
4787 (pop_down_menu): End the popupSession before closing dialog.
4788 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4789 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4790 don't query NSApp for events (just sleep instead).
4791
8434d0b8
EZ
47922009-02-07 Eli Zaretskii <eliz@gnu.org>
4793
51d861de
SM
4794 * coding.c (syms_of_coding) <translation-table-for-input>:
4795 Modify doc string to discourage use for character code unification.
8434d0b8 4796
aa82edfd
CY
47972009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4798
4799 * atimer.c (run_timers): Update pending_atimers.
4800
2d283c7c
CY
48012009-02-06 Chong Yidong <cyd@stupidchicken.com>
4802
eb306cab
CY
4803 * image.c (svg_load_image): Fix last change.
4804
2d283c7c
CY
4805 * xfns.c (Fx_create_frame): Signal an error if no font is
4806 found (Bug#2147).
4807
4d8e170e
JB
48082009-02-05 Juanma Barranquero <lekktu@gmail.com>
4809
4810 * character.c (syms_of_character) <script-representative-chars>:
4811 Fix typo in docstring.
4812
c96169a0
AR
48132009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4814
4815 * nsmenu.m (pop_down_menu): New function.
4816 (ns_popup_dialog): Call it on unwind.
4817 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4818 call timer_check() (Bug#2154).
4819 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4820 handling_signal is set.
4821 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4822
31fd7c5c 4823 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
4824
4825 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4826
4827 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4828
51d861de
SM
4829 * keyboard.c (poll_for_input_1, handle_async_input):
4830 Set handling_signal under HAVE_NS.
c96169a0 4831
aacd8ba1
GM
48322009-02-04 Glenn Morris <rgm@gnu.org>
4833
4834 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4835
4cb75c4b
KH
48362009-02-04 Kenichi Handa <handa@m17n.org>
4837
4838 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4839
4840 * charset.c (Fchar_charset): New optional arg restriction.
4841
4842 * coding.h (coding_system_charset_list): Extern it.
4843
4844 * coding.c (coding_system_charset_list): New function.
4845
4846 * composite.c: Include coding.h and termhooks.h.
4847 (composition_gstring_p): Fix for the terminal case.
4848 (composition_gstring_width): Likewise.
4849 (fill_gstring_body): Likewise.
4850 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4851 the frame.
4852 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4853 is within a composition.
867d4bb3 4854 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
4855
4856 * term.c (encode_terminal_code): Fix handling of composition.
4857 (produce_composite_glyph): For static composition, get pixel_width
4858 from struct composition.
4859
826ba17e
AS
48602009-02-02 Andreas Schwab <schwab@suse.de>
4861
4862 * unexelf.c (unexec): Handle unaligned bss offset.
4863
8ad093db
AR
48642009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4865
4866 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4867 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 4868
8ad093db
AR
4869 * keyboard.c (handle_interrupt): Don't call
4870 quit_throw_to_read_char() under NS.
d0a76a6e 4871
8ad093db
AR
4872 * blockinput.h: Remove NS-specific code.
4873
4d18a7a2
DN
48742009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4875
db878925
DN
4876 * dispnew.c (window_change_signal): Don't try to get the size of a
4877 suspended tty frame.
4878 * term.c (Fresume_tty): Resize if the size has changed while the
4879 tty was suspended.
4880
4d18a7a2
DN
4881 * alloc.c (mark_stack): Properly conditionalize previous change.
4882
8984df7c
JB
48832009-01-30 Juanma Barranquero <lekktu@gmail.com>
4884
4885 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4886 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4887 Remove; this code is not used on Windows.
4888
75f4f1ac
EZ
48892009-01-30 Eli Zaretskii <eliz@gnu.org>
4890
4891 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4892 EOLs that also has stray ^M characters.
4893
07a1e794
JB
48942009-01-30 Juanma Barranquero <lekktu@gmail.com>
4895
4896 * atimer.c (run_timers, alarm_signal_handler):
4897 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4898 * w32inevt.c (w32_console_read_socket):
4899 * w32term.c (w32_read_socket):
4900 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4901
a8b11cc9
CY
49022009-01-30 Chong Yidong <cyd@stupidchicken.com>
4903
4904 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4905 Initialize it as a relative filename pattern.
4906 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4907 (Fcall_process_region): Simplify temp file creation using
4908 temporary-file-directory.
4909
c279587b
EZ
49102009-01-29 Eli Zaretskii <eliz@gnu.org>
4911
4912 * msdos.c: Rename pending_signals to msdos_pending_signals.
4913 (sig_suspender, sigprocmask): Adjust.
4914
a8fe3242
CY
49152009-01-29 Chong Yidong <cyd@stupidchicken.com>
4916
4917 * keyboard.c (pending_signals): New var.
4918 (poll_for_input, input_available_signal, init_keyboard): Set it.
4919 (process_pending_signals): New function.
4920
4921 * lisp.h (QUIT): Check pending_signals instead of
4922 interrupt_input_pending. Use process_pending_signals.
4923
51d861de 4924 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 4925
51d861de 4926 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
4927
4928 * sysdep.c (emacs_write): Use process_pending_signals.
4929
4930 * xterm.c (XTread_socket): Update pending_signals.
4931
4932 * w32term.c (w32_read_socket): Update pending_signals.
4933
4934 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4935
6570a1c4
KH
49362009-01-29 Kenichi Handa <handa@m17n.org>
4937
4938 * xftfont.c (xftfont_has_char): New function.
4939 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4940
d72a4afa
AR
49412009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4942
4943 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4944 under GNUstep.
4945 (ns_query_color): New declaration.
4946
4947 * nsterm.m (ns_confirm_quit): New variable.
4948 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4949 (EmacsApp-applicationShouldTerminate:): Use it.
4950 (EmacsPrefsController): Let user set it.
4951 (ns_query_color): New function.
4952 (ns_defined_color): Use it.
4953 (ns_initialize): Drop.
4954 (ns_term_init): Add two lines from ns_initialize(), and set
4955 input_interrupt_mode to nil.
4956
4957 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 4958 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 4959
9fe78804
KH
49602009-01-28 Kenichi Handa <handa@m17n.org>
4961
4962 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
4963 (fontset_get_font_group): Remember that no font-group is specified
4964 for C.
9fe78804 4965
fa57de36
CY
49662009-01-27 Chong Yidong <cyd@stupidchicken.com>
4967
930600e9
CY
4968 * fns.c (concat): Check for string overflow (bug#1787).
4969
fa57de36
CY
4970 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4971 Quadruple undo limits (bug#1501).
4972
7179ce7b
KH
49732009-01-27 Kenichi Handa <handa@m17n.org>
4974
4975 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4976 directly use GT_Get_Char_index.
4977
4978 * xftfont.c (struct xftfont_info): New member `index'.
4979
4980 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 4981 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 4982
5be8fcc0
CY
49832009-01-26 Kenichi Handa <handa@m17n.org>
4984
4985 * fontset.c (fontset_find_font): Fix handling of non-cons return
4986 value of fontset_get_font_group.
4987 (fontset_font): Revert last change.
4988
19ae3e61
JR
49892009-01-26 Jason Rumney <jasonr@gnu.org>
4990
4991 * w32font.c (w32font_list_internal): Return quickly if registry is
4992 unknown. Simplify final return.
4993 (add_font_entity_to_list): Break complex logic down into more
4994 manageable chunks. Move unknown registry check to
4995 w32font_list_internal.
4996
8612b71a
AR
49972009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
4998
4999 Changes to remove Feval calls from GUI under NS.
5000
d8038940
JB
5001 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5002 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5003 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5004
5005 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5006 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5007 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5008 instead of NON_ASCII_KEYSTROKE_EVENT.
5009 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5010 (EmacsApp-applicationShouldTerminate:): Query user.
5011 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5012 instead of Feval.
5013
5014 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5015
5016 * keyboard.c (kbd_buffer_get_event): Check for it.
5017 (keys_of_keyboard): Define lispy keys for
5018 ns-put/unput-working-text.
5019
5020 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5021 versions.
5022 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5023
6288ae55
CY
50242009-01-25 Chong Yidong <cyd@stupidchicken.com>
5025
5026 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5027 setting current_buffer directly. (Bug#2044)
6288ae55 5028
289e7f8f
CY
50292009-01-24 Chong Yidong <cyd@stupidchicken.com>
5030
5ce87308 5031 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5032 any work. (Bug#1952, bug#1990).
5ce87308 5033
64cc3cf6 5034 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5035
b3243e6f
AR
50362009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5037
5038 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5039 (ns_no_defaults): New declaration.
5040 (main): Use it.
e0d2e69a 5041
d900b2af 5042 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5043
d900b2af 5044 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5045
d900b2af
AR
5046 * nsterm.m (ns_no_defaults): New variable.
5047 (ns_initialize): Don't read defaults when ns_no_defaults.
5048 (EmacsView-readSelectionFromPasteboard:)
5049 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5050 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5051 (ns_dumpglyphs_stretch): New function.
5052 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5053 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5054
e0d2e69a
AR
5055 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5056
3ac71f5d
CY
50572009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5058
5059 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5060 call for Sparc64.
5061
3fe53a83
AR
50622009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5063
5064 * nsfns.m:
5065 * nsgui.h:
5066 * nsmenu.m:
5067 * nsselect.m:
5068 * nsterm.h:
5069 * nsterm.m: Remove '23' comments that indicated code added during
5070 update from emacs-20 -> emacs-23.
5071
10f87c6f 50722009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5073
5074 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5075 ns_alternate_modifier. (Bug#1217)
a3b53a85 5076
c7cef62d
AR
5077 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5078 Display all shortcuts, including those w/o super modifier.
5079
575fb8bd
AR
5080 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5081
918b848b
CY
50822009-01-22 Chong Yidong <cyd@stupidchicken.com>
5083
5084 * fileio.c (Vwrite_region_post_annotation_function)
5085 (Vwrite_region_annotation_buffers): New vars.
5086 (build_annotations_unwind): Just reset
5087 Vwrite_region_annotation_buffers.
5088 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5089 Call write-region-post-annotation-function.
5090 (build_annotations): Add to Vwrite_region_annotation_buffers if
5091 buffer changes.
5092
a39e2539
AR
50932009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5094
5095 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5096 Tiger.
51d861de
SM
5097 * nsfns.m (ns_do_applescript):
5098 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5099
35ed44db
AR
51002009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5101
5102 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5103
cbe0b5bf
AR
51042009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5105
5106 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5107
6049d3a0
AR
5108 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5109
5110 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5111 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5112 handle Ctrl-tab. (Bug#1841)
5113 (ns_get_color): Use unsigned long long for scanned hex string value.
5114 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5115 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5116 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5117 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5118 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5119 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5120 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5121
d3810c21 5122 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5123 DPI. (Bug#1316)
d3810c21
AR
5124 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5125 values in onTiger section.
4c7077c3 5126
e301e634
CY
51272009-01-19 Chong Yidong <cyd@stupidchicken.com>
5128
7f82490b
CY
5129 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5130 Check return value of font_spec_from_name.
64cc3cf6 5131 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5132
5133 * font.c (font_spec_from_name): Return Qnil if font name could not
5134 be parsed.
5135 (font_parse_name): Treat a `?' character as part of an XLFD.
5136
e301e634
CY
5137 * fns.c (Fsubstring): Doc fix.
5138
1c0db158
KH
51392009-01-19 Kenichi Handa <handa@m17n.org>
5140
51d861de 5141 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5142 (ftfont_list): Likewise.
5143
acf20901
JB
51442009-01-18 Juanma Barranquero <lekktu@gmail.com>
5145
fff4e459
JB
5146 * dbusbind.c (Fdbus_register_signal):
5147 * process.c (conv_sockaddr_to_lisp):
5148 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5149
acf20901
JB
5150 * callproc.c (Fgetenv_internal): Doc fix.
5151
e7abcdfb
CY
51522009-01-16 Chong Yidong <cyd@stupidchicken.com>
5153
5154 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5155 it is not even used.
5156
b60861e6
GM
51572009-01-16 Glenn Morris <rgm@gnu.org>
5158
5159 * font.c (Ffont_variation_glyphs): Silence compiler.
5160
8db52afe
JB
51612009-01-15 Juanma Barranquero <lekktu@gmail.com>
5162
5163 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5164 Reported by David Robinow <drobinow@gmail.com>.
5165
4cddb209
KH
51662009-01-15 Kenichi Handa <handa@m17n.org>
5167
51d861de 5168 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5169
f247f67b
JR
51702009-01-14 Jason Rumney <jasonr@gnu.org>
5171
5172 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5173 never a fontset. (Bug#1562)
f247f67b 5174
f56a4450
KH
51752009-01-14 Kenichi Handa <handa@m17n.org>
5176
5177 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5178 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5179
4e99855e
CY
51802009-01-13 Chong Yidong <cyd@stupidchicken.com>
5181
5182 * font.c (font_clear_prop): If clearing the family, clear the font
5183 width index too.
5184
fff4e459 5185 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5186
24f01470
JB
51872009-01-12 Juanma Barranquero <lekktu@gmail.com>
5188
5189 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5190 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5191 functions, use sizeof.
5192
a41240a3
MR
51932009-01-12 Martin Rudalics <rudalics@gmx.at>
5194
5195 * keyboard.c (read_char): Fix case where last_nonmenu_event
5196 returned a bad value with submenus. (Bug#447)
5197
944636b8
CY
51982009-01-12 Chong Yidong <cyd@stupidchicken.com>
5199
5200 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5201 family, clear the font width index too.
5202
0dad7c6f
JR
52032009-01-11 Jason Rumney <jasonr@gnu.org>
5204
5205 * keyboard.c (cmd_error_internal): Exit when errors occur before
5206 frame creation and not in daemon mode. (Bug#1836)
5207
7c2363af
CY
52082009-01-10 Chong Yidong <cyd@stupidchicken.com>
5209
5210 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5211 of a display vector, backtrack.
5212 (try_window_reusing_current_matrix): Check glyph type before
5213 referencing charpos member.
5214
97b1b294
EZ
52152009-01-10 Eli Zaretskii <eliz@gnu.org>
5216
5217 Fix Bug #876:
5218
5219 * coding.c (inhibit_null_byte_detection): New variable.
5220 (detect_coding, detect_coding_system): Don't pay attention to null
5221 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5222 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5223 <inhibit-iso-escape-detection>: Doc fix.
5224
4624b6e3
JR
52252009-01-09 Jason Rumney <jasonr@gnu.org>
5226
5227 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5228 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5229 Only report Unicode Plane 2 fonts as unicode-sip.
5230
323b840c
CY
52312009-01-09 Chong Yidong <cyd@stupidchicken.com>
5232
51d861de
SM
5233 * xfaces.c (Fx_font_family_list): Delete function.
5234 Move compatibility version to faces.el.
323b840c 5235
51d861de 5236 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5237
eba7400d
MR
52382009-01-09 Martin Rudalics <rudalics@gmx.at>
5239
5240 * frame.c (x_set_frame_parameters): Remember requested value for
5241 fullscreen before it's reset by the parameter handler.
5242
4b09796d
GM
52432009-01-09 Glenn Morris <rgm@gnu.org>
5244
5245 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5246 (last_command_event): ... and update all users.
4b09796d
GM
5247 (last_input_char): For clarity, rename to...
5248 (last_input_event): ... and update all users.
5249 (last-command-char, last-input-char): Move to subr.el as aliases.
5250 * cmds.c, commands.h: Update for last_command_char rename.
5251
14ccea62
CY
52522009-01-08 Chong Yidong <cyd@stupidchicken.com>
5253
51d861de 5254 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5255
5f004711
JR
52562009-01-08 Jason Rumney <jasonr@gnu.org>
5257
5258 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5259 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5260 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5261 Don't declare.
fff4e459 5262 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5263 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5264
b71f6f73
KH
52652009-01-07 Kenichi Handa <handa@m17n.org>
5266
50b06221 5267 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5268 remember the coding system used for decoding in
50b06221
KH
5269 coding_system (Bug#1039).
5270
b71f6f73 5271 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5272 breaking the loop. (Bug#870)
b71f6f73
KH
5273 (decode_coding_utf_16, decode_coding_emacs_mule)
5274 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5275 (decode_coding_charset): Likewise.
5276
56f668f7
MR
52772009-01-05 Martin Rudalics <rudalics@gmx.at>
5278
5279 * frame.c (x_set_frame_parameters): Make sure height (width) get
5280 applied when fullwidth (fullheight) is set. (Bug#1522)
5281
5da9424d
JB
52822009-01-04 Juanma Barranquero <lekktu@gmail.com>
5283
5284 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5285 (utc_base): Declare as ULONGLONG, not long double.
5286 (convert_time_raw): Delete.
5287 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5288 (initialize_utc_base): New function.
5289 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5290 (convert_from_time_t): Use initialize_utc_base; compute result with
5291 64-bit arithmetic.
5292 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5293
c4605e09
EZ
52942009-01-03 Eli Zaretskii <eliz@gnu.org>
5295
9acef61c 5296 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5297 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5298 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5299 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5300 [!subprocesses]: Define.
5301 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5302 (Flist_system_processes, Fsystem_process_attributes)
5303 [!subprocesses]: Call list_system_processes and
5304 system_process_attributes instead of returning Qnil.
5305
9acef61c
JB
5306 * dosfns.c (system_process_attributes, list_system_processes):
5307 New functions.
c4605e09
EZ
5308
5309 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5310
5311 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5312 Don't use the default (no-op) implementation.
5313
8b7d0a16
JR
53142009-01-03 Jason Rumney <jasonr@gnu.org>
5315
a6d46bc1
JR
5316 * keyboard.c (parse_modifiers_uncached): Wheel events are
5317 clicks (bug#687).
5318
8b7d0a16
JR
5319 * w32term.c (x_query_colors, x_query_color): New functions.
5320
5321 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5322 (svg_load_image): Cast returned pointers from dynamically loaded
5323 functions. Eliminate W32 specific code.
5324
bfe11752
DN
53252009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5326
89e2438a
DN
5327 * nsfns.m (x_set_foreground_color, x_set_background_color)
5328 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5329 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5330 x_ prefix instead of ns_. Update references.
5331 (syms_of_nsfns): Add a FIXME comment.
5332
5333 * nsterm.m (x_set_cursor_type): New prototype.
5334 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5335
bfe11752
DN
5336 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5337 for Solaris instead of incorrectly providing Qutime and Qcutime.
5338
031da700
EZ
53392009-01-02 Eli Zaretskii <eliz@gnu.org>
5340
5341 * w32.c (process_times): Compute sum of utime and stime.
5342 (system_process_attributes): Add Qtime to the alist.
5343
5344 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5345 and add them to the alist.
5346
5347 * process.c (top level) <Qtime, Qctime>: New variables.
5348 (syms_of_process): staticpro them.
5349 (Fsystem_process_attributes): Add their documentation to the doc
5350 string.
5351
5352 * process.h: Declare Qtime and Qctime.
5353
df23bf08
JR
53542009-01-02 Jason Rumney <jasonr@gnu.org>
5355
9acef61c 5356 * image.c (Qgobject): New symbol.
df23bf08
JR
5357 (syms_of_image): Initialize it.
5358 (init_svg_functions): Load some functions from gobject library.
5359
5bbdf7aa
DN
53602009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5361
5362 * frame.c (make_terminal_frame): Remove redundant code and useless
5363 block.
5364
63136da6
AS
53652009-01-01 Andreas Schwab <schwab@suse.de>
5366
5367 * process.c (conv_sockaddr_to_lisp): Add workaround for
5368 getsockname bug on BSD.
5369
9ef69046
CY
53702009-01-01 Chong Yidong <cyd@stupidchicken.com>
5371
d6fafbe0
CY
5372 * xfns.c (x_create_tip_frame): Set border width of the X window.
5373
51d861de 5374 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5375
f9c34147
JR
53762009-01-01 Jason Rumney <jasonr@gnu.org>
5377
9acef61c 5378 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5379 Don't block input, as per earlier xterm.c changes.
5380
f5497e45
AR
53812008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5382
5383 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5384 (ns_appkit_version_int): New function.
5385 (x-server-version): Use ns_appkit_version_int and follow 21+
5386 convention of returning 3 integers.
5387
c19cab20
KH
53882008-12-30 Kenichi Handa <handa@m17n.org>
5389
5390 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5391 (CHAR_SURROGATE_PAIR_P): New macro.
5392
5393 * font.h (struct font_driver): New member get_variation_glyphs.
5394
9acef61c 5395 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5396 (Ffont_variation_glyphs): New function.
5397 (syms_of_font): Defsubr it.
5398
5399 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5400 ftfont_variation_glyphs.
5401 (setup_otf_gstring): New function.
5402 (ftfont_drive_otf): Use it.
5403 (ftfont_shape_by_flt): Handle variation selector.
5404 (ftfont_variation_glyphs): New function.
5405
28cd591f
MR
54062008-12-30 Martin Rudalics <rudalics@gmx.at>
5407
5408 * frame.c (Vemacs_iconified): Remove.
5409
7f714baf
JR
54102008-12-30 Jason Rumney <jasonr@gnu.org>
5411
5412 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5413 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5414
9d2d22ab
CY
54152008-12-30 Chong Yidong <cyd@stupidchicken.com>
5416
5417 * indent.c (Fvertical_motion): Don't advance iterator if we have
5418 reseated to the desired position.
5419
5420 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5421 checking for pos match.
5422
545312c2
KH
54232008-12-30 Kenichi Handa <handa@m17n.org>
5424
1ede3eb6
KH
5425 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5426 just get the low 8-bit of the code.
5427
545312c2
KH
5428 * font.c (font_intern_prop): Validate str as multibyte.
5429
bd7bbf29
DN
54302008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5431
31e0750e
DN
5432 * dispextern.h (struct face): Move lface and hash from the middle
5433 of bitfields.
5434
bd7bbf29
DN
5435 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5436
b5672e7c
DN
54372008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5438
5439 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5440 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5441 instead of intervals.h.
5442
d704470f
AS
54432008-12-26 Andreas Schwab <schwab@suse.de>
5444
5445 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5446 cons.
5447
54b33868
MR
54482008-12-26 Martin Rudalics <rudalics@gmx.at>
5449
5450 * textprop.c (Qminibuffer_prompt): New variable.
5451 (syms_of_textprop): Initialize it.
5452 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5453 in minibuffer-prompt face. (Bug#1662)
5454
40b615d6
JR
54552008-12-25 Jason Rumney <jasonr@gnu.org>
5456
5457 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5458
baae5c2d
JR
54592008-12-24 Jason Rumney <jasonr@gnu.org>
5460
5461 * ralloc.c (r_alloc_reset_variable): New function.
5462
5463 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5464 record of what points where. (Bug#716)
baae5c2d 5465
a9051c88
DN
54662008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5467
5468 * minibuf.c (read_minibuf): Follow the non-interactive case when
5469 running as a daemon, before detaching.
5470
8b146312
AS
54712008-12-22 Andreas Schwab <schwab@suse.de>
5472
5473 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5474 * gtkutil.c (free_widget_value): Use xfree instead of free.
5475
56f2de10
MR
54762008-12-22 Martin Rudalics <rudalics@gmx.at>
5477
5478 * frame.c (delete_frame): New function derived from
5479 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5480 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5481 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5482 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5483 * frame.h: Extern delete_frame.
5484 * window.c (window_loop):
5485 * terminal.c (delete_terminal):
5486 * xterm.c (x_connection_closed):
5487 * xfns.c (Fx_hide_tip):
9acef61c 5488 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5489
1fc200d6
JR
54902008-12-21 Jason Rumney <jasonr@gnu.org>
5491
5492 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5493 when character maps to .notdef character.
5494
5e252df2
SM
54952008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5496
5497 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5498
99b72cc4
JR
54992008-12-20 Jason Rumney <jasonr@gnu.org>
5500
5501 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5502 a graphical frame on Windows. (Bug#1325)
99b72cc4 5503
acc49a52
JD
55042008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5505
5506 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5507
6ea15123
CY
55082008-12-20 Chong Yidong <cyd@stupidchicken.com>
5509
5510 * minibuf.c (Fread_buffer): Doc fix.
5511
b2dab6c8
JR
55122008-12-20 Jason Rumney <jasonr@gnu.org>
5513
54ea0c87 5514 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5515 server name in UNC paths. (Bug#719)
54ea0c87 5516
b2dab6c8 5517 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5518 charbuf. (Bug#1035)
b2dab6c8 5519
6d1921be
DN
55202008-12-19 Daniel Engeler <engeler@gmail.com>
5521
5522 * sysdep.c (serial_configure): Fix typo.
5523
53934c98
DN
55242008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5525
5526 * sysdep.c: Include alloca.h.
f4f634e8
DN
5527 (system_process_attributes): Add implementation for Solaris.
5528
5529 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5530
06e111a6
DN
55312008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5532
5533 Reorganize implementation of Flist_system_processes and
5534 Fsystem_process_attributes. No functional changes.
5535 * process.c: Don't #include pwd.h, grp.h and limits.h.
5536 (Flist_system_processes): Just call list_system_processes.
5537 (Fsystem_process_attributes): Just call system_process_attributes.
5538 (procfs_list_system_processes, time_from_jiffies)
5539 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5540 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5541
5542 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5543 (list_system_processes): Rename from
5544 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5545 Provide a do nothing implementation.
5546 (system_process_attributes): Rename from
5547 procfs_list_system_processes.
5548 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5549 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5550
5551 * w32.c (list_system_processes): Rename from
5552 w32_list_system_processes.
5553 (system_process_attributes): Rename from
5554 w32_system_process_attributes.
5555
5556 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5557
5558 * process.h (w32_list_system_processes)
5559 (w32_system_process_attributes): Remove.
362654a6
JB
5560 (list_system_processes, system_process_attributes):
5561 New prototypes.
06e111a6 5562
6a705b23
KH
55632008-12-19 Kenichi Handa <handa@m17n.org>
5564
5565 * xfont.c (xfont_decode_coding_xlfd): New function.
5566 (xfont_encode_coding_xlfd): New function.
5567 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5568 (xfont_list): Decode and encode XLFD by iso-8859-1.
5569 (xfont_match): Likewise.
5570 (xfont_list_family): Likewise.
5571 (xfont_open): Likewise.
5572
d66c0241 5573 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5574 names are utf-8.
5575
d66c0241 5576 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5577 names are utf-8.
5578
5a130941
JD
55792008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5580
5581 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5582 changed.
bfd20325
JD
5583 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5584 clicked on a detached tool bar button.
5a130941 5585
fd95644b
DN
55862008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5587
5588 * emacs.c (main): Print and error and exit when no data is read
5589 from the pipe.
5590
e6eee6ae
JR
55912008-12-17 Jason Rumney <jasonr@gnu.org>
5592
5593 * w32font.c (w32font_has_char): Always return -1.
5594
a35dd56b
KH
55952008-12-16 Kenichi Handa <handa@m17n.org>
5596
5597 * font.c (font_open_entity): Fix previous change.
5598
0e3635c2
DN
55992008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5600
5601 * process.c: Include <limits.h>.
5602
d4835507 56032008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5604
5605 * font.c (font_update_drivers): Fix mistake in reconstructing the
5606 driver list.
5607
56082008-12-16 Chong Yidong <cyd@stupidchicken.com>
5609
5610 * font.c (font_clear_cache): Fix format of font cache data.
5611
e2cbc401
CY
56122008-12-15 Chong Yidong <cyd@stupidchicken.com>
5613
5614 * xftfont.c (xftfont_open): Free Xft font pattern if
5615 XftFontOpenPattern fails.
5616
5617 * xterm.c (x_free_frame_resources): Remove extraneous call to
5618 free_frame_faces.
5619
b131d535
CY
56202008-12-13 Chong Yidong <cyd@stupidchicken.com>
5621
5622 * xterm.c (x_delete_display): Move xim_close_dpy call to
5623 x_delete_terminal.
5624 (x_delete_terminal): Call xim_close_dpy.
5625
e6df5336
JR
56262008-12-13 Jason Rumney <jasonr@gnu.org>
5627
5628 * w32font.c (intern_font_name): New function.
5629 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5630 (w32font_open_internal, Fx_select_font): Decode font name.
5631 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5632
5633 * w32font.h (intern_font_name): Declare new function.
5634
5635 * w32uniscribe.c (add_opentype_font_name_to_list):
5636 Use intern_font_name.
5637
20d68145
CY
56382008-12-13 Chong Yidong <cyd@stupidchicken.com>
5639
9f2554de
CY
5640 * frame.c (Fdelete_frame): Call free_font_driver_list.
5641
3d9bec9a
CY
5642 * font.c (free_font_driver_list): Implement missing function.
5643
20d68145
CY
5644 * w32term.c (w32_term_init): Don't initialize the image cache
5645 here; it will be done in init_frame_faces.
5646
5647 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5648 (struct x_display_info): Remove unused member null_pixel. New
5649 member xim_callback_data.
5650
5651 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5652 (xim_initialize): Save pointer to callback function data.
5653 (xim_close_dpy): Free callback function data. Call XCloseIM,
5654 reverting 2008-11-04 change by David Smith.
5655 (x_term_init): Don't initialize the image cache here; it will be
5656 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5657 (x_delete_display): Free x_dnd_atoms member.
5658
96f9306b
KH
56592008-12-13 Kenichi Handa <handa@m17n.org>
5660
6dec9044
JB
5661 * font.c (font_rescale_ratio): Moved from xfaces.c.
5662 Argument type changed. Handle a font-spec too.
96f9306b 5663 (font_score): Check Vface_font_rescale_alist.
6dec9044 5664 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5665
5666 * xfaces.c (font_rescale_ratio): Moved to font.c.
5667
8d5b4964
CY
56682008-12-13 Chong Yidong <cyd@stupidchicken.com>
5669
5670 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5671
e6df5336
JR
56722008-12-12 Jason Rumney <jasonr@gnu.org>
5673
5674 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5675 Vwindow_system_version to the real w32 major version.
5676
97c6058a
DN
56772008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5678
5679 * term.c (init_tty): Move setting the terminal name before the
5680 potential user: maybe_fatal.
5681
ec4e88d7
CY
56822008-12-11 Chong Yidong <cyd@stupidchicken.com>
5683
d4835507
JB
5684 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5685 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5686
b4233ec9
JR
56872008-12-11 Jason Rumney <jasonr@gnu.org>
5688
8ec71e23 5689 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5690 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5691
b4233ec9 5692 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5693 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5694
011a0143
JB
56952008-12-11 Juanma Barranquero <lekktu@gmail.com>
5696
5697 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5698
3c309f34
JB
56992008-12-11 Juanma Barranquero <lekktu@gmail.com>
5700
5701 * process.c (Fsystem_process_attributes, syms_of_process):
5702 Fix typo in name of Ssystem_process_attributes.
5703 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5704
fedc6ab5
JB
57052008-12-11 Juanma Barranquero <lekktu@gmail.com>
5706
5707 * syntax.c (Fmodify_syntax_entry): Doc fix.
5708
ba3de0e8
JB
57092008-12-10 Juanma Barranquero <lekktu@gmail.com>
5710
5711 * font.c (Ffont_spec): Move usage to end of docstring.
5712
174f1c74
JR
57132008-12-10 Jason Rumney <jasonr@gnu.org>
5714
5715 * w32font.c (Qcham): New symbol.
5716 (font_supported_scripts): Add cham, and comments for other new
5717 scripts in bitfield from OpenType spec.
9d32f818
JR
5718 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5719 contain characters beyond the bmp.
174f1c74 5720
7b649478
KH
57212008-12-10 Kenichi Handa <handa@m17n.org>
5722
5723 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 5724 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
5725 Qunicode_sip.
5726
2133e2d1
JB
57272008-12-10 Juanma Barranquero <lekktu@gmail.com>
5728
5729 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5730 (Fcoding_system_put): Use QCdefault_char.
5731 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5732
9af886ee
CY
57332008-12-09 Chong Yidong <cyd@stupidchicken.com>
5734
74d819eb
CY
5735 * xftfont.c (syms_of_xftfont): Fix typo.
5736
4ccfa1c0 5737 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 5738
7c19d3ae
DN
57392008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5740
5741 * emacs.c (main): Close daemon_pipe on exec.
5742
567826bb
CY
57432008-12-08 Chong Yidong <cyd@stupidchicken.com>
5744
5745 * termchar.h (struct tty): New members termcap_term_buffer and
5746 termcap_strings_buffer.
5747
5748 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 5749 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
5750 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5751 All callers changed.
5752 (init_tty): Store termcap data and string buffers in new struct
5753 tty members termcap_term_buffer and termcap_strings_buffer.
5754 (delete_tty): Free them.
4ccfa1c0 5755 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 5756
aa96c42b
SZ
57572008-12-07 Seiji Zenitani <zenitani@mac.com>
5758
5759 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 5760 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 5761
b7e1d896
CY
57622008-12-06 Chong Yidong <cyd@stupidchicken.com>
5763
5764 * coding.c (make_conversion_work_buffer): Disable buffer
5765 modification hooks in the work buffer.
5766
b5ec91a5
EZ
57672008-12-05 Eli Zaretskii <eliz@gnu.org>
5768
5769 * process.c (procfs_system_process_attributes): If `nread' has a
5770 negative value, assign zero to it.
5771
a5d2a52b
CY
57722008-12-05 Chong Yidong <cyd@stupidchicken.com>
5773
68c5540b 5774 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 5775
7bf1bb21
KH
57762008-12-05 Kenichi Handa <handa@m17n.org>
5777
5778 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5779 second character is a combining character.
5780
2fdc7d00
EZ
57812008-12-05 Eli Zaretskii <eliz@gnu.org>
5782
5783 * process.c (procfs_system_process_attributes): Don't use cmd,
5784 cmdsize, and q without initializing them first.
5785
bf6bfba8
JR
57862008-12-04 Jason Rumney <jasonr@gnu.org>
5787
5788 * w32font.c (w32font_draw): Initialize orig_clip before getting
5789 it, and delete it when finished.
5790
a3b1a468
DN
57912008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5792
5793 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5794 case when running as a daemon before detaching.
5795
8b8be8eb
JB
57962008-12-03 Juanma Barranquero <lekktu@gmail.com>
5797
805f2638 5798 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 5799
b1bde622
KH
58002008-12-03 Kenichi Handa <handa@m17n.org>
5801
e500c47d
KH
5802 * font.c (font_at): Set `multibyte' at first.
5803
ca516334
KH
5804 * coding.c (decode_coding_charset): Check type of an element of
5805 vector VALIDS.
7bf1bb21 5806 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 5807
4ccfa1c0 5808 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
5809 (font_for_char): Likewise.
5810
1e5ecd37
CY
58112008-12-03 Chong Yidong <cyd@stupidchicken.com>
5812
d5b01609 5813 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
5814 (font_update_lface): Handle fonts with corrupted size specs,
5815 i.e. non-int and non-float.
d5b01609 5816
11e3a6e4 5817 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 5818 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 5819 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 5820
ab06788b
CY
5821 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5822
1e5ecd37 5823 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 5824 underline_minimum_offset for underline position.
1e5ecd37 5825
63c125ab
DN
58262008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5827
5828 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5829
5830 * character.c (c_string_width): Specify the type for LEN.
5831
3a8406e1
KH
58322008-12-03 Kenichi Handa <handa@m17n.org>
5833
4ccfa1c0 5834 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 5835 (decode_coding_utf_8): Likewise.
4ccfa1c0 5836 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 5837 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 5838
651df7d9
CY
58392008-12-02 Chong Yidong <cyd@stupidchicken.com>
5840
5841 * keyboard.c (make_lispy_position): Only use PT if the selected
5842 window is current.
5843
1f625c6c
AS
58442008-12-02 Andreas Schwab <schwab@suse.de>
5845
f7741ce9
AS
5846 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5847
1f625c6c
AS
5848 * doprnt.c (doprnt1): Fix size of charbuf.
5849
92bc2678
CY
58502008-12-02 Chong Yidong <cyd@stupidchicken.com>
5851
5852 * keyboard.c (timer_check): Revert last change.
5853
93b9e8cc
JB
58542008-12-02 Juanma Barranquero <lekktu@gmail.com>
5855
5856 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5857
fd7a37d5
JB
58582008-12-01 Juanma Barranquero <lekktu@gmail.com>
5859
5860 * makefile.w32-in: Update dependencies.
5861 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5862
c115043b
AS
58632008-12-01 Andreas Schwab <schwab@suse.de>
5864
5865 * font.c (register_font_driver): Use xmalloc.
5866 (font_put_frame_data): Likewise.
5867
f5668d2a
CY
58682008-12-01 Chong Yidong <cyd@stupidchicken.com>
5869
860d96be
CY
5870 * xfaces.c (realize_x_face): Make abort condition clearer.
5871
f5668d2a
CY
5872 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5873
379c17e7
CY
58742008-11-30 Chong Yidong <cyd@stupidchicken.com>
5875
5876 * keyboard.c (timer_check): After a timer runs, ensure that the
5877 selected window's buffer is current.
5878
35f36d65
JB
58792008-11-30 Juanma Barranquero <lekktu@gmail.com>
5880
f952c61c
JB
5881 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5882 It was accidentally restored by the Unicode merge.
5883
35f36d65
JB
5884 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5885
b23077df
JB
58862008-11-29 Juanma Barranquero <lekktu@gmail.com>
5887
5888 * w32proc.c: Include "coding.h".
5889 (Fw32_short_file_name): Encode filename passed to Windows API.
5890 (Fw32_long_file_name): Encode filename passed to Windows API and
5891 decode back the result. (Bug#1433)
5892
b8ebe9dd
KH
58932008-11-29 Kenichi Handa <handa@m17n.org>
5894
8cc53f96
KH
5895 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5896 not before accessing it.
5897
b8ebe9dd
KH
5898 * charset.c (Fdefine_charset_internal): After calculating
5899 min_char, max_char, and fastmap, copy the charset structure again.
5900 (encode_char): Fix the previous change.
5901
59bc82c0
SZ
59022008-11-28 Seiji Zenitani <zenitani@mac.com>
5903
5904 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5905
5906 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5907
5908 * nsterm.m (x_set_frame_alpha): New function.
5909
32247e3d
EZ
59102008-11-27 Eli Zaretskii <eliz@gnu.org>
5911
5912 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5913
b003e5ff
JB
59142008-11-27 Juanma Barranquero <lekktu@gmail.com>
5915
5916 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5917 pointer to check_face_name.
5918
708550f5
KH
59192008-11-27 Kenichi Handa <handa@m17n.org>
5920
5921 * category.h (SET_CATEGORY_SET): Call set_category_set.
5922 (set_category_set): Extern it.
5923
5924 * category.c (hash_get_category_set): New function.
5925 (Fmodify_category_entry): Adjusted for the change of
5926 char_table_ref_and_range. Call hash_get_category_set to get a
5927 category set to store in the table.
5928
5929 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5930 Funify_charset.
5931
2ae37cf0 5932 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
5933 (DECODE_CHAR): Check if the decoder vector is ready.
5934 (ENCODE_CHAR): Check if the encoder char-table is ready.
5935 (maybe_unify_char): Extern it.
5936
5937 * charset.c (Vchar_unified_charset_table): Delete it.
5938 (inhibit_load_charset_map): New variable.
5939 (temp_charset_work): New variable.
5940 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5941 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5942 New macros.
5943 (load_charset_map): Meaning of control_flag changed. If
5944 inhibit_load_charset_map is nonzero, setup a table in
5945 temp_charset_work.
5946 (load_charset): New argument control_flag.
5947 (map_charset_for_dump): New function.
5948 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5949 map_charset_for_dump.
5950 (Fdefine_charset_internal): If the charset method is MAP, load
5951 mapping tables by calling load_charset.
5952 (Funify_charset): Don't load a mapping table but directly set
5953 Vchar_unify_table.
5954 (maybe_unify_char): New function.
5955 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5956 Handle the case of inhibit_load_charset_map being nonzero.
5957 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5958 Handle the case of inhibit_load_charset_map being nonzero.
5959 (Fclear_charset_maps): Just free temp_charset_work.
5960 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5961 variable.
5962
5963 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5964 change of char_table_ref_and_range.
5965 (char_table_ref_and_range): Change the meaning of argument FROM
5966 and TO. Now the caller must provide initial values for *FROM
5967 and *TO.
5968
5969 * fontset.c (fontset_add): Adjusted for the change of
5970 char_table_ref_and_range.
5971 (fontset_get_font_group): Likewise.
5972 (Ffontset_info): Likewise.
5973
5974 * keymap.c (describe_vector): Adjusted for the change of
5975 char_table_ref_and_range. For char-table, put boundary between
5976 non-ASCII and 8-bit characters.
5977
5978 * print.c (print_object): For bool-vector, delete unnecessary
5979 check of ASCII_BYTE_P.
5980
9196133b
JR
59812008-11-26 Jason Rumney <jasonr@gnu.org>
5982
5983 * w32font.c (w32font_open_internal): Don't include external
9acef61c 5984 leading in font height. (Bug#879)
9196133b 5985
9f688acf
GM
59862008-11-26 Glenn Morris <rgm@gnu.org>
5987
5988 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5989 redefinition with ifdef. (Bug#1383)
5990
90d19aff
AR
59912008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5992
5993 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
5994
4ccfa1c0 59952008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
5996
5997 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
5998 New EmacsView methods.
5999 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6000 Fixes bug #1048,1357,1414.
6001
60022008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6003
6004 Fix bug #1362.
6005 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6006 is not an indexed color.
6007 * nsterm.m (free_indexed_color): Add argument checking.
6008 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6009
e7d5ecb3
CY
60102008-11-24 Chong Yidong <cyd@stupidchicken.com>
6011
6012 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6013 Document confirm-after-completion value for
6014 minibuffer-completion-confirm.
6015
c285743c
JR
60162008-11-24 Jason Rumney <jasonr@gnu.org>
6017
6018 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6019 warning.
6020
b0857706
JR
60212008-11-23 Jason Rumney <jasonr@gnu.org>
6022
6023 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6024 restored before returning.
6025
6026 * w32font.c (check_face_name): New function.
6027 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6028 fonts. (Bug#642)
b0857706 6029
ee50ff07
MR
60302008-11-22 Martin Rudalics <rudalics@gmx.at>
6031
6032 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6033 confirm-nonexistent-file-or-buffer in doc-string.
6034
b8ff72fa
SM
60352008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6036
6037 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6038 Fix copy/paste typo. Add checks.
6039
cee53ed4
KH
60402008-11-21 Kenichi Handa <handa@m17n.org>
6041
6042 * coding.c (detect_coding_iso_2022): Reject invalid composition
6043 sequence.
6044 (DECODE_COMPOSITION_START): If the current source is the last
6045 block, and the current composition doesn't end, regard this
6046 sequence as invalid.
6047 (decode_coding_iso_2022): Handle invalid composition sequence.
6048
f6ef1e65
MR
60492008-11-20 Martin Rudalics <rudalics@gmx.at>
6050
6051 * window.c (coordinates_in_window): Don't return
6052 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6053 line when the window is not the rightmost one. (Bug#1372)
6054
e08b1705
MR
60552008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6056
6057 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6058
ad98e89f
EZ
60592008-11-15 Eli Zaretskii <eliz@gnu.org>
6060
6061 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6062 and bright_bg if noninteractive is non-zero.
6063
fb098a4b
CY
60642008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6065
6066 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6067 x_draw_glyph_string_background.
6068
6069 * w32term.c (x_draw_glyph_string): Likewise.
6070
ce952b6e
CY
60712008-11-15 Chong Yidong <cyd@stupidchicken.com>
6072
6073 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6074 the next glyph string once past the overhang width.
6075
6076 * nsterm.m (ns_draw_glyph_string): Likewise.
6077
6078 * w32term.c (x_draw_glyph_string): Likewise.
6079
26ea7079
CY
60802008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6081
6082 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6083 double file close.
6084
1c33c906
MR
60852008-11-14 Martin Rudalics <rudalics@gmx.at>
6086
6087 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6088 dedicated status of window before attempting to display another
6089 buffer in it.
6090
8fc29035
JB
60912008-11-14 Juanma Barranquero <lekktu@gmail.com>
6092
6093 * msdos.c (Fmsdos_long_file_names):
6094 (syms_of_msdos) <dos-unsupported-char-glyph>:
6095 * dosfns.c (Fint86): Fix typos in docstrings.
6096
55fb4286
EZ
60972008-11-14 Eli Zaretskii <eliz@gnu.org>
6098
6099 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6100
3fda0315
KY
61012008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6102
6103 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6104
7e849c17
CY
61052008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6106
6107 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6108
6109 * frame.h: Negative alpha means "don't touch".
6110
6111 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6112
6113 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6114
b9fd67bd
DN
61152008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6116
6117 * hftctl.c:
6118 * chpdef.h:
6119 * acldef.h: Remove files used only for systems no longer supported.
6120
6121 * Makefile.in: Fix .o alphabetical ordering.
6122 (hftctl.o): Remove dependency, file removed.
6123 (keymap.o, print.o): Depend on charset.h.
6124
d5998e03
KH
61252008-11-10 Kenichi Handa <handa@m17n.org>
6126
2ae37cf0 6127 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6128
be70e183
CY
61292008-11-08 Chong Yidong <cyd@stupidchicken.com>
6130
6131 * dired.c (file_name_completion): If completion_ignore_case is
6132 enabled, ignore case when checking completion-regexp-list.
6133
7cf94eac
EZ
61342008-11-08 Eli Zaretskii <eliz@gnu.org>
6135
6136 * vm-limit.c (get_lim_data): Fix last change.
6137
ee107a89
KH
61382008-11-08 Kenichi Handa <handa@m17n.org>
6139
6140 * character.c (Fget_byte): New function.
6141 (syms_of_character): Defsubr Fget_byte.
6142
5fd15622
CY
61432008-11-07 Chong Yidong <cyd@stupidchicken.com>
6144
6145 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6146 cursor position is valid after scrolling.
6147
13d62fad
JB
61482008-11-06 Juanma Barranquero <lekktu@gmail.com>
6149
6150 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6151
a1dd2936
GM
61522008-11-06 Glenn Morris <rgm@gnu.org>
6153
6154 * xterm.c (handle_one_xevent): Don't let popup menus cause
6155 mouse-autoselect-window related window switching. (Bug#1261)
6156
860cd236
CY
61572008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6158
6159 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6160
653a3150
AS
61612008-11-04 Andreas Schwab <schwab@suse.de>
6162
6163 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6164
870f5cac
CY
61652008-11-03 Chong Yidong <cyd@stupidchicken.com>
6166
6167 * xfns.c (Fx_wm_set_size_hint): New function.
6168
1e02f3cb
MR
61692008-11-03 Martin Rudalics <rudalics@gmx.at>
6170
6171 * textprop.c (Fprevious_single_char_property_change): Return 0
6172 when there's no change in a string. (Bug#1301)
6173
e630dfc6
MR
61742008-11-02 Martin Rudalics <rudalics@gmx.at>
6175
6176 * frame.c (do_switch_frame): New argument NORECORD passed to
6177 Fselect_window.
6178 (Fselect_frame): New argument NORECORD passed to
6179 do_switch_frame.
6180 (Fset_frame_selected_window): New argument NORECORD passed to
6181 Fselect_frame.
6182 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6183 in call of do_switch_frame.
6184 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6185 Handle NORECORD argument in call of Fselect_frame.
6186 * lisp.h (do_switch_frame, Fselect_frame)
6187 (Fset_frame_selected_window): Adjust declarations.
6188 * window.c (select_frame_norecord): New function.
6189 (run_window_configuration_change_hook): Use it and call
6190 Fselect_frame with NORECORD set.
6191 (Fselect_window): Pass NORECORD to Fselect_frame.
6192 (Fset_window_configuration): Handle NORECORD argument in call of
6193 do_switch_frame.
6194 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6195 Fset_frame_selected_window.
6196 * keyboard.c (command_loop_1): Handle NORECORD in call of
6197 Fselect_frame (currently ifdefd).
6198
9020b223
GM
61992008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6200
6201 * emacs.c (USAGE2): Untabify.
6202
793ffee8
SM
62032008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6204
6205 * composite.c (fill_gstring_header): Fix copy/paste typo.
6206
ab6d1131
MR
62072008-10-31 Martin Rudalics <rudalics@gmx.at>
6208
6209 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6210 (Fother_window): Rename argument and rewrite doc-string.
6211 (select_window_norecord): Fix return value. (Bug#1276)
6212
601a9cf1
JB
62132008-10-30 Juanma Barranquero <lekktu@gmail.com>
6214
6215 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6216 new frames overriding foreground for tooltips. Based on similar patch
6217 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6218
813b0652
CY
62192008-10-29 Chong Yidong <cyd@stupidchicken.com>
6220
6221 * emacs.c (Fdaemon_initialized): Initialize nfd.
6222
4414f58f
MR
62232008-10-29 Martin Rudalics <rudalics@gmx.at>
6224
6225 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6226 (Fwindow_text_height): Clarify doc-strings.
6227 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6228 doc-string of window-scroll-functions.
6229
ecdcaa09
RS
62302008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6231
6232 * category.c (syms_of_category): Fix typo in docstring.
6233
23fe745a
JB
62342008-10-28 Juanma Barranquero <lekktu@gmail.com>
6235
6236 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6237 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6238 Fix typos in docstrings.
6239
ff808935
DN
62402008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6241
6242 * emacs.c (daemon_pipe): Make non-static.
6243 (IS_DAEMON): Move definition ...
6244 * lisp.h (IS_DAEMON): ... here.
6245 (daemon_pipe): Declare.
6246 (is_daemon): Remove.
6247 * dispnew.c (init_display): Use IS_DAEMON.
6248
fc012771
SM
62492008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6250
6251 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6252 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6253
6254 * emacs.c (is_daemon): Remove.
6255 (main): Don't set is_daemon.
6256 (IS_DAEMON): New macro.
6257 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6258 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6259 parent exits.
6260 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6261
d8bdbe6f
CY
62622008-10-27 Chong Yidong <cyd@stupidchicken.com>
6263
d1a072bf
CY
6264 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6265 over-sized glyph, draw it with the default glyph width.
6266
e2e325aa
CY
6267 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6268 glyph, draw it with the default glyph width.
6269
6270 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6271 glyph, draw it with the default glyph width.
6272
d8bdbe6f
CY
6273 * xdisp.c (try_scrolling): When computing the distance from the
6274 scroll margin to PT, try moving some distance past the window
6275 bottom before giving up.
6276
7bfac547
MR
62772008-10-27 Martin Rudalics <rudalics@gmx.at>
6278
6279 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6280 (Fset_window_buffer): Explain in doc-string that a window can be
6281 "strongly" dedicated to its buffer.
6282
4ff029f6
DN
62832008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6284
6285 * emacs.c (daemon_name): New variable.
6286 (main): Deal with --daemon=SERVER_NAME.
6287 (Fdaemonp): Return a name if one was passed to --daemon.
6288
5790ef40
DN
62892008-10-26 Romain Francoise <romain@orebokech.com>
6290
f9bd0df9 6291 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6292 (main): Create a pipe before forking, make the parent exit only after
6293 the child has closed its end of the pipe. Move closing the
6294 descriptors ...
6295 (Fdaemon_initialized): ... here. New function.
6296
f5385255
SM
62972008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6298
4d632321
SM
6299 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6300 the previous unoptimized table.
6301
f5385255
SM
6302 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6303 the distinction between non-nil and non-t value of `dedicated'.
6304
6c56a0f3
CY
63052008-10-25 Chong Yidong <cyd@stupidchicken.com>
6306
6307 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6308 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6309
fec89261
MR
63102008-10-25 Martin Rudalics <rudalics@gmx.at>
6311
6312 * window.c (Fget_buffer_window, Fdelete_windows_on)
6313 (Freplace_buffer_in_windows): Make buffer argument optional and
6314 rename to buffer_or_name.
6315
34fcddd0
CY
63162008-10-24 Chong Yidong <cyd@stupidchicken.com>
6317
f5385255
SM
6318 * xdisp.c (handle_single_display_spec, handle_display_prop):
6319 Undo 2005-05-16 change.
34fcddd0
CY
6320 (handle_stop): Pop iterator if it's loaded with an empty string.
6321 (get_overlay_strings_1): Don't save iterator if it's loaded with
6322 an empty string (bug#1201).
6323
064766f2
KH
63242008-10-24 Kenichi Handa <handa@m17n.org>
6325
6326 * ftfont.c (ftfont_otf_features): Fix previous change.
6327 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6328 calling ftfont_otf_features.
6329
f9bd0df9 63302008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6331
6332 * font.c (font_match_p): Fix for the case that a vector of
6333 characters is in script-representative-chars.
6334
1dae9197
MA
63352008-10-24 Michael Albinus <michael.albinus@gmx.de>
6336
6337 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6338 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6339 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6340 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6341 macro. (Bug#1186)
1dae9197 6342
f9bd0df9 63432008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6344
6345 * s/sol2-10.h: New file.
6346
878a4584
JB
63472008-10-23 Juanma Barranquero <lekktu@gmail.com>
6348
6349 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6350 poor beast has survived 9+ years and the jump from xterm.c!).
6351
cd265ca6
MR
63522008-10-23 Martin Rudalics <rudalics@gmx.at>
6353
6354 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6355 Reword doc-string.
f5385255 6356 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6357
472a4dc9
JB
63582008-10-23 Juanma Barranquero <lekktu@gmail.com>
6359
6360 * character.c (syms_of_character) <script-representative-chars>:
6361 <unicode-category-table>: Doc fixes.
6362
159bd5a2
NF
63632008-10-23 Noah Friedman <friedman@splode.com>
6364
6365 * coding.c (make_conversion_work_buffer): Check that
6366 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6367 Fget_buffer_create.
6368
49f9c344
KH
63692008-10-23 Kenichi Handa <handa@m17n.org>
6370
6371 * font.c (font_add_log): Check the values of extra properties.
6372
12bb3111
MR
63732008-10-22 Martin Rudalics <rudalics@gmx.at>
6374
6375 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6376 Reword doc-string.
6377 (Fset_window_parameter): Use NILP.
6378 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6379 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6380
bbeb4e99
JB
63812008-10-22 Juanma Barranquero <lekktu@gmail.com>
6382
6383 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6384
63852008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6386
6387 * nsfns.m (ns_appkit_version): New function.
6388 (x-server-version): Use it.
6389 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6390 (x-server-vendor): Don't check_ns().
6391
6392 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6393
a9b555d3
JB
63942008-10-22 Juanma Barranquero <lekktu@gmail.com>
6395
6396 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6397 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6398
4626499f
KH
63992008-10-22 Kenichi Handa <handa@m17n.org>
6400
e3681952
KH
6401 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6402 scripts.
6403
4626499f
KH
6404 * category.c (word_boundary_p): Check scripts instead of charset.
6405 Handle nil value in word-separating-categories and
6406 word-combining-categories.
6407 (syms_of_category): Fix docstrings of word-separating-categories
6408 and word-combining-categories.
6409
1560f91a
EZ
64102008-10-21 Eli Zaretskii <eliz@gnu.org>
6411
6412 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6413 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6414
f4668441
MR
64152008-10-21 Martin Rudalics <rudalics@gmx.at>
6416
6417 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6418 Rename arg "buffer" to "buffer_or_name".
6419 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6420 it optional.
6421 (no_switch_window): Remove since the return value is not used.
a9b555d3 6422 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6423 Consider window as dedicated when Fwindow_dedicated_p returns a
6424 non-nil value.
6425 * lisp.h: Remove prototype for no_switch_window.
6426
fd75ddb2
JD
64272008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6428
6429 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6430 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6431
07295713
KH
64322008-10-21 Kenichi Handa <handa@m17n.org>
6433
6434 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6435 check Vlatin_extra_code_table.
6436
712adc82
EZ
64372008-10-20 Eli Zaretskii <eliz@gnu.org>
6438
6439 * fileio.c (Fset_file_modes): Doc fix.
6440
f549eb0b
MA
64412008-10-19 Michael Albinus <michael.albinus@gmx.de>
6442
6443 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6444 in arrays.
6445
aac0c6e3
MR
64462008-10-19 Martin Rudalics <rudalics@gmx.at>
6447
6448 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6449 Mention kill-buffer in doc-string.
6450 (Fset_window_buffer): Reinsert tem check removed in last commit.
6451 (Fenlarge_window, Fshrink_window): Have argument names and
6452 doc-string follow Elisp manual more closely.
6453
64542008-10-18 Eli Zaretskii <eliz@gnu.org>
6455
6456 * fileio.c (Fset_file_modes): Doc fix.
6457
64582008-10-18 Martin Rudalics <rudalics@gmx.at>
6459
6460 * window.c (Fwindow_width, Fset_window_start)
6461 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6462 (Fdelete_windows_on, Freplace_buffer_in_windows):
6463 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6464 (Fwindow_dedicated_p): Make window argument optional.
6465 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6466 (Fset_window_buffer): Respect any non-nil dedicated value for
6467 window. Rename "buffer" argument to "buffer_or_name".
6468
64692008-10-18 Ulrich Mueller <ulm@gentoo.org>
6470
6471 * m/sh3.h: New file, machine description for SuperH.
6472
64732008-10-17 Martin Rudalics <rudalics@gmx.at>
6474
6475 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6476
64772008-10-17 Kenichi Handa <handa@m17n.org>
6478
6479 * ftfont.c (ftfont_otf_features): Fix indexing
6480 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6481
64822008-10-16 Magnus Henoch <mange@freemail.hu>
6483
6484 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6485 (Fdbus_call_method_asynchronously): Ditto.
6486 This change makes C-h f display the argument list.
6487
64882008-10-16 Chong Yidong <cyd@stupidchicken.com>
6489
6490 * fileio.c (Fexpand_file_name): Doc fix.
6491
6492 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6493 of :foreground and :background equivalent to unspecified (20.x
6494 compatibility).
6495
64962008-10-15 Eli Zaretskii <eliz@gnu.org>
6497
6498 * buffer.c (syms_of_buffer): Doc fix.
6499
65002008-10-14 Kenichi Handa <handa@m17n.org>
6501
6502 * font.c (font_clear_prop): When clearing font width, clear the
6503 average width field too.
6504
65052008-10-12 Andreas Schwab <schwab@suse.de>
6506
6507 * ftfont.c (ftfont_shape_by_flt): Make static.
6508 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6509
6510 * font.c: Don't include <m17n-flt.h>.
6511
65122008-10-10 Eli Zaretskii <eliz@gnu.org>
6513
6514 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6515
65162008-10-09 Eli Zaretskii <eliz@gnu.org>
6517
6518 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6519 away code.
6520
65212008-10-09 Chong Yidong <cyd@stupidchicken.com>
6522
6523 * dispnew.c (update_text_area): Avoid looping due to large glyph
6524 overhangs (bug#1070).
6525
65262008-10-09 Kenichi Handa <handa@m17n.org>
6527
6528 * fontset.c (face_for_char): If face->fontset is negative, just
6529 return ascii_face.
6530
f5385255
SM
6531 * font.c (font_delete_unmatched): Fix previous change.
6532 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6533
65342008-10-09 Martin Rudalics <rudalics@gmx.at>
6535
6536 * frame.c (Fraise_frame): On text-only terminals select frame in
6537 order to make it visible. (Bug#1061)
6538
65392008-10-08 Chong Yidong <cyd@stupidchicken.com>
6540
6541 * fontset.c (fontset_find_font): Check frame validity.
6542
65432008-10-07 Chong Yidong <cyd@stupidchicken.com>
6544
a9b555d3 6545 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6546 (xg_display_close): Allow Emacs to close all displays (bug#985).
6547
65482008-10-06 Andreas Schwab <schwab@suse.de>
6549
f5385255 6550 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6551
65522008-10-06 Chong Yidong <cyd@stupidchicken.com>
6553
f5385255 6554 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6555
a9b555d3 6556 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6557
6558 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6559 during initialization.
6560
65612008-10-04 Eli Zaretskii <eliz@gnu.org>
6562
6563 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6564 whole thing on MSDOS frames as well as on a TTY.
6565
6566 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6567 well as for TTY.
6568 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6569 well as on a TTY.
6570
6571 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6572 as well as for TTY.
6573
6574 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6575
6576 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6577 MSDOS frames as well.
6578
65792008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6580
6581 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6582 correct arguments.
b71ac3dd 6583 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6584
65852008-10-03 Glenn Morris <rgm@gnu.org>
6586
6587 * emacs.c (USAGE1): Add --daemon.
6588
65892008-10-02 Eli Zaretskii <eliz@gnu.org>
6590
6591 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6592 100, so it's in percents as advertised.
6593
65942008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6595
6596 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6597 (ns_output.current_cursor, ns_output.desired_cursor)
6598 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6599 (FRAME_NEW_CURSOR_COLOR): Remove.
6600
6601 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6602 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6603 enumeration (HOLLOW_BOX_CURSOR, etc.).
6604
6605 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6606 (draw_window_cursor): Simplify code.
f5385255
SM
6607 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6608 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6609 updates manually.
a9b555d3
JB
6610 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6611 Use core Emacs cursor types.
aac0c6e3 6612
b8ff72fa 6613 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6614
66152008-10-02 Martin Rudalics <rudalics@gmx.at>
6616
6617 * process.c (Faccept_process_output): Fix doc-string.
6618
66192008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6620
6621 * gmalloc.c (__sbrk): Also define for uClibc.
6622
6623 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6624 for uClibc.
6625
66262008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6627
6628 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6629 styles.
6630 (nsfont_open): Reenable the cache.
6631
66322008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6633
6634 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6635 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6636
66372008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6638
6639 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6640 a suspended terminal.
6641
66422008-09-30 Michael Albinus <michael.albinus@gmx.de>
6643
6644 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6645
66462008-09-30 Eli Zaretskii <eliz@gnu.org>
6647
6648 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6649
66502008-09-30 Chong Yidong <cyd@stupidchicken.com>
6651
6652 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6653 in a continued line coincides with a line beginning.
6654
66552008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6656
6657 * nsfont.m (nsfont_trait_distance): Fix bug.
6658 (nsfont_list): Return a list rather than a vector (syncs with Handa
6659 changes of 2008-05-14).
6660 (nsfont_open): Improve logging.
6661
66622008-09-29 Andreas Schwab <schwab@suse.de>
6663
6664 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6665
66662008-09-28 Martin Rudalics <rudalics@gmx.at>
6667
6668 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6669 name as char-resolve-modifiers.
6670 Reported by: Markus Triska <markus.triska@gmx.at>
6671
66722008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6673
6674 * dispnew.c (init_display): Return earlier when running as a daemon.
6675
66762008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6677
6678 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6679
66802008-09-27 Eli Zaretskii <eliz@gnu.org>
6681
6682 * composite.c (Fcomposition_get_gstring)
6683 (Fcompose_region_internal, Fcompose_string_internal)
6684 (Ffind_composition_internal): Doc fix.
6685 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6686 (syms_of_composite) <auto-composition-function>: Doc fix.
6687 (syms_of_composite) <composition-function-table>: Doc fix.
6688
66892008-09-25 Chong Yidong <cyd@stupidchicken.com>
6690
6691 * search.c (wordify): New argument for lax word-ends.
6692 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6693
66942008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6695
6696 * lisp.h (is_daemon): Declare.
6697 * dispnew.c (init_display): Do not try to initialize the terminal
6698 when running as a daemon.
6699
67002008-09-22 Chong Yidong <cyd@stupidchicken.com>
6701
6702 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6703 x_display_pixel_height.
6704
67052008-09-22 Martin Rudalics <rudalics@gmx.at>
6706
6707 * undo.c (record_point): Don't call Fundo_boundary for first
6708 change. (Bug#731)
6709
67102008-09-22 Juanma Barranquero <lekktu@gmail.com>
6711
6712 * emacs.c (Fdaemonp): Doc fix.
6713
67142008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6715
6716 * emacs.c (main): Place #ifdef in the proper place.
6717
67182008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6719
6720 * emacs.c (standard_args): Add --daemon.
6721 (main): Disconnect from the terminal when --daemon is passed.
6722 (is_daemon): New variable.
6723 (Fdaemonp): New function.
6724 (syms_of_emacs): Defsubr it.
6725
67262008-09-20 Chong Yidong <cyd@stupidchicken.com>
6727
6728 * xdisp.c (get_next_display_element): Handle string display
6729 correctly when checking for the end of a box run.
6730
67312008-09-20 Glenn Morris <rgm@gnu.org>
6732
6733 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6734 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6735 (Frename_file): Avoid copying to trash if a rename involves
6736 a delete. (Bug#964).
6737
67382008-09-20 Eli Zaretskii <eliz@gnu.org>
6739
6740 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6741 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6742 frames as well as termcap frames.
6743 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6744 get_named_tty.
6745
67462008-09-19 Eli Zaretskii <eliz@gnu.org>
6747
6748 * process.c (procfs_system_process_attributes): Fix cmdline in
6749 case /proc/PID/cmdline is empty.
6750
6751 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6752 x_display_pixel_height.
6753
67542008-09-19 Juanma Barranquero <lekktu@gmail.com>
6755
6756 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6757
6758 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6759 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6760
67612008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6762
6763 * dispextern.h (struct it): Move line_wrap away from the middle of
6764 bitfields. Move voffset in struct iterator_stack_entry after the
6765 bitfields. Move tab_width near after another short.
6766
67672008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6768
6769 * frame.h (struct frame): Move alpha from the middle of bitfields.
6770
6771 * window.h (struct window): Move frozen_window_start_p after the
6772 rest of the bitfields to reduce padding.
6773
67742008-09-18 Chong Yidong <cyd@stupidchicken.com>
6775
6776 * xterm.h (x_display_info): Remove `height' and `width' members.
6777
6778 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6779
6780 * w32term.h (w32_display_info): Remove `height', `width',
6781 `height_in', and `width_in' members.
6782
b8ff72fa
SM
6783 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6784 New functions.
aac0c6e3
MR
6785 (x_calc_absolute_position): Use them.
6786 (x_term_init): Omit removed `height' and `width' members.
6787
b8ff72fa
SM
6788 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6789 New functions.
aac0c6e3
MR
6790 (w32_read_socket, x_calc_absolute_position): Use them.
6791 (w32_initialize_display_info, w32_term_init): Omit removed members
6792 of w32_display_info.
6793
b8ff72fa
SM
6794 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6795 New functions.
6796 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 6797
b8ff72fa
SM
6798 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6799 New functions.
aac0c6e3
MR
6800 (x_calc_absolute_position): Use them.
6801 (x_term_init): Omit removed `height' and `width' members.
6802
6803 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
6804 (compute_tip_xy):
6805 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
6806 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6807 x_display_pixel_width.
6808
68092008-09-18 Kenichi Handa <handa@m17n.org>
6810
6811 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6812 (composition_compute_stop_pos): Fix handling of static composition.
6813 (Fcomposition_get_gstring): Check FROM and TO at first.
6814
68152008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6816
46e722a9 6817 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
6818 mixup (YAILOM).
6819
68202008-09-17 Chong Yidong <cyd@stupidchicken.com>
6821
6822 * indent.c (Fvertical_motion): Use position reported by iterator
6823 instead of PT for determining screen motion (bug#943).
6824
68252008-09-17 Romain Francoise <romain@orebokech.com>
6826
6827 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6828
68292008-09-17 Kenichi Handa <handa@m17n.org>
6830
6831 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6832
6833 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6834 if necessary.
6835
68362008-09-16 Kenichi Handa <handa@m17n.org>
6837
6838 * coding.c (make_conversion_work_buffer): Avoid calling
6839 Fget_buffer_create if it is not necessary.
6840
68412008-09-15 Martin Rudalics <rudalics@gmx.at>
6842
6843 * window.c (Fselect_window): Don't update window_select_count and
6844 use_time when norecord is not nil.
6845
68462008-09-14 Kenichi Handa <handa@m17n.org>
6847
6848 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6849 specpdl_ptr.
6850
68512008-09-12 Kenichi Handa <handa@m17n.org>
6852
6853 * indent.c (scan_for_column): Don't handle automatic composition
6854 if the current buffer is not associated with a window.
6855
6856 * composite.c (composition_reseat_it): If the current buffer is
6857 not associated with a window, ignore the automatic composition.
6858 (find_automatic_composition): Likewise.
6859
68602008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6861
6862 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6863 (Fgpm_mouse_stop): Use it.
6864 * termhooks.h (close_gpm): Declare.
6865 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6866 connection if Gpm_GetEvent fails.
6867
6868 * window.c (set_window_buffer): Always preserve current-buffer.
6869
68702008-09-12 Glenn Morris <rgm@gnu.org>
6871
6872 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6873
68742008-09-11 Glenn Morris <rgm@gnu.org>
6875
6876 * charset.c (charset-map-path): Doc fix.
6877
68782008-09-10 Kenichi Handa <handa@m17n.org>
6879
6880 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6881
6882 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6883 compose a grapheme cluster with the preceding base glyph.
6884
6885 * composite.c (composition_compute_stop_pos): Fix previous change.
6886 Reset cmp_it->id to -1 at first.
6887
68882008-09-10 Glenn Morris <rgm@gnu.org>
6889
6890 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6891
68922008-09-09 Chong Yidong <cyd@stupidchicken.com>
6893
6894 * keyboard.c (read_key_sequence): Reapply translation maps when
6895 switching keyboards.
6896
68972008-09-09 Kenichi Handa <handa@m17n.org>
6898
6899 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6900 characters.
6901
6902 * composite.c (FORWARD_CHAR): Fix calculation
6903 of (POSITION).pos_byte.
6904 (composition_compute_stop_pos): Limit the search of composition to
6905 at most 500 characters ahead. If we reach the limit or find a
6906 newline, set cmp_it->ch to -2 and return 0.
6907 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6908
69092008-09-08 Kenichi Handa <handa@m17n.org>
6910
6911 * indent.c (Fvertical_motion): Be sure to set
6912 it_overshoot_expected if it.cmp_it.id is non-negative.
6913
69142008-09-07 Andreas Schwab <schwab@suse.de>
6915
6916 * callproc.c (Fcall_process): Don't hold references to string data
6917 across garbage collection. Move initialisation of new_argv down
6918 to avoid compiler bug.
6919
69202008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6921
6922 * process.c (Fsystem_process_attributes): Doc fix.
6923
69242008-09-07 Chong Yidong <cyd@stupidchicken.com>
6925
6926 * callproc.c (Fcall_process): Canonicalize current directory name.
6927
6928 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6929 iterator advances to the next line if the current line ends in a
6930 continued tab.
6931
69322008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6933
6934 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6935 member to point to cmp_from.
6936
6937 * xdisp.c: Doc fix for references to gidx data member.
6938
69392008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6940
6941 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6942
69432008-09-07 Kenichi Handa <handa@m17n.org>
6944
6945 * composite.c (FORWARD_CHAR): Check STOP after
6946 incrementing (POSITION).pos.
6947
69482008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6949
6950 * process.c (Fsystem_process_attributes): Doc fix.
6951
69522008-09-06 Chong Yidong <cyd@stupidchicken.com>
6953
6954 * keyboard.c (Ftop_level): Doc fix.
6955
69562008-09-06 Eli Zaretskii <eliz@gnu.org>
6957
6958 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6959 minibuffer, don't let lower part of menu invade the echo area.
6960
6961 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6962 "char *q" to access menu text and advance through it. Revert the
6963 change that displayed ">" instead of ASCII character 0x10.
6964
69652008-09-05 Eli Zaretskii <eliz@gnu.org>
6966
6967 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6968 toggle boxes and radio buttons on MS-DOS as well.
6969
69702008-09-05 Kenichi Handa <handa@m17n.org>
6971
6972 * composite.c (autocmp_chars): Check lookback count.
6973 (composition_compute_stop_pos): Set cmp_it->lookback.
6974 (composition_reseat_it): Check lookback count.
6975 (struct position_record): New struct.
6976 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6977 (find_automatic_composition): New function.
6978 (composition_adjust_point): Use find_automatic_composition.
6979
6980 * dispextern.h (struct composition_it): New member lookback.
6981
69822008-09-02 Chong Yidong <cyd@stupidchicken.com>
6983
6984 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6985 if moving by a single line.
6986
69872008-09-02 Andreas Schwab <schwab@suse.de>
6988
6989 * xterm.c (x_delete_display): Fix merge error.
6990
6991 * fileio.c (Fexpand_file_name): Remove unused variables.
6992
69932008-09-02 Eli Zaretskii <eliz@gnu.org>
6994
6995 * fileio.c (Fexpand_file_name): Copy argument `name' into local
6996 storage on all platforms, not just on DOS_NT.
6997
69982008-09-02 Jason Rumney <jasonr@gnu.org>
6999
b8ff72fa
SM
7000 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7001 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7002
70032008-09-01 Chong Yidong <cyd@stupidchicken.com>
7004
7005 * xfaces.c (Finternal_set_alternative_font_family_alist)
7006 (Finternal_set_alternative_font_registry_alist): Properly copy
7007 entire alist structure.
7008
70092008-09-01 Kenichi Handa <handa@m17n.org>
7010
d66c0241 7011 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7012 representative chars of the script is a vector.
d66c0241
JB
7013 (ftfont_list): Handle the case where the representative chars of
7014 the script is a vector.
aac0c6e3
MR
7015
7016 * character.c (syms_of_character): Docstring of
7017 script-representative-chars fixed.
7018
70192008-08-31 Eli Zaretskii <eliz@gnu.org>
7020
7021 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7022 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7023 the menu. Allocate larger buffer for `text', to account for
7024 possible ^C characters.
7025
70262008-08-31 Martin Rudalics <rudalics@gmx.at>
7027
7028 * xdisp.c (prepare_menu_bars): Don't call
7029 Vwindow_size_change_functions with arg Qt.
7030
70312008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7032
7033 * font.h (font_range):
7034 * fileio.c (report_file_error):
46e722a9
SM
7035 * composite.c (composition_update_it): Yet another int/Lisp_Object
7036 mixup (YAILOM).
aac0c6e3
MR
7037
70382008-08-30 Glenn Morris <rgm@gnu.org>
7039
7040 * data.c (Fmake_variable_frame_local): Doc fix.
7041
7042 * frame.c (Fmodify_frame_parameters): Doc fix.
7043
70442008-08-30 Eli Zaretskii <eliz@gnu.org>
7045
7046 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7047 needed by GetTokenInformation.
7048 (w32_system_process_attributes): Check return values of all system
7049 APIs.
7050
7051 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7052 only when the state changes.
7053 (IT_update_begin, IT_update_end): Add termscript trace.
7054
7055 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7056 clipboard is unavailable. Set dst to NULL if it doesn't point to
7057 malloc'ed data.
7058 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7059 passing random values to xfree.
7060
7061 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7062 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7063
70642008-08-29 Jason Rumney <jasonr@gnu.org>
7065
7066 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7067
70682008-08-29 Eli Zaretskii <eliz@gnu.org>
7069
7070 * composite.c (fill_gstring_body): Avoid compiler warnings.
7071
7072 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7073 LGLYPH_SET_CODE to avoid compiler warnings.
7074
2ae37cf0 7075 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7076
7077 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7078
7079 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7080 LGLYPH_SET_CODE.
7081
70822008-08-29 Kenichi Handa <handa@m17n.org>
7083
7084 * fileio.c (report_file_error): Don't downcase the first character
7085 of errstring if it is still unibyte.
7086
70872008-08-29 Kenichi Handa <handa@m17n.org>
7088
7089 These changes are to re-implement the automatic composition so
7090 that it doesn't use text properties.
7091
7092 * Makefile.in (ftfont.o): Depend on composite.h.
7093 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7094
7095 * character.h (Vunicode_category_table): Extern it.
7096
7097 * character.c (Vunicode_category_table): New variable.
7098 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7099
7100 * chartab.c (optimize_sub_char_table): Perform more greedy
7101 optimization.
7102
b8ff72fa
SM
7103 * composite.h (enum composition_method):
7104 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7105 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7106 (Vcomposition_function_table): Extern it.
7107 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7108 (composition_gstring_put_cache, composition_gstring_from_id)
7109 (composition_gstring_p, composition_gstring_width)
7110 (composition_compute_stop_pos, composition_reseat_it)
7111 (composition_update_it, composition_adjust_point): Extern them.
7112 (Fcomposition_get_gstring): EXFUN it.
7113
d66c0241 7114 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7115 (Vcomposition_function_table)
7116 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7117 (gstring_hash_table, gstring_work, gstring_work_headers):
7118 New variables.
aac0c6e3
MR
7119 (gstring_lookup_cache, composition_gstring_put_cache)
7120 (composition_gstring_from_id, composition_gstring_p)
7121 (composition_gstring_width, fill_gstring_header)
7122 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7123 (composition_reseat_it, composition_update_it)
b8ff72fa 7124 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7125 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7126 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7127 Defsubr compostion_get_gstring.
7128
7129 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7130 cmp_id.
7131 (struct glyph_string): Delete the member gidx. New members
7132 cmp_id, cmp_from, and cmp_to.
7133 (enum it_method): Delete GET_FROM_COMPOSITION.
7134 (struct composition_it): New struct.
7135 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7136 Delete c, len, cmp_id, cmp_len in u.comp.
7137
7138 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7139 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7140 (enum lglyph_indices): Likewise.
b8ff72fa 7141 (font_range): Adjust extern.
aac0c6e3
MR
7142 (font_fill_lglyph_metrics): Extern it.
7143
7144 * font.c (QCf): New variable.
7145 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7146 (font_prepare_composition): Delete this function.
7147 (font_range): Type and arguments changed.
7148 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7149 (font_fill_lglyph_metrics): New function.
b8ff72fa 7150 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7151 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7152 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7153 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7154
7155 * fontset.h (font_for_char): Extern it.
7156
7157 * fontset.c (font_for_char): New function.
7158
7159 * ftfont.c: Include composite.h.
7160 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7161 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7162
7163 * indent.c: Include composite.h and dispextern.h.
7164 (check_composition): Delete this function.
7165 (scan_for_column): Handle composition by
7166 composition_compute_stop_pos, composition_reseat_it, and
7167 composition_update_it.
7168 (compute_motion): Likewise.
7169 (Fvertical_motion): Fix checking of composition.
7170
7171 * keyboard.c (adjust_point_for_property): Check composition by
7172 composition_adjust_point.
7173
b8ff72fa 7174 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7175 struct glyph_string.
7176
b8ff72fa
SM
7177 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7178 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7179 struct glyph.
7180 (produce_composite_glyph): Likewise.
7181
b8ff72fa
SM
7182 * w32term.c (x_draw_composite_glyph_string_foreground):
7183 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7184 (x_draw_glyph_string): Likewise.
7185
7186 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7187 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7188
7189 * xdisp.c: Include font.h.
7190 (it_props): Delete the entry for Qauto_composed.
7191 (init_iterator): Initialize it->cmp_it.id to -1.
7192 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7193 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7194 (handle_auto_composed_prop): Delete it.
7195 (handle_composition_prop): Handle only static composition.
7196 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7197 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7198 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7199 (pop_it): Likewise.
7200 (get_next_element): Delete next_element_from_composition.
7201 (CHAR_COMPOSED_P): New macro.
7202 (get_next_display_element): For automatic composition, get a face
7203 from the font in the glyph-string.
7204 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7205 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7206 (next_element_from_string): Check if the character at the current
7207 position is composed by CHAR_COMPOSED_P.
7208 (next_element_from_buffer): Likewise.
d66c0241
JB
7209 (next_element_from_composition): Adjust for the change of struct it.
7210 Update it->cmp_it.
b8ff72fa
SM
7211 (dump_glyph): Adjust for the change of struct glyph.
7212 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7213 it and struct glyph. Don't handle automatic composition here.
7214 (fill_gstring_glyph_string): New function.
7215 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7216 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7217 (BUILD_GSTRING_GLYPH_STRING): New macro.
7218 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7219 automatic composition.
b8ff72fa 7220 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7221 struct glyph.
b8ff72fa 7222 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7223
b8ff72fa 7224 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7225 the change of struct glyph_string.
7226 (x_draw_glyph_string): Likewise.
7227
72282008-08-29 Glenn Morris <rgm@gnu.org>
7229
7230 * buffer.c (word-wrap): Doc fix.
7231 * xdisp.c (truncate-partial-width-windows): Doc fix.
7232 Increase default to 50.
7233
72342008-08-29 Chong Yidong <cyd@stupidchicken.com>
7235
7236 * xdisp.c (update_tool_bar_unwind): New function.
7237 (update_tool_bar): Temporarily set selected frame before building
7238 tool-bar items.
7239
72402008-08-28 Michael Albinus <michael.albinus@gmx.de>
7241
7242 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7243 snprintf, respectively.
7244 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7245
72462008-08-28 Chong Yidong <cyd@stupidchicken.com>
7247
7248 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7249 LDFLAGS to GNUstep CC invocation.
7250
72512008-08-27 Chong Yidong <cyd@stupidchicken.com>
7252
7253 * indent.c (Fvertical_motion): Revert last change. Handle the
7254 general case where we are moving forward, and PT spans multiple
7255 screen lines.
7256
7257 * eval.c (find_handler_clause): Temporarily increase
7258 max-lisp-eval-depth while printing the backtrace buffer, to
7259 guarantee that help-mode code can run.
7260
72612008-08-27 Eli Zaretskii <eliz@gnu.org>
7262
7263 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7264 colors under -rv.
7265 (IT_set_frame_parameters): Don't swap foreground and background
7266 colors if `(reverse . t)' is present in the frame properties.
7267 (internal_terminal_init): Call init_frame_faces only for the
7268 initial frame.
7269
72702008-08-27 Andreas Schwab <schwab@suse.de>
7271
7272 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7273
72742008-08-27 Andreas Schwab <schwab@suse.de>
7275
7276 * search.c (search_buffer): Set char_base to zero only at the end.
7277
72782008-08-27 Kenichi Handa <handa@m17n.org>
7279
b8ff72fa 7280 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7281
72822008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7283
7284 * xterm.c (x_term_init): Temporarily hide the partially
7285 initialized terminal while calling vendor-specific-keysyms.
7286
72872008-08-26 Eli Zaretskii <eliz@gnu.org>
7288
7289 * msdos.c (internal_terminal_init): Most initializations done only
7290 once, especially initial_screen_colors[] and termscript open.
7291
72922008-08-26 Chong Yidong <cyd@stupidchicken.com>
7293
7294 * eval.c (Fcondition_case): Doc fix.
7295
7296 * widgetprv.h (EmacsFramePart): Change font member to the new font
7297 struct.
7298
7299 * widget.c: Include character.h and font.h for XSETFONT.
7300 (setup_frame_gcs): Compute X font id from font struct, just once.
7301
73022008-08-26 Eli Zaretskii <eliz@gnu.org>
7303
7304 * term.c (get_named_tty): Fix last change.
7305
73062008-08-26 Chong Yidong <cyd@stupidchicken.com>
7307
7308 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7309 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7310
73112008-08-25 Eli Zaretskii <eliz@gnu.org>
7312
7313 * frame.c (do_switch_frame): Mark previously displayed frame as
7314 obscured for FRAME_MSDOS_P frames as well.
7315
73162008-08-24 Eli Zaretskii <eliz@gnu.org>
7317
7318 * frame.c (make_terminal_frame): Initialize f->terminal,
7319 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7320 Set the top frame to newly created frame.
7321 (Fmake_terminal_frame): Reuse the_only_display_info.
7322
7323 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7324 estimating available memory.
7325
b97439ce 73262008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7327
7328 * nsterm.m (ns_draw_window_cursor): Don't call
7329 NSDisableScreenUpdates and NSEnableScreenUpdates on
7330 non-NS_IMPL_COCOA systems.
7331
73322008-08-23 Andreas Schwab <schwab@suse.de>
7333
7334 * process.c (procfs_system_process_attributes): Fix use of
7335 uninitialized variables.
7336
73372008-08-23 Eli Zaretskii <eliz@gnu.org>
7338
7339 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7340
7341 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7342 calling tty-set-up-initial-frame-faces.
7343
b8ff72fa
SM
7344 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7345 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7346
7347 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7348 addition to output_termcap.
7349
7350 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7351
7352 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7353 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7354 highlight.
7355
7356 * process.c [!subprocesses]: Define QCname.
7357 (syms_of_process): Intern and staticpro it.
7358
7359 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7360 Adjust for changes in encoding/decoding routines.
7361 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7362 encode_coding and decode_coding.
7363
b8ff72fa 7364 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7365
7366 * dosfns.c: Include frame.h before termhooks.h.
7367 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7368 variable termscript.
7369
7370 * s/msdos.h (USER_FULL_NAME): Define.
7371 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7372
7373 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7374 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7375 pw->pw_gecos.
7376
7377 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7378 SELECTED_FRAME as additional (1st) argument.
7379 (tty_read_avail_input): Handle output_msdos_raw in
7380 addition to output_termcap.
7381
7382 * msdos.c: Include frame.h before termhooks.h.
7383 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7384 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7385 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7386 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7387 (IT_set_terminal_modes, IT_reset_terminal_modes)
7388 (IT_set_frame_parameters): Use tty->termscript instead of a global
7389 variable termscript.
7390 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7391 global variable terminal_coding. Don't refer to
7392 Vnonascii_translation_table.
7393 (internal_terminal_init): Set Vwindow_system in current_kboard.
7394 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7395 Announce date and time of session start, if termscript is open.
7396 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7397 term.c:init_tty). Open termscript only of not already open.
7398 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7399 here instead of dos_ttraw. Don't initialize display if this is an
7400 initial tty. Don't set FRAME_FONT.
7401 (Vwindow_system_version): Bump to 23.
7402 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7403 is available, set up mouse_position_hook.
7404 (dos_ttraw, IT_set_terminal_modes): If called with initial
7405 terminal, do nothing.
7406 (IT_set_frame_parameters): Handle the Qtty_type frame
7407 parameter by calling internal_terminal_init.
7408 (dos_set_window_size, show_mouse_face)
7409 (clear_mouse_face, IT_note_mode_line_highlight)
7410 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7411 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7412 (initialize_msdos_display): New function.
7413 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7414 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7415 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7416 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7417 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7418 (request_sigio, unrequest_sigio): Don't define, now defined on
7419 sysdep.c.
7420 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7421
7422 * term.c [MSDOS]: Include msdos.h.
7423 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7424 conditional to DOS_NT. Allow only one call to this function in a
7425 session. Don't allocate a new struct tty_display_info; instead,
7426 reuse the_only_display_info. Call get_tty_size to get screen
7427 dimensions. Call init_baud_rate to set bad_rate.
7428 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7429 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7430 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7431 (get_tty_terminal, get_named_tty, Ftty_type)
7432 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7433 output_termcap.
b8ff72fa
SM
7434 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7435 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7436 only when subprocesses are supported.
aac0c6e3
MR
7437
7438 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7439 f->output_data.x.
7440 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7441 terminal devices.
7442
5582fbc7 7443 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7444 x_output.
7445 (FRAME_FONT): Use output_data.tty.
7446 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7447 (struct x_display_info): Rename from display_info. Update all users in
7448 msdos.c.
aac0c6e3 7449 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7450 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7451 (dos_ttraw): Update prototype.
7452
7453 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7454 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7455
74562008-08-23 Jason Rumney <jasonr@gnu.org>
7457
7458 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7459 (fn_TIFFSetDirectory): New library function used.
7460 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7461 (tiff_load): Use :index to select among multiple images. Set count
7462 property when multiple images exist.
7463 (gif_format): Use :index, not :image.
7464
74652008-08-23 Chong Yidong <cyd@stupidchicken.com>
7466
7467 * xdisp.c (try_scrolling): Check INT_MAX instead of
7468 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7469 to obtain INT_MAX.
7470
74712008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7472
7473 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7474
74752008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7476
7477 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7478 GNUstep library location.
7479
74802008-08-21 Chong Yidong <cyd@stupidchicken.com>
7481
7482 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7483 before using it.
7484
7485 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7486
74872008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7488
7489 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7490 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7491 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7492 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7493 (EmacsApp-cursor_blink_handler): Remove declaration.
7494 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7495 match 01 Feb 2008 changes in xterm.c.
7496 (ns_read_socket): Add cast to avoid warning.
7497 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7498 GNUstep.
7499
75002008-08-20 Chong Yidong <cyd@stupidchicken.com>
7501
7502 * xselect.c (x_get_foreign_selection): Return nil if desired
7503 selection could not be obtained, instead of signalling an error.
7504
75052008-08-20 David Reitter <david.reitter@gmail.com>
7506
7507 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7508 * nsterm.m: Remove ns-specific code for cursor blinking.
7509 (ns_draw_window_cursor): Clear cursor properly rather than
7510 redrawing the area. Respect width of bar cursors.
7511 These changes enable the use of generic blink-cursor-mode and
7512 generic cursor types in NS and support smooth cursor movements (do
7513 not blink off after command).
7514 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7515 Nextstep, too.
7516
75172008-08-19 Kenichi Handa <handa@m17n.org>
7518
7519 * font.c (Vfont_log_deferred): New variable.
7520 (font_add_log): Check Vfont_log_deferred.
7521 (font_deferred_log): New function.
7522
7523 * font.h (font_deferred_log): Extern it.
7524
7525 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7526 for sorting.
7527 (face_for_char): Use deferred log.
7528
75292008-08-18 Kenichi Handa <handa@m17n.org>
7530
7531 * fontset.c (face_for_char): Add font log.
7532
7533 * font.c (font_add_log): Add the font properties :script, :lang,
7534 and :otf in the log.
7535
75362008-08-17 Chong Yidong <cyd@stupidchicken.com>
7537
7538 * xdisp.c: Remove dead code.
7539 (handle_invisible_prop, next_overlay_string): Defer call to
7540 setup_for_ellipsis.
7541 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7542
75432008-08-15 Chong Yidong <cyd@stupidchicken.com>
7544
7545 * xfaces.c (lookup_derived_face): Properly handle possible zero
7546 return value of get_lface_attributes.
7547 (merge_faces): Don't tell lookup_derived_face to signal an error
7548 if face is not found.
7549
7550 * dired.c (Fdirectory_files): Doc fix.
7551
7552 * process.c (make_process): Initialize kill_without_query struct
7553 member.
7554
75552008-08-15 Eli Zaretskii <eliz@gnu.org>
7556
7557 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7558 Alternative calculation of totphys for Visual Studio 6.
7559
7560 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7561
7562 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7563 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7564 All users changed.
7565 (stat): Only root directory passed to GetDriveType. Allow RAM
7566 disk as well as local fixed disk when w32-get-true-file-attributes
7567 is set to `local'.
7568 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7569 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7570 (w32_cached_id, w32_add_to_cache): New functions.
7571 (get_name_and_id): Look account names in the cache before calling
7572 lookup_account_sid.
7573 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7574 New initialization flags.
7575 (globals_of_w32): Initialize them to zero.
7576 (w32_system_process_attributes): Use w32_cached_id and
7577 w32_add_to_cache.
7578
75792008-08-14 Lawrence Mitchell <wence@gmx.li>
7580
7581 * lread.c (Fread_char, Fread_char_exclusive): If no character
7582 event is read before timeout is reached, return nil, rather than
7583 converting to a number.
7584
75852008-08-14 Chong Yidong <cyd@stupidchicken.com>
7586
7587 * fns.c (use_dialog_box): Doc fix.
7588
7589 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7590 on OS X.
7591
75922008-08-13 Chong Yidong <cyd@stupidchicken.com>
7593
7594 * frame.c (Qns_parse_geometry): New var.
7595 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7596
75972008-08-11 Chong Yidong <cyd@stupidchicken.com>
7598
7599 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7600 space character in calculating tabs.
7601
76022008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7603
7604 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7605
76062008-08-10 Glenn Morris <rgm@gnu.org>
7607
7608 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7609 silence gcc "limited range of data type" warnings in some
7610 make_fixnum_or_float calls.
7611
76122008-08-09 Eli Zaretskii <eliz@gnu.org>
7613
7614 * w32.c (w32_system_process_attributes): If the process does not
7615 exist, return nil.
7616
7617 * w32.c: Include thelp32.h, psapi.h and coding.h.
7618 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7619 declarations.
7620 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7621 (Process32Next_Proc): New typedefs.
7622 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7623 (g_b_init_process32_next, g_b_init_open_thread_token)
7624 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7625 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7626 (g_b_init_get_process_working_set_size)
7627 (g_b_init_global_memory_status_ex): New static variables.
7628 (globals_of_w32): Initialize them.
7629 (create_toolhelp32_snapshot, process32_first, process32_next)
7630 (open_thread_token, impersonate_self, revert_to_self)
7631 (get_process_memory_info, get_process_working_set_size)
7632 (global_memory_status, global_memory_status_ex): New wrapper
7633 functions.
7634 (w32_list_system_processes, w32_system_process_attributes)
7635 (enable_privilege, restore_privilege, ltime, process_times):
7636 New functions.
7637 (convert_time_raw): New function.
7638 (convert_time): Remove conversion of FILETIME into time in 100
7639 nsec units, call convert_time_raw instead.
7640
7641 * process.h (w32_list_system_processes, w32_system_process_attributes):
7642 Add prototypes.
7643 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7644 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7645 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7646 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7647
7648 * process.c (Fsystem_process_attributes): Doc fix.
7649
76502008-08-08 Chong Yidong <cyd@stupidchicken.com>
7651
7652 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7653 a continued multi-char glyph; if so, advance to the actual glyph.
7654
76552008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7656
7657 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7658
7659 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7660 (.m.o): Use it.
7661 * config.in: Regenerate.
7662
76632008-08-07 Chong Yidong <cyd@stupidchicken.com>
7664
7665 * xdisp.c (redisplay_window): Revert last change.
7666 (try_window): Check bottom scroll margin too.
7667
76682008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7669
7670 * config.in: Regenerate.
7671
7672 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7673 -list-load-path-shadows'.
7674 (nsgui.h): Reduce number of things depending on it.
7675
76762008-08-06 Chong Yidong <cyd@stupidchicken.com>
7677
7678 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7679 instead of window-end which does the wrong thing at eob.
7680 (try_cursor_movement): Minor optimization.
7681 (redisplay_window): If scroll margin is defined, don't assume
7682 window doesn't need scrolling.
7683
76842008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7685
7686 * config.in: Regenerate.
7687
7688 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7689 (mostlyclean): Don't delete *.d under NS.
7690
7691 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7692
76932008-08-06 Kenichi Handa <handa@m17n.org>
7694
7695 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7696
76972008-08-06 Andreas Schwab <schwab@suse.de>
7698
7699 * config.in: Regenerate.
7700
77012008-08-05 Chong Yidong <cyd@stupidchicken.com>
7702
7703 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7704 forcing a window start.
7705
7706 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7707 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7708
77092008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7710
7711 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7712 argument.
7713
77142008-08-05 Juanma Barranquero <lekktu@gmail.com>
7715
7716 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7717 <scroll-down-aggressively, before-change-functions>:
7718 <after-change-functions>: Reflow docstrings.
7719
77202008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7721 Ken Raeburn <raeburn@gnu.org>
7722
7723 Dock menu customization, based on a patch by Ken Raeburn, plus some
7724 other fixes.
7725 * nsmenu.m (dockMenu): New variable.
7726 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7727
7728 * nsterm.h (dockMenu): Declare.
7729
7730 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7731 (ns_term_init): Initialize dockMenu.
7732 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7733 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7734 left.
7735
7736 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7737
77382008-08-04 Chong Yidong <cyd@stupidchicken.com>
7739
7740 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7741
7742 * config.in: Regenerate.
7743
77442008-08-04 Seiji Zenitani <zenitani@mac.com>
7745
7746 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7747
77482008-08-04 Chong Yidong <cyd@stupidchicken.com>
7749
7750 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7751
77522008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7753
7754 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7755
7756 * keyboard.h: Comment an #endif.
7757
7758 * lisp.h (have_menus_p): Adjust comment.
7759
7760 * menu.c (find_and_return_menu_selection): Fix comparison with
7761 client_data.
7762
7763 * nsmenu.m (popup_activated_flag): New variable.
7764 (popup_activated): New function.
7765 (menu-or-popup-active-p): New exported lisp definition.
7766 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7767 when popup done.
7768 (ns_popup_dialog): Set popup_activated_flag.
7769
7770 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7771 version for GNUstep (handled by conditional typedef in nsterm.m).
7772 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7773 in rgb.txt).
7774
7775 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7776
7777 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7778
7779 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7780
7781 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7782 shortcircuit if popup_activated like GTK and X toolkit.
7783
7784 * m/inter386.h: Change DARWIN to DARWIN_OS.
7785
7786 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7787 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7788 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7789 comment on NO_SOCK_SIGIO.
7790
77912008-08-03 Chong Yidong <cyd@stupidchicken.com>
7792
7793 * nsterm.m (windowDidResize): Remove stopModal call.
7794
77952008-08-03 Andreas Schwab <schwab@suse.de>
7796
7797 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7798 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7799
78002008-08-02 Chong Yidong <cyd@stupidchicken.com>
7801
7802 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7803 Don't use uninitialized pointer variable when using getrlimit.
7804
78052008-08-02 Jason Rumney <jasonr@gnu.org>
7806
7807 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7808
78092008-08-02 Eli Zaretskii <eliz@gnu.org>
7810
7811 * alloc.c (NSTATICS): Bump to 0x640.
7812
7813 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7814
7815 * lisp.h: Add prototype for directory_files_internal.
7816
7817 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7818 New functions.
7819 (syms_of_process): Defsubr them. Add initializations for various
7820 Q* symbols used in procfs_system_process_attributes.
7821 (procfs_list_system_processes, procfs_system_process_attributes)
7822 [HAVE_PROCFS]: New functions.
7823 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7824 (procfs_get_total_memory): New functions.
7825
78262008-08-01 Juanma Barranquero <lekktu@gmail.com>
7827
7828 * xfaces.c (Fx_load_color_file): Fix previous change;
7829 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7830
78312008-08-01 Michael Albinus <michael.albinus@gmx.de>
7832
7833 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7834
78352008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7836
7837 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7838
78392008-08-01 Chong Yidong <cyd@stupidchicken.com>
7840
7841 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7842
7843 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7844 define NSApplicationDelegateReplySuccess.
7845 (EmacsView -converstationIdentifier): Use long instead of
7846 NSInteger for GNUstep, since it doesn't have NSInteger.
7847
7848 * xmenu.c: Revert last change.
7849
7850 * keyboard.h: Fix last change.
7851
78522008-08-01 Juanma Barranquero <lekktu@gmail.com>
7853
7854 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7855 on Windows.
7856
78572008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7858
7859 Warning clearing and clean-up in NS port.
7860 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7861 Add prototypes.
7862 * nsgui.h (FACE_DEFAULT): Remove, unused.
7863 (XGCValues): Change colors to unsigned long.
7864 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7865 nsterm.m.
7866 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7867 (ns_list_fonts): Remove, unused.
7868 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7869 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7870 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7871 (nsfont_draw): Compare face colors to 0, not nil.
7872 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7873 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7874 (-addSubmenuWithTitle:): Use NSMenuItem class.
7875 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7876 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7877 (ns_clip_to_row): Make gc arg a BOOL.
7878 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7879 ns_clip_to_row() call.
7880 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7881 used). Cast FRAME_FONT assignments.
7882 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7883 (ns_string_to_lispmod): Change arg to const char.
7884 (ns_term_init): Use NSMenuItem class.
7885 (EmacsApp -openFile:): Move to different section of file.
7886 (EmacsApp -application:openFiles:): Don't return a value, call
7887 -replyToOpenOrPrint:.
7888 (EmacsView -keyDown:): Fix up cast.
7889 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7890 (EmacsView -menuDown:): Cast tag in call to
7891 find_and_call_menu_selection().
7892 (ns_list_fonts): Remove, unused.
7893 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7894 (ns_fontname_to_xlfd): Make static.
7895 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7896 Remove prototypes (now in keyboard.h).
7897 (next_menubar_widget_id): Remove, unused.
7898 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7899 Remove prototypes (now in keyboard.h).
7900 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7901
79022008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7903
7904 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7905 (floatfns.o): Depend on syssignal.h.
7906 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7907
7908 * systty.h: Fix previous change that removed BSD_TERMIOS.
7909 Add comments to #ifdefs.
7910
79112008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7912
7913 * w32fns.c (w32-load-color-file): Remove.
7914 (x-open-connection): Use renamed Fx_load_color_file.
7915 * xfaces.c (x-load-color-file): Add.
7916 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7917 Emacs.clr.
7918 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7919
79202008-07-31 Michael Albinus <michael.albinus@gmx.de>
7921
7922 * dbusbind.c (Fdbus_call_method_asynchronously)
7923 (Fdbus_method_error_internal): New defuns.
7924 (xd_read_message): Handle also reply messages.
7925 (Vdbus_registered_functions_table): Extend docstring.
7926
79272008-07-31 Juanma Barranquero <lekktu@gmail.com>
7928
7929 * keyboard.c (gobble_input): Fix previous change.
7930
79312008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7932
7933 * bitmaps/README:
7934 * xfns.c:
7935 * termcap.c:
7936 * term.c:
7937 * syswait.h:
7938 * systty.h:
7939 * systime.h:
7940 * syssignal.h:
7941 * sysdep.c:
7942 * process.h:
7943 * process.c:
7944 * print.c:
7945 * ndir.h:
7946 * lread.c:
7947 * keyboard.c:
7948 * getpagesize.h:
7949 * floatfns.c:
7950 * fileio.c:
7951 * emacs.c:
7952 * doc.c:
7953 * dispnew.c:
7954 * dired.c:
7955 * data.c:
7956 * callproc.c:
7957 * buffer.c:
7958 * README:
7959 * Makefile.in:
7960 * s/template.h:
7961 * s/msdos.h:
7962 * m/vax.h: Remove VMS support.
7963 * s/vms.h:
7964 * vlimit.h:
7965 * uaf.h:
7966 * temacs.opt:
7967 * param.h:
7968 * ioctl.h: Remove file.
7969
79702008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7971
7972 * s/ms-w32.h (MULTI_KBOARD): Remove.
7973 * xterm.c:
7974 * xselect.c:
7975 * xfns.c:
7976 * window.c:
7977 * w32term.c:
7978 * w32fns.c:
7979 * terminal.c:
7980 * termhooks.h:
7981 * term.c:
7982 * sysdep.c:
7983 * keyboard.h:
7984 * keyboard.c:
7985 * frame.h:
7986 * frame.c:
7987 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7988 * config.in: Regenerate.
7989
79902008-07-30 Jason Rumney <jasonr@gnu.org>
7991
7992 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
7993
7994 * w32font.c (w32font_encode_char): Leave as unicode if in range.
7995 (w32font_open_internal): Get unicode version of textmetrics.
7996 Don't enable or disable glyph indices here.
7997 (w32font_open): Disable use of glyph indices.
7998
7999 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8000
80012008-07-30 Chong Yidong <cyd@stupidchicken.com>
8002
8003 * minibuf.c (Vread_buffer_function): Doc fix.
8004
80052008-07-30 John Paul Wallington <jpw@pobox.com>
8006
8007 * minibuf.c (read_buffer_completion_ignore_case): New var.
8008 (Fread_buffer): Use it.
8009
80102008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8011
8012 * systty.h (sensemode): Remove empty #if. Remove reference to
8013 BSD_TERMIOS, unused.
8014
8015 * sysdep.c: Remove reference to DGUX.
8016 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8017
8018 * config.in: Regenerate.
8019
80202008-07-30 Jason Rumney <jasonr@gnu.org>
8021
8022 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8023
80242008-07-29 Jason Rumney <jasonr@gnu.org>
8025
8026 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8027 is populated.
8028 (uniscribe_encode_char): Always use uniscribe.
8029 Avoid using context if cache is populated.
8030
80312008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8032
8033 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8034 open menu.
8035
8036 * gtkutil.c (menu_nav_ended): Remove.
8037 (create_menus): Remove signal connect for menu_nav_ended.
8038
80392008-07-28 Chong Yidong <cyd@stupidchicken.com>
8040
8041 * xdisp.c (redisplay_window): Check return value of
8042 compute_window_start_on_continuation_line before forcing a window
8043 start.
8044
80452008-07-28 Jason Rumney <jasonr@gnu.org>
8046
8047 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8048
8049 * w32term.c (w32_enable_unicode_output, cleartype_active):
8050 Remove obsolete display options.
8051 (x_draw_glyph_string_background): Don't use old cleartype_active
8052 workaround.
8053 (w32_initialize): Remove cleartype_active initialization.
8054 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8055
80562008-07-28 Andreas Schwab <schwab@suse.de>
8057
8058 * lisp.h (init_weak_hash_tables, syms_of_font)
8059 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8060 (remove_hash_entry): Don't declare.
8061 * eval.c (maybe_call_debugger): Make static and move before use.
8062 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8063 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8064 * xterm.h (x_set_frame_alpha): Declare.
8065
80662008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8067
8068 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8069 (create_menus): Connect selection-done to menu_nav_ended.
8070
80712008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8072
8073 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8074 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8075 parameter with read of 'alpha' one.
8076 (Qns_frame_parameter): Remove.
5582fbc7 8077 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8078 (next-selection-coding-system, Vselection_coding_system)
8079 (Vnext_selection_coding_system): Drop.
8080
80812008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8082
8083 * nsfns.m (do-applescript, do_applescript): Rename to
8084 ns-do-applescript, ns_do_applescript, and move within file.
8085
80862008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8087
8088 Remove support for Mac Carbon.
8089 * mactoolbox.c:
8090 * macterm.h:
8091 * macterm.c:
8092 * macselect.c:
8093 * macmenu.c:
8094 * macgui.h:
8095 * macfns.c:
8096 * mac.c: Remove file.
8097 * s/darwin.h:
8098 * m/intel386.h:
8099 * xfaces.c:
8100 * xdisp.c:
8101 * window.c:
8102 * tparam.c:
8103 * termhooks.h:
8104 * termcap.c:
8105 * term.c:
8106 * syssignal.h:
8107 * sysselect.h:
8108 * sysdep.c:
8109 * process.c:
8110 * lread.c:
8111 * lisp.h:
8112 * keyboard.c:
8113 * image.c:
8114 * fringe.c:
8115 * frame.h:
8116 * frame.c:
8117 * fontset.c:
8118 * font.h:
8119 * font.c:
8120 * fns.c:
8121 * fileio.c:
8122 * emacs.c:
8123 * dispnew.c:
8124 * dispextern.h:
8125 * config.in:
8126 * atimer.c:
2ae37cf0 8127 * Makefile.in: Remove code for Carbon.
aac0c6e3 8128
f0131492 81292008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8130
8131 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8132
81332008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8134
8135 * macterm.h (kCGBitmapByteOrder32Host): New define for
8136 non-universal SDKs.
8137
8138 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8139 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8140
8141 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8142 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8143
81442008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8145
8146 * w32inevt.c: Include dispextern.h.
8147
81482008-07-26 Andreas Schwab <schwab@suse.de>
8149
8150 * print.c (print_object): Fix off-by-one in last change.
8151
81522008-07-25 Juanma Barranquero <lekktu@gmail.com>
8153
8154 * term.c (syms_of_term): Don't initialize default_orig_pair,
8155 default_set_foreground and default_set_background on Windows.
8156
81572008-07-25 Jason Rumney <jasonr@gnu.org>
8158
8159 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8160 ScriptItemize. Clean up return value checking. Remove unused
8161 variables.
8162 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8163 shaping engine.
8164
8165 * w32font.c (w32font_has_char): Handle the case where we can't
8166 determine the script for a character.
8167
81682008-07-25 Chong Yidong <cyd@stupidchicken.com>
8169
8170 * term.c (syms_of_term): Initialize default_orig_pair,
8171 default_set_foreground, and default_set_background.
8172
8173 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8174 clash (bug#86).
8175 (getloadavg): Callers changed.
8176
8177 * image.c (svg_load_image): Fix last change.
8178 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8179 image size is valid. Use g_object_unref instead of deprecated
8180 rsvg_handle_free to free rsvg handle.
8181 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8182
81832008-07-25 Jason Rumney <jasonr@gnu.org>
8184
8185 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8186 surrogates before looking up glyph index.
8187 (w32font_text_extents): Encode as surrogates if falling back to
8188 functions that need UTF-16 wide chars.
8189
8190 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8191 BMP as surrogates before looking up glyph index.
8192
81932008-07-25 Chong Yidong <cyd@stupidchicken.com>
8194
8195 * image.c (svg_load_image): Check for failure in return value of
8196 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8197
81982008-07-25 Jason Rumney <jasonr@gnu.org>
8199
8200 * w32font.c (Fx_select_font): Reverse sense of second arg.
8201
82022008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8203
8204 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8205 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8206
8207 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8208 (PURESIZE): Use it.
8209
82102008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8211
8212 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8213 * m/alpha.h (TEXT_END):
8214 * m/ibmrs6000.h (TEXT_END):
8215 * m/macppc.h (TEXT_END):
8216 * s/darwin.h (TEXT_END):
8217 * s/msdos.h (TEXT_END): Remove, unused.
8218 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8219 * s/cygwin.h: Remove comment.
8220
8221 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8222 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8223 * m/intel386.h (DOT_GLOBAL_START):
8224 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8225 (USG): Remove, file not used on USG platforms.
8226
8227 * Makefile.in (HAVE_X11): Remove empty #else.
8228
82292008-07-24 Andreas Schwab <schwab@suse.de>
8230
8231 * fileio.c (Finsert_file_contents): Properly adjust undo list
8232 after format conversion.
8233
82342008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8235
8236 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8237 (menu_nav_ended): Remove.
8238 (create_menus): Remove signal connect for menu_nav_ended.
8239 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8240 create_menus.
8241 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8242
82432008-07-23 Jason Rumney <jasonr@gnu.org>
8244
8245 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8246 with opened font.
8247 (w32font_open): Set font type to gdi.
8248
8249 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8250
82512008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8252
8253 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8254 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8255 defines it.
8256 * unexec.c (ADDR_CORRECT): Define unconditionally.
8257
8258 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8259
8260 * unexec.c: Remove code depending on !COFF and USG, the file is
8261 not used for such systems.
8262
8263 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8264 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8265 (LD_SWITCH_SYSTEM_1): Remove, update users.
8266
8267 * s/darwin.h (DATA_END):
8268 * m/intel386.h (DATA_END):
8269 * m/ibmrs6000.h (DATA_END):
8270 * m/alpha.h (DATA_END): Remove, unused.
8271
8272 * config.in: Regenerate.
8273 * s/ms-w32.h (subprocesses): Define unconditionally.
8274 * s/template.h (subprocesses): Update comment.
8275 * s/vms.h (subprocesses):
8276 * s/usg5-4.h (subprocesses):
8277 * s/hpux10-20.h (subprocesses):
8278 * s/gnu-linux.h (subprocesses):
8279 * s/cygwin.h (subprocesses):
8280 * s/bsd-common.h (subprocesses):
8281 * s/aix4-2.h (subprocesses):
8282 * s/darwin.h (subprocesses): Do not define, defined by default now.
8283
8284 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8285 Remove all references.
8286 (temacs): Add GNUstep specific ld flags.
8287
8288 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8289 similarly to what X does.
8290
82912008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8292
8293 * nsfns.m (x-list-fonts): Remove.
8294 (syms_of_nsfns): Drop the x-list-fonts declaration.
8295 * nsterm.m: Get rid of remaining "//" comments.
8296
82972008-07-22 Chong Yidong <cyd@stupidchicken.com>
8298
8299 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8300
8301 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8302 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8303 (Fns_own_selection_internal, Fx_disown_selection_internal)
8304 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8305
8306 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8307 ... */' style of docstrings. Doc fixes.
8308
83092008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8310
8311 * terminfo.c (UP, BC, PC): Undo previous change.
8312
8313 * nsfns.m: Rename ns prefixed functions/variables to the
8314 corresponding x versions. Update references.
8315
83162008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8317
8318 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8319
83202008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8321
8322 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8323 Remove forwarding functions.
8324 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8325 non-static.
8326 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8327 non-static.
8328 (ns_frame_parm_handlers): Use the new names.
8329 (syms_of_nsfns): Move to the end of file.
8330
8331 * nsterm.m (syms_of_nsterm): Move to the end of file.
8332
8333 * dispnew.c (init_display): Remove code for X10.
8334
83352008-07-22 Jason Rumney <jasonr@gnu.org>
8336
8337 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8338 bare drive.
8339
83402008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8341
8342 * nsterm.m (syms_of_nsterm): Remove debugging println.
8343
83442008-07-22 David Reitter <david.reitter@gmail.com>
8345
8346 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8347 Carbon implementation of the same functionality: execute arbitrary
8348 AppleScript code.
8349
83502008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8351
8352 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8353 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8354 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8355 (Fx_display_mm_height, Fx_display_mm_width)
8356 (Fx_display_backing_store, Fx_display_visual_class)
8357 (Fx_display_save_under, Fx_open_connection)
8358 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8359 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8360 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8361 (Fx_display_pixel_width, Fx_display_pixel_height)
8362 (Fx_display_usable_bounds, Fx_display_planes)
8363 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8364 ... */' style of docstrings.
8365
83662008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8367
8368 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8369 on this platform.
8370 (mips):
8371 * m/iris4d.h (mips): Do not define.
8372 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8373
8374 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8375
8376 * image.c:
8377 * nsfns.m:
8378 * nsselect.m:
8379 * nsterm.h:
8380 * nsterm.m: Rename ns prefixed functions/variables to the
8381 corresponding x versions. Update references.
8382
8383 * m/ibms390x.h (NO_REMAP): Do not undefine.
8384
8385 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8386
83872008-07-21 Chong Yidong <cyd@stupidchicken.com>
8388
8389 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8390 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8391 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8392 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8393 (Fns_display_mm_height, Fns_display_mm_width)
8394 (Fns_display_backing_store, Fns_display_visual_class)
8395 (Fns_display_save_under, Fns_open_connection)
8396 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8397 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8398 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8399 (Fns_display_pixel_width, Fns_display_pixel_height)
8400 (Fns_display_usable_bounds, Fx_display_planes)
8401 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8402
84032008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8404
8405 * print.c (print_object): Check print_depth before searching for
8406 circularities.
8407
84082008-07-21 Michael Albinus <michael.albinus@gmx.de>
8409
8410 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8411 only sprintf.
8412
84132008-07-21 Kenichi Handa <handa@m17n.org>
8414
8415 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8416
84172008-07-20 Andreas Schwab <schwab@suse.de>
8418
8419 * syntax.c (find_start_pos, find_start_value)
8420 (find_start_value_byte, find_start_begv, find_defun_start)
8421 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8422
84232008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8424
8425 * s/sol2-3.h: Insert contents of s/sol2.h.
8426 (LD_SWITCH_SYSTEM): Remove redundant definition.
8427 * s/sol2.h: Remove, unused.
8428
84292008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8430
8431 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8432
84332008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8434
8435 * Makefile.in (ns_appdir): Fix typo in find command.
8436
84372008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8438
8439 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8440
8441 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8442 added not supported anymore.
8443
8444 * s/usg5-4-2.h (LIBS_SYSTEM):
8445 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8446
8447 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8448 * s/lynxos.h (GETPGRP_NO_ARG):
8449 * s/hpux10-20.h (NO_SIOCTL_H):
8450 * s/gnu.h (GETPGRP_NO_ARG):
8451 * s/gnu-linux.h (NO_SIOCTL_H):
8452 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8453 * s/cygwin.h (GETPGRP_NO_ARG):
8454 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8455 (C_DEBUG_SWITCH): Remove duplicate definition.
8456
8457 * m/ibms390.h: Remove boilerplate comments.
8458
8459 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8460
8461 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8462 (wait_reading_process_output): Remove code for SunOS, platform not
8463 supported anymore. Use SOLARIS2 instead of sun.
8464
84652008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8466
8467 * font.c (font_open_by_name): Under NS, default lface height to zero.
8468 (font_open_for_lface): Under NS, set size based on frame fontsize.
8469 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8470 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8471
84722008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8473
8474 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8475 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8476 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8477 YES/NO.
8478 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8479 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8480 * Makefile.in (clean): Clear out build destination dir.
8481
84822008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8483
8484 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8485 xterm, xselect.
8486 * lisp.h: Remove declaration of hash_remove.
8487 * nsgui.h: Remove redefinitions of hash_remove.
8488 * fns.c (hash_remove): Rename to hash_remove_from_table.
8489
84902008-07-19 Seiji Zenitani <zenitani@mac.com>
8491
8492 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8493 strdup() the family UTF8String before modifying it.
8494
84952008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8496
8497 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8498 NS_FACE_BACKGROUND with 0 instead of nil.
8499 * nsfont.m (nsfont_draw): Same.
8500
85012008-07-19 Chong Yidong <cyd@stupidchicken.com>
8502
8503 * nsfns.m (ns_set_background_color): Fix crash.
8504
85052008-07-18 Chong Yidong <cyd@stupidchicken.com>
8506
8507 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8508
85092008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8510
8511 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8512
85132008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8514
8515 * gtkutil.c: Include <config.h> instead of "config.h".
8516
8517 * lisp.h (Foverlay_buffer): Add EXFUN.
8518
8519 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8520 child process to complete child_setup. Undo 2005-09-21 change.
8521
8522 * s/darwin.h: Mention setsid after vfork.
8523
85242008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8525
8526 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8527 Depend on macgui.h.
8528
8529 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8530 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8531
8532 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8533 and f19.
8534 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8535
8536 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8537 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8538 Remove enumerators.
8539
8540 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8541 Check if FACE_FROM_ID returns NULL.
8542
85432008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8544
8545 * w32inevt.c (change_frame_size): Remove extern declaration.
8546 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8547 change_frame_size.
8548
85492008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8550
8551 * getloadavg.c: Revert last change (2008-07-15).
8552
85532008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8554
8555 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8556 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8557 from configure.
8558
85592008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8560
8561 * s/sol2.h:
8562 * s/sol2-4.h: Reorganize conditionals.
8563
8564 * ecrt0.c: Remove code depending on m68000, not used anymore.
8565
8566 * fns.c (hash_remove): Make static.
8567 * lisp.h (hash_remove): Don't prototype.
8568
8569 * m/ibmrs6000.h:
8570 * m/ibms390x.h:
8571 * m/macppc.h: Remove boilerplate comments.
8572
8573 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8574 Solaris, which does not need them.
8575
8576 * m/vax.h: Remove comments about unsupported systems.
8577
8578 * s/darwin.h: Reorganize ifdefs.
8579
85802008-07-17 Andreas Schwab <schwab@suse.de>
8581
8582 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8583
85842008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8585
8586 Use SDATA. Follow coding convention of placing operators at
8587 beginning of next line rather than end of previous line, and placing
8588 spaces around infix operators.
8589
8590 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8591 in case it was defined already.
8592 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8593 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8594 ns_default.
8595 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8596 Lisp_Objects.
8597 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8598 (ns_defined_color, ns_color_to_lisp): Declare.
8599 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8600 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8601 it's accepted even with USE_LISP_UNION_TYPE.
8602 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8603 (update_frame_tool_bar): Remove apparently obsolete tests for
8604 non-integerness of f->tool_bar_lines.
8605 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8606 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8607 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8608 (nsfont_open): Don't confuse NULL for Qnil.
8609 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8610 * menu.h (find_and_call_menu_selection):
8611 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8612 (find_and_return_menu_selection): Always return something.
8613 * frame.h: Include dispextern.h for Display_Info.
8614 (display_x_get_resource): Declare.
8615
86162008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8617
8618 * syntax.c: Remove stdio.h include accidentally introduced in
8619 Emacs.app commit.
8620 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8621 NS_IMPL_COCOA.
8622 * keyboard.c (handle_async_input, input_available_signal): Remove
8623 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8624
86252008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8626
8627 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8628 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8629 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8630 Use SDATA.
8631
8632 * keymap.c: Remove all NS-specific code.
8633 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8634 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8635 where_is_preferred_modifier, return a different value depending on how
8636 preferred is the binding.
8637 (where_is_internal): Adjust accordingly.
8638 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8639 Adjust to new preferred_sequence_p.
8640 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8641 * keyboard.c (parse_solitary_modifier): Not static any more.
8642 * keyboard.h (parse_solitary_modifier): Declare.
8643
86442008-07-16 Andreas Schwab <schwab@suse.de>
8645
8646 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8647 of easymenu.
8648
86492008-07-16 Chong Yidong <cyd@stupidchicken.com>
8650
8651 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8652 that we don't move off the line.
8653
86542008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8655
8656 * keyboard.c (Qsuper): Remove.
8657 (parse_menu_item): Don't call where_is_internal specially for NS.
8658
86592008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8660
8661 * s/gnu-linux.h: Remove boilerplate comments.
8662
8663 * m/alpha.h (__ELF__): Consolidate conditions.
8664
8665 * m/m68k.h (linux): Use GNU_LINUX instead.
8666 Remove boilerplate comments.
8667
8668 * m/intel386.h: Undo refactoring from previous change.
8669 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8670 too, remove dead code.
8671 (linux): Use GNU_LINUX instead.
8672
86732008-07-16 Jason Rumney <jasonr@gnu.org>
8674
8675 * w32gui.h: Repeat 26 June changes lost by last change.
8676
86772008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8678
8679 * systty.h: Remove code for Aix on 386, unsupported platform.
8680
8681 * s/ms-w32.h: Remove boilerplate comments.
8682 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8683
8684 * s/gnu-linux.h (TERM): Remove support.
8685 (HAVE_SYSVIPC): Remove, unused.
8686 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8687 for this system.
8688
8689 * process.c: Remove support for IRIS, unused.
8690 Remove support for TERM, not relevant anymore.
8691
8692 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8693 used with the definition.
8694
8695 * s/aix4-2.h (static): Do not undef.
8696
8697 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8698 only used on Aix.
8699 (HAVE_SYSVIPC): Remove, unused.
8700
8701 * m/hp800.h (CANNOT_DUMP): Do not undef.
8702
8703 * m/alpha.h: Fix comment.
8704
8705 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8706 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8707 used by this configuration.
8708 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8709 * unexec.c: Remove code depending on HPUX and
8710 USG_SHARED_LIBRARIES, not used with this file. Remove code
8711 depending on IRIS, unused. Remove if 0-ed code.
8712
8713 * s/template.h: Remove comments about static.
8714
8715 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8716 Remove if 0-ed code.
8717 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8718 were the same as the default.
8719 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8720 Remove boilerplate comments.
8721 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8722 (HAVE_SYSVIPC): Remove, unused.
8723 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8724
8725 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8726 Remove boilerplate comments.
8727 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8728 Remove boilerplate comments.
8729 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8730 Remove boilerplate comments.
8731 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8732
8733 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8734 USG systems which do not use DATA_SEG_BITS.
8735 Refactor code. Remove boilerplate comments.
8736
8737 * m/ibms390.h:
8738 * m/m68k.h:
8739 * s/bsd-common.h:
8740 * s/cygwin.h:
8741 * s/darwin.h:
8742 * s/freebsd.h:
8743 * s/gnu.h:
8744 * s/msdos.h: Remove boilerplate comments.
8745
8746 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 8747 do not use this file.
aac0c6e3
MR
8748 (IRIS_4D): Remove, unused.
8749
8750 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 8751 do not use this file.
aac0c6e3
MR
8752 (SIGN_EXTEND_CHAR):
8753 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8754 * unexmips.c: Remove file, unused.
8755
8756 * editfns.c (Fuser_full_name): Replace the only use of
8757 USER_FULL_NAME with its value.
8758 * config.in: Regenerate.
8759
87602008-07-16 David Reitter <david.reitter@gmail.com>
8761
8762 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8763 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8764
87652008-07-16 Glenn Morris <rgm@gnu.org>
8766
8767 * emacs.c (system-type): Doc fix.
8768
87692008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8770
8771 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8772 If the cache doesn't work, let's fix it, rather than work around it.
8773
87742008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8775
8776 * Makefile.in: Correct additions for nsfont.o in last commit.
8777 * nsfont.m: New file (forgot last commit).
8778
87792008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8780
8781 * callproc.c (set_initial_environment): Initialize
8782 Vprocess_environment under CANNOT_DUMP (fixes crash when
8783 batch-compiling for bootstrap).
8784
87852008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8786 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8787
8788 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8789 fix crash due to different init order.
8790
87912008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8792
8793 Changes and additions for NeXTstep windowing system (Cocoa and
8794 GNUstep) support.
8795
8796 * Makefile.in:
8797 * config.in: Support defines and build commands for NS port.
8798 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8799 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8800 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8801 windowing.
8802 (struct face): Add synth_ital field.
8803 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8804 (init_display): Initialize Vinitial_window_system to "ns" when so
8805 compiled.
8806 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8807 (display_arg): Use under NS.
8808 (main): Under NS, allocate autorelease pool and handle command line
8809 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8810 (standard_args): Add NS-specific args.
8811 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8812 * font.c (DEFAULT_ENCODING): New variable.
8813 (font_find_for_lface): Use it.
8814 (syms_of_font): Load syms_of_nsfont under NS.
8815 * font.h: Declare nsfont_driver when compiled under NS.
8816 * fontset.c: When compiling under NS, include nsterm.h.
8817 (fontset_from_font): Autoconstruct fontset under NS.
8818 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8819 symbol, document and use it.
8820 (do_switch_frame): When for_deletion under Cocoa, add
8821 Fraise_frame(Qnil).
8822 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8823 (x_get_arg): Allow "yes" and "no" as boolean values.
8824 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8825 Qright under Cocoa.
8826 (focus-follows-mouse): Default to 0 under NS.
8827 * frame.h (enum output_method): Add output_ns.
8828 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8829 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8830 (FRAME_WINDOW_P): NS-specific definition.
8831 * fringe.c (max_used_fringe_bitmap): Make public.
8832 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8833 (getloadavg): Use NeXT code under descendant OS's.
8834 * image.c (includes and header section, x_create_bitmap_from_data)
8835 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8836 (image_background_transparent, x_clear_image_1)
8837 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8838 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8839 (x_to_xcolors, x_from_xcolors, x_disable_image)
8840 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8841 other GUIs, including XPM support using code originally written for
8842 Carbon GUI.
8843 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8844 using NS API.
8845 (image_ascent): Use font metrics macros instead of direct struct field
8846 access.
8847 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8848 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8849 Also, handle NS as GTK for menu bar purposes.
8850 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8851 toolkit where they differ.
8852 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8853 use cachelist, still needed under NS.
8854 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8855 (struct widget_value): Define it here for menu.c.
8856 * keymap.c (includes): Include modifier internals.
8857 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8858 NS.
8859 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8860 support for preferring sequences using certain modifiers, specified by
8861 the FIRSTONLY argument.
8862 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8863 under NS GNUstep implementation.
8864 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8865 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8866 * menu.c: Include nsterm.h under NS.
8867 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8868 (free_menubar_widget_tree_value, update_submenu_strings)
8869 (find_and_call_menu_selection): Treat NS as X and NT.
8870 (find_and_return_menu_selection): New function, used for popup menus.
8871 * nsgui.h:
8872 * nsterm.h:
8873 * nsfns.m:
8874 * nsimage.m:
8875 * nsmenu.m:
8876 * nsselect.m:
8877 * nsterm.m: New files.
8878 * process.c (wait_reading_process_output): Under NS, call ns_select()
8879 instead of plain select().
8880 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8881 beginning of buffer.
8882 * sysselect.h (init_process): Rename when compiling under Cocoa to
8883 avoid name conflict.
8884 * termhooks.h (display_info): Add ns_display_info to union.
8885 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8886 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8887 COCOA environment.
8888 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8889 unexec() signature. (Note, this will dump, but the resulting file
8890 crashes; unexosx is used instead; keeping around for reference and
8891 possible aid in getting dump working under GNUstep.)
8892 * w32gui.h (button_type, widget_value): Remove definitions (now in
8893 keyboard.h).
8894 * window.c: Include nsterm.h when compiling under NS.
8895 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8896 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8897 other GUI windowing systems.
8898 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8899 GTK.
8900 (x_consider_frame_title): Under NS, set icon type and frame
8901 modified-state indicator; use ns_set_name_as_filename() when using
8902 formatted title.
8903 (update_window_cursor): Make public when compiling under NS.
8904 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8905 (hourglass_atimer, Vhourglass_delay
8906 * xfaces.c (header section, init_frame_faces, clear_font_table)
8907 (defined_color, unload_color, x_face_list_fonts)
8908 (prepare_face_for_display): Add NS support parallel to other GUIs.
8909 Emulate GCs like other non-X GUIs.
8910 (split_font_name): Don't lowercase font name under NS.
8911 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8912 under NS.
8913 * s/darwin.h: Add support for compilation under NS.
8914
89152008-07-15 Jason Rumney <jasonr@gnu.org>
8916
8917 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8918 (w32_show_hourglass): Rename from show_hourglass.
8919 (w32_hide_hourglass): Rename from hide_hourglass.
8920 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8921 (Vhourglass_delay): Declare extern.
8922 (hourglass_started): Remove.
8923
8924 * xdisp.c (Vhourglass_delay): Remove static.
8925 (hourglass_started, start_hourglass, cancel_hourglass):
8926 Don't include these versions on WINDOWSNT.
8927
89282008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8929
8930 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8931 variables (formerly in xfns.c).
8932 (show_hourglass, hide_hourglass): New prototypes (same).
8933 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8934 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8935 in xfns.c).
8936 (syms_of_xdisp): Declare/initialize display-hourglass,
8937 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8938 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8939 formerly in xfns.c.
8940 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8941 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8942 (start_hourglass, cancel_hourglass): Remove.
8943 (show_hourglass, hide_hourglass): Remove prototypes and static
8944 modifiers.
8945 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8946 hourglass_atimer, hourglass_shown_p declaration/initialization.
8947 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8948 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8949 (start_hourglass, cancel_hourglass): Remove.
8950 (show_hourglass, hide_hourglass): Remove prototypes and static
8951 modifiers.
8952 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8953 hourglass_atimer, hourglass_shown_p declaration/initialization.
8954 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8955 (DEFAULT_HOURGLASS_DELAY): Remove.
8956 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8957 hourglass_shown_p declaration/initialization.
8958
89592008-07-14 Jason Rumney <jasonr@gnu.org>
8960
8961 * w32fns.c (w32_get_arg): Remove wrapper function.
8962 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8963 directly.
8964 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8965
89662008-07-14 Kenichi Handa <handa@m17n.org>
8967
8968 * xfont.c (xfont_open): Add workaround for X's bug.
8969
89702008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8971
8972 * fontset.c: Include <stdio.h> unconditionally.
8973
89742008-07-13 Michael Albinus <michael.albinus@gmx.de>
8975
8976 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8977 for filtering.
8978
89792008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8980
8981 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8982
8983 * m/macppc.h:
8984 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8985
8986 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8987 (SPECIAL_EMACS_INT):
8988 * m/ia64.h (SPECIAL_EMACS_INT):
8989 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8990 * s/gnu.h (NLIST_STRUCT):
8991 * s/aix4-2.h (X11R5_INHIBIT_I18N):
8992 * s/gnu-linux.h (LINUX):
8993 * s/msdos.h (HAVE_FACES):
8994 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
8995
8996 * systty.h:
8997 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
8998 anymore.
8999
90002008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9001
9002 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9003 always defined as int.
9004
9005 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9006 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9007 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9008 * s/freebsd.h (HAVE_WAIT_HEADER):
9009 * s/bsd-common.h (HAVE_UNION_WAIT):
9010 * s/aix4-2.h (HAVE_WAIT_HEADER):
9011 * m/mips.h (HAVE_UNION_WAIT):
9012 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9013 (COFF, static): Do not define, they are undefined later in the file.
9014
9015 * process.c (update_status): Don't use a union.
9016 (status_convert):
9017 (sigchld_handler): Use int instead of WAITTYPE.
9018
90192008-07-12 Chong Yidong <cyd@stupidchicken.com>
9020
9021 * indent.c (Fvertical_motion): Restore hscroll before moving to
9022 goal column.
9023
90242008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9025
9026 * lisp.h: Remove left over code.
9027
90282008-07-11 Andreas Schwab <schwab@suse.de>
9029
9030 * lisp.h: Fix logic in last change.
9031
9032 * menu.h: New file.
9033 * menu.c: Include it.
9034 * xmenu.c: Likewise.
9035 * Makefile.in: Update dependencies.
9036
90372008-07-11 Kenichi Handa <handa@m17n.org>
9038
9039 * fontset.c (fontset_from_font): Cancel the previous change.
9040
90412008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9042
9043 * lisp.h:
9044 * w32heap.c:
9045 * emacs.c:
9046 * alloc.c: Replace all references of NO_UNION_TYPE with
9047 USE_LISP_UNION_TYPE.
9048
9049 * m/xtensa.h (NO_UNION_TYPE):
9050 * m/vax.h (NO_UNION_TYPE):
9051 * m/template.h (NO_UNION_TYPE):
9052 * m/sparc.h (NO_UNION_TYPE):
9053 * m/mips.h (NO_UNION_TYPE):
9054 * m/macppc.h (NO_UNION_TYPE):
9055 * m/m68k.h (NO_UNION_TYPE):
9056 * m/iris4d.h (NO_UNION_TYPE):
9057 * m/intel386.h (NO_UNION_TYPE):
9058 * m/ibms390x.h (NO_UNION_TYPE):
9059 * m/ibms390.h (NO_UNION_TYPE):
9060 * m/ibmrs6000.h (NO_UNION_TYPE):
9061 * m/ia64.h (NO_UNION_TYPE):
9062 * m/hp800.h (NO_UNION_TYPE):
9063 * m/arm.h (NO_UNION_TYPE):
9064 * m/amdx86-64.h (NO_UNION_TYPE):
9065 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9066 defining it the same.
9067
90682008-07-10 Chong Yidong <cyd@stupidchicken.com>
9069
9070 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9071
90722008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9073
9074 * fileio.c:
9075 * sysdep.c
9076 * systty.h:
9077 * m/ibmrs6000.h:
9078 * m/iris4d.h:
9079 * s/aix4-2.h:
9080 * s/freebsd.h:
9081 * s/gnu-linux.h:
9082 * s/hpux10-20.h:
9083 * s/hpux11.h:
9084 * s/netbsd.h:
9085 * s/sol2-3.h:
9086 * s/sol2-4.h:
9087 * s/sol2.h:
9088 * s/usg5-4.h:
9089 * s/vms.h: Remove references to unused variables.
9090
90912008-07-10 Andreas Schwab <schwab@suse.de>
9092
9093 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9094 pattern before matching the generic family.
9095
90962008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9097
9098 * unexec.c:
9099 * s/vms.h:
9100 * s/usg5-4-2.h:
9101 * s/sol2-5.h:
9102 * s/freebsd.h:
9103 * s/darwin.h: Remove dead code.
9104
9105 * m/template.h:
9106 * m/sparc.h:
9107 * m/mips.h:
9108 * m/m68k.h:
9109 * m/iris4d.h:
9110 * m/intel386.h:
9111 * m/ibms390x.h:
9112 * m/ibms390.h:
9113 * m/ia64.h:
9114 * m/hp800.h:
9115 * m/arm.h:
9116 * m/amdx86-64.h: Remove dead code and references to unused
9117 and compiler defined symbols.
9118
9119 * unexmips.c:
9120 * unexelf.c: Remove references to desupported systems.
9121
9122 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9123
9124 * m/powermac.h: Remove boilerplate comments.
9125 (NO_REMAP): Remove unused definition.
9126
9127 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9128 define them.
9129
91302008-07-10 Kenichi Handa <handa@m17n.org>
9131
9132 * xfont.c (xfont_open): Log the reason of failure.
9133
91342008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9135
9136 * fontset.c (fontset_get_font_group):
9137 * font.c (font_check_otf): Specify argument types.
9138
91392008-07-09 Kenichi Handa <handa@m17n.org>
9140
9141 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9142 non-ASCII char is found.
9143
9144 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9145 (reorder_font_vector): Change the arg preferred_family to font.
9146 Prefer the spec matching with font.
9147 (fontset_get_font_group): New function.
9148 (fontset_find_font): Change the format of an element of a realized
9149 fontset. Use fontset_get_font_group.
9150 (fontset_font): Try the current fontset, the default fontset, the
9151 fallbacks of the current fontset, and the fallbacks of the default
9152 fontset in this order.
9153 (face_for_char): Delete the shortcut to use the current font.
9154 (fontset_from_font): Don't set fonts for Latin in the fontset.
9155
9156 * font.h (font_make_object, font_match_p): Adjust prototypes.
9157
9158 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9159
9160 * font.c (font_make_object): New arg entity and pixelsize.
9161 (font_check_otf_features, font_check_otf): New functions.
9162 (font_match_p): Check :lang, :script, and :otf properties.
9163
9164 * xfont.c (xfont_open): Adjust it for the change of
9165 font_make_object.
9166 (xfont_text_extents): Fix initial setting of metrics.
9167
9168 * ftfont.c (struct ftfont_info): New member index, delete member
9169 fc_charset_idx. Make the member order compatible with struct
9170 xftfont_info.
9171 (fc_charset_table): Change charset names to registry names.
9172 (ftfont_pattern_entity): Delete the args registry and
9173 fc_charset_idx. Change the value of :font-entity property
9174 to (FONTNAME . INDEX). Always set :registry property to
9175 `iso10646-1'.
9176 (struct ftfont_cache_data): New struct.
9177 (ftfont_lookup_cache): New arg for_face.
9178 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9179 (ftfont_driver): Set the member otf_capability.
9180 (ftfont_get_charset): Adjust it for the change of
9181 fc_charset_table.
9182 (OTF_TAG_SYM): New macro.
9183 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9184 for the change of fc_charset_table.
9185 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9186 ftfont_pattern_entity. Add FC_INDEX to objset.
9187 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9188 and ftfont_pattern_entity.
9189 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9190 font_make_object, struct ftfont_info.
9191 (ftfont_has_char): Use ftfont_get_fc_charset.
9192 (ftfont_otf_features, ftfont_otf_capability): New functions.
9193 (ftfont_shape): Use ftfont_get_otf.
9194 (ftfont_text_extents): Fix initial setting of metrics.
9195
9196 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9197 member order compatible with struct ftfont_info.
9198 (xftfont_open): Add FC_CHARSET to the pattern. Set
9199 xftfont_info->ft_size. Don't unlock the face. Check BDF
9200 properties if appropriate.
9201 (xftfont_close): Unlock the face.
9202 (xftfont_anchor_point, xftfont_shape): Deleted.
9203 (syms_of_xftfont): Don't set members anchor_point and shape of
9204 xftfont_driver.
9205
9206 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9207 font_make_object.
9208
9209 * w32font.c (w32font_open): Adjust it for the change of
9210 font_make_object.
9211 (w32font_open_internal): Don't set properties of font_object here.
9212
92132008-07-08 Chong Yidong <cyd@stupidchicken.com>
9214
9215 * macfns.c (x_create_tip_frame):
9216 * w32fns.c (x_create_tip_frame):
9217 * xfns.c (x_create_tip_frame): Pass parameter argument to
9218 face-set-after-frame-default.
9219
9220 * xfaces.c (Finternal_merge_in_global_face): Save merged
9221 attributes for the default face back into the face vector.
9222
92232008-07-08 Andreas Schwab <schwab@suse.de>
9224
9225 * fontset.h: Declare fontset_from_font. Don't declare
9226 new_fontset_from_font and fontset_from_font_name.
9227 * xterm.c: Include "fontset.h".
9228 * Makefile.in (xterm.o): Update dependencies.
9229
92302008-07-08 Glenn Morris <rgm@gnu.org>
9231
9232 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9233 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9234
92352008-07-07 Chong Yidong <cyd@stupidchicken.com>
9236
9237 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9238 (x_set_frame_parameters): Don't bind it.
9239
92402008-07-07 Juanma Barranquero <lekktu@gmail.com>
9241
9242 * w32fns.c (map_w32_filename): Declare extern.
9243
92442008-07-07 Jason Rumney <jasonr@gnu.org>
9245
9246 * w32term.c (WS_EX_LAYERED): Define if not already.
9247
92482008-07-06 Chong Yidong <cyd@stupidchicken.com>
9249
9250 * xfaces.c (set_font_frame_param): Don't try to set the font
9251 parameter if it is still unspecified in the lface.
9252
92532008-07-05 Chong Yidong <cyd@stupidchicken.com>
9254
9255 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9256 face if it didn't already exist.
9257
9258 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9259
92602008-07-05 Andreas Schwab <schwab@suse.de>
9261
9262 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9263
92642008-07-05 Chong Yidong <cyd@stupidchicken.com>
9265
9266 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9267 word-wrapping.
9268 (IT_DISPLAYING_WHITESPACE): New macro.
9269 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9270 when word-wrapping. Simplify word-wrapping logic. Use correct
9271 pixel positions when saving copies of the iterator.
9272 (display_line): Use proper wrap point if the last character on a
9273 line was preceded by whitespace.
9274
92752008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9276
9277 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9278
92792008-07-04 Kenichi Handa <handa@m17n.org>
9280
9281 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9282
9283 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9284
92852008-07-02 Jason Rumney <jasonr@gnu.org>
9286
9287 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9288 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9289
9290 * xdisp.c (next_element_from_display_vector): Move assignment out
9291 of if statement.
9292
92932008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9294
9295 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9296
9297 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9298 (syms_of_fileio): Initialize and export them.
9299 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9300
9301 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9302 (Fsystem_move_file_to_trash): New function.
9303 (syms_of_w32fns): Export it to lisp.
9304
93052008-07-01 Jason Rumney <jasonr@gnu.org>
9306
9307 * w32font.c (w32font_text_extents): Don't count overhang as part
9308 of width.
9309
93102008-06-30 Miles Bader <miles@gnu.org>
9311
9312 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9313 Add `avoid_cursor_p' field.
9314
9315 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9316 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9317 (append_glyph, append_composite_glyph, produce_image_glyph)
9318 (append_stretch_glyph): Initialize avoid_cursor_p.
9319 (get_it_property): Rename from `get_line_height_property'.
9320 (x_produce_glyphs): Use get_it_property.
9321 (handle_line_prefix, push_display_prop): New functions.
9322 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9323 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9324 New variables.
9325 (syms_of_xdisp): Initialize them.
9326
93272008-06-30 Kenichi Handa <handa@m17n.org>
9328
9329 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9330 XftDefaultSubstitute (they are called in XftFontMatch).
9331 (xftfont_open): Fix args to ftfont_font_format.
9332
9333 * ftfont.c (fc_charset_table): New member lang.
9334 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9335 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9336 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9337 (ftfont_open): Fix args to ftfont_font_format.
9338 (ftfont_font_format): New arg filename.
9339
93402008-06-30 Chong Yidong <cyd@stupidchicken.com>
9341
9342 * xfaces.c (Finternal_merge_in_global_face): If default face was
9343 modified, realize it again. Update the font face attribute.
9344
93452008-06-29 Jason Rumney <jasonr@gnu.org>
9346
9347 * w32term.c (x_set_frame_alpha): Fix logic.
9348
93492008-06-29 Kenichi Handa <handa@m17n.org>
9350
9351 * fontset.c (Finternal_char_font): Return font-object instead of
9352 font-name.
9353
9354 * composite.c (get_composition_id): Fix the width calculation for TAB.
9355
93562008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9357
9358 * indent.c (Fvertical_motion): Properly handle float column arg.
9359
93602008-06-28 Jason Rumney <jasonr@gnu.org>
9361
9362 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9363 (pfnSetLayeredWindowAttributes): New function pointer.
9364 (w32_initialize): Initialize it when supported.
9365 (x_set_frame_alpha): New function.
9366
9367 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9368 (w32_frame_parm_handlers): Set alpha handler.
9369
9370 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9371
93722008-06-27 Jason Rumney <jasonr@gnu.org>
9373
9374 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9375 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9376 (w32_to_x_charset, x_to_w32_charset)
9377 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9378 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9379 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9380 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9381 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9382 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9383 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9384 (Qw32_charset_unicode): Remove.
9385 (syms_of_w32fns): Update for above changes.
9386
9387 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9388 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9389 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9390 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9391 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9392 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9393 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9394 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9395 (syms_of_w32font): Update for above changes.
9396
93972008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9398
9399 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9400 removed #if.
9401 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9402
94032008-06-26 Juanma Barranquero <lekktu@gmail.com>
9404 Eli Zaretskii <eliz@gnu.org>
9405
9406 * makefile.w32-in (LOCAL_FLAGS):
9407 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9408
9409 * sysdep.c (_spawnlp, _getpid):
9410 Declare with explicit _cdecl instead of _CRTAPI1.
9411
9412 * editfns.c (Fget_internal_run_time):
9413 Check for WINDOWSNT with #ifdef, not #if.
9414
94152008-06-26 Jason Rumney <jasonr@gnu.org>
9416
9417 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9418
9419 * w32term.c (x_draw_glyph_string_foreground)
9420 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9421 Use FONT_HANDLE macro.
9422 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9423
9424 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9425 (uniscribe_encode_char): Use FONT_HANDLE macro.
9426
9427 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9428 (w32font_text_extents): Use precast w32_font.
9429 (w32font_close): Free cached metrics.
9430 (w32font_open_internal): Allocate space for name on stack.
9431
94322008-06-26 Chong Yidong <cyd@stupidchicken.com>
9433
9434 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9435
94362008-06-26 Jason Rumney <jasonr@gnu.org>
9437
9438 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9439 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9440
94412008-06-26 Juanma Barranquero <lekktu@gmail.com>
9442
9443 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9444
94452008-06-26 Jason Rumney <jasonr@gnu.org>
9446
9447 * w32bdf.c, w32bdf.h: Remove obsolete files.
9448
9449 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9450
9451 * w32gui.h: Don't include w32bdf.h.
9452 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9453 Remove obsolete font support.
9454
9455 * w32font.h (struct w32font_info): Remove compat_w32_font.
9456 Add hfont member.
9457 (FONT_COMPAT): Remove obsolete macro.
9458
9459 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9460 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9461 (w32font_open_internal): Remove compat code. Set new hfont member.
9462 (Fx_select_font): Use new hfont member.
9463
9464 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9465 (uniscribe_encode_char): Use new hfont member.
9466
9467 * w32term.c (x_draw_glyph_string_foreground)
9468 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9469 (x_draw_glyph_string): Use metrics in w32font_info.
9470
94712008-06-26 Kenichi Handa <handa@m17n.org>
9472
9473 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9474
94752008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9476
9477 * unexnext.c:
9478 * m/ews4800.h:
9479 * m/hp9000s300.h:
9480 * m/ibm370aix.h:
9481 * m/mips-siemens.h:
9482 * m/ncr386.h:
9483 * m/next.h:
9484 * m/pmax.h:
9485 * m/powerpcle.h:
9486 * m/tandem-s2.h:
9487 * s/386bsd.h:
9488 * s/bsd386.h:
9489 * s/bsd4-1.h:
9490 * s/bsd4-2.h:
9491 * s/bsdos2-1.h:
9492 * s/bsdos2.h:
9493 * s/bsdos3.h:
9494 * s/bsdos4.h:
9495 * s/nextstep.h:
9496 * s/ultrix4-3.h:
9497 * s/usg5-0.h:
9498 * s/usg5-2-2.h:
9499 * s/usg5-2.h:
9500 * s/usg5-4-3.h:
9501 * s/ux4800.h:
9502 * s/uxpds.h:
9503 * s/uxpv.h: Remove support for obsolete systems.
9504 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9505 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9506 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9507 Remove, insert contents in s/aix4-2.h.
9508 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9509 * s/bsd4-3.h: Rename to ...
9510 * s/bsd-common.h: ... this.
9511 * data.c:
9512 * doc.c:
9513 * ecrt0.c:
9514 * emacs.c:
9515 * fileio.c:
9516 * floatfns.c:
9517 * keyboard.c:
9518 * mem-limits.h:
9519 * print.c:
9520 * process.c:
9521 * sysdep.c:
9522 * syssignal.h:
9523 * systty.h:
9524 * syswait.h:
9525 * term.c:
9526 * unexec.c:
9527 * unexelf.c:
9528 * unexhp9k800.c:
9529 * m/hp800.h:
9530 * m/ibmrs6000.h:
9531 * m/mips.h:
9532 * m/vax.h:
9533 * s/darwin.h:
9534 * s/freebsd.h:
9535 * s/gnu.h:
9536 * s/ms-w32.h:
9537 * s/msdos.h:
9538 * s/netbsd.h:
9539 * s/template.h: Remove references to obsolete variables.
9540
9541 * Makefile.in: Add dependencies for all unexec files.
9542 (admindir): Remove unused variable.
9543 (UNEXEC_SRC): Remove references.
9544
95452008-06-25 Chong Yidong <cyd@stupidchicken.com>
9546
9547 * xfns.c (x_default_font_parameter): If Xft is available, first
9548 try Monospace-12 for the default font.
9549
95502008-06-25 Jason Rumney <jasonr@gnu.org>
9551
9552 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9553
95542008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9555
9556 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9557
9558 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9559
95602008-06-25 Juanma Barranquero <lekktu@gmail.com>
9561
9562 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9563 <scroll-conservatively>: Fix typo in docstring.
9564
9565 * xselect.c (Fx_send_client_event): Doc fix.
9566
95672008-06-25 Kenichi Handa <handa@m17n.org>
9568
9569 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9570
9571 * font.c (font_parse_fcname): Remove unused variables.
9572 (font_sort_entites): Delete the arg SPEC. Caller changed.
9573 Fix for the case of ! best_only.
9574 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9575
9576 * lisp.h (Fstring_to_unibyte): EXFUN it.
9577
9578 * character.h (str_to_unibyte): Extern it.
9579
9580 * character.c (str_to_unibyte): New function.
9581
9582 * fns.c (Fstring_to_unibyte): New function.
9583 (syms_of_fns): Defsubr it.
9584
95852008-06-24 Kenichi Handa <handa@m17n.org>
9586
9587 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9588 DPI too.
9589 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9590
95912008-06-24 Andreas Schwab <schwab@suse.de>
9592
9593 * Makefile.in (${lispsource}loaddefs.el): Rename from
9594 ../lisp/loaddefs.el.
9595 (bootstrap-clean): Do what distclean does but don't remove
9596 Makefile.
9597 (distclean): Depend on bootstrap-clean and remove Makefile.
9598
95992008-06-24 Chong Yidong <cyd@stupidchicken.com>
9600
9601 * buffer.h (struct buffer): New member word_wrap.
9602
9603 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9604 word-wrap.
9605 (init_buffer_once): Initialize them.
9606
9607 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9608 line_wrap enum possessing three possible values.
9609
9610 * termopts.h: Replace truncate_partial_width_windows with
9611 Vtruncate_partial_width_windows.
9612
9613 * dispnew.c (direct_output_for_insert): Avoid direct output when
9614 inserting a space with word wrap on.
9615
9616 * indent.c (compute_motion): Obey integer values of
9617 truncate-partial-width-windows.
9618
9619 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9620 replacing truncate_partial_width_windows.
9621 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9622 truncate only if the window width is below that integer.
9623 (start_display, resize_mini_window, produce_stretch_glyph)
9624 (display_string, move_it_in_display_line_to): Use line_wrap.
9625 (back_to_previous_visible_line_start, reseat_1): Reset
9626 string_from_display_prop_p.
9627 (display_line): Extend default face to end of line when wrapping.
9628
96292008-06-24 Kim F. Storm <storm@cua.dk>
9630
9631 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9632 to wrap continued lines at word boundaries.
9633
96342008-06-24 Jason Rumney <jasonr@gnu.org>
9635
9636 * font.c (Ffont_face_attributes): Multiply pixel size before point
9637 conversion to avoid multiplying rounding error.
9638
96392008-06-23 Jason Rumney <jasonr@gnu.org>
9640
9641 * w32term.c (x_draw_glyph_string_background)
9642 (x_draw_glyph_string): Remove old bdf font code.
9643
9644 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9645
96462008-06-22 Kenichi Handa <handa@m17n.org>
9647
9648 * font.c (font_find_for_lface): Try the adstyle specified in
9649 the property of LFACE_FONT of LFACE (if any).
9650
96512008-06-21 Seiji Zenitani <zenitani@mac.com>
9652 Ryo Yoshitake <ryo@shiftmode.net>
9653
9654 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9655
96562008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9657
9658 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9659 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9660 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9661 (witness-emacs): Remove.
9662 (lisp, shortlisp): Move loaddefs.el earlier.
9663 (mostlyclean): Forget about witness-emacs.
9664
96652008-06-22 Glenn Morris <rgm@gnu.org>
9666
9667 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9668 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9669
96702008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9671
9672 * Makefile.in (PRECOMP): Remove.
9673 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9674 (witness-emacs): Run `compile-first'.
9675 (.el.elc): Use the new compile-onefile target.
9676
96772008-06-21 Kenichi Handa <handa@m17n.org>
9678
9679 * xftfont.c (xftfont_open): Handle QCembolden only when
9680 FC_EMBOLDEN is defined.
9681
96822008-06-21 Andreas Schwab <schwab@suse.de>
9683
9684 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9685 (.el.elc): Likewise.
9686
96872008-06-21 Miles Bader <miles@gnu.org>
9688
9689 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9690 build dir, not the lisp source dir.
9691
96922008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9693
9694 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9695 (bootstrapclean): Remove.
9696 (.el.elc): New rule.
9697 (PRECOMP): New var.
9698 (../lisp/subdirs.el): Remove.
9699 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9700 (witness-emacs): New target.
9701 (mostlyclean): Remove witness-emacs as well.
9702 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9703 Add witness-emacs dependency.
9704
97052008-06-20 Chong Yidong <cyd@stupidchicken.com>
9706
9707 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9708 defined by the font.
9709
97102008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9711
9712 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9713 (bootstrap-clean): New target that keeps TAGS around.
9714 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9715 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9716
97172008-06-20 Jason Rumney <jasonr@gnu.org>
9718
9719 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9720 Remove obsolete font code.
9721
9722 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9723 to determine language support.
9724
97252008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9726
9727 * sysdep.c (cfsetspeed): New fun extracted from the code.
9728 (cfmakeraw): Move before first use.
9729
97302008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9731
9732 * sysdep.c (cfmakeraw): Provide fallback implementation.
9733 (serial_configure): Provide fallback implementation of cfsetspeed.
9734
97352008-06-20 Kenichi Handa <handa@m17n.org>
9736
9737 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9738 the pattern.
9739
9740 * fontset.c (fontset_from_font): Copy font_spec before changing
9741 the elements.
9742
9743 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9744
97452008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9746
9747 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9748 for explicit `font' parameters.
9749
9750 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9751
97522008-06-19 Kenichi Handa <handa@m17n.org>
9753
9754 * frame.c: Include <ctype.h>.
9755 (x_set_font_backend): Allow spacing characters in the X resource
9756 for FontBackend.
9757
97582008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9759
9760 * w32fns.c, xfns.c (Qfont_param): New var.
9761 (syms_of_w32fns): Initialize it.
9762 (x_default_font_parameter): Record explicit `font' into
9763 `font-parameter'.
9764
97652008-06-18 Kenichi Handa <handa@m17n.org>
9766
9767 * font.c (font_parse_xlfd): Fix previous change.
9768 (font_parse_fcname): Don't use :fc-unknown-spec.
9769 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9770 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9771 (font_add_log): Prepend the driver name to the resulting fonts.
9772
9773 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9774 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9775 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9776
9777 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9778 (QCembolden): New variables.
9779 (syms_of_xftfont): DEFSYM them.
9780 (xftfont_open): Call XftFontMatch. Don't trust the result of
9781 XftTextExtents8 if the pixel_size is less than 5.
9782
97832008-06-18 Andreas Schwab <schwab@suse.de>
9784
9785 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9786 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9787
97882008-06-18 Jason Rumney <jasonr@gnu.org>
9789
9790 * w32font.c (w32font_list, w32font_match): Add logging.
9791
9792 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9793
97942008-06-17 Chong Yidong <cyd@stupidchicken.com>
9795
9796 * font.c (font_parse_fcname): Store divider characters for
9797 unknown-spec list. For known key symbols, intern using correct
9798 symbol name.
9799
98002008-06-17 Kenichi Handa <handa@m17n.org>
9801
9802 * xfaces.c (realize_default_face): If the frame is not on window
9803 system, set the fontset of face to nil.
9804
98052008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9806
9807 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9808
98092008-06-16 Juanma Barranquero <lekktu@gmail.com>
9810
9811 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9812 (build_font_name_from_vector): Delete externs.
9813
9814 * xfaces.c (struct font_name): Don't declare.
9815
98162008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9817
9818 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9819
98202008-06-16 Chong Yidong <cyd@stupidchicken.com>
9821
9822 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9823
98242008-06-16 Juanma Barranquero <lekktu@gmail.com>
9825
9826 * font.c (Ffont_spec): Fix usage in docstring.
9827 (Ffont_face_attributes): Doc fix.
9828
98292008-06-16 Andreas Schwab <schwab@suse.de>
9830
9831 * font.c (Ffont_face_attributes): Fix definition.
9832
98332008-06-16 Jason Rumney <jasonr@gnu.org>
9834
9835 * font.h (font_style_symbolic_from_value): Remove.
9836
9837 * font.c (font_style_symbolic_from_value): Remove.
9838 (font_style_symbolic): Revert to pre 2008-06-13 version.
9839
9840 * w32font.c (w32_to_fc_weight): New function.
9841 (w32font_full_name, logfont_to_fcname): Use it.
9842
98432008-06-16 Kenichi Handa <handa@m17n.org>
9844
9845 * font.c (font_check_object): Delete it.
9846 (font_clear_cache): Check if a font-object is alive.
9847 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9848 font-object to nil.
9849 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9850 (font_at): Don't call font_check_object.
9851 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9852
98532008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9854
9855 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9856
98572008-06-16 Chong Yidong <cyd@stupidchicken.com>
9858
9859 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9860
98612008-06-15 Chong Yidong <cyd@stupidchicken.com>
9862
9863 * font.c (font_parse_fcname): Only one decimal point.
9864 (font_unparse_fcname): Handle data in family and foundry indices
9865 as symbols, not strings.
9866 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9867
9868 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9869
9870 * font.h (font_unparse_gtkname): Add prototype.
9871
98722008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9873
9874 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9875
98762008-06-15 Andreas Schwab <schwab@suse.de>
9877
9878 * font.c (font_update_drivers): Fix crash when no drivers match.
9879
98802008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9881
9882 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9883 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9884
98852008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9886
9887 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9888
98892008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9890
9891 * process.c (Fserial_process_configure, Fprocess_send_eof):
9892 Use EQ to compare Lisp_Objects.
9893
98942008-06-13 Jason Rumney <jasonr@gnu.org>
9895
9896 * w32fns.c (Fw32_select_font): Remove old font API function.
9897
9898 * w32font.c (logfont_to_fcname): New function.
9899 (Fx_select_font): New font dialog function compatible with
9900 GTK/fontconfig version.
9901
9902 * font.c (font_style_symbolic_from_value): New function.
9903 (font_style_symbolic): Use it.
9904
9905 * font.h (font_style_symbolic_from_value): Declare new function.
9906
99072008-06-13 Juanma Barranquero <lekktu@gmail.com>
9908
9909 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9910 <font-width-table>: Fix typos in docstrings.
9911
99122008-06-13 Daniel Engeler <engeler@gmail.com>
9913
9914 These changes add serial port access.
9915 * process.c: Add HAVE_SERIAL.
9916 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9917 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9918 (list_processes_1, select_wrapper, Fstop_process)
9919 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9920 (status_notify): Modify to handle serial processes.
9921 [HAVE_SERIAL] (Fserial_process_configure)
9922 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9923 New functions.
9924 * process.h (struct Lisp_Process): Add `type'.
9925 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9926 New functions.
9927 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9928 serial ports.
b71ac3dd 9929 (serial_open, serial_configure): New functions.
aac0c6e3
MR
9930 * w32.h: Add FILE_SERIAL.
9931 (struct _child_process): Add ovl_read, ovl_write.
9932
99332008-06-13 Kenichi Handa <handa@m17n.org>
9934
9935 * dispextern.h (enum lface_attribute_index): New member
9936 LFACE_FOUNDRY_INDEX.
9937
9938 * font.c (font_score): Delete arg alternate_families. Check only
9939 weight, slant, width, and size. Ignore the difference of alias
9940 style symbols.
9941 (font_sort_entites): Adjust for the above change. Reflect the
9942 order of font-driver to scores.
9943 (font_list_entities): Don't check alternate_familes here.
9944 (font_clear_prop): Handle foundry.
9945 (font_update_lface): Don't parse "foundry-family" form here.
9946 Handle FONT_FOUNDRY_INDEX.
9947 (font_find_for_lface): Likewise. Handle alternate families here.
9948 If registry is nil, try iso8859-1 and ascii-0.
9949 (font_open_for_lface): Pay attention to size in ENTITY.
9950 (font_open_by_name): Simplify by calling font_load_for_lface.
9951 (free_font_driver_list): Delete it.
9952 (font_update_drivers): Preserve the order of backends.
9953 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9954 of font_score and font_sort_entites.
9955 (font_update_sort_order): Likewise.
9956
9957 * xfaces.c (LFACE_FOUNDRY): New macro.
9958 (check_lface_attrs): Check foundry.
9959 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9960 (merge_face_vectors): Check foundry.
9961 (merge_face_ref): Likewise.
9962 (Finternal_set_lisp_face_attribute): Likewise.
9963 (x_update_menu_appearance): Likewise.
9964 (Finternal_get_lisp_face_attribute): Likewise.
9965 (lface_hash): Likewise.
9966 (lface_same_font_attributes_p): Likewise.
9967 (x_supports_face_attributes_p): Likewise.
9968 (tty_supports_face_attributes_p): Likewise.
9969 (Finternal_set_alternative_font_family_alist): Intern strings.
9970 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9971 (realize_default_face): Set LFACE_FOUNDRY (lface).
9972
9973 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9974 font-driver at first.
9975
9976 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9977
99782008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9979
9980 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9981
99822008-06-12 Jim Meyering <meyering@redhat.com>
9983
9984 Make unexec_free handle NULL the same way free does.
9985 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9986
99872008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9988
9989 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9990 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9991 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
9992 (WEAK_ALIAS): Simplify.
9993 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
9994 when searching a unibyte buffer.
9995
99962008-06-12 Chong Yidong <cyd@stupidchicken.com>
9997
9998 * xfns.c (Fx_select_font): Rename from x-font-dialog.
9999
100002008-06-12 Juanma Barranquero <lekktu@gmail.com>
10001
10002 * w32font.c: Include ctype.h.
10003
100042008-06-11 Jason Rumney <jasonr@gnu.org>
10005
10006 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10007 misreported as space.
10008 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10009 as aliases for registry iso10646-1.
10010
100112008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10012
10013 * buffer.c (clone_per_buffer_values): Skip `name'.
10014
100152008-06-11 Chong Yidong <cyd@stupidchicken.com>
10016
10017 * font.c (font_parse_fcname): Fix last change; accept decimal
10018 points in font size.
10019
100202008-06-10 Jason Rumney <jasonr@gnu.org>
10021
10022 * w32uniscribe.c (add_opentype_font_name_to_list):
10023 Skip non unicode fonts.
10024
100252008-06-10 Chong Yidong <cyd@stupidchicken.com>
10026
10027 * xfns.c (Fx_font_dialog): New function.
10028
10029 * gtkutil.c (xg_dialog_response_cb): Rename from
10030 xg_file_response_callback.
10031 (pop_down_dialog): Rename from pop_down_file_dialog.
10032 (xg_get_file_name): Callers changed.
10033 (xg_get_font_name): New function.
10034
10035 * gtkutil.h (xg_get_font_name): Insert prototype.
10036
100372008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10038
10039 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10040 x_underline_minimum_display_offset.
10041 (syms_of_xdisp): Declare it here rather than in xterm.c.
10042 * dispextern.h (underline_minimum_offset): Declare it.
10043 * w32term.c (x_draw_glyph_string): Use it.
10044 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10045 (syms_of_xterm): Don't declare it any more.
10046 (x_draw_glyph_string): Adjust to the new name.
10047
8719abec 100482008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10049
10050 * xterm.c (x_underline_minimum_display_offset): New var.
10051 (x_draw_glyph_string): Use it.
10052 (syms_of_xterm): Declare it.
10053
100542008-06-10 Chong Yidong <cyd@stupidchicken.com>
10055
10056 * font.c (font_parse_fcname): Accept GTK-style font names too.
10057
100582008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10059
10060 * dired.c (file_name_completion): Don't return t if the match is exact
10061 but with different capitalization.
10062 * minibuf.c (Ftry_completion): Simplify.
10063
10064 * window.c (Vwindow_point_insertion_type): New var.
10065 (set_window_buffer): Use it.
10066 (syms_of_window): Init and export it to Lisp.
10067
100682008-06-10 Kenichi Handa <handa@m17n.org>
10069
10070 * font.h (font_intern_prop): Prototype adjusted.
10071
10072 * font.c (font_intern_prop): New arg force_symbol.
10073 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10074 Adjust for the change of font_intern_prop.
10075
10076 * ftfont.c (ftfont_pattern_entity):
10077 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10078 (w32_registry):
10079 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10080 the change of font_intern_prop.
10081
100822008-06-09 Juanma Barranquero <lekktu@gmail.com>
10083
10084 * w32menu.c (digest_single_submenu): Declare extern.
10085
100862008-06-09 Jason Rumney <jasonr@gnu.org>
10087
10088 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10089
10090 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10091 (parse_single_submenu): Remove.
10092 (digest_single_submenu): Remove.
10093 (syms_of_w32menu): Don't initialise variables that have moved
10094 to menu.c.
10095 (set_frame_menubar): Sync with version in xmenu.c.
10096 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10097
10098 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10099 Make static again.
10100
101012008-06-09 Jason Rumney <jasonr@gnu.org>
10102
10103 Changes to w32 files related to the move of common menu code
10104 to menu.c on 2008-06-08 by Chong Yidong.
10105
10106 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10107 defs to w32gui.h.
10108 (single_keymap_panes, push_menu_item, push_menu_pane):
10109 Make globally visible.
10110
10111 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10112 (local_free, malloc_widget_value, free_widget_value)
10113 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10114 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10115 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10116 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10117 (menu_items, menu_items_allocated, menu_items_used)
10118 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10119 (init_menu_items, finish_menu_items, discard_menu_items)
10120 (grow_menu_items, push_submenu_start, push_submenu_end)
10121 (push_left_right_boundary, push_menu_pane, push_menu_item)
10122 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10123 (free_menubar_widget_tree_value, parse_single_submenu)
10124 (update_submenu_strings): Remove functions.
10125 (xmalloc_widget_value): Remove and declare extern.
10126
10127 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10128 (OBJ1): Build it.
10129
10130 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10131 (local_heap, local_alloc, local_free, malloc_widget_value)
10132 (free_widget_value): Define here.
10133
101342008-06-09 Kenichi Handa <handa@m17n.org>
10135
10136 * font.h (Qascii_0): Extern it.
10137
10138 * font.c (Qascii_0): New variable.
10139 (syms_of_font): DEFSYM it.
10140 (font_open_by_name): If the registry "iso8859-1" fails, try also
10141 "ascii-0".
10142
10143 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10144
101452008-06-08 Kenichi Handa <handa@m17n.org>
10146
10147 * .gdbinit (xfont): New command.
10148
101492008-06-08 Andreas Schwab <schwab@suse.de>
10150
10151 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10152 * Makefile.in (menu.o): Update dependencies.
10153
10154 * Makefile.in (obj): Always add menu.o.
10155 * emacs.c (main): Always call syms_of_menu.
10156 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10157
101582008-06-08 Chong Yidong <cyd@stupidchicken.com>
10159
10160 * Makefile.in: Compile menu.c.
10161
10162 * lisp.h: Declare syms_of_menu.
10163
10164 * emacs.c (main): Call syms_of_menu.
10165
10166 * keyboard.h: Relocate platform-independent menu definitions from
10167 xmenu.c.
10168
10169 * menu.c: New file. Relocate platform-independent menu
10170 definitions from xmenu.c. Suggested by Adrian Robert.
10171
10172 * xmenu.c: Remove platform-independent menu definitions.
10173 (menu_items menu_items_inuse, menu_items_allocated)
10174 (menu_items_used, menu_items_n_panes)
10175 (menu_items_submenu_depth): Move to keyboard.h.
10176 (init_menu_items, finish_menu_items, unuse_menu_items)
10177 (discard_menu_items, restore_menu_items, save_menu_items)
10178 (grow_menu_items, push_submenu_start, push_submenu_end)
10179 (push_left_right_boundary, push_menu_pane, push_menu_item)
10180 (keymap_panes, single_keymap_panes, single_menu_item)
10181 (list_of_panes, list_of_items, find_and_call_menu_selection)
10182 (xmalloc_widget_value, free_menubar_widget_value_tree)
10183 (parse_single_submenu, digest_single_submenu)
10184 (update_submenu_strings): Move to menu.c.
10185
101862008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10187
10188 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10189
101902008-06-06 Miles Bader <miles@gnu.org>
10191
10192 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10193 face, not frame default.
10194
101952008-06-05 Martin Rudalics <rudalics@gmx.at>
10196
10197 * window.c (pop_up_windows, pop_up_frames)
10198 (display_buffer_reuse_frames, Vpop_up_frame_function)
10199 (Vdisplay_buffer_function, Veven_window_heights)
10200 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10201 (Vspecial_display_function, Vsame_window_buffer_names)
10202 (Vsame_window_regexps, split_height_threshold)
10203 (Vsplit_window_preferred_function): Move those vars to window.el.
10204 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10205 (Fdisplay_buffer): Move those functions to window.el.
10206 (syms_of_window): Remove corresponding declarations.
10207 (display_buffer): New function.
10208 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10209 * dispnew.c (Flast_nonminibuf_frame): New function.
10210 * buffer.c (Fpop_to_buffer): Move to window.el.
10211
102122008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10213
10214 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10215
102162008-06-05 Kenichi Handa <handa@m17n.org>
10217
10218 * coding.c (detect_coding): Fix previous change.
10219 (detect_coding_system): Likewise.
10220
102212008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10222
10223 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10224
10225 * keymap.c (Vminibuffer_local_filename_must_match_map):
10226 Rename from Vminibuffer_local_must_match_filename_map.
10227 (syms_of_keymap):
10228 * minibuf.c (Fcompleting_read): Adjust accordingly.
10229 * commands.h: Rename declaration as well.
10230
102312008-06-05 Kenichi Handa <handa@m17n.org>
10232
10233 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10234 family name.
10235 (Ffont_put): Likewise.
10236
10237 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10238 current font-spec.
10239
10240 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10241 is unspecified.
10242
10243 * xfaces.c (realize_x_face): If the font-related face attributes
10244 are the same as those of default face, realize a new fontset from
10245 default->fontset.
10246 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10247
102482008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10249
10250 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10251 (move_it_in_display_line): New wrapper.
10252
10253 * window.c (window_scroll_pixel_based_preserve_x)
10254 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10255 (window_scroll_pixel_based, window_scroll_line_based):
10256 Use them to preserve column positions.
10257 (syms_of_window): Initialize them.
10258
10259 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10260 (HPOS . VPOS) pair.
10261
10262 * dispextern.h (move_it_in_display_line): Declare.
10263
102642008-06-05 Juanma Barranquero <lekktu@gmail.com>
10265
10266 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10267 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10268 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10269
102702008-06-04 Juanma Barranquero <lekktu@gmail.com>
10271
10272 * window.c (Fset_window_parameter): Doc fix.
10273 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10274
102752008-06-04 Joakim Verona <joakim@verona.se>
10276
10277 * window.h (struct window): Add new member window_parameters.
10278
10279 * window.c (Fwindow_parameters, Fwindow_parameter)
10280 (Fset_window_parameter): New defuns.
10281 (syms_of_window): Defsubr the new defuns.
10282 (make_window): Initialize window_parameters to nil.
10283
102842008-06-04 John Paul Wallington <jpw@pobox.com>
10285
10286 * eval.c (Fdefmacro): Doc fix.
10287
102882008-06-04 Kenichi Handa <handa@m17n.org>
10289
10290 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10291 Be sure to call setup_coding_system when we find a proper coding system.
10292 (detect_coding_system): Fix handling of coding->head_ascii.
10293
102942008-06-03 Andreas Schwab <schwab@suse.de>
10295
10296 * font.c (font_prop_validate_spacing): Fix last change.
10297
102982008-06-03 Kenichi Handa <handa@m17n.org>
10299
10300 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10301 (font_parse_fcname): Fix handling of unknown key.
10302
10303 * xfont.c (xfont_list): Try an alias.
10304
10305 * charset.c (char_charset): Return NULL if the arg charset_list is
10306 specified and C doesn't belong to any of them.
10307
103082008-06-02 Chip Coldwell <coldwell@redhat.com>
10309
10310 * font.c (font_pixel_size): Don't take cdr of an integer.
10311
103122008-06-02 Jim Meyering <meyering@redhat.com>
10313
10314 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10315 * alloc.c (xfree): Return right away for a NULL arg.
10316 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10317 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10318 * mac.c (create_apple_event_from_event_ref): Likewise.
10319 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10320 Likewise.
10321 * doprnt.c (doprnt1): Likewise.
10322 * frame.c (frame): Likewise.
10323 * keyboard.c (wipe_kboard): Likewise.
10324 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10325 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10326 * term.c (tty_default_color_capabilities, maybe_fatal)
10327 (delete_tty): Likewise.
10328 * w16select.c (string): Likewise.
10329 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10330 * w32bdf.c (w32_free_bdf_font): Likewise.
10331 * w32fns.c (w32_unload_font): Likewise.
10332 * w32font.c (w32font_close): Likewise.
10333 * window.c (size_window): Likewise.
10334 * xselect.c (receive_incremental_selection): Likewise.
10335 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10336 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10337 * w32.c (stat): Likewise.
10338
10339 Remove useless if-before-free tests.
10340 * editfns.c (Fset_time_zone_rule): Likewise.
10341 * lread.c (nosuffix): Likewise.
10342 * ralloc.c (get_bloc): Likewise.
10343 * regex.c (reg_free): Likewise.
10344 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10345 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10346 * xsmfns.c (smc_save_yourself_CB): Likewise.
10347
103482008-06-02 Kenichi Handa <handa@m17n.org>
10349
10350 * font.c (font_find_for_lface): Handle float font size.
10351 (font_open_for_lface): Likewise.
10352
10353 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10354 comparing the properties.
10355
103562008-06-01 Jason Rumney <jasonr@gnu.org>
10357
10358 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10359 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10360 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10361 Don't add empty script list.
10362 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10363
103642008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10365
10366 * Makefile.in (dot, dotdot): Remove, update users.
10367 ".." has been used elsewhere in the file for a long time.
10368 (LIBXT_STATIC): Remove conditional based on unused variable.
10369
103702008-06-01 Miles Bader <miles@gnu.org>
10371
10372 * xfaces.c (Vface_remapping_alist): New variable.
10373 (syms_of_xfaces): Initialize it.
10374 (enum named_merge_point_kind): New type.
10375 (struct named_merge_point): Add `named_merge_point_kind' field.
10376 (push_named_merge_point): Make cycle detection respect different
10377 named-merge-point kinds.
10378 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10379 Remove face-name alias resolution.
10380 (lface_from_face_name): New definition using
10381 `lface_from_face_name_no_resolve'.
10382 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10383 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10384 (get_lface_attributes): New definition that layers face-remapping on
10385 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10386 (lookup_basic_face): New function.
10387 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10388 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10389 `get_lface_attributes'.
10390 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10391 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10392 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10393
10394 * xdisp.c (init_iterator): Pass base_face_id through
10395 `lookup_basic_face' when we actually use it as a face-id.
10396 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10397 DEFAULT_FACE_ID.
10398
10399 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10400 lookup the initial face-id.
10401
10402 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10403
104042008-06-01 Juanma Barranquero <lekktu@gmail.com>
10405
10406 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10407 (Fremove_text_properties): Fix typos in docstrings.
10408
104092008-05-31 Kenichi Handa <handa@m17n.org>
10410
10411 * font.c (font_list_entities): Fix the car part of data to be
10412 stored in the cache.
10413
10414 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10415
104162008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10417
10418 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10419 Add a `test' argument so another predicate than `equal' can be used.
10420 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10421 (map_char_table): Remove unused vars `c' and `i'.
10422 * lisp.h (Foptimize_char_table): Adjust declaration.
10423 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10424
104252008-05-30 Kenichi Handa <handa@m17n.org>
10426
10427 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10428 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10429 defined.
10430
104312008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10432
10433 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10434 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10435 frame-local settings for the same variable.
10436
104372008-05-30 Kenichi Handa <handa@m17n.org>
10438
10439 * fontset.c (Ffont_info): Move to font.c.
10440 (syms_of_fontset): Delete defsubr of Sfont_info.
10441
10442 * font.c (font_style_to_value, font_score): Delete casting of the
10443 args to xstcasecmp.
10444 (register_font_driver): Increment num_font_drivers only when
10445 registering the driver globally.
10446 (Ffont_info): Move from fontset.c. Handle a font object too.
10447 (syms_of_font): Defsubr Sfont_info.
10448
104492008-05-29 Kenichi Handa <handa@m17n.org>
10450
10451 * coding.h (enum define_coding_utf8_arg_index): New enum.
10452 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10453 coding_attr_utf_bom.
10454 (enum utf_bom_type): Rename from utf_16_bom_type.
10455 (struct utf_16_spec): Adjust for the above change.
10456 (struct coding_system): Add utf_8_bom in `spec' union.
10457
10458 * coding.c (CODING_UTF_8_BOM): New macro.
10459 (enum coding_category): Delete coding_category_utf_8, add
10460 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10461 coding_category_utf_8_sig.
10462 (CATEGORY_MASK_UTF_8): Delete it.
10463 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10464 (CATEGORY_MASK_UTF_8_SIG): New macros.
10465 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10466 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10467 CATEGORY_MASK_UTF_8_SIG.
10468 (CATEGORY_MASK_UTF_8): New macro.
10469 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10470 (detect_coding_utf_8): Check BOM.
10471 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10472 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10473 (encode_coding_utf_16): Likewise.
10474 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10475 (detect_coding, detect_coding_system): Handle utf-8-auto.
10476 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10477 (syms_of_coding): Fix setting up of Vcoding_category_table.
10478
104792008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10480
10481 * process.c (Faccept_process_output): If `millisec' is non-nil,
10482 `seconds' default to 0.
10483 (wait_reading_process_output): Also return non-nil if we read output
10484 from a non-running process.
10485
104862008-05-29 Jason Rumney <jasonr@gnu.org>
10487
10488 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10489 `raster' specified.
10490 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10491 in the uniscribe backend, but disallow any font that has no
10492 unicode subrange support.
10493
104942008-05-29 Juanma Barranquero <lekktu@gmail.com>
10495
10496 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10497 Fix typos in docstrings.
10498
104992008-05-29 Kenichi Handa <handa@m17n.org>
10500
10501 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10502 (Fx_family_fonts): Set frame correctly.
10503
105042008-05-28 Jason Rumney <jasonr@gnu.org>
10505
10506 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10507
105082008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10509
10510 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10511 calling build_annotations.
10512
105132008-05-28 Juanma Barranquero <lekktu@gmail.com>
10514
10515 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10516 (Fencode_coding_string):
10517 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10518 <latin-extra-code-table>: Fix typos in docstrings.
10519 (syms_of_coding) <coding-system-alist>: Doc fix.
10520 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10521
105222008-05-28 Kenichi Handa <handa@m17n.org>
10523
10524 * fontset.c (Ffont_info): Don't call font_close_object.
10525
10526 * font.c (font_parse_family_registry): Use Ffont_put to validate
10527 foundry and family.
10528 (font_delete_unmatched): Don't check spacing.
10529 (font_list_entities): Add spacing to the spec to list fonts.
10530
10531 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10532 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10533
10534 * coding.c (encode_coding_raw_text): Fix previous change.
10535 (encode_coding_object): When the dst_object is a buffer and is
10536 different from src_object, move gap to PT.
10537
105382008-05-27 Chong Yidong <cyd@stupidchicken.com>
10539
10540 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10541
105422008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10543
10544 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10545 all branches. Compute it differently.
10546
10547 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10548
105492008-05-27 Juanma Barranquero <lekktu@gmail.com>
10550
10551 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10552 into "else if () ... else ...".
10553
105542008-05-27 Jason Rumney <jasonr@gnu.org>
10555
10556 * w32font.c (w32font_open_internal): Determine if glyph indices
10557 are likely to work here.
10558
105592008-05-27 Chong Yidong <cyd@stupidchicken.com>
10560
10561 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10562 draw overlap glyphs with appropriate highlighting.
10563
105642008-05-27 Kenichi Handa <handa@m17n.org>
10565
10566 * xfont.c (xfont_open): Fix calculation of font->average_width.
10567
105682008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10569
10570 * casefiddle.c (casify_object): Try to guess better whether the
10571 argument is a byte or a char.
10572
105732008-05-26 Andreas Schwab <schwab@suse.de>
10574
10575 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10576 Always send multiples of format size.
10577
10578 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10579
105802008-05-26 Jason Rumney <jasonr@gnu.org>
10581
10582 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10583 (compute_metrics): Don't set failure if we just cleared the cache.
10584 (w32_weight_table): Remove unused variable.
10585 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10586 backwards compatibility.
10587
105882008-05-25 Kenichi Handa <handa@m17n.org>
10589
10590 * w32term.c (x_draw_glyph_string):
10591 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10592
10593 * xfaces.c: Delete unused function prototypes.
10594 (xstrlwr, font_frame): Delete them.
10595 (clear_face_cache): Delete unused variable.
10596
10597 * xftfont.c (xftfont_open): Delete unused variable.
10598 If underline_thickness is not 1, adjust underline_position.
10599
10600 * ftxfont.c (ftxfont_open): Delete unused variable.
10601
10602 * fontset.c (face_for_char): Optimize for the case of no charset
10603 property.
10604
10605 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10606 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10607 (otf_open, font_otf_capability, generate_otf_features)
10608 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10609 Comment out by surrounding "#if 0" and "#endif" for the moment.
10610 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10611 (syms_of_font): Codes for accessing above commented out.
10612
106132008-05-24 Eli Zaretskii <eliz@gnu.org>
10614
10615 * w32proc.c: Include dispextern.h.
10616
10617 * w32.c: Include dispextern.h.
10618
106192008-05-23 Juanma Barranquero <lekktu@gmail.com>
10620
10621 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10622 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10623 Fix typos in docstrings.
10624
106252008-05-23 Jason Rumney <jasonr@gnu.org>
10626
10627 * xsmfns.c: Remove includes that are already included by config.h.
10628
106292008-05-23 Kenichi Handa <handa@m17n.org>
10630
10631 * charset.c (Qemacs, charset_emacs): New variables.
10632 (char_charset): Fix for non-Unicode characters.
10633 (syms_of_charset): Define charset_emacs.
10634
10635 * w32term.c (x_draw_glyph_string): Be sure to update
10636 s->underline_thickness and s->underline_position. Be sure to draw
10637 underline within the current line area.
10638
10639 * xterm.c (x_draw_glyph_string): Be sure to update
10640 s->underline_thickness and s->underline_position. Be sure to draw
10641 underline within the current line area.
10642
10643 * fontset.c: Delete unused variables and add casting for char *
10644 throughout the file.
10645 (fontset_font): Try the fallback fonts of the current fontset
10646 before consulting the default fontset.
10647
10648 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10649
10650 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10651
106522008-05-22 Jason Rumney <jasonr@gnu.org>
10653
10654 * font.c: Don't include strings.h.
10655
10656 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10657
10658 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10659 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10660 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10661 to call xstrcasecmp.
10662
10663 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10664
10665 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10666
10667 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10668
10669 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10670
106712008-05-22 Kenichi Handa <handa@m17n.org>
10672
10673 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10674
10675 * font.c (font_prop_validate_style): Adjust for the format
10676 change of font_style_table.
10677
10678 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10679 two args.
10680
10681 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10682 two args.
10683
106842008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10685
10686 * minibuf.c (keys_of_minibuf): Delete.
10687 * lisp.h (keys_of_minibuf): Delete.
10688 * emacs.c (main): Don't call keys_of_minibuf.
10689
106902008-05-22 Kenichi Handa <handa@m17n.org>
10691
10692 * ftfont.c (ftfont_resolve_generic_family): Rename from
10693 ftfont_list_generic_family. Return a single family for each
10694 generic family.
10695 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10696 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10697 Call font_add_log.
10698 (ftfont_match): Call font_add_log.
10699
10700 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10701 (FONT_DEBUG): Define it.
10702 (font_add_log): Extern it.
10703 (font_assert): Rename from xassert.
10704
10705 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10706 (xfont_list_family): Call font_add_log.
10707 (xfont_match): Likewise.
10708 (memq_no_quit): Delete.
10709
10710 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10711 call of Ffont_xlfd_name.
10712
10713 * xfaces.c (struct table_entry, slant_table, weight_table)
10714 (swidth_table): Move to font.c.
10715
10716 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10717 xassert are changed to font_assert. Delete many unused variables.
10718 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10719 New variables.
10720 (struct table_entry): Move from xfaces.c and modified.
10721 (weight_table, slant_table, width_table): Move from xfaces.c and
10722 contents adjusted for the change of struct table_entry.
10723 (font_style_to_value, font_style_symbolic): Adjust for the
10724 format change of font_style_table.
10725 (font_parse_family_registry): Don't overwrite existing foundry and
10726 family of font_spec.
10727 (font_score): Fix calculation of diff for sizes.
10728 (font_sort_entites): Call font_add_log.
10729 (font_delete_unmatched): Return a newly created list.
10730 (font_list_entities): Fix previous change. Call font_add_log.
10731 (font_matching_entity, font_open_entity, font_close_entity):
10732 Call font_add_log.
10733 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10734 (Finternal_set_font_style_table): Delete.
10735 (BUILD_STYLE_TABLE): New macro.
10736 (build_style_table): New function.
10737 (Vfont_log, font_log_env_checked): New variables.
10738 (font_add_log): New function.
10739 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10740 Declare Lisp variables "font-weight-table", "font-slant-table",
10741 "font-width-table", and "font-log". Initialize font_style_table.
10742
107432008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10744
10745 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10746
107472008-05-21 Seiji Zenitani <zenitani@mac.com>
10748 Ryo Yoshitake <ryo@shiftmode.net>
10749
10750 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10751 (Vframe_alpha_lower_limit): New variable.
10752 (x_set_alpha): New function.
10753
10754 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10755
10756 * xfns.c (x-create-frame, Qalpha):
10757 Initialize the frame parameter `alpha'.
10758 * xterm.c (OPAQUE, OPACITY): New.
10759 (x_set_frame_alpha): New function.
10760 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10761
10762 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10763 * w32fns.c (w32_frame_parm_handlers): Likewise.
10764
107652008-05-20 Jason Rumney <jasonr@gnu.org>
10766
10767 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10768 truetype fonts to opentype list.
10769
107702008-05-20 Juanma Barranquero <lekktu@gmail.com>
10771
10772 * fontset.c (Ffontset_info): Doc fix.
10773 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10774 <ignore-relative-composition>: Fix typos in docstrings.
10775
10776 * font.c (syms-of-font) <font-encoding-alist>:
10777 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10778 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10779 (Ffont_otf_alternates): Doc fixes.
10780
107812008-05-20 Kenichi Handa <handa@m17n.org>
10782
10783 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10784 font.h through out the file.
10785 (FONT_DRIVERS): Rename from FONTOBJ.
10786 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10787 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10788
10789 * emacs.c (main): Call syms_of_font unconditionally.
10790
10791 * font.h (find_font_encoding): Extern it.
10792
10793 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10794 fontset.c.
10795 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
10796 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10797 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10798 only when HAVE_WINDOW_SYSTEM is defined.
10799 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10800 when HAVE_WINDOW_SYSTEM is defined.
10801
10802 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10803 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10804
10805 * xfaces.c: Include font.h unconditionally.
10806 (merge_face_ref, merge_face_vectors)
10807 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10808
108092008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10810
10811 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10812 indirect_variable.
10813 * eval.c (lisp_indirect_variable): New fun.
10814 (Fuser_variable_p): Use it.
10815
108162008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10817
10818 * lisp.h (indirect_variable):
10819 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10820 Use Lisp_Symbol pointers rather than Lisp_Object.
10821 Adjust callers.
10822 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10823 To this end, change calling-convention.
10824
10825 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10826 if some non-hidden buffers are selected by string&pred.
10827
108282008-05-19 Chong Yidong <cyd@stupidchicken.com>
10829
10830 * process.c (wait_reading_process_output): Always check status
10831 when in batch mode.
10832
108332008-05-19 Kenichi Handa <handa@m17n.org>
10834
10835 * font.c (font_list_entities): Fix handling of cache.
10836 (font_matching_entity): Likewise.
10837
10838 * ftfont.c (cs_iso8859_1): Delete.
10839 (ft_face_cache): New variable.
10840 (struct ftfont_info): New member fc_charset_idx.
10841 (ftfont_build_basic_charsets): Delete.
10842 (fc_charset_table): New variable.
10843 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10844 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10845 Callers changed.
10846 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10847 (ftfont_spec_pattern): New argument fc_charset_idx.
10848 Check registry more rigidly. Change callers.
10849 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10850 change of :font-entity property of the font.
10851
10852 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10853 property of the font.
10854
108552008-05-18 Juanma Barranquero <lekktu@gmail.com>
10856
10857 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10858 (Funencodable_char_position, Fcheck_coding_systems_region)
10859 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10860 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10861 (Ffind_operation_coding_system, Fset_coding_system_priority)
10862 (Fcoding_system_eol_type): Doc fixes.
10863
108642008-05-17 Glenn Morris <rgm@gnu.org>
10865
10866 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10867
108682008-05-16 Eli Zaretskii <eliz@gnu.org>
10869
10870 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10871 and st_gid.
10872
10873 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10874 HAVE_WINDOW_SYSTEM is not defined.
10875
10876 * xfaces.c (merge_face_ref, merge_face_vectors)
10877 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10878 HAVE_WINDOW_SYSTEM is defined.
10879 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10880
108812008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10882
10883 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10884
108852008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10886
10887 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10888
108892008-05-15 Kenichi Handa <handa@m17n.org>
10890
10891 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10892 preference.
10893
108942008-05-15 Glenn Morris <rgm@gnu.org>
10895
10896 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10897
108982008-05-15 Chong Yidong <cyd@stupidchicken.com>
10899
10900 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10901 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10902
10903 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10904
109052008-05-15 Kenichi Handa <handa@m17n.org>
10906
10907 * ftfont.c (ftfont_list): Downcase family name to check generic
10908 families.
10909
10910 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10911 font-spec for QCfont value.
10912
10913 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10914 buffer. Check the return value of it.
10915
109162008-05-14 Jason Rumney <jasonr@gnu.org>
10917
10918 * w32term.c (w32_get_glyph_overhangs): Remove.
10919 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10920
109212008-05-14 Kenichi Handa <handa@m17n.org>
10922
10923 * font.c (font_prop_validate): Make nil a valid value.
10924 (font_clear_cache): Check if the cached vector of entities is nil
10925 or not.
10926
109272008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10928
10929 * emacs.c (main_thread): Conditionalize on
10930 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10931 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10932
10933 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10934 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10935 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10936
109372008-05-14 Kenichi Handa <handa@m17n.org>
10938
10939 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10940 has no corresponding coding system.
10941
109422008-05-14 Jason Rumney <jasonr@gnu.org>
10943
10944 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10945
10946 * w32font.h (w32font_open_internal): Update declaration.
10947
10948 * w32font.c (w32font_open_internal): Change last argument from
10949 w32font_info struct to font object. Fill in font object from
10950 font_entity. Get Outline metrics if possible. Use them to
10951 calculate underline position and thickness. Use xlfd name as name
10952 property. Don't set codepage.
10953 (w32font_open): Pass font_object to w32font_open_internal. Don't
10954 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10955 (w32font_draw): Use s->font.
10956 (clear_cached_metrics): Don't clear non-existent blocks.
10957
10958 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10959 font was not found.
10960 (x_draw_glyph_string): Use underline position and thickness from font.
10961
10962 * w32uniscribe.c (uniscribe_open): Pass font_object to
10963 w32font_open_internal.
10964
109652008-05-14 Kenichi Handa <handa@m17n.org>
10966
10967 These changes are to delete all legacy font-handling codes, and
10968 make Emacs use only font-backends.
10969
10970 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10971 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10972
10973 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10974
10975 * charset.h (Vcharset_non_preferred_head)
10976 (Vcurrent_iso639_language): Extern them.
10977
10978 * charset.c (Vcharset_non_preferred_head): New variable.
10979 (Vcurrent_iso639_language): New variable.
10980 (syms_of_charset): Declare it as a Lisp variable.
10981 (char_charset): Don't check non preferred charsets. As a last
10982 resort, return charset_unicode.
10983 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10984
10985 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10986 conditionals. Don't check enable_font_backend. Delete all codes
10987 used only when USE_FONT_BACKEND is not defined.
10988
10989 * dispextern.h (struct glyph_string): Change type of `font' to
10990 `struct font *'.
10991 (struct glyph_string): New member underline_position and
10992 underline_thickness.
10993 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
10994 (struct face): Change type of `font' to `struct font *'. Remove
10995 members `font_name', `font_info_id'.
10996 (per_char_metric, encode_char): Delete externs.
10997 (calc_pixel_width_or_height): Adjust the prototype.
10998
10999 * emacs.c (enable_font_backend): Delete extern.
11000 (main): Don't set enable_font_backend. Don't check the command
11001 line argument "-disable-font-backend".
11002
11003 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11004 (enum font_property_index): New members FONT_DPI_INDEX,
11005 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11006 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11007 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11008 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11009 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11010 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11011 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11012 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11013 (struct font_spec, struct font_entity): New structs.
11014 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11015 (struct font): Many members from old "struct font_info" moved to
11016 here. Members font and entity deleted.
11017 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11018 the new font-related objects.
11019 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11020 (CHECK_FONT_GET_OBJECT): Likewise.
11021 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11022 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11023 (struct font_driver): New members case_sensitive anc check. Type
11024 of the member list and open changed.
11025 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11026 (font_symbolic_width, font_find_object, font_get_spec)
11027 (font_set_lface_from_name): Delete extern.
11028 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11029
11030 * font.c: Include <strings.h>.
11031 (enable_font_backend): Delete it.
11032 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11033 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11034 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11035 (null_string): Delete it.
11036 (null_vector): Make it static.
11037 (font_family_alist): Delete it.
11038 (Qnormal): Extern it.
11039 (QCextra, QClanguage): Delete it.
11040 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11041 (font_make_spec, font_make_entity, font_make_object)
11042 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11043 the string. Callers changed.
11044 (font_pixel_size): Adjusted for the format change of font-related
11045 objects.
11046 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11047 (font_style_to_value, font_style_symbolic): New function.
11048 (build_font_family_alist): Delete it.
11049 (font_registry_charsets): Use Fassoc_string instead of
11050 assq_no_quit.
11051 (font_prop_validate_symbol): Don't return null_string.
11052 (font_prop_validate_style): Adjusted for the change of
11053 style-related values in a font vector.
11054 (font_property_table): Delete entries for QClanguage and
11055 QCantialias, add entries for QCavgwidth.
11056 (get_font_prop_index): Delete the 2nd argument FROM.
11057 (font_prop_validate): Arguments changed.
11058 (font_put_extra): Adjusted for the change of font-related objects.
11059 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11060 (font_parse_fcname, font_unparse_fcname)
11061 (font_prepare_composition): Likewise.
11062 (font_parse_family_registry): Renamed from font_merge_old_spec.
11063 (otf_open): Delete the 1st arg entity.
11064 (font_otf_capability): Adjusted for the above change.
11065 (font_score): New arg alternate_families. Adjusted for the change
11066 of font-related objects.
11067 (font_sort_entites): New arg best_only.
11068 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11069 Delete them.
11070 (font_match_p): Check alternate families.
11071 (font_find_object): Delete it.
11072 (font_check_object): New function.
11073 (font_clear_cache): Adjusted for the change of font-related objects.
11074 (font_delete_unmatched): New arg.
11075 (font_list_entities): Call font_driver->list with a spec that
11076 doesn't specify style-related properties.
11077 (font_matching_entity): Arguments changed. Caller changed.
11078 (font_open_entity): Adjusted for the change of font-related objects.
11079 (font_close_object, font_has_char, font_encode_char)
11080 (font_get_name, font_get_spec): Likewise.
11081 (font_spec_from_name, font_clear_prop, font_update_lface):
11082 New functions.
11083 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11084 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11085 (font_at): Adjusted for the change of font-related objects.
11086 (font_range): New function.
11087 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11088 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11089 (Fcopy_font_spec, Fmerge_font_spec): New function.
11090 (Ffont_family_list): Renamed from list-families.
11091 (Finternal_set_font_style_table): Arguments changed.
11092 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11093 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11094 change of font-related objects.
11095 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11096
11097 * fontset.h (struct font_info): Delete it. Most members go to
11098 struct font.
11099 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11100 (enum FONT_SPEC_INDEX): Delete it.
11101 (font_info, list_fonts_func, load_font_func, query_font_func)
11102 (set_frame_fontset_func, find_ccl_program_func)
11103 (get_font_repertory_func, new_fontset_from_font_name): Delete
11104 externs.
11105 (fontset_from_font_name): Extern it.
11106 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11107 (FONT_INFO_FROM_FACE): Deleted.
11108 (face_for_font): Adjust prototype.
11109
11110 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11111 conditionals. Don't check enable_font_backend. Delete all codes
11112 used only when USE_FONT_BACKEND is not defined.
11113 (get_font_info_func, list_font_func, load_font_func)
11114 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11115 (get_font_repertory_func): Delete them.
11116 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11117 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11118 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11119 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11120 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11121 (fontset_compare_rfontdef): New function.
11122 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11123 rfont-defs by qsort. Adjusted for the change of font-group vector.
11124 (load_font_get_repertory): Deleted.
11125 (fontset_find_font): Use new macros to ref/set elements of
11126 font-def and rfont-def.
11127 (fontset_font): Fix the timing of remembering that no font for C.
11128 (free_face_fontset): Do nothing if the face has no fontset.
11129 (face_suitable_for_char_p): Use new macros to ref/set elements of
11130 rfont-def.
11131 (face_for_char): Likewise. Call face_for_char with font_object.
11132 (fs_load_font): Delete. Delete #pragma surrounding it.
11133 (fs_query_fontset): Use strcasecmp instead of strcmp.
11134 (generate_ascii_font_name): Adjusted for the format change of
11135 font-spec.
11136 (Fset_fontset_font): Likewise. Use new macros to set elements of
11137 font-def.
11138 (Fnew_fontset): Use font_unparse_xlfd to generate
11139 FONTSET_ASCII (fontset).
11140 (new_fontset_from_font_name): Deleted.
11141 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11142 a fontset is already created for the font. FIx updating of
11143 Vfontset_alias_alist.
11144 (fontset_ascii_font): Deleted.
11145 (Ffont_info): Adjusted for the format change of font-spec.
11146 (Finternal_char_font): Likewise.
11147 (Ffontset_info): Likewise.
11148 (syms_of_fontset): Don't check load_font_func.
11149
11150 * fns.c (internal_equal): Handle PREV_FONT.
11151
11152 * frame.h: Delete USE_FONT_BACKEND conditional.
11153
11154 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11155 conditionals. Don't check enable_font_backend. Delete all codes
11156 used only when USE_FONT_BACKEND is not defined.
11157 (x_set_font): Call x_new_font, not x_new_fontset2.
11158 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11159 already set for the frame.
11160
11161 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11162 a font-entity by font_make_entity. Use font_intern_prop instead
11163 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11164 font property. If a font is scalable, set avgwidth property to 0.
11165 Set font-entity property by font_put_extra.
11166 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11167 (ffont_driver): Adjusted for the change of struct font_driver.
11168 (ftfont_spec_pattern): New function.
11169 (ftfont_list): Return a list, not vector.
11170 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11171 (ftfont_list_family): Don't downcase names.
11172 (ftfont_free_entity): Deleted.
11173 (ftfont_open): Return a font-object. Adjusted for the change of
11174 struct font. Get underline_thickness and underline_position from
11175 font property. Don't update dpyinfo->smallest_font_height and
11176 dpyinfo->smallest_char_width.
11177 (ftfont_close): Don't free `struct font'.
11178 (ftfont_has_char): Adjusted for the format change of font-entity.
11179 (ftfont_encode_char, ftfont_text_extents): Likewise.
11180
11181 * ftxfont.c (ftxfont_list): Return a list, not vector.
11182 (ftxfont_open): Return a font-object. Adjusted for the change of
11183 struct font. Get underline_thickness and underline_position from
11184 font property. Don't update dpyinfo->smallest_font_height and
11185 dpyinfo->smallest_char_width.
11186 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11187 (ftxfont_draw): Adjusted for the change of struct font.
11188
11189 * image.c (image_ascent): Don't include "charset.h". Include
11190 "character.h" and "font.h".
11191
11192 * lisp.h (enum pvec_type): New member PREV_FONT.
11193 (Fassoc_string): EXFUN it.
11194
11195 * print.c: Include font.h.
11196 (print_object): Handle font-related objects.
11197
11198 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11199 conditionals. Don't check enable_font_backend. Delete all codes
11200 used only when USE_FONT_BACKEND is not defined.
11201 (handle_auto_composed_prop): Do nothing if it->f is not on a
11202 window system. Check how many following characters can be
11203 displayed by the same font.
11204 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11205 'struct font *'.
11206 (get_char_face_and_encoding): Assign the whole encoding task to
11207 the `encode-char' method of a font driver.
11208 (fill_composite_glyph_string): Adjusted for the change of `struct
11209 face' and `struct glyph_string'.
11210 (fill_glyph_string): Likewise.
11211 (get_per_char_metric): Arguments changed.
11212 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11213 and `struct glyph_string'.
11214 (produce_stretch_glyph, calc_line_height_property)
11215 (x_produce_glyphs): Likewise.
11216
11217 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11218 conditionals. Don't check enable_font_backend. Delete all codes
11219 used only when USE_FONT_BACKEND is not defined. Use
11220 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11221 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11222 (Qp): Extern them.
11223 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11224 Deleted.
11225 (struct font_name): Deleted.
11226 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11227 (compare_fonts_by_sort_order): New function.
11228 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11229 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11230 Deleted.
11231 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11232 compare_fonts_by_sort_order.
11233 (Fx_font_family_list): Call Ffont_family_list.
11234 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11235 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11236 (face_symbolic_slant, face_symbolic_swidth)
11237 (split_font_name_into_vector, build_font_name_from_vector)
11238 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11239 (font_rescale_ratio, split_font_name, build_font_name)
11240 (free_font_names, sort_fonts, x_face_list_fonts)
11241 (face_font_available_p, sorted_font_list, cmp_font_names)
11242 (font_list_1, concat_font_list, font_list, remove_duplicates):
11243 Deleted.
11244 (Fx_list_fonts): Use Ffont_list.
11245 (LFACE_AVGWIDTH): Deleted.
11246 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11247 by FONTP.
11248 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11249 (set_lface_from_font_name): Delete it.
11250 (set_lface_from_font): Renamed from
11251 set_lface_from_font_and_fontset. Caller changed. Don't set
11252 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11253 for face.
11254 (merge_face_vectors): Copy font-spec if necessary.
11255 Clear properties of the font-spec if necessary.
11256 (merge_face_ref): Clear properties of the font-spec if necessary.
11257 (Finternal_set_lisp_face_attribute): Likewise.
11258 (set_font_frame_param): Use font_load_for_lface to load a
11259 font-object, and call Fmodify_frame_parameters with it.
11260 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11261 font name by Ffont_xlfd_name.
11262 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11263 QCslant, and QCwidth.
11264 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11265 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11266 Compare fonts by EQ.
11267 (lookup_non_ascii_face): Deleted.
11268 (face_for_font): The 2nd argument changed.
11269 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11270 Check atomic font properties by case insensitive.
11271 (realize_non_ascii_face): Set face->overstrike correctly.
11272 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11273 (dump_realized_face): Get font name from
11274 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11275
11276 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11277 conditionals. Don't check enable_font_backend. Delete all codes
11278 used only when USE_FONT_BACKEND is not defined.
11279 (xic_create_xfontset): Original code deleted and renamed from
11280 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11281 (x_make_gc): Don't set GCFont in GCs.
11282 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11283 opened by "fixed".
11284 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11285 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11286 get_font_repertory_func.
11287
11288 * xfont.c: Include <stdlib.h> and "ccl.h".
11289 (struct xfont_info): New structure.
11290 (xfont_query_font): Deleted.
11291 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11292 moved from xterm.c.
11293 (xfont_driver): Adjusted for the change of struct font_driver.
11294 (compare_font_names): New function.
11295 (xfont_list_pattern): Sort font names case insensitively. Make
11296 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11297 (xfont_list): Return a list, not vector.
11298 (xfont_match): If the font doesn't have QCname property, generate
11299 a name from the other font properties.
11300 (xfont_open): Return a font-object. Adjusted for the change of
11301 struct font. Get underline_thickness and underline_position from
11302 font property. Don't update dpyinfo->smallest_font_height and
11303 dpyinfo->smallest_char_width.
11304 (xfont_close): Don't free struct font.
11305 (xfont_prepare_face): Adjusted for the change of struct font.
11306 (xfont_done_face): Deleted.
11307 (xfont_has_char): Adjusted for the change of struct font.
11308 (xfont_encode_char, xfont_draw): Likewise.
11309 (xfont_check): New function.
11310
11311 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11312 callback function.
11313 (xftfont_match): Adjusted for the format change of font-entity.
11314 (xftfont_open): Adjusted for the format change of font-entity and
11315 font-object. Adjusted for the change of struct font. Return a
11316 font-object. Don't update dpyinfo->smallest_font_height and
11317 dpyinfo->smallest_char_width.
11318 (xftfont_close): Block input while calling XftFontClose.
11319 (xftfont_prepare_face): Don't block input while calling
11320 xftfont_get_colors. Adjusted for the change of struct font.
11321 (xftfont_shape): Return value of error case fixed.
11322
11323 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11324
11325 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11326 conditionals.
11327 (FONT_WIDTH): Return (f)->max_width.
11328 (struct x_display_info): Delete member `font'.
11329 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11330 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11331 (struct x_output): Change type of `font' to `struct font *'.
11332
11333 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11334 conditionals. Don't check enable_font_backend. Delete all codes
11335 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11336 (x_per_char_metric, x_encode_char): Deleted.
11337 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11338 (x_compute_glyph_string_overhangs): Adjusted for the change of
11339 `struct face'.
11340 (x_draw_glyph_string_foreground)
11341 (x_draw_composite_glyph_string_foreground): Likewise.
11342 (x_draw_glyph_string): Likewise. Use font->underline_position and
11343 font->underline_thickness.
11344 (x_new_font): Renamed from x_new_fontset2.
11345 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11346 (x_check_font): Call `check' method of a font driver.
11347 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11348 (x_query_font, x_get_font_repertory): Deleted.
11349 (x_find_ccl_program): Renamed and moved to xfont.c.
11350 (x_redisplay_interface): Adjusted for the change of `struct
11351 redisplay_interface'.
11352
11353 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11354 conditionals. Don't check enable_font_backend. Delete all codes
11355 used only when USE_FONT_BACKEND is not defined. Surround non-used
11356 code by "#ifdef OLD_FONT" and "endif".
11357 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11358
11359 * w32font.h (struct w32font_info): New member.
11360 (FONT_COMPAT): New macro.
11361 (w32font_open_internal): Prototype adjusted.
11362
11363 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11364 OLD_FONT" and "endif".
11365
11366 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11367 conditionals. Don't check enable_font_backend. Delete all codes
11368 used only when USE_FONT_BACKEND is not defined.
11369 (w32font_open): Return a font-object. Make a font-object by
11370 font_make_object. Adjusted for the change of struct w32font_info.
11371 (w32font_close): Don't free struct font. Adjusted for the change
11372 of struct w32font_info.
11373 (w32font_encode_char, w32font_text_extents, w32font_draw):
11374 Adjusted for the change of struct w32font_info.
11375 (w32font_draw): Likewise.
11376 (w32font_list_internal): Return a list, not vector.
11377 (w32font_open_internal): Change the 4th arg to font-object.
11378 Adjusted for the change of struct w32font_info and font-object format.
11379 (add_font_name_to_list): Don't downcase names.
11380 (w32_enumfont_pattern_entity): Make a font-entity by
11381 font_make_entity. Adjusted for the format change of font-entity.
11382 Use FONT_SET_STYLE to set a style-related font property. If a
11383 font is scalable, set avgwidth property to 0. Set font-entity
11384 property by font_put_extra.
11385 (font_matches_spec): Adjusted for the format change of font-entity.
11386 (w32_weight_table, w32_decode_weight): New variables.
11387 (w32_encode_weight): New function.
11388 (fill_in_logfont): Adjusted for the format change of font-spec.
11389 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11390 weight value.
11391 (w32font_driver): Adjusted for the change of struct font_driver.
11392
11393 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11394 conditionals. Don't check enable_font_backend. Surround non-used
11395 code by "#ifdef OLD_FONT" and "endif".
11396 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11397 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11398
11399 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11400 conditionals. Don't check enable_font_backend. Delete all codes
11401 used only when USE_FONT_BACKEND is not defined. Surround non-used
11402 code by "#ifdef OLD_FONT" and "endif".
11403
11404 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11405 (uniscribe_open): Return value changed to font-object.
11406 Adjusted for the format change of font-object.
11407 (uniscribe_otf_capability): Adjusted for the change of struct font.
11408 (add_opentype_font_name_to_list): Don't downcase names.
11409 (uniscribe_font_driver): Adjusted for the change of struct
11410 font_driver.
11411
114122008-05-13 Chong Yidong <cyd@stupidchicken.com>
11413
11414 * dispnew.c (update_frame_1): Check if tty output is still valid
11415 before flushing it.
11416
114172008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11418
11419 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11420 to Gtk+ menus.
11421
114222008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11423
11424 * dired.c (file_name_completion): Tweak the code so as to always do it
11425 in a single pass. Tighten the scope of some variables.
11426
11427 * dired.c (Qdefault_directory): New var.
11428 (file_name_completion): Use it instead of Fexpand_file_name.
11429 (syms_of_dired): Initialize it.
11430
114312008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11432
11433 * fileio.c (double_dollars): Remove dead code.
11434
114352008-05-10 Eli Zaretskii <eliz@gnu.org>
11436
11437 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11438 Mention w32-get-true-file-attributes in doc string.
11439
11440 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11441
114422008-05-09 Glenn Morris <rgm@gnu.org>
11443
11444 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11445 2008-04-23.
11446
114472008-05-09 Eli Zaretskii <eliz@gnu.org>
11448
11449 Support for reporting owner and group of each file on MS-Windows:
11450 * dired.c (stat_uname, stat_gname): New functions, with special
11451 implementation for w32.
11452 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11453
11454 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11455 (dflt_group_name): New static variable.
11456 (dflt_group): Rename from the_group.
11457 (init_user_info): Init dflt_group fields. Get user's group name
11458 from LookupAccountSid.
11459 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11460 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11461 New initialization states.
11462 (globals_of_w32): Initialize them to zero. Initialize the default
11463 group name to "None".
11464 (GetFileSecurity_Name): New global var, the name of the function
11465 to call for GetFileSecurity.
11466 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11467 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11468 (get_file_security, get_security_descriptor_owner)
11469 (get_security_descriptor_group, is_valid_sid)
11470 (get_file_security_desc, get_rid, get_name_and_id)
11471 (get_file_owner_and_group): New functions.
11472 (stat): Use get_file_security_desc and get_file_owner_and_group to
11473 report the owner and primary group of each file. Don't ignore the
11474 high 32 bits of file's size, now that st_size is 64-bit wide.
11475 Fix test when to get true file attributes.
11476 (init_user_info): Use get_rid instead of equivalent inline code.
11477 (fstat): Don't ignore the high 32 bits of file's size.
11478
114792008-05-09 Chong Yidong <cyd@stupidchicken.com>
11480
11481 * image.c (png_load): Use correct bit-depth for setting background
11482 color.
11483
114842008-05-08 Eli Zaretskii <eliz@gnu.org>
11485
11486 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11487 epa-hook.elc.
11488
114892008-05-08 Juanma Barranquero <lekktu@gmail.com>
11490
11491 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11492
114932008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11494
11495 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11496 because the original parameters are in pure storage now.
11497 (mac_window): Remove unused params. Update callers.
11498
114992008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11500
11501 * lread.c (substitute_object_recurse): Use lower-level primitives.
11502 Don't signal errors when traversing sub-char-tables.
11503 Don't loop over all the possible characters when traversing char-tables.
11504
11505 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11506 just like we do in print.c.
11507
115082008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11509
11510 * minibuf.c (Ftry_completion): Remove code left over from when we used
11511 scmp instead of Fcompare_strings.
11512
115132008-05-04 Juanma Barranquero <lekktu@gmail.com>
11514
11515 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11516
115172008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11518
11519 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11520 Create bitmap context in native byte order.
11521
11522 * macterm.c (XDrawLine)
11523 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11524 context in native byte order.
11525
115262008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11527
11528 * config.in: Regenerate.
11529
11530 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11531 New definitions for Image I/O support.
11532 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11533 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11534 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11535 (mac_data_provider_release_data, image_load_image_io)
11536 [USE_MAC_IMAGE_IO]: New functions.
11537 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11538 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11539 (init_image_func_pointer) [MAC_OSX]: Remove function.
11540 (image_load_quartz2d) [MAC_OSX]: Check availability of
11541 CGImageCreateWithPNGDataProvider at compile time.
11542 Use lowercase `false' for boolean constant.
11543 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11544 Use image_load_image_io.
11545 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11546 Don't check MyCGImageCreateWithPNGDataProvider.
11547 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11548 Don't call init_image_func_pointer.
11549
11550 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11551
11552 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11553 Make variable non-static.
11554 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11555 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11556
11557 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11558 (RED_FROM_ULONG): Mask off higher bits.
11559 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11560
11561 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11562 Include AvailabilityMacros.h.
11563 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11564 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11565
115662008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11567
11568 * chartab.c (Fset_char_table_range): If range is t, really set all
11569 chars to that value.
11570
115712008-05-03 Eli Zaretskii <eliz@gnu.org>
11572
11573 * dired.c (Ffile_attributes): Don't allow the device number become
11574 negative.
11575
115762008-05-02 Daiki Ueno <ueno@unixuser.org>
11577
11578 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11579
115802008-05-02 Juri Linkov <juri@jurta.org>
11581
11582 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11583 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11584 DEFAULT argument as a list of default values in docstrings.
11585
115862008-05-01 Chong Yidong <cyd@stupidchicken.com>
11587
11588 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11589
115902008-05-01 Martin Rudalics <rudalics@gmx.at>
11591
11592 * dispnew.c (change_frame_size_1): Preserve small windows when
11593 shrinking frames by calling set_window_height|width with third
11594 arg 2.
11595
11596 * window.h (struct window): Replace field too_small_ok by field
11597 resize_proportionally.
11598
11599 * window.c (make_window): Initialize resize_proportionally.
11600 (enlarge_window): Temporarily set resize_proportionally to make
11601 sure that shrink_windows does scale the window proportionally.
11602 (shrink_windows): When window has resize_proportionally set try
11603 to shrink it proportionally by stealing from other windows.
11604 (struct saved_window, Fset_window_configuration)
11605 (compare_window_configurations): Handle resize_proportionally.
11606 (WINDOW_TOTAL_SIZE): New macro.
11607 (window_min_size, shrink_windows, size_window): Use it.
11608 (check_min_window_sizes): Remove. Invalid values of
11609 window-min-height|width are handled by window_min_size_2 now.
11610 (size_window, Fsplit_window, enlarge_window)
11611 (adjust_window_trailing_edge, grow_mini_window): Don't call
11612 check_min_window_sizes.
11613 (window_min_size_2, window_min_size_1, window_min_size):
11614 New argument safe_p for retrieving "safe" minimum sizes.
11615 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11616 (adjust_window_trailing_edge, grow_mini_window):
11617 Adjust arguments of window_min_size... functions.
11618 (shrink_windows): Argument min_size removed. New argument
11619 safe_p allows shrinking windows to their safe minimum sizes.
11620 Calculate minimum size and decide whether a window shall be
11621 deleted for each window individually.
11622 (size_window): When nodelete_p equals 2, tell shrink_windows to
11623 delete windows only if their new minimum size is no more safe.
11624 (shrink_window_lowest_first): Call window_min_size_1 to make
11625 sure to preserve modeline of bottom-most window when resizing
11626 the minibuffer.
11627 (Fset_window_configuration, Fcurrent_window_configuration)
11628 (compare_window_configurations): Do not handle
11629 window-min-height|width any more.
11630 (syms_of_window): Clarify window-min-height|width doc-strings.
11631
116322008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11633
11634 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11635 some more. Copy some of the code from Ftry_completions.
11636 Remove special case code that dates back to initial revision when the
11637 slash was only added when necessary and that can't trigger nowadays.
11638
116392008-04-27 Kenichi Handa <handa@m17n.org>
11640
11641 * font.c (font_prop_validate): Signal `error' instead of `font'.
11642
116432008-04-29 Jason Rumney <jasonr@gnu.org>
11644
11645 * w32fns.c (Fw32_battery_status): New defun.
11646 (syms_of_w32fns): Defsubr it.
11647
116482008-04-28 Andreas Schwab <schwab@suse.de>
11649
11650 * dired.c (file_name_completion): Fix another mixing of encoded
11651 and decoded names.
11652
116532008-04-28 Juanma Barranquero <lekktu@gmail.com>
11654
11655 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11656
116572008-04-27 Juanma Barranquero <lekktu@gmail.com>
11658
11659 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11660
116612008-04-27 Andreas Schwab <schwab@suse.de>
11662
11663 * dired.c (file_name_completion): Fix inappropriate mixing of
11664 encoded and decoded names.
11665
11666 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11667
11668 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11669
116702008-04-26 Eli Zaretskii <eliz@gnu.org>
11671
11672 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11673 2008-03-31, it's not needed anymore with `struct stat' definition
11674 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11675 for the same reasons.
11676
116772008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11678
11679 * m/sparc.h: Additional redefinitions for GNU/Linux.
11680
116812008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11682
11683 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11684 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11685 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11686 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11687 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11688 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11689 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11690 Likewise.
11691
11692 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11693 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11694 (mac_ax_number_of_characters): Add externs.
11695 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11696 [USE_MAC_TSM]: Likewise.
11697 (mac_handle_text_input_event) [MAC_OSX]:
11698 Handle kEventTextInputOffsetToPos for no active input area case.
11699 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11700 (mac_handle_document_access_event)
11701 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11702 (install_application_handler) [MAC_OSX]: Register handlers for
11703 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11704 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11705 Register mac_handle_document_access_event.
11706
11707 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11708 Make functions non-static.
11709
117102008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11711
11712 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11713 (read_file_name_completion_ignore_case, insert_default_directory)
11714 (Qdefault_directory): Move to minibuffer.el.
11715 (Fread_file_name): Call the new `read-file-name' instead.
11716
117172008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11718
11719 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11720 Make function non-static.
11721 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11722 Remove function.
11723 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11724 Move to mactoolbox.c.
11725 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11726
11727 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11728 (mac_rect_make): New macro.
11729
11730 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11731 instead of float.
11732 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11733 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11734 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11735 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11736 CGRectMake.
11737 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11738 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11739 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11740 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11741 instead of WindowRef in argument type.
11742 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11743 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11744 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11745 instead of DISPLAY. All uses changed.
11746 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11747 (x_calc_absolute_position): Simplify so as not to use
11748 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11749
11750 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11751 instead of WindowRef in argument type.
11752 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11753 [TARGET_API_MAC_CARBON]: Remove externs.
11754 (create_apple_event, mac_event_parameters_to_lisp)
11755 [TARGET_API_MAC_CARBON]: Add externs.
11756
11757 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11758 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11759 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11760 is clicked.
11761 (x_activate_menubar): Remove extern for saved_menu_event_location.
11762 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11763 Move from mac.c.
11764
117652008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11766
11767 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11768 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11769
117702008-04-23 Jason Rumney <jasonr@gnu.org>
11771
11772 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11773 attributes only for local files.
11774
11775 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11776 default to Qlocal.
11777
117782008-04-22 Juri Linkov <juri@jurta.org>
11779
11780 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11781 read-buffer-to-switch instead of using the letter "B".
11782
117832008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11784
11785 * fileio.c (Qdefault_directory): New variable.
11786 (Fread_file_name): Use it to pass `dir' to the completion functions.
11787
117882008-04-20 Chong Yidong <cyd@stupidchicken.com>
11789
11790 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11791
117922008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11793
11794 * keyboard.c (Vpre_help_message): Remove.
11795 (show_help_echo): Remove default C code.
11796
11797 * dired.c (directory_files_internal, file_name_completion):
11798 Only call ENCODE_FILE if the string is indeed decoded.
11799
118002008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11801
11802 * Makefile.in (TOOLKIT_DEFINES): Remove.
11803 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11804
118052008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11806
11807 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11808 (mactoolbox.o): New target.
11809
11810 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11811 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11812
11813 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11814 Use mac_set_frame_window_background instead of XSetWindowBackground.
11815 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11816 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11817 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11818 instead of SetWindowTitleWithCFString.
11819 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11820 Move function to mactoolbox.c.
11821 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11822 Use mac_set_window_modified instead of SetWindowModified.
11823 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11824 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11825 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11826 FrontNonFloatingWindow. Use mac_activate_window instead of
11827 ActivateWindow. Use mac_active_non_floating_window instead of
11828 ActiveNonFloatingWindow.
11829 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11830 Use mac_show_hourglass and mac_hide_hourglass.
11831 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11832 instead of GetGlobalMouse.
11833 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11834 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11835 Use mac_bring_window_to_front instead of BringToFront.
11836 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11837 mactoolbox.c.
11838 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11839 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11840 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11841 mactoolbox.c.
11842
11843 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11844 (XtPointer): Move typedef from macmenu.c.
11845 (enum button_type): Move enum from macmenu.c.
11846 (widget_value): Move typedef from macmenu.c.
11847 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11848 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11849 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11850 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11851 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11852 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11853 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11854 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11855 (Selection): Move typedef from macselect.c.
11856 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11857 macterm.c.
11858 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11859 (mac_is_window_collapsed, mac_bring_window_to_front)
11860 (mac_send_window_behind, mac_hide_window, mac_show_window)
11861 (mac_collapse_window, mac_front_non_floating_window)
11862 (mac_active_non_floating_window, mac_activate_window)
11863 (mac_move_window_structure, mac_move_window, mac_size_window)
11864 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11865
11866 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11867 (enum mac_menu_kind): Move enum to mactoolbox.c.
11868 (min_menu_id): Move variable to mactoolbox.c.
11869 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11870 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11871 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11872 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11873 [TARGET_API_MAC_CARBON]: Likewise.
11874 (XtPointer): Move typedef to macgui.h.
11875 (enum button_type): Move enum to macgui.h.
11876 (widget_value): Move typedef to macgui.h.
11877 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11878 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11879 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11880 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11881 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11882 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11883 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11884 (popup_activated_flag): Make variable non-static.
11885 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11886 (add_menu_item, fill_menu, dispose_menus):
11887 Move functions to mactoolbox.c.
11888 (restore_show_help_function, menu_target_item_handler)
11889 (install_menu_target_item_handler, mac_handle_dialog_event)
11890 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11891 [TARGET_API_MAC_CARBON]: Likewise.
11892 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11893 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11894 (find_and_call_menu_selection, name_is_separator): Make function
11895 non-static.
11896 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11897 to mactoolbox.c.
11898 (set_frame_menubar): Don't call install_menu_quit_handler.
11899 (menu_item_selection): New variable.
11900 (mac_menu_show): Use create_and_show_popup_menu.
11901 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11902 selection but set variable menu_item_selection. All uses changed.
11903 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11904 Call install_menu_quit_handler. Move to mactoolbox.c.
11905
11906 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11907 (Selection): Move typedef to macgui.h.
11908 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11909 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11910 Make variables non-static.
11911 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11912 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11913 Make functions non-static.
11914 (Vmac_service_selection) [MAC_OSX]: Likewise.
11915 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11916 (mac_valid_selection_target_p, mac_clear_selection)
11917 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11918 (mac_put_selection_value, mac_selection_has_target_p)
11919 (mac_get_selection_value, mac_get_selection_target_list)
11920 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11921 Move functions to mactoolbox.c.
11922 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11923 Likewise.
11924 (copy_scrap_flavor_data, mac_handle_service_event)
11925 (install_service_handler) [MAC_OSX]: Likewise.
11926 (syms_of_macselect) <Vmac_dnd_known_types>:
11927 Use mac_dnd_default_known_types.
11928
11929 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11930 Move to mactoolbox.c.
11931 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11932 (Fx_selection_owner_p): Add EXFUN.
11933 (install_window_handler, remove_window_handler, XSetWindowBackground):
11934 Remove externs.
11935 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11936 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11937 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11938 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11939 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11940 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11941 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11942 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11943 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11944 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11945 (mac_valid_selection_target_p, mac_clear_selection)
11946 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11947 (mac_put_selection_value, mac_selection_has_target_p)
11948 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11949 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11950 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11951 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11952 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11953 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11954 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11955 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11956 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11957
11958 * mactoolbox.c: New file.
11959
119602008-04-18 Jason Rumney <jasonr@gnu.org>
11961
11962 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11963
119642008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11965
11966 * character.c (Fmultibyte_char_to_unibyte):
11967 Return latin1 chars unchanged.
11968
11969 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11970 relocated if it points to `name'.
11971
119722008-04-17 Kenichi Handa <handa@m17n.org>
11973
11974 * data.c (Faset): Allow setting a multibyte character in an
11975 ASCII-only unibyte string.
11976
11977 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11978
119792008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11980
11981 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11982 done in config.h.
11983
119842008-04-16 Juanma Barranquero <lekktu@gmail.com>
11985
11986 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11987 (Fchar_direction): Add usage in the docstring.
11988
119892008-04-15 Chong Yidong <cyd@stupidchicken.com>
11990
11991 * keyboard.c (read_key_sequence): Remove always-true checks.
11992
119932008-04-14 Jason Rumney <jasonr@gnu.org>
11994
11995 * w32font.c (w32font_open_internal): Set max_bounds.descent in
11996 compatibility struct, for better underline positioning.
11997
119982008-04-13 David Hansen <david.hansen@gmx.net>
11999
12000 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12001 string.
12002
120032008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12004
12005 * m/hp800.h (XUINT, XSET): Remove.
12006
120072008-04-12 Juanma Barranquero <lekktu@gmail.com>
12008
12009 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12010 previous change.
12011
120122008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12013
12014 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12015 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12016
120172008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12018
12019 * keymap.h (map_keymap_canonical): Declare.
12020 * xmenu.c (single_keymap_panes): Use it.
12021
120222008-04-11 Glenn Morris <rgm@gnu.org>
12023
12024 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12025 set the target's value to that of the alias.
12026
120272008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12028
12029 * term.c (set_tty_color_mode): Left over typo.
12030
120312008-04-10 Michael Albinus <michael.albinus@gmx.de>
12032
12033 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12034 only after check for file name handler functions. Signal, when
12035 native functionality is not supported.
12036 (syms_of_fileio): Declare it unconditionally.
12037
120382008-04-10 Jason Rumney <jasonr@gnu.org>
12039
12040 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12041 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12042
12043 * w32.c (logon_network_drive): Also logon to remote drives that
12044 are mapped to drive letters.
12045
120462008-04-10 Glenn Morris <rgm@gnu.org>
12047
12048 * xdisp.c (truncate-partial-width-windows): Doc fix.
12049
120502008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12051
12052 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12053 Move functions to minibuffer.el.
12054 (syms_of_fileio): Don't declare them.
12055
120562008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12057
12058 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12059 (syms_of_minibuf): Remove its initialization.
12060
12061 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12062
120632008-04-09 Juanma Barranquero <lekktu@gmail.com>
12064
12065 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12066
120672008-04-09 Jason Rumney <jasonr@gnu.org>
12068
12069 * makefile.w32-in (distclean): Delete makefile too.
12070 (maintainer-clean): New target.
12071
12072 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12073
12074 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12075 for new font backend and composite cases.
12076
120772008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12078
12079 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12080 Most of the code moved to run_timers.
12081 (do_pending_atimers): Call run_timers.
12082 (run_timers): New function.
12083
12084 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12085 run atimers.
12086
12087 * process.c (wait_reading_process_output): The same as above.
12088
120892008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12090
12091 * minibuf.c (last_exact_completion): Remove variable.
12092 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12093 (complete_and_exit_1, complete_and_exit_2)
12094 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12095 (Fdisplay_completion_list, display_completion_list_1)
12096 (Fminibuffer_completion_help, Fself_insert_and_exit)
12097 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12098 minibuffer.el.
12099 (syms_of_minibuf): Remove corresponding initializations.
12100
12101 * keyboard.c (Qdeactivate_mark): New var.
12102 (command_loop_1): Use it to call `deactivate-mark'.
12103 (syms_of_keyboard): Initialize it.
12104
12105 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12106 to another frame.
12107 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12108 Don't call set_tty_color_mode.
12109 (store_frame_param): Reset previous_frame rather than call
12110 set_tty_color_mode.
12111 * term.c (set_tty_color_mode): Rewrite.
12112 * dispextern.h (set_tty_color_mode): New type.
12113 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12114
121152008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12116
12117 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12118 for generic chars, which do not exist any more in emacs-unicode.
12119
121202008-04-08 Michael Albinus <michael.albinus@gmx.de>
12121
12122 * coding.c (detect_coding_emacs_mule)
12123 (Ffind_operation_coding_system): Fix typo.
12124
121252008-04-08 Jason Rumney <jasonr@gnu.org>
12126
12127 * w32uniscribe.c (SNAME): Extract only symbol name.
12128
12129 * w32font.h (struct w32_metric_cache): New struct.
12130 (w32font_info): Use it.
12131 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12132 (CACHE_BLOCKSIZE): New constants.
12133
12134 * w32font.c (Qja, Qko, Qzh): New symbols.
12135 (syms_of_w32font): Initialise them.
12136 (font_matches_spec): Use them to filter by language.
12137 (recompute_cached_metrics): Remove function.
12138 (compute_metrics, clear_cached_metrics): New functions.
12139 (w32font_encode_char): Use them to manage metric cache.
12140 (w32font_text_extents): Cache metrics for all glyphs on demand.
12141 Delay converting glyph indices to WORD until needed.
12142 (w32font_open_internal): Initialize metric cache to empty.
12143 (registry_to_w32_charset): Charset should always be a symbol.
12144 (fill_in_logfont, list_all_matching_fonts): Family should
12145 always be a symbol.
12146
121472008-04-06 Jason Rumney <jasonr@gnu.org>
12148
12149 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12150 Give up if glyph indices not supported. Use uniscribe obtained
12151 ABC widths for individual metrics. Map glyph clusters back to
12152 characters using fClusterStart flag. Return number of glyphs
12153 produced, not chars processed.
12154 (uniscribe_shape): Map char at FROM to current glyph.
12155
121562008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12157
12158 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12159 Use SetMenuItemHierarchicalMenu.
12160
121612008-04-05 Jason Rumney <jasonr@gnu.org>
12162
12163 * image.c (pbm_load): Allow color values up to 65535.
12164 Throw an error if max_color_idx is outside the supported range.
12165 Report an error when image size is invalid.
12166 Read two bytes at a time when raw images have max_color_idx above 255.
12167
121682008-04-05 Eli Zaretskii <eliz@gnu.org>
12169
12170 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12171 cFileName a file name that includes `?' characters, use the 8+3
12172 alias in cAlternateFileName instead.
12173
121742008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12175
12176 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12177 append "CCL: Quitted" when the CCL program is quitted.
12178 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12179
12180 * ccl.h (struct ccl_program): New member quit_silently.
12181
121822008-04-05 Chong Yidong <cyd@stupidchicken.com>
12183
12184 * search.c (compile_pattern_1): Treat non-nil and non-string of
12185 search-spaces-regexp as nil.
12186
12187 * minibuf.c (Fassoc_string): Tweak docstring.
12188
121892008-04-05 Eli Zaretskii <eliz@gnu.org>
12190
12191 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12192 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12193 2008-03-14 to force inode be positive.
12194
12195 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12196 _S_* ones, since we now use our own sys/stat.h.
12197 (stat, fstat): Don't mangle the inode number.
12198 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12199
122002008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12201
12202 * frame.h (struct frame): Give one more bit to `visible' since we use
12203 values larger than 1 to indicate obscured frames on ttys.
12204
12205 * keymap.c (Qkeymap_canonicalize): New var.
12206 (Fmap_keymap_internal): New fun.
12207 (describe_map): Use keymap-canonicalize.
12208
12209 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12210 (Fundo_boundary): Set them.
12211 (syms_of_undo): Initialize them.
12212 (record_point): Use them instead of last_point_position*.
12213 (last_undo_buffer): Change type.
12214
122152008-04-04 Jason Rumney <jasonr@gnu.org>
12216
12217 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12218 (recompute_cached_metrics): Don't set ascent and descent per char.
12219
12220 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12221 (uniscribe_check_otf): Add GC protection before consing.
12222 Rearrange loop for counting features.
12223
122242008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12225
12226 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12227 buffer with byte-size of source buffer.
12228
122292008-04-03 Chong Yidong <cyd@stupidchicken.com>
12230
12231 * callint.c (Fcall_interactively): Handle temporary region even
12232 when shift-select-mode is off.
12233
122342008-04-03 Jason Rumney <jasonr@gnu.org>
12235
12236 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12237
122382008-04-03 Kenichi Handa <handa@m17n.org>
12239
12240 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12241 (CATEGORY_MASK_UTF_16): Likewise.
12242 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12243 binary file.
12244 (detect_coding): Add null-byte detection for a binary file.
12245 (detect_coding_system): Likewise.
12246
122472008-04-03 Jason Rumney <jasonr@gnu.org>
12248
12249 * w32uniscribe.c: New file.
12250
12251 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12252
12253 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12254
12255 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12256 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12257 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12258 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12259 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12260 (Qphonetic): New symbols.
12261 (syms_of_w32font): Initialize them.
12262 (font_supported_scripts): Use them.
12263 (w32font_list_family): List all charsets.
12264 (w32font_text_extents, recompute_cached_metrics): Fix metric
12265 calculations.
12266 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12267 Give opentype fonts their own format.
12268 (font_matches_spec): New arguments backend and logfont.
12269 Handle :otf spec for uniscribe backend.
12270 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12271 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12272
12273 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12274 font backend.
12275 (globals_of_w32fns): Initialize uniscribe font backend.
12276
12277 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12278 dependencies.
12279 (w32uniscribe.$(O)): New file to build.
12280 (FONT_OBJ): Include w32uniscribe.$(O).
12281 (LIBS): Add uniscribe libraries.
12282
12283 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12284
122852008-04-02 Chong Yidong <cyd@stupidchicken.com>
12286
12287 * callint.c (Vshift_select_mode): New var.
12288 (Finteractive): Document new ^ spec.
12289 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12290 is present.
12291
12292 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12293 (command_loop_1): Avoid running the direct display versions of
12294 forward-char and backward-char if shift-selection may occur.
12295 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12296 shift-translation takes place.
12297
12298 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12299 avoid clobbering by define-minor-mode.
12300
12301 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12302 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12303
12304 * syntax.c (Fforward_word): Add ^ interactive spec.
12305
12306 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12307 (Fscroll_right): Add ^ interactive spec.
12308
123092008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12310
12311 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12312
12313 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12314
12315 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12316
123172008-03-31 Juri Linkov <juri@jurta.org>
12318
12319 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12320
123212008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12322
12323 * gtkutil.c (xg_set_geometry): Fix indentation.
12324 (xg_resize_outer_widget): Remove.
12325 (x_wm_size_hint_off): Fix indentation.
12326 (xg_frame_set_char_size): Call flush_and_sync after
12327 gtk_window_resize.
12328 (x_wm_set_size_hint): Pass NULL as geometry window to
12329 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12330 Add menu bar and tool bar height to base height.
12331 (xg_update_frame_menubar, free_frame_menubar)
12332 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12333 (update_frame_tool_bar, free_frame_tool_bar):
12334 Change xg_resize_outer_widget to xg_frame_set_char_size.
12335
123362008-03-30 Michael Albinus <michael.albinus@gmx.de>
12337
12338 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12339 (Fdbus_call_method): New parameter TIMEOUT.
12340 (dbus-send-signal): Optimize UNGCPRO call.
12341
123422008-03-29 Juri Linkov <juri@jurta.org>
12343
12344 * window.c (Fdisplay_buffer): Move call to
12345 Vsplit_window_preferred_function out of conditions that check
12346 if window is eligible for vertical splitting.
12347 When Vsplit_window_preferred_function is non-nil, call it and use
12348 its non-nil return value as window. Otherwise, continue doing
12349 vertical splitting using Fsplit_window with arg horflag=nil.
12350 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12351 default value from `split-window' to nil.
12352
123532008-03-29 Juri Linkov <juri@jurta.org>
12354
12355 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12356 for interactive code letters 'b' and 'B'.
12357
123582008-03-29 Eli Zaretskii <eliz@gnu.org>
12359
12360 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12361 multibyte string.
12362
123632008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12364
12365 * keyboard.c (pending_funcalls): New var.
12366 (timer_check): Run it.
12367 (syms_of_keyboard): Initialize it.
12368 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12369 (Vdelete_terminal_functions): New vars.
12370 (syms_of_terminal): Initialize them.
12371 (Fdelete_terminal): Run delete-terminal-functions.
12372 * xdisp.c (safe_eval): Rewrite.
12373 (safe_call2): New fun.
12374 * frame.c (Qdelete_frame_functions): New var.
12375 (syms_of_frame): Initialize it.
12376 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12377 * lisp.h (safe_call2, pending_funcalls): Declare.
12378
123792008-03-28 Andreas Schwab <schwab@suse.de>
12380
12381 * indent.c (Fmove_to_column): Move declaration before statements.
12382
123832008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12384
12385 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12386 (struct frame): Use bit fields for boolean vars.
12387
12388 * process.c (server_accept_connection): Simplify naming.
12389 (emacs_get_tty_pgrp): Use SDATA.
12390
12391 * coding.c (decode_coding_object): Fix last change.
12392
123932008-03-27 Jason Rumney <jasonr@gnu.org>
12394
12395 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12396
123972008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12398
12399 * charset.c (Fdefine_charset_internal): Change the way of
12400 registering charsets in Vcharset_order_list.
12401 (syms_of_charset): Make the charset `eight-bit' supplementary.
12402
124032008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12404
12405 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12406 operations, to avoid having the difference between pointers
12407 overflow.
12408
124092008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12410
12411 * indent.c (check_display_width): New fun.
12412 (scan_for_column): Use it.
12413
12414 * data.c (syms_of_data): Mark most-positive-fixnum and
12415 most-negative-fixnum as constants.
12416
12417 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12418
12419 * indent.c (scan_for_column): Extract from current_column_1.
12420 Merge with the same code from Fmove_to_column.
12421 (current_column_1, Fmove_to_column): Use it.
12422
124232008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12424
12425 * keymap.c (map_keymap_internal): New fun.
12426 (map_keymap): Use it.
12427 (Fmap_keymap_internal): New fun.
12428 (Fmap_keymap): Remove left-out test from before make_save_value.
12429
12430 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12431
12432 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12433 Use XCAR/XCDR.
12434
12435 * process.h (struct Lisp_Process): Remove filter_multibyte.
12436 * process.c (QCfilter_multibyte): Remove.
12437 (setup_process_coding_systems): Don't use filter_multibyte.
12438 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12439 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12440 (Fset_process_filter_multibyte): Change the coding-system to
12441 approximate the previous behavior.
12442 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12443 coding-system.
12444
12445 * coding.c (decode_coding_object): When not decoding into a buffer,
12446 obey the coding system's preference of (uni|multi)byte.
12447
124482008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12449
12450 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12451 every char is changed and has a different byte-length.
12452 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12453 Fix int -> EMACS_INT.
12454
124552008-03-23 David Hansen <david.hansen@gmx.net>
12456
12457 * dbusbind.c (xd_read_message): Remove extra copying of message
12458 strings. Check for NULL `interface' or `member'.
12459
124602008-03-22 Eli Zaretskii <eliz@gnu.org>
12461
12462 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12463 cFileName a file name that includes `?' characters, use the 8+3
12464 alias in cAlternateFileName instead.
12465
124662008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12467
12468 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12469
124702008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12471
12472 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12473 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12474 work on current_buffer only instead (that was already the case
12475 for some of the code anyway).
12476 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12477 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12478 (SET_PT, SET_PT_BOTH): Adjust.
12479 * intervals.h (set_point, temp_set_point, set_point_both)
12480 (temp_set_point_both): Remove redundant declarations.
12481
124822008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12483
12484 * fileio.c (Finsert_file_contents):
12485 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12486 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12487 when buffer != current_buffer anyway.
12488
124892008-03-20 Andreas Schwab <schwab@suse.de>
12490
12491 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12492 as default.
12493
124942008-03-19 Jason Rumney <jasonr@gnu.org>
12495
12496 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12497 (syms_of_w32fns): Initialize them.
12498 (HOURGLASS_ID): New constant.
12499 (x_window_to_frame): Don't check hourglass_window.
12500 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12501 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12502 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12503 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12504 Only change the cursor if hourglass is not active.
12505 (Fx_create_frame): Initialize frame's current_cursor.
12506 (hourglass_atimer): Remove.
12507 (hourglass_started): New function.
12508 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12509 (show_hourglass): Adapt to w32, changing argument to frame.
12510
12511 * w32term.h (struct w32_output): Remove hourglass_window.
12512 Add current_cursor.
12513
12514 * eval.c (call_debugger, Fsignal):
12515 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12516 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12517 (Fexecute_extended_command, cancel_hourglass_unwind):
12518 * minibuf.c (read_minibuf):
12519 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12520
125212008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12522
12523 * window.c (run_funs): New fun.
12524 (run_window_configuration_change_hook): Use it to run the buffer-local
12525 and the global part of the hook.
12526
12527 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12528 (unwind_format_mode_line): Restore selected window.
12529 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12530
125312008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12532
12533 * editfns.c (Fchar_equal): Check they are valid characters.
12534
12535 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12536
125372008-03-17 Andreas Schwab <schwab@suse.de>
12538
12539 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12540 against a charset.
12541
12542 * lisp.h (Fbuffer_list): Declare.
12543
125442008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12545
aac0c6e3
MR
12546 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12547 handlebox_widget is != 0.
12548
125492008-03-16 Juri Linkov <juri@jurta.org>
12550
12551 * callint.c (Fcall_interactively): For interactive code letters
12552 'b' and 'B' put the buffer list into the list of default "future"
12553 values of the minibuffer.
12554
125552008-03-16 Andreas Schwab <schwab@suse.de>
12556
12557 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12558 modifiers.
12559
12560 * regex.c (re_match_2_internal): Correct matching of a charset
12561 against latin-1 characters.
12562
125632008-03-16 Kenichi Handa <handa@m17n.org>
12564
12565 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12566 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12567 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12568 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12569 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12570 CHAR_STRING_ADVANCE.
12571 (produce_chars): Fix for the case that the source and the
12572 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12573 instead of CHAR_STRING_ADVANCE.
12574 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12575 STRING_CHAR_ADVANCE.
12576
125772008-03-15 Andreas Schwab <schwab@suse.de>
12578
12579 * regex.c (re_match_2_internal): Correct matching of eight bit
12580 characters in unibyte strings.
12581
125822008-03-15 Martin Rudalics <rudalics@gmx.at>
12583
12584 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12585 at end of range when it coincides with the end of the buffer.
12586
125872008-03-14 Eli Zaretskii <eliz@gnu.org>
12588
12589 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12590
12591 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12592
125932008-03-14 Jason Rumney <jasonr@gnu.org>
12594
12595 * editfns.c (initial_tz): New variable.
12596 (syms_of_editfns): Initialize it.
12597 (Fset_time_zone_rule): Set it when first called.
12598 Use it when TZSTRING is nil.
12599
12600 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12601 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12602 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12603 (globals_of_w32fns): Initialize them.
12604 (compute_tip_xy): Use them to position tooltips.
12605
126062008-03-14 Glenn Morris <rgm@gnu.org>
12607
12608 * emacs.c (main): Revert previous change.
12609 (standard_args): Revert -internal-script back to -scriptload,
12610 and remove the long-option form.
12611
126122008-03-13 Glenn Morris <rgm@gnu.org>
12613
12614 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12615 Remove option -enable-font-backend.
12616
126172008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12618
12619 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12620
126212008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12622
12623 * xterm.c (x_connection_closed): For GTK: If this is the last
12624 terminal just exit without closing the display.
12625
126262008-03-11 Jason Rumney <jasonr@gnu.org>
12627
12628 * w32font.c (w32font_full_name): Use floor to round.
12629
f0131492 126302008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12631
12632 * sound.c (alsa_configure): Declare vol at beginning of block.
12633
12634 * fontset.c (Ffontset_info): Remove extra semicolon.
12635
126362008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12637
12638 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12639 size of resulting string.
12640
126412008-03-10 Jason Rumney <jasonr@gnu.org>
12642
12643 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12644
126452008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12646
12647 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12648 Don't pretend as if characters with display property haven't been
12649 consumed for string-replacing-string case.
12650
126512008-03-08 Kim F. Storm <storm@cua.dk>
12652
12653 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12654 (get_next_display_element, next_element_from_string)
12655 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12656
126572008-03-08 Andreas Schwab <schwab@suse.de>
12658
12659 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12660
126612008-03-06 Jason Rumney <jasonr@gnu.org>
12662
12663 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12664 when charset not specified. Only translate ANSI to unicode when
12665 font_type is truetype.
12666 (w32font_coverage_ok): New function.
12667 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12668
126692008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12670
12671 * lread.c (Fread_char): Resolve modifiers.
12672 (Fread_char_exclusive): Likewise.
12673
12674 * character.c (char_resolve_modifier_mask): New function.
12675 (char_string): Use char_resolve_modifier_mask.
12676 (Fchar_resolve_modifiers): New function.
12677 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12678 function.
12679
126802008-03-04 Jason Rumney <jasonr@gnu.org>
12681
12682 * makefile.w32-in: Always include w32font.c in the build.
12683 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12684
126852008-03-04 Andreas Schwab <schwab@suse.de>
12686
12687 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12688 (versionclean): Likewise.
12689
126902008-03-04 Juanma Barranquero <lekktu@gmail.com>
12691
12692 * .cvsignore: Add oo.
12693
126942008-03-03 Andreas Schwab <schwab@suse.de>
12695
12696 * coding.c (decode_coding_object): Inhibit gap shrinking while
12697 decoding in place.
12698
126992008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12700
12701 * w32term.c: Remove unused include "gnu.h".
12702 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12703
12704 * gnu.h: Rename to ...
12705 * emacs-icon.h: ... this.
12706 * xterm.c: Use emacs-icon.h instead of gnu.h.
12707 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12708
127092008-03-03 Juanma Barranquero <lekktu@gmail.com>
12710
12711 * w32font.c: Include math.h.
12712
127132008-03-03 Jason Rumney <jasonr@gnu.org>
12714
12715 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12716 Compute options separately.
12717 (w32font_open_internal): Set glyph_idx before caching metrics.
12718
12719 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12720 Define if system headers don't.
12721 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12722 (w32font_encode_char): Don't declare here.
12723
12724 * w32font.c (Quniscribe, QCformat): New symbols.
12725 (syms_of_w32font): Define them.
12726 (w32font_has_char): Indicate uncertainty.
12727 (w32font_encode_char): Encode as glyph point. Make static.
12728 (recompute_cached_metrics): New function.
12729 (w32font_open_internal): Use it. Set font to use glyph points
12730 initially. Set format based on type of font.
12731 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12732 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12733 on it. Set format based on information available here.
12734 (add_font_entity_to_list): Identify backend based on opentype_only.
12735
127362008-03-02 Andreas Schwab <schwab@suse.de>
12737
12738 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12739
12740 * coding.c (decode_coding_big5, produce_chars):
12741 Fix typos in last change.
12742
127432008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12744
12745 * gnu.h: New icon.
12746
127472008-03-02 Kenichi Handa <handa@m17n.org>
12748
12749 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12750 `dos', don't decode '\r' if that is the last in the source.
12751 (decode_coding_utf_16, decode_coding_emacs_mule)
12752 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12753 (decode_coding_raw_text, decode_coding_charset): Likewise.
12754 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12755
127562008-03-01 Jason Rumney <jasonr@gnu.org>
12757
12758 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12759
127602008-03-01 Kim F. Storm <storm@cua.dk>
12761
12762 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12763
127642008-03-01 Jason Rumney <jasonr@gnu.org>
12765
12766 * w32font.c (w32font_full_name): New function.
12767 (w32font_open_internal): Use it.
12768
127692008-03-01 Kim F. Storm <storm@cua.dk>
12770
12771 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12772
127732008-03-01 Jason Rumney <jasonr@gnu.org>
12774
12775 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12776
127772008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12778
12779 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12780 xg_frame_resized when the event is for the edit widget.
12781
12782 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12783
12784 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12785 set_char_size.
12786 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12787 operations on widgets here. Just set frame size if needed.
12788 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12789 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12790 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12791 the whole frame.
12792 (xg_create_tool_bar): Move attachment of the tool bar to
12793 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12794 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12795
127962008-03-01 Jason Rumney <jasonr@gnu.org>
12797
12798 * w32fns.c (w32_msg_pump): Disable debug code.
12799
128002008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12801
12802 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12803
128042008-02-29 Chong Yidong <cyd@stupidchicken.com>
12805
12806 * xdisp.c (next_overlay_string): Don't set
12807 overlay_strings_at_end_processed_p if we're currently reading from
12808 a display string.
12809
128102008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12811
12812 * xdisp.c (get_overlay_strings_1): Fix typo.
12813
128142008-02-29 Chong Yidong <cyd@stupidchicken.com>
12815
12816 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12817
128182008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12819
12820 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12821
12822 * xdisp.c (display_mode_element): Cancel the previous change.
12823 (decode_mode_spec): Likewise.
12824 (handle_auto_composed_prop): Don't make composition if it->string
12825 is a string.
12826
128272008-02-27 Kim F. Storm <storm@cua.dk>
12828
12829 * lisp.h (GLYPH): Change type from int to struct with separate char
12830 and face_id members.
12831 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12832 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12833 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12834 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12835 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12836 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12837 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12838 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12839 handle new Lisp glyph code encoding, either an integer or a cons.
12840
12841 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12842 (GLYPH_ALIAS): Delete.
12843 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12844 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12845 (GLYPH_FROM_CHAR): Replace macro by ...
12846 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12847
12848 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12849 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12850 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12851 (GLYPH_INVALID_P): New macro.
12852 (spec_glyph_lookup_face): Update prototype.
12853
12854 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12855 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12856 new glyph code encoding.
12857 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12858 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12859
12860 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12861 Adapt to new glyph type and new glyph code encoding.
12862
12863 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12864
12865 * indent.c (current_column, current_column_1, Fmove_to_column)
12866 (compute_motion): Adapt to new glyph code encoding.
12867
12868 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12869
128702008-02-27 Chong Yidong <cyd@stupidchicken.com>
12871
12872 * process.c (wait_reading_process_output): Check for window
12873 changes caused by timers.
12874 Suggested by Johan Bockgård.
12875
128762008-02-27 Glenn Morris <rgm@gnu.org>
12877
12878 * emacs.c (USAGE1): Add `--disable-font-backend'.
12879
128802008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12881
12882 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12883 is made to the buffer.
12884
128852008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12886
12887 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12888 (face_at_string_position):
12889 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12890 (face_at_string_position):
12891 * xdisp.c (display_string, next_overlay_change):
12892 * buffer.h (overlays_at):
12893 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12894 Update callers.
12895
128962008-02-26 Chong Yidong <cyd@stupidchicken.com>
12897
12898 * editfns.c (Fformat): Doc fix.
12899
129002008-02-26 Juanma Barranquero <lekktu@gmail.com>
12901
12902 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12903 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12904 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12905
129062008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12907
12908 * buffer.c (Fbuffer_swap_text): New function.
12909 (syms_of_buffer): Defsubr it.
12910
129112008-02-25 Chong Yidong <cyd@stupidchicken.com>
12912
12913 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12914
129152008-02-25 Jason Rumney <jasonr@gnu.org>
12916
12917 * w32font.c (w32font_draw): Draw one character at a time when padding.
12918
129192008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12920
12921 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12922 Handle a nil arg. Use run_window_configuration_change_hook.
12923 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12924 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12925 Use run_window_configuration_change_hook.
12926
129272008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12928
12929 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12930 1-pixel width.
12931
129322008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12933
12934 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12935 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12936 if the glyph in the font is zero pixel with.
12937
12938 * dispextern.h (struct glyph_string): New member padding_p.
12939
12940 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12941
12942 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12943
12944 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12945
12946 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12947
12948 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12949
129502008-02-25 Jason Rumney <jasonr@gnu.org>
12951
12952 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12953
129542008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12955
12956 Allow fine-grained image-cache flushing.
12957 * dispextern.h (struct image): Add `dependencies' field.
12958 (clear_image_caches): Change arg to Lisp_Object.
12959 * image.c (make_image): Initialize `dependencies' field.
12960 (clear_image_cache): Change arg to allow fine-grained flushing.
12961 Perform the flush even if image-cache-eviction-delay is nil.
12962 (clear_image_caches): Change arg to Lisp_Object.
12963 (Fclear_image_cache): Expand meaning of the argument.
12964 (mark_image): Mark `dependencies' field.
12965 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12966 (lface_hash): Use XHASH rather than XFASTINT.
12967 (face_at_buffer_position): Fix int -> EMACS_INT position.
12968 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12969 (select_frame_for_redisplay): Remove code duplication.
12970 (redisplay_internal): Adapt arg to call to clear_image_caches.
12971
129722008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12973
12974 * s/vms4-0.h:
12975 * s/vms4-2.h:
12976 * s/vms4-4.h:
12977 * s/vms5-5.h: Remove, unused.
12978
12979 * s/irix5-2.h:
12980 * s/irix6-0.h:
12981 * s/riscos5.h:
12982 * s/mach-bsd4-3.h:
12983 * m/mips4.h: Remove files for obsolete systems.
12984
12985 * Makefile.in:
12986 * filelock.c:
12987 * unexmips.c:
12988 * m/hp9000s300.h:
12989 * m/iris4d.h:
12990 * s/aix3-1.h:
12991 * s/hpux.h:
12992 * s/msdos.h:
12993 * s/usg5-0.h:
12994 * s/usg5-2-2.h:
12995 * s/usg5-2.h:
12996 * s/usg5-3.h: Remove references to obsolete variables.
12997
12998 * s/irix5-0.h: Remove, move all the contents ...
12999 * s/irix6-5.h: ... here. Simplify.
13000 * config.in: Regenerate.
13001
130022008-02-24 Jason Rumney <jasonr@gnu.org>
13003
13004 * w32term.c (x_draw_glyph_string_background): Clear the background
13005 manually when cleartype is in use.
13006 (x_draw_glyph_string_foreground): Draw text transparently when
13007 cleartype is in use.
13008
13009 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13010 a font into it unless we have to.
13011
130122008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13013
13014 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13015 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13016
aac0c6e3
MR
130172008-02-18 Jason Rumney <jasonr@gnu.org>
13018
13019 * w32fns.c (Fw32_shell_execute): Encode parameters.
13020
130212008-02-09 Eli Zaretskii <eliz@gnu.org>
13022
13023 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13024
130252008-02-05 Juanma Barranquero <lekktu@gmail.com>
13026
13027 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13028
130292008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13030
13031 * xterm.c (x_set_offset): Don't change the gravity if
13032 CHANGE_GRAVITY is -1.
13033
130342008-02-23 Chong Yidong <cyd@stupidchicken.com>
13035
13036 * fileio.c (auto_save_error_occurred): New var.
13037 (auto_save_error): Set it.
13038 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13039 error occurred.
13040
130412008-02-23 Eli Zaretskii <eliz@gnu.org>
13042
13043 * w32.c (globals_of_w32): Add initializations for
13044 g_b_init_get_sid_sub_authority and
13045 g_b_init_get_sid_sub_authority_count.
13046
130472008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13048
13049 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13050 (font_parse_xlfd): Use them for sanity check.
13051 (Finternal_set_font_style_table): Make sure the table is bijective.
13052
13053 Consolidate the image_cache to the terminal struct.
13054 * termhooks.h (P_): Remove redundant def.
13055 (struct terminal): New field `image_cache'.
13056 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13057 of FRAME_X_IMAGE_CACHE.
13058 * xterm.h (struct x_display_info): Remove image_cache field.
13059 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13060 * w32term.h (struct w32_display_info): Remove image_cache field.
13061 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13062 * macterm.h (struct mac_display_info): Remove image_cache field.
13063 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13064 * xterm.c (x_term_init):
13065 * w32term.c (w32_term_init):
13066 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13067 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13068 Remove declarations.
13069 (clear_image_caches, mark_image_cache): New declarations.
13070 * xfaces.c (clear_face_cache):
13071 * xdisp.c (redisplay_internal): Use clear_image_caches.
13072 * image.c (clear_image_cache): Don't check that a frame is on
13073 a window-system before checking if it shares the same cache.
13074 (clear_image_caches): New function.
13075 (Fclear_image_cache): Use it.
13076 (mark_image): Move from allo.c.
13077 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13078 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13079 (mark_object): Don't call mark_image_cache for frames.
13080 (mark_terminals): Call mark_image_cache.
13081
13082 * lisp.h (Fdelete_terminal): Declare.
13083
13084 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13085 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13086 wrong_type_argument.
13087
130882008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13089
13090 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13091 malayalam.el, and tamil.el. Add sinhala.el.
13092
130932008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13094
13095 * xterm.c (x_connection_closed): Consolidate identical tests.
13096 (x_delete_terminal): Don't crash if called via x_connection_closed.
13097
130982008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13099
13100 * xdisp.c (decode_mode_spec): New arg string.
13101 (display_mode_element): Adjust for the above change.
13102
131032008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13104
13105 * callint.c (Fcall_interactively): Use AREF.
13106
131072008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13108
13109 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13110
131112008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13112
13113 * xfns.c (Fx_show_tip): Set string to " " if empty.
13114
131152008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13116
13117 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13118 with Qt.
13119
131202008-02-17 Kenichi Handa <handa@m17n.org>
13121
13122 * ftfont.c (ftfont_shape): Return Lispy number.
13123
13124 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13125 for GCs.
13126 (Finternal_set_font_selection_order): Call font_update_sort_order
13127 only when enable_font_backend is set.
13128 (realize_x_face): Set face->font_info to that of default face only
13129 when enable_font_backend is set.
13130
13131 * xdisp.c (handle_composition_prop): Set it->c to the fist
13132 character of the composed region.
13133 (fill_composite_glyph_string): Set base_face->font_info to
13134 s->font_info. Get a face for ascii from base_face->ascii_face.
13135 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13136 with a face already decided.
13137 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13138 non-negative.
13139 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13140 call font_prepare_composition unconditionally.
13141
13142 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13143
13144 * xterm.h (struct x_display_info): New member font.
13145
13146 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13147 (x_set_mouse_face_gc, x_new_font): Likewise.
13148 (x_term_init): Setup display_info->font.
13149 (x_delete_terminal): Free display_info->font.
13150
13151 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13152
13153 * ftxfont.c (ftxfont_default_fid): Delete it.
13154 (ftxfont_open): Set xfont->fid to 0.
13155 (ftxfont_end_for_frame): Clear data specific to the frame and the
13156 font-driver.
13157
13158 * xftfont.c (xftfont_default_fid): Delete it.
13159 (xftfont_open): Set xfont->fid to 0.
13160
13161 * fontset.c (FONTSET_OBJLIST): New macro.
13162 (fontset_find_font): Update font-object list of the fontset.
13163 (free_realized_fontset): New function.
13164 (free_face_fontset): Call free_realized_fontset.
13165 (Ffont_info): Call font_close_object only when enable_font_backend
13166 is set.
13167
13168 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13169 [HAVE_NTGUI]: Include w32term.h.
13170 [MAC_OS]: Include macterm.ch.
13171 (font_otf_ValueRecord): Use make_number.
13172 (font_finish_cache): Fix handling of reference count.
13173 (font_clear_cache): Update num_fonts.
13174 (font_open_entity): Update smallest_char_width and
13175 smallest_font_height of the frame.
13176 (font_close_object): Update num_fonts.
13177 (Fclear_font_cache): Fix finding the target cache data.
13178
131792008-02-16 Glenn Morris <rgm@gnu.org>
13180
13181 * fontset.c (Finternal_char_font): Fix compilation warning.
13182
131832008-02-16 Eli Zaretskii <eliz@gnu.org>
13184
13185 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13186 instead of char arrays. Enlarge the size of array passed to
13187 get_token_information.
13188
13189 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13190 warnings.
13191
131922008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13193
13194 * .gdbinit: Don't set `args', it breaks gdb --args.
13195
131962008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13197
13198 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13199 within a narrowed buffer.
13200
132012008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13202
13203 * coding.c (decode_coding_object, encode_coding_object):
13204 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13205
132062008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13207
13208 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13209 hardcoding 1.
13210 (detect_coding_system):
13211 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13212 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13213 * insdel.c (insert_from_gap):
13214 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13215 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13216 (string_to_multibyte):
13217 * character.c (chars_in_text, multibyte_chars_in_text):
13218 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13219
13220 * character.h (FETCH_STRING_CHAR_ADVANCE)
13221 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13222 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13223 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13224
13225 * casefiddle.c (casify_region): Only call after-change and composition
13226 functions on the part of the region that was changed.
13227
13228 * keyboard.c (read_avail_input):
13229 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13230
132312008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13232
13233 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13234 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13235
132362008-02-11 Juanma Barranquero <lekktu@gmail.com>
13237
13238 * w32menu.c (push_submenu_start, push_submenu_end)
13239 (push_left_right_boundary, push_menu_pane, push_menu_item):
13240 * keyboard.c (read_key_sequence): Don't pass args with side effects
13241 to AREF, it fails when compiling with -DENABLE_CHECKING.
13242
132432008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13244
13245 * Makefile.in (${lispsource}international/charprop.el):
13246 Delete this target.
13247
13248 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13249 emacs-unicode-2.
13250
132512008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13252
13253 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13254
132552008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13256
13257 * frame.c (Qnoelisp): New symbol.
13258 (syms_of_frame): Initialize it.
13259 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13260 harmless Elisp code, from a strong `force' from x_connection_closed.
13261 * frame.h (Qnoelisp): Declare.
13262 * xterm.c (x_connection_closed): Pass `noelisp'.
13263
13264 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13265 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13266 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13267 rather than `int' for the type of `type'.
13268
132692008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13270
13271 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13272
13273 * Makefile.in (GNUC): Remove support for gcc-1.x.
13274
132752008-02-10 Richard Stallman <rms@gnu.org>
13276
13277 * lisp.h (ASET): Use AREF, not ASLOT.
13278
132792008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13280
13281 * lisp.h (ASET): Check bounds.
13282
132832008-02-10 Glenn Morris <rgm@gnu.org>
13284
13285 * buffer.c (mode-name): Doc fix.
13286
132872008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13288
13289 * Makefile.in:
13290 * emacs.c:
13291 * gmalloc.c:
13292 * keyboard.c:
13293 * lisp.h:
13294 * m/ibm370aix.h:
13295 * process.c:
13296 * regex.c:
13297 * s/hpux.h:
13298 * sysdep.c:
13299 * sysselect.h:
13300 * systty.h:
13301 * unexec.c:
13302 * w32term.c:
13303 * xsmfns.c:
13304 * xterm.c: Remove code that deals with obsolete variables.
13305
13306 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13307
13308 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13309 nothing else needs it anymore.
13310
133112008-02-09 Eli Zaretskii <eliz@gnu.org>
13312
13313 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13314 instead of unibyte_char_to_multibyte.
13315
133162008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13317
13318 * s/gnu-linux.h: Remove commented out code.
13319
13320 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13321
13322 * Makefile.in: Update what RMS says about using autoconf.
13323 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13324 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13325 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13326 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13327
133282008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13329
13330 * keymap.c (Fkey_description): Move side effect outside of macro call.
13331
13332 * xfaces.c (Finternal_make_lisp_face):
13333 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13334
13335 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13336 (syms_of_fontset): Use ASET.
13337
13338 * fns.c (concat): Move side effect outside of macro call.
13339 (hash_clear): Use ASET.
13340
133412008-02-08 Richard Stallman <rms@gnu.org>
13342
13343 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13344 If FORCE, and frame has a surrogate minibuffer for another frame,
13345 delete the other frame first.
13346
133472008-02-07 Timo Savola <timo.savola@iki.fi>
13348
13349 * xterm.c (x_detect_focus_change): Handle embed client message.
13350 (handle_one_xevent): Ditto.
13351 (handle_one_xevent): If embedded and we get a button press/release,
13352 request focus.
13353 (xembed_set_info, xembed_send_message): New functions.
13354 (x_make_frame_visible): Call xembed_set_info if embedded.
13355 (x_make_frame_invisible): Call xembed_set_info if embedded.
13356 (x_term_init): Initialize Xatom_XEMBED.
13357 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13358 (x_iconify_frame): Ditto.
13359
13360 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13361 (enum xembed_info, enum xembed_message, enum xembed_focus)
13362 (enum xembed_modifier, enum xembed_accelerator): New.
13363 (xembed_set_info, xembed_send_message): Declare.
13364 (FRAME_X_EMBEDDED_P): New.
13365
13366 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13367 gtk_plug_new.
13368
13369 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13370 window ID of a frame.
13371 (x_window): Reparent frame if embedded.
13372 (Fx_create_frame): Don't set border width if embedded.
13373
13374 * emacs.c (USAGE3): Add --parent-id.
13375 (standard_args): Ditto.
13376
133772008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13378
13379 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13380
133812008-02-07 Jim Meyering <meyering@redhat.com>
13382
13383 Use "do...while (0)", not "if (1)...else" in macro definitions.
13384 The latter provokes a warning from gcc about the empty else, when
13385 followed by ";". Also, without that trailing semicolon, it would
13386 silently swallow up any following statement.
13387 * syntax.h (SETUP_SYNTAX_TABLE)
13388 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13389 * buffer.h (DECODE_POSITION): Likewise.
13390 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13391 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13392 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13393 (FETCH_CHAR_ADVANCE): Likewise.
13394 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13395
133962008-02-07 Jim Meyering <meyering@redhat.com>
13397
13398 * lread.c [lint]: Don't include <sys/inode.h>.
13399
134002008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13401
13402 * xselect.c (x_handle_dnd_message):
13403 * xmenu.c (digest_single_submenu, xmenu_show):
13404 * xdisp.c (with_echo_area_buffer_unwind_data)
13405 (format_mode_line_unwind_data, unwind_format_mode_line)
13406 (display_menu_bar):
13407 * eval.c (Ffetch_bytecode):
13408 * doc.c (store_function_docstring):
13409 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13410 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13411 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13412
134132008-02-07 Kenichi Handa <handa@m17n.org>
13414
13415 * ftxfont.c (ftxfont_open): Don't set
13416 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13417
13418 * ftfont.c (ftfont_open): Fix previous change.
13419
134202008-02-06 Jason Rumney <jasonr@gnu.org>
13421
13422 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13423 Use cached metrics for ASCII characters.
13424 (w32font_open_internal): Don't set font's owning_frame.
13425 Cache metrics for ASCII characters.
13426
13427 * w32font.h (struct w32font_info): Add ascii_metrics.
13428 Remove owning_frame.
13429
134302008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13431
13432 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13433 to negative value.
13434
13435 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13436
13437 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13438
13439 * charset.c (syms_of_charset): Set QCtest and Qeq.
13440
134412008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13442
13443 * process.c (Fstart_process):
13444 * callproc.c (Fcall_process): Handle the case where
13445 Funhandled_file_name_directory returns nil.
13446
13447 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13448 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13449 * font.c (check_gstring): Use them and AREF to access the vector before
13450 we know it's really a gstring.
13451 (Ffont_shape_text): Fix typo.
46e722a9 13452 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13453
13454 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13455 Declare.
13456
13457 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13458
134592008-02-05 Jason Rumney <jasonr@gnu.org>
13460
13461 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13462 Set smallest_font_height and smallest_char_width in display info.
13463
134642008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13465
13466 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13467
134682008-02-05 Miles Bader <miles@gnu.org>
13469
13470 * xfaces.c (get_lface_attributes, merge_named_face)
13471 (lookup_named_face, lookup_derived_face, realize_named_face):
13472 Revert 2008-02-01 change by cyd@stupidchicken.com.
13473
134742008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13475
13476 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13477 fallback fonts.
13478 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13479
134802008-02-04 Jason Rumney <jasonr@gnu.org>
13481
13482 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13483 set full_name.
13484 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13485
134862008-02-03 Jason Rumney <jasonr@gnu.org>
13487
13488 * makefile.w32-in (OBJ1): Include font.o here.
13489 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13490
134912008-02-02 Jason Rumney <jasonr@gnu.org>
13492
13493 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13494
134952008-02-01 Jason Rumney <jasonr@gnu.org>
13496
13497 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13498
13499 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13500
135012008-02-01 Andreas Schwab <schwab@suse.de>
13502
13503 * Makefile.in (shortlisp, lisp): Update for rename of
13504 ../lisp/language/myanmar.el.
13505
135062008-02-01 Chong Yidong <cyd@stupidchicken.com>
13507
13508 * xfaces.c (get_lface_attributes): Delete function.
13509 (merge_named_face, lookup_named_face, lookup_derived_face)
13510 (realize_named_face): Call lface_from_face_name directly, and use
13511 the fact that merge_face_vectors does not alter its FROM argument.
13512
135132008-02-01 Jason Rumney <jasonr@gnu.org>
13514
13515 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13516 input in the default locale. Handle non-Unicode multibyte input.
13517
135182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13519
13520 * fontset.c (reorder_font_vector): Exclude nil elements from the
13521 font group. Don't try multiple fonts.
13522 (fontset_font): Adjust for the above change.
13523 (Finternal_char_font): Return nil if the found font doesn't
13524 contain the character ch.
13525
13526 * Makefile.in (lisp, shortlisp): Add cham.el.
13527
135282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13529
13530 * font.h (FONTP): Make it return 1 also for a font-object.
13531
13532 * .gdbinit (xfontset): New function.
13533
13534 * font.c (font_find_for_lface): Check if the character C is
13535 supported or not only for the first font.
13536
13537 * fontset.c (reorder_font_vector): Fix typo.
13538 (fontset_find_font): Don't add a font-spec specifying a script.
13539 Use 0 (not Qt) for the indication of empty font-group. Change the
13540 format of RFONT-DEF. Return Qt if no font in the font-group
13541 support the character.
13542 (fontset_font): Adjust for the above change. If no font was
13543 found the character, remember that.
13544 (face_for_char): Adjust for the change of RFONT-DEF.
13545 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13546 no font for the target.
13547 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13548
135492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13550
13551 * font.c (font_load_for_face): Handle the case that the font in
13552 face->lface is a string.
13553
135542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13555
13556 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13557
135582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13559
13560 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13561 Fix previous change. If the frame is not on a window system,
13562 signal an error.
13563
135642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13565
13566 * coding.c (decode_coding_object, encode_coding_object): Adjust
13567 marker positions after conversion.
13568
13569 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13570
135712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13572
13573 * font.c (font_find_for_lface): Fix the handling of the return
13574 value of font_has_char.
13575 (Ffont_shape_text): Fix previous change.
13576
13577 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13578 (fontset_ref_and_range): Delete it.
13579 (fontset_find_font): Call char_table_ref_and_range instead of
13580 FONTSET_REF_AND_RANGE.
13581 (make_fontset): Don't setup font groups of Latin here.
13582 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13583 (new_fontset_from_font): Make the specified font the default for
13584 all Latin characters.
13585
135862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13587
13588 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13589 is on a window system before accessing the fontset of the frame.
13590
135912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13592
13593 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13594
13595 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13596 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13597
13598 * font.c (Ffont_shape_text): If the font driver doesn't have a
13599 shaper function, make zero-width glyphs to have at least one-pixel
13600 width. Fix setting of `to' field of glyphs.
13601
136022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13603
13604 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13605 glyphs.
13606
13607 * font.h (struct font_driver): Improve docstring of member `shape'.
13608
136092008-02-01 Kenichi Handa <handa@m17n.org>
13610
13611 * composite.c (syms_of_composite): Fix docstring of
13612 auto-composition-function.
13613
13614 * font.h (LGLYPH_SIZE): New macro.
13615
13616 * font.c (Ffont_fill_gstring): Stop filling when a character not
13617 supported by the font is found.
13618 (Ffont_shape_text): When a shape callback function returns nil,
13619 try at most two more times with larger gstring.
13620 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13621
13622 * xdisp.c (handle_auto_composed_prop): Change the argument to
13623 auto-composition-function.
13624
13625 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13626 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13627 Lispy glyph and store it in the lgstring.
13628
13629 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13630
13631 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13632
136332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13634
13635 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13636
13637 * fontset.c (Vfont_encoding_charset_alist): New variable.
13638 (syms_of_fontset): DEFVAR it.
13639 (reorder_font_vector, fontset_find_font): Optimize for the case of
13640 no need of reordering.
13641 (face_for_char): Map the charset property by
13642 Vfont_encoding_charset_alist.
13643
136442008-02-01 Jason Rumney <jasonr@gnu.org>
13645
13646 * w32font.c (logfonts_match): Don't check adstyle here.
13647 (font_matches_spec): Check here against physical font instead.
13648 (add_font_entity_to_list): Avoid some substitutions.
13649
13650 * font.c (font_parse_fcname): Default weight and slant to normal.
13651 (font_score): Prefer normal fonts if weight or slant unspecified.
13652 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13653 match freetype scores.
13654
136552008-02-01 Jason Rumney <jasonr@gnu.org>
13656
13657 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13658 font, as it may have been deleted.
13659 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13660 most common hyphenless variation.
13661 (logfonts_match): Check generic family.
13662 (font_matches_spec): Don't check generic family here.
13663 (fill_in_logfont): Set generic family based on adstyle.
13664
13665 * w32font.h (w32font_get_cache): Update declaration.
13666
136672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13668
13669 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13670
13671 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13672 If none of the new drivers are available, call font_update_drivers
13673 with the old drivers.
13674
13675 * w32font.c (w32font_get_cache): Adjust the argument type.
13676
13677 * xfont.c (xfont_get_cache): Adjust the argument type.
13678
13679 * font.h (struct font_driver): Change argument type of get_cache.
13680
13681 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13682
13683 * font.c (Ffont_get): Fix arguments to Fassoc.
13684 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13685 (font_clear_cache): New function.
13686 (font_list_entities, font_matching_entity): Use font_get_cache.
13687 (font_update_drivers): Call font_clear_cache when finishing a driver.
13688
13689 * fontset.c (fontset_find_font): Fix previous change.
13690
136912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13692
13693 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13694 dpyinfo->font_table.
13695 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13696 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13697
13698 * font.c (font_at): Handle the case that the arg C is negative.
13699 Handle the unibyte case.
13700 (Ffont_at): Call font_at with the arg C -1.
13701
13702 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13703 the position here, and call font_at with the arg C -1.
13704 Don't check the range of the existing composition at the point.
13705
137062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13707
13708 * fontset.c (fontset_add): New args charset_id and family.
13709 Change caller.
13710 (load_font_get_repertory, fontset_find_font): Assume that
13711 font_spec is always a font-spec object.
13712 (Fset_fontset_font): Always store a font-spec object in a fontset.
13713
13714 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13715 instead of get_property_and_range.
13716
137172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13718
13719 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13720 (xftfont_open): Don't keep locking face.
13721 (xftfont_close): Don't unlock face.
13722 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13723
13724 * fontset.c (fontset_find_font): Don't prefer a font of
13725 supplementary charset.
13726
137272008-02-01 Kenichi Handa <handa@m17n.org>
13728
13729 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13730 script, langsys_tag to langsys, new member script.
13731 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 13732 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
13733 listing to the script specified in that property. Fix arg to
13734 OTF_check_features.
13735
137362008-02-01 Jason Rumney <jasonr@gnu.org>
13737
13738 * w32font.h: New file.
13739
13740 * w32font.c: Include it.
13741 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13742 (w32font_open): Set owning_frame.
13743 (w32font_text_extents): Use owning_frame.
13744 (struct font_callback_data): Add opentype_only field.
13745 (add_font_entity_to_list): Use it to filter fonts.
13746 Don't check against full name.
13747 (w32font_list_internal): New function.
13748 (w32font_list): Use it.
13749 (w32font_match_internal): New function.
13750 (w32font_match): Use it.
13751 (w32font_open_internal): New function.
13752 (w32font_open): Use it.
13753 (w32font_get_cache, w32font_close, w32font_has_char)
13754 (w32font_encode_char, w32font_text_extents, w32font_draw):
13755 Make non-static.
13756
13757 * makefile.w32-in (w32font.o): Depend on w32font.h.
13758
137592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13760
13761 * charset.c (Fdefine_charset_internal): Record a supplementary
13762 charset at the tail of Vcharset_order_list.
13763
13764 * font.c (Ffont_shape_text): Fix the return value.
13765
13766 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13767
13768 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13769
137702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13771
13772 * ftfont.c (struct OpenTypeSpec): New struct.
13773 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13774 (ftfont_get_open_type_spec): New function.
13775 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13776
13777 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13778
137792008-02-01 Jason Rumney <jasonr@gnu.org>
13780
13781 * w32font.c (add_font_entity_to_list): Compare only the beginning
13782 of full name.
13783
137842008-02-01 Kenichi Handa <handa@m17n.org>
13785
13786 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13787 Never return HANDLED_RECOMPUTE_PROPS.
13788
137892008-02-01 Kenichi Handa <handa@m17n.org>
13790
13791 * font.c (font_gstring_produce): Delete it.
13792
13793 * composite.h (COMPOSITION_METHOD):
13794 Handle COMPOSITION_WITH_GLYPH_STRING.
13795
137962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13797
13798 * xfont.c (Qx): Delete.
13799 (syms_of_xfont): Don't initialize Qx.
13800
13801 * composite.h (enum composition_method):
13802 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13803
138042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13805
13806 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13807 (choose_face_font): Accept new form of font-spec.
13808
13809 * frame.h (font_driver_list): Declare it unconditionally.
13810 (struct frame): Define members font_driver_list and font_data_list
13811 unconditionally.
13812
13813 * fontset.c: Include "font.h" unconditionally.
13814 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13815 (Fset_fontset_font): Accept a font-spec object.
13816
13817 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13818 PIXEL_SIZE part a wild card.
13819
13820 * dispextern.h (struct glyph_string): Define members clip and
13821 num_clips unconditionally.
13822 (struct face): Define members font_info and extra unconditionally.
13823
13824 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13825 ftfont_info only when HAVE_LIBOTF is defined.
13826
138272008-02-01 Andreas Schwab <schwab@suse.de>
13828
13829 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13830 and end.
13831
138322008-02-01 Jason Rumney <jasonr@gnu.org>
13833
13834 * w32font.c (w32font_driver): Add new fields.
13835
138362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13837
13838 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13839 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13840 (LIBES): Add @M17N_FLT_CFLAGS@.
13841
13842 * composite.c (compose_text): Don't treat the new style
13843 composition specially.
13844
13845 * emacs.c (main): Call syms_of_font unconditionally.
13846
13847 * font.h (FONT_ENTITY_NOT_LOADABLE)
13848 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13849 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13850 (struct font_driver): New member shape.
13851 (font_registry_charsets): Extern it.
13852 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13853 (font_otf_capability, font_drive_otf): Delete their externs.
13854
13855 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13856 (font_charset_alist, font_registry_charsets): Move from xfont.c
13857 and rename.
13858 (font_prop_validate_otf): New function.
13859 (font_property_table): Register it for QCotf.
13860 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13861 (font_drive_otf): Delete.
13862 (font_prepare_composition): New arg F. Adjust for the change of
13863 lispy gstring.
13864 (font_find_for_lface): New arg C.
13865 (font_load_for_face): Adjust for the change of font_find_for_lface.
13866 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13867 lispy gstring.
13868 (Ffont_shape_text): New function.
13869 (Fopen_font): If the font size is not given, use 12-pixel.
13870 (Ffont_at): New arg STRING.
13871 (syms_of_font): Initalize font_charset_alist.
13872 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13873 conditionally.
13874
13875 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13876 fonts of the same font-spec. Change the format of RFONT-DEF.
13877 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13878 Adjust for the change of RFONT-DEF.
13879 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13880
13881 * ftfont.h: New file.
13882
13883 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13884 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13885 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13886 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13887 font_otf_capability and font_drive_otf, set ftfont_shape.
13888 (ftfont_list): Adjust for the change of :otf property value.
13889 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13890 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13891 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13892 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13893 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13894 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13895
13896 * w32term.c (x_draw_composite_glyph_string_foreground):
13897 Adjust for the change of lispy gstring.
13898
13899 * xdisp.c (handle_composition_prop): Adjust for the change of
13900 lispy gstring. Call a function for auto-composition with the
13901 third arg it->window.
13902 (fill_composite_glyph_string): Adjust for the change of lispy string.
13903 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13904
13905 * xfaces.c (set_font_frame_param): Adjust for the change of
13906 font_find_for_lface.
13907
13908 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13909 (xfont_registry_charsets): Likewise. Change caller.
13910 (syms_of_xfont): Don't handle x_font_charset_alist.
13911
13912 * xftfont.c: Include "ftfont.h".
13913 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13914 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13915 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13916 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13917 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13918 Set xftfont_driver.shape to xftfont_shape.
13919
13920 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13921 the change of lispy gstring.
13922
139232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13924
13925 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13926
139272008-02-01 Jason Rumney <jasonr@gnu.org>
13928
13929 * w32font.c (w32font_draw): Fill background manually.
13930
139312008-02-01 Jason Rumney <jasonr@gnu.org>
13932
13933 * font.c (Qfontp): Remove unused symbol.
13934 (QCantialias): New symbol.
13935 (syms_of_font): Define it.
13936 (font_property_table): Set a validator for QCantialias.
13937
13938 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13939 Define if not already.
13940 (QCfamily): Share with xfaces.c.
13941 (Qstandard, Qsubpixel, Qnatural): New symbols.
13942 (syms_of_w32font): Define them. Don't define QCfamily here.
13943 (w32_antialias_type, lispy_antialias_type): New functions.
13944 (w32_enumfont_pattern_entity): New arg requested_font.
13945 Set antialias parameter if non-default was requested.
13946 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13947
139482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13949
13950 * lread.c (read1): Undo the previous change.
13951
139522008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13953
13954 * frame.c (Fdelete_frame): Call font_update_drivers only when
13955 USE_FONT_BACKEND is defined.
13956
139572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13958
13959 * font.h (struct font_bitmap): New member bits_per_pixel.
13960 (struct font_driver): New members start_for_frame and end_for_frame.
13961 (struct font_data_list): New struct.
13962 (font_put_frame_data, font_get_frame_data): Extern them.
13963
13964 * frame.h (struct frame): New member font_data_list.
13965
13966 * font.c (font_update_drivers): Call driver->start_for_frame and
13967 driver->end_for_frame at proper timings.
13968 (font_put_frame_data, font_get_frame_data): New functions.
13969 (Ffont_spec): Add usage in the docstring.
13970
13971 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13972 (Fdelete_frame): Call font_update_drivers.
13973
13974 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13975 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13976 (xftfont_get_xft_draw): New function.
13977 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13978 (xftfont_end_for_frame): New function.
13979 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13980
13981 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13982 Change argument. Cache GCs in the per-frame data.
13983 (struct ftxfont_frame_data): New struct.
13984 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13985 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13986 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13987 (ftxfont_end_for_frame): New function.
13988 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13989
13990 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13991
139922008-02-01 Kenichi Handa <handa@m17n.org>
13993
13994 * xselect.c (Vselection_coding_system)
13995 (Vnext_selection_coding_system): Delete them.
13996 (syms_of_xselect): Don't declare selection-coding-system and
13997 next-selection-coding-system. They are declared in select.el.
13998
139992008-02-01 Jason Rumney <jasonr@gnu.org>
14000
14001 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14002
14003 * w32fns.c: Include imm.h.
14004 (get_composition_string_fn, get_ime_context_fn): New optional
14005 system functions.
14006 (globals_of_w32fns): Load them from imm32.dll.
14007 (ignore_ime_char): New flag.
14008 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14009 WM_IME_ENDCOMPOSITION messages.
14010
14011 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14012 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14013
140142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14015
14016 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14017 (READCHAR_REPORT_MULTIBYTE): New macro.
14018 (readchar): New 2nd arg MULTIBYTE.
14019 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14020 Make symbol's name multibyte according to the multibyteness of the
14021 source.
14022
140232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14024
14025 * xfaces.c (face_for_overlay_string): Call lookup_face with
14026 correct arguments (fix of synching with the trunk).
14027
140282008-02-01 Kenichi Handa <handa@m17n.org>
14029
14030 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14031 (font_prop_validate_non_neg, font_prop_validate_spacing):
14032 Delete argument prop_index.
14033 (font_property_table): Change arguments to validater. Change Callers.
14034 (font_lispy_object): Delete.
14035 (font_at): Use font_find_object instead fo font_lispy_object.
14036
140372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14038
14039 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14040 and file names.
14041
140422008-02-01 Jason Rumney <jasonr@gnu.org>
14043
14044 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14045 (font_matches_spec): Remove debug output.
14046 (add_font_entity_to_list): Avoid using substituted fonts.
14047
140482008-02-01 Jason Rumney <jasonr@gnu.org>
14049
14050 * doc.c (Fsnarf_documentation):
14051 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14052
140532008-02-01 Miles Bader <miles@gnu.org>
14054
14055 * dispextern.h (struct glyph_row): Only define "clip" field if
14056 HAVE_WINDOW_SYSTEM is defined.
14057
140582008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14059
14060 Fix up multi-tty merge.
14061
14062 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14063 and indentation.
14064
14065 * xfaces.c (free_realized_face, clear_face_gcs):
14066 Include font_done_for_face in the input_blocked section, just in case.
14067
14068 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14069 (get_char_face_and_encoding): Undo last change and remove the *other*
14070 duplicate definition (i.e. keep the one that's better scoped and that
14071 includes code for the font-backend).
14072
14073 * terminal.c (create_terminal): Default keyboard_coding to
14074 `no-conversion' and terminal_coding to `undecided'.
14075
14076 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14077
14078 * fontset.c (free_realized_fontsets): Check that the table entry does
14079 contain a fontset before trying to compare it to `base'.
14080
14081 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14082 syms_of_charset, and syms_of_coding earlier because init_window_once
14083 now needs Vcoding_system_hash_table to be setup.
14084
14085 * coding.h (default_buffer_file_coding): Remove.
14086
14087 * coding.c (default_buffer_file_coding): Remove.
14088 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14089 than ->symbol, and use the terminal-local coding system.
14090 (syms_of_coding): Don't setup the coding-systems that are not
14091 terminal-local.
14092 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14093
14094 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14095 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14096
14097 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14098 in chartab.c and were re-added here by mistake.
14099 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14100
14101 * doc.c (Fsnarf_documentation):
14102 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14103 src to etc.
14104
14105 * ChangeLog.10: Add mistakenly removed entry.
14106
141072008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14108
14109 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14110
141112008-02-01 Miles Bader <miles@gnu.org>
14112
14113 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14114 Add extra args to FACE_FOR_CHAR.
14115
141162008-02-01 Kenichi Handa <handa@m17n.org>
14117
14118 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14119 in sequence.
14120
14121 * chartab.c (map_sub_char_table, map_char_table): If the range
14122 contains just one character, call the function with that character
14123 even if the depth is not 3.
14124
141252008-02-01 Jason Rumney <jasonr@gnu.org>
14126
14127 * w32font.c (w32font_text_extents): Calculate metrics for the
14128 whole string.
14129
141302008-02-01 Jason Rumney <jasonr@gnu.org>
14131
14132 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14133
141342008-02-01 Jason Rumney <jasonr@gnu.org>
14135
14136 * w32term.c (x_set_glyph_string_clipping): Use
14137 get_glyph_string_clip_rects.
14138 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14139 Adjust for the change of struct glyph_string.
14140
14141 * w32font.c (w32font_draw): Do clipping here.
14142
141432008-02-01 Kenichi Handa <handa@m17n.org>
14144
14145 * xftfont.c (xftfont_draw): Adjust for the change of struct
14146 glyph_string.
14147
14148 * xterm.c (x_set_glyph_string_clipping): Use
14149 get_glyph_string_clip_rects.
14150 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14151 Adjust for the change of struct glyph_string.
14152
14153 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14154 the resulting clip(s}.
14155 (expose_overlaps): Add arg r. Change callers. Set it to
14156 row->clip temporarily.
14157 (expose_window): Redraw rows overlapping the exposed area.
14158
14159 * dispextern.h (struct glyph_row): New member clip.
14160 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14161 clip_height, new member clip, and num_clips.
14162
141632008-02-01 Kenichi Handa <handa@m17n.org>
14164
14165 * data.c (Fchar_or_string_p): Fix docstring.
14166
141672008-02-01 Kenichi Handa <handa@m17n.org>
14168
14169 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14170 create a temporary XftDraw object.
14171
141722008-02-01 Kenichi Handa <handa@m17n.org>
14173
14174 * font.c (Ffontp): Fix docstring.
14175
14176 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14177 strong evidence of ISO-2022.
14178
141792008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14182 SYNTAX_ENTRY_FOLLOW_PARENT.
14183
141842008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14185
14186 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14187 its type.
14188 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14189 Update to the new type of weak_hash_tables and next_weak.
14190
14191 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14192 a plain C pointer to Lisp_Hash_Table.
14193
14194 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14195 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14196 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14197 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14198 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14199 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14200 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14201 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14202 (GC_EQ): Remove since they've been identical to their non-GC_
14203 alter-egos ever since the markbit was eradicated.
14204
14205 * alloc.c:
14206 * buffer.c:
14207 * buffer.h:
14208 * data.c:
14209 * fileio.c:
14210 * filelock.c:
14211 * fns.c:
14212 * frame.h:
14213 * lisp.h:
14214 * macterm.c:
14215 * print.c:
14216 * process.c:
14217 * w32fns.c:
14218 * w32menu.c:
14219 * w32term.c:
14220 * xfns.c:
14221 * xmenu.c:
14222 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14223
142242008-02-01 Kenichi Handa <handa@m17n.org>
14225
14226 * chartab.c (map_sub_char_table): Make it work for the top-level
14227 char-table. Fix handling of parent char-table.
14228 (map_char_table): Adjust for the above change.
14229
142302008-02-01 Jason Rumney <jasonr@gnu.org>
14231
14232 * w32font.c (Qgdi): Rename from Qw32.
14233
142342008-02-01 Jason Rumney <jasonr@gnu.org>
14235
14236 * w32bdf.c (get_quoted_string): Make function static.
14237
142382008-02-01 Kenichi Handa <handa@m17n.org>
14239
14240 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14241 bigger ascent and descent than those of the font, use them as
14242 font's ascent and descent.
14243
142442008-02-01 Kenichi Handa <handa@m17n.org>
14245
14246 * Makefile.in (${lispsource}international/charprop.el): Move this
14247 target within "#ifdef HAVE_UNIDATA" and "#endif".
14248
142492008-02-01 Kenichi Handa <handa@m17n.org>
14250
14251 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14252 (shortlisp): Add ../lisp/language/tai-viet.el.
14253
142542008-02-01 Ulrich Mueller <ulm@gentoo.org>
14255
14256 * Makefile.in (${lispsource}international/charprop.el): Depend on
14257 temacs${EXEEXT}.
14258
142592008-02-01 Jason Rumney <jasonr@gnu.org>
14260
14261 * w32font.c (w32font_close): Delete the GDI font object.
14262
14263 * w32menu.c: Include character.h.
14264
14265 * w32proc.c: Likewise.
14266
14267 * w32select.c: Likewise.
14268
14269 * makefile.w32-in (w32proc.o): Depend on character.h.
14270
142712008-02-01 Jason Rumney <jasonr@gnu.org>
14272
14273 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14274
14275 * w32menu.c (syms_of_w32menu): Likewise.
14276
14277 * w32proc.c (syms_of_ntproc): Likewise.
14278
14279 * w32select.c (syms_of_w32select): Likewise.
14280
14281 * w32term.c (syms_of_w32term): Likewise.
14282
142832008-02-01 Jason Rumney <jasonr@gnu.org>
14284
14285 * w32font.c (w32font_draw): Delete brush after using it.
14286
142872008-02-01 Jason Rumney <jasonr@gnu.org>
14288
14289 * w32font.c (w32font_open): Don't set font_idx.
14290 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14291 to font settings.
14292 (w32font_draw): Fill background explicitly.
14293
142942008-02-01 Jason Rumney <jasonr@gnu.org>
14295
14296 * w32term.c (w32_initialize): Don't call w32font_initialize.
14297
14298 * w32font.c (w32font_info): Remove subranges.
14299 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14300 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14301 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14302 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14303 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14304 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14305 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14306 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14307 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14308 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14309 New symbols.
14310 (font_callback_data): New struct.
14311 (w32font_list, w32font_match): Use it.
14312 (w32font_open): Don't populate subranges.
14313 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14314 (w32font_encode_char): Always return unicode code-point as-is.
14315 (w32font_text_extents): Supply a transformation matrix to
14316 GetGlyphOutline. Never look up by glyph index. Avoid looping
14317 twice. Use unicode version of GetTexExtentPoint32 instead of
14318 glyph index version.
14319 (set_fonts_frame): Remove.
14320 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14321 set frame parameter. Use backward compatible fake foundries.
14322 Save generic family in extra slot under QCfamily. Make width slot
14323 constant. Save QCspacing value. Save list of scripts instead of
14324 binary subranges.
14325 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14326 (add_font_entity_to_list): Use font_callback_data struct. Filter
14327 unwanted fonts.
14328 (add_one_font_entity_to_list): Use font_callback_data struct.
14329 (w32_registry): Default to iso10646_1.
14330 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14331 string font registries. Don't fill in font name if it is a generic
14332 family name, fill family instead. Use spacing, family and script
14333 extra info to fill pitch, family and charset fields.
14334 (list_all_matching_fonts): Use font_callback_data struct.
14335 (unicode_range_for_char): Remove.
14336 (font_supported_scripts): New function.
14337 (w32font_initialize): Remove.
14338 (syms_of_w32font): Update which symbols are defined.
14339
143402008-02-01 Jason Rumney <jasonr@gnu.org>
14341
14342 * font.c (font_pixel_size): Reverse assq_no_quit args.
14343
14344 * w32term.h (FONT_WIDTH): Report max width, not average.
14345 (FONT_MAX_WIDTH): Remove.
14346 (FONT_AVG_WIDTH): New macro.
14347
14348 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14349 redefinition of FONT_WIDTH.
14350
14351 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14352 (w32_cache_char_metrics): Use FONT_WIDTH.
14353
14354 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14355
143562008-02-01 Jason Rumney <jasonr@gnu.org>
14357
14358 * w32font.c (w32font_open): Make lfHeight negative.
14359
14360 * w32fns.c (x_default_font_parameter): Use new style font name.
14361 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14362
143632008-02-01 Jason Rumney <jasonr@gnu.org>
14364
14365 * w32font.c (QCsubranges): New symbol.
14366 (w32font_open, w32font_has_char): Get subranges from subproperty
14367 of extra.
14368 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14369 (syms_of_w32font): Define :subranges symbol.
14370
14371 * font.c (font_put_extra): Expose externally.
14372
14373 * font.h (font_put_extra): Move declaration from font.c.
14374
14375 * font.c (Ffont_get): Use font driver to determine otf capability.
14376 (adjust_anchor): Check if driver defines anchor_point before using.
14377
14378 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14379 (w32font_draw): Use options.
14380 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14381 Fix detection of truetype fonts.
14382 (registry_to_w32_charset): Handle charsets other than iso8859-1
14383 expressed as lisp symbols.
14384 (w32_registry): Express charset as lisp symbol.
14385 (fill_in_logfont): Reverse pixel and point height logic.
14386 Don't set width here. Set quality to default.
14387
14388 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14389 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14390
14391 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14392 Remove redundant loop and allocation.
14393
14394 * makefile.w32-in (font.o, w32font.o): New objects.
14395 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14396 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14397
14398 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14399 STORE_XCHARB a valid l-value.
14400
14401 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14402 calculations for non-Truetype fonts.
14403 (x_draw_glyph_string): Sync with xterm.c.
14404 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14405 Remove redundant code.
14406 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14407
14408 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14409 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14410
14411 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14412 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14413
14414 * w32font.c: New file for w32 font backend.
14415
144162008-02-01 Kenichi Handa <handa@m17n.org>
14417
14418 * term.c: Don't include "buffer.h" twice.
14419
144202008-02-01 Kenichi Handa <handa@m17n.org>
14421
14422 * character.c (Funibyte_string): New function.
14423 (syms_of_character): Defsubr it.
14424
144252008-02-01 Jason Rumney <jasonr@gnu.org>
14426
14427 * w32term.c [USE_FONT_BACKEND]:
14428 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14429 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14430 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14431 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14432 (x_free_frame_resources): Sync with xterm.c.
14433
144342008-02-01 Andreas Schwab <schwab@suse.de>
14435
14436 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14437 char-table size.
14438
144392008-02-01 Kenichi Handa <handa@m17n.org>
14440
14441 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14442
144432008-02-01 Kenichi Handa <handa@m17n.org>
14444
14445 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14446 font_otf_gpos, add font_drive_otf.
14447
14448 * fontset.c (fontset_find_font): Pay attention to font size
14449 specified for a font.
14450 (reorder_font_vector): Check contents of font_def.
14451
14452 * font.c (struct otf_list): Delete it.
14453 (otf_list): Make it a lisp variable.
14454 (otf_open): Use lispy otf_list.
14455 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14456 (check_otf_features): New function.
14457 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14458 New functions.
14459 (font_drive_otf): New function merging font_otf_gsub and
14460 font_otf_gpos.
14461 (font_open_for_lface): New arg spec. Change argument order.
14462 (font_load_for_face): Adjust for the change of font_open_for_lface.
14463 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14464 Ffont_otf_gpos.
14465 (syms_of_font): Staticpro otf_list. Delete defsubr of
14466 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14467
14468 * xfaces.c (set_font_frame_param): Adjust for the change of
14469 font_open_for_lface.
14470
14471 * font.h (font_open_for_lface): Adjust prototype.
14472 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14473 member otf_drive.
14474 (font_otf_gsub, font_otf_gpos): Delete externs.
14475 (font_drive_otf): Extern it.
14476
144772008-02-01 Kenichi Handa <handa@m17n.org>
14478
14479 * font.c (font_at): If the window W is not on a window system,
14480 return Qnil.
14481
14482 * coding.c (produce_chars, encode_coding): Don't call
14483 insert_from_gap if no characters to produce.
14484
144852008-02-01 Kenichi Handa <handa@m17n.org>
14486
14487 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14488 Fclear_face_cache.
14489
14490 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14491
144922008-02-01 Miles Bader <miles@gnu.org>
14493
14494 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14495 Parse "--disable-font-backend" option.
14496 (standard_args): Add "--disable-font-backend" option.
14497
144982008-02-01 Kenichi Handa <handa@m17n.org>
14499
14500 * fontset.c (fontset_find_font): New function.
14501 (fontset_font): Use fontset_find_font.
14502 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14503 Register the specified font for all Latin characters.
14504 (new_fontset_from_font): Register the specified font for all Latin
14505 characters.
14506 (dump_fontset): For a realized fontset, include the base fontset
14507 name in the returned vector.
14508
145092008-02-01 Kenichi Handa <handa@m17n.org>
14510
14511 * character.h (CHAR_STRING): Cast C to unsigned on calling
14512 char_string.
14513
14514 * character.c (char_string): Type of arg C changed to unsigned.
14515 Signal an error if C is an invalid character code.
14516
14517 * editfns.c (general_insert_function, Fchar_to_string):
14518 Use CHARACTERP, not INTEGERP.
14519
145202008-02-01 Kenichi Handa <handa@m17n.org>
14521
14522 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14523 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14524
14525 * regex.c (analyse_first): Fix for multibyte characters in "case
14526 charset:" and "case categoryspec:".
14527
145282008-02-01 Andreas Schwab <schwab@suse.de>
14529
14530 * Makefile.in (LIBES): Move standard libraries to the end.
14531
145322008-02-01 Kenichi Handa <handa@m17n.org>
14533
14534 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14535 nonzero, don't shrink the buffer nextb.
14536
14537 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14538
14539 * coding.c (coding_alloc_by_making_gap): New arg offset.
14540 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14541 offset.
14542 (decode_coding_iso_2022): Update coding->safe_charsets.
14543 (decode_coding_gap): Temporarily set
14544 current_buffer->text->inhibit_shrinking to 1.
14545
145462008-02-01 Kenichi Handa <handa@m17n.org>
14547
14548 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14549 indexing into elements of s->cmp and s->char2b.
14550
145512008-02-01 Juanma Barranquero <lekktu@gmail.com>
14552
14553 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14554
145552008-02-01 Kenichi Handa <handa@m17n.org>
14556
14557 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14558 target_multibyte instead of multibyte.
14559 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14560 (bcmp_translate): Change the argument name from multibyte to
14561 target_multibyte.
14562
145632008-02-01 Kenichi Handa <handa@m17n.org>
14564
14565 These changes are to compile a regexp into a pattern that can be
14566 used both for multibyte and unibyte targets.
14567
14568 * Makefile.in (search.o): Depend on charset.h.
14569
14570 * character.c (multibyte_char_to_unibyte_safe): New function.
14571
14572 * search.c: Include "charset.h".
14573 (compile_pattern_1): Delete argument multibyte. Don't set
14574 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14575 (compile_pattern): Don't compare cp->buf.target_multibyte.
14576 Compare cp->buf.charset_unibyte.
14577 (compile_pattern): Set cp->buf.target_multibyte.
14578
14579 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14580
14581 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14582
14583 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14584 multibyte. Change callers.
14585 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14586 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14587 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14588 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14589 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14590 (regex_compile): Make the compiled pattern usable both for
14591 multibyte and unibyte targets.
14592 (analyse_first): Make the fastmap usable both for multibyte and
14593 unibyte targets.
14594 (TRANSLATE_VIA_MULTIBYTE): Delete.
14595 (re_match_2_internal): Pay attention to the case that the
14596 multibyteness of bufp and target may be different.
14597
145982008-02-01 Kenichi Handa <handa@m17n.org>
14599
14600 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14601 empty box occupy at least one column width.
14602
146032008-02-01 Miles Bader <miles@gnu.org>
14604
14605 * Makefile.in: Remove redundant HAVE_XFT clause.
14606
146072008-02-01 Kenichi Handa <handa@m17n.org>
14608
14609 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14610
146112008-02-01 Kenichi Handa <handa@m17n.org>
14612
14613 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14614 being nil.
14615
146162008-02-01 Kenichi Handa <handa@m17n.org>
14617
14618 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14619
146202008-02-01 Kenichi Handa <handa@m17n.org>
14621
14622 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14623
146242008-02-01 Kenichi Handa <handa@m17n.org>
14625
14626 * search.c (simple_search): Fix previous change.
14627
146282008-02-01 Kenichi Handa <handa@m17n.org>
14629
14630 * xftfont.c (ftfont_font_format): Extern declaration.
14631
14632 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14633
14634 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14635 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14636
14637 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14638 (ftfont_font_format): Fix previous change.
14639
14640 * font.h (Ffont_xlfd_name): EXFUN it.
14641
14642 * font.c (font_parse_xlfd): Fix the array size of `f'.
14643 (register_font_driver): Use EQ to compare driver->type.
14644
14645 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14646 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14647 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14648
146492008-02-01 Kenichi Handa <handa@m17n.org>
14650
14651 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14652 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14653
146542008-02-01 Kenichi Handa <handa@m17n.org>
14655
14656 * xfont.c (xfont_open): Set font->format.
14657
14658 * xftfont.c (xftfont_open): Set font->format.
14659
14660 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14661 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14662 (ftfont_open): Set font->format.
14663 (ftfont_font_format): New function.
14664
14665 * font.h (struct font): New member format.
14666
14667 * font.c (Qopentype): New variable.
14668 (syms_of_font): Defsym it.
14669 (Fquery_font): Change the format of the last element of the return
14670 value.
14671
146722008-02-01 Kenichi Handa <handa@m17n.org>
14673
14674 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14675 last resort.
14676
146772008-02-01 Kenichi Handa <handa@m17n.org>
14678
14679 * coding.c (detect_coding_charset): Fix detection of multi-byte
14680 charset.
14681
146822008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14683
14684 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14685
146862008-02-01 Kenichi Handa <handa@m17n.org>
14687
14688 * xdisp.c (get_next_display_element): Set it->face_id for the
14689 first component of a composition.
14690 (x_produce_glyphs): Check if the font is changed or not for composition.
14691
146922008-02-01 Kenichi Handa <handa@m17n.org>
14693
14694 * fontset.c (Qlatin): New variable.
14695 (syms_of_fontset): Define it as a lisp symbol.
14696 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14697
146982008-02-01 Kenichi Handa <handa@m17n.org>
14699
14700 * font.c (font_unparse_fcname): Pay attention to the case that
14701 some of font property is a null string.
14702
147032008-02-01 Kenichi Handa <handa@m17n.org>
14704
14705 * term.c: Include "composite.h".
14706 (encode_terminal_code): Output all components of composition.
14707 Check the size of encode_terminal_src.
14708 (produce_glyphs): For composition, call produce_composite_glyph.
14709 (append_composite_glyph, produce_composite_glyph): New functions.
14710
14711 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14712 is not found, get font_info from the current ascii face.
14713
147142008-02-01 Kenichi Handa <handa@m17n.org>
14715
14716 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14717 buffer-file-name to Qnil before calling insert_from_buffer.
14718
14719 * font.c (font_unparse_fcname): Pay attention to the case that
14720 foundry is a null string.
14721
147222008-02-01 Kenichi Handa <handa@m17n.org>
14723
14724 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14725
14726 * font.c (Qunicode_sip): New variable.
14727 (syms_of_font): Declare it as a Lisp symbol.
14728
14729 * font.h (Qunicode_sip): Extern it.
14730
147312008-02-01 Kenichi Handa <handa@m17n.org>
14732
14733 * composite.c (get_composition_id): Pay attention to TAB component.
14734
14735 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14736 TAB. Adjust for the change of s->char2b which always points to
14737 the first element of allocated memory.
14738
14739 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14740
14741 * xdisp.c (handle_composition_prop): Set it->c to the first
14742 non-TAB component.
14743 (fill_composite_glyph_string): Change argument.
14744 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14745 (x_produce_glyphs): Fix handling of left/right padding.
14746
147472008-02-01 Kenichi Handa <handa@m17n.org>
14748
14749 * coding.c (detect_coding_system): Fix for handling off
14750 inhibit_iso_escape_detection. Fix for the case that no coding
14751 system is defined for a specific coding category.
14752
147532008-02-01 Kenichi Handa <handa@m17n.org>
14754
14755 * font.c (font_matching_entity): Delete unused local var.
14756
14757 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14758 opening a font.
14759
14760 * fileio.c (Finsert_file_contents): On recovering a file, assume
14761 Unix-like eol.
14762 (choose_write_coding_system): On auto-saving a file, force
14763 Unix-like eol.
14764
14765 * coding.c (setup_coding_system): Fix setting of
14766 coding->common_flags based on eol_type.
14767 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14768 inherit from it.
14769
147702008-02-01 Kenichi Handa <handa@m17n.org>
14771
14772 * alloc.c (NSTATICS): Increas to 0x600.
14773
147742008-02-01 Kenichi Handa <handa@m17n.org>
14775
14776 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14777 (ftfont_list): Don't check :name property.
14778 (ftfont_match): New function.
14779 (ftfont_pattern_entity): If the pattern doesn't contain
14780 FC_SPACING, don't assume FC_MONO.
14781
14782 * font.h (struct font_driver): New member `match'.
14783 (font_update_drivers): Adjust prototype.
14784
14785 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14786 property of FONT.
14787 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14788 them unconditionally.
14789 (font_matching_entity): New function.
14790 (font_open_by_name): Try font_matching_entity if exact match is
14791 not found.
14792 (font_update_drivers): Delete the arg FONT. Return a list of
14793 actually used backends. Don't free faces, font caches here.
14794 Don't store data in frame parameters. Don't call x_set_font.
14795 (Ffont_spec): Store :name property as is.
14796 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14797 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14798 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14799 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14800 Call font->driver->otf_gsub instead of font_otf_gsub.
14801
14802 * frame.c (x_set_font_backend): Do more works that were done in
14803 font_update_drivers before.
14804
14805 * xfont.c (xfont_match): New function.
14806 (xfont_driver): Set xfont_driver.match to xfont_match.
14807 (xfont_draw): Set font in GC if necessary.
14808
14809 * ftxfont.c (ftxfont_match): New function.
14810 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14811
14812 * xftfont.c (xftfont_match): New function.
14813 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14814
148152008-02-01 Kenichi Handa <handa@m17n.org>
14816
14817 * font.h (struct font): New member scalable.
14818 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14819 (font_otf_gsub): Adjust prototype.
14820
14821 * font.c (font_otf_capability): Fix handling of the default langsys.
14822 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14823 Check the contents of SPEC.
14824 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14825 (check_gstring): New function.
14826 (REPLACEMENT_CHARACTER): New macro.
14827 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14828 glyph codes of GSTRING.
14829 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14830 (font_prepare_composition): Set cmp->glyph_len.
14831 (font_open_entity): Set font->scalable.
14832 (Ffont_get): Handle :otf property.
14833 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14834 functions.
14835 (Fquery_font): Use font->font.full_name.
14836 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14837 Sfont_otf_alternates.
14838
14839 * ftfont.c (ftfont_open): Set font->font.full_name and
14840 font->font.name properly. Fix calculation of font->font.height
14841 and font->min_width.
14842
14843 * ftxfont.c (ftxfont_create_gcs): New function.
14844 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14845 (ftxfont_draw_backgrond): Fix filling region.
14846 (ftxfont_default_fid): New function.
14847 (ftxfont_open): Set xfont->fid to the return value of
14848 ftxfont_default_fid.
14849 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14850 (ftxfont_done_face): Free only GCs that are created by
14851 ftxfont_create_gcs.
14852 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14853
14854 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14855 Clip to src->width, etc (not src->clip_XXX).
14856
14857 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14858 FontBackend frame parameter.
14859
148602008-02-01 Kenichi Handa <handa@m17n.org>
14861
14862 * font.h (struct font_driver_list): New member `on'.
14863 (Fclear_font_cache): EXFUN it.
14864 (font_update_drivers): Extern it.
14865
14866 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14867 (font_list_entities): Check driver_list->on.
14868 (register_font_driver): Initalize `on' member to 0.
14869 (font_update_drivers): New function.
14870 (Fclear_font_cache): Check driver_list->on.
14871
14872 * frame.h (Qfont_backend): Extern it.
14873 (x_set_font_backend): Extern it.
14874
14875 * frame.c (Qfont_backend): New variable.
14876 (frame_parms): New element for font-backend.
14877 (x_set_font_backend): New function.
14878
14879 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14880 FontBackend frame parameter.
14881 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14882 x_set_font_backend.
14883
14884 * xfont.c (xfont_list): Don't try listing by :name property if the
14885 name is not for XLFD.
14886
148872008-02-01 Kenichi Handa <handa@m17n.org>
14888
14889 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14890 (LGLYPH_SET_TO): New macros.
14891 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14892 element of G is vector or not.
14893 (font_at): Extern it.
14894
14895 * font.c: Include window.h.
14896 (font_lispy_object): New function.
14897 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14898 end of valid glyph.
14899 (font_close_object): Fix getting (struct font *).
14900 (font_at): New function.
14901 (Ffont_get): If FONT is a font-object, get entity from it.
14902 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14903 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14904 range check.
14905 (Ffont_at): New function.
14906 (syms_of_font): Defsubr Sfont_at.
14907
14908 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14909 before the entry for Qcomposition.
14910 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14911 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14912 the font in gstring.
14913 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14914 LGLYPH_FORM (g) to detect the end of valid glyph.
14915 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14916 we are composing with gstring.
14917
14918 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14919 Check if adjustment is vector or not.
14920
14921 * Makefile.in (font.o): Make it depends on window.h.
14922
149232008-02-01 Kenichi Handa <handa@m17n.org>
14924
14925 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14926 adjustment is vector or not.
14927
149282008-02-01 Miles Bader <miles@gnu.org>
14929
14930 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14931
149322008-02-01 Kenichi Handa <handa@m17n.org>
14933
14934 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14935 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14936 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14937
14938 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14939 (DEVICE_DELTA): Fix typo.
14940 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14941 LGLYPH format.
14942
14943 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14944 the change of LGLYPH format.
14945
149462008-02-01 Kenichi Handa <handa@m17n.org>
14947
14948 * ftfont.c (ftfont_list): Fix typo.
14949 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14950
149512008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14952
14953 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14954
14955 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14956 xftface_info is non-NULL.
14957
149582008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14959
14960 * ftfont.c (ftfont_list): Move misplaced #endif.
14961
149622008-02-01 Kenichi Handa <handa@m17n.org>
14963
14964 * ftfont.c (ftfont_list): Pay attention to the case that
14965 FC_CAPABILITY is not defined.
14966
149672008-02-01 Kenichi Handa <handa@m17n.org>
14968
14969 * xftfont.c (xftfont_open): Set charset related members to -1.
14970
14971 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14972 QCname.
14973 (ftfont_open): Set charset related members to -1.
14974
14975 * fontset.c (Votf_script_alist): New variable.
14976 (syms_of_fontset): Initialize it.
14977 (fontset_font): Delete unused variable.
14978
14979 * fontset.h (Votf_script_alist): Extern it.
14980
14981 * font.c (font_find_for_lface): Optimize code.
14982
14983 * font.h (font_close_object, font_merge_old_spec): Extern them.
14984
149852008-02-01 Kenichi Handa <handa@m17n.org>
14986
14987 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14988 (syms_of_font): Initialize them.
14989 (font_pixel_size): Allow float value in dpi.
14990 (font_prop_validate_type): Delete.
14991 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
14992 Change caller.
14993 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
14994 (font_prop_validate_extra): Delete.
14995 (font_prop_validate_spacing): New function.
14996 (font_property_table): Add elements for all known properties.
14997 (get_font_prop_index): Rename from check_font_prop_name. New
14998 argument FROM. Change caller.
14999 (font_prop_validate): Validate all known properties.
15000 (font_put_extra): Delete argument force. Change caller.
15001 (font_expand_wildcards): Make it static. Fix the way of shrinking
15002 the possible range.
15003 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15004 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15005 Change caller.
15006 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15007 (font_parse_fcname): Delete argument merge. Fix parsing of point
15008 size. Don't validate properties values here. Change caller.
15009 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15010 (font_open_by_name): Delete unused variable.
15011 (Ffont_spec): Likewise. Validate property values.
15012 (Ffont_match_p): New function.
15013
15014 * font.h (QCscalable): Extern it.
15015 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15016
15017 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15018
15019 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15020 (xfont_list_pattern): New function.
15021 (xfont_list): Use xfont_list_pattern.
15022
150232008-02-01 Kenichi Handa <handa@m17n.org>
15024
15025 * font.h (Flist_fonts): EXFUN it.
15026
150272008-02-01 Jason Rumney <jasonr@gnu.org>
15028
15029 * w32term.c (w32_initialize): Add back smoothing_type and
15030 smoothing_enabled definitions.
15031
150322008-02-01 Kenichi Handa <handa@m17n.org>
15033
15034 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15035 s->face->font on determining underline position.
15036
150372008-02-01 Kenichi Handa <handa@m17n.org>
15038
15039 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15040 (font_has_char): Accept font-object too.
15041 (font_find_for_lface): Try at first with a size specified in face.
15042
150432008-02-01 Kenichi Handa <handa@m17n.org>
15044
15045 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15046 font_open_by_name.
15047
150482008-02-01 Kenichi Handa <handa@m17n.org>
15049
15050 * font.h (QCspacing, QCdpi): Extern them.
15051 (enum font_spacing): New enum.
15052 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15053
15054 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15055 (QCspacing, QCdpi): New variables.
15056 (syms_of_font): Initialize them.
15057 (font_pixel_size): New function.
15058 (font_put_extra): New function.
15059 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15060 in FONT_EXTRA.
15061 (font_parse_fcname): Handle enumerated values (e.g. bold).
15062 Fix handling font size. Add QCname property that contains only
15063 unknown properties.
15064 (font_score): Change argument. Change caller. Pay attention to
15065 FONT_PIXEL_SIZE_QUANTUM.
15066 (font_sort_entites, font_list_entities, font_find_for_lface)
15067 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15068 (Ffont_spec): Add QCname property that contains only unknown properties.
15069
15070 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15071 include weight in listing pattern, instead check weight of each
15072 listed font. Don't include scalable in pattern. Pay attention to
15073 FONT_PIXEL_SIZE_QUANTUM.
15074
150752008-02-01 Kenichi Handa <handa@m17n.org>
15076
15077 * font.c (font_parse_fcname): Fix parsing of point-size.
15078 (font_unparse_fcname): Produce symbolic names for style properties.
15079 (font_list_entities): Handle float size correctly.
15080 (font_open_by_name): Prefer `normal' property values if the name
15081 doesn't specify them.
15082
15083 * fontset.c (Finternal_char_font): Use font_get_name, not
15084 Ffont_xlfd_name.
15085
15086 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15087 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15088 pattern. Don't force scalable.
15089
15090 * xftfont.c (xftfont_open): For generating a name, start from
15091 96-byte buffer.
15092
150932008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15094
15095 * frame.h (x_new_fontset2): Fix prototype.
15096
150972008-02-01 Kenichi Handa <handa@m17n.org>
15098
15099 * font.h (struct font_driver): Delete member parse_name.
15100 (font_match_p, font_get_spec, font_parse_fcname)
15101 (font_unparse_fcname): Extern them.
15102 (font_get_name): Adjust prototype.
15103
15104 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15105 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15106 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15107 unnecessary checks for weight, slant, and swidth.
15108 (font_parse_fcname): New function.
15109 (font_unparse_fcname): New function.
15110 (font_parse_name): New function.
15111 (font_match_p): New function.
15112 (font_get_name): Change return value to Lisp string.
15113 (font_get_spec): New function.
15114 (Qunspecified, Qignore_defface): Don't extern them.
15115 (font_find_for_lface): Assume that LFACE is fully specified.
15116 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15117 object, use it for FACE.
15118 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15119 driver->parse_name.
15120 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15121
15122 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15123 prototype.
15124
15125 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15126 argument F. Don't call Fnew_fontset. Instead, directly call
15127 make_fontset.
15128
15129 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15130
15131 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15132 of x_new_fontset2.
15133
15134 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15135 (Qsans__serif): New variables.
15136 (ftfont_generic_family_list): New variable.
15137 (syms_of_ftfont): Initialize the above variables.
15138 (ftfont_pattern_entity): Delete argument NAME.
15139 (ftfont_list_generic_family): New function.
15140 (ftfont_parse_name): Delete this function.
15141 (ftfont_list): Try generic family only when FcFontList found no font.
15142 (ftfont_list_family): Fix args to FcObjectSetBuild.
15143
15144 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15145 object in attrs[LFACE_FONT_INDEX].
15146 (set_lface_from_font_name): Cancel all changes for font-backend.
15147 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15148 function.
15149 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15150 font object in QCfont attribute.
15151 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15152 (realize_default_face) [USE_FONT_BACKEND]: Call
15153 set_lface_from_font_and_fontset.
15154
15155 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15156 "fixed", and signal error here if no suitable font was found.
15157
15158 * xfont.c (xfont_parse_name): Delete this function.
15159
15160 * xftfont.c (xftfont_open): Change coding style of error
15161 handling. Generate fontconfig's fontname pattern.
15162
15163 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15164 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15165
15166 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15167 Both args FONTSET and FONT_OBJECT must be existing ones.
15168
151692008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15170
15171 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15172
151732008-02-01 Kenichi Handa <handa@m17n.org>
15174
15175 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15176
15177 * font.h (struct font): Fix typo.
15178
15179 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15180 XLFD_XXX_INDEX.
15181 (enum xlfd_field_mask): New enum.
15182 (intern_font_field): Changed argument. Change caller. If digits
15183 are followed by non-digits, return a symbol.
15184 (font_expand_wildcards): New function.
15185 (font_parse_xlfd): Fix wildcard handling.
15186 (Ffont_spec): If :name is specified, reflect the info in the other
15187 properties.
15188
15189 * ftfont.c (ftfont_pattern_entity): Fix typo.
15190 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15191 locale.
15192
151932008-02-01 Kenichi Handa <handa@m17n.org>
15194
15195 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15196
15197 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15198 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15199 registry doesn't specify encoding part.
15200 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15201 (font_open_by_name): At first try parsing the name.
15202 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15203 as Lisp symbols.
15204
15205 * fontset.c (reorder_font_vector): Pay attention to the case that
15206 the 3rd element of font_def is nil.
15207 (fontset_font): For the default fontset, append one more fontset
15208 elements for a script-based font specification. Don't add script
15209 attribute on finding a font.
15210 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15211 font name.
15212 (fontset_ascii_font): If a font can't be opened, return nil.
15213
15214 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15215 (ftfont_pattern_entity): New function.
15216 (ftfont_get_cache): Assume that freetype_font_cache is already
15217 initialized.
15218 (ftfont_list): Handle the case that a file is specified in font
15219 name. Use ftfont_pattern_entity to generate entities.
15220 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15221 (syms_of_ftfont): Initialize freetype_font_cache.
15222
15223 * xftfont.c (xftfont_open): Make the font name fontconfig's
15224 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15225 (xftfont_close): Free font->font.name if not NULL.
15226
15227 * xfont.c (xfont_list): If script is specified for a font, return
15228 null_vector.
15229 (xfont_list_family): Declare argument type.
15230
15231 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15232 name, set LFACE_FONT (lface) to nil.
15233
15234 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15235 return Qnil.
15236
152372008-02-01 Kenichi Handa <handa@m17n.org>
15238
15239 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15240 (standard_args): Add "-enable-font-backend".
15241
152422008-02-01 Kenichi Handa <handa@m17n.org>
15243
15244 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15245 (struct xftdraw_list, xftdraw_list): Delete them.
15246 (register_xftdraw, check_xftdraw): Delete them.
15247 (xftfont_prepare_face): Don't call register_xftdraw.
15248 (xftfont_done_face): Don't call check_xftdraw.
15249 (xftfont_draw): Get background color only when with_background is
15250 nonzero.
15251
15252 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15253
152542008-02-01 Kenichi Handa <handa@m17n.org>
15255
15256 These changes are for the new font handling codes.
15257
15258 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15259 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15260 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15261 (FONTSRC, FONTOBJ): New variables.
15262 (obj): Add $(FONTOBJ).
15263 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15264 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15265 @LIBOTF_LIBS@.
15266 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15267 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15268
15269 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15270
15271 * character.h (Vscript_representative_chars): Extern it.
15272
15273 * character.c (Vscript_representative_chars): New variable.
15274 (syms_of_character): Declare it as a Lisp variable.
15275
15276 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15277 enable_font_backend is nonzero, accept the composition method
15278 COMPOSITION_WITH_GLYPH_STRING.
15279
15280 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15281 enumeration COMPOSITION_WITH_GLYPH_STRING.
15282
15283 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15284 members clip_x, clip_y, clip_width, and clip_height.
15285 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15286
15287 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15288 --enable-font-backend. Call syms_of_font.
15289
15290 * fns.c (assoc_no_quit): New function.
15291
15292 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15293 (face_for_font, new_fontset_from_font)
15294 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15295
15296 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15297 (fontset_font, fontset_ascii, face_for_char)
15298 (make_fontset_for_ascii_face, Ffont_info)
15299 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15300 is nonzero, use font-backend mechanism.
15301 (find_font_encoding): Make it non-static.
15302 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15303 New functions.
15304
15305 * frame.h (struct frame): New members resx and resy.
15306 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15307 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15308
15309 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15310 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15311
15312 * lisp.h (assoc_no_quit): Extern it.
15313
15314 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15315 Through out the file, use FONT_INFO_FROM_FACE instead of
15316 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15317 rif->per_char_metric.
15318 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15319 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15320 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15321 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15322 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15323 nonzero, use font-backend mechanism.
15324 (get_per_char_metric): New function.
15325
15326 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15327 (set_lface_from_font_name)
15328 (set_font_frame_param, free_realized_face)
15329 (prepare_face_for_display, clear_face_gcs)
15330 (Finternal_set_font_selection_order, realize_x_face)
15331 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15332 font-backend mechanism.
15333 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15334 (load_face_font) [USE_FONT_BACKEND]: Abort.
15335 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15336 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15337
15338 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15339 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15340 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15341 nonzero, register all available font drivers. Call
15342 x_default_font_parameter for deciding a font.
15343 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15344
15345 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15346 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15347 (x_set_glyph_string_clipping_exactly)
15348 (x_compute_glyph_string_overhangs)
15349 (x_draw_glyph_string_foreground)
15350 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15351 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15352 enable_font_backend is nonzero, use font-backend mechanism.
15353 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15354
153552008-02-01 Kenichi Handa <handa@m17n.org>
15356
15357 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15358 system_eol_type.
15359 (syms_of_coding): Initialize system_eol_type.
15360
15361 * process.c (Fset_process_coding_system): Inherit system's eol
15362 format if necessary.
15363
153642008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15365
15366 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15367
153682008-02-01 Kenichi Handa <handa@m17n.org>
15369
15370 * coding.c (decode_eol): Pay attention to buffer relocation in
15371 del_range_2.
15372 (decode_coding): Call decode_eol before restoring undo_list.
15373
153742008-02-01 Kenichi Handa <handa@m17n.org>
15375
15376 * charset.c (Fdefine_charset_internal): Fix setting of
15377 emacs_mule_bytes.
15378
153792008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * keyboard.c (read_char): Check if C is a character or not before
15382 looking up Vkeyboard_translate_table.
15383
153842008-02-01 Kenichi Handa <handa@m17n.org>
15385
15386 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15387 condition to terminate the loop.
15388
153892008-02-01 Kenichi Handa <handa@m17n.org>
15390
15391 * coding.c (produce_composition): Compare charbuf[i] instead of
15392 args[i] against 0.
15393 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15394
153952008-02-01 Kenichi Handa <handa@m17n.org>
15396
15397 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15398 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15399 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15400 detect_coding.
15401 (emacs_mule_char): Handle old style (Emacs 20) component character
15402 of a composition.
15403 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15404 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15405 composition rule.
15406 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15407
154082008-02-01 Kenichi Handa <handa@m17n.org>
15409
15410 * coding.c (encode_coding_ccl): Allocate destination dynamically
15411 when necessary.
15412
154132008-02-01 Kenichi Handa <handa@m17n.org>
15414
15415 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15416 the loop. When quitted, show a proper error message.
15417
154182008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15421 src->clip_head and src->clip_tail temporarily instead of src->hl.
15422
15423 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15424 character sequence.
15425 (Fccl_execute_on_string): Use ASET, not XSET.
15426
154272008-02-01 Kenichi Handa <handa@m17n.org>
15428
15429 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15430
154312008-02-01 Kenichi Handa <handa@m17n.org>
15432
15433 * coding.c (decode_coding): Fix the condition of terminating the
15434 decoding loop.
15435
154362008-02-01 Kenichi Handa <handa@m17n.org>
15437
15438 * data.c (Faset): On setting a character bigger than 255 in a
15439 unibyte string, signal an error instead of make the string multibyte.
15440
154412008-02-01 Kenichi Handa <handa@m17n.org>
15442
15443 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15444 made by a mapping table.
15445
154462008-02-01 Kenichi Handa <handa@m17n.org>
15447
15448 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15449 not.
15450 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15451 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15452
15453 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15454 s->face is NULL or not.
15455
154562008-02-01 Kenichi Handa <handa@m17n.org>
15457
15458 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15459 (x_draw_glyph_string): Fix drawing of right_overhang and
15460 left_overhang around/on cursor.
15461
15462 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15463
154642008-02-01 Kenichi Handa <handa@m17n.org>
15465
15466 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15467
154682008-02-01 Kenichi Handa <handa@m17n.org>
15469
15470 * coding.c (Fdefine_coding_system_internal)
15471 (Fdefine_coding_system_alias): Avoid a duplicated element in
15472 Vcoding_system_alist.
15473
154742008-02-01 Kenichi Handa <handa@m17n.org>
15475
15476 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15477
15478 * coding.c (Qcoding_system_define_form): New variable.
15479 (syms_of_coding): Intern and staticpro it.
15480 (Fcoding_system_p): Check Qcoding_system_define_form.
15481 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15482
15483 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15484 Fcoding_system_p.
15485 (CHECK_CODING_SYSTEM): If ID is not available, call
15486 Fcheck_coding_system.
15487 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15488 Try also Fcheck_coding_system.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * coding.c (code_conversion_restore): GCPRO arg.
15493
154942008-02-01 Kenichi Handa <handa@m17n.org>
15495
15496 * character.c (lisp_string_width): Check multibyteness of STRING.
15497
154982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15499
15500 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15501 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15502 (decode_mac_font_name): Use decode_coding_c_string instead of
15503 decode_coding.
15504 (x_load_font): Initialize fontp->fontset to -1. Set
15505 fontp->encoding_type.
15506
155072008-02-01 Kenichi Handa <handa@m17n.org>
15508
15509 * search.c (search_buffer): Give up BM search on case-fold-search
15510 if one of a target character has a case-equivalence of different
15511 byte length even if that target charcter is an ASCII.
15512 (simple_search): Fix calculation of byte length of matched text.
15513 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15514
155152008-02-01 Kenichi Handa <handa@m17n.org>
15516
15517 * coding.c (decode_coding): Fix handling of invalid bytes.
15518
155192008-02-01 Kenichi Handa <handa@m17n.org>
15520
15521 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15522 Unicode characters.
15523
155242008-02-01 Kenichi Handa <handa@m17n.org>
15525
15526 * coding.c (encode_coding_object): If a pre-write-conversion
15527 function makes a new buffer, kill it.
15528
155292008-02-01 Kenichi Handa <handa@m17n.org>
15530
15531 * coding.c (QCascii_compatible_p): New variable.
15532 (syms_of_coding): Initialize it.
15533 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15534 calling string_char.
15535 (record_conversion_result): Add `default:' case.
15536 (coding_charset_list): Delete unused variable `coding_type'.
15537 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15538 property in the plist of the coding system.
15539 (Fcoding_system_put): Check QCascii_compatible_p.
15540
155412008-02-01 Miles Bader <miles@gnu.org>
15542
15543 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15544 removed calculation of frame `f', as it's now used.
15545
155462008-02-01 Kenichi Handa <handa@m17n.org>
15547
15548 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15549 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15550 (UNIDATA): New variable.
15551 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15552 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15553 $(RUN_TEMACS) unconditionally.
15554
155552008-02-01 Kenichi Handa <handa@m17n.org>
15556
15557 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15558 (admindir): New variable.
15559 ($(lispsource)international/charprop.el): New target.
15560
155612008-02-01 Miles Bader <miles@gnu.org>
15562
15563 * character.c (chars-in-region): Remove obsolete function.
15564 (syms_of_character): Remove its initialization.
15565
155662008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15567
15568 * w32select.c (validate_coding_system)
15569 (setup_windows_coding_system): New functions.
15570 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15571 setup_windows_coding_system.
15572 (setup_config, Fw32_get_clipboard_data): Use
15573 validate_coding_system.
15574 (Fx_selection_exists): Move call to setup_config to a place
15575 where signals are allowed.
15576
15577 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15578 (Fcheck_coding_system): Add declarations.
15579
155802008-02-01 Kenichi Handa <handa@m17n.org>
15581
15582 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15583
155842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15585
15586 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15587 string as the second argument for x_new_fontset.
15588
155892008-02-01 Kenichi Handa <handa@m17n.org>
15590
15591 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15592 (encode_coding_object): Use safe_call instead of call2.
15593
155942008-02-01 Kenichi Handa <handa@m17n.org>
15595
15596 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15597
15598 * Makefile.in (lisp): Include charprop.el.
15599
156002008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15601
15602 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15603 Not sure if it's unnecessary.
15604
156052008-02-01 Steven Tamm <steventamm@mac.com>
15606
15607 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15608 some possibly unnecessary fontset checking code that crashed
15609 when creating a new frame.
15610
156112008-02-01 Kenichi Handa <handa@m17n.org>
15612
15613 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15614 lookup_face.
15615
15616 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15617
15618 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15619
156202008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15623 (coding_charset_list): New function.
15624
15625 * coding.h (coding_charset_list): Extern it.
15626
156272008-02-01 Kenichi Handa <handa@m17n.org>
15628
15629 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15630 concatenation of family and registry.
15631
156322008-02-01 Kenichi Handa <handa@m17n.org>
15633
15634 * character.h (BYTE8_STRING): Fix typo.
15635
15636 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15637 string to multibyte (sync to HEAD).
15638
15639 * casefiddle.c (casify_region): Handle changes in byte-length
15640 using replace_range_2 (sync to HEAD).
15641
156422008-02-01 Andreas Schwab <schwab@suse.de>
15643
15644 * chartab.c (map_char_table): GCPRO table and arg.
15645
156462008-02-01 Kenichi Handa <handa@m17n.org>
15647
15648 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15649 already at limit.
15650
156512008-02-01 Kenichi Handa <handa@m17n.org>
15652
15653 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15654 instead of fast_c_string_match_ignore_case.
15655 (find_font_encoding): Change argument to Lisp_Object. Use
15656 fast_string_match_ignore_case instead of
15657 fast_c_string_match_ignore_case. Change caller.
15658
156592008-02-01 Kenichi Handa <handa@m17n.org>
15660
15661 * xdisp.c (get_next_display_element): In unibyte case, decide to
15662 display in octal form by checking a character by
15663 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15664
15665 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15666
15667 * character.c (unibyte_has_multibyte_table): New variable.
15668
15669 * character.h (unibyte_has_multibyte_table): Extern it.
15670 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15671
156722008-02-01 Kenichi Handa <handa@m17n.org>
15673
15674 * coding.c (encode_coding_iso_2022): Fix handling of charset
15675 annotation.
15676
156772008-02-01 Kenichi Handa <handa@m17n.org>
15678
15679 * coding.c (setup_coding_system): If coding_system is nil, use
15680 Qundecided.
15681 (Fterminal_coding_system): Return nil if terminal coding system is
15682 `undecided'.
15683 (syms_of_coding): Define coding-system `undecided' here. Setup
15684 terminal_coding as `undecided'.
15685
156862008-02-01 Kenichi Handa <handa@m17n.org>
15687
15688 * xdisp.c (message_dolog, set_message_1): Call
15689 unibyte_char_to_multibyte with arg type int.
15690
15691 * lread.c (read1): Fix reading of a char-table.
15692
15693 * print.c (print_object): Include sub char-table in circularities
15694 detection.
15695
156962008-02-01 Kenichi Handa <handa@m17n.org>
15697
15698 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15699 Append the found sequences in car of ARGS instead of prepending.
15700
157012008-02-01 Kenichi Handa <handa@m17n.org>
15702
15703 * fileio.c (report_file_error): Make a unibyte string from
15704 strerror (errorno).
15705 (Fsubstitute_in_file_name): Fix the arg to
15706 unibyte_char_to_multibyte. It is evaluated twice.
15707
157082008-02-01 Kenichi Handa <handa@m17n.org>
15709
15710 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15711
157122008-02-01 Kenichi Handa <handa@m17n.org>
15713
15714 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15715 BOM is not found.
15716 (detect_coding, detect_coding_system): Optimization for ISO-2022
15717 when no 8-bit data is found.
15718
157192008-02-01 Jason Rumney <jasonr@gnu.org>
15720
15721 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15722
157232008-02-01 Kenichi Handa <handa@m17n.org>
15724
15725 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15726 CHARS.
15727
157282008-02-01 Steven Tamm <steventamm@mac.com>
15729
15730 * macterm.c (mac_encode_char): Add charset argument and update
15731 to use encoding_type.
15732 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15733 switch to pure fontset.
15734 (decode_mac_font_name): Temporarily remove decoding.
15735 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15736 (x_load_font): Temporarily remove encoding.
15737
157382008-02-01 Kenichi Handa <handa@m17n.org>
15739
15740 * xfaces.c (Fface_font): If frame is not on a window system,
15741 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15742 refer to face->font.
15743 (split_font_name_into_vector, build_font_name_from_vector)
15744 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15745 when HAVE_WINDOW_SYSTEM is defined.
15746
157472008-02-01 Kenichi Handa <handa@m17n.org>
15748
15749 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15750 (x_produce_glyphs): Fix setting of members of cmp in case
15751 cmp->glyph_len is zero.
15752
15753 * fontset.c (Fset_fontset_font): Fix docstring.
15754 (Ffontset_info): Make it backward compatible. New arg ALL.
15755
157562008-02-01 Kim F. Storm <storm@cua.dk>
15757
15758 * process.c (read_process_output): Grow decoding_buf when needed;
15759 this could cause a crash in allocate_string and compact_small_strings.
15760
157612008-02-01 Kenichi Handa <handa@m17n.org>
15762
15763 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15764
157652008-02-01 Kenichi Handa <handa@m17n.org>
15766
15767 * coding.c (setup_coding_system): Set coding->common_flags
15768 correctly for raw-text.
15769 (consume_chars): On encoding unibyte text by raw-text, don't check
15770 multibyte form.
15771 (encode_coding): On encoding by raw-text, never use translation tables.
15772
15773 * fileio.c (e_write): Short cut for the case of no encoding.
15774
157752008-02-01 Kenichi Handa <handa@m17n.org>
15776
15777 * coding.c (detect_coding, detect_coding_system): Delete unused
15778 variables.
15779
157802008-02-01 Kenichi Handa <handa@m17n.org>
15781
15782 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15783 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15784
157852008-02-01 Kenichi Handa <handa@m17n.org>
15786
15787 * coding.c (Ffind_coding_systems_region_internal): Include
15788 raw-text and no-conversion in the result.
15789
157902008-02-01 Kenichi Handa <handa@m17n.org>
15791
15792 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15793 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15794 FONT_DEF.
15795 (font_def_arg, add_arg, from_arg, to_arg): New args.
15796 (set_fontset_font): Change argument.
15797 (Fset_fontset_font): Fix for the case that TARGET is a script
15798 name and charset name.
15799 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15800
158012008-02-01 Kenichi Handa <handa@m17n.org>
15802
15803 * fontset.c (fontset_font): Rename from fontset_face. Change return
15804 value.
15805 (face_suitable_for_char_p, face_for_char): Adjust for the change
15806 of fontset_font.
15807 (make_fontset_for_ascii_face): Fix setting of the fontset element
15808 for ASCII.
15809 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15810 to get a font name.
15811 (Ffontset_info): Adjust for the change of fontset_font.
15812
15813 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15814
15815 * character.h (LEADING_CODE_LATIN_1_MIN)
15816 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15817
158182008-02-01 Kenichi Handa <handa@m17n.org>
15819
15820 * editfns.c (check_translation): New function.
15821 (Ftranslate_region_internal): Handle M:N mapping.
15822
158232008-02-01 Kenichi Handa <handa@m17n.org>
15824
15825 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15826
158272008-02-01 Kenichi Handa <handa@m17n.org>
15828
15829 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15830 goto invalid_code.
15831 (decode_coding_iso_2022): Fix handling of invalid designation.
15832
15833 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15834 after calling code_conversion_save.
15835
158362008-02-01 Kenichi Handa <handa@m17n.org>
15837
15838 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15839
15840 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15841
15842 * fontset.c: Include "intervals.h".
15843 (fontset_face): Fix comparing of Lisp_Objects.
15844 (free_face_fontset, new_fontset_from_font_name): Fix
15845 Lisp_Object/int mixup.
15846
15847 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15848
15849 * coding.c: Add many prototypes for static functions.
15850 (get_translation_table): Allow max_lookup to be NULL.
15851 (decode_coding, Ffind_coding_systems_region_internal)
15852 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15853 get_translation_table with max_lookup NULL.
15854
158552008-02-01 Kenichi Handa <handa@m17n.org>
15856
15857 * coding.c (get_translation_table): Declare it as Lisp_Object.
15858 (LOOKUP_TRANSLATION_TABLE): New macro.
15859 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15860 instead of CHAR_TABLE_REF.
15861
158622008-02-01 Kenichi Handa <handa@m17n.org>
15863
15864 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15865 annotation data format.
15866 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15867 Change arguments FROM and TO to single argument NCHARS. Change caller.
15868 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15869 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15870 (decode_coding_ccl, decode_coding_charset): Pay attention to
15871 coding->charbuf_used.
15872 (get_translation): New function.
15873 (produce_chars): New arguments translation_table and last_block.
15874 Translate characters here. Return number of carryover chars.
15875 Change caller.
15876 (produce_composition): New argument pos. Change caller.
15877 Adjust for the change of annotation data format.
15878 (produce_charset, produce_annotation): Likewise.
15879 (decode_coding, encode_coding): Don't call translate_chars.
15880 (consume_chars): New arg translation_table. Change caller.
15881 (translate_chars): Delete.
15882 (syms_of_coding): Make translation-table's number of extra slots 2.
15883
158842008-02-01 Kenichi Handa <handa@m17n.org>
15885
15886 * search.c (simple_search): Fix setting this_pos_byte in backward
15887 search.
15888
15889 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15890 byte sequence.
15891 (detect_coding_ccl): Fix setting of the variable valids.
15892
158932008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15896
15897 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15898
15899 * editfns.c (Ftranslate_region_internal): Rename from
15900 Ftranslate_region. Accept a char-table in TABLE.
15901 (syms_of_editfns): Defsubr Stranslate_region_internal.
15902
15903 * xfaces.c (set_lface_from_font_name): If a font is specified for
15904 a frame, generate a fontset from the font.
15905 (build_scalable_font_name): If the scalable font is requested for
15906 a specific size, don't change that size.
15907 (try_font_list): Try a scalable font also in the case that a
15908 pattern string is specified.
15909
159102008-02-01 Kenichi Handa <handa@m17n.org>
15911
15912 * xfaces.c (Fface_font): New optional arg CHARACTER.
15913
159142008-02-01 Kenichi Handa <handa@m17n.org>
15915
15916 * charset.h (CHARSET_OFFSET): New macro.
15917
159182008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15921
15922 * fontset.c (fontset_face): Handle the case that repertory is a
15923 char-table.
15924 (find_font_encoding): Return nil for unknown encoding.
15925 (Fset_fontset_font): Ignore a font of unknown encoding.
15926
159272008-02-01 Kenichi Handa <handa@m17n.org>
15928
15929 * keymap.c (describe_vector): Handle default value of a char table.
15930
15931 * fontset.c (fontset_face): Handle fallback fonts correctly.
15932 (Ffontset_info): Return infomation about fallback fonts.
15933
159342008-02-01 Kenichi Handa <handa@m17n.org>
15935
15936 * fontset.c (FONTSET_DEFAULT): New macro.
15937 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15938 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15939 the case that it is nil.
15940 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15941 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15942
15943 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15944 subset or superset.
15945
159462008-02-01 Kenichi Handa <handa@m17n.org>
15947
15948 * emacs.c (main): Call init_charset after syms_of_XXX.
15949
15950 * charset.c (Vcharset_map_directory): Delete.
15951 (Vcharset_map_path): New variable.
15952 (load_charset_map_from_file): Use Vcharset_map_path instead.
15953 (init_charset): Initialize Vcharset_map_path.
15954 (syms_of_charset): Delete declaration of "charset-map-directory",
15955 add declaration of "charset-map-path".
15956
159572008-02-01 Kenichi Handa <handa@m17n.org>
15958
15959 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15960 ASCII only string.
15961
15962 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15963
15964 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15965 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15966
159672008-02-01 Kenichi Handa <handa@m17n.org>
15968
15969 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15970
15971 * coding.c (QCmnemonic, QCdefalut_char)
15972 (QCdecode_translation_table, QCencode_translation_table)
15973 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15974 (get_translation_table): Return a list of translation tables if
15975 necessary.
15976 (decode_coding): Call get_translation_table with ENCODEP 0.
15977 (char_encodable_p): If translation_table is non-nil, always call
15978 translate_char.
15979 (Fdefine_coding_system_internal): Accept list of translation
15980 tables as :encode-translation-table and :decode-translation-table.
15981 (Fcoding_system_put): New function.
15982 (syms_of_coding): Declare new symbols. Defsubr
15983 Scoding_system_put.
15984 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15985 typically JISX0212.
15986
15987 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15988 when the charset is superset type.
15989
15990 * character.c (translate_char): Accept list of translation tables.
15991
159922008-02-01 Kenichi Handa <handa@m17n.org>
15993
15994 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
15995 (CODING_ATTR_TRANS_TBL): New macro.
15996
15997 * coding.c (get_translation_table): New function.
15998 (translate_chars): Fix the bug of skipping annotation data.
15999 (decode_coding, encode_coding): Utilize get_translation_table.
16000 (char_encodable_p, Funencodable_char_position): Translate char if
16001 necessary.
16002 (Ffind_coding_systems_region_internal)
16003 (Fcheck_coding_systems_region): Setup translation table for encode
16004 in a coding system attribute vector in advance.
16005 (Fdefine_coding_system_internal): Allow a symbol as translation
16006 table. For shift-jis type coding system, allow 4th charset.
16007
160082008-02-01 Kenichi Handa <handa@m17n.org>
16009
16010 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16011
16012 * xdisp.c (get_next_display_element): Pass -1 as POS to
16013 FACE_FOR_CHAR if displaying a C-string.
16014
160152008-02-01 Kenichi Handa <handa@m17n.org>
16016
16017 * composite.c (get_composition_id): Handle xoff and yoff in a
16018 composition rule.
16019
16020 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16021 (struct composition): New member lbearing and rbearing.
16022
16023 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16024 (x_get_glyph_overhangs): Handle a composition glyph.
16025 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16026
16027 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16028 composition glyph.
16029
160302008-02-01 Kenichi Handa <handa@m17n.org>
16031
16032 * print.c: Include charset.h.
16033 (Vprint_charset_text_property): New variable.
16034 (Qdefault): Extern it.
16035 (PRINT_STRING_NON_CHARSET_FOUND)
16036 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16037 (print_check_string_result): New variable.
16038 (print_check_string_charset_prop): New function.
16039 (print_prune_charset_plist): New variable.
16040 (print_prune_string_charset): New function.
16041 (print_object): Call print_prune_string_charset if
16042 Vprint_charset_text_property is not t.
16043 (print_interval): Print nothing if interval->plist is nil.
16044 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16045 variable. Init and staticpro print_prune_charset_plist.
16046
160472008-02-01 Kenichi Handa <handa@m17n.org>
16048
16049 * fontset.c (new_fontset_from_font_name): Use the specified font
16050 for all characters in the new fontset.
16051
16052 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16053 OBJECT args.
16054
16055 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16056 OBJECT args for composition too.
16057
16058 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16059 OBJECT args.
16060
160612008-02-01 Kenichi Handa <handa@m17n.org>
16062
16063 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16064
16065 * fontset.c (reorder_font_vector): Adjust for the change of
16066 FONT_DEF format.
16067 (fontset_face): New arg id. Change caller.
16068 (face_for_char): New args pos and object.
16069 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16070 (fs_query_fontset): Check NAME by Fassoc too.
16071 (Fset_fontset_font): Allow non-XLFD font name.
16072 (Ffontset_info): Adjust for the change of FONT_DEF format.
16073
16074 * fontset.h (face_for_char): Adjust prototype.
16075
16076 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16077 (append_space, extend_face_to_end_of_line)
16078 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16079 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16080
16081 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16082 POS and OBJECT args.
16083
16084 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16085 POS and OBJECT args.
16086
160872008-02-01 Jason Rumney <jasonr@gnu.org>
16088
16089 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16090 of GlobalAlloc'ed memory.
16091
160922008-02-01 Kenichi Handa <handa@m17n.org>
16093
16094 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16095
16096 * charset.h (charset_table_used): Delete extern.
16097
16098 * charset.c (charset_table_used): Make it static.
16099 (map_charset_chars): Fix args to c_function with.
16100
16101 * chartab.c (map_sub_char_table_for_charset): Fix args to
16102 c_function with.
16103
16104 * coding.h (enum coding_result_code): Delete
16105 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16106
16107 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16108 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16109 (Vlast_code_conversion_error): New variables.
16110 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16111 (ONE_MORE_BYTE): Record error if any instead of signaling an
16112 error. If non-ASCII multibyte char is found, return the negative
16113 value of the code. All callers changed to check it.
16114 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16115 (record_conversion_result): New function. Change all codes setting
16116 coding->result to call this function.
16117 (detect_coding_utf_8, decode_coding_utf_8)
16118 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16119 Don't use the local variable incomplete.
16120 (emacs_mule_char): Change the second arg to `const'.
16121 (decode_coding): Fix of flushing out unprocessed data.
16122 (make_conversion_work_buffer): Fix making of a work buffer.
16123 (decode_coding_object): Return coding->dst_object.
16124
16125 * fontset.c (set_fontset_font): Fix args.
16126
16127 * lisp.h (CHARACTERBITS): Define as 22.
16128
16129 * process.c (send_process): Be sure to set coding->src_multibyte.
16130
16131 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16132
161332008-02-01 Kenichi Handa <handa@m17n.org>
16134
16135 * xdisp.c (handle_auto_composed_prop): Give limit to
16136 Fnext_single_char_property_change.
16137
161382008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * composite.c (syms_of_composite): Don't make the composition hash
16141 table weak.
16142
16143 * fontset.c (Fset_fontset_font): Fix docstring.
16144
16145 * lisp.h (detect_coding_system): Adjust prototype.
16146
16147 * fileio.c (kill_workbuf_unwind): Delete this function.
16148 (Finsert_file_contents): Adjust the call of detect_coding_system.
16149 Get conversion_buffer by code_conversion_save. Use the macro
16150 CODING_MAY_REQUIRE_DECODING. After decoding, update
16151 coding_system.
16152
16153 * coding.h (make_conversion_work_buffer): Delete extern.
16154 (code_conversion_save): Extern it.
16155
16156 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16157 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16158 (decode_coding_utf_8): Don't do eol converion.
16159 (detect_coding_utf_16): Check coding->src_chars, not
16160 coding->src_bytes. Add heuristics for those that have no signature.
16161 (decode_coding_emacs_mule, decode_coding_iso_2022)
16162 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16163 Don't do eol converion.
16164 (adjust_coding_eol_type): Return a new coding system.
16165 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16166 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16167 each change.
16168 (decode_coding): Pay attention to undo_list. Do eol conversion for
16169 all types of coding-systems (if necessary).
16170 (Vcode_conversion_work_buf_list): Delete it.
16171 (Vcode_conversion_reused_workbuf): Rename from
16172 Vcode_conversion_reused_work_buf.
16173 (Vcode_conversion_workbuf_name): New variable.
16174 (reused_workbuf_in_use): New variable.
16175 (make_conversion_work_buffer): Delete the arg DEPTH.
16176 (code_conversion_restore): Change argument to cons.
16177 (code_conversion_save): Delete the argument BUFFER. Change callers.
16178 (detect_coding_system): New argument src_chars. Change callers.
16179 Fix for utf-16 detection.
16180 (init_coding_once): Don't use ISO_carriage_return.
16181 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16182 reused_workbuf_in_use.
16183
161842008-02-01 Kenichi Handa <handa@m17n.org>
16185
16186 * keymap.c (store_in_keymap): Pay attention to the case that idx
16187 is a cons specifying a character range.
16188
161892008-02-01 Kenichi Handa <handa@m17n.org>
16190
16191 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16192 HANDLED_RECOMPUTE_PROPS.
16193
16194 * coding.c (Fdefine_coding_system_internal): Fix checking of
16195 ascii compatibility.
16196
161972008-02-01 Kenichi Handa <handa@m17n.org>
16198
16199 * charset.c (find_charsets_in_text): Delete unused locale variable.
16200 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16201
16202 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16203 Resync charset_list to Vemacs_mule_charset_list.
16204
16205 * keymap.c (store_in_keymap): Pay attention to the case that idx
16206 is a cons specifying a character range.
16207
162082008-02-01 Kenichi Handa <handa@m17n.org>
16209
16210 * composite.c (update_compositions): Bind inhibit-read-only, etc
16211 to t before calling remove-list-of-text-properties.
16212
16213 * print.c (print_object): Always print ASCII chars as is.
16214
162152008-02-01 Kenichi Handa <handa@m17n.org>
16216
16217 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16218
16219 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16220 is a char table.
16221
162222008-02-01 Kenichi Handa <handa@m17n.org>
16223
16224 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16225
162262008-02-01 Kenichi Handa <handa@m17n.org>
16227
16228 * xfaces.c (set_lface_from_font_name): Fix for the case that
16229 FONTNAME is not fontset name.
16230
162312008-02-01 Kenichi Handa <handa@m17n.org>
16232
16233 * fns.c (base64_encode_1): Fix previous change.
16234
162352008-02-01 Kenichi Handa <handa@m17n.org>
16236
16237 * fontset.c (set_fontset_font): New function.
16238 (Fset_fontset_font): If a font is specified for a charset, use
16239 map_charset_chars to store the font spec in a fontset.
16240
162412008-02-01 Kenichi Handa <handa@m17n.org>
16242
16243 * fontset.c (fontset_face): Create a fallback fontset on demand.
16244 (make_fontset): Don't create a fallback fontset here.
16245 (free_face_fontset): Free a fallback fontset (if any) too.
16246 (n_auto_fontsets): Delete this variable.
16247 (auto_fontset_alist): New variable.
16248 (new_fontset_from_font_name): Check auto_fontset_alist.
16249 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16250 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16251 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16252 Defsubr Sfontset_list_all.
16253
162542008-02-01 Kenichi Handa <handa@m17n.org>
16255
16256 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16257
162582008-02-01 Kenichi Handa <handa@m17n.org>
16259
16260 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16261
162622008-02-01 Kenichi Handa <handa@m17n.org>
16263
16264 * editfns.c (Fgoto_char): Fix docstring.
16265
162662008-02-01 Kenichi Handa <handa@m17n.org>
16267
16268 * insdel.c (insert_from_gap): Adjust intervals correctly.
16269
162702008-02-01 Jason Rumney <jasonr@gnu.org>
16271
16272 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16273 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16274 (w32_initialize): Try to load it.
16275 (x_get_font_repertory): Use it if available.
16276 (w32_encode_char): Add shortcut for unicode output.
16277
16278 * w32fns.c (w32_load_system_font): Default charset to -1.
16279 (x_to_w32_charset): Match all fonts for unicode.
16280 (w32_to_x_charset): New parameter matching. Don't return partial
16281 or wildcard charsets.
16282 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16283 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16284 (w32_to_x_font): Match charset to real charset.
16285 (enum_font_cb2): Always list unicode versions.
16286
16287 * makefile.w32-in (temacs): Increase EMHEAP.
16288
162892008-02-01 Jason Rumney <jasonr@gnu.org>
16290
16291 * w32term.c (w32_encode_char): New charset parameter.
16292 font_info.encoding becomes encoding_type.
16293 (x_get_font_repertory): New function. Warning: stub only!
16294 (x_new_font): Return quickly if font already set.
16295 (x_new_fontset): fontsetname parameter is Lisp_Object.
16296 Use new fs_query_fontset. Try new_fontset_from_font_name.
16297 Use fontset_name for return value.
16298
16299 * w32term.h: Declare x_get_font_repertory.
16300
16301 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16302 place of find_charset_in_text. Use encode_coding_object in place
16303 of encode_coding.
16304 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16305 decode_coding.
16306
16307 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16308 of x_new_fontset.
16309 (w32_load_system_font): Initialize charset as unicode.
16310 font_info.encoding becomes encoding_type.
16311 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16312 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16313 (syms_of_w32fns): Set get_font_repertory_func.
16314
16315 * w32console.c: Include character.h. Use terminal_encode_buffer
16316 from term.c.
16317 (write_glyphs): Use new version of encode_terminal_code. Use
16318 encode_coding_object in place of encode_coding.
16319
16320 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16321 encoding becomes encoding_type.
16322
16323 * term.c (terminal_encode_buffer): Make externally visible.
16324
16325 * makefile.w32-in: Add character.h dependancies.
16326 (character.o, chartab.o): New targets.
16327
163282008-02-01 Kenichi Handa <handa@m17n.org>
16329
16330 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16331 CODING_ID_EOL_TYPE.
16332
163332008-02-01 Andreas Schwab <schwab@suse.de>
16334
16335 * coding.c (produce_chars): Revert last change.
16336
163372008-02-01 Kenichi Handa <handa@m17n.org>
16338
16339 * charset.h (charset_unicode): Extern it.
16340
16341 * charset.c (string_xstring_p): Check by (C >= 0x100).
16342 (find_charsets_in_text): Change format of the arc CHARSETS. New
16343 arg MULTIBYTE.
16344 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16345 change of find_charsets_in_text.
16346 (Fsplit_char): Fix doc. Never return unknown.
16347
16348 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16349
16350 * coding.c (Fdefine_coding_system_alias): Update
16351 Vcoding_system_list.
16352
16353 * fontset.c (load_font_get_repertory): Pay attention to the case
16354 that ENCODING of a font is specified by a char-table.
16355
16356 * xterm.c (x_get_font_repertory): Handle the case that the
16357 encoding of font is other than Unicode.
16358
163592008-02-01 Kenichi Handa <handa@m17n.org>
16360
16361 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16362 if a character is encodable by the terminal coding system. If
16363 not, produces proper number of `?'s. Update
16364 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16365 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16366
163672008-02-01 Kenichi Handa <handa@m17n.org>
16368
16369 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16370 variables.
16371 (encode_terminal_code): Change argument. Encode multiple
16372 characters at once. Store the result of encoding in
16373 terminal_encode_buffer.
16374 (write_glyphs, insert_glyphs): Adjust for the change of
16375 encode_terminal_code.
16376 (term_init): Initialize terminal_encode_buffer and
16377 terminal_encode_buf_size.
16378
16379 * coding.c (consume_chars): If coding->src_object is nil, don't
16380 check annotation.
16381
163822008-02-01 Kenichi Handa <handa@m17n.org>
16383
16384 * character.c (char_string): Use ASCII_CHAR_P instead of
16385 SINGLE_BYTE_CHAR_P.
16386
163872008-02-01 Kenichi Handa <handa@m17n.org>
16388
16389 * xdisp.c (handle_auto_composed_prop): Check if the last
16390 characters of auto-composed region is newly composed with the
16391 following characters.
16392 (handle_composition_prop): Fix checking of point being inside
16393 composition.
16394
163952008-02-01 Kenichi Handa <handa@m17n.org>
16396
16397 * fns.c (concat): Don't change multibyteness of the result by
16398 concatenating an 8-bit character.
16399
16400 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16401 multibyteness of the result when newelt is an 8-bit character.
16402
164032008-02-01 Dave Love <fx@gnu.org>
16404
16405 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16406 EMACS_INT.
16407
16408 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16409
16410 * xfaces.c (face_numeric_value): Declare dim size_t.
16411 (Finternal_lisp_face_equal_p): Remove unused f.
16412
16413 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16414 (MATRIX_ROW): Remove unused vars.
16415 (draw_glyphs, x_insert_glyphs, fast_find_position)
16416 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16417 byte/char counts.
16418
16419 * regex.c (regex_compile): Remove unused var.
16420
16421 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16422
16423 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16424 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16425
16426 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16427
16428 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16429
16430 * fileio.c (Fwrite_region): Remove unused var.
16431
16432 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16433 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16434
16435 * composite.c (Fremove_list_of_text_properties): Declare.
16436
16437 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16438 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16439 (coding_inherit_eol_type): Remove unused attrs.
16440 (detect_coding): Cast arg of detect_eol.
16441
16442 * charset.c (syms_of_charset): Remove unused var p.
16443 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16444 byte/char counts.
16445
16446 * casetab.c (set_case_table): Remove unused var.
16447
16448 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16449 unused vars.
16450
164512008-02-01 Dave Love <fx@gnu.org>
16452
16453 * xterm.c (x_bitmap_mask): Declare.
16454
164552008-02-01 Dave Love <fx@gnu.org>
16456
16457 * xterm.c (x_term_init): Fix type error.
16458
16459 * lisp.h: Add Funibyte_char_to_multibyte.
16460
16461 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16462 (Fset_coding_system_priority): Doc fix.
16463
16464 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16465
16466 * indent.c (check_composition): Make start and end EMACS_INT.
16467
16468 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16469
16470 * xdisp.c (handle_composition_prop, check_point_in_composition):
16471 Make buffer positions EMACS_INT.
16472
16473 * composite.c (find_composition, run_composition_function)
16474 (update_compositions, Ffind_composition_internal): Make buffer
16475 positions EMACS_INT.
16476
16477 * composite.h (find_composition, update_compositions): Make
16478 position args EMACS_INT.
16479
16480 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16481
16482 * intervals.c (get_property_and_range):
16483 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16484
16485 * unexalpha.c: Don't include varargs.h.
16486
164872008-02-01 Dave Love <fx@gnu.org>
16488
16489 * coding.h (ENCODE_UTF_8): New.
16490
16491 * Makefile.in (gtkutil.o): Depend on coding.h.
16492
16493 * coding.c (Fset_coding_system_priority): Doc fix.
16494
164952008-02-01 Kenichi Handa <handa@m17n.org>
16496
16497 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16498 the case of auto saving.
16499
165002008-02-01 Andreas Schwab <schwab@suse.de>
16501
16502 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16503 `range' from GC.
16504
165052008-02-01 Kenichi Handa <handa@m17n.org>
16506
16507 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16508
165092008-02-01 Kenichi Handa <handa@m17n.org>
16510
16511 * fileio.c (choose_write_coding_system): Return a decided coding system.
16512 (Fwrite_region): Set Vlast_coding_system_used to the return value
16513 of choose_write_coding_system.
16514
165152008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * charset.c (Fset_charset_priority): Pay attention to duplicated
16518 arguments.
16519
16520 * coding.c (QCcategory): New variable.
16521 (syms_of_coding): Defsym it. Set all elements of
16522 Vcoding_category_table and their symbol values.
16523 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16524 coding-category-XXX, and coding-category-list.
16525 (Fdefine_coding_system_internal): Add category in the plist.
16526
165272008-02-01 Kenichi Handa <handa@m17n.org>
16528
16529 * callproc.c (Fcall_process): Handle carryover correctly.
16530
16531 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16532 (raw_text_coding_system): Check NILP (coding_system).
16533 (coding_inherit_eol_type): Check NILP (coding_system) and
16534 NILP (parent).
16535 (consume_chars): Fix for the case of raw-text.
16536
16537 * process.c (read_process_output): Handle carryover correctly.
16538
165392008-02-01 Dave Love <fx@gnu.org>
16540
16541 * regex.c (re_search_2): Fix last change.
16542
165432008-02-01 Kenichi Handa <handa@m17n.org>
16544
16545 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16546 target_multibyte. Even in a unibyte case, return a converted
16547 multibyte char.
16548 (GET_CHAR_AFTER): New macro.
16549 (PATFETCH): Translate via multibyte char.
16550 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16551 (SETUP_MULTIBYTE_RANGE): New macro.
16552 (regex_compile): Setup compiled code so that its multibyteness
16553 matches that of a target. Fix the handling of "[X-YZ]" using
16554 SETUP_MULTIBYTE_RANGE.
16555 (analyse_first) <charset>: For filling fastmap for all multibyte
16556 characters, don't check by BASE_LEADING_CODE_P.
16557 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16558 the same as RE_MULTIBYTE_P (bufp) now.
16559 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16560 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16561 (TRANSLATE_VIA_MULTIBYTE): New macro.
16562 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16563 It is the same as RE_MULTIBYTE_P (bufp) now.
16564 <exactn>: Translate via multibyte.
16565 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16566 translate it.
16567 <charset, charset_not>: Fetch a character by
16568 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16569 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16570 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16571 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16572 by GET_CHAR_AFTER.
16573 (bcmp_translate): Likewise.
16574
16575 * search.c (compile_pattern): Check the member target_multibyte,
16576 not the member multibyte of buf.
16577
16578 * lread.c (read1): While reading a string, set force_singlebyte
16579 and force_multibyte correctly.
16580
16581 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16582 up of unibyte_to_multibyte_table.
16583
165842008-02-01 Kenichi Handa <handa@m17n.org>
16585
16586 * coding.c (setup_coding_system): If coding has
16587 post-read-conversion or pre-write-conversion, set
16588 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16589 respectively.
16590 (decode_coding_gap): Run post-read-conversion if any.
16591
16592 * fileio.c (Finsert_file_contents): Even if we read into a
16593 unibyte buffer, check if we must decode the result or not.
16594
165952008-02-01 Kenichi Handa <handa@m17n.org>
16596
16597 * coding.c (make_conversion_work_buffer): Change the work buffer
16598 name to the same one as that of Emacs 21.
16599
166002008-02-01 Kenichi Handa <handa@m17n.org>
16601
16602 * coding.h (make_conversion_work_buffer): Adjust prototype.
16603 (code_conversion_restore): Don't extern it.
16604
16605 * coding.c (detected_mask): Delete unused variable.
16606 (decode_coding_iso_2022): Pay attention to the byte sequence of
16607 CTEXT extended segment, and retain those bytes as is.
16608 (decode_coding_ccl): Delete unused variable `valids'.
16609 (setup_coding_system): Delete unused variable `category'.
16610 (consume_chars): Delete unused variable `category'. Make it work
16611 for non-multibyte case.
16612 (make_conversion_work_buffer): Change argument.
16613 (saved_coding): Delete unused variable.
16614 (code_conversion_restore): Don't check saved_coding->destination.
16615 (code_conversion_save): New function.
16616 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16617 instead of record_unwind_protect.
16618 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16619 (detect_coding_system): Delete unused variable `mask'.
16620 (Fdefine_coding_system_internal): Delete unused variable id.
16621
16622 * fileio.c (kill_workbuf_unwind): New function.
16623 (Finsert_file_contents): On replacing, call
16624 make_conversion_work_buffer with correct args, and call
16625 record_unwind_protect with the first arg kill_workbuf_unwind.
16626
16627 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16628
166292008-02-01 Kenichi Handa <handa@m17n.org>
16630
16631 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16632 (fontset_add): Fix for the case that TO is less than TO1.
16633 (Ffontset_info): Don't use fallback fontset on checking the
16634 default fontset.
16635 (dump_fontset): New function for debugging.
16636
16637 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16638 coding_type is Qcharset.
16639
166402008-02-01 Kenichi Handa <handa@m17n.org>
16641
16642 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16643 (map_char_table): Don't inherit the value from the parent on
16644 initializing VAL. Adjust for the above change.
16645
166462008-02-01 Kenichi Handa <handa@m17n.org>
16647
16648 * coding.c (Qsignature, Qendian): Delete these variables.
16649 (syms_of_coding): Don't initialize them.
16650 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16651 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16652 detect_info->found.
16653 (decode_coding_utf_16): Don't detect BOM here.
16654 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16655 is NOT utf_16_without_bom.
16656 (setup_coding_system): For a coding system of type utf-16, check
16657 if the attribute :endian is Qbig or not (not nil or not), and set
16658 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16659 (detect_coding): If coding type is utf-16 and BOM detection is
16660 required, detect it.
16661 (Fdefine_coding_system_internal): For a coding system of type
16662 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16663
166642008-02-01 Kenichi Handa <handa@m17n.org>
16665
16666 * coding.c (coding_set_source): Fix for the case that the current
16667 buffer is different from coding->src_object.
16668 (decode_coding_object): Don't use the conversion work buffer if
16669 DST_OBJECT is a buffer.
16670
166712008-02-01 Dave Love <fx@gnu.org>
16672
16673 * lread.c (read_emacs_mule_char) [len==2]: Index
16674 emacs_mule_charset correctly.
16675
166762008-02-01 Dave Love <fx@gnu.org>
16677
16678 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16679 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16680 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16681 treated specially.)
16682 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16683 (detected_mask): Remove Big5 bits.
16684
166852008-02-01 Kenichi Handa <handa@m17n.org>
16686
16687 The following changes are to make the font rescaling facility
16688 compatible with Emacs 21.
16689
16690 * xfaces.c (Vface_font_rescale_alist): Rename from
16691 Vface_resizing_fonts.
16692 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16693 (font_rescale_ratio): Rename from font_resizing_ratio.
16694 (split_font_name): Set font->rescale_ratio.
16695 (better_font_p): Pay attention to font->rescale_ratio.
16696 (build_scalable_font_name): Likewise. Change RESX, and RESY
16697 fields.
16698 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16699
167002008-02-01 Kenichi Handa <handa@m17n.org>
16701
16702 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16703 (Qutf_16_le): Remove these variables.
16704 (syms_of_coding): Don't DEFSYM them.
16705 (decode_coding_utf_16): Fix handling of BOM.
16706 (encode_coding_utf_16): Fix handling of BOM.
16707
167082008-02-01 Kenichi Handa <handa@m17n.org>
16709
16710 * fileio.c (Finsert_file_contents): On replacing, before decoding
16711 the file into the work buffer, set point of the work buffer to the end.
16712
167132008-02-01 Dave Love <fx@gnu.org>
16714
16715 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16716
167172008-02-01 Dave Love <fx@gnu.org>
16718
16719 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16720 and fix C types.
16721
167222008-02-01 Kenichi Handa <handa@m17n.org>
16723
16724 * xdisp.c (SKIP_GLYPHS): New macro.
16725 (set_cursor_from_row): Pay attention to string display properties.
16726
16727 * category.c (copy_category_entry): Fix for the case that RANGE
16728 is an integer.
16729
16730 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16731
16732 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16733
167342008-02-01 Kenichi Handa <handa@m17n.org>
16735
16736 * charset.c (Fcharset_id_internal): New function.
16737 (syms_of_charset): Defsubr it.
16738
16739 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16740 with the last arg charset_list acquired from coding.
16741 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16742 the attribute coding_attr_ccl_valids.
16743
16744 * coding.h (enum define_coding_ccl_arg_index): Set the first
16745 member coding_arg_ccl_decoder to coding_arg_max.
16746
16747 * ccl.h (ccl_driver): Adjust prototype.
16748
16749 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16750 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 16751 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
16752 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16753 last arg Qnil.
16754
167552008-02-01 Kenichi Handa <handa@m17n.org>
16756
16757 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16758 call encode_char.
16759
16760 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16761
167622008-02-01 Dave Love <fx@gnu.org>
16763
16764 * composite.c (syms_of_composite): Make composition_hash_table weak.
16765
167662008-02-01 Kenichi Handa <handa@m17n.org>
16767
16768 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16769 (font_name_registry): Don't extern them.
16770 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16771
16772 * fontset.h (Qfontset): Don't extern it.
16773 (new_fontset_from_font_name): Extern it.
16774
16775 * fontset.c: Give 8 extra slots to fontset objects.
16776 (Qfontset_info): New variable.
16777 (syms_of_fontset): Defsym it.
16778 (FONTSET_FALLBACK): New macro.
16779 (fontset_face): Try also the default fontset.
16780 (make_fontset): Realize a fallback fontset from the default fontset.
16781 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16782 using split_font_name_into_vector and build_font_name_from_vector.
16783 (Fset_fontset_font): Access the elements of font_spec by enum
16784 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16785 name by using split_font_name_into_vector.
16786 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16787 generate a proper font name from the fontset name. Update
16788 Vfontset_alias_alist.
16789 (n_auto_fontsets): New variable.
16790 (new_fontset_from_font_name): New function.
16791 (Ffont_info): Store the information about fonts generated from the
16792 default fontset in the first extra slot of the returned char-table.
16793
16794 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16795 (font_name_registry): Delete function.
16796 (split_font_name_into_vector): New function.
16797 (build_font_name_from_vector): New function.
16798 (font_list): The argument REGISTRY is now a list of registry names.
16799 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16800 specifies an explicit font name, return the name as is. Make a
16801 list of registy names.
16802
16803 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16804 of x_new_fontset.
16805 (Fx_create_frame): Don't call x_new_fontset here. Just use
16806 x_list_fonts to check the existence of fonts.
16807
16808 * xterm.h (x_new_fontset): Adjust prototype.
16809
16810 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16811 string. Use new_fontset_from_font_name to create a fontset from a
16812 font name.
16813
168142008-02-01 Kenichi Handa <handa@m17n.org>
16815
16816 * syntax.c (Vfind_word_boundary_function_table): New name for
16817 Vnext_word_boundary_function_table.
16818 (find-word-boundary-function-table): New name for
16819 next-word-boundary-function-table.
16820
168212008-02-01 Dave Love <fx@gnu.org>
16822
16823 * Makefile.in: Fix some dependencies.
16824
16825 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16826 set it to nil before returning.
16827
16828 * composite.c (update_compositions): Fix type error.
16829
16830 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16831
168322008-02-01 Kenichi Handa <handa@m17n.org>
16833
16834 * xterm.c (x_new_font): Optimize for the case that the font is
16835 already set for the frame.
16836
168372008-02-01 Kenichi Handa <handa@m17n.org>
16838
16839 * chartab.c (char_table_ascii): Check if the char table contents
16840 is sub-char-table or not.
16841 (char_table_set, char_table_set_range): Fix argument to
16842 char_table_ascii.
16843
16844 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16845 (detect_coding_utf_8, detect_coding_utf_16)
16846 (detect_coding_emacs_mule, detect_coding_iso_2022)
16847 (detect_coding_sjis, detect_coding_big5)
16848 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16849 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16850 sequence is valid in this coding system. Change callers.
16851 (MAX_ANNOTATION_LENGTH): New macro.
16852 (ADD_ANNOTATION_DATA): New macro.
16853 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16854 ADD_ANNOTATION_DATA. Change the format of annotation data.
16855 (ADD_CHARSET_DATA): New macro.
16856 (emacs_mule_char): New argument ID. Change callers.
16857 (decode_coding_emacs_mule, decode_coding_iso_2022)
16858 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16859 Produce charset annotation data in coding->charbuf.
16860 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16861 to charset annotation data in coding->charbuf.
16862 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16863 coding->common_flags if the coding system is iso-2022 based and
16864 uses designation.
16865 (produce_composition): Adjust for the new annotation data format.
16866 (produce_charset): New function.
16867 (produce_annotation): Handle charset annotation.
16868 (handle_composition_annotation, handle_charset_annotation): New
16869 functions.
16870 (consume_chars): Handle charset annotation. Utilize the above two
16871 functions.
16872 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16873 buffer, get the deleted text as a string and set
16874 coding->src_object to that string.
16875 (detect_coding, detect_coding_system): Use the new struct
16876 coding_detection_info.
16877
16878 * coding.h (struct coding_detection_info): New structure.
16879 (struct coding_system): Adjust prototype of the member `detector'.
16880 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16881
168822008-02-01 Kenichi Handa <handa@m17n.org>
16883
16884 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16885
168862008-02-01 Dave Love <fx@gnu.org>
16887
16888 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16889 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16890 to new local and nullify apropos_accumulate before returning.
16891 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16892
168932008-02-01 Kenichi Handa <handa@m17n.org>
16894
16895 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16896 correctly.
e3eea1fc 16897
aac0c6e3
MR
168982008-02-01 Dave Love <fx@gnu.org>
16899
16900 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16901
169022008-02-01 Kenichi Handa <handa@m17n.org>
16903
16904 The following changes are to make character composition happen
16905 automatically on displaying.
16906
16907 * Makefile.in (lisp, shortlisp): Add composite.elc.
16908
16909 * composite.h (Qauto_composed, Vauto_composition_function)
16910 (Qauto_composition_function): Extern them.
16911
16912 * composite.c (Vcomposition_function_table)
16913 (Qcomposition_function_table): Delete variables.
16914 (Qauto_composed, Vauto_composition_function)
16915 (Qauto_composition_function): New variables.
16916 (run_composition_function): Don't call
16917 compose-chars-after-function.
16918 (update_compositions): Clear `auto-composed' text property.
16919 (compose_chars_in_text): Delete this function.
16920 (syms_of_composite): Staticpro Qauto_composed and
16921 Qauto_composition_function. Declare Vauto_composition_function as
16922 a Lisp variable.
16923
16924 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16925
16926 * xdisp.c (it_props): Add an entry for Qauto_composed.
16927 (handle_auto_composed_prop): New function.
16928
16929 * xselect.c (selection_data_to_lisp_data): Don't call
16930 compose_chars_in_text.
16931
169322008-02-01 Dave Love <fx@gnu.org>
16933
16934 * keyboard.c (read_char): Modify checking around use of
16935 Vkeyboard_translate_table.
16936
16937 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16938 and fix C types.
16939
169402008-02-01 Kenichi Handa <handa@m17n.org>
16941
16942 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16943 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16944 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16945 the case that the last byte is '\r' correctly.
16946 (decode_coding): Flush out the unprocessed data correctly.
16947 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16948
169492008-02-01 Dave Love <fx@gnu.org>
16950
16951 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16952 Add XK_ISO... case.
16953 (xaw_scroll_callback): Revert last change.
16954
169552008-02-01 Kenichi Handa <handa@m17n.org>
16956
16957 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16958
169592008-02-01 Kenichi Handa <handa@m17n.org>
16960
16961 * xfaces.c (Vface_resizing_fonts): New variable.
16962 (struct font_name): New member `resizing_ratio'.
16963 (font_resizing_ratio): New function.
16964 (split_font_name): Set font->resizing_ratio.
16965 (better_font_p): Pay attention to font->resizing_ratio.
16966 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16967 RESX, and RESY fields.
16968 (try_alternative_families): Try scalable fonts if
16969 Vscalable_fonts_allowed is not Qt.
16970 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16971
169722008-02-01 Dave Love <fx@gnu.org>
16973
16974 * xterm.c (xaw_scroll_callback): Cast correctly.
16975
169762008-02-01 Dave Love <fx@gnu.org>
16977
16978 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16979 (lispy_kana_keys): Comment out.
16980 (make_lispy_event) [XK_kana_A]: Comment out.
16981
16982 * xterm.c (xaw_scroll_callback): Cast call_data.
16983 (XTread_socket): Deal with ASCII keysyms.
16984 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16985
169862008-02-01 Dave Love <fx@gnu.org>
16987
16988 * xterm.c (Vx_keysym_table): New.
16989 (syms_of_xterm): Initialize it.
16990 (XTread_socket): Use it.
16991 From head: Eliminate incorrect optimization that tried to avoid
16992 decoding the output of X*LookupString.
16993 (x_get_font_repertory): Delete charset declaration.
16994
169952008-02-01 Kenichi Handa <handa@m17n.org>
16996
16997 * coding.c (detect_coding_charset): If only ASCII bytes are found,
16998 return 0.
16999 (Fdefine_coding_system_internal): Setup
17000 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17001
170022008-02-01 Dave Love <fx@gnu.org>
17003
17004 * coding.c (Fcheck_coding_system): Doc fix.
17005
17006 * editfns.c (Finsert_byte): Return a proper value.
17007
170082008-02-01 Kenichi Handa <handa@m17n.org>
17009
17010 * coding.c (decode_coding): Fix args to translate_chars. Pay
17011 attention to Vstandard_translation_table_for_decode.
17012 (encode_coding): Fix args to translate_chars. Pay attention to
17013 Vstandard_translation_table_for_encode.
17014
17015 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17016 SINGLE_BYTE_CHAR_P.
17017
17018 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17019 not by SINGLE_BYTE_CHAR_P.
17020
17021 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17022 SINGLE_BYTE_CHAR_P.
17023
17024 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17025 SINGLE_BYTE_CHAR_P.
17026
17027 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17028 by SINGLE_BYTE_CHAR_P.
17029
17030 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17031 SINGLE_BYTE_CHAR_P.
17032
170332008-02-01 Dave Love <fx@gnu.org>
17034
17035 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17036
170372008-02-01 Dave Love <fx@gnu.org>
17038
17039 * fns.c (Flanginfo): Fix typo.
17040
17041 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17042
170432008-02-01 Kenichi Handa <handa@m17n.org>
17044
17045 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17046 (detect_coding_emacs_mule, detect_coding_iso_2022)
17047 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17048 incomplete byte sequence. Don't update *mask when correctly detected.
17049 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17050 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17051 (detect_coding, detect_coding_system): Adjust for the changes above.
17052
170532008-02-01 Kenichi Handa <handa@m17n.org>
17054
17055 * character.c (char_string): Rename from
17056 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17057 (string_char): Rename from string_char.
17058
17059 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17060 if C is greater than MAX_3_BYTE_CHAR.
17061 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17062 string_char instead of string_char_with_unification.
17063
170642008-02-01 Dave Love <fx@gnu.org>
17065
17066 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17067
170682008-02-01 Kenichi Handa <handa@m17n.org>
17069
17070 * keymap.c (push_key_description): Pay attention to force_multibyte.
17071
17072 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17073
170742008-02-01 Dave Love <fx@gnu.org>
17075
17076 * charset.c (define_charset_internal): Rename `supprementary'.
17077
17078 * Makefile.in (lisp, shortlisp): Remove latin-N.
17079
170802008-02-01 Dave Love <fx@gnu.org>
17081
17082 * xfns.c (x_window, x_window): Use use_xim.
17083
17084 * xterm.c (use_xim): Initialize.
17085 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17086 (x_term_init): Maybe set use_xim.
17087
17088 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17089
170902008-02-01 Kenichi Handa <handa@m17n.org>
17091
17092 * search.c (search_buffer): Fix case-fold-search of multibyte
17093 characters.
17094 (boyer_moore): Rename the last argument to char_high_bits.
17095
170962008-02-01 Kenichi Handa <handa@m17n.org>
17097
17098 * xdisp.c (display_string): Fix for the case of zero width glyph.
17099
17100 * xfns.c (x_set_font): Change the error message of the case that
17101 x_new_fontset returns Qt.
17102
17103 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17104 (Finternal_set_lisp_face_attribute): Use signal_error for the
17105 error of invalid fontset.
17106
17107 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17108 fontset, return Qt.
17109
171102008-02-01 Dave Love <fx@gnu.org>
17111
17112 * unexelf.c (unexec): Make .got handling not SGI-specific.
17113
17114 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17115
17116 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17117
17118 * keyboard.c (read_key_sequence): Fix type error.
17119
17120 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17121 type error.
17122
17123 * fontset.c (fontset_add): Return Lisp_Object.
17124
171252008-02-01 Dave Love <fx@gnu.org>
17126
17127 * charset.h (charset_ordered_list_tick): Declare extern.
17128
171292008-02-01 Kenichi Handa <handa@m17n.org>
17130
17131 The following changes (and some of 2008-02-01 changes of mine) are
17132 for handling syntax, category, and case conversion for unibyte
17133 characters by converting them to multibyte on the fly. With these
17134 changes, we don't have to setup syntax and case tables for unibyte
17135 characters in each language environment.
17136
17137 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17138 multibyte if necessary.
17139
17140 * bytecode.c (Fbyte_code): Likewise.
17141
17142 * character.h (LEADING_CODE_LATIN_1_MIN)
17143 (LEADING_CODE_LATIN_1_MAX): New macros.
17144 (unibyte_to_multibyte_table): Extern it.
17145 (unibyte_char_to_multibyte): New macro.
17146 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17147 (CHAR_LEADING_CODE): New macro.
17148 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17149
17150 * character.c (unibyte_to_multibyte_table): New variable.
17151 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17152 (multibyte_char_to_unibyte): If C is an eight-bit character,
17153 convert it to the corresponding byte value.
17154
17155 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17156 not 1, signals an error. Update the elements of
17157 unibyte_to_multibyte_table.
17158 (init_charset_once): Initialize unibyte_to_multibyte_table.
17159 (syms_of_charset): Define the charset `iso-8859-1'.
17160
17161 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17162 as is without converting it to unibyte. In a unibyte buffer,
17163 convert C to multibyte before checking the syntax.
17164
17165 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17166
17167 * minibuf.c (Fminibuffer_complete_word): Use the macro
17168 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17169
17170 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17171
17172 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17173 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17174 that is zero, convert an eight-bit char to multibyte.
17175 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17176 non-emacs case.
17177 (PATFETCH): Convert an eight-bit char to multibyte.
17178 (HANDLE_UNIBYTE_RANGE): New macro.
17179 (regex_compile): Setup the compiled pattern for multibyte chars
17180 even if the given regex string is unibyte. Use PATFETCH_RAW
17181 instead of PATFETCH in many places. To handle `charset'
17182 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17183 only for ASCII chars.
17184 (analyse_first) <exactn>: Simplify because the compiled pattern
17185 is multibyte.
17186 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17187 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17188 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17189 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17190 multibyte always 1.
17191 (re_search_2): In emacs, set the locale variable multibyte to 1,
17192 otherwise to 0. New local variable target_multibyte. Check it
17193 to decide the multibyteness of STR1 and STR2. If
17194 target_multibyte is zero, convert unibyte chars to multibyte
17195 before translating and checking fastmap.
17196 (TARGET_CHAR_AND_LENGTH): New macro.
17197 (re_match_2_internal): In emacs, set the locale variable multibyte
17198 to 1, otherwise to 0. New local variable target_multibyte. Check
17199 it to decide the multibyteness of STR1 and STR2. Use
17200 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17201 <charset, charset_not>: If multibyte is nonzero, check fastmap
17202 only for ASCII chars. Call bcmp_translate with
17203 target_multibyte, not with multibyte.
17204 <begline>: Declare the local variable C as `unsigned'.
17205 (bcmp_translate): Change the last arg name to target_multibyte.
17206
17207 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17208 the regexp pattern and the matching target. Set cp->buf.multibyte
17209 to the multibyteness of the regexp pattern. Set
17210 cp->but.target_multibyte to the multibyteness of the matching target.
17211 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17212 FETCH_STRING_CHAR_ADVANCE.
17213 (Freplace_match): Convert unibyte chars to multibyte.
17214
17215 * syntax.c (char_quoted, back_comment, scan_words)
17216 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17217 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17218 unibyte chars to multibyte.
17219 (skip_chars): Delete the arg syntaxp, and move the code for
17220 handling syntaxes to skip_syntaxes. Change callers.
17221 Fix the case that the multibyteness of STRING and the current
17222 buffer doesn't match.
17223 (skip_syntaxes): New function.
17224 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17225 SINGLE_BYTE_CHAR_P.
17226
172272008-02-01 Kenichi Handa <handa@m17n.org>
17228
17229 * xfaces.c (QCfontset): New variable.
17230 (LFACE_FONTSET): New macro.
17231 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17232 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17233 (Finternal_set_lisp_face_attribute)
17234 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17235 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17236 check also LFACE_FONTSET_INDEX.
17237 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17238 attrs[LFACE_FONT_INDEX].
17239 (syms_of_xfaces): Intern and staticpro QCfontset.
17240
17241 * dispextern.h (enum lface_attribute_index): New member
17242 LFACE_FONTSET_INDEX.
17243
17244 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17245
172462008-02-01 Kenichi Handa <handa@m17n.org>
17247
17248 * coding.c (coding_set_destination): Fix coding->destination for
17249 the case converting a region.
17250 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17251 (encode_coding_object): Fix coding->dst_pos and
17252 coding->dst_pos_byte for the case converting a region.
17253
17254 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17255
17256 * character.h (BYTE8_STRING): New macro.
17257
17258 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17259
172602008-02-01 Kenichi Handa <handa@m17n.org>
17261
17262 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17263 characters by octal form.
17264
17265 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17266
17267 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17268 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17269 _fetch_multibyte_char_len.
17270 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17271
17272 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17273
17274 * casefiddle.c (casify_object): Simplify. Handle the case that
17275 the case conversion change the byte length.
17276 (casify_region): Likewise.
17277
17278 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17279
17280 * character.c (_fetch_multibyte_char_len): Delete this variable.
17281 (syms_of_character): Setup Vprintable_chars.
17282
17283 * editfns.c (Fchar_equal): Fix for the unibyte case.
17284 (Finsert_byte): New function.
17285 (syms_of_editfns): Defsubr it.
17286
17287 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17288 of direct code 0x3ffff.
17289
17290 * search.c (Freplace_match): Fix for the unibyte case.
17291
172922008-02-01 Kenichi Handa <handa@m17n.org>
17293
17294 * lread.c (safe_to_load_p): Fix the logic.
17295
17296 * syntax.c (scan_words): Don't treat characters belonging to
17297 different scripts as constituting a word.
17298
17299 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17300
17301 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17302
17303 * emacs.c (main): In the case of --unibyte, instead of aborting on
17304 finding non-empty buffer, make it unibyte.
17305
173062008-02-01 Kenichi Handa <handa@m17n.org>
17307
17308 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17309 to create a fontset.
17310
173112008-02-01 Dave Love <fx@gnu.org>
17312
17313 * character.c (Funibyte_char_to_multibyte): Doc fix.
17314
17315 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17316
173172008-02-01 Kenichi Handa <handa@m17n.org>
17318
17319 * fontset.c (fontset_add): Make the type `int'.
17320 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17321
17322 * character.c (unibyte_char_to_multibyte)
17323 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17324 charset_unibyte, not charset_primary.
17325
17326 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17327
17328 * charset.c (charset_unibyte): Rename from charset_primary.
17329 (Funibyte_charset): Rename from Fprimary_charset.
17330 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17331 (syms_of_charset): Adjust for the above changes.
17332
17333 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17334 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17335 it->multibyte_p is zero.
17336
17337 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17338 Delete extern.
17339
173402008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * coding.c (Fdefine_coding_system_internal): Fix category setting
17343 for a coding system of type iso-2022.
17344
173452008-02-01 Kenichi Handa <handa@m17n.org>
17346
17347 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17348
173492008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * syntax.c (Vnext_word_boundary_function_table): New variable.
17352 (next-word-boundary-function-table): Declare it as a Lisp variable
17353 in syms_of_syntax.
17354 (scan_words): Call functions in Vnext_word_boundary_function_table
17355 if any.
17356
17357 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17358
17359 * fontset.c (fs_load_font): If fontp->charset is not negative,
17360 return fontp without setting its members.
17361
173622008-02-01 Dave Love <fx@gnu.org>
17363
17364 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17365
17366 * m/sparc.h (HAVE_ALLOCA): Delete.
17367
17368 * s/irix6-5.h: Don't include strings.h.
17369 (bcopy, bzero, bcmp): Don't undef.
17370
17371 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17372
17373 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17374 (TIOCSIGSEND): Don't test IRIX6.
17375 (bcopy, bzero, bcmp): Define conditionally.
17376
173772008-02-01 Kenichi Handa <handa@m17n.org>
17378
17379 * buffer.c (Qas, Qmake, Qto): New variables.
17380 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17381 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17382
17383 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17384 we are inserting a process output into a multibyte buffer.
17385
17386 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17387 multibyte_char_to_unibyte.
17388
17389 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17390 by the primary charset, make it eight-bit char.
17391 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17392
17393 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17394 (charset_8_bit__control, charset_8_bit_graphic)
17395 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17396 (define_charset_internal): New function.
17397 (syms_of_charset): Call define_charset_internal for pre-defined
17398 charsets.
17399
17400 * charset.h (charset_8_bit): Extern it.
17401
17402 * coding.c (make_conversion_work_buffer): Adjust for the change
17403 of Fset_buffer_multibyte.
17404 (encode_coding_raw_text): Increment p0 in the loop.
17405
17406 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17407
17408 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17409 for the change of Fset_buffer_multibyte.
17410
17411 * fns.c (Fstring_to_multibyte): New function.
17412 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17413
174142008-02-01 Dave Love <fx@gnu.org>
17415
17416 * xfns.c (x_put_x_image): Declare args.
17417
17418 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17419 (try_font_list): Declare an arg.
17420
17421 * xdisp.c (message2_nolog, set_message): Declare an arg.
17422
17423 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17424
17425 * syntax.c (scan_sexps_forward): Declare an arg.
17426
17427 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17428 Declare an arg.
17429
17430 * lisp.h (Fnew_fontset): Declare.
17431
17432 * keymap.c (push_key_description): Call CHARACTERP correctly.
17433
17434 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17435 (face_for_char): Delete unused vars.
17436 (Fset_fontset_font): Doc fix. Delete unused vars.
17437
17438 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17439
17440 * composite.c (update_compositions): Declare arg.
17441
17442 * cm.c (calccost, cmgoto): Declare args.
17443
17444 * charset.c: Remove `emacs' conditional. Doc fixes.
17445 (map_char_table_for_charset): Declare.
17446
17447 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17448
17449 * ccl.c: Remove `emacs' conditional.
17450
174512008-02-01 Kenichi Handa <handa@m17n.org>
17452
17453 The following changes are to allow specifying multiple font
17454 patterns for a character range (specified by script or charset).
17455
17456 * Makefile.in (abbrev.o): Depend on syntax.h.
17457 (xfaces.o): Depend on charset.h.
17458
17459 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17460 SINGLE_BYTE_CHAR_P.
17461
17462 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17463
17464 * character.h (Vchar_script_table): Extern it.
17465
17466 * character.c (Vscript_alist): Delete.
17467 (Vchar_script_table, Qchar_script_table): New variable.
17468 (syms_of_character): Declare Vchar_script_table as a lisp variable
17469 and initialize it.
17470
17471 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17472 have property char-table-extra-slots, make no extra slot.
17473
17474 * dispextern.h (struct face): Delete member `charset'.
17475 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17476 SINGLE_BYTE_CHAR_P.
17477 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17478 Add prototypes.
17479 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17480 (generate_ascii_font_name): Rename from generate_ascii_font.
17481
17482 * fontset.h (get_font_repertory_func): New prototype.
17483 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17484 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17485
17486 * fontset.c (Qprepend, Qappend): New variables.
17487 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17488 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17489 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17490 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17491 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17492 (load_font_get_repertory): New functions.
17493 (fontset_set): Delete.
17494 (fontset_face): New arg FACE. Return face ID, not face.
17495 Complete re-write to handle new fontset structure. Change caller.
17496 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17497 (face_for_char): Don't call lookup_face.
17498 (make_fontset_for_ascii_face): New arg FACE.
17499 (fs_load_font): New arg CHARSET_ID. Don't check
17500 Vfont_encoding_alist here.
17501 (find_font_encoding): New function.
17502 (list_fontsets): Use STRINGP, not ! NILP.
17503 (accumulate_script_ranges): New function.
17504 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17505 re-written to handle new fontset structure.
17506 (Ffontset_font): Return a copy of element.
17507 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17508 docstring of font-encoding-alist.
17509
17510 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17511 (Fset_fotset_font): Fix arguments to 5.
17512
17513 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17514
17515 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17516 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17517 (highlight_trailing_whitespace): Adjust for the change of
17518 lookup_named_face.
17519
17520 * xfaces.c: Include charset.h.
17521 (load_face_font): Delete argument C. Change caller.
17522 (generate_ascii_font_name): Rename from generate_ascii_font.
17523 (font_name_registry): New function.
17524 (cache_face): Store ascii faces before non-ascii faces in buckets.
17525 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17526 Lookup only ascii faces.
17527 (lookup_non_ascii_face): New function.
17528 (lookup_named_face): Delete argument C. Change caller.
17529 (lookup_derived_face): Delete argument C. Change caller.
17530 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17531 a string, just call font_list with it.
17532 (choose_face_font): Delete arguments FACE and C. New arg
17533 FONT_SPEC. Change caller.
17534 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17535 Change caller.
17536 (realize_non_ascii_face): New function.
17537 (realize_x_face): Call load_face_font here.
17538 (realize_tty_face): Delete argument C. Change caller.
17539 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17540 get a face ID.
17541 (dump_realized_face): Don't print charset of FACE.
17542
17543 * xfns.c (x_set_font): Always call x_new_fontset and
17544 store_frame_parameter.
17545 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17546 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17547
17548 * xterm.h (x_get_font_repertory): Extern it.
17549
17550 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17551 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17552 it->multibyte_p is zero.
17553 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17554 (x_new_fontset): If FONTSETNAME doesn't match any existing
17555 fontsets, create a new one.
17556 (x_get_font_repertory): New function.
17557
175582008-02-01 Kenichi Handa <handa@m17n.org>
17559
17560 * coding.c (Ffind_coding_systems_region_internal): Detect an
17561 ASCII only string correctly.
17562
17563 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17564 version is 0.
17565
175662008-02-01 Kenichi Handa <handa@m17n.org>
17567
17568 * lread.c: Include "coding.h".
17569 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17570 (load_each_byte, unread_char): New variables.
17571 (readchar_backlog): Delete.
17572 (readchar): Return a character unless load_each_byte is nonzero.
17573 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17574 cons. If unread_char is not -1, simply return it.
17575 (unreadchar): Handle the case that readcharfun is
17576 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17577 (read_multibyte): Delete.
17578 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17579 (read_emacs_mule_char): New functions.
17580 (Fload): Even if the file doesn't have the extension ".elc", if
17581 safe_to_load_p returns a positive version number, assume that the
17582 file contains bytecompiled code. If the version is less than 22,
17583 load the file while decoding multibyte sequences by emacs-mule.
17584 (readevalloop): Don't use readchar_backlog.
17585 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17586 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17587 (read_escape): Delete the arg BYTEREP.
17588 (read1): Set load_each_byte to 1 temporarily while handling
17589 #@NUMBER. Don't call read_multibyte.
17590 (read_vector): Call Fread with a cons. If readcharfun is
17591 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17592 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17593 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17594 and Qload_force_doc_strings.
17595
175962008-02-01 Kenichi Handa <handa@m17n.org>
17597
17598 * xdisp.c (face_before_or_after_it_pos): Call
17599 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17600
176012008-02-01 Kenichi Handa <handa@m17n.org>
17602
17603 * character.h (TRAILING_CODE_P): New macro.
17604 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17605 (string_char_with_unification): Fix prototype.
17606 (Vscript_alist): Extern it.
17607
17608 * character.c (Vscript_alist): New variable.
17609 (string_char_with_unification, str_as_unibyte)
17610 (string_escape_byte8): Add `const' to local variables.
17611 (syms_of_character): Declare script-alist as a Lisp variable.
17612
17613 * charset.h (Vcharset_ordered_list): Extern it.
17614 (charset_ordered_list_tick): Extern it.
17615 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17616 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17617 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17618 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17619 (Funify_charset): Adjust for the change of Funify_charset.
17620
17621 * charset.c (charset_ordered_list_tick): New variable.
17622 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17623 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17624 deunify intead of unify a charset.
17625 (string_xstring_p): Add `const' to local variables.
17626 (find_charsets_in_text): Add `const' to arguments and local variables.
17627 (encode_char): Adjust for the change of Funify_charset. Fix
17628 detecting of invalid code.
17629 (Fset_charset_priority): Increment charset_ordered_list_tick.
17630 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17631 and TO_CODE.
17632
17633 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17634 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17635 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17636 (decode_coding_ccl, consume_chars)
17637 (Ffind_coding_systems_region_internal)
17638 (Fcheck_coding_systems_region): Add `const' to local variables.
17639
17640 * print.c (print_object): Use octal form for printing the
17641 contents of a bool vector.
17642
176432008-02-01 Dave Love <fx@gnu.org>
17644
17645 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17646 <version == 20>: Refuse to load.
17647
176482008-02-01 Dave Love <fx@gnu.org>
17649
17650 * fns.c: Move coding.h.
17651 (Qcodeset, Qdays, Qmonths): New.
17652 (concat): Use CHARACTERP instead of INTEGERP.
17653 (Flocale_codeset): Delete.
17654 (Flanginfo): New function.
17655 (syms_of_fns): Change accordingly.
17656
17657 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17658
176592008-02-01 Dave Love <fx@gnu.org>
17660
17661 * casetab.c (init_casetab_once, init_casetab_once): Fix
17662 CHAR_TABLE_SET call.
17663
17664 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17665
17666 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17667
17668 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17669 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17670 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17671
17672 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17673
17674 * coding.c (ENCODE_DESIGNATION, decode_eol)
17675 (make_conversion_work_buffer, code_conversion_restore)
17676 (Fdefine_coding_system_internal): Convert Lisp types.
17677 (code_conversion_restore): Use EQ, not ==.
17678 (Fencode_coding_string): Fix code_convert_string call.
17679
17680 * coding.h (code_convert_region): Fix prototype.
17681
17682 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17683
17684 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17685 (Ffontset_info): Convert Lisp types.
17686
17687 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17688
17689 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17690
17691 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17692
17693 * chartab.c: Include "...h", not <...h> in some cases.
17694
17695 * callproc.c (Fcall_process): Remove unused variables.
17696
176972008-02-01 Dave Love <fx@gnu.org>
17698
17699 * coding.c (Fset_coding_system_priority): Allow null arg list.
17700
177012008-02-01 Dave Love <fx@gnu.org>
17702
17703 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17704 (Fself_insert_and_exit): Use CHARACTERP.
17705
17706 * callproc.c (Fcall_process): Remove unused vars.
17707
17708 * xterm.c (XTread_socket): Add extra dead keysyms.
17709
17710 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17711
17712 * dispextern.h: Remove prototypes for redraw_frame,
17713 redraw_garbaged_frames.
17714
17715 * cmds.c (Fself_insert_command): Use CHARACTERP.
17716
17717 * chartab.c (make_sub_char_table): Remove unused var.
17718 (Fset_char_table_default, Fmap_char_table): Doc fix.
17719
17720 * keymap.c (access_keymap): Remove generic char code.
17721 (push_key_description): Use CHARACTERP.
17722
177232008-02-01 Dave Love <fx@gnu.org>
17724
17725 * charset.c: Doc fixes.
17726 (Funify_charset): Extra checking.
17727
177282008-02-01 Dave Love <fx@gnu.org>
17729
17730 * lread.c: Remove some unused variables.
17731 (safe_to_load_p): If safe, return the magic number version byte.
17732 (Fload): Maybe use load-with-code-conversion.
17733
177342008-02-01 Kenichi Handa <handa@m17n.org>
17735
17736 * category.c (Fmodify_category_entry): Don't modify the contents
17737 of category_set for characters out of the range. Avoid
17738 unnecessary modification.
17739
17740 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17741 Vchar_unify_table. The default value of the table is now nil.
17742
17743 * character.c (syms_of_character): Setup Vchar_width_table for
17744 eight-bit-control and raw-byte chars.
17745
17746 * charset.h (enum define_charset_arg_index): Delete
17747 charset_arg_parents and add charset_arg_subset and
17748 charset_arg_superset.
17749 (enum charset_attr_index): Delete charset_parents and add
17750 charset_subset and charset_superset.
17751 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17752 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17753 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17754 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17755 (CHARSET_SUPERSET): New macros.
17756 (charset_work): Extern it.
17757 (ENCODE_CHAR): Use charset_work.
17758 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17759 (map_charset_chars): Extern it.
17760
17761 * charset.c (load_charset_map): Set the default value of encoder
17762 and deunifier char-tables to nil.
17763 (map_charset_chars): Change argument. Change callers. Use
17764 map_char_table_for_charset instead of map_char_table.
17765 (Fmap_charset_chars): New optional args from_code and to_code.
17766 (Fdefine_charset_internal): Adjust for the change of
17767 `define-charset' (:parents -> :subset or :superset).
17768 (charset_work): New variable.
17769 (encode_char, syms_of_charset): Adjust for the change of
17770 Fdefine_charset_internal.
17771 (Ffind_charset_string): Setup the vector `charsets' correctly.
17772
17773 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17774 the previous change.
17775 (char_table_ref_and_range): Adjust for the above change.
17776 (map_sub_char_table_for_charset): New function.
17777 (map_char_table_for_charset): New function.
17778
17779 * keymap.c (describe_vector): Handle a char-table directly here.
17780 (describe_char_table): Delete.
17781
17782 * lisp.h (map_charset_chars): Delete.
17783
177842008-02-01 Dave Love <fx@gnu.org>
17785
17786 * fns.c (count_combining): Comment out (unused).
17787 (Flocale_codeset): New.
17788 (syms_of_fns): Defsubr it.
17789
17790 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17791 (size_t): Remove.
17792
177932008-02-01 Dave Love <fx@gnu.org>
17794
17795 * Makefile.in (chartab.o): Depend on charset.h.
17796
177972008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 * character.c (syms_of_character): Set the default value of
17800 Vprintable_chars to Qnil.
17801
178022008-02-01 Dave Love <fx@gnu.org>
17803
17804 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17805
178062008-02-01 Kenichi Handa <handa@m17n.org>
17807
17808 * charset.c (load_charset_map): Handle the case that from < to
17809 correctly.
17810
17811 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17812 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17813 Pay attention to raw-8-bit chars.
17814
178152008-02-01 Kenichi Handa <handa@m17n.org>
17816
17817 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17818 It is not bytecompiled now.
17819
17820 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17821 (charset_jisx0208): New variables.
17822 (Fdefine_charset_internal): Setup them if appropriate.
17823 (init_charset_once): Initialize them to -1.
17824
17825 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17826 (charset_jisx0208): Extern them.
17827
17828 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17829 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17830 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17831 (setup_iso_safe_charsets): Fix arguments to Fassq.
17832 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17833 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17834 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17835 (encode_coding_iso_2022): Change the 1st arg to
17836 ENCODE_ISO_CHARACTER to a variable.
17837
178382008-02-01 Kenichi Handa <handa@m17n.org>
17839
17840 * charset.h (enum define_charset_arg_index): New enums
17841 charset_arg_min_code and charset_arg_max_code.
17842 (struct charset): New member char_index_offset.
17843
17844 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17845 Take charset->char_index_offset into account.
17846 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17847 args[charset_arg_max_code]. Setup charset.char_index_offset.
17848 (syms_of_charset): Fix args to Fdefine_charset_internal.
17849
178502008-02-01 Dave Love <fx@gnu.org>
17851
17852 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17853
178542008-02-01 Dave Love <fx@gnu.org>
17855
17856 * coding.c: Doc fixes.
17857 (Fcoding_system_aliases): Fix return value.
17858 (Qmac): Remove (duplicated) definition.
17859
178602008-02-01 Dave Love <fx@gnu.org>
17861
362654a6
JB
17862 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17863 New functions.
aac0c6e3
MR
17864
17865 * character.c (Fstring): Doc fix.
17866
17867 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17868
362654a6 17869 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
17870 (font-encoding-alist): Doc fix.
17871
178722008-02-01 Dave Love <fx@gnu.org>
17873
17874 * term.c (costs_set): Declare static, non-initialized for pcc.
17875 (encode_terminal_code): Remove unused var.
17876
17877 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17878 for K&R.
17879
17880 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17881
17882 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17883 (suffixes): Move out of make_subsidiaries for K&R.
17884
17885 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17886
17887 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17888
178892008-02-01 Dave Love <fx@gnu.org>
17890
17891 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17892
17893 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17894
178952008-02-01 Yong Lu <lyongu@asia-infonet.com>
17896
17897 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17898
17899 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17900
179012008-02-01 Kenichi Handa <handa@m17n.org>
17902
17903 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17904 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17905
179062008-02-01 Kenichi Handa <handa@m17n.org>
17907
17908 * coding.c (decode_coding_charset): Adjust for the change of
17909 Fdefine_coding_system_internal.
17910 (Fdefine_coding_system_internal): For a coding system of
17911 `charset' type, store a list of charset IDs in
17912 `charset_attr_charset_valids' element of coding attributes.
17913
179142008-02-01 Kenichi Handa <handa@m17n.org>
17915
17916 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17917 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17918 caller. Handle 2-byte and 3-byte charsets correctly.
17919 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17920 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17921 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17922 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17923 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17924 sequence.
17925 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17926 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17927 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17928 and alt&rule composition.
17929 (decode_coding_iso_2022): Handle composition correctly.
17930 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17931
17932 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17933 re-defining a charset. If the charset has :emacs-mule-id, setup
17934 emacs_mule_bytes.
17935 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17936
179372008-02-01 Kenichi Handa <handa@m17n.org>
17938
17939 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17940 (encode_coding_big5, encode_coding_charset): If coding requires safe
17941 encoding, produce a character specified by
17942 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17943
179442008-02-01 Dave Love <fx@gnu.org>
17945
17946 * xterm.c (XSetIMValues): Declare.
17947
17948 * process.c: Conditionally include sys/wait.h, pty.h.
17949
17950 * print.c (print_object): Fix print format for 64-bit systems.
17951
17952 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17953
17954 * buffer.c (emacs_strerror): Declare.
17955
17956 * fontset.c (Fclear_face_cache): Declare.
17957 (accumulate_font_info): Comment-out (unused).
17958 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17959 variables.
17960
17961 * character.h (string_escape_byte8): Declare.
17962
17963 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17964 unused vars.
17965 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17966 (Fmap_charset_chars): Doc fix.
17967
17968 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17969 (Fset_coding_system_priority, Fset_coding_system_priority)
17970 (Fdefine_coding_system_internal): Doc fix.
17971
179722008-02-01 Dave Love <fx@gnu.org>
17973
17974 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * character.c (string_escape_byte8): Make multibyte string with
17979 correct size.
17980
17981 * charset.c (Fmake_char): Delete unnecessary code.
17982
179832008-02-01 Kenichi Handa <handa@m17n.org>
17984
17985 * xfns.c (x_encode_text): Allocate coding.destination here, and
17986 call encode_coding_object with dst_object Qnil.
17987
17988 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17989 multibyte form correctly.
17990
17991 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
17992 against Vfont_encoding_alist.
17993
17994 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
17995 handling of charset list.
17996 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
17997 (decode_coding_object): Move point to coding->dst_pos before
17998 calling post-read-conversion function.
17999 (encode_coding_object): Give correct arguments to
18000 pre-write-conversion. Ignore the return value of
18001 pre-write-conversion function. Pay attention to the case that
18002 pre-write-conversion changes the current buffer. If dst_object is
18003 Qt, even if coding->src_bytes is zero, allocate at least one byte
18004 to coding->destination.
18005
18006 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18007
18008 * charset.c (Fmake_char): Make it more backward compatible.
18009 (Fmap_charset_chars): Fix docstring.
18010
180112008-02-01 Dave Love <fx@gnu.org>
18012
18013 * coding.c: Doc fixes.
18014 (Fdefine_coding_system_alias): Use names, not symbols, in
18015 coding-system-alist.
18016
180172008-02-01 Kenichi Handa <handa@m17n.org>
18018
18019 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18020 of calling free_realized_face.
18021
180222008-02-01 Yong Lu <lyongu@asia-infonet.com>
18023
18024 * charset.c (read_hex): Don't treat SPC as a comment starter.
18025 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18026 (Fdecode_char): Fix typo.
18027
180282008-02-01 Kenichi Handa <handa@m17n.org>
18029
18030 * charset.h (struct charset): New member `code_space_mask'.
18031
18032 * coding.c (coding_set_source): Delete the local variable beg_byte.
18033 (encode_coding_charset, Fdefine_coding_system_internal):
18034 Delete the local variable charset.
18035 (Fdefine_coding_system_internal): Setup
18036 attrs[coding_attr_charset_valids] correctly.
18037
18038 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18039 member to check if CODE is valid or not.
18040 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18041 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18042 is within the range of charset->min_code and carset->max_code.
18043
180442008-02-01 Dave Love <fx@gnu.org>
18045
18046 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18047
18048 * dispextern.h (generate_ascii_font): Fix return type.
18049
18050 * xfaces.c (generate_ascii_font): Fix arg declaration.
18051
18052 * coding.c (coding_inherit_eol_type)
18053 (Fset_terminal_coding_system_internal)
18054 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18055
180562008-02-01 Kenichi Handa <handa@m17n.org>
18057
18058 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18059 multiple charsets correctly.
18060
180612008-02-01 Kenichi Handa <handa@m17n.org>
18062
18063 * search.c (boyer_moore): Fix handling of multibyte character
18064 translation.
18065
18066 * xdisp.c (display_mode_element): When the variable `elt' is
18067 changed, update `this' and `lisp_string'.
18068
180692008-02-01 Kenichi Handa <handa@m17n.org>
18070
18071 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18072
18073 * callproc.c (Fcall_process): Be sure to give the current buffer
18074 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18075
18076 * charset.c (struct charset_map_entries): New struct.
18077 (load_charset_map): Rename from parse_charset_map. New args
18078 entries and n_entries. Change caller.
18079 (load_charset_map_from_file): Rename from load_charset_map.
18080 Change caller. New arg control_flag. Call load_charset_map at
18081 the tail.
18082 (load_charset_map_from_vector): New function.
18083 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18084 (encode_char): If the charset is compact, change a character index
18085 to a code point.
18086
18087 * coding.c (coding_alloc_by_making_gap): Check the case that the
18088 source and destination are the same correctly.
18089 (decode_coding_raw_text): Set coding->consumed_char and
18090 coding->consumed to 0.
18091 (produce_chars): If coding->chars_at_source is nonzero, update
18092 coding->consumed_char and coding->consumed before calling
18093 alloc_destination.
18094 (Fdefine_coding_system_alias): Register ALIAS in
18095 Vcoding_system_alist.
18096 (syms_of_coding): Define `no-conversion' coding system at the tail.
18097
18098 * fileio.c (Finsert_file_contents): Set coding_system instead of
18099 val. If the current buffer is multibyte, always call
18100 decode_coding_gap.
18101
18102 * xfaces.c (try_font_list): Give higher priority to fontset's
18103 family than face's family.
18104
181052008-02-01 Kenichi Handa <handa@m17n.org>
18106
18107 * callproc.c (Fcall_process): Be sure to give the current buffer
18108 to decode_coding_c_string.
18109
18110 * xfaces.c (try_font_list): Give a family specified in a fontset
18111 higher priority than a family specified in a face.
18112
181132008-02-01 Kenichi Handa <handa@m17n.org>
18114
18115 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18116 Fix arguments to insert_from_buffer.
18117
18118 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18119
181202008-02-01 Kenichi Handa <handa@m17n.org>
18121
18122 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18123 (decode_coding_gap): Set coding->dst_multibyte correctly.
18124
181252008-02-01 Kenichi Handa <handa@m17n.org>
18126
18127 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18128 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18129 (encode_coding_utf_16): Substitute coding->default_char for
18130 non-Unicode characters.
18131 (decode_coding): Don't call record_insert here.
18132 (setup_coding_system): Initialize `surrogate' of
18133 coding->spec.utf_16 to 0.
18134 (EMIT_ONE_BYTE): Fix for multibyte case.
18135
18136 * insdel.c (insert_from_gap): Call record_insert.
18137
181382008-02-01 Kenichi Handa <handa@m17n.org>
18139
18140 * casefiddle.c (casify_region): Fix multibyte case.
18141
18142 * character.c (c_string_width): Add return type `int'.
18143 (char_string_with_unification): Delete arg ADVANCED.
18144
18145 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18146 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18147 (CHAR_STRING_ADVANCE): Make it do-while statement.
18148
18149 * chartab.c (sub_char_table_set_range): Optimize for the case
18150 DEPTH == 3. Add workaround code for a GCC optimization bug.
18151
18152 * charset.c (parse_charset_map): Remove an unused variable.
18153
18154 * coding.c: Delete unused variables.
18155
18156 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18157 earlier. If inserted is zero and the coding system doesn't
18158 require flushing, don't call decode_coding_gap.
18159
18160 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18161
181622008-02-01 Kenichi Handa <handa@m17n.org>
18163
18164 The following changes are for using Unicode as an internal
18165 character model, and use UTF-8 format for buffer/string
18166 representation.
18167
18168 * .gdbinit (xchartable): Adjust for the change of char table structure.
18169 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18170
18171 * Makefile.in (obj): Add character.o and chartab.o.
18172 (lisp, shortlisp): Remove utf-8.elc.
18173 (*.o): For many files, change dependency on charset.h to
18174 character.h, and add dependency on character.h.
18175 (character.o, chartab.o): New targets.
18176
18177 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18178 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18179 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18180 of "charset.h".
18181
18182 * dired.c, filelock.c: Include "character.h".
18183
18184 * alloc.c: Include "character.h" instead of "charset.h".
18185 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18186 (syms_of_alloc): Remove defsubr for Smake_char_table.
18187
18188 * buffer.c: Include "character.h" instead of "charset.h", don't
18189 include "coding.h".
18190 (Fset_buffer_multibyte): Adjust for UTF-8.
18191
18192 * buffer.h: EXFUN Fbuffer_live_p.
18193
18194 * callproc.c: Include "character.h" instead of "charset.h".
18195 (Fcall_process): Big change for the new code-conversion APIs.
18196
18197 * casetab.c: Include "character.h" instead of "charset.h".
18198 (set_canon, set_identity, shuffle): Adjust for the new
18199 map_char_table spec.
18200 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18201 accessing the char table structure.
18202
18203 * chartab.c: New file that implements char table.
18204
18205 * category.c: Include "character.h".
18206 (copy_category_entry): New function.
18207 (copy_category_table): Call map_char_table and copy_category_entry.
18208 (Fmake_category_table): Initialize all top-level slots.
18209 (char_category_set): New function.
18210 (modify_lower_category_set): Delete.
18211 (Fmodify_category_entry): Call char_table_ref_and_range.
18212
18213 * category.h (CATEGORY_SET): Just call char_category_set.
18214
18215 * ccl.c: Include "character.h".
18216 (Qccl, Qcclp): New variables.
18217 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18218 it's less than 256.
18219 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18220 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18221 and DST type.
18222 (ccl_driver): Change types of argument, adjust code accordingly.
18223 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18224 ccl_driver.
18225 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18226
18227 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18228 New members src_multibyte, dst_multibyte, consumed, and produced.
18229 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18230 (CODING_SPEC_CCL_PROGRAM): New macro.
18231 (ccl_driver): Update prototype.
18232 (Qccl, Qcclp, Fccl_program_p): Extern them.
18233 (CHECK_CCL_PROGRAM): New macro.
18234
18235 * character.c, character.h, chartab.c: New files.
18236
18237 * charset.c: Mostly re-written. Move character and multibyte sequence
18238 handling codes to character.c.
18239
18240 * charset.h: Mostly re-written. Move character and multibyte sequence
18241 handling codes to character.h.
18242
18243 * coding.c, coding.h: Mostly re-written.
18244
18245 * composite.c: Include "character.h" instead of "charset.h".
18246 (CHAR_WIDTH): Move to character.h.
18247 (HASH_KEY, HASH_VALUE): Delete.
18248
18249 * composite.h (enum composition_method): Change order of enumeration
18250 symbols.
18251
18252 * data.c: Include "character.h" instead of "charset.h".
18253 (Faref): Call CHAR_TABLE_REF for a char table.
18254 (Faset): Call CHAR_TABLE_SET for a char table.
18255
18256 * dispextern.h (free_realized_face, check_face_attribytes)
18257 (generate_ascii_font): Extern them.
18258 (free_realized_multibyte_face): Delete extern.
18259
18260 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18261 table structure.
18262
18263 * editfns.c: Include "character.h" instead of "charset.h".
18264 (Fchar_to_string): Always call CHAR_STRING.
18265
18266 * emacs.c (main): Call init_charset_once, init_charset,
18267 syms_of_chartab, and syms_of_character.
18268
18269 * fileio.c: Include "character.h" instead of "charset.h".
18270 (Finsert_file_contents): Big change for the new code-conversion API.
18271 (choose_write_coding_system, Fwrite_region): Likewise.
18272 (build_annotations_2): Delete.
18273 (e_write): Big change for the new code-conversion API.
18274
18275 * fns.c: Include "character.h" instead of "charset.h".
18276 (copy_sub_char_table): Move to chartab.c.
18277 (Fcopy_sequence): Call copy_char_table for a char table.
18278 (concat): Delete codes calling count_multibyte.
18279 (string_char_to_byte, string_byte_to_char): Adjust for the new
18280 multibyte form.
18281 (internal_equal): Adjust for the change of char table structure.
18282 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18283 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18284 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18285 (char_table_translate, optimize_sub_char_table)
18286 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18287 chartab.c.
18288 (char_table_ref_and_index): Delete.
18289 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18290 (Fmd5): Call preferred_coding_system instead of accessing
18291 Vcoding_category_list. Adjust for the new code-conversion API.
18292 (syms_of_fns): Move defsubr for char table related functions to
18293 chartab.c.
18294
18295 * fontset.c: Mostly re-written.
18296
18297 * fontset.h (struct font_info): Change type of the member encoding_type.
18298 (enum FONT_SPEC_INDEX): New enum.
18299 (fontset_font_pattern, fs_load_font): Update prototype.
18300 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18301
18302 * indent.c: Include "character.h" instead of "charset.h".
18303 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18304
18305 * insdel.c: Include "character.h" instead of "charset.h".
18306 (copy_text): Don't refer to Vnonascii_translation_table.
18307 (insert_from_gap): New function.
18308
18309 * keyboard.c: Include "character.h" instead of "charset.h".
18310 (command_loop_1): Never call direct_output_forward_char before
18311 a non-ASCII character.
18312 (read_char): If Vkeyboard_translate_table is a char table, always
18313 translate a character.
18314
18315 * keymap.c: Include "character.h".
18316 (store_in_keymap): Handle the case that IDX is a cons.
18317 (Fdefine_key): Handle the case that KEY is a cons and the car part
18318 is also a cons (range).
18319 (push_key_description): Adjust for the new character code.
18320 (describe_vector): Call describe_char_table for a char table.
18321 (describe_char_table): New function.
18322
18323 * keymap.h (describe_char_table): Extern it.
18324
18325 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18326 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18327 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18328 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18329 Delete.
18330 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18331 structure.
18332 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18333 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18334 (CHARTAB_SIZE_BITS_3): New macros.
18335 (chartab_size): Extern it.
18336 (struct Lisp_Char_Table): Re-design.
18337 (struct Lisp_Sub_Char_Table): New structure.
18338 (HASH_KEY, HASH_VALUE): Move from fns.c.
18339 (CHARACTERBITS): Define as 22.
18340 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18341 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18342 (GC_SUB_CHAR_TABLE_P): New macro.
18343 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18344 (code_convert_string_norecord): Deleted extern.
18345 (init_character_once, syms_of_character, init_charset)
18346 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18347
18348 * lread.c: Include "character.h".
18349 (read_multibyte): New arg NBYTES.
18350 (read_escape): Change the meaning of returned *BYTEREP.
18351 (to_multibyte): Delete.
18352 (read1): Adjust the handling of char table and string.
18353
18354 * print.c: Include "character.h" instead of "charset.h".
18355 (print_string): Convert 8-bit raw bytes to octal form by
18356 string_escape_byte8.
18357 (print_object): Adjust for the new multibyte form. Print 8-bit
18358 raw bytes always in octal form. Handle sub char table correctly.
18359
18360 * process.c: Include "character.h" instead of "charset.h".
18361 (read_process_output, send_process): Adjust for the new
18362 code-conversion API.
18363
18364 * puresize.h (BASE_PURESIZE): Increase.
18365
18366 * regex.c: Include "character.h" instead of "charset.h".
18367 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18368 (regex_compile): Accept a range whose starting and ending
18369 character have different leading bytes.
18370 (analyse_first): Adjust for the above change.
18371
18372 * search.c: Include "character.h" instead of "charset.h".
18373 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18374 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18375
18376 * syntax.c: Include "character.h" instead of "charset.h".
18377 (syntax_parent_lookup): Delete.
18378 (Fmodify_syntax_entry): Accept a cons as CHAR.
18379 (skip_chars): Adjust for the new multibyte form.
18380 (init_syntax_once): Call char_table_set_range instead of directly
18381 accessing the structure of a char table.
18382
18383 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18384 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18385 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18386 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18387
18388 * term.c: Include "buffer.h" and "character.h".
18389 (encode_terminal_code, write_glyphs): Adjust for the new
18390 code-conversion API.
18391 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18392
18393 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18394
18395 * xdisp.c: Include "character.h".
18396 (get_next_display_element): Adjust for the new multibyte form.
18397 (disp_char_vector): Adjust for the new char table structure.
18398 (decode_mode_spec_coding): Adjust for the new structure of
18399 coding system.
18400 (decode_mode_spec): Adjust for the new code-conversion API.
18401
18402 * xfaces.c: Include "character.h" instead of "charset.h".
18403 (load_face_font): Adjust for the change of choose_face_font and
18404 FS_LOAD_FONT.
18405 (generate_ascii_font): New function.
18406 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18407 (set_font_frame_param): Adjust for the change of choose_face_font.
18408 (free_realized_face): Make it public.
18409 (free_realized_faces_for_fontset): Rename from
18410 free_realized_multibyte_face. Free also faces realized for ASCII.
18411 (choose_face_font): Change arguments. Adjust for the change of
18412 fontset_font_pattern and FS_LOAD_FONT.
18413
18414 * xfns.c: Include "character.h".
18415 (x_encode_text): Adjust for the new code-conversion API.
18416
18417 * xselect.c: Don't include "charset.h".
18418 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18419
18420 * xterm.c: Include "character.h".
18421 (x_encode_char): New argument CHARSET. Change caller.
18422 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18423 Call ENCODE_CHAR instead of SPLIT_CHAR.
18424 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18425 CHAR_WIDTH instead of CHARSET_WIDTH.
18426 (XTread_socket): Adjust for the new code-conversion API.
18427 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18428 (x_load_font): Adjust for the change of struct font.
18429
184302008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18431
18432 * xfaces.c (face_at_buffer_position): Remove unused vars.
18433
184342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18435
18436 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18437 Fix overflow checking.
18438
184392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18440
18441 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18442 Cancel previous change.
18443
184442008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18445
18446 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18447 ccl->eight_bit_control. Fix check for buffer overflow.
18448 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18449 (ccl_driver): Initialize extra_bytes to 0.
18450
184512008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18452
18453 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18454 return it ORed with ctrl_modifier.
18455
184562008-01-29 Miles Bader <miles@gnu.org>
18457
18458 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18459
184602008-01-28 Jason Rumney <jasonr@gnu.org>
18461
18462 * w32.c (stat): Don't double check for networked drive.
18463
184642008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18465
18466 * window.c (run_window_configuration_change_hook): New function.
18467 Code extracted from set_window_buffer. Set the selected frame.
18468 (set_window_buffer): Use it.
18469 * window.h (run_window_configuration_change_hook): Declare.
18470 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18471
18472 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18473
184742008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18475
18476 * Makefile.in: Remove references to unused macros.
18477
184782008-01-26 Eli Zaretskii <eliz@gnu.org>
18479
18480 * w32.c (g_b_init_get_sid_sub_authority)
18481 (g_b_init_get_sid_sub_authority_count): New static variables.
18482 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18483 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18484 (init_user_info): Use them to retrieve uid and gid.
18485 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18486 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18487 st_uid and st_gid of the file.
18488
184892008-01-26 Jason Rumney <jasonr@gnu.org>
18490
18491 * w32.c (logon_network_drive): New function.
18492 (stat): Use it.
18493
184942008-01-26 Chong Yidong <cyd@stupidchicken.com>
18495
18496 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18497 invisible text covered with an ellipsis.
18498
184992008-01-25 Richard Stallman <rms@gnu.org>
18500
18501 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18502 jump back to beginning. Move some other initializations after that.
18503 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18504 New variables.
18505 (syms_of_xdisp): Init them.
18506
18507 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18508
18509 * buffer.c (reset_buffer_local_variables):
18510 Implement `permanent-local-hook'.
18511 (Qpermanent_local_hook): New variable.
18512 (syms_of_buffer): Init and staticpro it.
18513
185142008-01-25 Michael Albinus <michael.albinus@gmx.de>
18515
18516 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18517
185182008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18519
18520 * fns.c (Fclrhash): Return TABLE.
18521
185222008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18523
18524 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18525 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18526 is set even without positional changes.
18527 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18528
18529 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18530
185312008-01-23 Jason Rumney <jasonr@gnu.org>
18532
18533 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18534
18535 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18536 the unicode range available in MULE by locale-coding-system.
18537 Improve dbcs lead byte detection. Set event timestamp and modifiers
18538 earlier.
18539
185402008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18541
18542 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18543 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18544 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18545 when used on child processes.
18546
185472008-01-21 Michael Albinus <michael.albinus@gmx.de>
18548
18549 * dbusbind.c (Fdbus_method_return_internal): Rename from
18550 Fdbus_method_return.
18551 (Fdbus_unregister_object): Move to dbus.el.
18552 (Fdbus_call_method, Fdbus_method_return_internal)
18553 (Fdbus_send_signal): Improve debug messages.
18554
185552008-01-20 Martin Rudalics <rudalics@gmx.at>
18556
18557 * undo.c (undo_inhibit_record_point): New variable.
18558 (syms_of_undo): Initialize it.
18559 (record_point): Don't record point when undo_inhibit_record_point
18560 is set.
18561
185622008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18563
18564 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18565
18566 * xdisp.c (Qauto_hscroll_mode): New var.
18567 (syms_of_xdisp): Initialize it.
18568 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18569 window's buffer.
18570 (hscroll_windows): Don't check automatic_hscrolling_p here.
18571
18572 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18573 vscroll if we're setting window-buffer to the value it already has.
18574
185752008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18576
18577 * m/intel386.h: Remove references to XENIX.
18578
185792008-01-17 Andreas Schwab <schwab@suse.de>
18580
18581 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18582 instead of HAVE_X86_64_LIB64_DIR.
18583 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18584
185852008-01-17 Glenn Morris <rgm@gnu.org>
18586
18587 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18588 to HAVE_X86_64_LIB64_DIR.
18589
185902008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18591
18592 * s/irix3-3.h:
18593 * s/irix4-0.h:
18594 * s/386-ix.h:
18595 * s/domain.h:
18596 * s/hpux9-x11r4.h:
18597 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18598
18599 * sysdep.c: Remove code containing references to symbols defined
18600 by unsupported systems.
18601
186022008-01-16 Glenn Morris <rgm@gnu.org>
18603
18604 * coding.c (select-safe-coding-system-function): Doc fix.
18605
186062008-01-15 Glenn Morris <rgm@gnu.org>
18607
18608 * config.in: Revert 2008-01-13 change: this is a generated file.
18609
186102008-01-13 Tom Tromey <tromey@redhat.com>
18611
18612 * lisp.h: Fix typo.
18613
186142008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18615
18616 * m/sequent-ptx.h:
18617 * m/sequent.h:
18618 * s/ptx.h:
18619 * s/ptx4-2.h:
18620 * s/ptx4.h: Remove files for systems no longer supported.
18621
18622 * callproc.c (Fcall_process): Fix previous change.
18623
186242008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18625
18626 * unexsunos4.c: Remove file, system not supported anymore.
18627
18628 * m/mips.h:
18629 * m/intel386.h:
18630 * callproc.c:
18631 * config.in:
18632 * ecrt0.c:
18633 * emacs.c:
18634 * fileio.c:
18635 * frame.c:
18636 * getpagesize.h:
18637 * keyboard.c:
18638 * lread.c:
18639 * process.c:
18640 * puresize.h:
18641 * sysdep.c:
18642 * systty.h:
18643 * syswait.h:
18644 * unexec.c:
18645 * xdisp.c:
18646 * alloc.c: Remove code containing references to symbols defined by
18647 unsupported systems.
18648
186492008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18650
18651 * coding.c (detect_coding_mask): Fix previous change.
18652
186532008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18654
18655 * coding.c (detect_coding_iso2022): New arg
18656 latin_extra_code_state. Allow Latin extra codes only
18657 when *latin_extra_code_state is nonzero.
18658 (detect_coding_mask): If there is a NULL byte, detect the encoding
18659 as UTF-16 or binary. If Latin extra codes exist, detect the
18660 encoding as ISO-2022 only when there's no other proper encoding is
18661 found.
18662
186632008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18664
18665 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18666 #ifdef MAC_OS.
18667
186682008-01-08 Richard Stallman <rms@gnu.org>
18669
18670 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18671
186722008-01-06 Nick Roberts <nickrob@snap.net.nz>
18673
18674 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18675 menu bar in parentheses.
18676
186772008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18678
18679 * m/7300.h:
18680 * m/acorn.h:
18681 * m/alliant-2800.h:
18682 * m/alliant.h:
18683 * m/alliant1.h:
18684 * m/alliant4.h:
18685 * m/altos.h:
18686 * m/amdahl.h:
18687 * m/apollo.h:
18688 * m/att3b.h:
18689 * m/aviion-intel.h:
18690 * m/aviion.h:
18691 * m/celerity.h:
18692 * m/clipper.h:
18693 * m/cnvrgnt.h:
18694 * m/convex.h:
18695 * m/cydra5.h:
18696 * m/delta88k.h:
18697 * m/dpx2.h:
18698 * m/dual.h:
18699 * m/elxsi.h:
18700 * m/f301.h:
18701 * m/gould-np1.h:
18702 * m/gould.h:
18703 * m/i860.h:
18704 * m/ibmps2-aix.h:
18705 * m/ibmrt-aix.h:
18706 * m/ibmrt.h:
18707 * m/irist.h:
18708 * m/is386.h:
18709 * m/isi-ov.h:
18710 * m/mega68.h:
18711 * m/mg1.h:
18712 * m/news-r6.h:
18713 * m/news-risc.h:
18714 * m/news.h:
18715 * m/nh3000.h:
18716 * m/nh4000.h:
18717 * m/ns16000.h:
18718 * m/ns32000.h:
18719 * m/nu.h:
18720 * m/orion.h:
18721 * m/orion105.h:
18722 * m/paragon.h:
18723 * m/pfa50.h:
18724 * m/plexus.h:
18725 * m/pyramid.h:
18726 * m/pyrmips.h:
18727 * m/sh3el.h:
18728 * m/sps7.h:
18729 * m/sr2k.h:
18730 * m/stride.h:
18731 * m/sun1.h:
18732 * m/sun2.h:
18733 * m/sun3-68881.h:
18734 * m/sun3-fpa.h:
18735 * m/sun3-soft.h:
18736 * m/sun3.h:
18737 * m/sun386.h:
18738 * m/symmetry.h:
18739 * m/tad68k.h:
18740 * m/tahoe.h:
18741 * m/targon31.h:
18742 * m/tek4300.h:
18743 * m/tekxd88.h:
18744 * m/tower32.h:
18745 * m/tower32v3.h:
18746 * m/ustation.h:
18747 * m/wicat.h:
18748 * m/xps100.h:
18749 * s/cxux.h:
18750 * s/cxux7.h:
18751 * s/dgux.h:
18752 * s/dgux4.h:
18753 * s/dgux5-4-3.h:
18754 * s/dgux5-4r2.h:
18755 * s/esix.h:
18756 * s/esix5r4.h:
18757 * s/hiuxmpp.h:
18758 * s/hiuxwe2.h:
18759 * s/iris3-5.h:
18760 * s/iris3-6.h:
18761 * s/isc2-2.h:
18762 * s/isc3-0.h:
18763 * s/isc4-0.h:
18764 * s/isc4-1.h:
18765 * s/newsos5.h:
18766 * s/newsos6.h:
18767 * s/osf1.h:
18768 * s/osf5-0.h:
18769 * s/riscix1-1.h:
18770 * s/riscix12.h:
18771 * s/sco4.h:
18772 * s/sco5.h:
18773 * s/sunos4-0.h:
18774 * s/sunos4-1.h:
18775 * s/sunos413.h:
18776 * s/sunos4shr.h:
18777 * s/umax.h:
18778 * s/unipl5-2.h:
18779 * s/xenix.h:
18780 * cxux-crt0.s:
18781 * unexapollo.c:
18782 * unexconvex.c:
18783 * unexenix.c:
18784 * unexsni.c: Remove files for systems no longer supported.
18785
18786 * m/intel386.h: Remove references to unsupported systems.
18787
18788 * w32.c (get_emacs_configuration): Remove reference to i860.
18789
18790 * sysdep.c: Remove dead code.
18791
187922008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18793
18794 * s/rtu.h:
18795 * m/masscomp.h: Remove files. Platform is obsolete.
18796
187972008-01-04 Michael Albinus <michael.albinus@gmx.de>
18798
18799 * dbusbind.c (Fdbus_method_return): New function.
18800 (xd_read_message): Add the serial number to the event.
18801 (Fdbus_register_method): Activate the function.
18802
188032008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18804
18805 * keyboard.c (read_key_sequence): Fix typo.
18806
188072008-01-03 Michael Albinus <michael.albinus@gmx.de>
18808
18809 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18810 (xd_signature, xd_append_arg): Handle element type detection for
18811 empty arrays.
18812 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18813 SDATA () calls; this must be solved more general.
18814 (Fdbus_register_signal): Use SBYTES instead of strlen.
18815
188162008-01-03 Magnus Henoch <magnus@zemdatav>
18817
18818 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18819 unsigned int for byte values (necessary for big-endian platform).
18820 (Fdbus_call_method): Handle the case of no returned arguments.
18821
188222007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18823
18824 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18825
188262007-12-31 Magnus Henoch <mange@freemail.hu>
18827
18828 * dbusbind.c (xd_signature): Signature of variant is just "v".
18829
188302007-12-30 Michael Albinus <michael.albinus@gmx.de>
18831
18832 * dbusbind.c: Fix several errors and compiler warnings.
18833 Reported by Tom Tromey <tromey@redhat.com>.
18834 (XD_ERROR, XD_DEBUG_MESSAGE)
18835 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18836 (xd_append_arg): Part for basic D-Bus types rewritten.
18837 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18838 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18839 appropriate.
18840 (xd_read_message): Return Qnil. Don't signal an error; it is not
18841 useful during event reading.
18842 (Fdbus_register_signal): Signal an error if the check for
18843 FUNCTIONP fails.
18844 (Fdbus_register_method): New function. The implementation is not
18845 complete, the call of the function signals an error therefore.
18846 (Fdbus_unregister_object): New function, renamed from
18847 Fdbus_unregister_signal. The initial check signals an error, if
18848 the object is not well formed.
18849
188502007-12-30 Richard Stallman <rms@gnu.org>
18851
18852 * textprop.c (get_char_property_and_overlay):
18853 Signal error if POSITION is out of range in a buffer.
18854
188552007-12-29 Martin Rudalics <rudalics@gmx.at>
18856
18857 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18858 because the original parameters are in pure storage now.
18859
188602007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18861
18862 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18863
188642007-12-22 Eli Zaretskii <eliz@gnu.org>
18865
18866 * callint.c (syms_of_callint) <command-history>: Add reference to
18867 history-length in the doc string.
18868
188692007-12-17 Jason Rumney <jasonr@gnu.org>
18870
18871 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18872 before passing as wParam.
18873
188742007-12-22 Michael Albinus <michael.albinus@gmx.de>
18875
18876 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18877 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18878 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18879 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18880 as number.
18881 (Fdbus_call_method): Fix docstring.
18882
188832007-12-21 Michael Albinus <michael.albinus@gmx.de>
18884
18885 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18886 New macros.
18887 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18888 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18889 Simplify.
18890 (xd_signature): New function.
18891 (xd_append_arg): Compute also signatures. Major rewrite.
18892 (xd_retrieve_arg): Make debug messages friendly.
18893 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18894 Check for signatures of arguments.
18895
188962007-12-19 Michael Albinus <michael.albinus@gmx.de>
18897
18898 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18899 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18900 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18901 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18902 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18903 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18904 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18905 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18906 (xd_retrieve_value): Remove. Functionality included in ...
18907 (xd_append_arg): New function.
18908 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18909
189102007-12-16 Michael Albinus <michael.albinus@gmx.de>
18911
18912 * dbusbind.c (top): Include <stdio.h>.
18913 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18914 dbus_message_new_method_call and dbus_message_new_signal.
18915 (Fdbus_register_signal): Rename unique_name to uname.
18916 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18917 non-existing unique name. Fix typos in matching rule. Return an
18918 object which is useful in Fdbus_unregister_signal.
18919 (Fdbus_unregister_signal): Reimplementation, in order to remove
18920 only the corresponding entry.
18921 (Vdbus_registered_functions_table): Change the order of entries.
18922 Apply these changes in xd_read_message and Fdbus_register_signal.
18923
189242007-12-16 Andreas Schwab <schwab@suse.de>
18925
18926 * fileio.c (Finsert_file_contents): Fix overflow check to not
18927 depend on undefined integer overflow.
18928
189292007-12-14 Jason Rumney <jasonr@gnu.org>
18930
18931 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18932 for characters above 127.
18933
189342007-12-13 Jason Rumney <jasonr@gnu.org>
18935
18936 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18937 before dereferencing array.
18938 (lookup_vk_code): Remove zero comparison.
18939
189402007-12-14 Michael Albinus <michael.albinus@gmx.de>
18941
18942 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18943 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18944 Use `unsigned int' instead of `uint'.
18945 (xd_read_message, Fdbus_register_signal): Split expressions into
18946 multiple lines before operators "&&" and "||", according to the
18947 GNU Coding Standards.
18948
189492007-12-14 Eli Zaretskii <eliz@gnu.org>
18950
18951 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18952
189532007-12-12 Juri Linkov <juri@jurta.org>
18954
18955 * buffer.c (Frename_buffer): In interactive spec replace
18956 `read-buffer' with `read-string' that uses `buffer-name-history'
18957 as history, and the current buffer's name as default.
18958
189592007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18960
18961 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18962 manipulating the backtrace manually.
18963 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18964 (struct backtrace, backtrace_list): Remove.
18965 (command_loop_1): Remove dead var `no_direct'.
18966
18967 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18968 preserve non-built-in buffer-local variables.
18969 (Fkill_all_local_variables): Don't re-create&re-set permanent
18970 buffer-local variables.
18971
189722007-12-09 Juri Linkov <juri@jurta.org>
18973
18974 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18975 Lisp code that uses `read-buffer' with current buffer as default.
18976
189772007-12-08 Michael Albinus <michael.albinus@gmx.de>
18978
18979 * dbusbind.c (xd_read_message): Generate an event for every
18980 registered handler. There might be several handlers registered
18981 for the same signal.
18982 (Fdbus_register_signal): Don't overwrite a registration for the
18983 same signal. Add a new registration if handlers are different.
18984 (Vdbus_registered_functions_table): Rework doc string.
18985
189862007-12-07 Michael Albinus <michael.albinus@gmx.de>
18987
18988 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18989 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18990 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18991 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
18992 Unify argument lists.
18993 (xd_read_message, Fdbus_register_signal): Reorder and extend event
18994 arguments and hash table keys. Use unique name for service.
18995 (Fdbus_unregister_signal): Remove checks.
18996 (Vdbus_registered_functions_table): Fix doc string.
18997
189982007-12-05 Magnus Henoch <mange@freemail.hu>
18999
19000 * process.c (make_process): Initialize pty_flag to 0.
19001
190022007-12-05 Jason Rumney <jasonr@gnu.org>
19003
19004 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19005 specified XBMs.
19006
190072007-12-05 Richard Stallman <rms@gnu.org>
19008
19009 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19010
190112007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19012
19013 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19014 New variable.
19015 (mac_try_close_socket) [MAC_OSX]: New function.
19016 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19017 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19018
19019 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19020 Use mac_try_close_socket.
19021
190222007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19023
19024 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19025 reloc_base.
19026 (copy_dysymtab): Compute relocation base here.
19027 (rebase_reloc_address) [__ppc64__]: New function.
19028 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19029 changed.
19030
190312007-12-05 Jason Rumney <jasonr@gnu.org>
19032
19033 * w32proc.c (sys_spawnve): Quote args with wildcards.
19034
190352007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19036
19037 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19038 __objc_* sections.
19039 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19040
190412007-12-05 Michael Albinus <michael.albinus@gmx.de>
19042
19043 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19044 Move check for Vdbus_registered_functions_table to
19045 xd_read_queued_messages.
19046 (xd_read_queued_messages): Protect xd_read_message calls by
19047 internal_condition_case_1.
19048
190492007-12-04 Michael Albinus <michael.albinus@gmx.de>
19050
19051 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19052 Qdbus_system_bus and Qdbus_session_bus, respectively.
19053 (Vdbus_intern_symbols): Remove.
19054 (Vdbus_registered_functions_table): New hash table.
19055 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19056 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19057 Rewrite in order to manage registered functions by hash table
19058 Vdbus_registered_functions_table.
19059
190602007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19061
19062 * xterm.c: Update URL to Window Manager Specification in comment.
19063
190642007-12-02 Michael Albinus <michael.albinus@gmx.de>
19065
19066 * config.in (HAVE_DBUS): Add.
19067
19068 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19069 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19070 (obj): Add $(DBUS_OBJ).
19071 (LIBES): Add $(DBUS_LIBS).
19072 (dbusbind.o): New target.
19073
19074 * dbusbind.c: New file.
19075
19076 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19077
19078 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19079 (Qdbus_event): New Lisp symbol.
19080 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19081 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19082 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19083
19084 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19085
190862007-12-01 Richard Stallman <rms@gnu.org>
19087
19088 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19089
190902007-11-30 Jason Rumney <jasonr@gnu.org>
19091
19092 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19093 (w32con_reset_terminal_modes): Clear screen buffer.
19094 (w32_face_attributes): Don't use color indexes that are out of range.
19095 Only reverse the default colors.
19096
19097 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19098 WINDOWSNT.
19099
19100 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19101
191022007-11-29 Jason Rumney <jasonr@gnu.org>
19103
19104 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19105 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19106 if the terminal colors are initialized.
19107 (unspecified_fg, unspecified_bg): Remove unused declarations.
19108
191092007-11-29 Andreas Schwab <schwab@suse.de>
19110
19111 * keyboard.c (apply_modifiers): Fix typo.
19112
191132007-11-29 Richard Stallman <rms@gnu.org>
19114
19115 * keymap.c (Fcurrent_local_map): Doc fix.
19116
191172007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19118
19119 * s/gnu-kfreebsd.h: New file.
19120
191212007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19122
19123 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19124 Don't cast redundantly.
19125
19126 * keyboard.c (KEY_TO_CHAR): New macro.
19127 (parse_modifiers, apply_modifiers): Accept integer arguments.
19128 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19129 for chars and symbol keys.
19130 After doing such remapping, apply function-key-map again.
19131
191322007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19133
19134 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19135 compiled anymore.
19136
191372007-11-26 Andreas Schwab <schwab@suse.de>
19138
19139 * process.c (list_processes_1): Fix indentation level of the
19140 command column.
19141
191422007-11-23 Andreas Schwab <schwab@suse.de>
19143
19144 * editfns.c (Fformat): Handle %c specially since it requires the
19145 argument to be of type int.
19146
191472007-11-23 Markus Triska <markus.triska@gmx.at>
19148
19149 * emacs.c (main): Call init_editfns before init_process, since
19150 init_process sets Vprocess_connection_type depending on OS release.
19151
191522007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19153
19154 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19155 (find_symbol_value): Use do_symval_forwarding.
19156
19157 * data.c (set_internal): Set the value in the `cons-cell' (for
19158 Buffer_Local_values) not only for frame-local variables.
19159
191602007-11-22 Andreas Schwab <schwab@suse.de>
19161
19162 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19163 values to sprintf.
19164 * keymap.c (Fsingle_key_description): Likewise.
19165 * print.c (print_object): Likewise.
19166
191672007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19168
19169 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19170 file for image is nil.
19171
191722007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19173
19174 * term.c: Include stdarg.h.
19175 (fatal): Implement using varargs.
19176 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19177
191782007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19179
19180 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19181 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19182 Update call to buffer_slot_type_mismatch.
19183 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19184 (buffer_slot_type_mismatch): Update.
19185 * buffer.c (buffer_local_types): Remove.
19186 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19187 (defvar_per_buffer): Set the type in the buffer_objfwd.
19188
191892007-11-21 Jason Rumney <jasonr@gnu.org>
19190
19191 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19192 CreateFileMapping returns NULL on failure.
19193
191942007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19195
19196 * search.c (Fset_match_data): Remove the `evaporate' feature.
19197 (unwind_set_match_data): Don't use the `evaporate' feature.
19198
191992007-11-21 Jason Rumney <jasonr@gnu.org>
19200
19201 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19202
19203 * w32console.c (w32con_write_glyphs): Remove unused variables.
19204
192052007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19206
19207 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19208
19209 * s/darwin.h (MULTI_KBOARD): Remove.
19210
19211 * macfns.c (x_create_tip_frame, Fx_create_frame)
19212 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19213
192142007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19215
19216 * buffer.c (Fbuffer_local_value): Remove redundant test.
19217 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19218 than in `current-buffer' to match the comment.
19219 Do the swap using swap_in_global_binding.
19220
19221 * data.c (store_symval_forwarding, set_internal):
19222 * eval.c (specbind): Remove dead code.
19223
19224 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19225 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19226 Since we do not want to see internal Lisp_*fwd objects here.
19227
192282007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19229
19230 * sysdep.c (init_system_name): Use getaddrinfo if available.
19231
19232 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19233 (x_scroll_bar_note_movement): start, end, with, height in struct
19234 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19235
192362007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19237
19238 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19239
192402007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19241
19242 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19243 This undoes Richard's change of 14-Oct-2002.
19244
19245 * alloc.c (allocate_other_vector):
19246 * lisp.h (allocate_other_vector): Remove.
19247
19248 * window.c (struct save_window_data): Move non-lisp data to the end
19249 and make it `int' rather than Lisp_Object.
19250 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19251 Done wrap/unwrap integer values.
19252 (Fset_window_configuration, compare_window_configurations):
19253 Update use of fields to their new types.
19254
19255 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19256 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19257 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19258 (SET_SCROLL_BAR_X_WINDOW): Remove.
19259 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19260 Access the new x_window field directly.
19261 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19262 Don't wrap/unwrap integers into Lisp_Objects.
19263 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19264 (x_scroll_bar_report_motion):
19265 Don't wrap/unwrap integers into Lisp_Objects.
19266 (x_term_init): Use SDATA.
19267 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19268 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19269 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19270 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19271 * xfns.c (x_set_background_color):
19272 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19273 Access the new x_window field directly.
19274
19275 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19276 (allocate_pseudovector): Make non-static.
19277
19278 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19279 (allocate_pseudovector): Declare.
19280 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19281
192822007-11-15 Andreas Schwab <schwab@suse.de>
19283
19284 * editfns.c (Fformat): Correctly format EMACS_INT values.
19285 Also take precision into account when formatting an integer.
19286
19287 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19288
192892007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19290
19291 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19292 (syms_of_keyboard): Defsubr it.
19293
19294 * data.c (swap_in_global_binding): Fix longstanding bug where
19295 store_symval_forwarding was not called with the right second argument,
19296 thus causing objfwd-ing from being dropped.
19297
192982007-11-14 Juanma Barranquero <lekktu@gmail.com>
19299
19300 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19301 (Fx_display_pixel_height, Fx_display_planes)
19302 (Fx_display_color_cells, Fx_server_max_request_size)
19303 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19304 (Fx_display_visual_class, Fx_display_save_under):
19305 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19306 (Fx_display_pixel_height, Fx_display_planes)
19307 (Fx_display_color_cells, Fx_server_max_request_size)
19308 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19309 (Fx_display_mm_height, Fx_display_mm_width)
19310 (Fx_display_backing_store, Fx_display_visual_class)
19311 (Fw32_select_font, Fx_display_save_under):
19312 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19313 (Fx_display_pixel_height, Fx_display_planes)
19314 (Fx_display_color_cells, Fx_server_max_request_size)
19315 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19316 (Fx_display_save_under): Fix typos in docstrings.
19317
193182007-11-14 Juanma Barranquero <lekktu@gmail.com>
19319
19320 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19321 corresponding to deleted entries; they are an implementation detail.
19322 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19323 Remove variables.
19324 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19325 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19326 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19327 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19328 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19329 (Fw32_define_rgb_color, Fw32_load_color_file)
19330 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19331 Fix typos in docstrings.
19332 (Fx_server_version): Reflow docstring.
19333 (Fw32_shell_execute): Doc fixes.
19334
193352007-11-13 Juanma Barranquero <lekktu@gmail.com>
19336
19337 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19338 if w32_parse_hot_key returned nil.
19339
193402007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19341
19342 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19343
193442007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19345
aac0c6e3
MR
19346 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19347
19348 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19349
19350 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19351 Remove W32_SCROLL_BAR_CLICK_EVENT.
19352
19353 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19354 Add MULTIMEDIA_KEY_EVENT.
19355
19356 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19357 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19358 (make_lispy_event) [WINDOWSNT]: Use it to translate
19359 MULTIMEDIA_KEY_EVENT.
19360
19361 * w32term.h (WM_APPCOMMAND): Define if not already.
19362 (GET_APPCOMMAND_LPARAM): Likewise.
19363
19364 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19365 WM_APPCOMMAND.
19366
19367 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19368 (syms_of_w32fns): Export and initialize it.
19369 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19370
193712007-11-09 Chong Yidong <cyd@stupidchicken.com>
19372
19373 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19374 twice.
19375
19376 * xdisp.c (handle_face_prop): Fix last change.
19377
193782007-11-09 Richard Stallman <rms@gnu.org>
19379
19380 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19381 not just for after-strings and before-strings.
19382 Call face_for_overlay_string and pass the overlay to it.
19383 (handle_display_prop): Determine whether property came from an overlay.
19384 Pass OVERLAY arg to handle_single_display_spec.
19385 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19386 (load_overlay_strings): Fill in it->string_overlays.
19387 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19388
19389 * xfaces.c (face_for_overlay_string): Function renamed from
19390 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19391
19392 * dispextern.h (struct it): New elt string_overlays.
19393 New elt from_overlay, also in stack.
19394 Rearrange a few elements.
19395 (face_for_overlay_string): Decl renamed from
19396 face_at_buffer_position_no_overlays, and add argument.
19397
193982007-11-09 Richard Stallman <rms@gnu.org>
19399
19400 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19401 to get the base face for an overlay string.
19402
19403 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19404
19405 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19406
19407 * xdisp.c (handle_stop): Move some code out of loop.
19408
194092007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19410
19411 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19412 Fix conversion from Lisp object to ATSUFontID.
19413
194142007-11-09 Jason Rumney <jasonr@gnu.org>
19415
19416 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19417
194182007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19419
19420 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19421 Don't assume regions are aligned to page boundary.
19422 (print_load_command_name): Add LC_UUID if defined.
19423
194242007-11-09 Richard Stallman <rms@gnu.org>
19425
19426 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19427
194282007-11-07 Jason Rumney <jasonr@gnu.org>
19429
19430 * s/windows95.h: Remove.
19431
194322007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19433
19434 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19435 abort with a message on unhandled store_type values.
19436
194372007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19438
19439 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19440 Remove HAVE_X11R5 and HAVE_X11R4.
19441
194422007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19443
19444 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19445
194462007-11-01 Johan Bockgård <bojohan@gnu.org>
19447
19448 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19449 Don't set s->stippled_p here, since it has already been set by
19450 x_set_glyph_string_gc from x_draw_glyph_string.
19451
194522007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19453
19454 * sunfns.c: Remove file.
19455
19456 * m/sun386.h:
19457 * m/sun2.h:
19458 * m/sparc.h: Remove Sun windows code.
19459
194602007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19461
19462 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19463 (init_keyboard): Set current_kboard's window-system to nil.
19464 (tty_read_avail_input): Typo.
19465 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19466
194672007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19468
19469 * s/usg5-4.h:
19470 * s/usg5-3.h:
19471 * s/ptx.h:
19472 * m/is386.h:
19473 * m/ibmps2-aix.h:
19474 * Makefile.in: Remove all mentions of X10.
19475
19476 * dispnew.c (syms_of_display): Don't mention version 10.
19477
194782007-10-28 Juanma Barranquero <lekktu@gmail.com>
19479
19480 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19481 ($(BLD)/abbrev.$(O)): Remove.
19482
194832007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19484
19485 Rewrite abbrev.c in Elisp.
19486 * image.c (Qcount): Don't declare as extern.
19487 (syms_of_image): Initialize and staticpro `Qcount'.
19488 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19489 * emacs.c (main): Don't call syms_of_abbrev.
19490 * Makefile.in (obj): Remove abbrev.o.
19491 (abbrev.o): Remove.
19492 * abbrev.c: Remove.
19493
194942007-10-26 Martin Rudalics <rudalics@gmx.at>
19495
19496 * window.c (window_min_size_2): Don't count header-line.
19497
194982007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19499
19500 * frame.h (struct frame): Move all bit fields after the first bit
19501 field to take advantage of the available space. Group all the
19502 chars together to reduce wasted space due to padding.
19503
195042007-10-26 Juanma Barranquero <lekktu@gmail.com>
19505
19506 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19507
19508 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19509 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19510 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19511 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19512 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19513 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19514 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19515 (last_marked, mark_object_loop_halt): Make static.
19516
19517 * frame.c (syms_of_frame) <delete-frame-functions>:
19518 Fix typo in docstring.
19519
195202007-10-25 Juanma Barranquero <lekktu@gmail.com>
19521
19522 * w32.c (init_environment): Fix tiny memory leak.
19523 (w32_get_resource): Remove unused variable `ok'.
19524
195252007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19526
19527 Make `window-system' into a keyboard-local variable (rather than
19528 frame-local as done originally by multi-tty).
19529
19530 * keyboard.h (struct kboard): Add Vwindow_system.
19531 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19532 (mark_kboards): Mark Vwindow_system.
19533
19534 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19535 (init_display): Don't set the obsolete `window-system' frame-param.
19536
19537 * xterm.c (x_term_init):
19538 * w32term.c (w32_create_terminal):
19539 * term.c (init_tty): Set Vwindow_system.
19540 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19541 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19542
19543 * xfns.c (Fx_create_frame, x_create_tip_frame):
19544 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19545 * macfns.c (Fx_create_frame):
19546 Don't set the obsolete `window-system' frame-param.
19547
19548 * frame.h (Qwindow_system): Remove.
19549 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19550 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19551
195522007-10-24 Richard Stallman <rms@gnu.org>
19553
19554 * frame.c (x_figure_window_size): For fullscreen case,
19555 set USPosition | PPosition without clobbering rest of window_prompting.
19556
19557 * keyboard.c (Fcurrent_idle_time): Doc fix.
19558
19559 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19560
195612007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19562
19563 * process.c (unwind_request_sigio): Only define if __ultrix__.
19564
19565 * callproc.c (child_setup): Remove spurious *.
19566
19567 * lisp.h (Fget_text_property): Declare.
19568 (have_menus_p): Declare it here rather than in sys-dep header files.
19569 * macterm.h (have_menus_p):
19570 * msdos.h (have_menus_p):
19571 * xterm.h (have_menus_p): Remove.
19572
19573 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19574 (Fmake_variable_frame_local): Just check the variable's const-ness
19575 rather than checking nil or t.
19576
195772007-10-22 Jason Rumney <jasonr@gnu.org>
19578
19579 * w32fns.c: Include math.h.
19580 (w32_abort): Declaration moved to nt/config.nt.
19581
19582 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19583 (abort): Redefinition moved to nt/config.nt.
19584
19585 * m/windowsnt.h: Remove.
19586
195872007-10-22 Juanma Barranquero <lekktu@gmail.com>
19588
19589 * emacs.c (Fdump_emacs): Fix typo in message.
19590 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19591 <installation-directory>: Reflow docstring.
19592
195932007-10-22 Juri Linkov <juri@jurta.org>
19594
19595 * minibuf.c: Allow minibuffer default to be a list of default values.
19596 With empty input use the first element of this list as returned default.
19597 (string_to_object)
19598 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19599 (read_minibuf): If defalt is cons, set histstring to its car.
19600 (Fread_string): If default_value is cons, set val to its car.
19601 (Fread_buffer): If def is cons, use its car.
19602 (Fcompleting_read): If defalt is cons, set val to its car.
19603
196042007-10-21 Michael Albinus <michael.albinus@gmx.de>
19605
19606 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19607
196082007-10-20 Juanma Barranquero <lekktu@gmail.com>
19609
19610 * doc.c (Fdocumentation): Check for advice in all cases.
19611
196122007-10-19 Chong Yidong <cyd@stupidchicken.com>
19613
19614 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19615
196162007-10-19 Richard Stallman <rms@gnu.org>
19617
19618 * doc.c (Fdocumentation): Check for and handle an advised function.
19619
196202007-10-19 Juanma Barranquero <lekktu@gmail.com>
19621
19622 * process.c (Fset_process_filter): Doc fix.
19623
196242007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19625
19626 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19627 which caused key-translation-map to applied repeatedly (thus breaking
19628 double-mode).
19629
196302007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19631
19632 * xselect.c (x_own_selection, x_handle_selection_clear)
19633 (x_clear_frame_selections):
19634 * w32menu.c (list_of_panes, list_of_items):
19635 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19636 * textprop.c (validate_plist, interval_has_all_properties)
19637 (interval_has_some_properties, interval_has_some_properties_list)
19638 (add_properties, text_property_list):
19639 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19640 * minibuf.c (Fassoc_string):
19641 * macselect.c (x_own_selection, x_clear_frame_selections)
19642 (Fx_disown_selection_internal):
19643 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19644 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19645
196462007-10-17 Chong Yidong <cyd@stupidchicken.com>
19647
19648 * process.c: Link to libs for calling res_init() if available.
19649 (Fmake_network_process): Call res_init() before getaddrinfo or
19650 gethostbyname, if possible.
19651
196522007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19653
19654 * lread.c (read1): Set pvectype for char_tables.
19655
19656 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19657 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19658 Add type checks.
19659 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19660
19661 * alloc.c (free_misc): Use XMISCTYPE.
19662 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19663
196642007-10-17 Glenn Morris <rgm@gnu.org>
19665
19666 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19667 (syms_of_minibuf): Add Qcompletion_ignore_case.
19668 * dired.c (Qcompletion_ignore_case): Change to external.
19669 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19670 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19671 (Fread_file_name): Use it rather than intern'ing.
19672
19673 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19674 (Fread_coding_system): Ignore case of user input.
19675
196762007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19677
19678 * xdisp.c (handle_display_prop): Ignore display specs after
19679 replacing one when string text is being replaced.
19680 (handle_single_display_spec): Pretend as if characters with display
19681 property haven't been consumed only when buffer text is being replaced.
19682
196832007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19684
19685 * xfns.c (Fx_create_frame, Fx_display_list):
19686 * window.c (window_fixed_size_p, enlarge_window)
19687 (shrink_window_lowest_first):
19688 * macterm.c (init_font_name_table):
19689 * macfns.c (Fx_create_frame, Fx_display_list):
19690 * lread.c (close_load_descs):
19691 * keyboard.c (read_char_x_menu_prompt):
19692 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19693 * coding.c (code_convert_region_unwind): Test the type of an object
19694 rather than just !NILP before extracting data from it.
19695
19696 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19697
19698 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19699 (XMISCANY): New macro.
19700 (XMISCTYPE): Use it.
19701 (struct Lisp_Misc_Any): New type.
19702 (union Lisp_Misc): Use it.
19703 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19704 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19705 (find_symbol_value, set_internal, default_value, Fset_default)
19706 (Fmake_variable_buffer_local, Fmake_local_variable)
19707 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19708 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19709 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19710 * alloc.c (allocate_buffer): Set the size and tag.
19711 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19712 Use XMISCANY.
19713 (die): Follow the GNU convention for error messages.
19714 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19715 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19716 tag any more.
19717 (set_buffer_internal_1):
19718 * frame.c (store_frame_param):
19719 * eval.c (specbind):
19720 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19721
19722 * doc.c (Fsnarf_documentation): Simplify.
19723
197242007-10-14 Juanma Barranquero <lekktu@gmail.com>
19725
19726 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19727 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19728
197292007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19730
19731 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19732
197332007-10-14 Juanma Barranquero <lekktu@gmail.com>
19734
19735 * eval.c (do_autoload): Don't save autoloads.
19736
19737 * data.c (Ffset): Save autoload of the function being set.
19738
197392007-10-07 John Paul Wallington <jpw@pobox.com>
19740
19741 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19742 parameter before setting up faces.
19743
197442007-10-13 Eli Zaretskii <eliz@gnu.org>
19745
19746 * ccl.c (Fregister_code_conversion_map):
19747 * keyboard.c (append_tool_bar_item): Reformat last change.
19748
19749 * lisp.h (eabs): Rename from `abs'. All callers changed.
19750
197512007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19752
19753 * buffer.c (add_overlay_mod_hooklist):
19754 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19755 * fontset.c (make_fontset):
19756 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19757 (append_tool_bar_item):
19758 * macmenu.c (grow_menu_items):
19759 * w32menu.c (grow_menu_items):
19760 * xmenu.c (grow_menu_items): Use larger_vector.
19761
197622007-10-13 Eli Zaretskii <eliz@gnu.org>
19763
19764 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19765 selected frame'' on MSDOS).
19766
197672007-10-12 Martin Rudalics <rudalics@gmx.at>
19768
19769 * frame.c (Qexplicit_name): New variable.
19770 (x_report_frame_params): Report it in parameter alist.
19771 (syms_of_frame): Intern and staticpro it.
19772
197732007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19774
19775 * macfns.c (x_create_tip_frame): Set terminal for frame.
19776
197772007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19778
19779 * frame.c (Qenvironment): Remove.
19780 (syms_of_frame) <Qenvironment>: Don't initialize.
19781 (Fdelete_frame): Don't treat the `environment' param specially.
19782 * frame.h (Qenvironment): Don't declare.
19783 * callproc.c (set_initial_environment): Don't set unused frame param.
19784
19785 * frame.c (Fframe_with_environment): Remove.
19786 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19787
19788 * lisp.h (Fframe_with_environment): Don't declare.
19789
197902007-10-10 Juanma Barranquero <lekktu@gmail.com>
19791
19792 * indent.c (indent_tabs_mode, last_known_column)
19793 (last_known_column_modified): Make static.
19794 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19795
197962007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19797
19798 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19799
198002007-10-09 Jason Rumney <jasonr@gnu.org>
19801
19802 * w32term.c (x_set_window_size): Disable code that attempts to tell
19803 Lisp code about a size change before it actually happens.
19804
198052007-10-09 Richard Stallman <rms@gnu.org>
19806
19807 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19808 return HANDLED_RETURN.
19809
198102007-10-08 Martin Rudalics <rudalics@gmx.at>
19811
19812 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19813 when there's an unread command event.
19814
19815 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19816 window autoselection act appropriately when leaving selected frame.
19817 (syms_of_frame): Initialize focus_follows_mouse.
19818 * frame.h (focus_follows_mouse): Extern it.
19819 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19820 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19821 * msdos.c (dos_rawgetc): Likewise.
19822 * w32term.c (w32_read_socket): Likewise.
19823 * xterm.c (handle_one_xevent): Likewise.
19824 * xdisp.c (syms_of_xdisp): In doc-string of
19825 mouse-autoselect-window mention focus-follows-mouse.
19826
198272007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19828
19829 * macterm.c (mac_load_query_font): Fix missing return value.
19830 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19831 Add BLOCK_INPUT.
19832
198332007-10-08 Richard Stallman <rms@gnu.org>
19834
19835 * xdisp.c (get_window_cursor_type): Implement documented behavior
19836 for cursor-in-non-selected-windows = t.
19837
198382007-10-08 Jason Rumney <jasonr@gnu.org>
19839
19840 * w32.c (w32_get_resource): Always close registry keys.
19841
198422007-10-08 Jason Rumney <jasonr@gnu.org>
19843
19844 * makefile.w32-in (LIBS): Add COMCTL32.
19845
19846 * w32fns.c (globals_of_w32fns): Init common controls.
19847
198482007-10-08 Richard Stallman <rms@gnu.org>
19849
19850 * image.c (our_memory_buffer): Rename from omfib_buffer.
19851
198522007-10-08 Richard Stallman <rms@gnu.org>
19853
19854 * buffer.c (Foverlays_at): Doc fix.
19855
198562007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19857
19858 * fns.c (Fplist_put): Preserve uneven tail data.
19859
198602007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19861
19862 * termhooks.h (enum event_kind): Remove trailing comma.
19863
19864 * frame.h (enum): Remove trailing comma.
19865
198662007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19867
19868 * w32proc.c (delete_child): Don't terminate threads of zombies.
19869
198702007-10-08 Martin Rudalics <rudalics@gmx.at>
19871
19872 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19873
19874 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19875 last-repeatable-command.
19876 (init_kboard): Initialize Vlast_repeatable_command.
19877 (command_loop_1): Set it to real_this_command unless that was
19878 bound to an input event.
19879 (mark_kboards): Mark it.
19880
198812007-10-08 Richard Stallman <rms@gnu.org>
19882
19883 * eval.c (condition-case): Doc fix.
19884
198852007-10-08 Masatake YAMATO <jet@gyve.org>
19886
19887 * xfaces.c (tty_supports_face_attributes_p): Fix code
19888 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19889 was copied and not edited.
19890
198912007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19892
19893 Add new `input-decode-map' keymap and use it for terminal
19894 escape sequences.
19895 * keyboard.h (struct kboard): Add Vinput_decode_map.
19896 Remove Vlocal_key_translation_map.
19897 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19898 (init_kboard): Init input-decode-map.
19899 Replace local-key-translation-map back with key-translation-map.
19900 (syms_of_keyboard): Declare input-decode-map.
19901 Remove local-key-translation-map. Update docstrings.
19902 (mark_kboards): Mark Vinput_decode_map.
19903 Don't mark Vlocal_key_translation_map.
19904 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19905 Replace local-key-translation-map back with key-translation-map.
19906 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19907 Bind in input-decode-map rather than function-key-map.
19908
19909 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19910 This was made redundant by the previous introduction of XSETPVECTYPE.
19911
199122007-10-09 Richard Stallman <rms@gnu.org>
19913
19914 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19915
199162007-09-29 Richard Stallman <rms@gnu.org>
19917
19918 * eval.c (internal_condition_case_2, internal_condition_case_1)
19919 (internal_condition_case): Reenable abort if x_catching_errors ()
19920 to see if that really happens and why.
19921
199222007-10-06 Andreas Schwab <schwab@suse.de>
19923
19924 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19925
199262007-10-04 Juanma Barranquero <lekktu@gmail.com>
19927
19928 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19929
199302007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19931
19932 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19933
199342007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19935
19936 * window.h (struct window):
19937 * window.c (struct save_window_data, struct saved_window):
19938 * termhooks.h (struct terminal):
19939 * process.h (struct Lisp_Process):
19940 * frame.h (struct frame):
19941 * buffer.h (struct buffer):
19942 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19943 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19944 The size field of (pseudo)vectors is now unsigned.
19945 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19946
19947 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19948 Turn `count' into an integer.
19949
19950 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19951 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19952 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19953 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19954 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19955
19956 * alloc.c (allocate_pseudovector): New fun.
19957 (ALLOCATE_PSEUDOVECTOR): New macro.
19958 (allocate_window, allocate_terminal, allocate_frame)
19959 (allocate_process): Use it.
19960 (mark_vectorlike): New function.
19961 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19962 (mark_terminals): Use it.
19963 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19964 (Fmake_byte_code): Use XSETPVECTYPE.
19965
19966 * frame.c (Fframe_parameters): Minor simplification.
19967
19968 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19969
19970 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19971
19972 * buffer.c (Fget_buffer_create, init_buffer_once):
19973 * lread.c (defsubr):
19974 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19975
19976 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19977 defined differently in the m/*.h files.
19978 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19979 (XSETPVECTYPE): New macro.
19980 (XSETPSEUDOVECTOR): Use it.
19981
19982 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19983 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19984
19985 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19986 * lread.c (defvar_per_buffer):
19987 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19988
19989 * window.c (candidate_window_p): Only consider as visible frames that
19990 are on the same terminal.
19991
19992 * m/ibms390x.h (MARKBIT): Remove unused macro.
19993
199942007-10-01 Juanma Barranquero <lekktu@gmail.com>
19995
19996 * lread.c (Fload): Fix typo in docstring.
19997
199982007-10-01 Michaël Cadilhac <michael@cadilhac.name>
19999
20000 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20001 of a non-zero value can't yield zero.
20002
200032007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20004
20005 * term.c (term_clear_mouse_face, term_mouse_highlight)
20006 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20007
20008 * print.c (safe_debug_print): Use XHASH.
20009
20010 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20011 Lisp elements such as tags.
20012 (XHASH): New macro.
20013 (EQ): Use it.
20014 (SREF, SSET, STRING_COPYIN): Use SDATA.
20015 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20016
20017 * alloc.c (mark_terminal): Remove left-over declaration.
20018 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20019 (allocate_vectorlike): Remove type argument. Adjust callers.
20020 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20021 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20022
20023 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20024 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20025 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20026 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20027 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20028 Use them.
20029
20030 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20031 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20032 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20033
200342007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20035
20036 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20037 loaded by default.
20038
200392007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20040
20041 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20042 on this tty.
20043 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20044
20045 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20046 Update all users.
20047 (handle_one_term_event): Use Gpm_DrawPointer.
20048 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20049 Signal errors instead of returning nil. Always return nil.
20050 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20051 Make it a noop if gpm-mouse was not activated.
20052 (syms_of_term): Update names.
20053
200542007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20055
20056 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20057 (init_sys_modes): Check that gpm_tty is the current tty.
20058
20059 * alloc.c (allocate_terminal): Set the vector size to only count the
20060 lisp fields. Initialize those to nil.
20061 (mark_object): Don't treat terminals specially.
20062 (mark_terminal): Remove.
20063 (mark_terminals): Use mark_object instead.
20064
20065 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20066 the GC to the beginning.
20067
20068 * indent.h:
20069 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20070
20071 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20072
200732007-09-25 Jason Rumney <jasonr@gnu.org>
20074
20075 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20076
20077 * w32console.c (create_w32cons_output): Remove.
20078
20079 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20080
20081 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20082 (reset_sys_modes): Use reset_terminal_modes_hook.
20083
200842007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20085
20086 * eval.c (do_autoload): Don't output any message.
20087
200882007-09-24 Juri Linkov <juri@jurta.org>
20089
20090 * emacs.c (standard_args): Change priority of "--no-splash"
20091 from 40 to 3. Add "--no-desktop" with the same priority.
20092
200932007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20094
20095 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20096 and optimize the case where they are all 1.
20097
200982007-09-23 Johannes Weiner <hannes@saeurebad.de>
20099
20100 * lisp.h (abs): Define if not defined.
20101 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20102 Don't define `abs', since it's defined in lisp.h.
20103
201042007-09-22 Eli Zaretskii <eliz@gnu.org>
20105
20106 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20107 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20108 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20109 (init_tty): Use DEV_TTY instead of "/dev/tty".
20110 [WINDOWSNT]: No need to protect from NAME arg being null.
20111
201122007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20113
20114 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20115 up the tty state.
20116
201172007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20118
20119 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20120 (gpm_tty): Change its type.
20121 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20122 (gpm_tty): Change its type and initialize it.
20123 (Fterm_open_connection): Check the frame is indeed a tty.
20124 Use the new gpm_tty.
20125 (Fterm_close_connection): Use the new gpm_tty.
20126 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20127 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20128
201292007-09-21 Juanma Barranquero <lekktu@gmail.com>
20130
20131 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20132 underline_color, to draw strike-through.
20133
201342007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20135
20136 * lisp.h (allocate_terminal): Declare.
20137
20138 * window.c (candidate_window_p): Consider frames that are being placed
20139 by the user as somewhere between visible and iconified.
20140 (window_loop): Prefer windows on the current frame.
20141 (Fselect_window): Move the use of select-frame to the beginning so we
20142 can just delegate all the work (it'll call us back anyway).
20143
20144 * frame.c (Qdisplay_environment_variable):
20145 * frame.h (Qdisplay_environment_variable): Delete.
20146
20147 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20148 of the first arg, since that value may be a union.
20149
20150 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20151 parameter rather than Qdisplay_environment_variable. If all else
20152 fails, look for DISPLAY in initial-environment.
20153
201542007-09-21 Glenn Morris <rgm@gnu.org>
20155
20156 * Makefile.in (emacstool): Remove target.
20157 (lisp, shortlisp): Remove termdev.elc.
20158
201592007-09-21 Markus Triska <markus.triska@gmx.at>
20160
20161 * xterm.c (x_delete_display): Compile session management conditionally.
20162
201632007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20164
20165 * callproc.c (getenv_internal_1): New function.
20166 (getenv_internal): Use it.
20167 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20168
20169 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20170 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20171 (Fset_terminal_parameter): Work with dead terminals as well.
20172 (Fmodify_terminal_parameters): Remove.
20173
20174 * terminal.c (get_terminal): Handle terminals.
20175 Make sure the terminal returned is live.
20176 (create_terminal): Use allocate_terminal.
20177 (mark_terminals): Move to alloc.c.
20178 (delete_terminal): Use terminal->name as liveness status.
20179 NULL out fields after freeing their contents.
20180 Don't deallocate the object.
20181 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20182 rather than an int.
20183 (Fterminal_live_p): Accept non-integer arguments.
20184 (Fterminal_list): Return terminal objects rather than an ints.
20185
20186 * alloc.c (enum mem_type): New member for `terminal' objects.
20187 (allocate_terminal): New function.
20188 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20189 Handle terminals.
20190 (mark_terminal): New fun.
20191 (mark_terminals): Move from terminal.c.
20192
20193 * term.c (get_tty_terminal): Don't treat output_initial specially.
20194 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20195 (delete_tty): Use terminal->name as liveness status.
20196
20197 * termhooks.h (struct terminal): Make it into a pseudovector.
20198 Remove `deleted' replaced by checking `name's nullness.
20199
20200 * print.c (print_object): Handle terminals.
20201
20202 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20203 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20204
20205 * frame.c (make_terminal_frame):
20206 * keyboard.c (tty_read_avail_input):
20207 * w32term.c (x_delete_terminal):
20208 * xfns.c (Fx_create_frame, x_create_tip_frame):
20209 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20210
202112007-09-20 Glenn Morris <rgm@gnu.org>
20212
20213 * process.c (Fmake_network_process): Doc fix.
20214
202152007-09-19 Jason Rumney <jasonr@gnu.org>
20216
20217 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20218
202192007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20220
20221 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20222 Fix a C warning regarding variable constness.
20223
20224 * xterm.c (handle_one_xevent): Fix a C warning.
20225
202262007-09-18 Jason Rumney <jasonr@gnu.org>
20227
20228 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20229
202302007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20231
20232 * gtkutil.c (gdpy_def): New variable.
20233 (xg_initialize): Initialize gdpy_def.
20234 (xg_display_close): If no other display exists, set gdpy_def to a
20235 new connection.
20236
202372007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20238
20239 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20240 when we have no file name for the icon.
20241 (xg_tool_bar_expose_callback): Remove.
20242 (xg_create_tool_bar): Don't connect expose signal to
20243 xg_tool_bar_expose_callback.
20244 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20245
202462007-09-16 Andreas Schwab <schwab@suse.de>
20247
20248 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20249 values instead of zapping them.
20250
202512007-09-14 Glenn Morris <rgm@gnu.org>
20252
20253 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20254 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20255 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20256 scope and rename to omfib_buffer for clarity.
20257 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20258
202592007-09-14 Kenichi Handa <handa@m17n.org>
20260
20261 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20262
202632007-09-13 Jason Rumney <jasonr@gnu.org>
20264
20265 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20266
20267 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20268
20269 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20270 (mac_term_init): Call here instead, passing rif.
20271
202722007-09-13 Glenn Morris <rgm@gnu.org>
20273
20274 * s/hpux.h: No longer define `static' as nothing.
20275
202762007-09-13 Johan Bockgård <bojohan@gnu.org>
20277
20278 * callint.c (Fcall_interactively): Remove unused var `fun'.
20279
202802007-09-12 Romain Francoise <romain@orebokech.com>
20281
20282 * window.c (prefer_window_split_horizontally, display_buffer):
20283 Revert 2007-09-08 change.
20284
202852007-09-12 Glenn Morris <rgm@gnu.org>
20286
20287 * alloca.c: Remove file.
20288 * Makefile.in (alloca): Do not undef.
20289 (allocaobj, alloca.o): Remove.
20290 (otherobj): Remove allocaobj.
20291 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20292 * regex.c (C_ALLOCA): Remove all references and code that was only
20293 used when this was defined.
20294 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20295 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20296 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20297
20298 * Makefile.in (SOURCES, unlock, relock): Delete.
20299
20300 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20301 (menu_grab_callback): All uses changed.
20302
20303 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20304 (x_reply_selection_request): All uses changed.
20305
203062007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20307
20308 * lread.c (load_warn_old_style_backquotes): Change message to look
20309 better when it appears in the middle of byte-compiler messages.
20310
203112007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20312
20313 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20314
20315 * xterm.c (x_create_terminal): Add comment.
20316
20317 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20318
203192007-09-10 Richard Stallman <rms@gnu.org>
20320
20321 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20322
203232007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20324
20325 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20326 (DEFUN): Document `intspec', use it instead of `prompt'.
20327
20328 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20329
20330 * data.c (Finteractive_form): If the interactive specification starts
20331 with a `(', use it as a Lisp form.
20332
20333 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20334 name and file modes.
20335
20336 * callint.c (Fcall_interactively): Comment fixes.
20337
203382007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20339
20340 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20341 and compiled functions.
20342
203432007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20344
20345 * window.c (prefer_window_split_horizontally): New variable.
20346 (display_buffer): Consider splitting window horizontally depending
20347 on prefer_window_split_horizontally.
20348
203492007-09-08 Eli Zaretskii <eliz@gnu.org>
20350
20351 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20352
203532007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20354
20355 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20356
20357 * frame.c (x_set_frame_parameters): Check number is positive before
20358 using XFASTINT.
20359
20360 * window.c (freeze_window_start): Don't presume selected_window holds
20361 a window object.
20362 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20363
203642007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20365
20366 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20367
203682007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20369
20370 * window.c (Vsplit_window_preferred_function): New var.
20371 (Fdisplay_buffer): Use it.
20372 (syms_of_window): Export, and initialize it.
20373
203742007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20375
20376 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20377
203782007-09-06 Glenn Morris <rgm@gnu.org>
20379
20380 * gtkutil.c (menu_grab_callback) <cnt>:
20381 * xselect.c (x_reply_selection_request) <cnt>: Move static
20382 variable to file scope.
20383
203842007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20385
20386 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20387 consistent values of selected_frame and selected_window.
20388
203892007-09-04 Jason Rumney <jasonr@gnu.org>
20390
20391 * w32console.c (initialize_w32_display): Zero unused hooks.
20392
203932007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20394
20395 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20396 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20397
203982007-09-04 Jason Rumney <jasonr@gnu.org>
20399
20400 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20401 in w32console.c. Set up input. Remove XXX comments that have been
20402 confirmed as correct.
20403
20404 * s/ms-w32.h (MULTI_KBOARD): Define.
20405
20406 * w32console.c (one_and_only_w32cons): Remove.
20407 (initialize_w32_display): Take terminal argument.
20408
20409 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20410 initialize_w32_display.
20411 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20412
20413 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20414
20415 * keyboard.c (discard_mouse_events): Discard it.
20416 (make_lispy_event): Translate it to a lisp event.
20417 (lispy_wheel_names): Add wheel-left and right events.
20418 (syms_of_keyboard): Enlarge wheel_syms.
20419
20420 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20421 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20422
20423 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20424
20425 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20426 from WM_MOUSEHWHEEL.
20427 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20428
20429 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20430 terminal.
20431
20432 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20433 keyboard for the terminal.
20434
204352007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20436
20437 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20438 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20439 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20440 and resume-tty-function to resume-tty-hook.
20441 (Fsuspend_tty, Fresume_tty): Use new names.
20442
204432007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20444
20445 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20446 if it starts with "n:".
20447
204482007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20449
20450 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20451
204522007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20453
20454 * frame.h:
20455 * frame.c (Qterm_environment_variable): Remove.
20456 (syms_of_frame): Don't init and staticpro it.
20457
20458 * callproc.c (getenv_internal): Remove special case for $TERM.
20459
20460 * callproc.c (Vinitial_environment): New variable.
20461 (set_initial_environment): Initialize it.
20462 (syms_of_callproc): Declare it.
20463 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20464 TERM under which a process runs is never related to the TERM in which
20465 Emacs is running.
20466
204672007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20468
20469 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20470 * s/darwin.h: ... do it here.
20471
204722007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20473
20474 * lisp.h (set_initial_environment): Rename from set_global_environment.
20475
20476 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20477 removed by mistake on the multi-tty branch.
20478
20479 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20480 (Fmodify_frame_parameters): Return a value.
20481
20482 * image.c (png_load): Comment-out var only used in commented-out code.
20483
20484 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20485 before passing it to mark_object.
20486
20487 * xfaces.c (internal_resolve_face_name): Return a value.
20488 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20489
20490 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20491 (x_icon): Comment-out var only used in commented-out code.
20492
204932007-08-29 Romain Francoise <romain@orebokech.com>
20494
20495 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20496 QUIT hasn't been provided.
20497
204982007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20499
20500 * callproc.c (child_setup, getenv_internal): Use the
20501 display-environment-variable and term-environment-variable frame params.
20502 (set_initial_environment): Initialise Vprocess_environment.
20503
20504 * config.in: Disable multi-keyboard support on a mac.
20505
20506 * frame.c (Qterm_environment_variable)
20507 (Qdisplay_environment_variable): New variables.
20508 (syms_of_frame): Intern and staticpro them.
20509 (Fmake_terminal_frame): Disable output method test.
20510
20511 * frame.h: Declare them here.
20512
20513 * macfns.c (x_set_mouse_color): Get rif from the frame.
20514 (x_set_tool_bar_lines): Don't use updating_frame.
20515 (mac_window): Add 2 new parameters for consistency with other systems.
20516 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20517 frame parameters following what is done in X11 and w32. Don't use
20518 FRAME_MAC_DISPLAY_INFO.
20519 (Fx_open_connection, start_hourglass): Remove window-system check.
20520 (x_create_tip_frame): Get the keyboard from the terminal.
20521
20522 * macmenu.c: Reorder includes.
20523 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20524
20525 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20526 terminal parameter.
20527 (x_clear_frame): Add a frame parameter.
20528 (note_mouse_movement): Get rif from the frame.
20529 (mac_term_init): Initialize the terminal.
20530 (mac_initialize): Make static and move terminal initialization ...
20531 (mac_create_terminal): ... to this new function.
20532
20533 * macterm.h (struct mac_display_info): Add terminal.
20534 (mac_initialize): Delete declaration.
20535
20536 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20537
20538 * sysdep.c: Comment out text after #endif.
20539
20540 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20541 is defined. Better initialize ttys in windows. Use terminal
20542 specific mouse_position_hook.
20543
20544 * termhooks.h (union display_info): Add mac_display_info.
20545
20546 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20547 Set the default minibuffer frame, window_system and the rest of the
20548 frame parameters following what is done in X11.
20549
20550 * w32term.c (w32_initialize): Make static.
20551
20552 * xselect.c (x_handle_selection_clear): Only access
20553 terminal->kboard when MULTI_KBOARD is defined.
20554
20555 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20556 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20557
205582007-08-29 Jason Rumney <jasonr@gnu.org>
20559
20560 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20561 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20562
20563 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20564 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20565
20566 * keyboard.c (restore_kboard_configuration): Only define when
20567 MULTI_KBOARD defined.
20568
20569 * makefile.w32-in: Update dependancies from Makefile.in.
20570 (OBJ1): Add terminal.$(O)
20571
20572 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20573 Don't define function body.
20574 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20575
20576 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20577
20578 * w32.c (request_sigio, unrequest_sigio): Remove.
20579
20580 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20581 (w32con_clear_frame, w32con_clear_end_of_line)
20582 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20583 (w32con_delete_glyphs, w32con_set_terminal_window)
20584 (scroll_line, w32_sys_ring_bell): Add frame arg.
20585 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20586 Add terminal arg.
20587 (PICK_FRAME): Remove.
20588 (w32con_write_glyphs): Use frame specific terminal coding.
20589 (one_and_only_w32cons): New global variable.
20590 (initialize_w32_display): Use it for storing hooks.
20591 (create_w32cons_output): New function.
20592
20593 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20594 arg a frame.
20595
20596 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20597 Set window_system.
20598 (x_set_tool_bar_lines): Don't use updating_frame.
20599 (Fx_create_frame): Set terminal and ref count.
20600 (Fx_open_connection): Remove window-system check.
20601
20602 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20603
20604 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20605 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20606 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20607 Add frame arg.
20608 (x_delete_terminal, w32_create_terminal): New functions.
20609 (w32_term_init): Create a terminal.
20610 (w32_initialize): Move terminal specific initialization to
20611 w32_create_terminal.
20612
20613 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20614 (w32_clear_rect, w32_clear_area): Use background from frame.
20615 (w32_display_info): Add terminal.
20616 (w32_sys_ring_bell, x_delete_display): Declare here.
20617
20618 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20619
20620 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20621
206222007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20623
20624 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20625 Fix get_named_tty calls for the controlling tty.
20626
206272007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20628
20629 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
20630
206312007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20632
20633 * term.c (tty_insert_glyphs): Add missing first parameter.
20634
206352007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20636
20637 * buffer.c (Fbuffer_list, Fbury_buffer):
20638 Take frame->buried_buffer_list into account.
20639
20640 * cm.c (current_tty): New variable, for cmputc().
20641 (cmputc): Use it.
20642 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20643 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20644 (cmgoto): Add tty parameter. Pass it on to calccost().
20645 Use emacs_tputs() instead of tputs().
20646
20647 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20648 tputs().
20649 (current_tty): New variable, for cmputc().
20650 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20651
20652 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20653 (internal_condition_case, internal_condition_case_1)
20654 (internal_condition_case_2): Don't abort when x_catching_errors.
20655
20656 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20657 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20658 prevent crashes caused by bogus longjmps in read_char.
20659
20660 * keymap.h (Fset_keymap_parent): Add EXFUN.
20661
20662 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20663 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20664 Remove redundant definition.
20665
20666 * macfns.c (x_set_mouse_color, x_make_gc):
20667 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20668
20669 * w32term.c (x_free_frame_resources):
20670 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20671 (w32_initialize): Use the accessor macros for terminal characteristics.
20672
20673 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20674 Use the accessor macros for terminal characteristics.
20675 * msdos.c (internal_terminal_init): Use the accessor macros for
20676 terminal characteristics.
20677 (ScreenVisualBell, internal_terminal_init):
20678 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20679
20680 * termopts.h (no_redraw_on_reenter): Declare.
20681
20682 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20683 (mark_terminals, mark_ttys): Declare.
20684 (Fgarbage_collect): Call them.
20685 (mark_object): Mark buried_buffer_list.
20686
20687 * prefix-args.c: Include stdlib.h for exit.
20688
20689 * syssignal.h: Add comment.
20690
20691 * indent.c: Include stdio.h.
20692
20693 * window.h (Vinitial_window_system): Declare.
20694 (Vwindow_system): Delete declaration.
20695
20696 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20697
20698 * image.c (lookup_image): Don't initialize `c' until the xasserts
20699 have been run.
20700
20701 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20702 FRAME_FOREGROUND_PIXEL.
20703
20704 * print.c (print_preprocess): Don't lose print_depth levels while
20705 iterating.
20706
20707 * widget.c (update_from_various_frame_slots):
20708 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20709
20710 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20711 frames.
20712 (window_internal_height): Remove bogus make_number call.
20713 (init_window_once): Call make_terminal_frame with two zero parameters.
20714
20715 * fileio.c (Fread_file_name): Update comment.
20716
20717 * callint.c (Fcall_interactively):
20718 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20719 Make sure it is correctly unwound.
20720
20721 * xsmfns.c (x_session_close): New function.
20722
20723 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20724 Delete declarations.
20725
20726 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20727 (x_output): Remove background_pixel and foreground_pixel fields.
20728 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20729 (x_delete_device, x_session_close): Declare.
20730
20731 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20732 (read_filtered_event): Call `read_char' with a local
20733 `wrong_kboard_jmpbuf'.
20734
20735 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20736 Don't call single_kboard_state. Use FRAME_RIF.
20737
20738 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20739 systems.
20740
20741 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20742 (Fframe_with_environment, Fset_input_meta_mode)
20743 (Fset_quit_char): EXFUN.
20744 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20745 (init_sys_modes, reset_sys_modes): Update prototypes.
20746 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20747
20748 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20749 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20750 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20751 Delete declarations.
20752 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20753 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20754 New declarations.
20755
20756 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20757 already does that during init_display(). Call syms_of_keymap
20758 before syms_of_keyboard. Call `syms_of_terminal'.
20759 Call set_initial_environment, not set_process_environment.
20760 (shut_down_emacs): Call reset_all_sys_modes() instead of
20761 reset_sys_modes().
20762
20763 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20764 (internal_resolve_face_name, resolve_face_name_error): New functions.
20765 (resolve_face_name): Protect against loops and errors thrown by Fget.
20766 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20767 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20768
20769 * scroll.c: Replace CURTTY() with local variables throughout the
20770 file (where applicable).
20771 (calculate_scrolling, calculate_direct_scrolling)
20772 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20773 characteristics.
20774
20775 * keymap.c (Vfunction_key_map): Remove.
20776 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20777 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20778 (Vkey_translation_map): Remove.
20779 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20780 (Fdescribe_buffer_bindings)
20781 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20782 Update for terminal-local key-translation-map.
20783
20784 * Makefile.in (callproc.o): Update dependencies.
20785 (lisp, shortlisp): Add termdev.elc.
20786 (obj): Add terminal.o.
20787 (terminal.o): Add dependencies.
20788 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20789 (data.o, fns.o): Add termhooks.h dependency.
20790 (SOME_MACHINE_LISP): Add dnd.elc.
20791 (minibuf.o): Fix typo.
20792 Update dependencies.
20793
20794 * data.c (do_symval_forwarding, store_symval_forwarding)
20795 (find_symbol_value): Use the selected frame's keyboard, not
20796 current_kboard.
20797
20798 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20799 Vwindow_system.
20800
20801 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20802 Fmenu_bar_open.
20803 (syms_of_xmenu): Update defsubr.
20804 (mouse_position_for_popup, Fx_popup_menu)
20805 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20806 (set_frame_menubar, free_frame_menubar)
b97439ce 20807 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
20808 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20809 an X frame.
20810
20811 * xselect.c (x_own_selection): Abort if not an X frame.
20812 (some_frame_on_display): Check if it is an X frame.
20813 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20814
20815 * coding.c: Include frame.h and termhooks.h.
20816 (terminal_coding, keyboard_coding): Delete.
20817 (Fset_terminal_coding_system_internal)
20818 (Fset_keyboard_coding_system_internal)
20819 (Fkeyboard_coding_system)
20820 (Fterminal_coding_system): Add a terminal parameter.
20821 Get terminal_coding from the terminal.
20822 (init_coding_once): Don't call setup_coding_system here.
20823
20824 * dispextern.h (set_scroll_region, turn_off_insert)
20825 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20826 (tty_clear_end_of_line, tty_setup_colors)
20827 (delete_tty, updating_frame)
20828 (produce_special_glyphs, produce_glyphs, write_glyphs)
20829 (insert_glyphs): Remove.
20830 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20831 (tty_turn_off_highlight, get_tty_size): Add declaration.
20832 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20833
20834 * frame.h (enum output_method): Add output_initial.
20835 (struct x_output): Delete.
20836 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20837 Access foreground_pixel and background_pixel directly from the frame.
20838 (tty_display): Delete.
20839 (struct frame): Add buried_buffer_list, foreground_pixel,
20840 background_pixel and terminal. Delete kboard.
20841 (union output_data): Add tty.
20842 (FRAME_KBOARD): Get the kboard from the terminal.
20843 (FRAME_INITIAL_P): New macro.
20844 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20845 (Qterm_environment_variable, Qdisplay_environment_variable)
20846 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20847 New declarations.
20848
20849 * termchar.h (tty_output, tty_display_info): New structures.
20850 (tty_list): Declare.
20851 (FRAME_TTY, CURTTY): New macros.
20852 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20853 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20854 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20855 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20856
20857 * callproc.c: Include frame.h and termhooks.h, for terminal
20858 parameters.
20859 (add_env): New function.
20860 (child_setup): Use it.
20861 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20862 (getenv_internal): Fix get_terminal_param call.
20863 (Fgetenv_internal, egetenv): Update doc.
20864 (syms_of_callproc): Initialize Vprocess_environment to nil.
20865 Register and initialize them. Remove obsolete defvars. Update doc
20866 strings.
20867 (child_setup): Handle Vlocal_environment_variables.
20868 (getenv_internal): Add terminal parameter.
20869 Handle Vlocal_environment_variables.
20870 (Fgetenv_internal): Add terminal parameter.
20871 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20872 environment in a frame (not terminal) parameter. Update doc strings.
20873 (set_initial_environment): Rename from set_global_environment.
20874 Store Emacs environment in initial frame parameter.
20875
20876 * xdisp.c (redisplay_internal): Update references to
20877 `previous_terminal_frame'.
20878 (display_mode_line, Fformat_mode_line): Replace calls to
20879 `push_frame_kboard' with `push_kboard'.
20880 (get_glyph_string_clip_rects): Add extra parentheses and
20881 braces to prevent compiler warnings.
20882 (calc_pixel_width_or_height): Add xassert to check that the
20883 frame is alive. Don't call `lookup_image' on a termcap frame.
20884 (message2_nolog, message3_nolog, redisplay_internal)
20885 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20886 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20887 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20888 (Fx_display_pixel_width, Fx_display_pixel_height)
20889 (Fx_display_planes, Fx_display_color_cells)
20890 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20891 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20892 (Fx_display_backing_store, Fx_display_visual_class)
20893 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20894 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20895
20896 * xfns.c (x_set_foreground_color x_set_background_color)
20897 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20898 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20899 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20900 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20901 terminal that is being deleted.
20902 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20903 frame parameter, and make sure it overrides any user-supplied setting.
20904 (Fx_close_connection, Fx_synchronize): Unify argument names with
20905 the rest of the DEFUNs.
20906
20907 * dispnew.c (Fsend_string_to_terminal): Update call to
20908 `get_tty_terminal'.
20909 (Fredraw_frame, Fsend_string_to_terminal)
20910 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20911 FRAME_TERMCAP_P and FRAME_TTY.
20912 (window_change_signal): Don't believe width/height values that are
20913 impossibly small.
20914 (Vinitial_window_system): Rename from Vwindow_system.
20915 (termscript, Wcm, rif): Delete.
20916
20917 * termhooks.h (struct terminal): New struct containing the
20918 previously global text display hooks and new members NAME,
20919 DELETED and PARAM_ALIST.
20920 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20921 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20922 (FRAME_RIF): New macros.
20923 (get_terminal_param, get_device): New declarations.
20924 (termscript): Delete declaration.
20925
20926 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20927 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20928 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20929 FRAME_FOREGROUND_PIXEL.
20930 (x_fully_uncatch_errors): Disable definition.
20931 (x_scroll_bar_expose): Fix reference to foreground pixel.
20932 (XTread_socket): Disable loop on all X displays.
20933 (x_delete_terminal): Don't set terminal->deleted and let
20934 delete_terminal delete the frames on the terminal.
20935 (x_delete_display): Doc update to reflect changes in
20936 delete_terminal.
20937 (x_display_info) <terminal>: Move member earlier in the struct.
20938 (deleting_tty): Remove old variable.
20939 (Fsuspend_tty): Call clear_tty_hooks.
20940 (Fresume_tty, init_tty): Call set_tty_hooks.
20941 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20942 errors on X frames.
20943 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20944 (handle_one_xevent): Initialize `f' to NULL.
20945 (x_delete_terminal, x_create_terminal): New functions.
20946 (XTset_terminal_modes, XTreset_terminal_modes)
20947 (XTread_socket, x_connection_closed, x_term_init)
20948 (x_term_init, x_delete_display): Add terminal parameter.
20949 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20950 X connections.
20951
20952 * frame.c: Include termchar.h.
20953 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20954 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20955 (Qdisplay_environment_variable): New vars.
20956 (Fframep): Deal with output_initial.
20957 (Fframe-live-p): Doc fix.
20958 (Fwindow-system): New function.
20959 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20960 (make_terminal_frame): Don't create frames on a terminal that is
20961 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20962 (store_frame_param): Check for found_for_frame before calling XFRAME.
20963 (Fmake_terminal_frame): Handle NULL tty names correctly.
20964 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20965 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20966 frames to refer to a deleted frame in their 'environment parameter.
20967 (Fframe_with_environment): New function.
20968 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20969 (get_future_frame_param): New function.
20970 (Fmake_terminal_frame): Use it.
20971 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20972
20973 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20974 * sysdep.c (reset_sys_modes): Update for renames.
20975
20976 * keyboard.c (tty_read_avail_input): New function.
20977 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20978 (syms_of_keyboard): Defsubr them.
20979 (Fset_input_meta_mode, Fset_quit_char): New functions.
20980 (Fset_input_mode): Split to above functions.
20981 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20982 parameter. Use it in call to `read_char'.
20983 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20984 Set wrong_kboard_jmpbuf correctly in recursive calls.
20985 Use current_kboard to access Vkeyboard_translate_table.
20986 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20987 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20988 Update longjmp invocations. Remember the original current_kboard,
20989 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20990 changes it. Comment out unnecessary calls to
20991 `record_single_kboard_state' and `any_kboard_state'.
20992 Update recursive calls.
20993 (wrong_kboard_jmpbuf): Remove global variable.
20994 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
20995 Handle deleted interrupted_kboards correctly; that is a legal
20996 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
20997 and read_char calls. Abort if interrupted_kboard died in read_char.
20998 (any_kboard_state, single_kboard_state)
20999 (push_frame_kboard): Remove function.
21000 (pop_kboard): Switch out of single_kboard mode if the kboard has
21001 been deleted. Remove unused variable. Help debugging by not
21002 changing current_kboard unnecessarily. Set current_kboard to the
21003 kboard of the selected frame when the stored kboard object has
21004 been deleted before pop_kboard.
21005 (temporarily_switch_to_single_kboard): Change first parameter to a
21006 frame pointer. Throw an error when caller wants to change kboards
21007 while in single_kboard mode. Don't push_kboard if we weren't in
21008 single kboard state. Don't pop_kboard if we popped into any
21009 kboard state.
21010 (restore_kboard_configuration): Abort if pop_kboard changed the
21011 kboard in single_kboard mode. Call pop_kboard only after setting
21012 up single_kboard mode.
21013 (Frecursive_edit): Switch to single_kboard mode only in nested
21014 command loops.
21015 (cmd_error, command_loop, command_loop_1, timer_check):
21016 Comment out unnecessary call to `any_kboard_state' and
21017 `record_single_kboard_state'.
21018 (delete_kboard): Exit single_kboard mode if we have just deleted
21019 that kboard. Use FRAME_KBOARD.
21020 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21021 `fatal_error_signal'.
21022 (record_single_kboard_state): Don't push_kboard if we weren't in
21023 single kboard state. Don't pop_kboard if we popped into any
21024 kboard state.
21025 (push_frame_kboard): Rename to push_kboard.
21026 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21027 (read_avail_input): Read input from all terminals.
21028 (mark_kboards): Also mark Vkeyboard_translate_table.
21029 (kbd_buffer_store_event_hold): Simplify condition.
21030 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21031 (Vkeyboard_translate_table): Move to struct kboard.
21032 (init_kboard): Initialize Vkeyboard_translate_table.
21033 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21034 Vkeyboard_translate_table. Update doc strings. Update docs of
21035 local-function-key-map and function-key-map.
21036
21037 * terminal.c: New file.
21038
21039 * term.c: Include errno.h.
21040 (Vring_bell_function, device_list, initial_device)
21041 (next_device_id, ring_bell, update_begin, update_end)
21042 (set_terminal_window, cursor_to, raw_cursor_to)
21043 (clear_to_end, clear_frame, clear_end_of_line)
21044 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21045 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21046 (syms_of_term): Move their initialization to terminal.c.
21047 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21048 (Ftty_display_color_cells)
21049 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21050 (clear_tty_hooks, set_tty_hooks)
21051 (init_tty, maybe_fatal): New functions.
21052 (Ftty_type): Return nil if terminal is not on a tty instead of
21053 throwing an error. Doc update.
21054 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21055 Doc update. Initialize new subrs and variables.
21056 (delete_tty): Use terminal->deleted.
21057 (tty_set_terminal_modes): Rename from set_terminal_modes.
21058 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21059 (set_scroll_region): Rename to `tty_set_scroll_region'.
21060 (turn_on_insert): Rename to `tty_turn_on_insert'.
21061 (turn_off_insert): Rename to `tty_turn_off_insert'.
21062 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21063 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21064 (toggle_highligh): Rename to `tty_toggle_highlight'.
21065 (background_highlight): Rename to `tty_background_highlight'.
21066 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21067 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21068 (tty_set_scroll_region, tty_background_highlight)
21069 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21070 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21071 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21072 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21073 Add static modifier.
21074 (tty_reset_terminal_modes, tty_set_terminal_window)
21075 (tty_set_scroll_region, tty_background_highlight)
21076 (tty_highlight_if_desired, tty_cursor_to)
21077 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21078 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21079 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21080 renames.
21081
210822007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21083
21084 * keyboard.c: Qrtl is new.
21085 (parse_tool_bar_item): Handle :rtl keyword.
21086 (syms_of_keyboard): Intern :rtl keyword.
21087
21088 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21089
21090 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21091 so no Lisp code is executed.
21092 (file_for_image, find_rtl_image): New functions.
21093 (xg_get_image_for_pixmap): Use file_for_image.
21094 (update_frame_tool_bar): If direction is RTL, use RTL image if
21095 defined. Use Gtk stock images if defined.
21096
210972007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21098
21099 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21100 for nonexistent or zero-width glyph in composition glyph.
21101
211022007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21103
21104 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21105
21106 * xdisp.c (Finvisible_p): New function.
21107 (syms_of_xdisp): defsubr it.
21108
211092007-08-24 Juanma Barranquero <lekktu@gmail.com>
21110
21111 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21112 Doc fixes.
21113
211142007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21115
21116 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21117
211182007-08-24 Martin Rudalics <rudalics@gmx.at>
21119
21120 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21121 whether decoding has modified buffer contents.
21122
211232007-08-24 Jason Rumney <jasonr@gnu.org>
21124
21125 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21126 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21127 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21128 (init_svg_functions) [HAVE_NTGUI]: New function.
21129 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21130 (svg_load_image): Use them.
21131 (svg_load_image) [HAVE_NTGUI]: Implement background.
21132
211332007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21134
21135 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21136 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21137 (LIBX): Remove @RSVG_LIBS@.
21138 (LIBES): Add $(RSVG_LIBS).
21139
21140 * image.c (svg_load_image): Blend with specified background if exists.
21141 Use IMAGE_BACKGROUND. Add Mac OS Support.
21142
21143 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21144 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21145 Remove macros.
21146 [MAC_OSX] (socket_callback): Do nothing.
21147 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21148 ReceiveNextEvent.
21149 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21150 socket_callback.
21151 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21152
211532007-08-22 Glenn Morris <rgm@gnu.org>
21154
21155 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21156
211572007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21158
21159 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21160
21161 * image.c: Add support for SVG images. Some additional comments
21162 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21163 (svg_image_p): New function to test for SVG image.
21164 (svg_load): New function to load SVG image.
21165 (svg_load_image): New function, helper for svg_load.
21166 (Qsvg): New Lisp_object.
21167 (svg_keyword_index): New enum.
21168 (svg_format): New static `image_keyword' struct.
21169 (svg_type): New static `image_type' struct.
21170 (librsvg/rsvg.h): Include it.
21171
211722007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21173
21174 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21175
211762007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21177
21178 * lread.c (Qold_style_backquotes): New var.
21179 (syms_of_lread): Init and staticpro it.
21180 (load_warn_old_style_backquotes): New fun.
21181 (Fload): Use them to warn about old style backquotes.
21182 (end_of_file_error, Fload): Remove unused vars.
21183
21184 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21185
21186 * lread.c (Vold_style_backquotes): New var.
21187 (syms_of_lread): Init and export it to Elisp.
21188 (read1): Set it when we find an old-style (back)quote.
21189
211902007-08-22 Jason Rumney <jasonr@gnu.org>
21191
21192 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21193
211942007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21195
21196 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21197
211982007-08-19 Richard Stallman <rms@gnu.org>
21199
21200 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21201
212022007-08-19 Andreas Schwab <schwab@suse.de>
21203
21204 * alloc.c (pure): Round PURESIZE up.
21205
212062007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21207
21208 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21209 active frame.
21210
212112007-08-16 Richard Stallman <rms@gnu.org>
21212
21213 * eval.c (Fcommandp): Add parens to clarify.
21214
21215 * minibuf.c (Fall_completions): Use enum for type of table.
21216
21217 * emacs.c (USAGE2): Improve text.
21218
212192007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21220
21221 * term.c (tty_default_color_capabilities): Declare static
21222 variables in file scope, to avoid HPUX compiler problem.
21223
212242007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21225
21226 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21227 to gtk_toolbar_insert.
21228
212292007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21230
21231 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21232
21233 * insdel.c (reset_var_on_error): New fun.
21234 (signal_before_change, signal_after_change):
21235 Use it to reset (after|before)-change-functions to nil in case of error.
21236 Bind inhibit-modification-hooks to t.
21237 Don't bind (after|before)-change-functions to nil while they run.
21238
212392007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21240
21241 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21242 filling pixmap with stippled background.
21243
212442007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21245
21246 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21247 Don't use invisible frame as parent window for repositioning.
21248
212492007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21250
21251 * print.c (new_backquote_output): Rename from old_backquote_output.
21252 (print): Inverse its logic (according to its name) so as to match the
21253 behavior of new_backquote_flag in lread.c.
21254
212552007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21256
21257 * gmalloc.c (posix_memalign): New function.
21258
21259 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21260 ActivateControl/DeactivateControl here.
21261 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21262 frame-notice-user-settings is non-nil.
21263 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21264 for kEventParamFMFontStyle.
21265 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21266 mac_pass_command_to_system and mac_pass_control_to_system here.
21267 (XTread_socket): Call ActivateControl/DeactivateControl here.
21268 (XTread_socket) [TARGET_API_MAC_CARBON]:
21269 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21270 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21271 for window repositioning.
21272
212732007-08-08 Glenn Morris <rgm@gnu.org>
21274
21275 * Replace `iff' in doc-strings and comments.
21276
212772007-08-07 Chong Yidong <cyd@stupidchicken.com>
21278
21279 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21280
212812007-08-07 Martin Rudalics <rudalics@gmx.at>
21282
21283 * fileio.c (Finsert_file_contents): Run format-decode and
21284 after_insert_file_functions on entire buffer when REPLACE is
21285 non-nil and inhibit modification_hooks and point_motion_hooks.
21286 For consistency, run after_insert_file_functions iff something
21287 got inserted. Move signal_after_change and update_compositions
21288 after code running after_insert_file_functions. Make sure that
21289 undo_list doesn't record intermediate steps of the decoding process.
21290
212912007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21292
21293 * emacs.c (main)
21294 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21295 Call malloc_enable_thread on interactive startup.
21296
21297 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21298 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21299 [USE_PTHREAD]: Conditionalize with it.
21300 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21301 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21302 New functions.
21303
213042007-08-06 Chong Yidong <cyd@stupidchicken.com>
21305
21306 * xdisp.c (redisplay_window): When restoring original buffer
21307 position, make sure it is still valid.
21308
21309 * image.c (png_load): Ignore png-supplied background color.
21310
213112007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21312
21313 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21314 Use kCFAbsoluteTimeIntervalSince1970.
21315
21316 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21317 New variable.
21318 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21319 event loop should be quit.
21320 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21321 Quit dialog event loop if quit_dialog_event_loop is set.
21322
21323 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21324 (Selection): New typedef. Use instead of ScrapRef.
21325 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21326 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21327 (mac_clear_selection): Rename from clear_scrap.
21328 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21329 scrap_has_target_type. All uses changed.
21330 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21331 (mac_selection_has_target_p): New functions.
21332 (mac_put_selection_value): Rename from put_scrap_string.
21333 (mac_get_selection_value): Rename from get_scrap_string.
21334 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21335 (put_scrap_private_timestamp, scrap_has_target_type)
21336 (get_scrap_private_timestamp): Remove functions.
21337 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21338 (x_own_selection, x_get_local_selection):
21339 Use mac_valid_selection_value_p.
21340 (x_own_selection): Don't use put_scrap_private_timestamp.
21341 Record OWNERSHIP-INFO into Vselection_alist instead.
21342 (x_get_local_selection): Don't check type if request is local.
21343 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21344 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21345
213462007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21347
21348 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21349 add comment explaining why.
21350
213512007-08-03 Richard Stallman <rms@gnu.org>
21352
21353 * fileio.c (Fvisited_file_modtime): Use make_time.
21354
213552007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21356
21357 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21358 build.
21359
213602007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21361
21362 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21363
213642007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21365
21366 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21367
213682007-07-30 Richard Stallman <rms@gnu.org>
21369
21370 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21371
213722007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21373
21374 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21375
213762007-07-28 Nick Roberts <nickrob@snap.net.nz>
21377
21378 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21379 remote default-directory.
21380
21381 * buffer.c (mode-line-format): Update doc string.
21382
213832007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21384
21385 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21386 scroll bar gap.
21387 (x_scroll_bar_create): Set bar->fringe_extended_p.
21388 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21389 on frame edge. Check fringe background extension. Don't clear
21390 extended fringe background area.
21391
21392 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21393 (w32_fill_area): Enclose multiple statements with do ... while (0).
21394
21395 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21396 Extend fringe background to scroll bar gap.
21397 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21398 Set bar->fringe_extended_p.
21399 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21400 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21401 background extension. Don't clear extended fringe background area.
21402
21403 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21404 New member fringe_extended_p.
21405
214062007-07-25 Glenn Morris <rgm@gnu.org>
21407
21408 * Relicense all FSF files to GPLv3 or later.
21409
21410 * COPYING: Switch to GPLv3.
21411
214122007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21413
21414 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21415
21416 * data.c (Finteractive_form): Check for the presence of an
21417 `interactive-form' symbol property more thoroughly.
21418
21419 * data.c (Finteractive_form): Use an `interactive-form' property if
21420 present, analogous to the function-documentation property.
21421
214222007-07-24 Jason Rumney <jasonr@gnu.org>
21423
21424 * w32fns.c (x_real_positions): Get real position from OS instead of
21425 calculating it.
21426
214272007-07-23 Jason Rumney <jasonr@gnu.org>
21428
21429 * filelock.c (current_lock_owner): Allow for @ sign in username.
21430
214312007-07-22 Nick Roberts <nickrob@snap.net.nz>
21432
21433 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21434 remote default-directory.
21435
21436 * buffer.c (mode-line-format): Describe above case in doc string.
21437
214382007-07-20 Eli Zaretskii <eliz@gnu.org>
21439
21440 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21441 Define if not defined.
21442
214432007-07-18 Jason Rumney <jasonr@gnu.org>
21444
21445 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21446
214472007-07-18 Richard Stallman <rms@gnu.org>
21448
21449 * data.c (Fsetq_default): Doc fix.
21450
21451 * eval.c (Fsetq): Doc fix.
21452
214532007-07-18 Juanma Barranquero <lekktu@gmail.com>
21454
21455 * coding.c (Ffind_operation_coding_system):
21456 * eval.c (For, Fand): Doc fixes.
21457 Reported by Johan Bockgård.
21458
214592007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21460
21461 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21462
21463 * xterm.h: Declare x_ewmh_activate_frame.
21464
21465 * xterm.c (x_ewmh_activate_frame): New function.
21466 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21467
214682007-07-17 Martin Rudalics <rudalics@gmx.at>
21469
21470 * window.c (Fdisplay_buffer): If largest or LRU window is the
21471 only window, split it even if it is not eligible for splitting.
21472 This restores the original behavior broken by the 2007-07-15
21473 change.
21474
214752007-07-17 Glenn Morris <rgm@gnu.org>
21476
21477 * abbrev.c (abbrev_check_chars): New function.
21478 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21479 Call abbrev_check_chars to check abbrev characters are word
21480 constituents. Doc fix.
21481
214822007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21483
21484 * process.c (Fstart_process, Fmake_network_process)
21485 (read_process_output): Fix up last changes.
21486
214872007-07-16 Eli Zaretskii <eliz@gnu.org>
21488
21489 * makefile.w32-in (clean): Don't delete *~.
21490
214912007-07-16 Andreas Schwab <schwab@suse.de>
21492
21493 * window.c (Fdisplay_buffer): Use NILP.
21494 (Fset_window_scroll_bars): Likewise.
21495
214962007-07-15 Martin Rudalics <rudalics@gmx.at>
21497
21498 * window.c (window_min_size_2): New function.
21499 (window_min_size_1, size_window, Fdisplay_buffer)
21500 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21501 windows without mode- or header-lines when window-min-height is
21502 too small.
21503 (size_window): Reset nodelete_p after testing it, following an
21504 earlier note by Kim F. Storm.
21505 (display_buffer): Do not set split_height_threshold to twice the
21506 value of window_min_height to avoid changing the value of a
21507 customizable variable. Rather explicitly check whether the
21508 height of the window that shall be splitted is at least as large
21509 as split_height_threshold.
21510 (Fwindow_full_width_p): New defun.
21511 (syms_of_window): Defsubr it.
21512
21513 * window.h: Add EXFUN for Fwindow_full_width_p.
21514
215152007-07-14 Jason Rumney <jasonr@gnu.org>
21516
21517 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21518
215192007-07-14 Richard Stallman <rms@gnu.org>
21520
21521 * eval.c (maybe_call_debugger): New function.
21522 (find_handler_clause): Use maybe_call_debugger.
21523 Call it when the handler says `debug'.
21524 Eliminate DEBUGGER_VALUE_PTR.
21525 (Fsignal): Eliminate debugger_value.
21526 (Qdebug): New variable.
21527 (syms_of_eval): Initialize it.
21528
215292007-07-14 Juanma Barranquero <lekktu@gmail.com>
21530
21531 * eval.c (Fprogn):
21532 * keyboard.c (Ftrack_mouse):
21533 * print.c (Fwith_output_to_temp_buffer):
21534 * window.c (Fsave_window_excursion): Doc fix.
21535
215362007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21537
21538 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21539
215402007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21541
21542 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21543 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21544 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21545 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21546 Remove unused encoding_carryover.
21547 * process.c: Adjust all functions accordingly.
21548
215492007-07-12 Richard Stallman <rms@gnu.org>
21550
21551 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21552
215532007-07-11 Jason Rumney <jasonr@gnu.org>
21554
21555 * makefile.w32-in (LIBS): Include OLE32.
21556
21557 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21558 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21559
215602007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21561
21562 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21563 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21564 from a Lisp_Object into a bare pointer.
21565 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21566 Adjust the code correspondingly.
21567
21568 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21569
21570 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21571 (term_show_mouse_face): Remove unused var `j'.
21572 (handle_one_term_event): Remove unused vars `i' and `j'.
21573 Don't cast return value of ttyname since it's not necessary.
21574
215752007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21576
21577 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21578 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21579
21580 * fns.c (map_char_table): Use an array of int for `indices' rather than
21581 an array of Lisp_Objects (which are only ever integers anyway).
21582 (Fmap_char_table): Update caller.
21583 * lisp.h: Update prototype.
21584 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21585 * fontset.c (Ffontset_info):
21586 * casetab.c (set_case_table): Update callers.
21587
21588 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21589
21590 * keymap.c (struct accessible_keymaps_data)
21591 (struct where_is_internal_data): New structures.
21592 (accessible_keymaps_1, where_is_internal_1): Use them to change
21593 interface to adhere to the one used by map_keymap.
21594 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21595 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21596
21597 * keymap.h (map_keymap_function_t): More informative prototype.
21598
215992007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21600
21601 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21602 (looking_at_1): Don't change search_regs and last_thing_searched
21603 if `inhibit-changing-match-data' is non-nil.
21604 (string_match_1, search_buffer, set_search_regs): Likewise.
21605 (syms_of_search): Add Lisp level definition for
21606 `inhibit-changing-match-data' and set it to nil.
21607 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21608 start and end of the match, instead of using values in search_regs.
21609
216102007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21611
21612 * minibuf.c (Fcompleting_read): New value `confirm-only'
21613 for `require-match'.
21614
216152007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21616
21617 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21618 part of the 2007-06-27 change to syms_of_fileio.
21619
216202007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21621
21622 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21623 Check WINDOWP before using XWINDOW. Consolidate return statements.
21624
216252007-06-27 Richard Stallman <rms@gnu.org>
21626
21627 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21628
216292007-06-27 Juanma Barranquero <lekktu@gmail.com>
21630
21631 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21632
216332007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21634
21635 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21636 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21637 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21638 (_free_internal, memalign): Use them.
21639 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21640 Initialize to PTHREAD_MUTEX_INITIALIZER.
21641 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21642 (morecore_nolock): Rename from morecore. All uses changed.
21643 Use only nolock versions of internal allocation functions.
21644 (_malloc_internal_nolock, _realloc_internal_nolock)
21645 (_free_internal_nolock): New functions created from
21646 _malloc_internal, _realloc_internal, and _free_internal.
21647 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21648 Copy hook value to automatic variable before its use.
21649 (memalign): Copy hook value to automatic variable before its use.
21650
216512007-06-26 Kenichi Handa <handa@m17n.org>
21652
21653 * coding.c (Ffind_operation_coding_system): Docstring improved.
21654 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21655
216562007-06-25 David Kastrup <dak@gnu.org>
21657
21658 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21659 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21660 cater for additional parameter.
21661
21662 * keymap.h: Adjust number of parameters to `current-active-maps'.
21663
21664 * doc.c (Fsubstitute_command_keys): Adjust call of
21665 `current-active-maps'.
21666
216672007-06-25 David Kastrup <dak@gnu.org>
21668
21669 * callint.c (Fcall_interactively): Make the parsing of interactive
21670 specs somewhat more readable.
21671
216722007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21673
21674 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21675 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21676 if extended background has already been filled.
21677
216782007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21679
21680 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21681 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21682
21683 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21684 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21685 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21686 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21687 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21688 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21689 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21690 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21691 Run timers during dialog popup.
21692 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21693
216942007-06-21 Jason Rumney <jasonr@gnu.org>
21695
21696 * image.c (convert_mono_to_color_image): Swap fore and background.
21697
216982007-06-20 Jason Rumney <jasonr@gnu.org>
21699
21700 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21701 (w32_free_bdf_font): Unmap memory not handle.
21702
217032007-06-20 Sam Steingold <sds@gnu.org>
21704
21705 * gmalloc.c (__morecore): Fix the declaration to comply with the
21706 definition.
21707
217082007-06-20 Juanma Barranquero <lekktu@gmail.com>
21709
21710 * w32term.c (w32_delete_display): Remove leftover declaration.
21711 (w32_define_cursor, w32_initialize): Make static.
21712
21713 * w32.c (_wsa_errlist): Fix typo in error message.
21714 (init_environment): Ignore any environment variable from the
21715 registry having a null value.
21716
217172007-06-20 Glenn Morris <rgm@gnu.org>
21718
21719 * Makefile.in (LIBGIF): Default to -lgif.
21720
217212007-06-17 Jason Rumney <jasonr@gnu.org>
21722
21723 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21724 unicode strings.
21725
217262007-06-16 Juanma Barranquero <lekktu@gmail.com>
21727
21728 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21729 Fix typo in docstring.
21730
217312007-06-16 Eli Zaretskii <eliz@gnu.org>
21732
21733 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21734 and their keybindings.
21735
217362007-06-15 Chong Yidong <cyd@stupidchicken.com>
21737
21738 * composite.c (update_compositions): Fix last fix.
21739
217402007-06-14 Jason Rumney <jasonr@gnu.org>
21741
21742 * w32.c (get_process_times_fn): New function pointer.
21743 (globals_of_w32): Intialize it if present in kernel32.dll.
21744 (w32_get_internal_run_time): New function.
21745
21746 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21747
217482007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21749
21750 * composite.c (update_compositions): Check the validness of
21751 compositions.
21752
217532007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21754
21755 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21756 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21757
21758 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21759 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21760
21761 * macgui.h (USE_MAC_TOOLBAR): New define.
21762
21763 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21764 Return immediately unless popup is activated.
21765
21766 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21767 background to scroll bar gap.
21768 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21769 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21770 scroll bars on frame edge. Check fringe background extension.
21771 Don't clear extended fringe background area.
21772 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21773 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21774 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21775 [USE_MAC_TOOLBAR]: New macros.
21776 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21777 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21778 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21779 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21780 [USE_MAC_TOOLBAR]: New functions.
21781 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21782 manually if previous repositioning has failed.
21783 (mac_handle_keyboard_event): Use precomputed event kind.
21784 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21785 as tool bar item click. Handle mouse movement over tool bar items.
21786
21787 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21788 toolbar_win_gravity.
21789 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21790 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21791 Add externs.
21792
21793 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21794 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21795
217962007-06-14 Chong Yidong <cyd@stupidchicken.com>
21797
21798 * image.c (search_image_cache): Remove unused variable.
21799
218002007-06-13 Chong Yidong <cyd@stupidchicken.com>
21801
21802 * xfns.c, xmenu.c: Link to xaw3d if available.
21803
218042007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21805
21806 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21807 frame_foreground and frame_background.
21808
21809 * image.c (lookup_image): Save frame foreground and background colors.
21810 (search_image_cache): Check if saved and current frame colors match.
21811
218122007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21813
21814 * regex.c (regex_compile): Remove the `regnum' counter.
21815 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21816
218172007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21818
21819 * term.c: Include intervals.h to declare Fget_text_property.
21820
218212007-06-10 Jason Rumney <jasonr@gnu.org>
21822
21823 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21824
218252007-06-08 Juanma Barranquero <lekktu@gmail.com>
21826
21827 * callint.c (Fcall_interactively):
21828 * editfns.c (Fdelete_and_extract_region):
21829 * fileio.c (Fread_file_name):
21830 * fns.c (Fmapconcat):
21831 * keyboard.c (cmd_error_internal):
21832 * keymap.c (Fkey_description):
21833 * lread.c (openp):
21834 * minibuf.c (read_minibuf):
21835 * search.c (wordify):
21836 * sunfns.c (sel_read):
21837 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21838 * xfns.c (x_default_scroll_bar_color_parameter):
21839 * xmenu.c (menu_help_callback):
21840 * xselect.c (Fx_get_atom_name):
21841 * xterm.c (x_term_init): Use empty_unibyte_string.
21842
218432007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21844
21845 * alloc.c (init_strings): Initialize canonical empty strings.
21846 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21847 canonical empty string when the requested size is 0.
21848
21849 * emacs.c (empty_unibyte_string): Rename from empty_string.
21850 (empty_multibyte_string): New canonical empty string.
21851 (syms_of_emacs): Don't initialize empty_string.
21852
21853 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21854 string, if appropriate.
21855 (empty_unibyte_string, empty_multibyte_string): New externs.
21856 (empty_string): Remove extern.
21857
21858 * lread.c (syms_of_lread): Use empty_unibyte_string.
21859
218602007-06-07 Jason Rumney <jasonr@gnu.org>
21861
21862 * s/ms-w32.h: Don't define HAVE_TZNAME.
21863
21864 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21865
218662007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21867
21868 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21869
21870 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21871 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21872
21873 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21874 Don't call next handler.
21875 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21876 Remove argument. Install handler to application.
21877 (set_frame_menubar): Don't change deep_p.
21878 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21879 FRAME_OUTER_TO_INNER_DIFF_Y.
21880 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21881 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21882 [HAVE_DIALOGS]: New macros.
21883 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21884 Use them.
21885 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21886
21887 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21888 init_service_handler. All callers changed. Return OSStatus value.
21889
21890 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21891 All callers changed so as not to call SetPortWindowPort.
21892 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21893 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21894 mac_draw_string_common.
21895 (mac_draw_image_string_qd): Likewise.
21896 (mac_draw_string_common): Use them. Add INLINE.
21897 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21898 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21899 GetGlobalMouse.
21900 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21901 and FRAME_OUTER_TO_INNER_DIFF_Y.
21902 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21903 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21904 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21905 repositioning window to mac_handle_window_event.
21906 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21907 saving window location to mac_handle_window_event
21908 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21909 (install_menu_target_item_handler): Remove argument in extern.
21910 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21911 Also accept command events.
21912 (do_keystroke): New function created from XTread_socket.
21913 (init_command_handler): Remove functions.
21914 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21915 and save window location by kEventWindowShowing and kEventWindowHiding
21916 handlers here. Don't call next handler for window state change and
21917 focus events.
21918 (mac_handle_application_event, mac_handle_keyboard_event)
21919 [TARGET_API_MAC_CARBON]: New functions.
21920 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21921 kEventWindowShowing and kEventWindowHiding events. Move installation
21922 of mouse, font, text input and menu target item handlers to
21923 install_application_handler.
21924 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21925 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21926 New function.
21927 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21928 Register it.
21929 (XTread_socket) [TARGET_API_MAC_CARBON]:
21930 Consolidate SendEventToEventTarget calls.
21931 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21932 Move application activation handler to mac_handle_application_event.
21933 Move keyboard handler to mac_handle_keyboard_event.
21934 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21935 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21936 init_command_handler. Call install_application_handler.
21937
21938 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21939 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21940
219412007-06-07 Glenn Morris <rgm@gnu.org>
21942
21943 * emacs.c (main): Use `emacs-copyright' in --version output.
21944
219452007-06-06 Chong Yidong <cyd@stupidchicken.com>
21946
21947 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21948
219492007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21950
21951 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21952
21953 * macgui.h: Replace WindowPtr with WindowRef.
21954
21955 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21956 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21957 Replace ControlHandle with ControlRef.
21958 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21959
21960 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21961 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21962 Replace ControlHandle with ControlRef.
21963 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21964 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21965
21966 * macterm.h (struct scroll_bar): Rename member control_handle_low
21967 and control_handle_high to control_ref_low and control_ref_high.
21968 All uses changed.
21969 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21970 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21971 respectively. All uses changed.
21972 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21973 (install_window_handler, remove_window_handler): Replace WindowPtr
21974 with WindowRef in externs.
21975
219762007-06-05 Juanma Barranquero <lekktu@gmail.com>
21977
21978 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21979
219802007-06-03 Nick Roberts <nickrob@snap.net.nz>
21981
21982 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21983
21984 * frame.c (Fmouse_position, Fmouse_pixel_position):
21985 Condition on HAVE_GPM too.
21986
21987 * term.c (term_mouse_highlight): Remove unused variables.
21988 (Fterm_open_connection): Set gpm_zerobased to 1.
21989 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21990 Use zero based co-ordinates.
21991 (handle_one_term_event): Report a drag as mouse movement too.
21992
21993 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
21994
219952007-06-03 Chong Yidong <cyd@stupidchicken.com>
21996
21997 * image.c (search_image_cache): New function. Require background
21998 color match if background color is unspecified in the image spec.
21999 (uncache_image, lookup_image): Use it.
22000
220012007-06-01 Juanma Barranquero <lekktu@gmail.com>
22002
22003 * window.c (Fshrink_window): Reflow docstring.
22004
220052007-06-02 Chong Yidong <cyd@stupidchicken.com>
22006
22007 * Version 22.1 released.
22008
220092007-06-01 Richard Stallman <rms@gnu.org>
22010
22011 * xfns.c (x_encode_text): Add GCPRO.
22012
220132007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22014
22015 * xfns.c (x_set_name_internal): Save encoded name before
22016 x_encode_text in case string data is relocated.
22017
220182007-05-31 Richard Stallman <rms@gnu.org>
22019
22020 * buffer.c (syms_of_buffer): Doc fix.
22021
220222007-05-30 Nick Roberts <nickrob@snap.net.nz>
22023
22024 * sysdep.c (init_sys_modes): Add rather than replace with
22025 O_NONBLOCK.
22026
22027 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22028 term_mouse_moveto.
22029
22030 * termhooks.h (term_mouse_moveto): New extern.
22031
22032 * term.c (mouse_face_window): Rename...
22033 (Qmouse_face_window): ...to this.
22034 (term_show_mouse_face, term_clear_mouse_face)
22035 (term_mouse_highlight): Use Qmouse_face_window.
22036 (term_mouse_moveto): New function.
22037 (term_mouse_position): Make it work.
22038 (syms_of_term): Uncomment assignment to mouse_position_hook.
22039 Staticpro Qmouse_face_window.
22040
220412007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22042
22043 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22044 around current_column call.
22045
220462007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22047
22048 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22049 * xdisp.c (next_element_from_buffer):
22050 * window.c (delete_window):
22051 * term.c (term_mouse_highlight):
22052 * msdos.c (getdefdir):
22053 * macterm.c (mac_create_bitmap_from_bitmap_data)
22054 (init_font_name_table):
22055 * fns.c (Fsxhash):
22056 * data.c (Fmake_local_variable):
22057 * ccl.c (ccl_driver): Likewise.
22058
220592007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22060
22061 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22062 Call mac_wakeup_from_rne on window size change.
22063
220642007-05-25 Chong Yidong <cyd@stupidchicken.com>
22065
22066 * image.c (uncache_image): Fix typo.
22067
220682007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22069
22070 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22071
220722007-05-22 Richard Stallman <rms@gnu.org>
22073
22074 * xterm.c (x_connection_closed): Remove NO_RETURN.
22075
220762007-05-22 Martin Rudalics <rudalics@gmx.at>
22077
22078 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22079
220802007-05-21 Chong Yidong <cyd@stupidchicken.com>
22081
22082 * image.c (uncache_image): New function.
22083 (Fimage_refresh): New function.
22084
220852007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22086
22087 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22088
220892007-05-20 Nick Roberts <nickrob@snap.net.nz>
22090
22091 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22092 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22093
220942007-05-20 Nick Roberts <nickrob@snap.net.nz>
22095
22096 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22097 conditional on [HAVE_GPM_H].
22098
220992007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22100
22101 * syntax.c (skip_chars): Update syntax-table only after we checked that
22102 the new location is valid.
22103
221042007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22105
22106 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22107 mac_get_window_bounds.
22108
221092007-05-20 Nick Roberts <nickrob@snap.net.nz>
22110
22111 * Makefile.in (LIBGPM): Allow it to be set from configure.
22112 If set then link Emacs with it.
22113
22114 * config.in: Regenerate.
22115
22116 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22117 New externs.
22118
22119 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22120 Include gpm.h.
22121 (handle_one_term_event, term_gpm): New externs.
22122
22123 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22124 and allow it to be interrupted by SIGIO.
22125
22126 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22127 (wait_reading_process_output): Wait on gpm_fd too.
22128 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22129 (add_gpm_wait_descriptor_called_flag): New variable.
22130 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22131
22132 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22133 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22134 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22135 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22136 (make_lispy_event): Add case GPM_CLICK_EVENT.
22137 (read_avail_input): Handle mouse input.
22138
22139 * term.c (write_glyphs_with_face): New function.
22140 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22141 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22142 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22143 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22144 (last_mouse_x, last_mouse_y): New variables.
22145 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22146 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22147 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22148 (Fterm_close_connection): New functions.
22149 (term_init): Initialise mouse_face_window.
22150
221512007-05-19 Chong Yidong <cyd@stupidchicken.com>
22152
22153 * xdisp.c (redisplay_window): If first window line is a
22154 continuation line, recompute the new window start instead of
22155 recentering.
22156
221572007-05-18 Glenn Morris <rgm@gnu.org>
22158
22159 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22160 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22161
221622007-05-17 Glenn Morris <rgm@gnu.org>
22163
22164 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22165
221662007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22167
22168 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22169 dead key repeat and up events.
22170
221712007-05-14 Chong Yidong <cyd@stupidchicken.com>
22172
22173 * image.c (pbm_load): Check image size for monochrome pbm.
22174
221752007-05-13 Chong Yidong <cyd@stupidchicken.com>
22176
22177 * xterm.c (XTread_socket): Revert last change.
22178
221792007-05-12 Chong Yidong <cyd@stupidchicken.com>
22180
22181 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22182
22183 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22184
221852007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22186
22187 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22188 mixup (YAILOM).
22189
221902007-05-07 Andreas Schwab <schwab@suse.de>
22191
22192 * keymap.c (Flookup_key): Fix typo in last change.
22193
221942007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22195
22196 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22197 mapping for unibyte strings.
22198
221992007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22200
22201 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22202 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22203
222042007-04-29 Richard Stallman <rms@gnu.org>
22205
22206 * insdel.c (replace_range): For undo, record insertion first.
22207
222082007-04-29 Andreas Schwab <schwab@suse.de>
22209
22210 * lisp.h (VECSIZE): Use OFFSETOF.
22211
222122007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22213
22214 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22215 disabled lines.
22216
222172007-04-28 Richard Stallman <rms@gnu.org>
22218
22219 * lread.c (read_escape): In a string, \s is always space.
22220
222212007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22222
22223 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22224
22225 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22226 submenu for menu bar items.
22227
22228See ChangeLog.10 for earlier changes.
22229
22230;; Local Variables:
22231;; coding: utf-8
22232;; add-log-time-zone-rule: t
aac0c6e3
MR
22233;; End:
22234
e3eb1dae 22235 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22236
22237 This file is part of GNU Emacs.
22238
22239 GNU Emacs is free software: you can redistribute it and/or modify
22240 it under the terms of the GNU General Public License as published by
22241 the Free Software Foundation, either version 3 of the License, or
22242 (at your option) any later version.
22243
22244 GNU Emacs is distributed in the hope that it will be useful,
22245 but WITHOUT ANY WARRANTY; without even the implied warranty of
22246 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22247 GNU General Public License for more details.
22248
22249 You should have received a copy of the GNU General Public License
22250 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22251
22252;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40