Fix crash due to incorrect resolution of type of NSM characters (bug#5858).
[bpt/emacs.git] / src / ChangeLog
1 2010-04-08 Eli Zaretskii <eliz@gnu.org>
2
3 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4 prev.orig_type, for resolving type of NSM. (Bug#5858)
5
6 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
7
8 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
9 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10 in current_font.
11 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
12 (Ffont_get_system_normal_font, xsettings_get_system_normal_font): New
13 functions.
14 (syms_of_xsettings): Initialize current_font. defsubr
15 Sfont_get_system_normal_font.
16
17 * xsettings.h (Ffont_get_system_normal_font,
18 xsettings_get_system_normal_font): Declare.
19
20 * xfns.c (extern xlwmenu_default_font): Remove.
21 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
22 to xlwmenu.c.
23
24 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
25 menu items in UTF-8.
26
27 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
28 (apply_systemfont_to_menu): New function.
29 (set_frame_menubar, create_and_show_popup_menu): Call
30 apply_systemfont_to_menu.
31
32 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
33
34 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
35 FRAME_LINE_TO_PIXEL_Y.
36
37 * xterm.c (x_set_window_size_1): Don't add border_width/height to
38 pixelwidth/height.
39
40 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
41
42 Simplify code for HP machines.
43 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
44 for GNU_LINUX, not needed.
45 (UNEXEC, NEED_BSDTTY): Move definitions...
46 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
47
48 * m/iris4d.h (UNEXEC): Move definition ...
49 * s/irix6-5.h (UNEXEC): ... here.
50
51 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
52
53 * xfns.c (set_machine_and_pid_properties): New function.
54 (Fx_create_frame): Call set_machine_and_pid_properties.
55
56 2010-04-03 Eli Zaretskii <eliz@gnu.org>
57
58 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
59 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
60 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
61
62 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
63 in this function. (Bug#5703)
64
65 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
66
67 * nsterm.h: Fix last change.
68
69 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
70
71 * m/intel386.h (NO_REMAP): Move definition ...
72 * s/msdos.h (NO_REMAP): ... here.
73
74 * m/vax.h (CRT0_DUMMIES): Remove, unused.
75
76 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
77 used on those platforms.
78
79 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
80
81 Remove extern errno declarations.
82 * xterm.c:
83 * xrdb.c:
84 * w32term.c:
85 * unexec.c:
86 * unexaix.c:
87 * sysdep.c:
88 * process.c:
89 * lread.c:
90 * keyboard.c:
91 * floatfns.c:
92 * filelock.c:
93 * fileio.c:
94 * emacs.c (main):
95 * ecrt0.c:
96 * dispnew.c:
97 * callproc.c:
98 * buffer.c: Remove errno extern declarations.
99 * s/netbsd.h (NEED_ERRNO): Remove.
100
101 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
102
103 Remove all uses of LIBX11_SYSTEM.
104 * Makefile.in (LIBX11_SYSTEM): Remove.
105 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
106 instead.
107
108 2010-04-01 Eli Zaretskii <eliz@gnu.org>
109
110 Remove support for DJGPP v1.x (bug#5813).
111
112 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
113 * s/msdos.h:
114 * unexec.c (make_hdr, copy_text_and_data):
115 * sysdep.c (wait_for_termination, sys_subshell):
116 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
117 (IT_set_terminal_modes, __write, _rename, gethostname)
118 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
119 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
120 the value of __DJGPP__.
121 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
122 compatibility code.
123 * lread.c:
124 * gmalloc.c (memalign):
125 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
126 * emacs.c (main):
127 * dosfns.c (init_dosfns):
128 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
129
130 2010-04-01 Eli Zaretskii <eliz@gnu.org>
131
132 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
133 string with `cursor' property comes from an `after-string'
134 overlay. (Bug#5816)
135
136 2010-04-01 Glenn Morris <rgm@gnu.org>
137
138 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
139 Define as Makefile variables.
140 (LIBX): Use above variables rather than directly using autoconf.
141
142 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
143
144 Clean up BSD_SYSTEM use.
145 * xterm.c:
146 * process.c:
147 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
148 for including <sys/ioctl.h>.
149 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
150 code is only used for MSDOS.
151
152 2010-03-31 Juri Linkov <juri@jurta.org>
153
154 * image.c: Add `Qextension_data'.
155 (syms_of_image): Initialize and staticpro `Qextension_data'.
156 (Fimage_metadata): Rename from `Fimage_extension_data'.
157 (gif_load): Put GIF extension data to the property
158 `Qextension_data'.
159
160 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
161
162 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
163 * nsterm.h: Fix prototype.
164
165 2010-03-31 Eli Zaretskii <eliz@gnu.org>
166
167 * xdisp.c (highlight_trailing_whitespace): Support highlight of
168 trailing whitespace in right-to-left rows.
169
170 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
171
172 Get rid of the direct_output optimizations.
173 * keyboard.c (nonundocount): Remove extern declaration.
174 (command_loop_1): Remove brittle optimisation for cheap and
175 common operations.
176 * xdisp.c (redisplay_internal): Don't bother checking
177 redisplay_performed_directly_p any more.
178 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
179 any more.
180 * dispnew.c (redisplay_performed_directly_p)
181 (direct_output_for_insert, direct_output_forward_char):
182 * dispextern.h (redisplay_performed_directly_p)
183 (direct_output_for_insert, direct_output_forward_char): Remove.
184 * cmds.c (nonundocount): Make it static.
185
186 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
187
188 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
189
190 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
191
192 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
193 invisible (Bug#5766).
194
195 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
196
197 * xdisp.c (x_consider_frame_title, update_window_cursor):
198 Remove HAVE_NS conditionals.
199 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
200
201 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
202 filename for the title.
203 (ns_set_doc_edited): Do nothing if the selected window is a
204 minibuffer window.
205
206 * nsterm.h: Add prototypes for ns_set_name_as_filename and
207 ns_set_doc_edited.
208
209 * nsterm.m: Remove unneeded prototype.
210
211 2010-03-31 Glenn Morris <rgm@gnu.org>
212
213 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
214 in the DOC file. (Bug#5336)
215
216 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
217
218 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
219
220 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
221
222 * window.c (keys_of_window): Remove redundant/overridden bindings.
223
224 2010-03-30 Eli Zaretskii <eliz@gnu.org>
225
226 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
227 Restore original behavior when the iterator is not bidi_p.
228
229 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
230
231 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
232
233 2010-03-30 Eli Zaretskii <eliz@gnu.org>
234
235 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
236 are outside the range of cached character positions.
237
238 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
239
240 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
241
242 2010-03-30 Eli Zaretskii <eliz@gnu.org>
243
244 Initial support for bidirectional editing.
245
246 * Makefile.in (obj): Include bidi.o.
247 (bidi.o): New target.
248
249 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
250 ($(BLD)/bidi.$(O)): New target.
251
252 * bidi.c: New file.
253
254 * buffer.h (struct buffer): New members bidi_display_reordering
255 and bidi_paragraph_direction.
256
257 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
258 and bidi_paragraph_direction.
259 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
260 and bidi-paragraph-direction.
261 (Fbuffer_swap_text): Swap the values of
262 bidi_display_reordering and bidi_paragraph_direction.
263
264 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
265 (bidi_type_t, bidi_dir_t): New types.
266 (bidi_saved_info, bidi_stack, bidi_it): New structures.
267 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
268 prev_stop, base_level_stop, and eol_pos.
269 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
270 (IT_STACK_SIZE): Enlarge to 5.
271 (struct glyph_row): New member reversed_p.
272 <string_buffer_position>: Update prototype.
273 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
274 glyph_row if bidi_it.paragraph_dir == R2L.
275 (struct glyph): New members resolved_level and bidi_type.
276
277 * dispnew.c (direct_output_forward_char): Give up if we need bidi
278 processing or buffer's direction is right-to-left.
279 (prepare_desired_row): Preserve the reversed_p flag.
280 (row_equal_p): Compare the reversed_p attributes as well.
281
282 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
283 bidi_init_it and set it->paragraph_embedding from the current
284 buffer's value of bidi_paragraph_direction.
285 (reseat_1): Initialize bidi_it.first_elt.
286 (set_iterator_to_next, next_element_from_buffer): Use the value of
287 paragraph_embedding to determine the paragraph direction.
288 (set_iterator_to_next): Under bidi reordering, call
289 bidi_get_next_char_visually. Call bidi_paragraph_init if the
290 new_paragraph flag is set in the bidi iterator.
291 (next_element_from_buffer): If bidi_it.first_elt is set,
292 initialize paragraph direction and find the first character to
293 display in the visual order. If reseated to a middle of a line,
294 prime the bidi iterator starting at the line's beginning. Handle
295 the situation where we overstepped stop_charpos due to
296 non-linearity of the bidi iteration. Likewise for when we back up
297 beyond the previous stop_charpos. When moving across stop_charpos,
298 record it in prev_stop.
299 (display_line): Set row->end and it->start for the next row to the
300 next character in logical order. Always extend reversed_p rows to
301 the end of line, even if they end at ZV. Copy the reversed_p flag
302 to the next glyph row. Keep calling set_cursor_from_row for
303 bidi-reordered rows even if we already have a possible candidate
304 for cursor position. Set row_end after all the row's glyphs have
305 been produced, by looping over the glyphs. Record the position
306 after EOL in it->eol_pos, and use it to set end_pos of the last
307 row produced for a continued line.
308 <Qright_to_left, Qleft_to_right>: New variables.
309 (syms_of_xdisp): Initialize and staticpro them.
310 (string_buffer_position_lim): New function.
311 (string_buffer_position): Most of code moved to
312 string_buffer_position_lim. Last argument and return value are
313 now EMACS_INT; all callers changed.
314 (set_cursor_from_row): Rewritten to support bidirectional text and
315 reversed glyph rows.
316 (text_outside_line_unchanged_p, try_window_id): Disable
317 optimizations if we are reordering bidirectional text and the
318 paragraph direction can be affected by the change.
319 (append_glyph, append_composite_glyph)
320 (produce_image_glyph, append_stretch_glyph): Set the
321 resolved_level and bidi_type members of each glyph.
322 (append_glyph): If the glyph row is reversed, prepend the glyph
323 rather than appending it.
324 (handle_stop_backwards): New function.
325 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
326 (reseat): call handle_stop_backwards to recompute prev_stop and
327 base_level_stop for the new position.
328 (handle_invisible_prop): Under bidi iteration, skip invisible text
329 using bidi_get_next_char_visually. If we are `reseat'ed, init the
330 paragraph direction. Update IT->prev_stop after skipping
331 invisible text.
332 (move_it_in_display_line_to): New variables prev_method
333 and prev_pos. Compare for strict equality in
334 BUFFER_POS_REACHED_P.
335 (try_cursor_movement): Examine all the candidate rows that occlude
336 point, to return the best match. If rows are bidi-reordered
337 and point moved backwards, back up to the row that is not a
338 continuation line, and start looking for a suitable row from
339 there.
340
341 * term.c (append_glyph): Reverse glyphs by pre-pending them,
342 rather than appending, if the glyph_row's reversed_p flag is set.
343 Set the resolved_level and bidi_type members of each glyph.
344
345 * .gdbinit (pbiditype): New command.
346 (pgx): Use it to display bidi level and type of the glyph.
347 (pitx): Display some bidi information about the iterator.
348 (prowlims, pmtxrows): New commands.
349
350 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
351
352 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
353 * s/usg5-4.h (LIBS_DEBUG):
354 * s/irix6-5.h (C_DEBUG_SWITCH):
355 * s/gnu-linux.h (LIBS_DEBUG):
356 * s/darwin.h (LIBS_DEBUG):
357 * s/bsd-common.h (LIBS_DEBUG):
358 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
359 * m/iris4d.h (LIBS_DEBUG):
360 * m/hp800.h (LIBS_DEBUG): Remove definitions.
361
362 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
363 (LIBS_DEBUG): Remove definition.
364
365 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
366
367 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
368 Windows.
369
370 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
371
372 * process.c (Fmake_network_process): Don't call turn_on_atimers around
373 `connect' (Bug#5723).
374
375 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
376
377 * process.c (Fmake_network_process): Call `select' for interrupted
378 `connect' rather than creating new socket (Bug#5173).
379
380 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
381
382 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
383
384 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
385
386 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
387
388 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
389
390 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
391 XLoadQueryFont.
392
393 2010-03-24 Kenichi Handa <handa@m17n.org>
394
395 * coding.c (decode_coding_ccl): Fix previous change for the
396 multibyte case.
397 (encode_coding_ccl): Don't setup ccl program here. Fix for the
398 case that the output buffer is fullfilled.
399 (encode_coding): Setup ccl program here.
400
401 2010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
402
403 * editfns.c (Fformat): Account for string precision when computing
404 field width (Bug#5710).
405
406 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
407
408 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
409
410 Simplify LIBS_MACHINE definitions.
411 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
412 * m/iris4d.h (LIBS_MACHINE): Likewise.
413 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
414 * s/aix4-2.h (LIBS_SYSTEM): ... here.
415 * s/netbsd.h: Remove commented out code.
416
417 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
418
419 Remove dead code dealing with POSIX_SIGNALS.
420 * atimer.c (set_alarm): Remove dead code, all USG systems define
421 POSIX_SIGNALS.
422 * data.c (arith_error): Likewise.
423 * keyboard.c (input_available_signal, handle_user_signal)
424 (interrupt_signal): Likewise.
425 * process.c (sigchld_handler): Likewise.
426 (create_process): Remove if 0 code. Remove HPUX conditional when
427 !defined (POSIX_SIGNALS), it cannot be true.
428 * syssignal.h: Remove USG5_4 and USG conditionals when
429 !POSIX_SIGNALS, they cannot be true.
430
431 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
432 NO_SOCK_SIGIO, not used anymore.
433
434 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
435
436 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
437 support vax on BSDs.
438
439 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
440 * s/aix4-2.h (ORDINARY_LINK): ... here.
441
442 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
443
444 * Makefile.in (abs_builddir): Define.
445 (bootstrap_exe): Use it.
446 (VPATH): Use $(srcdir) instead of @srcdir@.
447
448 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
449
450 * Makefile.in (bootstrap_exe): Use an absolute name.
451
452 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
453
454 Remove support for old GNU/Linux using libc version 5.
455 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
456 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
457
458 Consolidate redundant definitions in s/bsd-common.h.
459 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
460 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
461 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
462 doing it in all files that include this one.
463 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
464 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
465 (LDAV_SYMBOL, KERNEL_FILE): Remove.
466 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
467 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
468 (LDAV_SYMBOL, KERNEL_FILE): Remove.
469 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
470 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
471 (LDAV_SYMBOL, KERNEL_FILE): Remove.
472
473 Consolidate redundant definitions.
474 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
475 it's undefined in all files that include this one.
476 (POSIX_SIGNALS): Define here instead of doing it in all files that
477 include this one.
478 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
479 (POSIX_SIGNALS): Do not define.
480 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
481 (POSIX_SIGNALS): Do not define.
482 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
483 (POSIX_SIGNALS): Do not define.
484
485 Remove support for old UNIX System V systems.
486 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
487 * s/usg-5-4-2.h: Remove.
488
489 Remove support for Solaris on PPC and for old versions.
490 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
491 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
492 that cancel each other.
493 * s/sol2-3.h:
494 * s/sol2-4.h:
495 * s/sol2-5.h: Remove.
496 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
497 (NO_REMAP): Remove, unused.
498 (UNEXEC): Move definition ...
499 * s/aix4-2.h (UNEXEC): ... here.
500
501 * s/openbsd.h: Remove support for non-ELF and for systems that do
502 not support shared libraries.
503 * s/netbsd.h:
504 * s/freebsd.h: Likewise.
505
506 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
507
508 Remove non-working support for lynxos 3.0.
509 * s/lynxos.h: Remove file.
510
511 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
512 COFF_BSD_SYMBOLS, nothing defines it anymore.
513
514 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
515
516 Remove obsolete uses of HAVE_SHM.
517 * emacs.c (standard_args):
518 (Fdump_emacs):
519 (syms_of_emacs): Remove code depending on HAVE_SHM.
520
521 * alloc.c: Remove HAVE_SHM dependent definition.
522
523 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
524
525 2010-03-18 Glenn Morris <rgm@gnu.org>
526
527 * emacs.c (USAGE4): Hard-code bug address.
528 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
529 (bug_reporting_address): Remove.
530 (main): Don't call bug_reporting_address.
531
532 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
533 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
534
535 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
536
537 * xfns.c (Fx_create_frame):
538 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
539 on left.
540
541 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
542
543 * editfns.c (Fformat): Account for string precision when computing
544 field width (Bug#5710).
545
546 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
547
548 * xfns.c (Fx_create_frame): Set default to Qright.
549
550 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
551 all window systems.
552
553 2010-03-12 Eli Zaretskii <eliz@gnu.org>
554
555 These changes remove termcap.c from the build on Posix platforms.
556 * Makefile.in (termcapobj): Move termcap.o from here...
557 (MSDOS_OBJ): ...to here.
558 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
559 now identical to when LIBS_TERMCAP is defined.
560
561 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
562
563 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
564
565 * config.in: Regenerated. (See top-level ChangeLog.)
566
567 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
568
569 * Branch for 23.2.
570
571 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
572
573 Cleanup setup of gl_state in various parts of the code.
574 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
575 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
576 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
577 (skip_chars):
578 * regex.c (regex_compile): Use it.
579 (re_compile_pattern): Don't set gl_state.current_syntax_table since
580 it's now set in regex_compile when/if we need it.
581
582 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
583
584 Make it possible to C-g in a tight bytecode loop again (bug#5680).
585 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
586 (QUIT): Use it to consolidate code and remove redundancy.
587 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
588
589 * regex.c (regex_compile): Setup gl_state as well.
590
591 * syntax.c (skip_chars): Setup gl_state (bug#3823).
592 (in_classes): Use CONSP before XCAR/XCDR.
593
594 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
595
596 * keymap.c (Fwhere_is_internal): Use Fequal to compare
597 definitions, so that keyboard macros are correctly handled
598 (Bug#5481).
599
600 2010-03-02 Eli Zaretskii <eliz@gnu.org>
601
602 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
603 text that could be relocated inside the call to emacs_mule_char.
604 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
605 (CODING_DECODE_CHAR): Add a comment describing its purpose.
606
607 2010-03-02 Kenichi Handa <handa@m17n.org>
608
609 * character.c (parse_str_as_multibyte): Fix handling of the
610 multibyte form of raw-bytes.
611 (str_as_multibyte): Likewise.
612
613 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
614 form of raw-bytes.
615
616 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
617
618 * charset.c (load_charset_map_from_file)
619 (load_charset_map_from_vector): Zero out allocated
620 charset_map_entries before using them.
621
622 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
623
624 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
625
626 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
627
628 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
629 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
630
631 2010-02-26 Kenichi Handa <handa@m17n.org>
632
633 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
634
635 * xdisp.c (reseat_to_string): Fix previous change.
636
637 2010-02-26 David Reitter <david.reitter@gmail.com>
638
639 * nsfont.m (nsfont_draw): ns_antialias_text should be a
640 Lisp_Object (Bug#4736).
641
642 2010-02-25 Kenichi Handa <handa@m17n.org>
643
644 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
645
646 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
647
648 * xterm.c (XTflash): Move declarations before statements.
649
650 * gtkutil.c (xg_get_gdk_display): Remove (unused).
651 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
652 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
653 (xg_create_tool_bar): Remove unused variables.
654 (x_wm_set_size_hint): Move declarations before statements.
655 (xg_create_frame_widgets): Remove variable grav,
656
657 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
658
659 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
660
661 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
662
663 * term.c (fatal): Add a final \n if needed (bug#5596).
664
665 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
666
667 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
668
669 2010-02-18 Glenn Morris <rgm@gnu.org>
670
671 * callint.c (Finteractive): Doc fix.
672
673 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
674
675 * coding.c (record_conversion_result):
676 Handle CODING_RESULT_INSUFFICIENT_DST.
677 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
678 memory allocation error.
679
680 2010-02-17 Kenichi Handa <handa@m17n.org>
681
682 * coding.c (decode_coding_ccl): Don't setup ccl program here.
683 Fix for the case that the output buffer is fullfilled.
684 (decode_coding): Setup ccl program here. Keep looping when the
685 decoder stopped because the output buffer is
686 fullfilled (bug#5534).
687
688 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
689
690 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
691
692 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
693 bug #5571.
694 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
695 overdrawn.
696
697 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
698
699 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
700 doing_interact here.
701 (ice_connection_closed): New function.
702 (x_session_check_input, smc_die_CB, ice_io_error_handler)
703 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
704 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
705 returns I/O error.
706 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
707 bug #5512.
708
709 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
710
711 * nsfont.m (nsfont_open): The system's value for the font descent
712 is negative, so round it down to avoid clipping.
713
714 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
715
716 * charset.c (load_charset_map_from_file)
717 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
718 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
719
720 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
721
722 * charset.c (load_charset_map_from_file): Allocate large
723 charset_map_entries structure on the heap rather than the stack.
724 (Bug#5526).
725
726 2010-01-31 Kenichi Handa <handa@m17n.org>
727
728 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
729 size in NAME is invalid, return -1 (Bug#5396).
730
731 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
732
733 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
734 <deactivated@gmail.com> (Bug#3605).
735
736 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
737
738 * fileio.c (Frename_file): Correctly rename symlinks to
739 directories (Bug#5496).
740
741 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
742
743 * nsterm.m (ns_ring_bell): Handle visible bell like X.
744
745 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
746
747 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
748
749 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
750
751 * frame.c (DEFAULT_ROWS): Change default to 35.
752
753 * xfns.c (x_default_font_parameter): Change default XFT font to
754 monospace-10 (Bug#3643).
755
756 2010-01-29 Eli Zaretskii <eliz@gnu.org>
757
758 * w32inevt.c (key_event): Remove unnecessary comparison of
759 event->uChar.AsciiChar with 128.
760
761 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
762
763 * fileio.c (Frename_file): Fix last change (Bug#5487).
764
765 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
766
767 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
768
769 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
770
771 * xfns.c (Fx_create_frame): Remove window size matching code from
772 2010-01-15.
773 (x_get_current_desktop, x_get_desktop_workarea): Remove
774
775 2010-01-27 Jason Rumney <jasonr@gnu.org>
776
777 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
778 (key_event): Use unicode for characters 128 and higher (Bug#4567).
779
780 2010-01-27 Kenichi Handa <handa@m17n.org>
781
782 * regex.c (analyse_first): Fix setting of fastmap for unibyte
783 pattern string (Bug#4209).
784
785 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
786
787 * fileio.c (Frename_file): Call copy-directory and
788 delete-directory for directories, in order to handle cross-device
789 renaming (Bug#3353).
790
791 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
792
793 * xfns.c (Fx_create_frame): If frame height is too big, try
794 sizes 24 and 10. Bug #3643.
795
796 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
797
798 Try and fix bug#788, hopefully for real this time.
799 * keymap.c (shadow_lookup): Add `remap' arg.
800 (describe_map, describe_vector): Update calls to shadow_lookup.
801 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
802 `remapped' so this flag is applicable to `sequence'. Be careful to
803 perform remapping during shadow_lookup check of remapped_sequences.
804
805 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
806
807 * image.c (png_load): Use png_sig_cmp instead of the obsolete
808 png_check_sig, which has been removed in libpng 1.4.
809
810 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
811
812 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
813 lacks this header file).
814
815 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
816
817 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
818 as in Emacs 22.
819
820 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
821
822 * lisp.h (make_pure_string): String pointer arg now points to const.
823
824 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
825 args now point to const.
826
827 2010-01-22 Eli Zaretskii <eliz@gnu.org>
828
829 * lread.c (Fload): Don't treat files without .elc extension as
830 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
831 them. (bug#5303)
832
833 2010-01-20 Kenichi Handa <handa@m17n.org>
834
835 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
836 treat the source as actual byte sequence.
837
838 2010-01-19 Alan Mackenzie <acm@muc.de>
839
840 Fix spurious before-change-functions invocation from (insert ?\n).
841 * textprop.c (set_text_properties): Rename parameter
842 `signal_after_change_p' to `coherent_change_p', and make the
843 invocation of `modify_region' conditional on it.
844
845 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
846
847 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
848 for debug purpose.
849 (syms_of_xsettings): Declare xft-settings.
850
851 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
852
853 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
854
855 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
856
857 * xterm.c (event_handler_gdk): Block input (Bug#5037).
858
859 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
860
861 * emacs.c (standard_args): Adjust arg priorities to reflect how
862 they are processed in startup.el.
863
864 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
865
866 * Makefile.in (lisp, shortlisp): Update.
867
868 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
869
870 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
871 code, link the new kboard into all_kboard before running Lisp code,
872 and protect the new terminal with GCPRO (Bug#5365).
873 (x_term_init): Remove unused var `atom'.
874 (x_delete_display, x_delete_terminal): Remove unused var `i'.
875
876 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
877
878 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
879 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
880 to find out usable size of the desktop. Don't make frames larger than
881 this. Bug #3643.
882
883 2010-01-15 Kenichi Handa <handa@m17n.org>
884
885 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
886
887 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
888
889 * nsterm.m (Qnone): Define.
890
891 * nsfns.m (Qnone): Move definition to nsterm.m.
892
893 2010-01-14 Kenichi Handa <handa@m17n.org>
894
895 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
896 systems.
897
898 2010-01-14 Kenichi Handa <handa@m17n.org>
899
900 Make auto-composition work on all buffers even if they are
901 fundamental mode.
902
903 * composite.c (Vauto_composition_mode): New variable.
904 (composition_compute_stop_pos): Check Vauto_composition_mode
905 instead of Vauto_composition_function.
906 (composition_adjust_point, Ffind_composition_internal): Likewise.
907 (syms_of_composite): Declare Lisp variable
908 "auto-composition-mode" here.
909
910 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
911
912 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
913 during call to vendor-specific-keysyms (Bug#5365).
914
915 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
916
917 * keyboard.c (input_available_signal) [SYNC_INPUT]:
918 Call SIGNAL_THREAD_CHECK (Bug#5333).
919
920 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
921 Call SIGNAL_THREAD_CHECK.
922
923 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
924
925 Try to fix bug#5314. This is probably not the final word, tho.
926 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
927 recent-auto-save-p as a side-effect.
928 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
929 * buffer.c (Fkill_buffer, reset_buffer):
930 * editfns.c (Fsubst_char_in_region):
931 * fileio.c (Finsert_file_contents, Fdo_auto_save)
932 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
933
934 2010-01-13 Kenichi Handa <handa@m17n.org>
935
936 Display buffer name, etc. in mode line by composing correctly.
937
938 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
939 STRING is not nil.
940 (display_mode_element): Adjust for the change of
941 decode_mode_spec and display_line.
942 (decode_mode_spec): Change arg MULTIBYTE to STRING.
943 (display_string): Handle the case that STRING is non-null and
944 LISP_STRING is not nil.
945
946 * xterm.c (x_draw_composite_glyph_string_foreground):
947 Pay attention to s->face->overstrike.
948
949 * composite.c (composition_reseat_it): Don't check PT if STRING is
950 non nil.
951
952 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
953
954 * keyboard.c (read_char): Don't apply previous change when current
955 buffer is unchanged by command execution.
956
957 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
958
959 * keyboard.c (read_char): Return after executing from special map.
960
961 2010-01-12 Glenn Morris <rgm@gnu.org>
962
963 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
964 bug-gnu-emacs rather than emacs-pretest-bug.
965
966 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
967
968 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
969 initializing the Lisp variables that depend on them.
970
971 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
972
973 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
974 Clear areas that will not be updated after change of menu bar lines.
975 Clear the menu bar window's current matrix when the window gets empty.
976
977 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
978
979 * intervals.h, textprop.c (extend_property_ranges): Return value
980 and args changed. Discard properties that begin at or after the
981 new end (Bug#5306).
982
983 * editfns.c (Fformat): Caller changed.
984
985 * nsterm.m (ns_set_default_prefs): Delete function.
986 (syms_of_nsterm): Initialize ns_command_modifier,
987 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
988 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
989
990 * xdisp.c (pos_visible_p): Check for invisible text at the correct
991 position (Bug#4040).
992
993 2010-01-09 Eli Zaretskii <eliz@gnu.org>
994
995 * editfns.c (Ffloat_time): Doc fix.
996
997 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
998
999 * xfns.c (Fx_create_frame): Don't create frame larger than display
1000 by default bug#3643.
1001
1002 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1003
1004 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1005 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1006 windows above internal border.
1007
1008 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1009 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1010 windows above internal border.
1011
1012 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1013 tool bar windows specially.
1014
1015 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1016
1017 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1018 specially.
1019 (XTflash): Take account of menu bar height.
1020
1021 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1022 specially.
1023
1024 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1025
1026 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
1027 also be true before we can return early (bug #5339).
1028
1029 2010-01-06 David Reitter <david.reitter@gmail.com>
1030
1031 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1032 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1033 (Bug#3233).
1034
1035 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1036
1037 * font.c (font_open_entity): Enable chache and call cached_font_ok
1038 for the driver if defined.
1039 (QCuser_spec): New symbol.
1040 (font_spec_from_name): Save name as user-spec.
1041 (font_load_for_lface): Keep user-spec instead of name.
1042 (font_open_by_name): Save name as user-spec.
1043 (syms_of_font): Initialize QCuser_spec.
1044 (font_clear_prop): Clear name if it exists in font (bug#5157).
1045
1046 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1047 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1048 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1049
1050 * font.h (struct font_driver): Add cached_font_ok.
1051
1052 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1053
1054 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1055
1056 * xterm.c (x_new_font): Move code for setting rows/cols before
1057 resizing ...
1058 (x_set_window_size): ... to here. Bug #2568.
1059
1060 * gtkutil.c (xg_clear_under_internal_border): New function.
1061 (xg_frame_resized, xg_frame_set_char_size):
1062 Call xg_clear_under_internal_border.
1063 (xg_update_scrollbar_pos): Clear under old scroll bar position.
1064
1065 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
1066
1067 * keyboard.c (read_key_sequence): Catch keyboard switch after
1068 making a new tty frame (Bug#5095).
1069
1070 2010-01-05 Kenichi Handa <handa@m17n.org>
1071
1072 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1073
1074 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1075
1076 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1077 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1078 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1079
1080 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
1081
1082 * dbusbind.c (xd_add_watch): Improve debug message.
1083 (xd_remove_watch): Improve debug message. If DATA is the session
1084 bus, unset D-Bus session environment.
1085 (Fdbus_init_bus): Pass the bus as argument to
1086 dbus_connection_set_watch_functions. (Bug#5283)
1087
1088 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
1089
1090 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1091
1092 * lread.c (syms_of_lread): Make it clearer that these are the
1093 names of loaded files (Bug#5068).
1094
1095 * eval.c (run_hook_with_args): Handle the case where the global
1096 value has the obsolete single-function form (Bug#5026).
1097
1098 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
1099
1100 * minibuf.c (Fall_completions): Minor optimization.
1101
1102 2009-12-26 Eli Zaretskii <eliz@gnu.org>
1103
1104 * .gdbinit (pgx): Fix display of composite glyphs.
1105 Display cmp.from and cmp.to as well.
1106 (pitx): Fix last change.
1107
1108 2009-12-25 Kenichi Handa <handa@m17n.org>
1109
1110 * composite.h (composition_adjust_point): Update prototype.
1111
1112 * composite.c (composition_reseat_it): Don't make a composition
1113 spanning over point.
1114 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1115 composable characters.
1116 (composition_adjust_point): New arg NEW_PT. Callers changed.
1117
1118 * keyboard.c (command_loop_1): Force redisplay if the last point
1119 was within a composition.
1120 (adjust_point_for_property): Don't adjust point for automatic
1121 composition when called after buffer modification.
1122
1123 2009-12-19 Eli Zaretskii <eliz@gnu.org>
1124
1125 * .gdbinit (pitx): Don't use enum names, use their values.
1126 Remove reference to non-existing value GET_FROM_COMPOSITION.
1127 (pgx): Don't use enum names, use their values.
1128 (pitmethod): New helper command.
1129 (pitx): Use it to display iteration method.
1130 (pgrowit): New command.
1131
1132 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1133
1134 Update dependencies in Makefile.in.
1135
1136 * Makefile.in (alloc.o): Depend on termhooks.h.
1137 (atimer.o): Depend on blockinput.h.
1138 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1139 and frame.h.
1140 (callint.o): Depend on systime.h, coding.h, and composite.h.
1141 (callproc.o): Depend on buffer.h.
1142 (casefiddle.o): Don't depend on charset.h.
1143 (casetab.o): Depend on character.h.
1144 (ccl.o): Depend on composite.h.
1145 (chartab.o): Depend on ccl.h.
1146 (cm.o): Depend on dispextern.h.
1147 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1148 (coding.o): Don't depend on $(INTERVALS_H).
1149 (composite.o): Don't depend on dispextern.h explicitly (it's in
1150 $(INTERVALS_H)). Depend on ccl.h.
1151 (data.o): Depend on systime.h, coding.h, composite.h,
1152 dispextern.h, font.h, and ccl.h.
1153 (dired.o): Depend on composite.h.
1154 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1155 composite.h (it's in $(INTERVALS_H)).
1156 (doc.o): Depend on systime.h, coding.h, and composite.h.
1157 (editfns.o): Don't depend explicitly on dispextern.h.
1158 (emacs.o): Depend on frame.h and coding.h.
1159 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1160 (fileio.o): Depend on frame.h and commands.h. Don't depend
1161 explicitly on dispextern.h.
1162 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1163 composite.h.
1164 (fns.o): Don't depend on termhooks.h.
1165 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1166 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1167 coding.h, $(INTERVALS_H), window.h, xterm.h.
1168 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1169 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1170 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1171 fontset.h, ccl.h, and ftfont.h.
1172 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1173 (gtkutil.o): Depend on dispextern.h and composite.h.
1174 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1175 termhooks.h, and ccl.h.
1176 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1177 (intervals.o): Depend on systime.h and coding.h.
1178 (keyboard.o): Depend on composite.h and coding.h.
1179 (keymap.o): Depend on coding.h and frame.h.
1180 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1181 (macros.o): Depend on systime.h, coding.h, and composite.h.
1182 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1183 and atimer.h.
1184 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1185 dispextern.h explicitly.
1186 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1187 Don't depend explicitly on dispextern.h and composite.h.
1188 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1189 (regex.o): Don't depend on charset.h.
1190 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1191 (search.o): Don't depend explicitly on composite.h.
1192 (sound.o): Depend on atimer.h and systime.h.
1193 (syntax.o): Don't depend explicitly on composite.h.
1194 (sysdep.o): Depend on coding.h and composite.h.
1195 (term.o): Depend on xterm.h and buffer.h.
1196 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1197 (textprop.o): Don't depend on dispextern.h explicitly.
1198 (undo.o): Depend on dispextern.h.
1199 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1200 dispextern.h and composite.h explicitly.
1201 (xdisp.o): Depend on ccl.h.
1202 (xfaces.o): Depend on coding.h and ccl.h.
1203 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1204 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1205 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1206 ftfont.h.
1207 (xgselect.o): New dependency.
1208 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1209 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1210 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1211 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1212 (xsmfns.o): Depend on frame.h and dispextern.h.
1213 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1214 sysselect.h.
1215
1216 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1217
1218 * font.c (Fclear_font_cache): Pass correct cache argument to
1219 font_clear_cache.
1220
1221 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1222
1223 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1224 twice.
1225
1226 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
1227
1228 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1229 calling file-remote-p. Reported by Jim Meyering.
1230
1231 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
1232
1233 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
1234 avoid compiler warnings. (Bug #5217)
1235
1236 2009-12-14 Kenichi Handa <handa@m17n.org>
1237
1238 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1239 in 8-bit encoding.
1240
1241 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
1242
1243 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1244 tooltip windows.
1245
1246 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1247
1248 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1249 Xatom_net_window_type.
1250
1251 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1252 Xatom_net_window_type.
1253
1254 * xterm.c (my_log_handler): New function.
1255 (x_term_init): Set my_log_handler as log handler during gtk_init
1256 so we can filter out buggy messages. (Bug #5120).
1257
1258 * xterm.c (xg_scroll_callback): Parameter list changed,
1259 use parameter GtkScrollType to determine scroll/line/page.
1260 Only allow dragging if a button < 4 is grabbed (bug #5177).
1261 (xg_end_scroll_callback): New function.
1262 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1263 xg_create_scroll_bar.
1264
1265 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1266 (scroll_end_callback): Remove.
1267 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1268 button-release-event. Replace value-changed event with change-value,
1269 bug #5177,
1270 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1271 bug #5177.
1272
1273 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1274 (xg_create_scroll_bar): Add GCallback end_callback.
1275
1276 * xftfont.c (QClcdfilter): New variable.
1277 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1278 (syms_of_xftfont): Initialize QClcdfilter.
1279
1280 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1281
1282 * xsettings.c (struct xsettings): Add member seen.
1283 (parse_xft_settings): Update member seen with what we have read.
1284 Return non-zero if Xft-settings have been parsed, 0 otherwise.
1285 (apply_xft_settings): Only update Xft settings with what member seen
1286 indicates as new.
1287
1288 2009-12-12 Eli Zaretskii <eliz@gnu.org>
1289
1290 * dispextern.h (struct text_pos): Use EMACS_INT;
1291 (struct glyph): Use EMACS_INT for charpos.
1292 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1293 region_beg_charpos, region_end_charpos,
1294 redisplay_end_trigger_charpos, and also for
1295 iterator_stack_entry.end_charpos and
1296 iterator_stack_entry.stop_charpos.
1297
1298 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1299
1300 * gtkutil.c (scroll_end_callback): New function (bug #5177).
1301 (xg_create_scroll_bar): Call scroll_end_callback on button release
1302 event (bug #5177).
1303 (xg_event_is_for_scrollbar): != replaced with ==.
1304
1305 2009-12-12 Kenichi Handa <handa@m17n.org>
1306
1307 * ftfont.c (struct ftfont_info): New member matrix.
1308 (ftfont_open): Setup xftfont_info->matrix.
1309 (MFLTFontFT): New member matrix.
1310 (FLOOR, CEIL, ROUND): New macros.
1311 (ftfont_get_metrics): Handle matrix transformation.
1312 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1313
1314 * xftfont.c (struct xftfont_info): New member matrix.
1315 (xftfont_open): Setup xftfont_info->matrix.
1316
1317 2009-12-10 Kenichi Handa <handa@m17n.org>
1318
1319 * xdisp.c (append_space_for_newline): Consider face-remapping.
1320
1321 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1322
1323 * xsettings.c: Include "keyboard.h".
1324
1325 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1326
1327 Fix implicit function declarations.
1328 * cmds.c: Include "frame.h".
1329 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1330 * frame.h: Move declaration of delete_frame outside of
1331 HAVE_WINDOW_SYSTEM.
1332
1333 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1334
1335 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1336
1337 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1338 GTK builds.
1339
1340 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1341
1342 * unexelf.c (unexec): Don't search for .data twice.
1343
1344 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
1345
1346 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1347 if push failed.
1348 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1349 of push_display_prop (Bug#5000).
1350
1351 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1352 value of font_list_entities (Bug#5085).
1353
1354 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
1355
1356 Fix `string-to-number' to deal consistently with integers and floats.
1357 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1358 trailing characters, not just whitespace.
1359 (read1): Pass new arg 0 to keep old behavior.
1360 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1361 trailing chars, as it is already done for integers. Doc fixes.
1362 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1363
1364 2009-12-04 Eli Zaretskii <eliz@gnu.org>
1365
1366 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1367 Delete unused enumeration value.
1368
1369 2009-12-03 Eli Zaretskii <eliz@gnu.org>
1370
1371 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1372
1373 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1374
1375 * process.c (Fmake_network_process): Fix up the tests for
1376 "connectionless socket", so they DTRT for seqpacket sockets as well.
1377
1378 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1379
1380 * process.c (Qseqpacket): New symbol.
1381 (HAVE_SEQPACKET): New macro.
1382 (Fmake_network_process): Accept new :type `seqpacket'.
1383 (init_process): Add `seqpacket' feature when applicable.
1384 (syms_of_process): Initialize Qseqpacket.
1385
1386 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1387
1388 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1389 if entity is Qnil.
1390
1391 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1392
1393 * print.c (print_preprocess): Preprocess the key_and_value table of
1394 hashtables, even tho they're "hidden" (bug#5082).
1395
1396 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1397
1398 * frame.c (frame_make_pointer_invisible)
1399 (frame_make_pointer_visible): Declare f before statements.
1400
1401 2009-11-28 Eli Zaretskii <eliz@gnu.org>
1402
1403 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1404 omitted dependencies on lisp.h.
1405
1406 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1407
1408 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1409 is NULL.
1410
1411 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1412
1413 * frame.c (frame_make_pointer_invisible)
1414 (frame_make_pointer_visible): Just return if there isn't any selected
1415 frame.
1416
1417 * search.c (simple_search): Remove warning by making *p const.
1418
1419 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1420
1421 * xdisp.c (power_letter): Remove duplicate const.
1422
1423 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1424
1425 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1426
1427 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
1428 defaults (bug #5025).
1429
1430 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1431
1432 * insdel.c (adjust_markers_for_delete): Move it in the
1433 right direction! (bug#4803)
1434
1435 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1436
1437 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1438
1439 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1440
1441 2009-11-24 Glenn Morris <rgm@gnu.org>
1442
1443 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1444
1445 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1446
1447 * Makefile.in: Must create deps for ecrt0.o in its rule.
1448
1449 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1450 because that is what Gtk+ font dialog understands.
1451
1452 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1453 of Fcopy_sequence.
1454 (font_open_by_name): Put name given into QCname for font-object returned.
1455
1456 * frame.c (x_set_font): Save original font name as frame parameter
1457 font-parameter.
1458
1459 * xsettings.c (set_default_xft_settings): New function.
1460 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1461 is found.
1462
1463 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1464
1465 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1466 searching backwards through multibyte buffer.
1467
1468 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1469
1470 * xterm.c: #include xgselect.h.
1471 (x_initialize): Call xgselect_initialize.
1472
1473 * xsettings.c (something_changedCB): C++ comments => C comments.
1474 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1475 does that now.
1476
1477 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1478 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1479 (scroll_bar_button_cb): Remove.
1480 (create_menus): C++ comments => C comments. Don't bind grab-notify
1481 event.
1482 (xg_create_scroll_bar): Don't bind button-press-event and
1483 button-release-event.
1484
1485 * process.c: Include xgselect.h if defined (USE_GTK) ||
1486 defined (HAVE_GCONF).
1487 (wait_reading_process_output): Call xg_select for the same condition.
1488
1489 * xgselect.c (xg_select): New function to better integrate with
1490 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1491
1492 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1493
1494 * Makefile.in (XOBJ): Add xgselect.o.
1495
1496 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1497
1498 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1499 Remove ignored second argument. All callers changed.
1500 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1501 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1502 * xdisp.c (string_char_and_length): Likewise.
1503
1504 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1505
1506 * xterm.c (x_new_font):
1507 * print.c (print_object):
1508 * cmds.c (Fself_insert_command): Move declarations before statements.
1509
1510 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1511
1512 * s/cygwin.h: Remove unneeded linker flags.
1513
1514 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1515
1516 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1517
1518 * xsettings.h: Declare xsettings_get_system_font.
1519
1520 * xsettings.c (xsettings_get_system_font): New function.
1521 (init_gconf): No use initiating gconf unless we have Xft also.
1522 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1523 HAVE_GCONF.
1524
1525 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1526 add a blank entry so it doesn't collapse into nothing.
1527
1528 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1529
1530 * lread.c (Funintern): Comment out last change.
1531
1532 2009-11-19 Richard Stallman <rms@gnu.org>
1533
1534 * lread.c (Funintern): Error if symbol is t or nil.
1535
1536 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1537
1538 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1539 representation of Lisp integers.
1540 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1541
1542 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1543
1544 * lisp.h: Remove declaration of Ffont_get_system_font.
1545 * xfns.c: Move include of "xsettings.h".
1546 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1547
1548 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1549
1550 * xsettings.c (something_changedCB, Ffont_get_system_font):
1551 Check use_system_font.
1552 (syms_of_xsettings): DEFVAR font-use-system-font.
1553
1554 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1555
1556 * xfns.c (x_default_font_parameter): Remove dead assignment.
1557
1558 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1559
1560 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1561
1562 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
1563 not have FC_LCD_*. #define them if not there.
1564
1565 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
1566
1567 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1568
1569 * xterm.c (handle_one_xevent): Call xft_settings_event for
1570 ClientMessage, PropertyNotify and DestroyNotify.
1571 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1572 Call xsettings_initialize.
1573
1574 * xftfont.c (xftfont_fix_match): New function.
1575 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1576 Call xftfont_fix_match after XftFontMatch.
1577
1578 * xfont.c (xfont_driver): Initialize all members.
1579
1580 * xfns.c (x_default_font_parameter):
1581 Try font from Ffont_get_system_font.
1582 Do not get font from x_default_parameter if we got one from
1583 Ffont_get_system_font.
1584 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
1585
1586 * w32font.c (w32font_driver): Initialize all members.
1587
1588 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1589
1590 * lisp.h: Declare syms_of_xsettings.
1591
1592 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1593 Handle CONFIG_CHANGED_EVENT.
1594
1595 * ftfont.c (ftfont_filter_properties): New function.
1596
1597 * frame.c (x_set_font): Remove unused variable lval.
1598
1599 * font.h (struct font_driver): Add filter_properties.
1600
1601 * font.c (font_put_extra): Don't return if val is nil, it means
1602 boolean option is off.
1603 (font_parse_fcname): Collect all extra properties in extra_props
1604 and call filter_properties for all drivers with extra_props and
1605 font as parameter.
1606 (font_open_entity): Do not use cache, it does not pick up new
1607 fontconfig settings like hinting.
1608 (font_load_for_lface): If spec had a name in it, store it in entity.
1609
1610 * emacs.c (main): Call syms_of_xsettings
1611
1612 * config.in: HAVE_GCONF is new.
1613
1614 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1615 xsettings.o is new.
1616
1617 2009-11-17 Kenichi Handa <handa@m17n.org>
1618
1619 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1620 back to the default font in case that no suitable font is found.
1621
1622 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1623
1624 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1625 Suggested by Chad Brown <yandros@mit.edu>.
1626 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1627
1628 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1629
1630 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1631
1632 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1633
1634 * Makefile.in: Ignore errors from mkdir when creating deps directory.
1635
1636 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1637
1638 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1639 has a parent.
1640
1641 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
1642 dependency files in deps/. Include those files into Makefile.
1643
1644 * config.in: Generated (AUTO_DEPEND).
1645
1646 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
1647
1648 * dbusbind.c (Vdbus_registered_objects_table): Rename from
1649 Vdbus_registered_functions_table, because it contains also
1650 properties. Fix docstring.
1651 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
1652
1653 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1654
1655 * alloc.c (mark_object): Don't reprocess marked strings.
1656 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1657 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1658
1659 2009-11-13 Kenichi Handa <handa@m17n.org>
1660
1661 * category.c (word_boundary_p): Adjust for the change of the
1662 semantics of Vword_combining_categories.
1663 (Vword_combining_categories): Describe the slight change of the
1664 semantics.
1665
1666 2009-11-13 Eli Zaretskii <eliz@gnu.org>
1667
1668 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1669
1670 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1671
1672 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1673
1674 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1675
1676 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
1677
1678 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1679
1680 2009-11-11 David Reitter <david.reitter@gmail.com>
1681
1682 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1683 variables to fix 2009-11-09 change.
1684
1685 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1686
1687 * process.c (ifflag_def): Make flag_sym constant.
1688 (Fnetwork_interface_info): Use a constant pointer.
1689 (ifflag_table):
1690 * xfns.c (cursor_bits):
1691 * xdisp.c (power_letter):
1692 * termcap.c (speeds, esctab):
1693 * sysdep.c (baud_convert):
1694 * keyboard.c (lispy_accent_codes, modifier_names):
1695 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1696 (jpeg_format, tiff_format, gif_format, svg_format)
1697 (interlace_start, interlace_increment, gs_format):
1698 * gtkutil.c (separator_names):
1699 * fringe.c (swap_nibble):
1700 * fns.c (base64_value_to_char, base64_char_to_value):
1701 * fileio.c (make_temp_name_tbl):
1702 * coding.c (suffixes): Make constant.
1703
1704 * frame.c (make_initial_frame):
1705 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1706 build_string.
1707 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1708
1709 * s/freebsd.h:
1710 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1711
1712 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1713 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1714
1715 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1716 * xterm.c (syms_of_xterm):
1717 * xfaces.c (syms_of_xfaces):
1718 * xdisp.c (syms_of_xdisp):
1719 * lread.c (syms_of_lread):
1720 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1721 build_string.
1722
1723 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1724
1725 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1726
1727 * fns.c (Fplist_get): Merge the active and the commented out code.
1728
1729 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1730
1731 * keyboard.h: Declare timer_check.
1732
1733 * keyboard.c (timer_check_2): New function that does what the old
1734 timer_check did.
1735 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1736 returned, i.e. don't return -1 with timers pending.
1737
1738 * process.c: Remove extern declaration of timer_check.
1739
1740 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1741 even if timer_check returned -1.
1742
1743 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1744 xg_dialog_data.
1745 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1746 the event loop.
1747 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1748 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1749 Destroy the dialog after xg_dialog_run.
1750
1751 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1752
1753 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1754
1755 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1756
1757 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1758
1759 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
1760
1761 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1762
1763 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1764
1765 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1766 w32menu.c, and nsmenu.m.
1767 Simplify the obsolete case where position is nil.
1768 (cleanup_popup_menu): New function, moved from nsmenu.m.
1769 (struct skp): Remove slot `notreal'.
1770 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1771 adjust callers.
1772 (single_menu_item): Adjust call to parse_menu_item.
1773 (syms_of_menu): Defsubr x-popup-menu.
1774 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1775 (keymap_panes): Don't export any more.
1776 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1777 (xmenu_show): Declare.
1778 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1779 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1780 * keyboard.h (parse_menu_item): Update declaration.
1781 * xmenu.c (Fx_popup_menu): Remove.
1782 (syms_of_xmenu): Don't defsubr x-popup-menu.
1783 * w32menu.c (Fx_popup_menu): Remove.
1784 (syms_of_w32menu): Don't defsubr x-popup-menu.
1785 * nsmenu.m (cleanup_popup_menu): Remove.
1786 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1787 moved to menu.c's Fx_popup_menu.
1788 (Fx_popup_menu): Remove.
1789 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1790 menu_items (it's done in menu.c already).
1791
1792 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1793
1794 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1795 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1796
1797 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
1798
1799 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
1800 xmenu_show. Hide any tooltip before opening a menu.
1801 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1802 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1803
1804 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1805
1806 Let integers use up 2 tags to give them one extra bit and thus double
1807 their range.
1808 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1809 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1810 New macros.
1811 (enum Lisp_Type): Use them. Give explicit values.
1812 (Lisp_Type_Limit): Remove.
1813 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1814 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1815 Pay attention to USE_2_TAGS_FOR_INTS.
1816 (INTEGERP): Use LISP_INT_TAG_P.
1817 * fns.c (internal_equal): Simplify the default case.
1818 (sxhash): Use case_Lisp_Int.
1819 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1820 any more.
1821 (Ftype_of): Use case_Lisp_Int.
1822 (store_symval_forwarding): Take into account the fact that Ints can
1823 now have more than one tag.
1824 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1825 buffer_slot_type_mismatch):
1826 * xfaces.c (face_attr_equal_p):
1827 * print.c (print_object):
1828 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1829 Use case_Lisp_Int.
1830
1831 2009-11-06 Eli Zaretskii <eliz@gnu.org>
1832
1833 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1834
1835 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1836 warning.
1837
1838 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1839
1840 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1841
1842 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1843
1844 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1845 ButtonPressRelease and MotionNotify (bug#4870).
1846
1847 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1848
1849 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1850
1851 * xterm.c (syms_of_xterm):
1852 * xselect.c (syms_of_xselect):
1853 * xmenu.c (syms_of_xmenu):
1854 * xfns.c (syms_of_xfns):
1855 * xfaces.c (syms_of_xfaces):
1856 * xdisp.c (syms_of_xdisp):
1857 * window.c (syms_of_window):
1858 * w32fns.c (syms_of_w32fns):
1859 * undo.c (syms_of_undo):
1860 * textprop.c (syms_of_textprop):
1861 * terminal.c (syms_of_terminal):
1862 * syntax.c (syms_of_syntax):
1863 * sound.c (syms_of_sound):
1864 * search.c (syms_of_search):
1865 * print.c (syms_of_print):
1866 * minibuf.c (syms_of_minibuf):
1867 * macros.c (syms_of_macros):
1868 * keymap.c (syms_of_keymap, initial_define_key)
1869 (initial_define_lispy_key):
1870 * keyboard.c (syms_of_keyboard):
1871 * insdel.c (syms_of_insdel):
1872 * image.c (syms_of_image):
1873 * fringe.c (syms_of_fringe):
1874 * frame.c (syms_of_frame):
1875 * fontset.c (syms_of_fontset):
1876 * fns.c (syms_of_fns):
1877 * fns.c (syms_of_fns):
1878 * fileio.c (syms_of_fileio):
1879 * fileio.c (syms_of_fileio):
1880 * eval.c (syms_of_eval):
1881 * doc.c (syms_of_doc):
1882 * dispnew.c (syms_of_display):
1883 * dired.c (syms_of_dired):
1884 * dbusbind.c (syms_of_dbusbind):
1885 * data.c (syms_of_data):
1886 * composite.c (syms_of_composite):
1887 * coding.c (syms_of_coding):
1888 * cmds.c (syms_of_cmds):
1889 * charset.c (define_charset_internal, syms_of_character):
1890 * ccl.c (syms_of_ccl):
1891 * category.c (syms_of_category, init_category_once):
1892 * casetab.c (syms_of_casetab):
1893 * casefiddle.c (syms_of_casefiddle):
1894 * callint.c (syms_of_callint):
1895 * bytecode.c (syms_of_bytecode):
1896 * buffer.c (keys_of_buffer, syms_of_buffer):
1897 * alloc.c (syms_of_alloc):
1898 * process.c (syms_of_process, init_process):
1899 * lread.c (syms_of_lread, init_obarray):
1900 * font.c (build_style_table):
1901 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1902 intern_c_string, calls to make_pure_string with
1903 make_pure_c_string. Use pure_cons instead of Fcons.
1904
1905 * process.c (socket_options): Make it const.
1906 (set_socket_option, init_process): Use a const pointer.
1907
1908 * lread.c (intern_c_string): New function.
1909 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1910 (defvar_int): Uset it. Make the name const char*.
1911
1912 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1913 (defvar_int): Update prototypes.
1914 (DEFUN, EXFUN): Support for prototypes is now required.
1915 (intern_c_string): New prototype.
1916 (struct Lisp_Subr): Make symbol_name constant.
1917
1918 * font.c (struct table_entry): Remove unused member. Make NAMES
1919 constant.
1920 (weight_table, slant_table, width_table): Make constant.
1921
1922 * emacs.c (struct standard_args): Make name and longname constant.
1923
1924 * character.h (DEFSYM): Use intern_c_string.
1925
1926 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1927
1928 * alloc.c (make_pure_c_string): New function.
1929
1930 * eval.c (Fautoload): Purecopy all arguments.
1931
1932 2009-11-05 Kenichi Handa <handa@m17n.org>
1933
1934 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1935 the buffer in case of replace.
1936
1937 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1938
1939 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1940
1941 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1942
1943 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1944 when applicable (bug#4851).
1945
1946 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1947 (P_): Support for prototypes is now required.
1948
1949 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
1950
1951 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1952 (Bug#4827).
1953
1954 2009-10-30 Eli Zaretskii <eliz@gnu.org>
1955
1956 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
1957
1958 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1959
1960 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1961
1962 * lread.c (Fload): Purecopy the file name when building
1963 Vpreloaded_file_list.
1964
1965 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1966
1967 * w32fns.c (syms_of_w32fns): Change default value of
1968 w32-scroll-lock-modifier to nil. (Bug#2827)
1969
1970 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1971
1972 * minibuf.c (Fall_completions): Fix typos in docstring.
1973
1974 2009-10-26 Andreas Schwab <schwab@redhat.com>
1975
1976 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1977
1978 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1979
1980 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1981 For delta < 0, skip check that only makes sense when the mini-window
1982 is going to be enlarged. (Bug#4534)
1983
1984 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
1985
1986 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1987 string in menu maps (Bug#4471).
1988
1989 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
1990
1991 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1992 FRAME_NS_VIEW on terminal frames (Bug#4765).
1993
1994 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1995
1996 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1997 DBUS_TYPE_UINTnn separately to get proper sign extension.
1998
1999 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2000 can properly handle unsigned types.
2001 (make_uid, make_gid): Remove.
2002
2003 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2004 types again.
2005
2006 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
2007 (system_process_attributes): Likewise.
2008
2009 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2010
2011 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2012
2013 * eval.c (Fautoload): Purecopy the filename. Simplify.
2014
2015 * category.c (Fdefine_category): Purecopy docstring.
2016
2017 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2018
2019 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2020
2021 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2022
2023 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
2024
2025 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2026 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2027 (Bug#4775).
2028
2029 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2030
2031 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2032 (init_fileio_once):
2033 * lisp.h (init_fileio_once): Remove.
2034 * emacs.c (main): Don't call init_fileio_once.
2035
2036 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2037
2038 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2039
2040 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2041
2042 * doprnt.c (doprnt): Fix overflow check.
2043
2044 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2045
2046 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2047
2048 * xterm.h (x_wait_for_event): Declare it.
2049
2050 * xterm.c (pending_event_wait): New variable.
2051 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2052 see pending_event_wait.eventtype.
2053 (handle_one_xevent): Don't change gravity when parent changes.
2054 (x_new_font): Call change_frame_size with new rows/columns before we
2055 try to resize the frame.
2056 (x_wait_for_event): New function.
2057 (x_set_window_size_1): Don't change gravity unless change_gravity
2058 is set.
2059 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2060 don't change frame size, instead wait for the ConfigureNotify.
2061 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2062 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2063 (x_initialize): Initialize pending_event_wait.
2064
2065 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2066 size.
2067
2068 * widget.c (EmacsFrameSetValues): Add comment.
2069 (EmacsFrameSetCharSize): Just call x_set_window_size.
2070
2071 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2072 x_wait_for_event.
2073 (flush_and_sync): Remove again.
2074 (xg_get_font_name): Suggest monospace if no previous font is known.
2075
2076 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2077
2078 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
2079 8th bit, since that only made sense in the ASCII world (bug#4751).
2080
2081 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2082
2083 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2084 processing pending events when event is filtered for input method.
2085 (Bug#3681)
2086
2087 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
2088
2089 * fns.c: Add #endif accidentally removed in previous change.
2090
2091 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2092
2093 * fns.c: Remove code for unsupported system: MAC_OS.
2094 * image.c: Likewise. Include setjmp.h.
2095
2096 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2097
2098 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2099 pixel -1 (bug #4742).
2100
2101 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2102
2103 * process.c (create_pty): Remove conditionals for no longer
2104 supported systems: UNIPLUS and RTU.
2105
2106 * xterm.c:
2107 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2108
2109 * alloc.c: Do not define struct catchtag.
2110 * eval.c: Move struct catchtag definition ...
2111 * lisp.h: ... here.
2112
2113 * image.c: Move png.h #include earlier to avoid warnings.
2114
2115 * xterm.c:
2116 * xsmfns.c:
2117 * xselect.c:
2118 * xrdb.c:
2119 * xmenu.c:
2120 * xftfont.c:
2121 * xfont.c:
2122 * xfns.c:
2123 * xfaces.c:
2124 * xdisp.c:
2125 * window.c:
2126 * widget.c:
2127 * w32xfns.c:
2128 * w32uniscribe.c:
2129 * w32term.c:
2130 * w32select.c:
2131 * w32reg.c:
2132 * w32proc.c:
2133 * w32menu.c:
2134 * w32inevt.c:
2135 * w32heap.c:
2136 * w32font.c:
2137 * w32fns.c:
2138 * w32console.c:
2139 * w32.c:
2140 * w16select.c:
2141 * vm-limit.c:
2142 * unexsol.c:
2143 * unexec.c:
2144 * unexcw.c:
2145 * unexaix.c:
2146 * undo.c:
2147 * tparam.c:
2148 * textprop.c:
2149 * terminfo.c:
2150 * terminal.c:
2151 * termcap.c:
2152 * term.c:
2153 * syntax.c:
2154 * sound.c:
2155 * sheap.c:
2156 * search.c:
2157 * scroll.c:
2158 * region-cache.c:
2159 * regex.c:
2160 * ralloc.c:
2161 * process.c:
2162 * print.c:
2163 * nsterm.m:
2164 * nsselect.m:
2165 * nsmenu.m:
2166 * nsimage.m:
2167 * nsfont.m:
2168 * nsfns.m:
2169 * msdos.c:
2170 * minibuf.c:
2171 * menu.c:
2172 * marker.c:
2173 * macros.c:
2174 * keymap.c:
2175 * keyboard.c:
2176 * intervals.c:
2177 * insdel.c:
2178 * indent.c:
2179 * gtkutil.c:
2180 * ftxfont.c:
2181 * ftfont.c:
2182 * fringe.c:
2183 * frame.c:
2184 * fontset.c:
2185 * font.c:
2186 * fns.c:
2187 * floatfns.c:
2188 * filelock.c:
2189 * fileio.c:
2190 * emacs.c:
2191 * editfns.c:
2192 * dosfns.c:
2193 * doprnt.c:
2194 * doc.c:
2195 * dispnew.c:
2196 * dired.c:
2197 * dbusbind.c:
2198 * data.c:
2199 * composite.c:
2200 * coding.c:
2201 * cmds.c:
2202 * cm.c:
2203 * chartab.c:
2204 * charset.c:
2205 * character.c:
2206 * ccl.c:
2207 * category.c:
2208 * casetab.c:
2209 * casefiddle.c:
2210 * callproc.c:
2211 * callint.c:
2212 * bytecode.c:
2213 * buffer.c:
2214 * atimer.c: Include setjmp.h. (Bug#4643)
2215
2216 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2217
2218 Remove leftover table unibyte_to_multibyte_table.
2219 * character.c (unibyte_to_multibyte_table): Remove.
2220 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2221 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2222 * character.h (UNIBYTE_TO_CHAR): New macro.
2223 (MAKE_CHAR_MULTIBYTE): Use it.
2224 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2225 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2226 (message_dolog, set_message_1):
2227 * search.c (Freplace_match):
2228 * editfns.c (Fcompare_buffer_substrings):
2229 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2230 (concat):
2231 * insdel.c (copy_text, count_size_as_multibyte):
2232 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2233 * term.c (produce_glyphs):
2234 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2235 * regex.c (RE_CHAR_TO_MULTIBYTE):
2236 * cmds.c (internal_self_insert):
2237 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2238
2239 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2240
2241 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2242
2243 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2244
2245 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
2246
2247 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2248
2249 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2250
2251 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2252 still needed under Tiger.
2253
2254 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2255
2256 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2257 __Apple__.
2258
2259 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2260
2261 2009-10-15 Kenichi Handa <handa@m17n.org>
2262
2263 * print.c (print_object): Escape a symbol like "2E10" too.
2264
2265 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
2266
2267 Cleanups and changes for 64-bit compile under Snow Leopard.
2268 Based on suggestions by Erik Charlebois.
2269
2270 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2271
2272 * nsfont.m (ns_char_width): Replace deprecated call.
2273 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2274 cast argument.
2275 (nsfont_open): Use ns_char_width() everywhere.
2276 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
2277
2278 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2279
2280 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2281 where appropriate.
2282
2283 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2284 where appropriate.
2285 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2286 Use stringWithUTF8String.
2287 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2288
2289 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2290 Add formal protocol mention to inheritance.
2291 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2292
2293 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2294 Fix printf format.
2295 (ns_query_color): Use CGFloat where appropriate.
2296 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
2297 (EmacsScroller-mouseDown:): Use long format in printf, and cast
2298 argument.
2299
2300 * config.in (NS_HAVE_NSINTEGER): Drop.
2301
2302 * dbusbind.c (dbus-method-return-internal)
2303 (dbus-method-error-internal): Use long format in printf, and cast
2304 argument.
2305
2306 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2307 in printf, and cast argument.
2308
2309 * process.c (list_processes_1): Use long format in printf, and
2310 cast argument.
2311
2312 2009-10-11 Glenn Morris <rgm@gnu.org>
2313
2314 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2315
2316 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2317
2318 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2319 menu bar with a small width so it doesn't enlarge the frame.
2320
2321 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
2322
2323 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2324
2325 2009-10-06 Glenn Morris <rgm@gnu.org>
2326
2327 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2328 SOME_MACHINE_LISP (this enters indirectly via DOC).
2329
2330 2009-10-05 Eli Zaretskii <eliz@gnu.org>
2331
2332 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2333
2334 2009-10-04 Eli Zaretskii <eliz@gnu.org>
2335
2336 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2337 Doc fix.
2338
2339 2009-10-03 Martin Rudalics <rudalics@gmx.at>
2340
2341 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2342
2343 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
2344
2345 * lisp.h (Qdelete_directory_internal): Remove, because it is not
2346 used anymore outside fileio.c.
2347
2348 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2349
2350 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
2351
2352 * lisp.h (Qdelete_directory_internal):
2353 Declare, instead of Qdelete_directory.
2354
2355 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2356
2357 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2358
2359 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2360
2361 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
2362
2363 * fileio.c (Fdelete_directory_internal): Rename from
2364 Fdelete_directory. It is not a command anymore. It has no file
2365 name handler.
2366
2367 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2368
2369 * xdisp.c (get_next_display_element): Use an enum in last change.
2370
2371 2009-09-28 Kenichi Handa <handa@m17n.org>
2372
2373 * xdisp.c (get_next_display_element): Pay attention to
2374 unibyte_display_via_language_environment in handling
2375 Vnobreak_char_display.
2376
2377 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2378
2379 * nsterm.h (ns_app_name): New extern variable.
2380
2381 * nsterm.m (ns_app_name): New variable.
2382 (ns_term_init): Set and use it.
2383 (ns_term_shutdown): Use it.
2384
2385 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2386 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2387
2388 * nsfns.m (ns_set_name_iconic, ns_set_name)
2389 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2390 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2391
2392 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2393 Remove double-casting in client_data comparison.
2394
2395 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2396
2397 * keyboard.c (make_lispy_event): Remember last wheel direction.
2398 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2399
2400 2009-09-26 Glenn Morris <rgm@gnu.org>
2401
2402 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2403 internal.elc. Add term/pc-win.elc.
2404 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2405 term/x-win.elc.
2406 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2407 term/w32-win.elc.
2408 (NS_SUPPORT): New.
2409 (lisp): Add NS_SUPPORT.
2410 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2411
2412 2009-09-25 David Reitter <david.reitter@gmail.com>
2413
2414 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2415 on Mac OS X 10.6+ (bug#4513).
2416
2417 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2418
2419 * frame.c (xrdb_get_resource): Return nil for empty string resources;
2420 some parts of Emacs code (like font selection) don't grok them.
2421 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
2422
2423 2009-09-24 Andreas Schwab <schwab@redhat.com>
2424
2425 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2426
2427 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2428
2429 * dired.c (Fdirectory_files): Fix typo in docstring.
2430
2431 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2432
2433 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2434 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2435 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2436 under GNUstep.
2437 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2438
2439 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2440 glyph advancement.
2441
2442 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2443
2444 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
2445 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
2446
2447 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2448 deleted (bug #4492).
2449
2450 * nsfont.m (Vns_reg_to_script): New lisp variable.
2451 (syms_of_nsfont): Declare it.
2452 (ns_registry_to_script): New function.
2453 (ns_get_req_script): Call it.
2454 (ns_findfonts): Don't give up on non-unicode registry.
2455
2456 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2457
2458 2009-09-20 Tom Tromey <tromey@redhat.com>
2459
2460 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2461 batch mode (bug#4228).
2462
2463 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
2464
2465 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
2466 carefully. (Bug #4339)
2467
2468 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
2469
2470 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
2471
2472 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2473
2474 * emacs.c (inhibit_x_resources): Update doc string for NS.
2475 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
2476 legacy code for -NXHost. Fix error printf in daemon case.
2477
2478 * nsterm.h (ns_no_defaults): Remove.
2479
2480 * nsterm.m (ns_no_defaults): Remove.
2481 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2482 (ns_use_qd_smoothing): Remove legacy variable.
2483 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2484 don't update the NSWindow itself.
2485 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
2486 state detection and store user rect ourselves. (Bug #3581)
2487
2488 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2489 ns_use_qd_smoothing.
2490
2491 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2492 platform versions. Drop support for emacs-20-style face specs.
2493 (x-close-connection): Drop PSFlush() under OS X.
2494 (x-focus-frame): Activate the app first. (Bug #4180)
2495
2496 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
2497
2498 * emacs.c (inhibit_x_resources): New variable.
2499 (main) [HAVE_NS]: Don't process --quick command line option.
2500 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2501
2502 * lisp.h (inhibit_x_resources): Declare it extern.
2503
2504 * w32reg.c (x_get_string_resource):
2505 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2506
2507 2009-09-17 Eli Zaretskii <eliz@gnu.org>
2508
2509 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2510 Add lisp/term/internal.elc.
2511
2512 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2513
2514 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2515 (bug#4461).
2516
2517 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2518
2519 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2520
2521 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2522 (OBJECTS_MACHINE): Remove, unused.
2523
2524 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2525
2526 * frame.c (x_get_resource_string): Remove unused.
2527
2528 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2529
2530 * xterm.c (x_new_font): Call change_frame_size before calling
2531 x_set_window_size, in case frame size won't change.
2532
2533 * frame.c (x_set_font): Remove dead code.
2534
2535 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2536
2537 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2538
2539 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2540
2541 * lread.c (Fload): Don't output a message after loading an obsolete
2542 package any more (done in Lisp now).
2543
2544 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
2545
2546 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2547
2548 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2549
2550 * keymap.c (Fwhere_is_internal): Use nconc2.
2551
2552 2009-09-11 Alan Mackenzie <acm@muc.de>
2553
2554 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2555 batch mode.
2556
2557 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2558
2559 * xdisp.c (display_mode_element): Detect cycles.
2560
2561 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2562
2563 * keymap.c (where_is_internal): Don't erroneously return nil right after
2564 filling the cache.
2565 (where_is_internal_1): Fix up typo.
2566
2567 2009-09-11 Glenn Morris <rgm@gnu.org>
2568
2569 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2570 share a common doc-string.
2571
2572 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2573
2574 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2575 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2576
2577 * keymap.c (QCadvertised_binding): New constant.
2578 (syms_of_keymap): Initialize it.
2579 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2580 if applicable.
2581
2582 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2583
2584 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2585 (parse_menu_item): Streamline since bindings are recomputed all the
2586 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2587 more and don't support lmenu's menu-alias any more either.
2588
2589 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2590 (where_is_internal): Strip it down to only traverse the keymaps.
2591 Move the cache handling from Fwhere_is_internal to here.
2592 (Fwhere_is_internal): Move the handling of remapping and the choice of
2593 the best binding from where_is_internal to here.
2594 Unify the cached/noncached paths, so remapping is also handled
2595 correctly when the cache is used, and so the cache can be used to
2596 speed up remap-handling when applicable.
2597 Give preference to non-remapped bindings.
2598 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2599 non-remapped bindings.
2600 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2601 command remapping.
2602
2603 * xdisp.c (display_mode_element): Move list length limit from 50 to
2604 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2605
2606 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
2607
2608 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2609
2610 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2611
2612 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2613 (Bug#4334)
2614
2615 * keymap.c (where_is_internal): Filter out shadowed remappings.
2616 Assume that where_is_internal returns unshadowed bindings to simplify
2617 the code and get rid of the gotos. Use ASIZE.
2618
2619 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2620
2621 * xterm.c (x_focus_changed): If we get a focusout and pointer
2622 is invisible, make it visible.
2623
2624 * xterm.h: Remove condition for declaration of
2625 x_*_window_to_frame.
2626
2627 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2628
2629 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2630 initial terminal as well.
2631
2632 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2633
2634 * xterm.h: Rename x_non_menubar_window_to_frame to
2635 x_menubar_window_to_frame.
2636
2637 * xterm.c: Remove declarations also in xterm.h
2638 (XTmouse_position): Do not return valid positions
2639 for clicks in the menubar and the toolbar for Gtk+.
2640
2641 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2642 if the widget for the event has the same top level as a frame,
2643 return the frame.
2644 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2645 internal windows, bug #4122.
2646 (x_non_menubar_window_to_frame): Remove.
2647
2648 2009-09-02 Glenn Morris <rgm@gnu.org>
2649
2650 * buffer.c (default-major-mode): Move most of the doc from here...
2651 (major-mode): ... to here.
2652
2653 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
2654
2655 * process.c (wait_reading_process_output): Keep the descriptor
2656 when pty is used by a non-child process, e.g., in I/O buffer of
2657 GDB this allows inferior to be restarted.
2658
2659 2009-08-29 Eli Zaretskii <eliz@gnu.org>
2660
2661 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2662 both branches into one.
2663
2664 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2665
2666 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2667 (main): Use enable-multibyte-characters rather than
2668 default-enable-multibyte-characters. Output a warning message when
2669 running a unibyte session.
2670
2671 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2672
2673 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2674 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2675 (copy_data_segment): Also copy __program_vars section.
2676 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2677 (dump_it) [LC_DYLD_INFO]: Use it.
2678
2679 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2680
2681 2009-08-28 Eli Zaretskii <eliz@gnu.org>
2682
2683 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2684 $(SRC)/buildobj.h.
2685 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2686 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2687 $(SRC)/buildobj.h.
2688 (clean): Add buildobj.h.
2689
2690 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2691
2692 * print.c (print_object): Set escapeflag to 1 when printing
2693 hashtable keys and values.
2694
2695 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2696
2697 * lread.c (read_integer): Use doubles (and potentially return a float
2698 number) as we do in string-to-number.
2699 (read1): Use strtol to read integers, signal errors on strtol's
2700 overflow and use floats if strtol's output is too large for
2701 Elisp integers.
2702
2703 2009-08-27 Eli Zaretskii <eliz@gnu.org>
2704
2705 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2706 (make-buildobj-SH): Fix last change.
2707 (SRC): Move to before where it's first used.
2708
2709 2009-08-27 Kenichi Handa <handa@m17n.org>
2710
2711 * process.c (send_process): Use encode_coding_object instead of
2712 encode_coding_string to perform eol-conversion even if the string
2713 is unibyte.
2714
2715 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2716 character.
2717
2718 * cmds.c (Fself_insert_command): Avoid unnecessay
2719 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
2720
2721 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2722
2723 * callproc.c (Fcall_process): Remove always true #if.
2724
2725 * lisp.h: Replace #if 0 code for checking with text pointing to
2726 the --enable-checking configure flag.
2727
2728 * emacs.c (main): Mention the --enable-profiling configure flag
2729 instead of using CFLAGS.
2730
2731 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
2732
2733 * Makefile.in (buildobj.h): New target.
2734 (doc.o): Depend on it.
2735 (temacs${EXEEXT}): Don't generate buildobj.lst.
2736 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2737 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2738 ($(BLD)/doc.$(O)): Depend on it.
2739 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2740 provided by Eli Zaretskii.)
2741 ($(TEMACS)): Don't generate buildobj.lst.
2742 * doc.c: Include buildobj.h.
2743 (buildobj): New static variable.
2744 (Fsnarf_documentation): Use it, instead of opening and reading
2745 buildobj.lst.
2746
2747 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
2748
2749 * dbusbind.c (Fdbus_call_method)
2750 (Fdbus_call_method_asynchronously): Use English numeric format for
2751 timeout values in doc string.
2752
2753 2009-08-25 Kenichi Handa <handa@m17n.org>
2754
2755 * alloc.c (mark_char_table): New function.
2756 (mark_object): Use mark_char_table for a char-table.
2757
2758 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2759 (CHAR_TABLE_REF): Use it.
2760
2761 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
2762
2763 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2764 before invoking the newly build emacs to check for load-path
2765 shadowing.
2766
2767 2009-08-22 Glenn Morris <rgm@gnu.org>
2768
2769 * Makefile.in (bootstrap_exe): New variable.
2770 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2771 Use ${bootstrap_exe}.
2772
2773 2009-08-22 Eli Zaretskii <eliz@gnu.org>
2774
2775 * coding.h (encode_coding_string): Don't encode unibyte strings.
2776 (Bug#4047)
2777
2778 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
2779
2780 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2781
2782 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2783 intended as hotfix only.
2784 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2785
2786 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2787
2788 * nsterm.m (ns_get_color): Update documentation properly for last
2789 change, and clean up loose ends in the code left by it. Fix
2790 longstanding bug with 16-bit hex parsing, and add support for
2791 yet another X11 format (rgb:r/g/b) for compatibility.
2792 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2793 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2794
2795 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2796
2797 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2798
2799 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
2800
2801 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2802 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2803 (xd_initialize, xd_pending_messages): Check, whether
2804 $DBUS_SESSION_BUS_ADDRESS is set.
2805
2806 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2807
2808 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2809
2810 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2811
2812 2009-08-20 Glenn Morris <rgm@gnu.org>
2813
2814 * emacs.c (system-type): Doc fix.
2815
2816 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2817
2818 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2819 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2820
2821 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
2822
2823 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2824 New functions.
2825 (xd_initialize): Revert change from 2009-08-16.
2826
2827 2009-08-18 Kenichi Handa <handa@m17n.org>
2828
2829 * fontset.c (Ffontset_font): If a nil element is found in a
2830 font-group vector, return nil.
2831
2832 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
2833
2834 * process.c (status_notify): Don't perform redisplay.
2835 (Fdelete_process, list_processes_1, process_send_signal):
2836 Expliticly perform redisplay.
2837 (wait_reading_process_output): Always check process status, but
2838 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2839
2840 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
2841
2842 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
2843 (XFLOAT_INIT): New macro for storing a float value.
2844 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2845 * fns.c (sxhash): Copy out the value of a float in order to
2846 examine its bytes.
2847 * dbusbind.c (xd_append_arg): Likewise.
2848
2849 * emacs.c (main): Don't call syms_of_data twice.
2850
2851 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
2852
2853 * dbusbind.c (xd_initialize): Add connection file descriptor to
2854 input_wait_mask, in order to let select() detect, whether a new
2855 message has been arrived.
2856 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
2857
2858 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
2859
2860 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2861 New functions.
2862
2863 * lisp.h (xd_pending_messages): Declare.
2864
2865 * keyboard.c (readable_events): Call xd_pending_messages.
2866
2867 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
2868
2869 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
2870
2871 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2872
2873 * buffer.c (set_buffer_internal_1)
2874 (swap_out_buffer_local_variables): Check for unbound local
2875 variables (Bug#4138).
2876
2877 2009-08-14 Eli Zaretskii <eliz@gnu.org>
2878
2879 * process.c (create_pty): Fix last change.
2880
2881 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
2882
2883 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2884 (xbm_load_image): Caller changed.
2885 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
2886
2887 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
2888
2889 * process.c (create_pty): New function.
2890 (Fstart_process): Use it to allow Emacs to just associate a pty
2891 with the buffer. See associated change in gdb-mi.el.
2892 (list_processes_1): Deal with no program name.
2893 (start_process_unwind): Use pid == -2 to mean no process.
2894
2895 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2896
2897 * cmds.c (nonundocount): New global variable.
2898 (keys_of_cmds): Initialize it.
2899 (Fself_insert_command): Use it to combine upto 20 sequential chars
2900 into a single undo entry, just like the Qself_insert_command code in
2901 keyboard.c does.
2902 Call frame_make_pointer_invisible, also like the Qself_insert_command
2903 code in keyboard.c does.
2904 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2905 than its own local replacement for it.
2906
2907 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
2908
2909 * fns.c (concat): Don't re-set string length to its current value.
2910
2911 * coding.h (decode_coding_string, encode_coding_string):
2912 Use SBYTES macro.
2913
2914 * doprnt.c (doprnt_lisp): Delete unused function.
2915 (doprnt): Merge with doprnt1, discarding lispstrings code.
2916 * lisp.h (doprnt_lisp): Don't declare.
2917
2918 2009-08-07 Juri Linkov <juri@jurta.org>
2919
2920 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2921
2922 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2923
2924 * print.c (syms_of_print): Undo previous change.
2925
2926 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2927
2928 * lread.c (read1, syms_of_lread): Read hashtables back from the
2929 readable format.
2930
2931 * print.c (print_preprocess, print_object): Print hashtables fully
2932 and readably.
2933 (syms_of_print): Provide 'hashtable-print-readable.
2934
2935 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2936
2937 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2938 no family set.
2939 (nsfont_open): Handle case when entity has no family.
2940
2941 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2942
2943 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2944 element, not a list, for match case.
2945
2946 2009-07-28 Kenichi Handa <handa@m17n.org>
2947
2948 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2949 rigidly.
2950
2951 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2952 font_parse_xlfd. Check font properties more rigidly.
2953
2954 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2955
2956 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2957 bsd-common.h.
2958
2959 2009-07-27 Kenichi Handa <handa@m17n.org>
2960
2961 * xfaces.c (face_with_height): Call font_clear_prop.
2962
2963 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
2964
2965 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2966
2967 * xterm.c (x_term_init): Use Qx.
2968
2969 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2970
2971 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
2972 (ns_get_color): Revert 2009-07-16 change.
2973
2974 2009-07-25 Eli Zaretskii <eliz@gnu.org>
2975
2976 * lread.c (syms_of_lread) <force_load_messages>: New variable.
2977 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
2978
2979 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
2980
2981 * coding.h (decode_coding_string, encode_coding_string):
2982 Use SCHARS macro.
2983
2984 * lread.c: Rewrite 2009-07-21 changes.
2985 (load_depth): Delete.
2986 (Qload_in_progress): New variable.
2987 (load_unwind): Don't reference load_depth or load_in_progress.
2988 (Fload): Likewise; specbind Qload_in_progress instead.
2989 (init_lread): Don't initialize load_depth.
2990 (syms_of_lread): Initialize and protect Qload_in_progress.
2991
2992 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2993
2994 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2995
2996 2009-07-23 Yavor Doganov <yavor@gnu.org>
2997
2998 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2999
3000 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3001
3002 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
3003 Bugs 3792, 3720, 2402.
3004 (ns_lookup_indexed_color): Check for bad index.
3005 (ns_index_color): Init unused slot to 0.
3006 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3007 Bug 3714, possibly 3082.
3008
3009 2009-07-22 Jason Rumney <jasonr@gnu.org>
3010
3011 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3012 Position IME window at cursor (Bug#2570).
3013 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3014 (globals_of_w32fns): Dynamically load functions required above.
3015
3016 * w32term.c (w32_draw_window_cursor): Send message to reposition
3017 any IME window.
3018
3019 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3020
3021 * fileio.c: Revert 2009-07-16 changes.
3022 (Vauto_save_include_big_deletions): New variable.
3023 (Fdo_auto_save): Disable auto-save only if
3024 auto-save-include-big-deletions is nil.
3025
3026 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
3027
3028 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3029 the overflowed pixels into account (Bug#3879).
3030
3031 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
3032
3033 * lread.c (load_depth): New variable.
3034 (Fload, load_unwind, init_lread): Set it to the load recursion
3035 depth; set load_in_progress as a simple boolean based on the
3036 current load_depth. (Bug#3892)
3037
3038 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3039
3040 * nsfont.m (ns_has_attribute): Remove.
3041 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3042
3043 2009-07-18 Juri Linkov <juri@jurta.org>
3044
3045 * process.c (Fset_process_query_on_exit_flag): Mention killing
3046 a buffer in docstring.
3047
3048 2009-07-17 Kenichi Handa <handa@m17n.org>
3049
3050 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3051
3052 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3053
3054 * nsfns.m (Fns_set_alpha): Remove function.
3055 (syms_of_nsfns): Don't defsubr it.
3056
3057 * nsterm.m (ns_get_color): Remove incompatible color formats.
3058 (ns_color_to_lisp): Generate #rrggbb color format string.
3059
3060 2009-07-16 Richard Stallman <rms@gnu.org>
3061
3062 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3063 (Fset_buffer_auto_saved): Handle save_length = -2.
3064
3065 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
3066
3067 * xterm.c (Qx_gtk_map_stock): New var.
3068
3069 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3070 of calling intern each time.
3071
3072 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3073
3074 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3075 does tiling.
3076
3077 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3078
3079 2009-07-14 Kenichi Handa <handa@m17n.org>
3080
3081 * font.c (font_vconcat_entity_vectors): New function.
3082 (struct font_sort_data): New member font_driver_preference.
3083 (font_compare): Check font_driver_preference.
3084 (font_sort_entities): The format of the first argument changed.
3085 (font_delete_unmatched): Likewise.
3086 (font_list_entities): The return type changed.
3087 (font_select_entity): The format of the second argument changed.
3088 (font_find_for_lface): Adjuste for the above changes.
3089 Don't suppress the checking of C even if the repertory supports it.
3090 (Flist_fonts): Adjust for the above changes.
3091
3092 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3093 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
3094 Reject a font who has adstyle property that is different from a
3095 langname derived from registry property.
3096 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
3097
3098 2009-07-13 Eli Zaretskii <eliz@gnu.org>
3099
3100 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3101 local copy of dirfilename.
3102
3103 2009-07-13 Kenichi Handa <handa@m17n.org>
3104
3105 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3106 against max_char.
3107
3108 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3109 calling XSYMBOL (sym).
3110
3111 2009-07-11 Eli Zaretskii <eliz@gnu.org>
3112
3113 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3114 New function.
3115 (directory_files_internal) [WINDOWSNT]:
3116 Bind w32-get-true-file-attributes to either t or nil, depending whether
3117 the filesystem of the directory is fast or slow.
3118
3119 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3120 file name.
3121 (is_slow_fs): New function.
3122 (stat): Use it to determine whether to issue more system calls to
3123 get accurate file attributes, when w32-get-true-file-attributes is
3124 `local'.
3125
3126 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3127
3128 * xfns.c (Fx_select_font): Remember last font selected in
3129 x_last_font_name and use that the next time. Also try the frame
3130 parameter font-parameter as default to the font dialog.
3131
3132 2009-07-10 Kenichi Handa <handa@m17n.org>
3133
3134 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3135
3136 2009-07-09 Eli Zaretskii <eliz@gnu.org>
3137
3138 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3139
3140 * w32.c (stat): Treat UNC file names as residing on remote
3141 drives. (Bug#3542)
3142
3143 2009-07-09 Kenichi Handa <handa@m17n.org>
3144
3145 * fontset.c (fontset_find_font): Fix previous change.
3146
3147 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
3148
3149 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3150 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3151 error flag.
3152
3153 2009-07-08 Kenichi Handa <handa@m17n.org>
3154
3155 * fontset.c (fontset_find_font): Fix the logic of handling
3156 charset_matched.
3157 (font_for_char): Delete unused var.
3158 (generate_ascii_font_name): Delete it.
3159
3160 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3161
3162 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3163 (encode_coding_sjis): Fix the code range check.
3164
3165 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
3166
3167 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3168 (Fexpand_file_name): Copy string data properly (Bug#3772).
3169
3170 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3171
3172 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3173 first MapNotify.
3174
3175 2009-07-07 Kenichi Handa <handa@m17n.org>
3176
3177 * character.h (unibyte_has_multibyte_table): Delete extern.
3178 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3179
3180 * charset.c (Fset_charset_priority): Update charset_unibyte.
3181 (syms_of_charset): Initialize charset_unibyte.
3182
3183 * character.c (unibyte_has_multibyte_table): Delete it.
3184 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3185 charset_unibyte.
3186 (multibyte_char_to_unibyte_safe): Likewise.
3187 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3188
3189 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
3190 (x_produce_glyphs): Likewise.
3191
3192 * .gdbinit (xcharset): Fix the treating $arg0.
3193
3194 2009-07-04 Eli Zaretskii <eliz@gnu.org>
3195
3196 Emulation of `getloadavg' on MS-Windows.
3197 * w32.c: Include float.h
3198 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3199 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3200 (get_native_system_info, get_system_times): New functions.
3201 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3202 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3203 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3204 g_b_init_get_system_times, and num_of_processors.
3205
3206 2009-07-03 Jason Rumney <jasonr@gnu.org>
3207
3208 * w32term.c (w32_initialize): Use standard types.
3209
3210 2009-07-03 Eli Zaretskii <eliz@gnu.org>
3211
3212 * dired.c (Ffile_attributes): Decode user and group names by the
3213 locale's encoding. (Bug#3443)
3214
3215 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3216
3217 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3218 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3219
3220 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3221
3222 * term.c (init_tty): Remove spurious #ifdef.
3223
3224 * m/mips.h: Mention this file is also used for netbsd.
3225 * m/pmax.h: Remove file.
3226
3227 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3228
3229 * xterm.h (struct x_display_info): Add invisible_cursor.
3230 (struct x_output): Add current_cursor.
3231
3232 * xterm.c (XTtoggle_invisible_pointer): New function.
3233 (x_define_frame_cursor): Don't define cursor if invisible or the
3234 same as before. Set current_cursor.
3235 (x_create_terminal): Set toggle_invisible_pointer_hook.
3236
3237 * xfns.c (make_invisible_cursor): New function.
3238 (x_set_mouse_color): Call make_invisible_cursor.
3239 Set current_cursor.
3240 (x_window): Set current_cursor.
3241
3242 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3243
3244 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3245 inserting a character.
3246 (read_avail_input): Call frame_make_pointer_visible.
3247
3248 * frame.c (Vmake_pointer_invisible): New variable.
3249 (frame_make_pointer_invisible, frame_make_pointer_visible):
3250 New functions.
3251 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3252
3253 * frame.h: Declare frame_make_pointer_invisible and
3254 frame_make_pointer_visible.
3255 (struct frame): Add pointer_invisible.
3256
3257 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3258
3259 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3260 frame isn't visible.
3261 (xg_frame_resized): If width/height is -1, get size of window
3262 from X server.
3263
3264 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3265 for MapNotify.
3266
3267 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
3268 here or call change_frame_size. Just call flush_and_sync.
3269 (flush_and_sync): Reintroduce.
3270
3271 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
3272
3273 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
3274
3275 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3276 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3277
3278 * frame.h: Declare Qsticky.
3279
3280 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3281
3282 * nsfns.m (ns_frame_parm_handlers): Ditto.
3283
3284 * frame.c: Declare Qsticky.
3285 (frame_parms): Add sticky.
3286
3287 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3288
3289 * xterm.h: Declare x_set_sticky.
3290
3291 * xterm.c (x_set_sticky): New function.
3292
3293 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3294 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3295 xg_tool_bar_proxy_help_callback.
3296
3297 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3298
3299 * frame.c: Qmaximized is new.
3300 (x_set_frame_parameters): Do not handle fullscreen specially.
3301 Only set width and height if explicitly set.
3302 (x_set_fullscreen): Handle Qmaximized.
3303 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3304 (syms_of_frame): Initialize Qmaximized.
3305
3306 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3307 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3308
3309 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
3310 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3311 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3312 set gravity to NorthWestGravity when USE_GTK.
3313 (set_wm_state): New function.
3314 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3315 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3316 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
3317 or the case when no window manager is running. That means remove calls
3318 to x_real_positions and x_fullscreen_adjust.
3319
3320 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3321 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3322 flush_and_sync.
3323 (xg_height_changed): New function.
3324 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
3325 and gtk_window_set_policy. Set frame gravity after parsing the
3326 geometry string.
3327 (xg_update_frame_menubar, free_frame_menubar)
3328 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3329 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3330 Remove calls to xg_frame_set_char_size.
3331
3332 2009-07-01 Kenichi Handa <handa@m17n.org>
3333
3334 * keyboard.c (decode_keyboard_code): New function.
3335 (tty_read_avail_input): Decode the input bytes if necessary.
3336
3337 * coding.c (setup_coding_system):
3338 Initialize coding->carryover_bytes to 0.
3339 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3340 use Qno_conversion.
3341
3342 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3343
3344 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3345
3346 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
3347
3348 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
3349
3350 2009-06-30 Jason Rumney <jasonr@gnu.org>
3351
3352 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3353 is already loaded.
3354 Set user model ID if supported (bug#1849).
3355
3356 2009-06-29 Jim Meyering <meyering@redhat.com>
3357
3358 Remove useless if-before-xfree test.
3359 * nsfont.m (nsfont_close): Remove useless test.
3360 * term.c (delete_tty): Likewise.
3361 * w32.c (system_process_attributes): Likewise.
3362 * w32font.c (w32font_close): Likewise.
3363 * xfaces.c (x_free_gc): Likewise.
3364 * xselect.c (buffer): Likewise.
3365
3366 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3367
3368 * process.c (send_process): Keep decoded string in a local
3369 variable and protect it from GC. (Bug#3521)
3370
3371 2009-06-28 Eli Zaretskii <eliz@gnu.org>
3372
3373 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3374 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3375
3376 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
3377
3378 * xdisp.c (start_display, handle_face_prop)
3379 (move_it_vertically_backward, cursor_row_fully_visible_p)
3380 (redisplay_window, try_window_id, produce_image_glyph):
3381 Delete some #ifdef-ed out code chunks that are now obsolete.
3382
3383 * xterm.c (x_update_window_begin, x_new_focus_frame)
3384 (x_scroll_bar_handle_click, handle_one_xevent)
3385 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3386 (x_make_frame_visible, x_make_frame_invisible)
3387 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3388 code chunks that are now obsolete.
3389
3390 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
3391
3392 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3393 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3394 for hours, when optimzation is enabled.
3395 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3396 (xd_read_message): Make them static.
3397
3398 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3399
3400 * term.c (turn_on_face): Allow simultaneously bold and dim
3401 terminal faces (Bug#3530).
3402
3403 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
3404
3405 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3406
3407 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3408 truncation glyphs (Bug#3686).
3409
3410 2009-06-27 Glenn Morris <rgm@gnu.org>
3411
3412 * m/pmax.h: Restore file, with only netbsd portions.
3413
3414 2009-06-26 David Reitter <david.reitter@gmail.com>
3415
3416 * nsterm.m (keydown): Avoid infinite loop.
3417
3418 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3419
3420 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3421 the arg FORCE_SYMBOL.
3422
3423 2009-06-25 Kenichi Handa <handa@m17n.org>
3424
3425 * fontset.c (fontset_find_font): When a usable rfont_def is found
3426 in a fallback font-group, make it the first element of the group.
3427
3428 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
3429
3430 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3431
3432 2009-06-24 Kenichi Handa <handa@m17n.org>
3433
3434 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3435 set for C.
3436 (fontset_font): Record the availability of a font for C both in
3437 the realized fontsets of the current one and the default one.
3438
3439 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3440
3441 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3442 conditional, it is always defined on AIX.
3443
3444 2009-06-23 Miles Bader <miles@gnu.org>
3445
3446 * window.c (Vrecenter_redisplay): New variable.
3447 (syms_of_window): Initialize it.
3448 (Qtty): New extern declaration.
3449 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3450
3451 2009-06-23 Jim Meyering <meyering@redhat.com>
3452
3453 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3454 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
3455 pointer dereferences are guaranteed to be valid.
3456
3457 2009-06-23 Kenichi Handa <handa@m17n.org>
3458
3459 * emacs.c (main): Call init_font ().
3460
3461 * font.h (Vfont_log): Extern it.
3462 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3463
3464 * font.c (font_sort_entities, font_list_entities)
3465 (font_matching_entity, font_open_entity)
3466 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3467 (Vfont_log): Delete static.
3468 (font_log_env_checked): Delete this variable.
3469 (font_add_log): Don't check font_log_env_checked.
3470 (font_deferred_log): Check Vfont_log.
3471 (init_font): New function.
3472
3473 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3474
3475 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3476
3477 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3478
3479 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3480
3481 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3482 (face_for_char): Don't call font_deferred_log here.
3483 (font_for_char): Likewise.
3484
3485 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
3486
3487 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3488 rather than its background_width for drawing the overline and
3489 underline (Bug#489).
3490
3491 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3492 rather than its background_width for drawing the overline and
3493 underline (Bug#489).
3494 (xg_default_icon_file): New variable.
3495 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3496 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
3497
3498 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3499 (load_overlay_strings): Remove externs.
3500 (fast_find_position): Function deleted.
3501 (mouse_face_from_buffer_pos): New function, based on
3502 fast_find_position. Correctly handle before-strings,
3503 display-strings, and after-strings (Bug#1220).
3504 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3505
3506 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3507
3508 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
3509 (move_it_in_display_line_to, move_it_in_display_line_to)
3510 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3511
3512 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3513
3514 * Branch for 23.1.
3515
3516 2009-06-21 Jason Rumney <jasonr@gnu.org>
3517
3518 * w32term.c (keyboard_codepage): New static variable.
3519 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3520 (w32_read_socket) [WM_CHAR]: Use it to decode character
3521 input (bug#3237).
3522 (w32_initialize): Initialize it.
3523 (codepage_for_locale): New function.
3524
3525 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
3526
3527 * process.c (status_message): Pass Faset index argument as a lisp
3528 object, so as to work with USE_LISP_UNION_TYPE.
3529
3530 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3531
3532 * coding.c (Ffind_coding_systems_region_internal):
3533 Cache checked characters.
3534
3535 2009-06-18 Kenichi Handa <handa@m17n.org>
3536
3537 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
3538
3539 2009-06-18 Andreas Schwab <aschwab@redhat.com>
3540
3541 * xdisp.c (redisplay_internal): Check that the frame is still
3542 live after redisplay of its windows.
3543 (redisplay_windows): Check that the window is still live.
3544
3545 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3546
3547 * coding.c (detect_coding_utf_16): Fix previous change.
3548
3549 2009-06-16 Kenichi Handa <handa@m17n.org>
3550
3551 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3552 UTF-16 by checking the dispersion of Eth and Oth bytes.
3553
3554 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3555
3556 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3557
3558 2009-06-15 Kenichi Handa <handa@m17n.org>
3559
3560 * process.c (status_message): Fix previous change. Be sure to
3561 decode a localized string.
3562
3563 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3564
3565 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3566 add comment explaining why.
3567
3568 2009-06-14 Sidney Markowitz <sidney@sidney.com>
3569
3570 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
3571
3572 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3573
3574 * nsfont.m (ns_attribute_value): Remove.
3575 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3576 (ns_has_attribute): Shrink the normal range.
3577 (ns_findfonts): Don't worry about requested spec in determining
3578 need for synthItal.
3579 (ns_get_covering_families): Retain scriptToFamilies.
3580
3581 2009-06-14 Seiji Zenitani <zenitani@mac.com>
3582
3583 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3584
3585 2009-06-11 Kenichi Handa <handa@m17n.org>
3586
3587 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3588 overhang for the static composition case.
3589
3590 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3591
3592 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3593 overhang for the automatic composition case.
3594
3595 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3596 composition case.
3597
3598 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
3599
3600 * xdisp.c (get_next_display_element): When handling wrap-prefix
3601 and line-prefix, treat \n as a control character (bug#3502).
3602
3603 2009-06-10 Kenichi Handa <handa@m17n.org>
3604
3605 * font.c (font_parse_family_registry): Fix for one-char foundry.
3606 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3607
3608 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3609
3610 * process.c (status_message): Fix handling of multibyte signal
3611 string (Bug#3499).
3612
3613 2009-06-09 Jim Meyering <meyering@redhat.com>
3614
3615 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3616 color name is missing.
3617
3618 2009-06-09 Kenichi Handa <handa@m17n.org>
3619
3620 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3621 FROM-CODE and TO-CODE are codepoints of CHARSET.
3622
3623 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3624
3625 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3626
3627 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3628
3629 Changes to support :script/:lang/:otf in NS font driver.
3630 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3631 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3632 indicate not part of font driver interface, and change callers.
3633 (ns_get_family): Remove pointless null check.
3634 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3635 ns_spec_to_descriptor, ns_descriptor_to_entity.
3636 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3637 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3638 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3639 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3640 (ns_get_req_script, ns_accumulate_script_ranges)
3641 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3642 New functions.
3643 (nsfont_list, nsfont_match): Use ns_findfonts.
3644 (nsfont_open): Use font descriptor instead of traits.
3645 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3646 (dump_glyphstring): Rename to ns_dump_glyphstring.
3647
3648 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3649
3650 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3651
3652 * fontset.c (fontset_from_font): Remove NS-specific code.
3653
3654 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
3655
3656 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3657 nonactive windows.
3658
3659 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
3660
3661 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
3662
3663 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3664
3665 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3666
3667 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
3668
3669 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3670 account for the overflowing of newlines into the last glyph on the
3671 display line (Bug#3482).
3672
3673 2009-06-05 David Reitter <david.reitter@gmail.com>
3674
3675 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3676 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
3677 Fns_selection_exists_p, Fns_selection_owner_p.
3678
3679 2009-06-03 Jason Rumney <jasonr@gnu.org>
3680
3681 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3682 available. (Bug#3379)
3683
3684 2009-05-29 Kenichi Handa <handa@m17n.org>
3685
3686 * coding.c (get_translation_table):
3687 Check Venable_character_translation.
3688
3689 2009-05-26 David Reitter <david.reitter@gmail.com>
3690
3691 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3692 (x_make_frame_visible): Move frame to front rather than calling
3693 ns_raise_frame().
3694 (keyDown:): Do not swallow events that aren't re-sent if frame
3695 isn't key window.
3696 (drawRect:): Do not set visibility/iconified flags because
3697 drawRect may be called by NSView even if the frame is hidden.
3698
3699 * nsfns.m (Fx_create_frame): Follow other ports in
3700 determining visibility; default to t. Ensure async_visible is set.
3701
3702 2009-05-23 Eli Zaretskii <eliz@gnu.org>
3703
3704 * dired.c (Ffile_attributes): Doc fix.
3705
3706 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
3707
3708 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3709
3710 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3711
3712 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3713 and xfont_scratch_props.
3714 (syms_of_xfont): Do it here instead.
3715 (xfont_find_ccl_program): Delete, unused.
3716 (xfont_open): Delete unused var `i'.
3717
3718 2009-05-21 Kenichi Handa <handa@m17n.org>
3719
3720 * fontset.c (Qlatin): Don't make it static.
3721
3722 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3723 New functions.
3724 (xfont_scripts_cache, xfont_scratch_props): New variables.
3725 (Qlatin, Vscalable_fonts_allowed): Extern it.
3726 (xfont_list_pattern): Argument changed. Callers changed.
3727 Check Vscalable_fonts_allowed. Check the support of a script.
3728 (xfont_list): Don't reject a font spec with :script property.
3729 (xfont_has_char): Fix setting of encoding.
3730 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3731 xfont_scratch_props.
3732
3733 2009-05-19 Kenichi Handa <handa@m17n.org>
3734
3735 * font.c (font_sort_entities): Rename from font_sort_entites.
3736 Callers changed.
3737
3738 2009-05-18 Kenichi Handa <handa@m17n.org>
3739
3740 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3741
3742 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3743
3744 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3745 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3746
3747 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3748
3749 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3750 (x_delete_terminal): Dissociate resource database from display and
3751 then call XrmDestroyDatabase before closing display.
3752
3753 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3754
3755 * nsterm.m (ns_read_socket): Remove unused variable.
3756 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3757 whether selected frame is viable before raising it (based on patch
3758 by David Reitter), and improve commentary.
3759 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
3760
3761 2009-05-15 Kenichi Handa <handa@m17n.org>
3762
3763 * font.c (Ffont_spec): Check arguments.
3764
3765 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
3766
3767 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3768 weight when testing attributes (Bug#3282).
3769
3770 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3771
3772 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3773 what we expect to get in the next ConfigureNotify event.
3774
3775 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3776 before Xft one (Bug#1696).
3777
3778 2009-05-07 David Reitter <david.reitter@gmail.com>
3779
3780 * nsfns.m (Fx_display_planes): Compute bitplanes using
3781 NSBitsPerPixelFromDepth (Bug#3207).
3782
3783 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
3784
3785 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3786
3787 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
3788
3789 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3790
3791 2009-05-07 David Reitter <david.reitter@gmail.com>
3792
3793 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3794 Respect mouse face background.
3795
3796 2009-05-07 David Reitter <david.reitter@gmail.com>
3797
3798 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3799 Mouse movement/highlight: bracket drawing operations
3800 in ns_update_begin and ns_update_end.
3801
3802 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3803
3804 * nsfns.m (ns_get_screen): Rewrite.
3805 Don't presume selected-frame is of type `ns'.
3806
3807 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3808 all drivers.
3809
3810 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3811
3812 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3813
3814 * keyboard.h (add_user_signal): Fix typo in extern.
3815
3816 * lisp.h (add_user_signal): Remove extern.
3817
3818 * unexelf.c (unexec): Consider a section to precede the .bss section
3819 if its addresses overlap that of .bss.
3820 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3821 instead of dumping process.
3822
3823 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3824
3825 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3826
3827 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3828
3829 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3830
3831 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3832
3833 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3834 any statements.
3835
3836 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3837
3838 * process.c (read_process_output): Make sure the current buffer is
3839 always restored.
3840
3841 * coding.c (record_conversion_result): Don't modify
3842 Vlast_code_conversion_error for successful result.
3843 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3844
3845 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3846
3847 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
3848 (load_charset_map): Remove unnecessary code.
3849
3850 2009-04-30 David Reitter <david.reitter@gmail.com>
3851
3852 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
3853 through f24.
3854
3855 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
3856
3857 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3858
3859 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3860 face_at_buffer_position.
3861 (face_before_or_after_it_pos, get_next_display_element)
3862 (note_mouse_highlight): Update face_at_buffer_position call.
3863
3864 * term.c (term_mouse_highlight):
3865 * msdos.c (IT_note_mouse_highlight):
3866 * fontset.c (Finternal_char_font):
3867 * font.c (font_at, font_range): Update face_at_buffer_position call.
3868
3869 * dispextern.h (face_at_buffer_position): Update prototype.
3870
3871 2009-04-30 Kenichi Handa <handa@m17n.org>
3872
3873 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
3874
3875 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3876
3877 * callproc.c (Fcall_process): Fix GC protection. Make sure
3878 current buffer is always restored.
3879
3880 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3881
3882 * atimer.c (init_atimer): Also clear stopped_atimers.
3883
3884 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3885
3886 * process.c (create_process): Clean up merger residues of
3887 2008-07-17 change.
3888
3889 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
3890
3891 * lread.c (Vread_circle): New variable.
3892 (read1): Disable recursive read if Vread_circle is nil.
3893
3894 2009-04-29 Kenichi Handa <handa@m17n.org>
3895
3896 * fontset.h (set_default_ascii_font): Delete extern.
3897
3898 * fontset.c (set_default_ascii_font): Delete this unused function.
3899
3900 * frame.c (x_set_font): When ARG is a font-object, check if the
3901 font-object matches with the ASCII font-spec of the frame's
3902 fontset. If not, create a new fontset for the frame. (Bug #3075)
3903
3904 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3905
3906 * fns.c (Flocale_info): Protect vector from GC during decoding.
3907
3908 * process.c (Fstart_process): Protect argv strings from GC during
3909 encoding.
3910
3911 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3912
3913 * sysdep.c: Include <ctype.h>.
3914
3915 2009-04-27 David Reitter <david.reitter@gmail.com>
3916
3917 * nsfont.m (nsfont_open): Remove unused variable shrink.
3918 Remove commented-out code.
3919
3920 2009-04-26 Johan Bockgård <bojohan@gnu.org>
3921
3922 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3923
3924 2009-04-25 Jason Rumney <jasonr@gnu.org>
3925
3926 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3927
3928 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3929
3930 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3931 Swap bytes in short integer if fringe bitmap width > 8.
3932
3933 2009-04-23 Kenichi Handa <handa@m17n.org>
3934
3935 * xfaces.c (Fx_list_fonts): If a font size is specified in
3936 PATTERN, set it in returned scalable fonts.
3937
3938 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
3939
3940 * keyboard.c (Fset_input_meta_mode): Doc fix.
3941
3942 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3943
3944 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
3945
3946 * coding.c (Fterminal_coding_system): Doc fix.
3947
3948 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3949 (Fx_display_pixel_height, Fx_display_planes)
3950 (Fx_display_color_cells, Fx_server_max_request_size)
3951 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3952 (Fx_display_mm_height, Fx_display_mm_width)
3953 (Fx_display_backing_store, Fx_display_visual_class)
3954 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3955 Doc fixes, replacing "terminal id" with "terminal object".
3956 (check_x_display_info): Handle terminal objects instead of
3957 terminal ids.
3958
3959 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3960 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
3961 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3962 Doc fixes, replacing "terminal id" with "terminal object".
3963
3964 2009-04-21 Kenichi Handa <handa@m17n.org>
3965
3966 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
3967 (font_score): Check AVGWIDTH too.
3968
3969 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3970 worst case.
3971 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3972 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
3973
3974 2009-04-19 Jason Rumney <jasonr@gnu.org>
3975
3976 The following changes fix Bug#3005 for wide glyphs on each platform,
3977 without reintroducing Bug#1258 for stretch glyphs.
3978
3979 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3980 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3981 get_phys_cursor_geometry.
3982
3983 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
3984 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3985 using get_phys_cursor_geometry.
3986
3987 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3988 correctly calculated.
3989
3990 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3991
3992 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3993 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
3994 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3995 is deprecated.
3996
3997 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3998
3999 * font.c (font_put_frame_data): Use xfree instead of free.
4000
4001 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
4002
4003 * w32font.c (Qja, Qko): Remove declarations.
4004 (syms_of_w32font): Don't DEFSYM them.
4005
4006 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
4007
4008 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4009
4010 * font.h (Qja, Qko): Extern them.
4011
4012 * ftfont.c (Qja, Qko): Remove declarations.
4013
4014 * xfont.c (Qja, Qko): Remove declarations.
4015
4016 2009-04-17 Kenichi Handa <handa@m17n.org>
4017
4018 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4019 string from a vector to handle Latin-1 characters correctly.
4020
4021 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4022 entity even if the cache hits.
4023
4024 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4025
4026 * search.c (boyer_moore): Use zero as marker value for a possible
4027 match instead of depending on overflow behavior. (Bug#2844)
4028
4029 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4030 * lisp.h: Adjust prototypes.
4031
4032 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
4033
4034 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4035 change (Bug#3003).
4036
4037 2009-04-16 Kenichi Handa <handa@m17n.org>
4038
4039 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
4040
4041 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4042 adstyle.
4043
4044 * ftfont.c (Qja, Qko): Don't make them static.
4045 (enum ftfont_cache_for): New enum.
4046 (fc_charset_table): Undo the previous change.
4047 (ftfont_get_latin1_charset): Delete it.
4048 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4049 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
4050 non-scarable font, try to get AVERAGE_WIDTH.
4051 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4052 Change ft_face_cache from a list of a hash-table. Don't check
4053 `ja' and `ko' adstyle here.
4054 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4055 FTFONT_CACHE_FOR_CHARET.
4056 (ftfont_get_charset): Undo the previous change.
4057 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
4058 (ftfont_close): Likewise.
4059 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4060
4061 * font.c (font_sort_entites): Change the meaning of the arg
4062 BEST-ONLY. Don't optimize for VEC of lenght 1.
4063 (font_select_entity): Just return the value of font_sort_entites.
4064
4065 * xfaces.c (merge_face_vectors): Reflect font properties in
4066 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4067 font_clear_prop if a face attribute doesn't change.
4068
4069 * charset.h (charset_ksc5601): Extern it.
4070
4071 * charset.c (charset_ksc5601): New variable.
4072 (Fdefine_charset_internal): Set charset_ksc5601.
4073 (init_charset_once): Initialize charset_ksc5601 to -1.
4074
4075 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4076
4077 * fileio.c (history_delete_duplicates): Remove unused declaration.
4078
4079 * callint.c (history_delete_duplicates): New declaration.
4080 (Fcall_interactively): Remove command history duplicates when
4081 history_delete_duplicates is true.
4082
4083 2009-04-14 Eli Zaretskii <eliz@gnu.org>
4084
4085 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4086
4087 2009-04-14 Kenichi Handa <handa@m17n.org>
4088
4089 * font.c (Ffont_info): Fix docstring. Fix the second element of
4090 the returned value (bug#2949).
4091
4092 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
4093
4094 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4095
4096 2009-04-14 Kenichi Handa <handa@m17n.org>
4097
4098 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4099 encoding charset is ascii_compatible.
4100
4101 * charset.c (Fdefine_charset_internal): Make charset
4102 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4103 code_offset is 0, and covers all ASCII characters.
4104
4105 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4106
4107 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4108 (ns_string_to_pasteboard_internal):
4109 * nsmenu.m (process_dialog):
4110 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4111 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4112 * lisp.h (Fx_load_color_file): Declare.
4113
4114 2009-04-13 Kenichi Handa <handa@m17n.org>
4115
4116 * font.c (font_delete_unmatched): Preserve the order of list elements.
4117 (font_select_entity): Suppress the code to optimize for the same
4118 kind of fonts.
4119 (font_load_for_lface): Get a font that supports at least ASCII
4120 characters.
4121
4122 * ftfont.c (Qja, Qko): New variables.
4123 (fc_charset_table): Delete uniquifier data for iso8859-1.
4124 (ftfont_get_latin1_charset): New function.
4125 (get_adstyle_property): New function.
4126 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4127 bitmap fonts.
4128 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4129 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4130 `ko' or `ja'.
4131 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
4132 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
4133 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4134 property.
4135 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4136 (syms_of_ftfont): DEFSYM Qja and Qko.
4137
4138 2009-04-09 Kenichi Handa <handa@m17n.org>
4139
4140 * charset.c (map_charset_chars): For a charset of `superset'
4141 method, fix calculation of code range.
4142
4143 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4144 from the list of extra properties.
4145 (font_clear_prop): Be sure to delete `:name' font property.
4146
4147 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4148
4149 * dispnew.c (redraw_overlapping_rows): Fix detection of
4150 overlapping for topmost and bottommost rows.
4151
4152 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
4153
4154 2009-04-06 Jason Rumney <jasonr@gnu.org>
4155
4156 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4157
4158 2009-04-06 Kenichi Handa <handa@m17n.org>
4159
4160 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4161
4162 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4163
4164 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4165
4166 * ftfont.c (ftfont_open): Fix checking of the return value of
4167 FT_Load_Char. Fix setting font->underline_thickness.
4168
4169 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
4170
4171 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4172 (Fterminal_parameters, Fterminal_parameter)
4173 (Fset_terminal_parameter): In doc string, refer to terminal
4174 objects rather than terminal ids.
4175
4176 2009-04-04 Eli Zaretskii <eliz@gnu.org>
4177
4178 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4179 ret_lim_data. (Bug#2867)
4180
4181 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
4182
4183 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4184 so they don't get wider than the window, matching 2006-01-23
4185 change to the partner function in xdisp.c (Bug#2800).
4186
4187 2009-04-03 Kenichi Handa <handa@m17n.org>
4188
4189 * print.c (print_object): Make each lowest sub_char_table start a
4190 new line (Bug#2866).
4191
4192 2009-04-02 Kenichi Handa <handa@m17n.org>
4193
4194 * fontset.c (fontset_font): Record no-font when a fontset
4195 explicitly tells not to try another font-specs.
4196
4197 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4198
4199 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4200
4201 2009-03-30 Kenichi Handa <handa@m17n.org>
4202
4203 * fontset.c (fontset_from_font): Specify only registry in a
4204 font-spec for all characters supported by that registry.
4205
4206 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4207 even if HAVE_M17N_FLT is not defined.
4208
4209 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4210
4211 * ftfont.c: Conditionalize prototyping and use of
4212 ftfont_variation_glyphs.
4213
4214 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4215
4216 * frame.c (delete_frame): Work around compiler bug.
4217
4218 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4219 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4220 Some more EMACS_INT.
4221 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4222
4223 * xdisp.c (dump_glyph): Fix typo.
4224
4225 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4226 (adjust_markers_gap_motion, adjust_markers_for_delete)
4227 (adjust_markers_for_insert, adjust_point)
4228 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4229 (make_gap, copy_text, count_size_as_multibyte, insert)
4230 (insert_and_inherit, insert_before_markers)
4231 (insert_before_markers_and_inherit, insert_1)
4232 (count_combining_before, count_combining_after, insert_1_both)
4233 (insert_from_string, insert_from_string_before_markers)
4234 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4235 (insert_from_buffer_1, adjust_after_replace)
4236 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4237 (replace_range_2, del_range, del_range_1, del_range_byte)
4238 (del_range_both, del_range_2, modify_region)
4239 (prepare_to_modify_buffer, signal_before_change)
4240 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4241 for buffer positions and sizes.
4242 * lisp.h: Adjust prototypes accordingly.
4243
4244 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4245 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4246 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4247
4248 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4249
4250 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4251
4252 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4253 lines and columns so we keep the same pixel height and width.
4254
4255 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4256 the property _NET_WM_STATE has changed.
4257 (x_handle_net_wm_state): New function to update frame parameter
4258 fullscreen.
4259 (x_term_init): Initialize atoms for _NET_WM_STATE.
4260
4261 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4262
4263 2009-03-27 Kevin Ryde <user42@zip.com.au>
4264
4265 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4266 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4267 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4268 (Fgpm_mouse_stop): Pass that new parameter.
4269 * termhooks.h (close_gpm): Adjust prototype.
4270
4271 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4272
4273 * lisp.h (Fx_focus_frame): Declare.
4274
4275 * callint.c (Fcall_interactively): For '^' just delegate the work to
4276 handle-shift-selection.
4277 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4278
4279 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
4280
4281 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4282
4283 * data.c (Qinteractive_form): New variable.
4284 (Finteractive_form): Use it.
4285
4286 * eval.c (Fcommandp): Use Qinteractive_form.
4287
4288 2009-03-24 Jason Rumney <jasonr@gnu.org>
4289
4290 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4291 Calculate total size precisely. Decode environment variables
4292 before substituting. (Bug#38)
4293
4294 2009-03-24 Kenichi Handa <handa@m17n.org>
4295
4296 * font.c (find_font_encoding): Return Qnil for unsupported
4297 encoding (Bug#2722).
4298
4299 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4300
4301 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4302 that gdpy is set.
4303
4304 2009-03-22 Alan Mackenzie <acm@muc.de>
4305
4306 * callint.c (Finteractive): Clarify the doc string - even
4307 promptless elements need \n separators.
4308
4309 2009-03-22 Jason Rumney <jasonr@gnu.org>
4310
4311 * w32term.c (syms_of_w32term): Doc fix for
4312 x-use-underline-position-properties.
4313
4314 2009-03-21 Eli Zaretskii <eliz@gnu.org>
4315
4316 * w32.c (getpwuid): Change argument type to unsigned.
4317 (struct w32_id): Change type of `rid' member to unsigned.
4318 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4319 argument ID to unsigned. All callers changed.
4320 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4321
4322 2009-03-20 Eli Zaretskii <eliz@gnu.org>
4323
4324 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4325 negative, produce a float value.
4326
4327 * dired.c (make_uid, make_gid): New functions.
4328 (Ffile_attributes): Use them to avoid negative UID and GID.
4329
4330 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
4331
4332 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4333 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4334 Fix typos in docstrings.
4335
4336 2009-03-19 Kenichi Handa <handa@m17n.org>
4337
4338 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
4339 changed, use font_load_for_lface to get a new font object.
4340 Call free_realized_fontset after handling ASCII font change.
4341
4342 * frame.c (x_set_font): Handle the case that ARG is a cons.
4343
4344 2009-03-19 Glenn Morris <rgm@gnu.org>
4345
4346 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4347
4348 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
4349
4350 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4351
4352 2009-03-19 Kenichi Handa <handa@m17n.org>
4353
4354 * charset.c (load_charset_map_from_file): When a mapfile can't be
4355 loaded, signal an error.
4356
4357 2009-03-18 Eli Zaretskii <eliz@gnu.org>
4358
4359 * dired.c (Ffile_attributes): Make sure UID and GID are always
4360 positive, even if the value is too large for a positive EMACS_INT.
4361 Doc fix.
4362
4363 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4364
4365 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4366
4367 * xmenu.c (xdialog_show): Move Fredisplay call ...
4368 (Fx_popup_dialog): ... here.
4369
4370 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4371
4372 * dired.c (file_name_completion): Disable the first optimization just
4373 installed, since it is not implemented correctly.
4374
4375 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4376
4377 * dired.c (file_name_completion): Check completion-ignored-extensions
4378 only if the entry can affect bestmatch.
4379 Stop the search early, as Ftry_completion already does.
4380
4381 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
4382
4383 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
4384
4385 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
4386
4387 * keyboard.c (parse_menu_item): Don't display remappings as menu
4388 equivalent bindings (Bug#788).
4389
4390 2009-03-15 Jason Rumney <jasonr@gnu.org>
4391
4392 * w32term.h (WM_EMACS_PAINT): New message.
4393 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4394 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4395 before passing to lisp thread. (Bug#950)
4396
4397 2009-03-14 David Reitter <david.reitter@gmail.com>
4398
4399 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4400 variable as it was never reset.
4401 (ns_term_init): Remove initialization of Lisp-settable defaults
4402 and ns_expand_space.
4403 (-setPanelFromDefaultValues): Remove ns_expand_space.
4404 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4405 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
4406 i.e. no additional spacing, similar to Carbon port.
4407
4408 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4409 * nsfns.m (ns-popup-prefs-panel): Remove.
4410
4411 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4412
4413 * sound.c (alsa_configure): Remove call to deprecated
4414 snd_pcm_sw_params_set_xfer_align.
4415
4416 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
4417
4418 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4419 after clicking in a detached tool bar.
4420 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4421
4422 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4423
4424 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4425 int/Lisp_Object mixup).
4426
4427 2009-03-13 Kenichi Handa <handa@m17n.org>
4428
4429 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
4430 Handle NAME nil and t correctly. Callers changed.
4431 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4432 (set_fontset_font): Change ARG to a vector. Handle range_list in
4433 ARG correctly.
4434 (Fset_fontset_font): Fix the case that TARGET is both a script
4435 name and charset name. Adjust the arg to set_fontset_font for
4436 the above change.
4437 (fontset_from_font): Fix previous change.
4438 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
4439 entry. If FONTSET is the default fontset, don't set the extra
4440 slot of the returning char-table.
4441
4442 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
4443
4444 * nsfns.m (Fx_close_connection): Doc fix.
4445 (Fns_do_applescript): Reflow docstring.
4446 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4447 (Fx_display_pixel_width, Fx_display_pixel_height)
4448 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4449 Fix typos in docstrings.
4450 (Fns_set_alpha): Fix typos in error messages.
4451
4452 2009-03-12 David Reitter <david.reitter@gmail.com>
4453
4454 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
4455 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4456 were used for such events.
4457
4458 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4459 (toggleToolbar, performDragOperation, runHelp): Use it.
4460
4461 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
4462 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4463
4464 2009-03-11 Kenichi Handa <handa@m17n.org>
4465
4466 * font.h (font_open_by_spec): Extern it.
4467
4468 * font.c (font_open_by_spec): New function.
4469 (font_open_by_name): Use font_open_by_spec.
4470
4471 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4472 fontset of the frame.
4473
4474 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4475 modify the default font of frames that use this fontset.
4476 (num_auto_fontsets): New variable.
4477 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4478 name. Be sure to set FONTSET_ASCII to the correct font name.
4479 (update_auto_fontset_alist): New function.
4480
4481 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
4482
4483 * makefile.w32-in: Update dependencies.
4484
4485 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4486
4487 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4488
4489 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4490
4491 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4492
4493 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
4494
4495 * lread.c (Feval_buffer): Doc fix.
4496
4497 2009-03-09 Kenichi Handa <handa@m17n.org>
4498
4499 * charset.c (Qfile_name_handler_alist): Extern it.
4500 (load_charset_map_from_file): Temporarily bind
4501 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4502
4503 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
4504
4505 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4506 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
4507
4508 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4509
4510 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4511 (x_set_window_size): Change back to calculated method of setting
4512 toolbar height under Cocoa. (Bug#2546)
4513 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4514 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4515
4516 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4517
4518 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4519 accelerator in parens under GNUstep.
4520
4521 2009-03-06 Kenichi Handa <handa@m17n.org>
4522
4523 These changes are to detect incorrect composition sequence without
4524 looking ahead the source. (Bug#2370)
4525
4526 * coding.h: Include "composite.h".
4527 (enum compisition_state): New enum.
4528 (struct compisition_status): New struct.
4529 (struct iso_2022_spec): New member cmp_status.
4530 (struct emacs_mule_spec): New struct.
4531 (struct coding_system): New members ctext_extended_segment_len and
4532 embedded_utf_8. Change the union member
4533 spec.emacs_mule_full_support to spec.emacs_mule.
4534
4535 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4536 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
4537 (MAX_ANNOTATION_LENGTH): Define to 5.
4538 (ADD_COMPOSITION_DATA): New arg nbytes.
4539 (emacs_mule_char): New arg cmp_status.
4540 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4541 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4542 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4543 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4544 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4545 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4546 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4547 (EMACS_MULE_COMPOSITION_END): New macro.
4548 (emacs_mule_finish_composition): New function.
4549 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4550 (decode_coding_emacs_mule): Avoid long looking ahead while
4551 handling composition.
4552 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4553 (ENCODE_COMPOSITION_RULE): New macro.
4554 (finish_composition): New function.
4555 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4556 (DECODE_COMPOSITION_START): New implementation.
4557 (DECODE_COMPOSITION_END): Likewise.
4558 (STORE_COMPOSITION_RULE): New macro.
4559 (decode_coding_iso_2022): Avoid long looking ahead while handling
4560 composition, CTEXT extended segment, and embedded UTF-8.
4561 (setup_coding_system): For a coding of type iso-2022, reset
4562 CODING_ISO_EXTSEGMENT_LEN (coding) and
4563 CODING_ISO_EMBEDDED_UTF_8 (coding).
4564 (get_translation): Delete arguments last_block, from_nchars,
4565 to_nchars. Callers changed.
4566 (produce_chars): Don't modify charbuf. Adjusted for the change of
4567 get_translation.
4568 (produce_composition): Adjust for the new annotation sequence.
4569 (handle_composition_annotation): Likewise.
4570 (consume_chars): Adjust for the change of get_translation.
4571
4572 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4573
4574 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
4575
4576 2009-03-05 Kenichi Handa <handa@m17n.org>
4577
4578 * font.c (font_select_entity): New function.
4579 (font_find_for_lface): Use font_select_entity to select a font.
4580
4581 * fontset.c (fontset_find_font): If a font found without
4582 restricting to the characters C doesn't support C, try to find a
4583 font with C restriction.
4584
4585 2009-03-04 Nikolaj Schumacher <me@nschum.de>
4586
4587 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
4588
4589 2009-03-04 Jason Rumney <jasonr@gnu.org>
4590
4591 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4592 characters that have already been read. (Bug#2569)
4593
4594 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4595 Log an error message if check_image_size failed.
4596 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4597 (gs_load): Mention max-image-size in size error message. (Bug#2560)
4598
4599 2009-03-02 Eli Zaretskii <eliz@gnu.org>
4600
4601 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4602 when decoding process output.
4603
4604 2009-03-01 Richard M Stallman <rms@gnu.org>
4605
4606 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4607
4608 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4609
4610 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4611
4612 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4613 (decode_coding_emacs_mule, decode_coding_iso_2022)
4614 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4615 (decode_coding_raw_text, decode_coding_charset)
4616 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4617 Honor inhibit-eol-conversion. (Bug #2186)
4618
4619 2009-02-28 Jason Rumney <jasonr@gnu.org>
4620
4621 * coding.c (detect_coding_charset): If not checking latin extra,
4622 fail on characters between 0x80 and 0xA0. (Bug#2354)
4623
4624 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4625
4626 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
4627 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
4628
4629 2009-02-27 Glenn Morris <rgm@gnu.org>
4630
4631 * callint.c (Finteractive): Doc fix.
4632
4633 2009-02-27 Kenichi Handa <handa@m17n.org>
4634
4635 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4636
4637 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
4638
4639 * font.c (font_style_to_value): Set value for unknown symbols to
4640 100 instead of 255.
4641 (weight_table, slant_table, width_table): Treat "unspecified" as
4642 the default value.
4643
4644 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
4645
4646 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4647
4648 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
4649
4650 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4651 error as soon as a recursive load is detected.
4652
4653 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4654
4655 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4656 before caching.
4657
4658 2009-02-24 Kenichi Handa <handa@m17n.org>
4659
4660 * fontset.c (fontset_find_font): Fix the condition for checking
4661 unavailable font.
4662
4663 2009-02-24 Glenn Morris <rgm@gnu.org>
4664
4665 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4666 whitespace that confuses documentation.
4667
4668 2009-02-23 Miles Bader <miles@gnu.org>
4669
4670 * process.c (Flist_system_processes, Fprocess_attributes)
4671 (syms_of_process): Rename `system-process-attributes' to
4672 `process-attributes'.
4673
4674 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4675
4676 * coding.h (struct coding_system): Make safe_charsets a pointer to
4677 unsigned char.
4678 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4679 being 255.
4680 (SAFE_CHARSET_P): Likewise.
4681 (setup_iso_safe_charsets): Properly setup safe_charsets.
4682 (Fdefine_coding_system_internal): Likewise.
4683 (setup_coding_system): Likewise. Remove unneeded casts.
4684 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4685 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4686 unneeded casts.
4687
4688 * insdel.c (del_range_2): Don't modify gap contents when called
4689 from decode_coding_object. (Bug#1809)
4690
4691 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
4692
4693 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4694 Qfont_object.
4695 (Ftype_of): Recognize font objects.
4696
4697 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4698
4699 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4700 moved to data.c.
4701
4702 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4703
4704 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4705 async_iconified. Based on a patch by Christian Lynbech
4706 <christian.lynbech@tieto.com>.
4707 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4708
4709 2009-02-20 Glenn Morris <rgm@gnu.org>
4710
4711 * syntax.c (Fskip_chars_forward): Fix doc typo.
4712
4713 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
4714
4715 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4716
4717 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
4718
4719 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4720
4721 2009-02-19 Kenichi Handa <handa@m17n.org>
4722
4723 * coding.c (detect_coding): Preserve coding->mode.
4724 Don't overflow coding->carryover. (Bug#2370)
4725
4726 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4727
4728 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4729
4730 2009-02-18 Kenichi Handa <handa@m17n.org>
4731
4732 * font.c (font_check_otf_features): Fix handling of `nil' element.
4733 (Ffont_spec): Describe :lang and :otf in the docstring.
4734
4735 2009-02-16 Andreas Schwab <schwab@suse.de>
4736
4737 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4738 string.
4739
4740 2009-02-16 Kenichi Handa <handa@m17n.org>
4741
4742 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
4743 (Bug#1723)
4744
4745 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
4746
4747 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
4748
4749 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4750 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4751
4752 2009-02-14 Eli Zaretskii <eliz@gnu.org>
4753
4754 * msdos.c (MAX_SCREEN_BUF): New macro.
4755 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4756 Encode the entire run of glyphs sharing the same face, instead of
4757 doing that one glyph at a time (fixes a bug with displaying
4758 double-size characters).
4759
4760 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4761
4762 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4763
4764 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4765 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
4766 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
4767
4768 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
4769 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
4770
4771 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4772
4773 * keyboard.c (adjust_point_for_property): Allow stopping between two
4774 invisible areas.
4775
4776 2009-02-12 Jason Rumney <jasonr@gnu.org>
4777
4778 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4779 (add_font_entity_to_list): Call check_face_name even when family
4780 is unspecified.
4781
4782 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4783 Release DC when finished. Use NULL window to refer to desktop.
4784 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
4785
4786 * w32font.c (add_font_entity_to_list): Fix check for substituted
4787 raster fonts. (Bug#2219)
4788
4789 2009-02-12 Kenichi Handa <handa@m17n.org>
4790
4791 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4792 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4793 (autocmp_chars): Use fast_looking_at. Don't compose more
4794 characters than MAX_COMPOSITION_COMPONENTS.
4795 (find_automatic_composition): While looking forward and backward,
4796 check static composition. Fix where to stop looking forward.
4797 (composition_adjust_point): Fix checking of static composition.
4798 (Fcomposition_get_gstring): Pay attention to
4799 MAX_COMPOSITION_COMPONENTS.
4800
4801 * lisp.h (fast_looking_at): Extern it.
4802
4803 * search.c (fast_looking_at): New function.
4804
4805 * term.c (encode_terminal_code): Adjust for the change of
4806 <struct glyph>.u.cmp.to.
4807 (append_composite_glyph): Likewise.
4808
4809 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
4810 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4811 composition.
4812 (append_composite_glyph): Adjust for the change of
4813 <strcut glyph>.u.cmp.to.
4814
4815 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
4816
4817 * casetab.c (init_casetab_once):
4818 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4819 * font.c (font_update_lface):
4820 * fontset.c (Fnew_fontset):
4821 * ftfont.c (ftfont_drive_otf):
4822 * xfont.c (xfont_open):
4823 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4824
4825 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4826
4827 * fileio.c (Fwrite_region): !NILP -> CONSP.
4828
4829 2009-02-10 Andreas Schwab <schwab@suse.de>
4830
4831 * process.c (send_process): Properly relocate pointer into data
4832 when using encoded data. (Bug#2272)
4833
4834 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4835
4836 * coding.c (detect_coding_charset): Fix previous change.
4837
4838 2009-02-08 Jason Rumney <jasonr@gnu.org>
4839
4840 * w32fns.c (w32_hide_hourglass): Handle case where frame
4841 disappeared while hourglass was displayed. (Bug #2193)
4842
4843 2009-02-07 Andreas Schwab <schwab@suse.de>
4844
4845 * unexelf.c (unexec): Fix error message.
4846
4847 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4848
4849 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
4850 when modal window is active. (Bug #2152)
4851 (applicationShouldTerminate:): Remove now-unneeded while loop
4852 around NSRunAlertPanel.
4853
4854 * nsmenu.m (popupSession): New file-global variable.
4855 (pop_down_menu): End the popupSession before closing dialog.
4856 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4857 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4858 don't query NSApp for events (just sleep instead).
4859
4860 2009-02-07 Eli Zaretskii <eliz@gnu.org>
4861
4862 * coding.c (syms_of_coding) <translation-table-for-input>:
4863 Modify doc string to discourage use for character code unification.
4864
4865 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4866
4867 * atimer.c (run_timers): Update pending_atimers.
4868
4869 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
4870
4871 * image.c (svg_load_image): Fix last change.
4872
4873 * xfns.c (Fx_create_frame): Signal an error if no font is
4874 found (Bug#2147).
4875
4876 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
4877
4878 * character.c (syms_of_character) <script-representative-chars>:
4879 Fix typo in docstring.
4880
4881 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4882
4883 * nsmenu.m (pop_down_menu): New function.
4884 (ns_popup_dialog): Call it on unwind.
4885 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4886 call timer_check() (Bug#2154).
4887 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4888 handling_signal is set.
4889 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4890
4891 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
4892
4893 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4894
4895 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4896
4897 * keyboard.c (poll_for_input_1, handle_async_input):
4898 Set handling_signal under HAVE_NS.
4899
4900 2009-02-04 Glenn Morris <rgm@gnu.org>
4901
4902 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4903
4904 2009-02-04 Kenichi Handa <handa@m17n.org>
4905
4906 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4907
4908 * charset.c (Fchar_charset): New optional arg restriction.
4909
4910 * coding.h (coding_system_charset_list): Extern it.
4911
4912 * coding.c (coding_system_charset_list): New function.
4913
4914 * composite.c: Include coding.h and termhooks.h.
4915 (composition_gstring_p): Fix for the terminal case.
4916 (composition_gstring_width): Likewise.
4917 (fill_gstring_body): Likewise.
4918 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4919 the frame.
4920 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4921 is within a composition.
4922 (Fcomposition_get_gstring): Fix the terminal case.
4923
4924 * term.c (encode_terminal_code): Fix handling of composition.
4925 (produce_composite_glyph): For static composition, get pixel_width
4926 from struct composition.
4927
4928 2009-02-02 Andreas Schwab <schwab@suse.de>
4929
4930 * unexelf.c (unexec): Handle unaligned bss offset.
4931
4932 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4933
4934 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4935 XT,w32read_socket changes to ns_read_socket.
4936
4937 * keyboard.c (handle_interrupt): Don't call
4938 quit_throw_to_read_char() under NS.
4939
4940 * blockinput.h: Remove NS-specific code.
4941
4942 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4943
4944 * dispnew.c (window_change_signal): Don't try to get the size of a
4945 suspended tty frame.
4946 * term.c (Fresume_tty): Resize if the size has changed while the
4947 tty was suspended.
4948
4949 * alloc.c (mark_stack): Properly conditionalize previous change.
4950
4951 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4952
4953 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4954 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4955 Remove; this code is not used on Windows.
4956
4957 2009-01-30 Eli Zaretskii <eliz@gnu.org>
4958
4959 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4960 EOLs that also has stray ^M characters.
4961
4962 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4963
4964 * atimer.c (run_timers, alarm_signal_handler):
4965 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4966 * w32inevt.c (w32_console_read_socket):
4967 * w32term.c (w32_read_socket):
4968 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4969
4970 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
4971
4972 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4973 Initialize it as a relative filename pattern.
4974 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4975 (Fcall_process_region): Simplify temp file creation using
4976 temporary-file-directory.
4977
4978 2009-01-29 Eli Zaretskii <eliz@gnu.org>
4979
4980 * msdos.c: Rename pending_signals to msdos_pending_signals.
4981 (sig_suspender, sigprocmask): Adjust.
4982
4983 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
4984
4985 * keyboard.c (pending_signals): New var.
4986 (poll_for_input, input_available_signal, init_keyboard): Set it.
4987 (process_pending_signals): New function.
4988
4989 * lisp.h (QUIT): Check pending_signals instead of
4990 interrupt_input_pending. Use process_pending_signals.
4991
4992 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
4993
4994 * process.c (wait_reading_process_output): Use process_pending_signals.
4995
4996 * sysdep.c (emacs_write): Use process_pending_signals.
4997
4998 * xterm.c (XTread_socket): Update pending_signals.
4999
5000 * w32term.c (w32_read_socket): Update pending_signals.
5001
5002 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5003
5004 2009-01-29 Kenichi Handa <handa@m17n.org>
5005
5006 * xftfont.c (xftfont_has_char): New function.
5007 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5008
5009 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5010
5011 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5012 under GNUstep.
5013 (ns_query_color): New declaration.
5014
5015 * nsterm.m (ns_confirm_quit): New variable.
5016 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5017 (EmacsApp-applicationShouldTerminate:): Use it.
5018 (EmacsPrefsController): Let user set it.
5019 (ns_query_color): New function.
5020 (ns_defined_color): Use it.
5021 (ns_initialize): Drop.
5022 (ns_term_init): Add two lines from ns_initialize(), and set
5023 input_interrupt_mode to nil.
5024
5025 * image.c (svg_load_image): Don't right-shift background RGB when
5026 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
5027
5028 2009-01-28 Kenichi Handa <handa@m17n.org>
5029
5030 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5031 (fontset_get_font_group): Remember that no font-group is specified
5032 for C.
5033
5034 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
5035
5036 * fns.c (concat): Check for string overflow (bug#1787).
5037
5038 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5039 Quadruple undo limits (bug#1501).
5040
5041 2009-01-27 Kenichi Handa <handa@m17n.org>
5042
5043 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5044 directly use GT_Get_Char_index.
5045
5046 * xftfont.c (struct xftfont_info): New member `index'.
5047
5048 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5049 (Ffontset_font): Adjust for the change of fontset entry.
5050
5051 2009-01-26 Kenichi Handa <handa@m17n.org>
5052
5053 * fontset.c (fontset_find_font): Fix handling of non-cons return
5054 value of fontset_get_font_group.
5055 (fontset_font): Revert last change.
5056
5057 2009-01-26 Jason Rumney <jasonr@gnu.org>
5058
5059 * w32font.c (w32font_list_internal): Return quickly if registry is
5060 unknown. Simplify final return.
5061 (add_font_entity_to_list): Break complex logic down into more
5062 manageable chunks. Move unknown registry check to
5063 w32font_list_internal.
5064
5065 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5066
5067 Changes to remove Feval calls from GUI under NS.
5068
5069 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5070 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
5071 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5072
5073 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5074 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5075 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5076 instead of NON_ASCII_KEYSTROKE_EVENT.
5077 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5078 (EmacsApp-applicationShouldTerminate:): Query user.
5079 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5080 instead of Feval.
5081
5082 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5083
5084 * keyboard.c (kbd_buffer_get_event): Check for it.
5085 (keys_of_keyboard): Define lispy keys for
5086 ns-put/unput-working-text.
5087
5088 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5089 versions.
5090 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5091
5092 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
5093
5094 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
5095 setting current_buffer directly. (Bug#2044)
5096
5097 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
5098
5099 * fontset.c (fontset_font): If we know there is no font, don't do
5100 any work. (Bug#1952, bug#1990).
5101
5102 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
5103
5104 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5105
5106 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
5107 (ns_no_defaults): New declaration.
5108 (main): Use it.
5109
5110 * nsterm.h (ns_no_defaults): New declaration.
5111
5112 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
5113
5114 * nsterm.m (ns_no_defaults): New variable.
5115 (ns_initialize): Don't read defaults when ns_no_defaults.
5116 (EmacsView-readSelectionFromPasteboard:)
5117 (writeSelectionToPasteboard:types:): New stubbed-out methods for
5118 NSServicesRequests protocol. (Bug#1435)
5119 (ns_dumpglyphs_stretch): New function.
5120 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
5121 of 2008-11-15 to other terms. (Bug#615)
5122
5123 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5124
5125 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5126
5127 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5128 call for Sparc64.
5129
5130 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5131
5132 * nsfns.m:
5133 * nsgui.h:
5134 * nsmenu.m:
5135 * nsselect.m:
5136 * nsterm.h:
5137 * nsterm.m: Remove '23' comments that indicated code added during
5138 update from emacs-20 -> emacs-23.
5139
5140 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5141
5142 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
5143 ns_alternate_modifier. (Bug#1217)
5144
5145 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5146 Display all shortcuts, including those w/o super modifier.
5147
5148 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5149
5150 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
5151
5152 * fileio.c (Vwrite_region_post_annotation_function)
5153 (Vwrite_region_annotation_buffers): New vars.
5154 (build_annotations_unwind): Just reset
5155 Vwrite_region_annotation_buffers.
5156 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5157 Call write-region-post-annotation-function.
5158 (build_annotations): Add to Vwrite_region_annotation_buffers if
5159 buffer changes.
5160
5161 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5162
5163 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5164 Tiger.
5165 * nsfns.m (ns_do_applescript):
5166 Conditionalize typeUTF16ExternalRepresentation on Tiger.
5167
5168 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5169
5170 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5171
5172 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5173
5174 * nsmenu.m (NSMENUPROFILE): Change #if style.
5175
5176 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5177
5178 * nsterm.m (x_set_frame_alpha): Add prototype.
5179 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5180 handle Ctrl-tab. (Bug#1841)
5181 (ns_get_color): Use unsigned long long for scanned hex string value.
5182 (ns_term_shutdown): Abort on non SIGTERM signals.
5183 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
5184 (EmacsPrefsController-setPanelFromDefaultValues): New function.
5185 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
5186 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
5187 (ns_defined_color): Fix settings of the XColor variable fields:
5188 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
5189
5190 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
5191 DPI. (Bug#1316)
5192 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5193 values in onTiger section.
5194
5195 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
5196
5197 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5198 Check return value of font_spec_from_name.
5199 (Fx_list_fonts): Doc fix. (Bug#1951)
5200
5201 * font.c (font_spec_from_name): Return Qnil if font name could not
5202 be parsed.
5203 (font_parse_name): Treat a `?' character as part of an XLFD.
5204
5205 * fns.c (Fsubstring): Doc fix.
5206
5207 2009-01-19 Kenichi Handa <handa@m17n.org>
5208
5209 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
5210 (ftfont_list): Likewise.
5211
5212 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
5213
5214 * dbusbind.c (Fdbus_register_signal):
5215 * process.c (conv_sockaddr_to_lisp):
5216 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5217
5218 * callproc.c (Fgetenv_internal): Doc fix.
5219
5220 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
5221
5222 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5223 it is not even used.
5224
5225 2009-01-16 Glenn Morris <rgm@gnu.org>
5226
5227 * font.c (Ffont_variation_glyphs): Silence compiler.
5228
5229 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
5230
5231 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5232 Reported by David Robinow <drobinow@gmail.com>.
5233
5234 2009-01-15 Kenichi Handa <handa@m17n.org>
5235
5236 * coding.c (detect_coding_system): Fix handling of null_byte_found.
5237
5238 2009-01-14 Jason Rumney <jasonr@gnu.org>
5239
5240 * frame.c (x_set_font): Always store a font to the font parameter,
5241 never a fontset. (Bug#1562)
5242
5243 2009-01-14 Kenichi Handa <handa@m17n.org>
5244
5245 * coding.c (TWO_MORE_BYTES): New macro.
5246 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
5247
5248 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
5249
5250 * font.c (font_clear_prop): If clearing the family, clear the font
5251 width index too.
5252
5253 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
5254
5255 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
5256
5257 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5258 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5259 functions, use sizeof.
5260
5261 2009-01-12 Martin Rudalics <rudalics@gmx.at>
5262
5263 * keyboard.c (read_char): Fix case where last_nonmenu_event
5264 returned a bad value with submenus. (Bug#447)
5265
5266 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
5267
5268 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5269 family, clear the font width index too.
5270
5271 2009-01-11 Jason Rumney <jasonr@gnu.org>
5272
5273 * keyboard.c (cmd_error_internal): Exit when errors occur before
5274 frame creation and not in daemon mode. (Bug#1836)
5275
5276 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
5277
5278 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5279 of a display vector, backtrack.
5280 (try_window_reusing_current_matrix): Check glyph type before
5281 referencing charpos member.
5282
5283 2009-01-10 Eli Zaretskii <eliz@gnu.org>
5284
5285 Fix Bug #876:
5286
5287 * coding.c (inhibit_null_byte_detection): New variable.
5288 (detect_coding, detect_coding_system): Don't pay attention to null
5289 bytes if inhibit_null_byte_detection is non-zero.
5290 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
5291 <inhibit-iso-escape-detection>: Doc fix.
5292
5293 2009-01-09 Jason Rumney <jasonr@gnu.org>
5294
5295 * w32font.c (add_font_entity_to_list): Don't report unknown
5296 Windows charset as any unrecognized registry. (Bug#1548)
5297 Only report Unicode Plane 2 fonts as unicode-sip.
5298
5299 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
5300
5301 * xfaces.c (Fx_font_family_list): Delete function.
5302 Move compatibility version to faces.el.
5303
5304 * font.c (Ffont_family_list): Return a list of strings, not symbols.
5305
5306 2009-01-09 Martin Rudalics <rudalics@gmx.at>
5307
5308 * frame.c (x_set_frame_parameters): Remember requested value for
5309 fullscreen before it's reset by the parameter handler.
5310
5311 2009-01-09 Glenn Morris <rgm@gnu.org>
5312
5313 * keyboard.c (last_command_char): For clarity, rename to...
5314 (last_command_event): ... and update all users.
5315 (last_input_char): For clarity, rename to...
5316 (last_input_event): ... and update all users.
5317 (last-command-char, last-input-char): Move to subr.el as aliases.
5318 * cmds.c, commands.h: Update for last_command_char rename.
5319
5320 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
5321
5322 * font.c (font_open_for_lface): Handle unspecified height attribute.
5323
5324 2009-01-08 Jason Rumney <jasonr@gnu.org>
5325
5326 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5327 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5328 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5329 Don't declare.
5330 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5331 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5332
5333 2009-01-07 Kenichi Handa <handa@m17n.org>
5334
5335 * fileio.c (Finsert_file_contents): In the case of replace,
5336 remember the coding system used for decoding in
5337 coding_system (Bug#1039).
5338
5339 * coding.c (decode_coding_utf_8): Check byte_after_cr before
5340 breaking the loop. (Bug#870)
5341 (decode_coding_utf_16, decode_coding_emacs_mule)
5342 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5343 (decode_coding_charset): Likewise.
5344
5345 2009-01-05 Martin Rudalics <rudalics@gmx.at>
5346
5347 * frame.c (x_set_frame_parameters): Make sure height (width) get
5348 applied when fullwidth (fullheight) is set. (Bug#1522)
5349
5350 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
5351
5352 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5353 (utc_base): Declare as ULONGLONG, not long double.
5354 (convert_time_raw): Delete.
5355 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5356 (initialize_utc_base): New function.
5357 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5358 (convert_from_time_t): Use initialize_utc_base; compute result with
5359 64-bit arithmetic.
5360 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5361
5362 2009-01-03 Eli Zaretskii <eliz@gnu.org>
5363
5364 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
5365 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5366 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5367 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5368 [!subprocesses]: Define.
5369 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5370 (Flist_system_processes, Fsystem_process_attributes)
5371 [!subprocesses]: Call list_system_processes and
5372 system_process_attributes instead of returning Qnil.
5373
5374 * dosfns.c (system_process_attributes, list_system_processes):
5375 New functions.
5376
5377 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5378
5379 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5380 Don't use the default (no-op) implementation.
5381
5382 2009-01-03 Jason Rumney <jasonr@gnu.org>
5383
5384 * keyboard.c (parse_modifiers_uncached): Wheel events are
5385 clicks (bug#687).
5386
5387 * w32term.c (x_query_colors, x_query_color): New functions.
5388
5389 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5390 (svg_load_image): Cast returned pointers from dynamically loaded
5391 functions. Eliminate W32 specific code.
5392
5393 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5394
5395 * nsfns.m (x_set_foreground_color, x_set_background_color)
5396 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5397 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5398 x_ prefix instead of ns_. Update references.
5399 (syms_of_nsfns): Add a FIXME comment.
5400
5401 * nsterm.m (x_set_cursor_type): New prototype.
5402 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5403
5404 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5405 for Solaris instead of incorrectly providing Qutime and Qcutime.
5406
5407 2009-01-02 Eli Zaretskii <eliz@gnu.org>
5408
5409 * w32.c (process_times): Compute sum of utime and stime.
5410 (system_process_attributes): Add Qtime to the alist.
5411
5412 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5413 and add them to the alist.
5414
5415 * process.c (top level) <Qtime, Qctime>: New variables.
5416 (syms_of_process): staticpro them.
5417 (Fsystem_process_attributes): Add their documentation to the doc
5418 string.
5419
5420 * process.h: Declare Qtime and Qctime.
5421
5422 2009-01-02 Jason Rumney <jasonr@gnu.org>
5423
5424 * image.c (Qgobject): New symbol.
5425 (syms_of_image): Initialize it.
5426 (init_svg_functions): Load some functions from gobject library.
5427
5428 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5429
5430 * frame.c (make_terminal_frame): Remove redundant code and useless
5431 block.
5432
5433 2009-01-01 Andreas Schwab <schwab@suse.de>
5434
5435 * process.c (conv_sockaddr_to_lisp): Add workaround for
5436 getsockname bug on BSD.
5437
5438 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
5439
5440 * xfns.c (x_create_tip_frame): Set border width of the X window.
5441
5442 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
5443
5444 2009-01-01 Jason Rumney <jasonr@gnu.org>
5445
5446 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
5447 Don't block input, as per earlier xterm.c changes.
5448
5449 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5450
5451 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5452 (ns_appkit_version_int): New function.
5453 (x-server-version): Use ns_appkit_version_int and follow 21+
5454 convention of returning 3 integers.
5455
5456 2008-12-30 Kenichi Handa <handa@m17n.org>
5457
5458 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5459 (CHAR_SURROGATE_PAIR_P): New macro.
5460
5461 * font.h (struct font_driver): New member get_variation_glyphs.
5462
5463 * font.c (font_range): Don't require a font for a variation selector.
5464 (Ffont_variation_glyphs): New function.
5465 (syms_of_font): Defsubr it.
5466
5467 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5468 ftfont_variation_glyphs.
5469 (setup_otf_gstring): New function.
5470 (ftfont_drive_otf): Use it.
5471 (ftfont_shape_by_flt): Handle variation selector.
5472 (ftfont_variation_glyphs): New function.
5473
5474 2008-12-30 Martin Rudalics <rudalics@gmx.at>
5475
5476 * frame.c (Vemacs_iconified): Remove.
5477
5478 2008-12-30 Jason Rumney <jasonr@gnu.org>
5479
5480 * frame.c (store_frame_param, x_get_arg): Enable newer code on
5481 WINDOWSNT too, as related changes have already been synced. (Bug#117)
5482
5483 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
5484
5485 * indent.c (Fvertical_motion): Don't advance iterator if we have
5486 reseated to the desired position.
5487
5488 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5489 checking for pos match.
5490
5491 2008-12-30 Kenichi Handa <handa@m17n.org>
5492
5493 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5494 just get the low 8-bit of the code.
5495
5496 * font.c (font_intern_prop): Validate str as multibyte.
5497
5498 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5499
5500 * dispextern.h (struct face): Move lface and hash from the middle
5501 of bitfields.
5502
5503 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5504
5505 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5506
5507 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5508 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5509 instead of intervals.h.
5510
5511 2008-12-26 Andreas Schwab <schwab@suse.de>
5512
5513 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5514 cons.
5515
5516 2008-12-26 Martin Rudalics <rudalics@gmx.at>
5517
5518 * textprop.c (Qminibuffer_prompt): New variable.
5519 (syms_of_textprop): Initialize it.
5520 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5521 in minibuffer-prompt face. (Bug#1662)
5522
5523 2008-12-25 Jason Rumney <jasonr@gnu.org>
5524
5525 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5526
5527 2008-12-24 Jason Rumney <jasonr@gnu.org>
5528
5529 * ralloc.c (r_alloc_reset_variable): New function.
5530
5531 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
5532 record of what points where. (Bug#716)
5533
5534 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5535
5536 * minibuf.c (read_minibuf): Follow the non-interactive case when
5537 running as a daemon, before detaching.
5538
5539 2008-12-22 Andreas Schwab <schwab@suse.de>
5540
5541 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5542 * gtkutil.c (free_widget_value): Use xfree instead of free.
5543
5544 2008-12-22 Martin Rudalics <rudalics@gmx.at>
5545
5546 * frame.c (delete_frame): New function derived from
5547 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5548 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5549 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5550 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5551 * frame.h: Extern delete_frame.
5552 * window.c (window_loop):
5553 * terminal.c (delete_terminal):
5554 * xterm.c (x_connection_closed):
5555 * xfns.c (Fx_hide_tip):
5556 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
5557
5558 2008-12-21 Jason Rumney <jasonr@gnu.org>
5559
5560 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5561 when character maps to .notdef character.
5562
5563 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5564
5565 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5566
5567 2008-12-20 Jason Rumney <jasonr@gnu.org>
5568
5569 * frame.c (Fmake_terminal_frame): Raise an error when called from
5570 a graphical frame on Windows. (Bug#1325)
5571
5572 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5573
5574 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5575
5576 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
5577
5578 * minibuf.c (Fread_buffer): Doc fix.
5579
5580 2008-12-20 Jason Rumney <jasonr@gnu.org>
5581
5582 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
5583 server name in UNC paths. (Bug#719)
5584
5585 * coding.c (decode_coding): Clear chars_at_source flag when using
5586 charbuf. (Bug#1035)
5587
5588 2008-12-19 Daniel Engeler <engeler@gmail.com>
5589
5590 * sysdep.c (serial_configure): Fix typo.
5591
5592 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5593
5594 * sysdep.c: Include alloca.h.
5595 (system_process_attributes): Add implementation for Solaris.
5596
5597 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
5598
5599 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5600
5601 Reorganize implementation of Flist_system_processes and
5602 Fsystem_process_attributes. No functional changes.
5603 * process.c: Don't #include pwd.h, grp.h and limits.h.
5604 (Flist_system_processes): Just call list_system_processes.
5605 (Fsystem_process_attributes): Just call system_process_attributes.
5606 (procfs_list_system_processes, time_from_jiffies)
5607 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5608 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5609
5610 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5611 (list_system_processes): Rename from
5612 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5613 Provide a do nothing implementation.
5614 (system_process_attributes): Rename from
5615 procfs_list_system_processes.
5616 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5617 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
5618
5619 * w32.c (list_system_processes): Rename from
5620 w32_list_system_processes.
5621 (system_process_attributes): Rename from
5622 w32_system_process_attributes.
5623
5624 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5625
5626 * process.h (w32_list_system_processes)
5627 (w32_system_process_attributes): Remove.
5628 (list_system_processes, system_process_attributes):
5629 New prototypes.
5630
5631 2008-12-19 Kenichi Handa <handa@m17n.org>
5632
5633 * xfont.c (xfont_decode_coding_xlfd): New function.
5634 (xfont_encode_coding_xlfd): New function.
5635 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5636 (xfont_list): Decode and encode XLFD by iso-8859-1.
5637 (xfont_match): Likewise.
5638 (xfont_list_family): Likewise.
5639 (xfont_open): Likewise.
5640
5641 * ftfont.c (ftfont_open): Generate a multibyte string if given
5642 names are utf-8.
5643
5644 * xftfont.c (xftfont_open): Generate a multibyte string if given
5645 names are utf-8.
5646
5647 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5648
5649 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5650 changed.
5651 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5652 clicked on a detached tool bar button.
5653
5654 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5655
5656 * emacs.c (main): Print and error and exit when no data is read
5657 from the pipe.
5658
5659 2008-12-17 Jason Rumney <jasonr@gnu.org>
5660
5661 * w32font.c (w32font_has_char): Always return -1.
5662
5663 2008-12-16 Kenichi Handa <handa@m17n.org>
5664
5665 * font.c (font_open_entity): Fix previous change.
5666
5667 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5668
5669 * process.c: Include <limits.h>.
5670
5671 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
5672
5673 * font.c (font_update_drivers): Fix mistake in reconstructing the
5674 driver list.
5675
5676 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
5677
5678 * font.c (font_clear_cache): Fix format of font cache data.
5679
5680 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
5681
5682 * xftfont.c (xftfont_open): Free Xft font pattern if
5683 XftFontOpenPattern fails.
5684
5685 * xterm.c (x_free_frame_resources): Remove extraneous call to
5686 free_frame_faces.
5687
5688 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5689
5690 * xterm.c (x_delete_display): Move xim_close_dpy call to
5691 x_delete_terminal.
5692 (x_delete_terminal): Call xim_close_dpy.
5693
5694 2008-12-13 Jason Rumney <jasonr@gnu.org>
5695
5696 * w32font.c (intern_font_name): New function.
5697 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5698 (w32font_open_internal, Fx_select_font): Decode font name.
5699 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5700
5701 * w32font.h (intern_font_name): Declare new function.
5702
5703 * w32uniscribe.c (add_opentype_font_name_to_list):
5704 Use intern_font_name.
5705
5706 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5707
5708 * frame.c (Fdelete_frame): Call free_font_driver_list.
5709
5710 * font.c (free_font_driver_list): Implement missing function.
5711
5712 * w32term.c (w32_term_init): Don't initialize the image cache
5713 here; it will be done in init_frame_faces.
5714
5715 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5716 (struct x_display_info): Remove unused member null_pixel. New
5717 member xim_callback_data.
5718
5719 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5720 (xim_initialize): Save pointer to callback function data.
5721 (xim_close_dpy): Free callback function data. Call XCloseIM,
5722 reverting 2008-11-04 change by David Smith.
5723 (x_term_init): Don't initialize the image cache here; it will be
5724 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5725 (x_delete_display): Free x_dnd_atoms member.
5726
5727 2008-12-13 Kenichi Handa <handa@m17n.org>
5728
5729 * font.c (font_rescale_ratio): Moved from xfaces.c.
5730 Argument type changed. Handle a font-spec too.
5731 (font_score): Check Vface_font_rescale_alist.
5732 (font_open_entity): Likewise. (Bug#1547)
5733
5734 * xfaces.c (font_rescale_ratio): Moved to font.c.
5735
5736 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5737
5738 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5739
5740 2008-12-12 Jason Rumney <jasonr@gnu.org>
5741
5742 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5743 Vwindow_system_version to the real w32 major version.
5744
5745 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5746
5747 * term.c (init_tty): Move setting the terminal name before the
5748 potential user: maybe_fatal.
5749
5750 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
5751
5752 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5753 all callers changed. Call free_frame_faces to free the face cache.
5754
5755 2008-12-11 Jason Rumney <jasonr@gnu.org>
5756
5757 * w32font.c (fill_in_logfont): Don't assume symbol script means
5758 SYMBOL_CHARSET. (Bug#547)
5759
5760 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
5761 size for surrogates. (Bug#1096, bug#872)
5762
5763 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5764
5765 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5766
5767 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5768
5769 * process.c (Fsystem_process_attributes, syms_of_process):
5770 Fix typo in name of Ssystem_process_attributes.
5771 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5772
5773 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5774
5775 * syntax.c (Fmodify_syntax_entry): Doc fix.
5776
5777 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5778
5779 * font.c (Ffont_spec): Move usage to end of docstring.
5780
5781 2008-12-10 Jason Rumney <jasonr@gnu.org>
5782
5783 * w32font.c (Qcham): New symbol.
5784 (font_supported_scripts): Add cham, and comments for other new
5785 scripts in bitfield from OpenType spec.
5786 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5787 contain characters beyond the bmp.
5788
5789 2008-12-10 Kenichi Handa <handa@m17n.org>
5790
5791 * ftfont.c (fc_charset_table): Add "unicode-sip".
5792 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
5793 Qunicode_sip.
5794
5795 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5796
5797 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5798 (Fcoding_system_put): Use QCdefault_char.
5799 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5800
5801 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
5802
5803 * xftfont.c (syms_of_xftfont): Fix typo.
5804
5805 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
5806
5807 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5808
5809 * emacs.c (main): Close daemon_pipe on exec.
5810
5811 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
5812
5813 * termchar.h (struct tty): New members termcap_term_buffer and
5814 termcap_strings_buffer.
5815
5816 * term.c (encode_terminal_code): Free any previous memory blocks
5817 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
5818 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5819 All callers changed.
5820 (init_tty): Store termcap data and string buffers in new struct
5821 tty members termcap_term_buffer and termcap_strings_buffer.
5822 (delete_tty): Free them.
5823 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
5824
5825 2008-12-07 Seiji Zenitani <zenitani@mac.com>
5826
5827 * nsfns.m (ns_set_background_color): Remove code duplication.
5828 It was a substitute for face-transparency on OS X 10.3.
5829
5830 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
5831
5832 * coding.c (make_conversion_work_buffer): Disable buffer
5833 modification hooks in the work buffer.
5834
5835 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5836
5837 * process.c (procfs_system_process_attributes): If `nread' has a
5838 negative value, assign zero to it.
5839
5840 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
5841
5842 * eval.c (Vdebug_on_error): Doc fix.
5843
5844 2008-12-05 Kenichi Handa <handa@m17n.org>
5845
5846 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5847 second character is a combining character.
5848
5849 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5850
5851 * process.c (procfs_system_process_attributes): Don't use cmd,
5852 cmdsize, and q without initializing them first.
5853
5854 2008-12-04 Jason Rumney <jasonr@gnu.org>
5855
5856 * w32font.c (w32font_draw): Initialize orig_clip before getting
5857 it, and delete it when finished.
5858
5859 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5860
5861 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5862 case when running as a daemon before detaching.
5863
5864 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
5865
5866 * w32.c (init_environment): Don't unload library shell32.dll.
5867
5868 2008-12-03 Kenichi Handa <handa@m17n.org>
5869
5870 * font.c (font_at): Set `multibyte' at first.
5871
5872 * coding.c (decode_coding_charset): Check type of an element of
5873 vector VALIDS.
5874 (encode_coding_emacs_mule): Be sure to set `code'.
5875
5876 * fontset.c (face_for_char): Handle invalid charset property correctly.
5877 (font_for_char): Likewise.
5878
5879 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
5880
5881 * font.c (Fopen_font): Compute pixel size correctly.
5882 (font_update_lface): Handle fonts with corrupted size specs,
5883 i.e. non-int and non-float.
5884
5885 * ftfont.c (ftfont_match): Initialize entity variable.
5886 (ftfont_resolve_generic_family): Avoid using uninitialized var.
5887 (ftfont_list_family): Initialize list var earlier.
5888
5889 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5890
5891 * xterm.c (x_draw_glyph_string): Fall back on
5892 underline_minimum_offset for underline position.
5893
5894 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5895
5896 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5897
5898 * character.c (c_string_width): Specify the type for LEN.
5899
5900 2008-12-03 Kenichi Handa <handa@m17n.org>
5901
5902 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
5903 (decode_coding_utf_8): Likewise.
5904 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
5905 (produce_chars): Initialize consumed_chars to 0.
5906
5907 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5908
5909 * keyboard.c (make_lispy_position): Only use PT if the selected
5910 window is current.
5911
5912 2008-12-02 Andreas Schwab <schwab@suse.de>
5913
5914 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5915
5916 * doprnt.c (doprnt1): Fix size of charbuf.
5917
5918 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5919
5920 * keyboard.c (timer_check): Revert last change.
5921
5922 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
5923
5924 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5925
5926 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
5927
5928 * makefile.w32-in: Update dependencies.
5929 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5930
5931 2008-12-01 Andreas Schwab <schwab@suse.de>
5932
5933 * font.c (register_font_driver): Use xmalloc.
5934 (font_put_frame_data): Likewise.
5935
5936 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
5937
5938 * xfaces.c (realize_x_face): Make abort condition clearer.
5939
5940 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5941
5942 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
5943
5944 * keyboard.c (timer_check): After a timer runs, ensure that the
5945 selected window's buffer is current.
5946
5947 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
5948
5949 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5950 It was accidentally restored by the Unicode merge.
5951
5952 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5953
5954 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
5955
5956 * w32proc.c: Include "coding.h".
5957 (Fw32_short_file_name): Encode filename passed to Windows API.
5958 (Fw32_long_file_name): Encode filename passed to Windows API and
5959 decode back the result. (Bug#1433)
5960
5961 2008-11-29 Kenichi Handa <handa@m17n.org>
5962
5963 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5964 not before accessing it.
5965
5966 * charset.c (Fdefine_charset_internal): After calculating
5967 min_char, max_char, and fastmap, copy the charset structure again.
5968 (encode_char): Fix the previous change.
5969
5970 2008-11-28 Seiji Zenitani <zenitani@mac.com>
5971
5972 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5973
5974 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5975
5976 * nsterm.m (x_set_frame_alpha): New function.
5977
5978 2008-11-27 Eli Zaretskii <eliz@gnu.org>
5979
5980 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5981
5982 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
5983
5984 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5985 pointer to check_face_name.
5986
5987 2008-11-27 Kenichi Handa <handa@m17n.org>
5988
5989 * category.h (SET_CATEGORY_SET): Call set_category_set.
5990 (set_category_set): Extern it.
5991
5992 * category.c (hash_get_category_set): New function.
5993 (Fmodify_category_entry): Adjusted for the change of
5994 char_table_ref_and_range. Call hash_get_category_set to get a
5995 category set to store in the table.
5996
5997 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5998 Funify_charset.
5999
6000 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
6001 (DECODE_CHAR): Check if the decoder vector is ready.
6002 (ENCODE_CHAR): Check if the encoder char-table is ready.
6003 (maybe_unify_char): Extern it.
6004
6005 * charset.c (Vchar_unified_charset_table): Delete it.
6006 (inhibit_load_charset_map): New variable.
6007 (temp_charset_work): New variable.
6008 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6009 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6010 New macros.
6011 (load_charset_map): Meaning of control_flag changed. If
6012 inhibit_load_charset_map is nonzero, setup a table in
6013 temp_charset_work.
6014 (load_charset): New argument control_flag.
6015 (map_charset_for_dump): New function.
6016 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6017 map_charset_for_dump.
6018 (Fdefine_charset_internal): If the charset method is MAP, load
6019 mapping tables by calling load_charset.
6020 (Funify_charset): Don't load a mapping table but directly set
6021 Vchar_unify_table.
6022 (maybe_unify_char): New function.
6023 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6024 Handle the case of inhibit_load_charset_map being nonzero.
6025 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6026 Handle the case of inhibit_load_charset_map being nonzero.
6027 (Fclear_charset_maps): Just free temp_charset_work.
6028 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6029 variable.
6030
6031 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6032 change of char_table_ref_and_range.
6033 (char_table_ref_and_range): Change the meaning of argument FROM
6034 and TO. Now the caller must provide initial values for *FROM
6035 and *TO.
6036
6037 * fontset.c (fontset_add): Adjusted for the change of
6038 char_table_ref_and_range.
6039 (fontset_get_font_group): Likewise.
6040 (Ffontset_info): Likewise.
6041
6042 * keymap.c (describe_vector): Adjusted for the change of
6043 char_table_ref_and_range. For char-table, put boundary between
6044 non-ASCII and 8-bit characters.
6045
6046 * print.c (print_object): For bool-vector, delete unnecessary
6047 check of ASCII_BYTE_P.
6048
6049 2008-11-26 Jason Rumney <jasonr@gnu.org>
6050
6051 * w32font.c (w32font_open_internal): Don't include external
6052 leading in font height. (Bug#879)
6053
6054 2008-11-26 Glenn Morris <rgm@gnu.org>
6055
6056 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6057 redefinition with ifdef. (Bug#1383)
6058
6059 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6060
6061 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6062
6063 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6064
6065 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6066 New EmacsView methods.
6067 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6068 Fixes bug #1048,1357,1414.
6069
6070 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6071
6072 Fix bug #1362.
6073 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6074 is not an indexed color.
6075 * nsterm.m (free_indexed_color): Add argument checking.
6076 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6077
6078 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
6079
6080 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6081 Document confirm-after-completion value for
6082 minibuffer-completion-confirm.
6083
6084 2008-11-24 Jason Rumney <jasonr@gnu.org>
6085
6086 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6087 warning.
6088
6089 2008-11-23 Jason Rumney <jasonr@gnu.org>
6090
6091 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6092 restored before returning.
6093
6094 * w32font.c (check_face_name): New function.
6095 (add_font_entity_to_list): Use it to filter out common substituted
6096 fonts. (Bug#642)
6097
6098 2008-11-22 Martin Rudalics <rudalics@gmx.at>
6099
6100 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6101 confirm-nonexistent-file-or-buffer in doc-string.
6102
6103 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6104
6105 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6106 Fix copy/paste typo. Add checks.
6107
6108 2008-11-21 Kenichi Handa <handa@m17n.org>
6109
6110 * coding.c (detect_coding_iso_2022): Reject invalid composition
6111 sequence.
6112 (DECODE_COMPOSITION_START): If the current source is the last
6113 block, and the current composition doesn't end, regard this
6114 sequence as invalid.
6115 (decode_coding_iso_2022): Handle invalid composition sequence.
6116
6117 2008-11-20 Martin Rudalics <rudalics@gmx.at>
6118
6119 * window.c (coordinates_in_window): Don't return
6120 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6121 line when the window is not the rightmost one. (Bug#1372)
6122
6123 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6124
6125 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6126
6127 2008-11-15 Eli Zaretskii <eliz@gnu.org>
6128
6129 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6130 and bright_bg if noninteractive is non-zero.
6131
6132 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6133
6134 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6135 x_draw_glyph_string_background.
6136
6137 * w32term.c (x_draw_glyph_string): Likewise.
6138
6139 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
6140
6141 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6142 the next glyph string once past the overhang width.
6143
6144 * nsterm.m (ns_draw_glyph_string): Likewise.
6145
6146 * w32term.c (x_draw_glyph_string): Likewise.
6147
6148 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6149
6150 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6151 double file close.
6152
6153 2008-11-14 Martin Rudalics <rudalics@gmx.at>
6154
6155 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6156 dedicated status of window before attempting to display another
6157 buffer in it.
6158
6159 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
6160
6161 * msdos.c (Fmsdos_long_file_names):
6162 (syms_of_msdos) <dos-unsupported-char-glyph>:
6163 * dosfns.c (Fint86): Fix typos in docstrings.
6164
6165 2008-11-14 Eli Zaretskii <eliz@gnu.org>
6166
6167 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6168
6169 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6170
6171 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6172
6173 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6174
6175 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6176
6177 * frame.h: Negative alpha means "don't touch".
6178
6179 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6180
6181 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6182
6183 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6184
6185 * hftctl.c:
6186 * chpdef.h:
6187 * acldef.h: Remove files used only for systems no longer supported.
6188
6189 * Makefile.in: Fix .o alphabetical ordering.
6190 (hftctl.o): Remove dependency, file removed.
6191 (keymap.o, print.o): Depend on charset.h.
6192
6193 2008-11-10 Kenichi Handa <handa@m17n.org>
6194
6195 * character.c (Fget_byte): Fix and make it faster for unibyte target.
6196
6197 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
6198
6199 * dired.c (file_name_completion): If completion_ignore_case is
6200 enabled, ignore case when checking completion-regexp-list.
6201
6202 2008-11-08 Eli Zaretskii <eliz@gnu.org>
6203
6204 * vm-limit.c (get_lim_data): Fix last change.
6205
6206 2008-11-08 Kenichi Handa <handa@m17n.org>
6207
6208 * character.c (Fget_byte): New function.
6209 (syms_of_character): Defsubr Fget_byte.
6210
6211 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
6212
6213 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6214 cursor position is valid after scrolling.
6215
6216 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
6217
6218 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6219
6220 2008-11-06 Glenn Morris <rgm@gnu.org>
6221
6222 * xterm.c (handle_one_xevent): Don't let popup menus cause
6223 mouse-autoselect-window related window switching. (Bug#1261)
6224
6225 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6226
6227 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6228
6229 2008-11-04 Andreas Schwab <schwab@suse.de>
6230
6231 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6232
6233 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
6234
6235 * xfns.c (Fx_wm_set_size_hint): New function.
6236
6237 2008-11-03 Martin Rudalics <rudalics@gmx.at>
6238
6239 * textprop.c (Fprevious_single_char_property_change): Return 0
6240 when there's no change in a string. (Bug#1301)
6241
6242 2008-11-02 Martin Rudalics <rudalics@gmx.at>
6243
6244 * frame.c (do_switch_frame): New argument NORECORD passed to
6245 Fselect_window.
6246 (Fselect_frame): New argument NORECORD passed to
6247 do_switch_frame.
6248 (Fset_frame_selected_window): New argument NORECORD passed to
6249 Fselect_frame.
6250 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6251 in call of do_switch_frame.
6252 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6253 Handle NORECORD argument in call of Fselect_frame.
6254 * lisp.h (do_switch_frame, Fselect_frame)
6255 (Fset_frame_selected_window): Adjust declarations.
6256 * window.c (select_frame_norecord): New function.
6257 (run_window_configuration_change_hook): Use it and call
6258 Fselect_frame with NORECORD set.
6259 (Fselect_window): Pass NORECORD to Fselect_frame.
6260 (Fset_window_configuration): Handle NORECORD argument in call of
6261 do_switch_frame.
6262 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6263 Fset_frame_selected_window.
6264 * keyboard.c (command_loop_1): Handle NORECORD in call of
6265 Fselect_frame (currently ifdefd).
6266
6267 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6268
6269 * emacs.c (USAGE2): Untabify.
6270
6271 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6272
6273 * composite.c (fill_gstring_header): Fix copy/paste typo.
6274
6275 2008-10-31 Martin Rudalics <rudalics@gmx.at>
6276
6277 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6278 (Fother_window): Rename argument and rewrite doc-string.
6279 (select_window_norecord): Fix return value. (Bug#1276)
6280
6281 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
6282
6283 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6284 new frames overriding foreground for tooltips. Based on similar patch
6285 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6286
6287 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
6288
6289 * emacs.c (Fdaemon_initialized): Initialize nfd.
6290
6291 2008-10-29 Martin Rudalics <rudalics@gmx.at>
6292
6293 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6294 (Fwindow_text_height): Clarify doc-strings.
6295 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6296 doc-string of window-scroll-functions.
6297
6298 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6299
6300 * category.c (syms_of_category): Fix typo in docstring.
6301
6302 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
6303
6304 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6305 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6306 Fix typos in docstrings.
6307
6308 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6309
6310 * emacs.c (daemon_pipe): Make non-static.
6311 (IS_DAEMON): Move definition ...
6312 * lisp.h (IS_DAEMON): ... here.
6313 (daemon_pipe): Declare.
6314 (is_daemon): Remove.
6315 * dispnew.c (init_display): Use IS_DAEMON.
6316
6317 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6318
6319 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6320 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6321
6322 * emacs.c (is_daemon): Remove.
6323 (main): Don't set is_daemon.
6324 (IS_DAEMON): New macro.
6325 (Fdaemonp, Fdaemon_initialized): Use it.
6326 (Fdaemon_initialized): Write a char into the pipe to make sure the
6327 parent exits.
6328 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6329
6330 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
6331
6332 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6333 over-sized glyph, draw it with the default glyph width.
6334
6335 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6336 glyph, draw it with the default glyph width.
6337
6338 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6339 glyph, draw it with the default glyph width.
6340
6341 * xdisp.c (try_scrolling): When computing the distance from the
6342 scroll margin to PT, try moving some distance past the window
6343 bottom before giving up.
6344
6345 2008-10-27 Martin Rudalics <rudalics@gmx.at>
6346
6347 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6348 (Fset_window_buffer): Explain in doc-string that a window can be
6349 "strongly" dedicated to its buffer.
6350
6351 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6352
6353 * emacs.c (daemon_name): New variable.
6354 (main): Deal with --daemon=SERVER_NAME.
6355 (Fdaemonp): Return a name if one was passed to --daemon.
6356
6357 2008-10-26 Romain Francoise <romain@orebokech.com>
6358
6359 * emacs.c (daemon_pipe): New variable.
6360 (main): Create a pipe before forking, make the parent exit only after
6361 the child has closed its end of the pipe. Move closing the
6362 descriptors ...
6363 (Fdaemon_initialized): ... here. New function.
6364
6365 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6366
6367 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6368 the previous unoptimized table.
6369
6370 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6371 the distinction between non-nil and non-t value of `dedicated'.
6372
6373 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
6374
6375 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
6376 read_char_minibuf_menu_text is large enough to hold the menu string.
6377
6378 2008-10-25 Martin Rudalics <rudalics@gmx.at>
6379
6380 * window.c (Fget_buffer_window, Fdelete_windows_on)
6381 (Freplace_buffer_in_windows): Make buffer argument optional and
6382 rename to buffer_or_name.
6383
6384 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
6385
6386 * xdisp.c (handle_single_display_spec, handle_display_prop):
6387 Undo 2005-05-16 change.
6388 (handle_stop): Pop iterator if it's loaded with an empty string.
6389 (get_overlay_strings_1): Don't save iterator if it's loaded with
6390 an empty string (bug#1201).
6391
6392 2008-10-24 Kenichi Handa <handa@m17n.org>
6393
6394 * ftfont.c (ftfont_otf_features): Fix previous change.
6395 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6396 calling ftfont_otf_features.
6397
6398 2008-10-24 Kenichi Handa <handa@m17n.org>
6399
6400 * font.c (font_match_p): Fix for the case that a vector of
6401 characters is in script-representative-chars.
6402
6403 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
6404
6405 * dbusbind.c (xd_in_read_queued_messages): New variable.
6406 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
6407 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6408 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
6409 macro. (Bug#1186)
6410
6411 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
6412
6413 * s/sol2-10.h: New file.
6414
6415 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6416
6417 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6418 poor beast has survived 9+ years and the jump from xterm.c!).
6419
6420 2008-10-23 Martin Rudalics <rudalics@gmx.at>
6421
6422 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6423 Reword doc-string.
6424 (Fbury_buffer): In doc-string say what happens to the buffer's window.
6425
6426 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6427
6428 * character.c (syms_of_character) <script-representative-chars>:
6429 <unicode-category-table>: Doc fixes.
6430
6431 2008-10-23 Noah Friedman <friedman@splode.com>
6432
6433 * coding.c (make_conversion_work_buffer): Check that
6434 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6435 Fget_buffer_create.
6436
6437 2008-10-23 Kenichi Handa <handa@m17n.org>
6438
6439 * font.c (font_add_log): Check the values of extra properties.
6440
6441 2008-10-22 Martin Rudalics <rudalics@gmx.at>
6442
6443 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6444 Reword doc-string.
6445 (Fset_window_parameter): Use NILP.
6446 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
6447 (Frecenter): Use "selected" instead of "current" window in doc-strings.
6448
6449 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6450
6451 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6452
6453 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6454
6455 * nsfns.m (ns_appkit_version): New function.
6456 (x-server-version): Use it.
6457 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6458 (x-server-vendor): Don't check_ns().
6459
6460 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6461
6462 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6463
6464 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6465 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6466
6467 2008-10-22 Kenichi Handa <handa@m17n.org>
6468
6469 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6470 scripts.
6471
6472 * category.c (word_boundary_p): Check scripts instead of charset.
6473 Handle nil value in word-separating-categories and
6474 word-combining-categories.
6475 (syms_of_category): Fix docstrings of word-separating-categories
6476 and word-combining-categories.
6477
6478 2008-10-21 Eli Zaretskii <eliz@gnu.org>
6479
6480 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6481 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6482
6483 2008-10-21 Martin Rudalics <rudalics@gmx.at>
6484
6485 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6486 Rename arg "buffer" to "buffer_or_name".
6487 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6488 it optional.
6489 (no_switch_window): Remove since the return value is not used.
6490 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
6491 Consider window as dedicated when Fwindow_dedicated_p returns a
6492 non-nil value.
6493 * lisp.h: Remove prototype for no_switch_window.
6494
6495 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6496
6497 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
6498 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
6499
6500 2008-10-21 Kenichi Handa <handa@m17n.org>
6501
6502 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6503 check Vlatin_extra_code_table.
6504
6505 2008-10-20 Eli Zaretskii <eliz@gnu.org>
6506
6507 * fileio.c (Fset_file_modes): Doc fix.
6508
6509 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
6510
6511 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6512 in arrays.
6513
6514 2008-10-19 Martin Rudalics <rudalics@gmx.at>
6515
6516 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6517 Mention kill-buffer in doc-string.
6518 (Fset_window_buffer): Reinsert tem check removed in last commit.
6519 (Fenlarge_window, Fshrink_window): Have argument names and
6520 doc-string follow Elisp manual more closely.
6521
6522 2008-10-18 Eli Zaretskii <eliz@gnu.org>
6523
6524 * fileio.c (Fset_file_modes): Doc fix.
6525
6526 2008-10-18 Martin Rudalics <rudalics@gmx.at>
6527
6528 * window.c (Fwindow_width, Fset_window_start)
6529 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
6530 (Fdelete_windows_on, Freplace_buffer_in_windows):
6531 Make doc-strings follow code and Elisp manual more closely.
6532 (Fwindow_dedicated_p): Make window argument optional.
6533 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6534 (Fset_window_buffer): Respect any non-nil dedicated value for
6535 window. Rename "buffer" argument to "buffer_or_name".
6536
6537 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
6538
6539 * m/sh3.h: New file, machine description for SuperH.
6540
6541 2008-10-17 Martin Rudalics <rudalics@gmx.at>
6542
6543 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6544
6545 2008-10-17 Kenichi Handa <handa@m17n.org>
6546
6547 * ftfont.c (ftfont_otf_features): Fix indexing
6548 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6549
6550 2008-10-16 Magnus Henoch <mange@freemail.hu>
6551
6552 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6553 (Fdbus_call_method_asynchronously): Ditto.
6554 This change makes C-h f display the argument list.
6555
6556 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
6557
6558 * fileio.c (Fexpand_file_name): Doc fix.
6559
6560 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6561 of :foreground and :background equivalent to unspecified (20.x
6562 compatibility).
6563
6564 2008-10-15 Eli Zaretskii <eliz@gnu.org>
6565
6566 * buffer.c (syms_of_buffer): Doc fix.
6567
6568 2008-10-14 Kenichi Handa <handa@m17n.org>
6569
6570 * font.c (font_clear_prop): When clearing font width, clear the
6571 average width field too.
6572
6573 2008-10-12 Andreas Schwab <schwab@suse.de>
6574
6575 * ftfont.c (ftfont_shape_by_flt): Make static.
6576 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6577
6578 * font.c: Don't include <m17n-flt.h>.
6579
6580 2008-10-10 Eli Zaretskii <eliz@gnu.org>
6581
6582 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6583
6584 2008-10-09 Eli Zaretskii <eliz@gnu.org>
6585
6586 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6587 away code.
6588
6589 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
6590
6591 * dispnew.c (update_text_area): Avoid looping due to large glyph
6592 overhangs (bug#1070).
6593
6594 2008-10-09 Kenichi Handa <handa@m17n.org>
6595
6596 * fontset.c (face_for_char): If face->fontset is negative, just
6597 return ascii_face.
6598
6599 * font.c (font_delete_unmatched): Fix previous change.
6600 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
6601
6602 2008-10-09 Martin Rudalics <rudalics@gmx.at>
6603
6604 * frame.c (Fraise_frame): On text-only terminals select frame in
6605 order to make it visible. (Bug#1061)
6606
6607 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
6608
6609 * fontset.c (fontset_find_font): Check frame validity.
6610
6611 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
6612
6613 * gtkutil.c (xg_display_open): Reset default display if none exists.
6614 (xg_display_close): Allow Emacs to close all displays (bug#985).
6615
6616 2008-10-06 Andreas Schwab <schwab@suse.de>
6617
6618 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
6619
6620 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
6621
6622 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
6623
6624 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
6625
6626 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6627 during initialization.
6628
6629 2008-10-04 Eli Zaretskii <eliz@gnu.org>
6630
6631 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6632 whole thing on MSDOS frames as well as on a TTY.
6633
6634 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6635 well as for TTY.
6636 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6637 well as on a TTY.
6638
6639 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6640 as well as for TTY.
6641
6642 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6643
6644 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6645 MSDOS frames as well.
6646
6647 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6648
6649 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6650 correct arguments.
6651 * menu.c (find_and_return_menu_selection): Add cast.
6652
6653 2008-10-03 Glenn Morris <rgm@gnu.org>
6654
6655 * emacs.c (USAGE1): Add --daemon.
6656
6657 2008-10-02 Eli Zaretskii <eliz@gnu.org>
6658
6659 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6660 100, so it's in percents as advertised.
6661
6662 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6663
6664 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6665 (ns_output.current_cursor, ns_output.desired_cursor)
6666 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6667 (FRAME_NEW_CURSOR_COLOR): Remove.
6668
6669 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
6670 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
6671 enumeration (HOLLOW_BOX_CURSOR, etc.).
6672
6673 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6674 (draw_window_cursor): Simplify code.
6675 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6676 Don't change cursor type. In latter, call rehighlight instead of doing
6677 updates manually.
6678 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6679 Use core Emacs cursor types.
6680
6681 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
6682
6683 2008-10-02 Martin Rudalics <rudalics@gmx.at>
6684
6685 * process.c (Faccept_process_output): Fix doc-string.
6686
6687 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6688
6689 * gmalloc.c (__sbrk): Also define for uClibc.
6690
6691 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6692 for uClibc.
6693
6694 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6695
6696 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6697 styles.
6698 (nsfont_open): Reenable the cache.
6699
6700 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6701
6702 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6703 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6704
6705 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6706
6707 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6708 a suspended terminal.
6709
6710 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
6711
6712 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6713
6714 2008-09-30 Eli Zaretskii <eliz@gnu.org>
6715
6716 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6717
6718 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
6719
6720 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6721 in a continued line coincides with a line beginning.
6722
6723 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6724
6725 * nsfont.m (nsfont_trait_distance): Fix bug.
6726 (nsfont_list): Return a list rather than a vector (syncs with Handa
6727 changes of 2008-05-14).
6728 (nsfont_open): Improve logging.
6729
6730 2008-09-29 Andreas Schwab <schwab@suse.de>
6731
6732 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6733
6734 2008-09-28 Martin Rudalics <rudalics@gmx.at>
6735
6736 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6737 name as char-resolve-modifiers.
6738 Reported by: Markus Triska <markus.triska@gmx.at>
6739
6740 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6741
6742 * dispnew.c (init_display): Return earlier when running as a daemon.
6743
6744 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6745
6746 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6747
6748 2008-09-27 Eli Zaretskii <eliz@gnu.org>
6749
6750 * composite.c (Fcomposition_get_gstring)
6751 (Fcompose_region_internal, Fcompose_string_internal)
6752 (Ffind_composition_internal): Doc fix.
6753 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6754 (syms_of_composite) <auto-composition-function>: Doc fix.
6755 (syms_of_composite) <composition-function-table>: Doc fix.
6756
6757 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
6758
6759 * search.c (wordify): New argument for lax word-ends.
6760 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6761
6762 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6763
6764 * lisp.h (is_daemon): Declare.
6765 * dispnew.c (init_display): Do not try to initialize the terminal
6766 when running as a daemon.
6767
6768 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
6769
6770 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6771 x_display_pixel_height.
6772
6773 2008-09-22 Martin Rudalics <rudalics@gmx.at>
6774
6775 * undo.c (record_point): Don't call Fundo_boundary for first
6776 change. (Bug#731)
6777
6778 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
6779
6780 * emacs.c (Fdaemonp): Doc fix.
6781
6782 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6783
6784 * emacs.c (main): Place #ifdef in the proper place.
6785
6786 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6787
6788 * emacs.c (standard_args): Add --daemon.
6789 (main): Disconnect from the terminal when --daemon is passed.
6790 (is_daemon): New variable.
6791 (Fdaemonp): New function.
6792 (syms_of_emacs): Defsubr it.
6793
6794 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
6795
6796 * xdisp.c (get_next_display_element): Handle string display
6797 correctly when checking for the end of a box run.
6798
6799 2008-09-20 Glenn Morris <rgm@gnu.org>
6800
6801 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6802 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6803 (Frename_file): Avoid copying to trash if a rename involves
6804 a delete. (Bug#964).
6805
6806 2008-09-20 Eli Zaretskii <eliz@gnu.org>
6807
6808 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6809 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6810 frames as well as termcap frames.
6811 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6812 get_named_tty.
6813
6814 2008-09-19 Eli Zaretskii <eliz@gnu.org>
6815
6816 * process.c (procfs_system_process_attributes): Fix cmdline in
6817 case /proc/PID/cmdline is empty.
6818
6819 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6820 x_display_pixel_height.
6821
6822 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
6823
6824 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6825
6826 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6827 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6828
6829 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6830
6831 * dispextern.h (struct it): Move line_wrap away from the middle of
6832 bitfields. Move voffset in struct iterator_stack_entry after the
6833 bitfields. Move tab_width near after another short.
6834
6835 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6836
6837 * frame.h (struct frame): Move alpha from the middle of bitfields.
6838
6839 * window.h (struct window): Move frozen_window_start_p after the
6840 rest of the bitfields to reduce padding.
6841
6842 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
6843
6844 * xterm.h (x_display_info): Remove `height' and `width' members.
6845
6846 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6847
6848 * w32term.h (w32_display_info): Remove `height', `width',
6849 `height_in', and `width_in' members.
6850
6851 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6852 New functions.
6853 (x_calc_absolute_position): Use them.
6854 (x_term_init): Omit removed `height' and `width' members.
6855
6856 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6857 New functions.
6858 (w32_read_socket, x_calc_absolute_position): Use them.
6859 (w32_initialize_display_info, w32_term_init): Omit removed members
6860 of w32_display_info.
6861
6862 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6863 New functions.
6864 (ns_initialize_display_info): Omit removed members of ns_display_info.
6865
6866 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6867 New functions.
6868 (x_calc_absolute_position): Use them.
6869 (x_term_init): Omit removed `height' and `width' members.
6870
6871 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6872 (compute_tip_xy):
6873 * frame.c (x_fullscreen_adjust):
6874 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6875 x_display_pixel_width.
6876
6877 2008-09-18 Kenichi Handa <handa@m17n.org>
6878
6879 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6880 (composition_compute_stop_pos): Fix handling of static composition.
6881 (Fcomposition_get_gstring): Check FROM and TO at first.
6882
6883 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6884
6885 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
6886 mixup (YAILOM).
6887
6888 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
6889
6890 * indent.c (Fvertical_motion): Use position reported by iterator
6891 instead of PT for determining screen motion (bug#943).
6892
6893 2008-09-17 Romain Francoise <romain@orebokech.com>
6894
6895 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6896
6897 2008-09-17 Kenichi Handa <handa@m17n.org>
6898
6899 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6900
6901 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6902 if necessary.
6903
6904 2008-09-16 Kenichi Handa <handa@m17n.org>
6905
6906 * coding.c (make_conversion_work_buffer): Avoid calling
6907 Fget_buffer_create if it is not necessary.
6908
6909 2008-09-15 Martin Rudalics <rudalics@gmx.at>
6910
6911 * window.c (Fselect_window): Don't update window_select_count and
6912 use_time when norecord is not nil.
6913
6914 2008-09-14 Kenichi Handa <handa@m17n.org>
6915
6916 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6917 specpdl_ptr.
6918
6919 2008-09-12 Kenichi Handa <handa@m17n.org>
6920
6921 * indent.c (scan_for_column): Don't handle automatic composition
6922 if the current buffer is not associated with a window.
6923
6924 * composite.c (composition_reseat_it): If the current buffer is
6925 not associated with a window, ignore the automatic composition.
6926 (find_automatic_composition): Likewise.
6927
6928 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6929
6930 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6931 (Fgpm_mouse_stop): Use it.
6932 * termhooks.h (close_gpm): Declare.
6933 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6934 connection if Gpm_GetEvent fails.
6935
6936 * window.c (set_window_buffer): Always preserve current-buffer.
6937
6938 2008-09-12 Glenn Morris <rgm@gnu.org>
6939
6940 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6941
6942 2008-09-11 Glenn Morris <rgm@gnu.org>
6943
6944 * charset.c (charset-map-path): Doc fix.
6945
6946 2008-09-10 Kenichi Handa <handa@m17n.org>
6947
6948 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6949
6950 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6951 compose a grapheme cluster with the preceding base glyph.
6952
6953 * composite.c (composition_compute_stop_pos): Fix previous change.
6954 Reset cmp_it->id to -1 at first.
6955
6956 2008-09-10 Glenn Morris <rgm@gnu.org>
6957
6958 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6959
6960 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
6961
6962 * keyboard.c (read_key_sequence): Reapply translation maps when
6963 switching keyboards.
6964
6965 2008-09-09 Kenichi Handa <handa@m17n.org>
6966
6967 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6968 characters.
6969
6970 * composite.c (FORWARD_CHAR): Fix calculation
6971 of (POSITION).pos_byte.
6972 (composition_compute_stop_pos): Limit the search of composition to
6973 at most 500 characters ahead. If we reach the limit or find a
6974 newline, set cmp_it->ch to -2 and return 0.
6975 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6976
6977 2008-09-08 Kenichi Handa <handa@m17n.org>
6978
6979 * indent.c (Fvertical_motion): Be sure to set
6980 it_overshoot_expected if it.cmp_it.id is non-negative.
6981
6982 2008-09-07 Andreas Schwab <schwab@suse.de>
6983
6984 * callproc.c (Fcall_process): Don't hold references to string data
6985 across garbage collection. Move initialisation of new_argv down
6986 to avoid compiler bug.
6987
6988 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6989
6990 * process.c (Fsystem_process_attributes): Doc fix.
6991
6992 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
6993
6994 * callproc.c (Fcall_process): Canonicalize current directory name.
6995
6996 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6997 iterator advances to the next line if the current line ends in a
6998 continued tab.
6999
7000 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7001
7002 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7003 member to point to cmp_from.
7004
7005 * xdisp.c: Doc fix for references to gidx data member.
7006
7007 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7008
7009 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7010
7011 2008-09-07 Kenichi Handa <handa@m17n.org>
7012
7013 * composite.c (FORWARD_CHAR): Check STOP after
7014 incrementing (POSITION).pos.
7015
7016 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7017
7018 * process.c (Fsystem_process_attributes): Doc fix.
7019
7020 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
7021
7022 * keyboard.c (Ftop_level): Doc fix.
7023
7024 2008-09-06 Eli Zaretskii <eliz@gnu.org>
7025
7026 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7027 minibuffer, don't let lower part of menu invade the echo area.
7028
7029 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7030 "char *q" to access menu text and advance through it. Revert the
7031 change that displayed ">" instead of ASCII character 0x10.
7032
7033 2008-09-05 Eli Zaretskii <eliz@gnu.org>
7034
7035 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7036 toggle boxes and radio buttons on MS-DOS as well.
7037
7038 2008-09-05 Kenichi Handa <handa@m17n.org>
7039
7040 * composite.c (autocmp_chars): Check lookback count.
7041 (composition_compute_stop_pos): Set cmp_it->lookback.
7042 (composition_reseat_it): Check lookback count.
7043 (struct position_record): New struct.
7044 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7045 (find_automatic_composition): New function.
7046 (composition_adjust_point): Use find_automatic_composition.
7047
7048 * dispextern.h (struct composition_it): New member lookback.
7049
7050 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
7051
7052 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7053 if moving by a single line.
7054
7055 2008-09-02 Andreas Schwab <schwab@suse.de>
7056
7057 * xterm.c (x_delete_display): Fix merge error.
7058
7059 * fileio.c (Fexpand_file_name): Remove unused variables.
7060
7061 2008-09-02 Eli Zaretskii <eliz@gnu.org>
7062
7063 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7064 storage on all platforms, not just on DOS_NT.
7065
7066 2008-09-02 Jason Rumney <jasonr@gnu.org>
7067
7068 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7069 Ensure mouse is not grabbed after menu is finished.
7070
7071 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
7072
7073 * xfaces.c (Finternal_set_alternative_font_family_alist)
7074 (Finternal_set_alternative_font_registry_alist): Properly copy
7075 entire alist structure.
7076
7077 2008-09-01 Kenichi Handa <handa@m17n.org>
7078
7079 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
7080 representative chars of the script is a vector.
7081 (ftfont_list): Handle the case where the representative chars of
7082 the script is a vector.
7083
7084 * character.c (syms_of_character): Docstring of
7085 script-representative-chars fixed.
7086
7087 2008-08-31 Eli Zaretskii <eliz@gnu.org>
7088
7089 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7090 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7091 the menu. Allocate larger buffer for `text', to account for
7092 possible ^C characters.
7093
7094 2008-08-31 Martin Rudalics <rudalics@gmx.at>
7095
7096 * xdisp.c (prepare_menu_bars): Don't call
7097 Vwindow_size_change_functions with arg Qt.
7098
7099 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7100
7101 * font.h (font_range):
7102 * fileio.c (report_file_error):
7103 * composite.c (composition_update_it): Yet another int/Lisp_Object
7104 mixup (YAILOM).
7105
7106 2008-08-30 Glenn Morris <rgm@gnu.org>
7107
7108 * data.c (Fmake_variable_frame_local): Doc fix.
7109
7110 * frame.c (Fmodify_frame_parameters): Doc fix.
7111
7112 2008-08-30 Eli Zaretskii <eliz@gnu.org>
7113
7114 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7115 needed by GetTokenInformation.
7116 (w32_system_process_attributes): Check return values of all system
7117 APIs.
7118
7119 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7120 only when the state changes.
7121 (IT_update_begin, IT_update_end): Add termscript trace.
7122
7123 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7124 clipboard is unavailable. Set dst to NULL if it doesn't point to
7125 malloc'ed data.
7126 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7127 passing random values to xfree.
7128
7129 * dispnew.c (init_display): Set `tty's association in frame's
7130 parameters alist to the name of the terminal device, if that is known.
7131
7132 2008-08-29 Jason Rumney <jasonr@gnu.org>
7133
7134 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7135
7136 2008-08-29 Eli Zaretskii <eliz@gnu.org>
7137
7138 * composite.c (fill_gstring_body): Avoid compiler warnings.
7139
7140 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7141 LGLYPH_SET_CODE to avoid compiler warnings.
7142
7143 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
7144
7145 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7146
7147 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7148 LGLYPH_SET_CODE.
7149
7150 2008-08-29 Kenichi Handa <handa@m17n.org>
7151
7152 * fileio.c (report_file_error): Don't downcase the first character
7153 of errstring if it is still unibyte.
7154
7155 2008-08-29 Kenichi Handa <handa@m17n.org>
7156
7157 These changes are to re-implement the automatic composition so
7158 that it doesn't use text properties.
7159
7160 * Makefile.in (ftfont.o): Depend on composite.h.
7161 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7162
7163 * character.h (Vunicode_category_table): Extern it.
7164
7165 * character.c (Vunicode_category_table): New variable.
7166 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7167
7168 * chartab.c (optimize_sub_char_table): Perform more greedy
7169 optimization.
7170
7171 * composite.h (enum composition_method):
7172 Delete COMPOSITION_WITH_GLYPH_STRING.
7173 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7174 (Vcomposition_function_table): Extern it.
7175 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7176 (composition_gstring_put_cache, composition_gstring_from_id)
7177 (composition_gstring_p, composition_gstring_width)
7178 (composition_compute_stop_pos, composition_reseat_it)
7179 (composition_update_it, composition_adjust_point): Extern them.
7180 (Fcomposition_get_gstring): EXFUN it.
7181
7182 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
7183 (Vcomposition_function_table)
7184 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
7185 (gstring_hash_table, gstring_work, gstring_work_headers):
7186 New variables.
7187 (gstring_lookup_cache, composition_gstring_put_cache)
7188 (composition_gstring_from_id, composition_gstring_p)
7189 (composition_gstring_width, fill_gstring_header)
7190 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7191 (composition_reseat_it, composition_update_it)
7192 (composition_adjust_point, Fcomposition_get_gstring): New functions.
7193 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7194 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7195 Defsubr compostion_get_gstring.
7196
7197 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7198 cmp_id.
7199 (struct glyph_string): Delete the member gidx. New members
7200 cmp_id, cmp_from, and cmp_to.
7201 (enum it_method): Delete GET_FROM_COMPOSITION.
7202 (struct composition_it): New struct.
7203 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7204 Delete c, len, cmp_id, cmp_len in u.comp.
7205
7206 * font.h (enum lgstring_indices): Delete it.
7207 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
7208 (enum lglyph_indices): Likewise.
7209 (font_range): Adjust extern.
7210 (font_fill_lglyph_metrics): Extern it.
7211
7212 * font.c (QCf): New variable.
7213 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7214 (font_prepare_composition): Delete this function.
7215 (font_range): Type and arguments changed.
7216 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7217 (font_fill_lglyph_metrics): New function.
7218 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
7219 (syms_of_font): DEFSYM QCf. Delete defsubr for
7220 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7221 Defsubr Sfont_shape_gstring.
7222
7223 * fontset.h (font_for_char): Extern it.
7224
7225 * fontset.c (font_for_char): New function.
7226
7227 * ftfont.c: Include composite.h.
7228 (ftfont_resolve_generic_family): Add langset "en" to pattern.
7229 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7230
7231 * indent.c: Include composite.h and dispextern.h.
7232 (check_composition): Delete this function.
7233 (scan_for_column): Handle composition by
7234 composition_compute_stop_pos, composition_reseat_it, and
7235 composition_update_it.
7236 (compute_motion): Likewise.
7237 (Fvertical_motion): Fix checking of composition.
7238
7239 * keyboard.c (adjust_point_for_property): Check composition by
7240 composition_adjust_point.
7241
7242 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
7243 struct glyph_string.
7244
7245 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7246 (append_composite_glyph): Adjust for the change of struct it and
7247 struct glyph.
7248 (produce_composite_glyph): Likewise.
7249
7250 * w32term.c (x_draw_composite_glyph_string_foreground):
7251 Adjust for the change of struct glyph_string.
7252 (x_draw_glyph_string): Likewise.
7253
7254 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7255 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7256
7257 * xdisp.c: Include font.h.
7258 (it_props): Delete the entry for Qauto_composed.
7259 (init_iterator): Initialize it->cmp_it.id to -1.
7260 (compute_stop_pos): Call composition_compute_stop_pos.
7261 (face_before_or_after_it_pos): Adjust for the change of struct it.
7262 (handle_auto_composed_prop): Delete it.
7263 (handle_composition_prop): Handle only static composition.
7264 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7265 from xassert. Initialize it->cmp_it.stop_pos.
7266 (push_it): Adjust for the change of struct it.
7267 (pop_it): Likewise.
7268 (get_next_element): Delete next_element_from_composition.
7269 (CHAR_COMPOSED_P): New macro.
7270 (get_next_display_element): For automatic composition, get a face
7271 from the font in the glyph-string.
7272 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
7273 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
7274 (next_element_from_string): Check if the character at the current
7275 position is composed by CHAR_COMPOSED_P.
7276 (next_element_from_buffer): Likewise.
7277 (next_element_from_composition): Adjust for the change of struct it.
7278 Update it->cmp_it.
7279 (dump_glyph): Adjust for the change of struct glyph.
7280 (fill_composite_glyph_string): Adjust for the change of struct
7281 it and struct glyph. Don't handle automatic composition here.
7282 (fill_gstring_glyph_string): New function.
7283 (x_get_glyph_overhangs): Handle automatic composition.
7284 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
7285 (BUILD_GSTRING_GLYPH_STRING): New macro.
7286 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7287 automatic composition.
7288 (append_composite_glyph): Adjust for the change of struct it and
7289 struct glyph.
7290 (x_produce_glyphs): Adjust for the change of struct it.
7291
7292 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7293 the change of struct glyph_string.
7294 (x_draw_glyph_string): Likewise.
7295
7296 2008-08-29 Glenn Morris <rgm@gnu.org>
7297
7298 * buffer.c (word-wrap): Doc fix.
7299 * xdisp.c (truncate-partial-width-windows): Doc fix.
7300 Increase default to 50.
7301
7302 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
7303
7304 * xdisp.c (update_tool_bar_unwind): New function.
7305 (update_tool_bar): Temporarily set selected frame before building
7306 tool-bar items.
7307
7308 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
7309
7310 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7311 snprintf, respectively.
7312 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7313
7314 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
7315
7316 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7317 LDFLAGS to GNUstep CC invocation.
7318
7319 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
7320
7321 * indent.c (Fvertical_motion): Revert last change. Handle the
7322 general case where we are moving forward, and PT spans multiple
7323 screen lines.
7324
7325 * eval.c (find_handler_clause): Temporarily increase
7326 max-lisp-eval-depth while printing the backtrace buffer, to
7327 guarantee that help-mode code can run.
7328
7329 2008-08-27 Eli Zaretskii <eliz@gnu.org>
7330
7331 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7332 colors under -rv.
7333 (IT_set_frame_parameters): Don't swap foreground and background
7334 colors if `(reverse . t)' is present in the frame properties.
7335 (internal_terminal_init): Call init_frame_faces only for the
7336 initial frame.
7337
7338 2008-08-27 Andreas Schwab <schwab@suse.de>
7339
7340 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7341
7342 2008-08-27 Andreas Schwab <schwab@suse.de>
7343
7344 * search.c (search_buffer): Set char_base to zero only at the end.
7345
7346 2008-08-27 Kenichi Handa <handa@m17n.org>
7347
7348 * fileio.c (report_file_error): Fix handling of multibyte error string.
7349
7350 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7351
7352 * xterm.c (x_term_init): Temporarily hide the partially
7353 initialized terminal while calling vendor-specific-keysyms.
7354
7355 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7356
7357 * msdos.c (internal_terminal_init): Most initializations done only
7358 once, especially initial_screen_colors[] and termscript open.
7359
7360 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7361
7362 * eval.c (Fcondition_case): Doc fix.
7363
7364 * widgetprv.h (EmacsFramePart): Change font member to the new font
7365 struct.
7366
7367 * widget.c: Include character.h and font.h for XSETFONT.
7368 (setup_frame_gcs): Compute X font id from font struct, just once.
7369
7370 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7371
7372 * term.c (get_named_tty): Fix last change.
7373
7374 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7375
7376 * indent.c (Fvertical_motion): If moving forward starting from a
7377 multi-line string, move the iterator to the last line of that string.
7378
7379 2008-08-25 Eli Zaretskii <eliz@gnu.org>
7380
7381 * frame.c (do_switch_frame): Mark previously displayed frame as
7382 obscured for FRAME_MSDOS_P frames as well.
7383
7384 2008-08-24 Eli Zaretskii <eliz@gnu.org>
7385
7386 * frame.c (make_terminal_frame): Initialize f->terminal,
7387 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7388 Set the top frame to newly created frame.
7389 (Fmake_terminal_frame): Reuse the_only_display_info.
7390
7391 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7392 estimating available memory.
7393
7394 2008-08-23 David Reitter <david.reitter@gmail.com>
7395
7396 * nsterm.m (ns_draw_window_cursor): Don't call
7397 NSDisableScreenUpdates and NSEnableScreenUpdates on
7398 non-NS_IMPL_COCOA systems.
7399
7400 2008-08-23 Andreas Schwab <schwab@suse.de>
7401
7402 * process.c (procfs_system_process_attributes): Fix use of
7403 uninitialized variables.
7404
7405 2008-08-23 Eli Zaretskii <eliz@gnu.org>
7406
7407 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7408
7409 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7410 calling tty-set-up-initial-frame-faces.
7411
7412 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7413 Allow MSDOS frames along with X frames.
7414
7415 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7416 addition to output_termcap.
7417
7418 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7419
7420 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7421 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7422 highlight.
7423
7424 * process.c [!subprocesses]: Define QCname.
7425 (syms_of_process): Intern and staticpro it.
7426
7427 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
7428 Adjust for changes in encoding/decoding routines.
7429 Use encode_coding_object and decode_coding_object instead of
7430 encode_coding and decode_coding.
7431
7432 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
7433
7434 * dosfns.c: Include frame.h before termhooks.h.
7435 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7436 variable termscript.
7437
7438 * s/msdos.h (USER_FULL_NAME): Define.
7439 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7440
7441 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7442 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7443 pw->pw_gecos.
7444
7445 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7446 SELECTED_FRAME as additional (1st) argument.
7447 (tty_read_avail_input): Handle output_msdos_raw in
7448 addition to output_termcap.
7449
7450 * msdos.c: Include frame.h before termhooks.h.
7451 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7452 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7453 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7454 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7455 (IT_set_terminal_modes, IT_reset_terminal_modes)
7456 (IT_set_frame_parameters): Use tty->termscript instead of a global
7457 variable termscript.
7458 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7459 global variable terminal_coding. Don't refer to
7460 Vnonascii_translation_table.
7461 (internal_terminal_init): Set Vwindow_system in current_kboard.
7462 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7463 Announce date and time of session start, if termscript is open.
7464 Don't zero out the_only_display_info (it is done in
7465 term.c:init_tty). Open termscript only of not already open.
7466 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
7467 here instead of dos_ttraw. Don't initialize display if this is an
7468 initial tty. Don't set FRAME_FONT.
7469 (Vwindow_system_version): Bump to 23.
7470 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7471 is available, set up mouse_position_hook.
7472 (dos_ttraw, IT_set_terminal_modes): If called with initial
7473 terminal, do nothing.
7474 (IT_set_frame_parameters): Handle the Qtty_type frame
7475 parameter by calling internal_terminal_init.
7476 (dos_set_window_size, show_mouse_face)
7477 (clear_mouse_face, IT_note_mode_line_highlight)
7478 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7479 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7480 (initialize_msdos_display): New function.
7481 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7482 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7483 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7484 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
7485 Accept additional argument: a pointer to a frame. Update all callers.
7486 (request_sigio, unrequest_sigio): Don't define, now defined on
7487 sysdep.c.
7488 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7489
7490 * term.c [MSDOS]: Include msdos.h.
7491 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7492 conditional to DOS_NT. Allow only one call to this function in a
7493 session. Don't allocate a new struct tty_display_info; instead,
7494 reuse the_only_display_info. Call get_tty_size to get screen
7495 dimensions. Call init_baud_rate to set bad_rate.
7496 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7497 (Fsuspend_tty) [MSDOS]: Don't close input and output.
7498 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
7499 (get_tty_terminal, get_named_tty, Ftty_type)
7500 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7501 output_termcap.
7502 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7503 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
7504 only when subprocesses are supported.
7505
7506 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7507 f->output_data.x.
7508 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7509 terminal devices.
7510
7511 * msdos.h: Remove definition of struct x_display_info and struct
7512 x_output.
7513 (FRAME_FONT): Use output_data.tty.
7514 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
7515 (struct x_display_info): Rename from display_info. Update all users in
7516 msdos.c.
7517 (struct x_output): Remove background_pixel and foreground_pixel.
7518 (the_only_display_info): Rename from the_only_x_display.
7519 (dos_ttraw): Update prototype.
7520
7521 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7522 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7523
7524 2008-08-23 Jason Rumney <jasonr@gnu.org>
7525
7526 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7527 (fn_TIFFSetDirectory): New library function used.
7528 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7529 (tiff_load): Use :index to select among multiple images. Set count
7530 property when multiple images exist.
7531 (gif_format): Use :index, not :image.
7532
7533 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
7534
7535 * xdisp.c (try_scrolling): Check INT_MAX instead of
7536 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7537 to obtain INT_MAX.
7538
7539 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7540
7541 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7542
7543 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7544
7545 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7546 GNUstep library location.
7547
7548 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
7549
7550 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7551 before using it.
7552
7553 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7554
7555 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7556
7557 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7558 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7559 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7560 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7561 (EmacsApp-cursor_blink_handler): Remove declaration.
7562 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7563 match 01 Feb 2008 changes in xterm.c.
7564 (ns_read_socket): Add cast to avoid warning.
7565 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7566 GNUstep.
7567
7568 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
7569
7570 * xselect.c (x_get_foreign_selection): Return nil if desired
7571 selection could not be obtained, instead of signalling an error.
7572
7573 2008-08-20 David Reitter <david.reitter@gmail.com>
7574
7575 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7576 * nsterm.m: Remove ns-specific code for cursor blinking.
7577 (ns_draw_window_cursor): Clear cursor properly rather than
7578 redrawing the area. Respect width of bar cursors.
7579 These changes enable the use of generic blink-cursor-mode and
7580 generic cursor types in NS and support smooth cursor movements (do
7581 not blink off after command).
7582 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7583 Nextstep, too.
7584
7585 2008-08-19 Kenichi Handa <handa@m17n.org>
7586
7587 * font.c (Vfont_log_deferred): New variable.
7588 (font_add_log): Check Vfont_log_deferred.
7589 (font_deferred_log): New function.
7590
7591 * font.h (font_deferred_log): Extern it.
7592
7593 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7594 for sorting.
7595 (face_for_char): Use deferred log.
7596
7597 2008-08-18 Kenichi Handa <handa@m17n.org>
7598
7599 * fontset.c (face_for_char): Add font log.
7600
7601 * font.c (font_add_log): Add the font properties :script, :lang,
7602 and :otf in the log.
7603
7604 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
7605
7606 * xdisp.c: Remove dead code.
7607 (handle_invisible_prop, next_overlay_string): Defer call to
7608 setup_for_ellipsis.
7609 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7610
7611 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
7612
7613 * xfaces.c (lookup_derived_face): Properly handle possible zero
7614 return value of get_lface_attributes.
7615 (merge_faces): Don't tell lookup_derived_face to signal an error
7616 if face is not found.
7617
7618 * dired.c (Fdirectory_files): Doc fix.
7619
7620 * process.c (make_process): Initialize kill_without_query struct
7621 member.
7622
7623 2008-08-15 Eli Zaretskii <eliz@gnu.org>
7624
7625 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7626 Alternative calculation of totphys for Visual Studio 6.
7627
7628 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7629
7630 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7631 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7632 All users changed.
7633 (stat): Only root directory passed to GetDriveType. Allow RAM
7634 disk as well as local fixed disk when w32-get-true-file-attributes
7635 is set to `local'.
7636 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7637 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7638 (w32_cached_id, w32_add_to_cache): New functions.
7639 (get_name_and_id): Look account names in the cache before calling
7640 lookup_account_sid.
7641 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7642 New initialization flags.
7643 (globals_of_w32): Initialize them to zero.
7644 (w32_system_process_attributes): Use w32_cached_id and
7645 w32_add_to_cache.
7646
7647 2008-08-14 Lawrence Mitchell <wence@gmx.li>
7648
7649 * lread.c (Fread_char, Fread_char_exclusive): If no character
7650 event is read before timeout is reached, return nil, rather than
7651 converting to a number.
7652
7653 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
7654
7655 * fns.c (use_dialog_box): Doc fix.
7656
7657 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7658 on OS X.
7659
7660 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
7661
7662 * frame.c (Qns_parse_geometry): New var.
7663 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7664
7665 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
7666
7667 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7668 space character in calculating tabs.
7669
7670 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7671
7672 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7673
7674 2008-08-10 Glenn Morris <rgm@gnu.org>
7675
7676 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7677 silence gcc "limited range of data type" warnings in some
7678 make_fixnum_or_float calls.
7679
7680 2008-08-09 Eli Zaretskii <eliz@gnu.org>
7681
7682 * w32.c (w32_system_process_attributes): If the process does not
7683 exist, return nil.
7684
7685 * w32.c: Include thelp32.h, psapi.h and coding.h.
7686 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7687 declarations.
7688 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7689 (Process32Next_Proc): New typedefs.
7690 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7691 (g_b_init_process32_next, g_b_init_open_thread_token)
7692 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7693 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7694 (g_b_init_get_process_working_set_size)
7695 (g_b_init_global_memory_status_ex): New static variables.
7696 (globals_of_w32): Initialize them.
7697 (create_toolhelp32_snapshot, process32_first, process32_next)
7698 (open_thread_token, impersonate_self, revert_to_self)
7699 (get_process_memory_info, get_process_working_set_size)
7700 (global_memory_status, global_memory_status_ex): New wrapper
7701 functions.
7702 (w32_list_system_processes, w32_system_process_attributes)
7703 (enable_privilege, restore_privilege, ltime, process_times):
7704 New functions.
7705 (convert_time_raw): New function.
7706 (convert_time): Remove conversion of FILETIME into time in 100
7707 nsec units, call convert_time_raw instead.
7708
7709 * process.h (w32_list_system_processes, w32_system_process_attributes):
7710 Add prototypes.
7711 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7712 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7713 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7714 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7715
7716 * process.c (Fsystem_process_attributes): Doc fix.
7717
7718 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
7719
7720 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7721 a continued multi-char glyph; if so, advance to the actual glyph.
7722
7723 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7724
7725 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7726
7727 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7728 (.m.o): Use it.
7729 * config.in: Regenerate.
7730
7731 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
7732
7733 * xdisp.c (redisplay_window): Revert last change.
7734 (try_window): Check bottom scroll margin too.
7735
7736 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7737
7738 * config.in: Regenerate.
7739
7740 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7741 -list-load-path-shadows'.
7742 (nsgui.h): Reduce number of things depending on it.
7743
7744 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
7745
7746 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7747 instead of window-end which does the wrong thing at eob.
7748 (try_cursor_movement): Minor optimization.
7749 (redisplay_window): If scroll margin is defined, don't assume
7750 window doesn't need scrolling.
7751
7752 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7753
7754 * config.in: Regenerate.
7755
7756 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7757 (mostlyclean): Don't delete *.d under NS.
7758
7759 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7760
7761 2008-08-06 Kenichi Handa <handa@m17n.org>
7762
7763 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7764
7765 2008-08-06 Andreas Schwab <schwab@suse.de>
7766
7767 * config.in: Regenerate.
7768
7769 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
7770
7771 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7772 forcing a window start.
7773
7774 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7775 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7776
7777 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7778
7779 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7780 argument.
7781
7782 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
7783
7784 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7785 <scroll-down-aggressively, before-change-functions>:
7786 <after-change-functions>: Reflow docstrings.
7787
7788 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7789 Ken Raeburn <raeburn@gnu.org>
7790
7791 Dock menu customization, based on a patch by Ken Raeburn, plus some
7792 other fixes.
7793 * nsmenu.m (dockMenu): New variable.
7794 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7795
7796 * nsterm.h (dockMenu): Declare.
7797
7798 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7799 (ns_term_init): Initialize dockMenu.
7800 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7801 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7802 left.
7803
7804 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7805
7806 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7807
7808 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7809
7810 * config.in: Regenerate.
7811
7812 2008-08-04 Seiji Zenitani <zenitani@mac.com>
7813
7814 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7815
7816 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7817
7818 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7819
7820 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7821
7822 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7823
7824 * keyboard.h: Comment an #endif.
7825
7826 * lisp.h (have_menus_p): Adjust comment.
7827
7828 * menu.c (find_and_return_menu_selection): Fix comparison with
7829 client_data.
7830
7831 * nsmenu.m (popup_activated_flag): New variable.
7832 (popup_activated): New function.
7833 (menu-or-popup-active-p): New exported lisp definition.
7834 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7835 when popup done.
7836 (ns_popup_dialog): Set popup_activated_flag.
7837
7838 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7839 version for GNUstep (handled by conditional typedef in nsterm.m).
7840 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7841 in rgb.txt).
7842
7843 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7844
7845 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7846
7847 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7848
7849 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7850 shortcircuit if popup_activated like GTK and X toolkit.
7851
7852 * m/inter386.h: Change DARWIN to DARWIN_OS.
7853
7854 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7855 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7856 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7857 comment on NO_SOCK_SIGIO.
7858
7859 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
7860
7861 * nsterm.m (windowDidResize): Remove stopModal call.
7862
7863 2008-08-03 Andreas Schwab <schwab@suse.de>
7864
7865 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7866 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7867
7868 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
7869
7870 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7871 Don't use uninitialized pointer variable when using getrlimit.
7872
7873 2008-08-02 Jason Rumney <jasonr@gnu.org>
7874
7875 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7876
7877 2008-08-02 Eli Zaretskii <eliz@gnu.org>
7878
7879 * alloc.c (NSTATICS): Bump to 0x640.
7880
7881 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7882
7883 * lisp.h: Add prototype for directory_files_internal.
7884
7885 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7886 New functions.
7887 (syms_of_process): Defsubr them. Add initializations for various
7888 Q* symbols used in procfs_system_process_attributes.
7889 (procfs_list_system_processes, procfs_system_process_attributes)
7890 [HAVE_PROCFS]: New functions.
7891 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7892 (procfs_get_total_memory): New functions.
7893
7894 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7895
7896 * xfaces.c (Fx_load_color_file): Fix previous change;
7897 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7898
7899 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
7900
7901 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7902
7903 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7904
7905 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7906
7907 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
7908
7909 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7910
7911 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7912 define NSApplicationDelegateReplySuccess.
7913 (EmacsView -converstationIdentifier): Use long instead of
7914 NSInteger for GNUstep, since it doesn't have NSInteger.
7915
7916 * xmenu.c: Revert last change.
7917
7918 * keyboard.h: Fix last change.
7919
7920 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7921
7922 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7923 on Windows.
7924
7925 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7926
7927 Warning clearing and clean-up in NS port.
7928 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7929 Add prototypes.
7930 * nsgui.h (FACE_DEFAULT): Remove, unused.
7931 (XGCValues): Change colors to unsigned long.
7932 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7933 nsterm.m.
7934 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7935 (ns_list_fonts): Remove, unused.
7936 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7937 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7938 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7939 (nsfont_draw): Compare face colors to 0, not nil.
7940 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7941 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7942 (-addSubmenuWithTitle:): Use NSMenuItem class.
7943 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7944 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7945 (ns_clip_to_row): Make gc arg a BOOL.
7946 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7947 ns_clip_to_row() call.
7948 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7949 used). Cast FRAME_FONT assignments.
7950 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7951 (ns_string_to_lispmod): Change arg to const char.
7952 (ns_term_init): Use NSMenuItem class.
7953 (EmacsApp -openFile:): Move to different section of file.
7954 (EmacsApp -application:openFiles:): Don't return a value, call
7955 -replyToOpenOrPrint:.
7956 (EmacsView -keyDown:): Fix up cast.
7957 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7958 (EmacsView -menuDown:): Cast tag in call to
7959 find_and_call_menu_selection().
7960 (ns_list_fonts): Remove, unused.
7961 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7962 (ns_fontname_to_xlfd): Make static.
7963 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7964 Remove prototypes (now in keyboard.h).
7965 (next_menubar_widget_id): Remove, unused.
7966 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7967 Remove prototypes (now in keyboard.h).
7968 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7969
7970 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7971
7972 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7973 (floatfns.o): Depend on syssignal.h.
7974 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7975
7976 * systty.h: Fix previous change that removed BSD_TERMIOS.
7977 Add comments to #ifdefs.
7978
7979 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7980
7981 * w32fns.c (w32-load-color-file): Remove.
7982 (x-open-connection): Use renamed Fx_load_color_file.
7983 * xfaces.c (x-load-color-file): Add.
7984 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7985 Emacs.clr.
7986 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7987
7988 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
7989
7990 * dbusbind.c (Fdbus_call_method_asynchronously)
7991 (Fdbus_method_error_internal): New defuns.
7992 (xd_read_message): Handle also reply messages.
7993 (Vdbus_registered_functions_table): Extend docstring.
7994
7995 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
7996
7997 * keyboard.c (gobble_input): Fix previous change.
7998
7999 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8000
8001 * bitmaps/README:
8002 * xfns.c:
8003 * termcap.c:
8004 * term.c:
8005 * syswait.h:
8006 * systty.h:
8007 * systime.h:
8008 * syssignal.h:
8009 * sysdep.c:
8010 * process.h:
8011 * process.c:
8012 * print.c:
8013 * ndir.h:
8014 * lread.c:
8015 * keyboard.c:
8016 * getpagesize.h:
8017 * floatfns.c:
8018 * fileio.c:
8019 * emacs.c:
8020 * doc.c:
8021 * dispnew.c:
8022 * dired.c:
8023 * data.c:
8024 * callproc.c:
8025 * buffer.c:
8026 * README:
8027 * Makefile.in:
8028 * s/template.h:
8029 * s/msdos.h:
8030 * m/vax.h: Remove VMS support.
8031 * s/vms.h:
8032 * vlimit.h:
8033 * uaf.h:
8034 * temacs.opt:
8035 * param.h:
8036 * ioctl.h: Remove file.
8037
8038 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8039
8040 * s/ms-w32.h (MULTI_KBOARD): Remove.
8041 * xterm.c:
8042 * xselect.c:
8043 * xfns.c:
8044 * window.c:
8045 * w32term.c:
8046 * w32fns.c:
8047 * terminal.c:
8048 * termhooks.h:
8049 * term.c:
8050 * sysdep.c:
8051 * keyboard.h:
8052 * keyboard.c:
8053 * frame.h:
8054 * frame.c:
8055 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8056 * config.in: Regenerate.
8057
8058 2008-07-30 Jason Rumney <jasonr@gnu.org>
8059
8060 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8061
8062 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8063 (w32font_open_internal): Get unicode version of textmetrics.
8064 Don't enable or disable glyph indices here.
8065 (w32font_open): Disable use of glyph indices.
8066
8067 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8068
8069 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
8070
8071 * minibuf.c (Vread_buffer_function): Doc fix.
8072
8073 2008-07-30 John Paul Wallington <jpw@pobox.com>
8074
8075 * minibuf.c (read_buffer_completion_ignore_case): New var.
8076 (Fread_buffer): Use it.
8077
8078 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8079
8080 * systty.h (sensemode): Remove empty #if. Remove reference to
8081 BSD_TERMIOS, unused.
8082
8083 * sysdep.c: Remove reference to DGUX.
8084 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8085
8086 * config.in: Regenerate.
8087
8088 2008-07-30 Jason Rumney <jasonr@gnu.org>
8089
8090 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8091
8092 2008-07-29 Jason Rumney <jasonr@gnu.org>
8093
8094 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8095 is populated.
8096 (uniscribe_encode_char): Always use uniscribe.
8097 Avoid using context if cache is populated.
8098
8099 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8100
8101 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8102 open menu.
8103
8104 * gtkutil.c (menu_nav_ended): Remove.
8105 (create_menus): Remove signal connect for menu_nav_ended.
8106
8107 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
8108
8109 * xdisp.c (redisplay_window): Check return value of
8110 compute_window_start_on_continuation_line before forcing a window
8111 start.
8112
8113 2008-07-28 Jason Rumney <jasonr@gnu.org>
8114
8115 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8116
8117 * w32term.c (w32_enable_unicode_output, cleartype_active):
8118 Remove obsolete display options.
8119 (x_draw_glyph_string_background): Don't use old cleartype_active
8120 workaround.
8121 (w32_initialize): Remove cleartype_active initialization.
8122 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8123
8124 2008-07-28 Andreas Schwab <schwab@suse.de>
8125
8126 * lisp.h (init_weak_hash_tables, syms_of_font)
8127 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8128 (remove_hash_entry): Don't declare.
8129 * eval.c (maybe_call_debugger): Make static and move before use.
8130 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8131 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8132 * xterm.h (x_set_frame_alpha): Declare.
8133
8134 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8135
8136 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8137 (create_menus): Connect selection-done to menu_nav_ended.
8138
8139 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8140
8141 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8142 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8143 parameter with read of 'alpha' one.
8144 (Qns_frame_parameter): Remove.
8145 * nsselect.m (selection-coding-system)
8146 (next-selection-coding-system, Vselection_coding_system)
8147 (Vnext_selection_coding_system): Drop.
8148
8149 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8150
8151 * nsfns.m (do-applescript, do_applescript): Rename to
8152 ns-do-applescript, ns_do_applescript, and move within file.
8153
8154 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8155
8156 Remove support for Mac Carbon.
8157 * mactoolbox.c:
8158 * macterm.h:
8159 * macterm.c:
8160 * macselect.c:
8161 * macmenu.c:
8162 * macgui.h:
8163 * macfns.c:
8164 * mac.c: Remove file.
8165 * s/darwin.h:
8166 * m/intel386.h:
8167 * xfaces.c:
8168 * xdisp.c:
8169 * window.c:
8170 * tparam.c:
8171 * termhooks.h:
8172 * termcap.c:
8173 * term.c:
8174 * syssignal.h:
8175 * sysselect.h:
8176 * sysdep.c:
8177 * process.c:
8178 * lread.c:
8179 * lisp.h:
8180 * keyboard.c:
8181 * image.c:
8182 * fringe.c:
8183 * frame.h:
8184 * frame.c:
8185 * fontset.c:
8186 * font.h:
8187 * font.c:
8188 * fns.c:
8189 * fileio.c:
8190 * emacs.c:
8191 * dispnew.c:
8192 * dispextern.h:
8193 * config.in:
8194 * atimer.c:
8195 * Makefile.in: Remove code for Carbon.
8196
8197 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8198
8199 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8200
8201 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8202
8203 * macterm.h (kCGBitmapByteOrder32Host): New define for
8204 non-universal SDKs.
8205
8206 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8207 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8208
8209 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8210 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8211
8212 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8213
8214 * w32inevt.c: Include dispextern.h.
8215
8216 2008-07-26 Andreas Schwab <schwab@suse.de>
8217
8218 * print.c (print_object): Fix off-by-one in last change.
8219
8220 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
8221
8222 * term.c (syms_of_term): Don't initialize default_orig_pair,
8223 default_set_foreground and default_set_background on Windows.
8224
8225 2008-07-25 Jason Rumney <jasonr@gnu.org>
8226
8227 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8228 ScriptItemize. Clean up return value checking. Remove unused
8229 variables.
8230 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8231 shaping engine.
8232
8233 * w32font.c (w32font_has_char): Handle the case where we can't
8234 determine the script for a character.
8235
8236 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8237
8238 * term.c (syms_of_term): Initialize default_orig_pair,
8239 default_set_foreground, and default_set_background.
8240
8241 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8242 clash (bug#86).
8243 (getloadavg): Callers changed.
8244
8245 * image.c (svg_load_image): Fix last change.
8246 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8247 image size is valid. Use g_object_unref instead of deprecated
8248 rsvg_handle_free to free rsvg handle.
8249 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8250
8251 2008-07-25 Jason Rumney <jasonr@gnu.org>
8252
8253 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8254 surrogates before looking up glyph index.
8255 (w32font_text_extents): Encode as surrogates if falling back to
8256 functions that need UTF-16 wide chars.
8257
8258 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8259 BMP as surrogates before looking up glyph index.
8260
8261 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8262
8263 * image.c (svg_load_image): Check for failure in return value of
8264 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8265
8266 2008-07-25 Jason Rumney <jasonr@gnu.org>
8267
8268 * w32font.c (Fx_select_font): Reverse sense of second arg.
8269
8270 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8271
8272 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8273 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8274
8275 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8276 (PURESIZE): Use it.
8277
8278 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8279
8280 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8281 * m/alpha.h (TEXT_END):
8282 * m/ibmrs6000.h (TEXT_END):
8283 * m/macppc.h (TEXT_END):
8284 * s/darwin.h (TEXT_END):
8285 * s/msdos.h (TEXT_END): Remove, unused.
8286 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8287 * s/cygwin.h: Remove comment.
8288
8289 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8290 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8291 * m/intel386.h (DOT_GLOBAL_START):
8292 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8293 (USG): Remove, file not used on USG platforms.
8294
8295 * Makefile.in (HAVE_X11): Remove empty #else.
8296
8297 2008-07-24 Andreas Schwab <schwab@suse.de>
8298
8299 * fileio.c (Finsert_file_contents): Properly adjust undo list
8300 after format conversion.
8301
8302 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8303
8304 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8305 (menu_nav_ended): Remove.
8306 (create_menus): Remove signal connect for menu_nav_ended.
8307 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8308 create_menus.
8309 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8310
8311 2008-07-23 Jason Rumney <jasonr@gnu.org>
8312
8313 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8314 with opened font.
8315 (w32font_open): Set font type to gdi.
8316
8317 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8318
8319 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8320
8321 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8322 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8323 defines it.
8324 * unexec.c (ADDR_CORRECT): Define unconditionally.
8325
8326 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8327
8328 * unexec.c: Remove code depending on !COFF and USG, the file is
8329 not used for such systems.
8330
8331 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8332 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8333 (LD_SWITCH_SYSTEM_1): Remove, update users.
8334
8335 * s/darwin.h (DATA_END):
8336 * m/intel386.h (DATA_END):
8337 * m/ibmrs6000.h (DATA_END):
8338 * m/alpha.h (DATA_END): Remove, unused.
8339
8340 * config.in: Regenerate.
8341 * s/ms-w32.h (subprocesses): Define unconditionally.
8342 * s/template.h (subprocesses): Update comment.
8343 * s/vms.h (subprocesses):
8344 * s/usg5-4.h (subprocesses):
8345 * s/hpux10-20.h (subprocesses):
8346 * s/gnu-linux.h (subprocesses):
8347 * s/cygwin.h (subprocesses):
8348 * s/bsd-common.h (subprocesses):
8349 * s/aix4-2.h (subprocesses):
8350 * s/darwin.h (subprocesses): Do not define, defined by default now.
8351
8352 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8353 Remove all references.
8354 (temacs): Add GNUstep specific ld flags.
8355
8356 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8357 similarly to what X does.
8358
8359 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8360
8361 * nsfns.m (x-list-fonts): Remove.
8362 (syms_of_nsfns): Drop the x-list-fonts declaration.
8363 * nsterm.m: Get rid of remaining "//" comments.
8364
8365 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
8366
8367 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8368
8369 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8370 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8371 (Fns_own_selection_internal, Fx_disown_selection_internal)
8372 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8373
8374 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8375 ... */' style of docstrings. Doc fixes.
8376
8377 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8378
8379 * terminfo.c (UP, BC, PC): Undo previous change.
8380
8381 * nsfns.m: Rename ns prefixed functions/variables to the
8382 corresponding x versions. Update references.
8383
8384 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8385
8386 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8387
8388 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8389
8390 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8391 Remove forwarding functions.
8392 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8393 non-static.
8394 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8395 non-static.
8396 (ns_frame_parm_handlers): Use the new names.
8397 (syms_of_nsfns): Move to the end of file.
8398
8399 * nsterm.m (syms_of_nsterm): Move to the end of file.
8400
8401 * dispnew.c (init_display): Remove code for X10.
8402
8403 2008-07-22 Jason Rumney <jasonr@gnu.org>
8404
8405 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8406 bare drive.
8407
8408 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8409
8410 * nsterm.m (syms_of_nsterm): Remove debugging println.
8411
8412 2008-07-22 David Reitter <david.reitter@gmail.com>
8413
8414 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8415 Carbon implementation of the same functionality: execute arbitrary
8416 AppleScript code.
8417
8418 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8419
8420 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8421 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8422 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8423 (Fx_display_mm_height, Fx_display_mm_width)
8424 (Fx_display_backing_store, Fx_display_visual_class)
8425 (Fx_display_save_under, Fx_open_connection)
8426 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8427 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8428 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8429 (Fx_display_pixel_width, Fx_display_pixel_height)
8430 (Fx_display_usable_bounds, Fx_display_planes)
8431 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8432 ... */' style of docstrings.
8433
8434 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8435
8436 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8437 on this platform.
8438 (mips):
8439 * m/iris4d.h (mips): Do not define.
8440 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8441
8442 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8443
8444 * image.c:
8445 * nsfns.m:
8446 * nsselect.m:
8447 * nsterm.h:
8448 * nsterm.m: Rename ns prefixed functions/variables to the
8449 corresponding x versions. Update references.
8450
8451 * m/ibms390x.h (NO_REMAP): Do not undefine.
8452
8453 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8454
8455 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
8456
8457 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8458 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8459 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8460 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8461 (Fns_display_mm_height, Fns_display_mm_width)
8462 (Fns_display_backing_store, Fns_display_visual_class)
8463 (Fns_display_save_under, Fns_open_connection)
8464 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8465 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8466 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8467 (Fns_display_pixel_width, Fns_display_pixel_height)
8468 (Fns_display_usable_bounds, Fx_display_planes)
8469 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8470
8471 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8472
8473 * print.c (print_object): Check print_depth before searching for
8474 circularities.
8475
8476 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
8477
8478 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8479 only sprintf.
8480
8481 2008-07-21 Kenichi Handa <handa@m17n.org>
8482
8483 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8484
8485 2008-07-20 Andreas Schwab <schwab@suse.de>
8486
8487 * syntax.c (find_start_pos, find_start_value)
8488 (find_start_value_byte, find_start_begv, find_defun_start)
8489 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8490
8491 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8492
8493 * s/sol2-3.h: Insert contents of s/sol2.h.
8494 (LD_SWITCH_SYSTEM): Remove redundant definition.
8495 * s/sol2.h: Remove, unused.
8496
8497 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8498
8499 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8500
8501 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8502
8503 * Makefile.in (ns_appdir): Fix typo in find command.
8504
8505 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8506
8507 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8508
8509 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8510 added not supported anymore.
8511
8512 * s/usg5-4-2.h (LIBS_SYSTEM):
8513 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8514
8515 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8516 * s/lynxos.h (GETPGRP_NO_ARG):
8517 * s/hpux10-20.h (NO_SIOCTL_H):
8518 * s/gnu.h (GETPGRP_NO_ARG):
8519 * s/gnu-linux.h (NO_SIOCTL_H):
8520 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8521 * s/cygwin.h (GETPGRP_NO_ARG):
8522 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8523 (C_DEBUG_SWITCH): Remove duplicate definition.
8524
8525 * m/ibms390.h: Remove boilerplate comments.
8526
8527 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8528
8529 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8530 (wait_reading_process_output): Remove code for SunOS, platform not
8531 supported anymore. Use SOLARIS2 instead of sun.
8532
8533 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8534
8535 * font.c (font_open_by_name): Under NS, default lface height to zero.
8536 (font_open_for_lface): Under NS, set size based on frame fontsize.
8537 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8538 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8539
8540 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8541
8542 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8543 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8544 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8545 YES/NO.
8546 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8547 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8548 * Makefile.in (clean): Clear out build destination dir.
8549
8550 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8551
8552 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8553 xterm, xselect.
8554 * lisp.h: Remove declaration of hash_remove.
8555 * nsgui.h: Remove redefinitions of hash_remove.
8556 * fns.c (hash_remove): Rename to hash_remove_from_table.
8557
8558 2008-07-19 Seiji Zenitani <zenitani@mac.com>
8559
8560 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8561 strdup() the family UTF8String before modifying it.
8562
8563 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8564
8565 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8566 NS_FACE_BACKGROUND with 0 instead of nil.
8567 * nsfont.m (nsfont_draw): Same.
8568
8569 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
8570
8571 * nsfns.m (ns_set_background_color): Fix crash.
8572
8573 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
8574
8575 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8576
8577 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8578
8579 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8580
8581 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8582
8583 * gtkutil.c: Include <config.h> instead of "config.h".
8584
8585 * lisp.h (Foverlay_buffer): Add EXFUN.
8586
8587 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8588 child process to complete child_setup. Undo 2005-09-21 change.
8589
8590 * s/darwin.h: Mention setsid after vfork.
8591
8592 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8593
8594 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8595 Depend on macgui.h.
8596
8597 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8598 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8599
8600 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8601 and f19.
8602 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8603
8604 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8605 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8606 Remove enumerators.
8607
8608 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8609 Check if FACE_FROM_ID returns NULL.
8610
8611 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8612
8613 * w32inevt.c (change_frame_size): Remove extern declaration.
8614 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8615 change_frame_size.
8616
8617 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8618
8619 * getloadavg.c: Revert last change (2008-07-15).
8620
8621 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8622
8623 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
8624 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
8625 from configure.
8626
8627 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8628
8629 * s/sol2.h:
8630 * s/sol2-4.h: Reorganize conditionals.
8631
8632 * ecrt0.c: Remove code depending on m68000, not used anymore.
8633
8634 * fns.c (hash_remove): Make static.
8635 * lisp.h (hash_remove): Don't prototype.
8636
8637 * m/ibmrs6000.h:
8638 * m/ibms390x.h:
8639 * m/macppc.h: Remove boilerplate comments.
8640
8641 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8642 Solaris, which does not need them.
8643
8644 * m/vax.h: Remove comments about unsupported systems.
8645
8646 * s/darwin.h: Reorganize ifdefs.
8647
8648 2008-07-17 Andreas Schwab <schwab@suse.de>
8649
8650 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8651
8652 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8653
8654 Use SDATA. Follow coding convention of placing operators at
8655 beginning of next line rather than end of previous line, and placing
8656 spaces around infix operators.
8657
8658 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8659 in case it was defined already.
8660 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8661 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8662 ns_default.
8663 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8664 Lisp_Objects.
8665 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8666 (ns_defined_color, ns_color_to_lisp): Declare.
8667 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8668 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8669 it's accepted even with USE_LISP_UNION_TYPE.
8670 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8671 (update_frame_tool_bar): Remove apparently obsolete tests for
8672 non-integerness of f->tool_bar_lines.
8673 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8674 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8675 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8676 (nsfont_open): Don't confuse NULL for Qnil.
8677 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8678 * menu.h (find_and_call_menu_selection):
8679 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8680 (find_and_return_menu_selection): Always return something.
8681 * frame.h: Include dispextern.h for Display_Info.
8682 (display_x_get_resource): Declare.
8683
8684 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8685
8686 * syntax.c: Remove stdio.h include accidentally introduced in
8687 Emacs.app commit.
8688 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8689 NS_IMPL_COCOA.
8690 * keyboard.c (handle_async_input, input_available_signal): Remove
8691 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8692
8693 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8694
8695 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8696 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8697 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8698 Use SDATA.
8699
8700 * keymap.c: Remove all NS-specific code.
8701 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8702 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8703 where_is_preferred_modifier, return a different value depending on how
8704 preferred is the binding.
8705 (where_is_internal): Adjust accordingly.
8706 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8707 Adjust to new preferred_sequence_p.
8708 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8709 * keyboard.c (parse_solitary_modifier): Not static any more.
8710 * keyboard.h (parse_solitary_modifier): Declare.
8711
8712 2008-07-16 Andreas Schwab <schwab@suse.de>
8713
8714 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8715 of easymenu.
8716
8717 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
8718
8719 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8720 that we don't move off the line.
8721
8722 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8723
8724 * keyboard.c (Qsuper): Remove.
8725 (parse_menu_item): Don't call where_is_internal specially for NS.
8726
8727 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8728
8729 * s/gnu-linux.h: Remove boilerplate comments.
8730
8731 * m/alpha.h (__ELF__): Consolidate conditions.
8732
8733 * m/m68k.h (linux): Use GNU_LINUX instead.
8734 Remove boilerplate comments.
8735
8736 * m/intel386.h: Undo refactoring from previous change.
8737 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8738 too, remove dead code.
8739 (linux): Use GNU_LINUX instead.
8740
8741 2008-07-16 Jason Rumney <jasonr@gnu.org>
8742
8743 * w32gui.h: Repeat 26 June changes lost by last change.
8744
8745 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8746
8747 * systty.h: Remove code for Aix on 386, unsupported platform.
8748
8749 * s/ms-w32.h: Remove boilerplate comments.
8750 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8751
8752 * s/gnu-linux.h (TERM): Remove support.
8753 (HAVE_SYSVIPC): Remove, unused.
8754 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8755 for this system.
8756
8757 * process.c: Remove support for IRIS, unused.
8758 Remove support for TERM, not relevant anymore.
8759
8760 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8761 used with the definition.
8762
8763 * s/aix4-2.h (static): Do not undef.
8764
8765 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8766 only used on Aix.
8767 (HAVE_SYSVIPC): Remove, unused.
8768
8769 * m/hp800.h (CANNOT_DUMP): Do not undef.
8770
8771 * m/alpha.h: Fix comment.
8772
8773 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8774 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8775 used by this configuration.
8776 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8777 * unexec.c: Remove code depending on HPUX and
8778 USG_SHARED_LIBRARIES, not used with this file. Remove code
8779 depending on IRIS, unused. Remove if 0-ed code.
8780
8781 * s/template.h: Remove comments about static.
8782
8783 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8784 Remove if 0-ed code.
8785 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8786 were the same as the default.
8787 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8788 Remove boilerplate comments.
8789 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8790 (HAVE_SYSVIPC): Remove, unused.
8791 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8792
8793 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8794 Remove boilerplate comments.
8795 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8796 Remove boilerplate comments.
8797 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8798 Remove boilerplate comments.
8799 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8800
8801 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8802 USG systems which do not use DATA_SEG_BITS.
8803 Refactor code. Remove boilerplate comments.
8804
8805 * m/ibms390.h:
8806 * m/m68k.h:
8807 * s/bsd-common.h:
8808 * s/cygwin.h:
8809 * s/darwin.h:
8810 * s/freebsd.h:
8811 * s/gnu.h:
8812 * s/msdos.h: Remove boilerplate comments.
8813
8814 * m/iris4d.h: Remove boilerplate comments and code for systems that
8815 do not use this file.
8816 (IRIS_4D): Remove, unused.
8817
8818 * m/mips.h: Remove boilerplate comments and code for systems that
8819 do not use this file.
8820 (SIGN_EXTEND_CHAR):
8821 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8822 * unexmips.c: Remove file, unused.
8823
8824 * editfns.c (Fuser_full_name): Replace the only use of
8825 USER_FULL_NAME with its value.
8826 * config.in: Regenerate.
8827
8828 2008-07-16 David Reitter <david.reitter@gmail.com>
8829
8830 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8831 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8832
8833 2008-07-16 Glenn Morris <rgm@gnu.org>
8834
8835 * emacs.c (system-type): Doc fix.
8836
8837 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8838
8839 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8840 If the cache doesn't work, let's fix it, rather than work around it.
8841
8842 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8843
8844 * Makefile.in: Correct additions for nsfont.o in last commit.
8845 * nsfont.m: New file (forgot last commit).
8846
8847 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8848
8849 * callproc.c (set_initial_environment): Initialize
8850 Vprocess_environment under CANNOT_DUMP (fixes crash when
8851 batch-compiling for bootstrap).
8852
8853 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8854 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8855
8856 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8857 fix crash due to different init order.
8858
8859 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8860
8861 Changes and additions for NeXTstep windowing system (Cocoa and
8862 GNUstep) support.
8863
8864 * Makefile.in:
8865 * config.in: Support defines and build commands for NS port.
8866 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8867 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8868 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8869 windowing.
8870 (struct face): Add synth_ital field.
8871 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8872 (init_display): Initialize Vinitial_window_system to "ns" when so
8873 compiled.
8874 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8875 (display_arg): Use under NS.
8876 (main): Under NS, allocate autorelease pool and handle command line
8877 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8878 (standard_args): Add NS-specific args.
8879 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8880 * font.c (DEFAULT_ENCODING): New variable.
8881 (font_find_for_lface): Use it.
8882 (syms_of_font): Load syms_of_nsfont under NS.
8883 * font.h: Declare nsfont_driver when compiled under NS.
8884 * fontset.c: When compiling under NS, include nsterm.h.
8885 (fontset_from_font): Autoconstruct fontset under NS.
8886 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8887 symbol, document and use it.
8888 (do_switch_frame): When for_deletion under Cocoa, add
8889 Fraise_frame(Qnil).
8890 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8891 (x_get_arg): Allow "yes" and "no" as boolean values.
8892 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8893 Qright under Cocoa.
8894 (focus-follows-mouse): Default to 0 under NS.
8895 * frame.h (enum output_method): Add output_ns.
8896 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8897 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8898 (FRAME_WINDOW_P): NS-specific definition.
8899 * fringe.c (max_used_fringe_bitmap): Make public.
8900 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8901 (getloadavg): Use NeXT code under descendant OS's.
8902 * image.c (includes and header section, x_create_bitmap_from_data)
8903 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8904 (image_background_transparent, x_clear_image_1)
8905 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8906 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8907 (x_to_xcolors, x_from_xcolors, x_disable_image)
8908 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8909 other GUIs, including XPM support using code originally written for
8910 Carbon GUI.
8911 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8912 using NS API.
8913 (image_ascent): Use font metrics macros instead of direct struct field
8914 access.
8915 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8916 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8917 Also, handle NS as GTK for menu bar purposes.
8918 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8919 toolkit where they differ.
8920 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8921 use cachelist, still needed under NS.
8922 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8923 (struct widget_value): Define it here for menu.c.
8924 * keymap.c (includes): Include modifier internals.
8925 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8926 NS.
8927 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8928 support for preferring sequences using certain modifiers, specified by
8929 the FIRSTONLY argument.
8930 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8931 under NS GNUstep implementation.
8932 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8933 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8934 * menu.c: Include nsterm.h under NS.
8935 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8936 (free_menubar_widget_tree_value, update_submenu_strings)
8937 (find_and_call_menu_selection): Treat NS as X and NT.
8938 (find_and_return_menu_selection): New function, used for popup menus.
8939 * nsgui.h:
8940 * nsterm.h:
8941 * nsfns.m:
8942 * nsimage.m:
8943 * nsmenu.m:
8944 * nsselect.m:
8945 * nsterm.m: New files.
8946 * process.c (wait_reading_process_output): Under NS, call ns_select()
8947 instead of plain select().
8948 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8949 beginning of buffer.
8950 * sysselect.h (init_process): Rename when compiling under Cocoa to
8951 avoid name conflict.
8952 * termhooks.h (display_info): Add ns_display_info to union.
8953 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8954 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8955 COCOA environment.
8956 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8957 unexec() signature. (Note, this will dump, but the resulting file
8958 crashes; unexosx is used instead; keeping around for reference and
8959 possible aid in getting dump working under GNUstep.)
8960 * w32gui.h (button_type, widget_value): Remove definitions (now in
8961 keyboard.h).
8962 * window.c: Include nsterm.h when compiling under NS.
8963 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8964 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8965 other GUI windowing systems.
8966 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8967 GTK.
8968 (x_consider_frame_title): Under NS, set icon type and frame
8969 modified-state indicator; use ns_set_name_as_filename() when using
8970 formatted title.
8971 (update_window_cursor): Make public when compiling under NS.
8972 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8973 (hourglass_atimer, Vhourglass_delay
8974 * xfaces.c (header section, init_frame_faces, clear_font_table)
8975 (defined_color, unload_color, x_face_list_fonts)
8976 (prepare_face_for_display): Add NS support parallel to other GUIs.
8977 Emulate GCs like other non-X GUIs.
8978 (split_font_name): Don't lowercase font name under NS.
8979 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8980 under NS.
8981 * s/darwin.h: Add support for compilation under NS.
8982
8983 2008-07-15 Jason Rumney <jasonr@gnu.org>
8984
8985 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8986 (w32_show_hourglass): Rename from show_hourglass.
8987 (w32_hide_hourglass): Rename from hide_hourglass.
8988 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8989 (Vhourglass_delay): Declare extern.
8990 (hourglass_started): Remove.
8991
8992 * xdisp.c (Vhourglass_delay): Remove static.
8993 (hourglass_started, start_hourglass, cancel_hourglass):
8994 Don't include these versions on WINDOWSNT.
8995
8996 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8997
8998 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8999 variables (formerly in xfns.c).
9000 (show_hourglass, hide_hourglass): New prototypes (same).
9001 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9002 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9003 in xfns.c).
9004 (syms_of_xdisp): Declare/initialize display-hourglass,
9005 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9006 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9007 formerly in xfns.c.
9008 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9009 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9010 (start_hourglass, cancel_hourglass): Remove.
9011 (show_hourglass, hide_hourglass): Remove prototypes and static
9012 modifiers.
9013 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9014 hourglass_atimer, hourglass_shown_p declaration/initialization.
9015 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9016 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9017 (start_hourglass, cancel_hourglass): Remove.
9018 (show_hourglass, hide_hourglass): Remove prototypes and static
9019 modifiers.
9020 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9021 hourglass_atimer, hourglass_shown_p declaration/initialization.
9022 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9023 (DEFAULT_HOURGLASS_DELAY): Remove.
9024 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9025 hourglass_shown_p declaration/initialization.
9026
9027 2008-07-14 Jason Rumney <jasonr@gnu.org>
9028
9029 * w32fns.c (w32_get_arg): Remove wrapper function.
9030 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9031 directly.
9032 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9033
9034 2008-07-14 Kenichi Handa <handa@m17n.org>
9035
9036 * xfont.c (xfont_open): Add workaround for X's bug.
9037
9038 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9039
9040 * fontset.c: Include <stdio.h> unconditionally.
9041
9042 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
9043
9044 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9045 for filtering.
9046
9047 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9048
9049 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9050
9051 * m/macppc.h:
9052 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9053
9054 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9055 (SPECIAL_EMACS_INT):
9056 * m/ia64.h (SPECIAL_EMACS_INT):
9057 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9058 * s/gnu.h (NLIST_STRUCT):
9059 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9060 * s/gnu-linux.h (LINUX):
9061 * s/msdos.h (HAVE_FACES):
9062 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9063
9064 * systty.h:
9065 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9066 anymore.
9067
9068 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9069
9070 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9071 always defined as int.
9072
9073 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9074 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9075 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9076 * s/freebsd.h (HAVE_WAIT_HEADER):
9077 * s/bsd-common.h (HAVE_UNION_WAIT):
9078 * s/aix4-2.h (HAVE_WAIT_HEADER):
9079 * m/mips.h (HAVE_UNION_WAIT):
9080 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9081 (COFF, static): Do not define, they are undefined later in the file.
9082
9083 * process.c (update_status): Don't use a union.
9084 (status_convert):
9085 (sigchld_handler): Use int instead of WAITTYPE.
9086
9087 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
9088
9089 * indent.c (Fvertical_motion): Restore hscroll before moving to
9090 goal column.
9091
9092 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9093
9094 * lisp.h: Remove left over code.
9095
9096 2008-07-11 Andreas Schwab <schwab@suse.de>
9097
9098 * lisp.h: Fix logic in last change.
9099
9100 * menu.h: New file.
9101 * menu.c: Include it.
9102 * xmenu.c: Likewise.
9103 * Makefile.in: Update dependencies.
9104
9105 2008-07-11 Kenichi Handa <handa@m17n.org>
9106
9107 * fontset.c (fontset_from_font): Cancel the previous change.
9108
9109 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9110
9111 * lisp.h:
9112 * w32heap.c:
9113 * emacs.c:
9114 * alloc.c: Replace all references of NO_UNION_TYPE with
9115 USE_LISP_UNION_TYPE.
9116
9117 * m/xtensa.h (NO_UNION_TYPE):
9118 * m/vax.h (NO_UNION_TYPE):
9119 * m/template.h (NO_UNION_TYPE):
9120 * m/sparc.h (NO_UNION_TYPE):
9121 * m/mips.h (NO_UNION_TYPE):
9122 * m/macppc.h (NO_UNION_TYPE):
9123 * m/m68k.h (NO_UNION_TYPE):
9124 * m/iris4d.h (NO_UNION_TYPE):
9125 * m/intel386.h (NO_UNION_TYPE):
9126 * m/ibms390x.h (NO_UNION_TYPE):
9127 * m/ibms390.h (NO_UNION_TYPE):
9128 * m/ibmrs6000.h (NO_UNION_TYPE):
9129 * m/ia64.h (NO_UNION_TYPE):
9130 * m/hp800.h (NO_UNION_TYPE):
9131 * m/arm.h (NO_UNION_TYPE):
9132 * m/amdx86-64.h (NO_UNION_TYPE):
9133 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9134 defining it the same.
9135
9136 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
9137
9138 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9139
9140 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9141
9142 * fileio.c:
9143 * sysdep.c
9144 * systty.h:
9145 * m/ibmrs6000.h:
9146 * m/iris4d.h:
9147 * s/aix4-2.h:
9148 * s/freebsd.h:
9149 * s/gnu-linux.h:
9150 * s/hpux10-20.h:
9151 * s/hpux11.h:
9152 * s/netbsd.h:
9153 * s/sol2-3.h:
9154 * s/sol2-4.h:
9155 * s/sol2.h:
9156 * s/usg5-4.h:
9157 * s/vms.h: Remove references to unused variables.
9158
9159 2008-07-10 Andreas Schwab <schwab@suse.de>
9160
9161 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9162 pattern before matching the generic family.
9163
9164 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9165
9166 * unexec.c:
9167 * s/vms.h:
9168 * s/usg5-4-2.h:
9169 * s/sol2-5.h:
9170 * s/freebsd.h:
9171 * s/darwin.h: Remove dead code.
9172
9173 * m/template.h:
9174 * m/sparc.h:
9175 * m/mips.h:
9176 * m/m68k.h:
9177 * m/iris4d.h:
9178 * m/intel386.h:
9179 * m/ibms390x.h:
9180 * m/ibms390.h:
9181 * m/ia64.h:
9182 * m/hp800.h:
9183 * m/arm.h:
9184 * m/amdx86-64.h: Remove dead code and references to unused
9185 and compiler defined symbols.
9186
9187 * unexmips.c:
9188 * unexelf.c: Remove references to desupported systems.
9189
9190 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9191
9192 * m/powermac.h: Remove boilerplate comments.
9193 (NO_REMAP): Remove unused definition.
9194
9195 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9196 define them.
9197
9198 2008-07-10 Kenichi Handa <handa@m17n.org>
9199
9200 * xfont.c (xfont_open): Log the reason of failure.
9201
9202 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9203
9204 * fontset.c (fontset_get_font_group):
9205 * font.c (font_check_otf): Specify argument types.
9206
9207 2008-07-09 Kenichi Handa <handa@m17n.org>
9208
9209 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9210 non-ASCII char is found.
9211
9212 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9213 (reorder_font_vector): Change the arg preferred_family to font.
9214 Prefer the spec matching with font.
9215 (fontset_get_font_group): New function.
9216 (fontset_find_font): Change the format of an element of a realized
9217 fontset. Use fontset_get_font_group.
9218 (fontset_font): Try the current fontset, the default fontset, the
9219 fallbacks of the current fontset, and the fallbacks of the default
9220 fontset in this order.
9221 (face_for_char): Delete the shortcut to use the current font.
9222 (fontset_from_font): Don't set fonts for Latin in the fontset.
9223
9224 * font.h (font_make_object, font_match_p): Adjust prototypes.
9225
9226 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9227
9228 * font.c (font_make_object): New arg entity and pixelsize.
9229 (font_check_otf_features, font_check_otf): New functions.
9230 (font_match_p): Check :lang, :script, and :otf properties.
9231
9232 * xfont.c (xfont_open): Adjust it for the change of
9233 font_make_object.
9234 (xfont_text_extents): Fix initial setting of metrics.
9235
9236 * ftfont.c (struct ftfont_info): New member index, delete member
9237 fc_charset_idx. Make the member order compatible with struct
9238 xftfont_info.
9239 (fc_charset_table): Change charset names to registry names.
9240 (ftfont_pattern_entity): Delete the args registry and
9241 fc_charset_idx. Change the value of :font-entity property
9242 to (FONTNAME . INDEX). Always set :registry property to
9243 `iso10646-1'.
9244 (struct ftfont_cache_data): New struct.
9245 (ftfont_lookup_cache): New arg for_face.
9246 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9247 (ftfont_driver): Set the member otf_capability.
9248 (ftfont_get_charset): Adjust it for the change of
9249 fc_charset_table.
9250 (OTF_TAG_SYM): New macro.
9251 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9252 for the change of fc_charset_table.
9253 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9254 ftfont_pattern_entity. Add FC_INDEX to objset.
9255 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9256 and ftfont_pattern_entity.
9257 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9258 font_make_object, struct ftfont_info.
9259 (ftfont_has_char): Use ftfont_get_fc_charset.
9260 (ftfont_otf_features, ftfont_otf_capability): New functions.
9261 (ftfont_shape): Use ftfont_get_otf.
9262 (ftfont_text_extents): Fix initial setting of metrics.
9263
9264 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9265 member order compatible with struct ftfont_info.
9266 (xftfont_open): Add FC_CHARSET to the pattern. Set
9267 xftfont_info->ft_size. Don't unlock the face. Check BDF
9268 properties if appropriate.
9269 (xftfont_close): Unlock the face.
9270 (xftfont_anchor_point, xftfont_shape): Deleted.
9271 (syms_of_xftfont): Don't set members anchor_point and shape of
9272 xftfont_driver.
9273
9274 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9275 font_make_object.
9276
9277 * w32font.c (w32font_open): Adjust it for the change of
9278 font_make_object.
9279 (w32font_open_internal): Don't set properties of font_object here.
9280
9281 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
9282
9283 * macfns.c (x_create_tip_frame):
9284 * w32fns.c (x_create_tip_frame):
9285 * xfns.c (x_create_tip_frame): Pass parameter argument to
9286 face-set-after-frame-default.
9287
9288 * xfaces.c (Finternal_merge_in_global_face): Save merged
9289 attributes for the default face back into the face vector.
9290
9291 2008-07-08 Andreas Schwab <schwab@suse.de>
9292
9293 * fontset.h: Declare fontset_from_font. Don't declare
9294 new_fontset_from_font and fontset_from_font_name.
9295 * xterm.c: Include "fontset.h".
9296 * Makefile.in (xterm.o): Update dependencies.
9297
9298 2008-07-08 Glenn Morris <rgm@gnu.org>
9299
9300 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9301 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9302
9303 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
9304
9305 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9306 (x_set_frame_parameters): Don't bind it.
9307
9308 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
9309
9310 * w32fns.c (map_w32_filename): Declare extern.
9311
9312 2008-07-07 Jason Rumney <jasonr@gnu.org>
9313
9314 * w32term.c (WS_EX_LAYERED): Define if not already.
9315
9316 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
9317
9318 * xfaces.c (set_font_frame_param): Don't try to set the font
9319 parameter if it is still unspecified in the lface.
9320
9321 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9322
9323 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9324 face if it didn't already exist.
9325
9326 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9327
9328 2008-07-05 Andreas Schwab <schwab@suse.de>
9329
9330 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9331
9332 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9333
9334 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9335 word-wrapping.
9336 (IT_DISPLAYING_WHITESPACE): New macro.
9337 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9338 when word-wrapping. Simplify word-wrapping logic. Use correct
9339 pixel positions when saving copies of the iterator.
9340 (display_line): Use proper wrap point if the last character on a
9341 line was preceded by whitespace.
9342
9343 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9344
9345 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9346
9347 2008-07-04 Kenichi Handa <handa@m17n.org>
9348
9349 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9350
9351 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9352
9353 2008-07-02 Jason Rumney <jasonr@gnu.org>
9354
9355 * xfns.c (syms_of_xfns): Only define x-select-font when both
9356 HAVE_FREETYPE and USE_GTK.
9357
9358 * xdisp.c (next_element_from_display_vector): Move assignment out
9359 of if statement.
9360
9361 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9362
9363 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9364
9365 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9366 (syms_of_fileio): Initialize and export them.
9367 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9368
9369 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9370 (Fsystem_move_file_to_trash): New function.
9371 (syms_of_w32fns): Export it to lisp.
9372
9373 2008-07-01 Jason Rumney <jasonr@gnu.org>
9374
9375 * w32font.c (w32font_text_extents): Don't count overhang as part
9376 of width.
9377
9378 2008-06-30 Miles Bader <miles@gnu.org>
9379
9380 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9381 Add `avoid_cursor_p' field.
9382
9383 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9384 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9385 (append_glyph, append_composite_glyph, produce_image_glyph)
9386 (append_stretch_glyph): Initialize avoid_cursor_p.
9387 (get_it_property): Rename from `get_line_height_property'.
9388 (x_produce_glyphs): Use get_it_property.
9389 (handle_line_prefix, push_display_prop): New functions.
9390 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9391 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9392 New variables.
9393 (syms_of_xdisp): Initialize them.
9394
9395 2008-06-30 Kenichi Handa <handa@m17n.org>
9396
9397 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9398 XftDefaultSubstitute (they are called in XftFontMatch).
9399 (xftfont_open): Fix args to ftfont_font_format.
9400
9401 * ftfont.c (fc_charset_table): New member lang.
9402 (ftfont_resolve_generic_family): New arg pattern.
9403 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
9404 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9405 (ftfont_open): Fix args to ftfont_font_format.
9406 (ftfont_font_format): New arg filename.
9407
9408 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
9409
9410 * xfaces.c (Finternal_merge_in_global_face): If default face was
9411 modified, realize it again. Update the font face attribute.
9412
9413 2008-06-29 Jason Rumney <jasonr@gnu.org>
9414
9415 * w32term.c (x_set_frame_alpha): Fix logic.
9416
9417 2008-06-29 Kenichi Handa <handa@m17n.org>
9418
9419 * fontset.c (Finternal_char_font): Return font-object instead of
9420 font-name.
9421
9422 * composite.c (get_composition_id): Fix the width calculation for TAB.
9423
9424 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9425
9426 * indent.c (Fvertical_motion): Properly handle float column arg.
9427
9428 2008-06-28 Jason Rumney <jasonr@gnu.org>
9429
9430 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9431 (pfnSetLayeredWindowAttributes): New function pointer.
9432 (w32_initialize): Initialize it when supported.
9433 (x_set_frame_alpha): New function.
9434
9435 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9436 (w32_frame_parm_handlers): Set alpha handler.
9437
9438 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9439
9440 2008-06-27 Jason Rumney <jasonr@gnu.org>
9441
9442 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9443 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9444 (w32_to_x_charset, x_to_w32_charset)
9445 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9446 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9447 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9448 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9449 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9450 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9451 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9452 (Qw32_charset_unicode): Remove.
9453 (syms_of_w32fns): Update for above changes.
9454
9455 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9456 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9457 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9458 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9459 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9460 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9461 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9462 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9463 (syms_of_w32font): Update for above changes.
9464
9465 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9466
9467 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9468 removed #if.
9469 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9470
9471 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9472 Eli Zaretskii <eliz@gnu.org>
9473
9474 * makefile.w32-in (LOCAL_FLAGS):
9475 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9476
9477 * sysdep.c (_spawnlp, _getpid):
9478 Declare with explicit _cdecl instead of _CRTAPI1.
9479
9480 * editfns.c (Fget_internal_run_time):
9481 Check for WINDOWSNT with #ifdef, not #if.
9482
9483 2008-06-26 Jason Rumney <jasonr@gnu.org>
9484
9485 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9486
9487 * w32term.c (x_draw_glyph_string_foreground)
9488 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9489 Use FONT_HANDLE macro.
9490 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9491
9492 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9493 (uniscribe_encode_char): Use FONT_HANDLE macro.
9494
9495 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9496 (w32font_text_extents): Use precast w32_font.
9497 (w32font_close): Free cached metrics.
9498 (w32font_open_internal): Allocate space for name on stack.
9499
9500 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
9501
9502 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9503
9504 2008-06-26 Jason Rumney <jasonr@gnu.org>
9505
9506 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9507 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9508
9509 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9510
9511 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9512
9513 2008-06-26 Jason Rumney <jasonr@gnu.org>
9514
9515 * w32bdf.c, w32bdf.h: Remove obsolete files.
9516
9517 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9518
9519 * w32gui.h: Don't include w32bdf.h.
9520 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9521 Remove obsolete font support.
9522
9523 * w32font.h (struct w32font_info): Remove compat_w32_font.
9524 Add hfont member.
9525 (FONT_COMPAT): Remove obsolete macro.
9526
9527 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9528 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9529 (w32font_open_internal): Remove compat code. Set new hfont member.
9530 (Fx_select_font): Use new hfont member.
9531
9532 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9533 (uniscribe_encode_char): Use new hfont member.
9534
9535 * w32term.c (x_draw_glyph_string_foreground)
9536 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9537 (x_draw_glyph_string): Use metrics in w32font_info.
9538
9539 2008-06-26 Kenichi Handa <handa@m17n.org>
9540
9541 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9542
9543 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9544
9545 * unexnext.c:
9546 * m/ews4800.h:
9547 * m/hp9000s300.h:
9548 * m/ibm370aix.h:
9549 * m/mips-siemens.h:
9550 * m/ncr386.h:
9551 * m/next.h:
9552 * m/pmax.h:
9553 * m/powerpcle.h:
9554 * m/tandem-s2.h:
9555 * s/386bsd.h:
9556 * s/bsd386.h:
9557 * s/bsd4-1.h:
9558 * s/bsd4-2.h:
9559 * s/bsdos2-1.h:
9560 * s/bsdos2.h:
9561 * s/bsdos3.h:
9562 * s/bsdos4.h:
9563 * s/nextstep.h:
9564 * s/ultrix4-3.h:
9565 * s/usg5-0.h:
9566 * s/usg5-2-2.h:
9567 * s/usg5-2.h:
9568 * s/usg5-4-3.h:
9569 * s/ux4800.h:
9570 * s/uxpds.h:
9571 * s/uxpv.h: Remove support for obsolete systems.
9572 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
9573 Remove, insert contents in s/hpux10-20.h.
9574 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9575 Remove, insert contents in s/aix4-2.h.
9576 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9577 * s/bsd4-3.h: Rename to ...
9578 * s/bsd-common.h: ... this.
9579 * data.c:
9580 * doc.c:
9581 * ecrt0.c:
9582 * emacs.c:
9583 * fileio.c:
9584 * floatfns.c:
9585 * keyboard.c:
9586 * mem-limits.h:
9587 * print.c:
9588 * process.c:
9589 * sysdep.c:
9590 * syssignal.h:
9591 * systty.h:
9592 * syswait.h:
9593 * term.c:
9594 * unexec.c:
9595 * unexelf.c:
9596 * unexhp9k800.c:
9597 * m/hp800.h:
9598 * m/ibmrs6000.h:
9599 * m/mips.h:
9600 * m/vax.h:
9601 * s/darwin.h:
9602 * s/freebsd.h:
9603 * s/gnu.h:
9604 * s/ms-w32.h:
9605 * s/msdos.h:
9606 * s/netbsd.h:
9607 * s/template.h: Remove references to obsolete variables.
9608
9609 * Makefile.in: Add dependencies for all unexec files.
9610 (admindir): Remove unused variable.
9611 (UNEXEC_SRC): Remove references.
9612
9613 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
9614
9615 * xfns.c (x_default_font_parameter): If Xft is available, first
9616 try Monospace-12 for the default font.
9617
9618 2008-06-25 Jason Rumney <jasonr@gnu.org>
9619
9620 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9621
9622 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9623
9624 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9625
9626 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9627
9628 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
9629
9630 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9631 <scroll-conservatively>: Fix typo in docstring.
9632
9633 * xselect.c (Fx_send_client_event): Doc fix.
9634
9635 2008-06-25 Kenichi Handa <handa@m17n.org>
9636
9637 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9638
9639 * font.c (font_parse_fcname): Remove unused variables.
9640 (font_sort_entites): Delete the arg SPEC. Caller changed.
9641 Fix for the case of ! best_only.
9642 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9643
9644 * lisp.h (Fstring_to_unibyte): EXFUN it.
9645
9646 * character.h (str_to_unibyte): Extern it.
9647
9648 * character.c (str_to_unibyte): New function.
9649
9650 * fns.c (Fstring_to_unibyte): New function.
9651 (syms_of_fns): Defsubr it.
9652
9653 2008-06-24 Kenichi Handa <handa@m17n.org>
9654
9655 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9656 DPI too.
9657 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9658
9659 2008-06-24 Andreas Schwab <schwab@suse.de>
9660
9661 * Makefile.in (${lispsource}loaddefs.el): Rename from
9662 ../lisp/loaddefs.el.
9663 (bootstrap-clean): Do what distclean does but don't remove
9664 Makefile.
9665 (distclean): Depend on bootstrap-clean and remove Makefile.
9666
9667 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
9668
9669 * buffer.h (struct buffer): New member word_wrap.
9670
9671 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9672 word-wrap.
9673 (init_buffer_once): Initialize them.
9674
9675 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9676 line_wrap enum possessing three possible values.
9677
9678 * termopts.h: Replace truncate_partial_width_windows with
9679 Vtruncate_partial_width_windows.
9680
9681 * dispnew.c (direct_output_for_insert): Avoid direct output when
9682 inserting a space with word wrap on.
9683
9684 * indent.c (compute_motion): Obey integer values of
9685 truncate-partial-width-windows.
9686
9687 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9688 replacing truncate_partial_width_windows.
9689 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9690 truncate only if the window width is below that integer.
9691 (start_display, resize_mini_window, produce_stretch_glyph)
9692 (display_string, move_it_in_display_line_to): Use line_wrap.
9693 (back_to_previous_visible_line_start, reseat_1): Reset
9694 string_from_display_prop_p.
9695 (display_line): Extend default face to end of line when wrapping.
9696
9697 2008-06-24 Kim F. Storm <storm@cua.dk>
9698
9699 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9700 to wrap continued lines at word boundaries.
9701
9702 2008-06-24 Jason Rumney <jasonr@gnu.org>
9703
9704 * font.c (Ffont_face_attributes): Multiply pixel size before point
9705 conversion to avoid multiplying rounding error.
9706
9707 2008-06-23 Jason Rumney <jasonr@gnu.org>
9708
9709 * w32term.c (x_draw_glyph_string_background)
9710 (x_draw_glyph_string): Remove old bdf font code.
9711
9712 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9713
9714 2008-06-22 Kenichi Handa <handa@m17n.org>
9715
9716 * font.c (font_find_for_lface): Try the adstyle specified in
9717 the property of LFACE_FONT of LFACE (if any).
9718
9719 2008-06-21 Seiji Zenitani <zenitani@mac.com>
9720 Ryo Yoshitake <ryo@shiftmode.net>
9721
9722 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9723
9724 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9725
9726 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9727 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9728 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9729 (witness-emacs): Remove.
9730 (lisp, shortlisp): Move loaddefs.el earlier.
9731 (mostlyclean): Forget about witness-emacs.
9732
9733 2008-06-22 Glenn Morris <rgm@gnu.org>
9734
9735 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9736 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9737
9738 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9739
9740 * Makefile.in (PRECOMP): Remove.
9741 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9742 (witness-emacs): Run `compile-first'.
9743 (.el.elc): Use the new compile-onefile target.
9744
9745 2008-06-21 Kenichi Handa <handa@m17n.org>
9746
9747 * xftfont.c (xftfont_open): Handle QCembolden only when
9748 FC_EMBOLDEN is defined.
9749
9750 2008-06-21 Andreas Schwab <schwab@suse.de>
9751
9752 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9753 (.el.elc): Likewise.
9754
9755 2008-06-21 Miles Bader <miles@gnu.org>
9756
9757 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9758 build dir, not the lisp source dir.
9759
9760 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9761
9762 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9763 (bootstrapclean): Remove.
9764 (.el.elc): New rule.
9765 (PRECOMP): New var.
9766 (../lisp/subdirs.el): Remove.
9767 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9768 (witness-emacs): New target.
9769 (mostlyclean): Remove witness-emacs as well.
9770 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9771 Add witness-emacs dependency.
9772
9773 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
9774
9775 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9776 defined by the font.
9777
9778 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9779
9780 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9781 (bootstrap-clean): New target that keeps TAGS around.
9782 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9783 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9784
9785 2008-06-20 Jason Rumney <jasonr@gnu.org>
9786
9787 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9788 Remove obsolete font code.
9789
9790 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9791 to determine language support.
9792
9793 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9794
9795 * sysdep.c (cfsetspeed): New fun extracted from the code.
9796 (cfmakeraw): Move before first use.
9797
9798 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9799
9800 * sysdep.c (cfmakeraw): Provide fallback implementation.
9801 (serial_configure): Provide fallback implementation of cfsetspeed.
9802
9803 2008-06-20 Kenichi Handa <handa@m17n.org>
9804
9805 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9806 the pattern.
9807
9808 * fontset.c (fontset_from_font): Copy font_spec before changing
9809 the elements.
9810
9811 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9812
9813 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9814
9815 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9816 for explicit `font' parameters.
9817
9818 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9819
9820 2008-06-19 Kenichi Handa <handa@m17n.org>
9821
9822 * frame.c: Include <ctype.h>.
9823 (x_set_font_backend): Allow spacing characters in the X resource
9824 for FontBackend.
9825
9826 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9827
9828 * w32fns.c, xfns.c (Qfont_param): New var.
9829 (syms_of_w32fns): Initialize it.
9830 (x_default_font_parameter): Record explicit `font' into
9831 `font-parameter'.
9832
9833 2008-06-18 Kenichi Handa <handa@m17n.org>
9834
9835 * font.c (font_parse_xlfd): Fix previous change.
9836 (font_parse_fcname): Don't use :fc-unknown-spec.
9837 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9838 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9839 (font_add_log): Prepend the driver name to the resulting fonts.
9840
9841 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9842 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9843 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9844
9845 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9846 (QCembolden): New variables.
9847 (syms_of_xftfont): DEFSYM them.
9848 (xftfont_open): Call XftFontMatch. Don't trust the result of
9849 XftTextExtents8 if the pixel_size is less than 5.
9850
9851 2008-06-18 Andreas Schwab <schwab@suse.de>
9852
9853 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9854 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9855
9856 2008-06-18 Jason Rumney <jasonr@gnu.org>
9857
9858 * w32font.c (w32font_list, w32font_match): Add logging.
9859
9860 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9861
9862 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
9863
9864 * font.c (font_parse_fcname): Store divider characters for
9865 unknown-spec list. For known key symbols, intern using correct
9866 symbol name.
9867
9868 2008-06-17 Kenichi Handa <handa@m17n.org>
9869
9870 * xfaces.c (realize_default_face): If the frame is not on window
9871 system, set the fontset of face to nil.
9872
9873 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9874
9875 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9876
9877 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9878
9879 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9880 (build_font_name_from_vector): Delete externs.
9881
9882 * xfaces.c (struct font_name): Don't declare.
9883
9884 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9885
9886 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9887
9888 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9889
9890 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9891
9892 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9893
9894 * font.c (Ffont_spec): Fix usage in docstring.
9895 (Ffont_face_attributes): Doc fix.
9896
9897 2008-06-16 Andreas Schwab <schwab@suse.de>
9898
9899 * font.c (Ffont_face_attributes): Fix definition.
9900
9901 2008-06-16 Jason Rumney <jasonr@gnu.org>
9902
9903 * font.h (font_style_symbolic_from_value): Remove.
9904
9905 * font.c (font_style_symbolic_from_value): Remove.
9906 (font_style_symbolic): Revert to pre 2008-06-13 version.
9907
9908 * w32font.c (w32_to_fc_weight): New function.
9909 (w32font_full_name, logfont_to_fcname): Use it.
9910
9911 2008-06-16 Kenichi Handa <handa@m17n.org>
9912
9913 * font.c (font_check_object): Delete it.
9914 (font_clear_cache): Check if a font-object is alive.
9915 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9916 font-object to nil.
9917 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9918 (font_at): Don't call font_check_object.
9919 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9920
9921 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9922
9923 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9924
9925 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9926
9927 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9928
9929 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
9930
9931 * font.c (font_parse_fcname): Only one decimal point.
9932 (font_unparse_fcname): Handle data in family and foundry indices
9933 as symbols, not strings.
9934 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9935
9936 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9937
9938 * font.h (font_unparse_gtkname): Add prototype.
9939
9940 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9941
9942 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9943
9944 2008-06-15 Andreas Schwab <schwab@suse.de>
9945
9946 * font.c (font_update_drivers): Fix crash when no drivers match.
9947
9948 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9949
9950 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9951 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9952
9953 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9954
9955 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9956
9957 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9958
9959 * process.c (Fserial_process_configure, Fprocess_send_eof):
9960 Use EQ to compare Lisp_Objects.
9961
9962 2008-06-13 Jason Rumney <jasonr@gnu.org>
9963
9964 * w32fns.c (Fw32_select_font): Remove old font API function.
9965
9966 * w32font.c (logfont_to_fcname): New function.
9967 (Fx_select_font): New font dialog function compatible with
9968 GTK/fontconfig version.
9969
9970 * font.c (font_style_symbolic_from_value): New function.
9971 (font_style_symbolic): Use it.
9972
9973 * font.h (font_style_symbolic_from_value): Declare new function.
9974
9975 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
9976
9977 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9978 <font-width-table>: Fix typos in docstrings.
9979
9980 2008-06-13 Daniel Engeler <engeler@gmail.com>
9981
9982 These changes add serial port access.
9983 * process.c: Add HAVE_SERIAL.
9984 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9985 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9986 (list_processes_1, select_wrapper, Fstop_process)
9987 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9988 (status_notify): Modify to handle serial processes.
9989 [HAVE_SERIAL] (Fserial_process_configure)
9990 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9991 New functions.
9992 * process.h (struct Lisp_Process): Add `type'.
9993 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9994 New functions.
9995 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9996 serial ports.
9997 (serial_open, serial_configure): New functions.
9998 * w32.h: Add FILE_SERIAL.
9999 (struct _child_process): Add ovl_read, ovl_write.
10000
10001 2008-06-13 Kenichi Handa <handa@m17n.org>
10002
10003 * dispextern.h (enum lface_attribute_index): New member
10004 LFACE_FOUNDRY_INDEX.
10005
10006 * font.c (font_score): Delete arg alternate_families. Check only
10007 weight, slant, width, and size. Ignore the difference of alias
10008 style symbols.
10009 (font_sort_entites): Adjust for the above change. Reflect the
10010 order of font-driver to scores.
10011 (font_list_entities): Don't check alternate_familes here.
10012 (font_clear_prop): Handle foundry.
10013 (font_update_lface): Don't parse "foundry-family" form here.
10014 Handle FONT_FOUNDRY_INDEX.
10015 (font_find_for_lface): Likewise. Handle alternate families here.
10016 If registry is nil, try iso8859-1 and ascii-0.
10017 (font_open_for_lface): Pay attention to size in ENTITY.
10018 (font_open_by_name): Simplify by calling font_load_for_lface.
10019 (free_font_driver_list): Delete it.
10020 (font_update_drivers): Preserve the order of backends.
10021 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10022 of font_score and font_sort_entites.
10023 (font_update_sort_order): Likewise.
10024
10025 * xfaces.c (LFACE_FOUNDRY): New macro.
10026 (check_lface_attrs): Check foundry.
10027 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10028 (merge_face_vectors): Check foundry.
10029 (merge_face_ref): Likewise.
10030 (Finternal_set_lisp_face_attribute): Likewise.
10031 (x_update_menu_appearance): Likewise.
10032 (Finternal_get_lisp_face_attribute): Likewise.
10033 (lface_hash): Likewise.
10034 (lface_same_font_attributes_p): Likewise.
10035 (x_supports_face_attributes_p): Likewise.
10036 (tty_supports_face_attributes_p): Likewise.
10037 (Finternal_set_alternative_font_family_alist): Intern strings.
10038 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10039 (realize_default_face): Set LFACE_FOUNDRY (lface).
10040
10041 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10042 font-driver at first.
10043
10044 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10045
10046 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10047
10048 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10049
10050 2008-06-12 Jim Meyering <meyering@redhat.com>
10051
10052 Make unexec_free handle NULL the same way free does.
10053 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10054
10055 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10056
10057 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10058 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10059 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10060 (WEAK_ALIAS): Simplify.
10061 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10062 when searching a unibyte buffer.
10063
10064 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
10065
10066 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10067
10068 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
10069
10070 * w32font.c: Include ctype.h.
10071
10072 2008-06-11 Jason Rumney <jasonr@gnu.org>
10073
10074 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10075 misreported as space.
10076 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10077 as aliases for registry iso10646-1.
10078
10079 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10080
10081 * buffer.c (clone_per_buffer_values): Skip `name'.
10082
10083 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
10084
10085 * font.c (font_parse_fcname): Fix last change; accept decimal
10086 points in font size.
10087
10088 2008-06-10 Jason Rumney <jasonr@gnu.org>
10089
10090 * w32uniscribe.c (add_opentype_font_name_to_list):
10091 Skip non unicode fonts.
10092
10093 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10094
10095 * xfns.c (Fx_font_dialog): New function.
10096
10097 * gtkutil.c (xg_dialog_response_cb): Rename from
10098 xg_file_response_callback.
10099 (pop_down_dialog): Rename from pop_down_file_dialog.
10100 (xg_get_file_name): Callers changed.
10101 (xg_get_font_name): New function.
10102
10103 * gtkutil.h (xg_get_font_name): Insert prototype.
10104
10105 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10106
10107 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10108 x_underline_minimum_display_offset.
10109 (syms_of_xdisp): Declare it here rather than in xterm.c.
10110 * dispextern.h (underline_minimum_offset): Declare it.
10111 * w32term.c (x_draw_glyph_string): Use it.
10112 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10113 (syms_of_xterm): Don't declare it any more.
10114 (x_draw_glyph_string): Adjust to the new name.
10115
10116 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
10117
10118 * xterm.c (x_underline_minimum_display_offset): New var.
10119 (x_draw_glyph_string): Use it.
10120 (syms_of_xterm): Declare it.
10121
10122 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10123
10124 * font.c (font_parse_fcname): Accept GTK-style font names too.
10125
10126 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10127
10128 * dired.c (file_name_completion): Don't return t if the match is exact
10129 but with different capitalization.
10130 * minibuf.c (Ftry_completion): Simplify.
10131
10132 * window.c (Vwindow_point_insertion_type): New var.
10133 (set_window_buffer): Use it.
10134 (syms_of_window): Init and export it to Lisp.
10135
10136 2008-06-10 Kenichi Handa <handa@m17n.org>
10137
10138 * font.h (font_intern_prop): Prototype adjusted.
10139
10140 * font.c (font_intern_prop): New arg force_symbol.
10141 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10142 Adjust for the change of font_intern_prop.
10143
10144 * ftfont.c (ftfont_pattern_entity):
10145 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10146 (w32_registry):
10147 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10148 the change of font_intern_prop.
10149
10150 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
10151
10152 * w32menu.c (digest_single_submenu): Declare extern.
10153
10154 2008-06-09 Jason Rumney <jasonr@gnu.org>
10155
10156 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10157
10158 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10159 (parse_single_submenu): Remove.
10160 (digest_single_submenu): Remove.
10161 (syms_of_w32menu): Don't initialise variables that have moved
10162 to menu.c.
10163 (set_frame_menubar): Sync with version in xmenu.c.
10164 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10165
10166 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10167 Make static again.
10168
10169 2008-06-09 Jason Rumney <jasonr@gnu.org>
10170
10171 Changes to w32 files related to the move of common menu code
10172 to menu.c on 2008-06-08 by Chong Yidong.
10173
10174 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10175 defs to w32gui.h.
10176 (single_keymap_panes, push_menu_item, push_menu_pane):
10177 Make globally visible.
10178
10179 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10180 (local_free, malloc_widget_value, free_widget_value)
10181 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10182 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10183 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10184 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10185 (menu_items, menu_items_allocated, menu_items_used)
10186 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10187 (init_menu_items, finish_menu_items, discard_menu_items)
10188 (grow_menu_items, push_submenu_start, push_submenu_end)
10189 (push_left_right_boundary, push_menu_pane, push_menu_item)
10190 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10191 (free_menubar_widget_tree_value, parse_single_submenu)
10192 (update_submenu_strings): Remove functions.
10193 (xmalloc_widget_value): Remove and declare extern.
10194
10195 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10196 (OBJ1): Build it.
10197
10198 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10199 (local_heap, local_alloc, local_free, malloc_widget_value)
10200 (free_widget_value): Define here.
10201
10202 2008-06-09 Kenichi Handa <handa@m17n.org>
10203
10204 * font.h (Qascii_0): Extern it.
10205
10206 * font.c (Qascii_0): New variable.
10207 (syms_of_font): DEFSYM it.
10208 (font_open_by_name): If the registry "iso8859-1" fails, try also
10209 "ascii-0".
10210
10211 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10212
10213 2008-06-08 Kenichi Handa <handa@m17n.org>
10214
10215 * .gdbinit (xfont): New command.
10216
10217 2008-06-08 Andreas Schwab <schwab@suse.de>
10218
10219 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10220 * Makefile.in (menu.o): Update dependencies.
10221
10222 * Makefile.in (obj): Always add menu.o.
10223 * emacs.c (main): Always call syms_of_menu.
10224 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10225
10226 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
10227
10228 * Makefile.in: Compile menu.c.
10229
10230 * lisp.h: Declare syms_of_menu.
10231
10232 * emacs.c (main): Call syms_of_menu.
10233
10234 * keyboard.h: Relocate platform-independent menu definitions from
10235 xmenu.c.
10236
10237 * menu.c: New file. Relocate platform-independent menu
10238 definitions from xmenu.c. Suggested by Adrian Robert.
10239
10240 * xmenu.c: Remove platform-independent menu definitions.
10241 (menu_items menu_items_inuse, menu_items_allocated)
10242 (menu_items_used, menu_items_n_panes)
10243 (menu_items_submenu_depth): Move to keyboard.h.
10244 (init_menu_items, finish_menu_items, unuse_menu_items)
10245 (discard_menu_items, restore_menu_items, save_menu_items)
10246 (grow_menu_items, push_submenu_start, push_submenu_end)
10247 (push_left_right_boundary, push_menu_pane, push_menu_item)
10248 (keymap_panes, single_keymap_panes, single_menu_item)
10249 (list_of_panes, list_of_items, find_and_call_menu_selection)
10250 (xmalloc_widget_value, free_menubar_widget_value_tree)
10251 (parse_single_submenu, digest_single_submenu)
10252 (update_submenu_strings): Move to menu.c.
10253
10254 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10255
10256 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10257
10258 2008-06-06 Miles Bader <miles@gnu.org>
10259
10260 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10261 face, not frame default.
10262
10263 2008-06-05 Martin Rudalics <rudalics@gmx.at>
10264
10265 * window.c (pop_up_windows, pop_up_frames)
10266 (display_buffer_reuse_frames, Vpop_up_frame_function)
10267 (Vdisplay_buffer_function, Veven_window_heights)
10268 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10269 (Vspecial_display_function, Vsame_window_buffer_names)
10270 (Vsame_window_regexps, split_height_threshold)
10271 (Vsplit_window_preferred_function): Move those vars to window.el.
10272 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10273 (Fdisplay_buffer): Move those functions to window.el.
10274 (syms_of_window): Remove corresponding declarations.
10275 (display_buffer): New function.
10276 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10277 * dispnew.c (Flast_nonminibuf_frame): New function.
10278 * buffer.c (Fpop_to_buffer): Move to window.el.
10279
10280 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10281
10282 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10283
10284 2008-06-05 Kenichi Handa <handa@m17n.org>
10285
10286 * coding.c (detect_coding): Fix previous change.
10287 (detect_coding_system): Likewise.
10288
10289 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10290
10291 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10292
10293 * keymap.c (Vminibuffer_local_filename_must_match_map):
10294 Rename from Vminibuffer_local_must_match_filename_map.
10295 (syms_of_keymap):
10296 * minibuf.c (Fcompleting_read): Adjust accordingly.
10297 * commands.h: Rename declaration as well.
10298
10299 2008-06-05 Kenichi Handa <handa@m17n.org>
10300
10301 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10302 family name.
10303 (Ffont_put): Likewise.
10304
10305 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10306 current font-spec.
10307
10308 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10309 is unspecified.
10310
10311 * xfaces.c (realize_x_face): If the font-related face attributes
10312 are the same as those of default face, realize a new fontset from
10313 default->fontset.
10314 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10315
10316 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10317
10318 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10319 (move_it_in_display_line): New wrapper.
10320
10321 * window.c (window_scroll_pixel_based_preserve_x)
10322 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10323 (window_scroll_pixel_based, window_scroll_line_based):
10324 Use them to preserve column positions.
10325 (syms_of_window): Initialize them.
10326
10327 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10328 (HPOS . VPOS) pair.
10329
10330 * dispextern.h (move_it_in_display_line): Declare.
10331
10332 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
10333
10334 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10335 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10336 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10337
10338 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
10339
10340 * window.c (Fset_window_parameter): Doc fix.
10341 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10342
10343 2008-06-04 Joakim Verona <joakim@verona.se>
10344
10345 * window.h (struct window): Add new member window_parameters.
10346
10347 * window.c (Fwindow_parameters, Fwindow_parameter)
10348 (Fset_window_parameter): New defuns.
10349 (syms_of_window): Defsubr the new defuns.
10350 (make_window): Initialize window_parameters to nil.
10351
10352 2008-06-04 John Paul Wallington <jpw@pobox.com>
10353
10354 * eval.c (Fdefmacro): Doc fix.
10355
10356 2008-06-04 Kenichi Handa <handa@m17n.org>
10357
10358 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10359 Be sure to call setup_coding_system when we find a proper coding system.
10360 (detect_coding_system): Fix handling of coding->head_ascii.
10361
10362 2008-06-03 Andreas Schwab <schwab@suse.de>
10363
10364 * font.c (font_prop_validate_spacing): Fix last change.
10365
10366 2008-06-03 Kenichi Handa <handa@m17n.org>
10367
10368 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10369 (font_parse_fcname): Fix handling of unknown key.
10370
10371 * xfont.c (xfont_list): Try an alias.
10372
10373 * charset.c (char_charset): Return NULL if the arg charset_list is
10374 specified and C doesn't belong to any of them.
10375
10376 2008-06-02 Chip Coldwell <coldwell@redhat.com>
10377
10378 * font.c (font_pixel_size): Don't take cdr of an integer.
10379
10380 2008-06-02 Jim Meyering <meyering@redhat.com>
10381
10382 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10383 * alloc.c (xfree): Return right away for a NULL arg.
10384 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10385 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10386 * mac.c (create_apple_event_from_event_ref): Likewise.
10387 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10388 Likewise.
10389 * doprnt.c (doprnt1): Likewise.
10390 * frame.c (frame): Likewise.
10391 * keyboard.c (wipe_kboard): Likewise.
10392 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10393 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10394 * term.c (tty_default_color_capabilities, maybe_fatal)
10395 (delete_tty): Likewise.
10396 * w16select.c (string): Likewise.
10397 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10398 * w32bdf.c (w32_free_bdf_font): Likewise.
10399 * w32fns.c (w32_unload_font): Likewise.
10400 * w32font.c (w32font_close): Likewise.
10401 * window.c (size_window): Likewise.
10402 * xselect.c (receive_incremental_selection): Likewise.
10403 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10404 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10405 * w32.c (stat): Likewise.
10406
10407 Remove useless if-before-free tests.
10408 * editfns.c (Fset_time_zone_rule): Likewise.
10409 * lread.c (nosuffix): Likewise.
10410 * ralloc.c (get_bloc): Likewise.
10411 * regex.c (reg_free): Likewise.
10412 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10413 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10414 * xsmfns.c (smc_save_yourself_CB): Likewise.
10415
10416 2008-06-02 Kenichi Handa <handa@m17n.org>
10417
10418 * font.c (font_find_for_lface): Handle float font size.
10419 (font_open_for_lface): Likewise.
10420
10421 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10422 comparing the properties.
10423
10424 2008-06-01 Jason Rumney <jasonr@gnu.org>
10425
10426 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10427 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10428 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10429 Don't add empty script list.
10430 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10431
10432 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10433
10434 * Makefile.in (dot, dotdot): Remove, update users.
10435 ".." has been used elsewhere in the file for a long time.
10436 (LIBXT_STATIC): Remove conditional based on unused variable.
10437
10438 2008-06-01 Miles Bader <miles@gnu.org>
10439
10440 * xfaces.c (Vface_remapping_alist): New variable.
10441 (syms_of_xfaces): Initialize it.
10442 (enum named_merge_point_kind): New type.
10443 (struct named_merge_point): Add `named_merge_point_kind' field.
10444 (push_named_merge_point): Make cycle detection respect different
10445 named-merge-point kinds.
10446 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10447 Remove face-name alias resolution.
10448 (lface_from_face_name): New definition using
10449 `lface_from_face_name_no_resolve'.
10450 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10451 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10452 (get_lface_attributes): New definition that layers face-remapping on
10453 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10454 (lookup_basic_face): New function.
10455 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10456 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10457 `get_lface_attributes'.
10458 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10459 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10460 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10461
10462 * xdisp.c (init_iterator): Pass base_face_id through
10463 `lookup_basic_face' when we actually use it as a face-id.
10464 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10465 DEFAULT_FACE_ID.
10466
10467 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10468 lookup the initial face-id.
10469
10470 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10471
10472 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
10473
10474 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10475 (Fremove_text_properties): Fix typos in docstrings.
10476
10477 2008-05-31 Kenichi Handa <handa@m17n.org>
10478
10479 * font.c (font_list_entities): Fix the car part of data to be
10480 stored in the cache.
10481
10482 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10483
10484 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10485
10486 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10487 Add a `test' argument so another predicate than `equal' can be used.
10488 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10489 (map_char_table): Remove unused vars `c' and `i'.
10490 * lisp.h (Foptimize_char_table): Adjust declaration.
10491 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10492
10493 2008-05-30 Kenichi Handa <handa@m17n.org>
10494
10495 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10496 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10497 defined.
10498
10499 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10500
10501 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10502 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10503 frame-local settings for the same variable.
10504
10505 2008-05-30 Kenichi Handa <handa@m17n.org>
10506
10507 * fontset.c (Ffont_info): Move to font.c.
10508 (syms_of_fontset): Delete defsubr of Sfont_info.
10509
10510 * font.c (font_style_to_value, font_score): Delete casting of the
10511 args to xstcasecmp.
10512 (register_font_driver): Increment num_font_drivers only when
10513 registering the driver globally.
10514 (Ffont_info): Move from fontset.c. Handle a font object too.
10515 (syms_of_font): Defsubr Sfont_info.
10516
10517 2008-05-29 Kenichi Handa <handa@m17n.org>
10518
10519 * coding.h (enum define_coding_utf8_arg_index): New enum.
10520 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10521 coding_attr_utf_bom.
10522 (enum utf_bom_type): Rename from utf_16_bom_type.
10523 (struct utf_16_spec): Adjust for the above change.
10524 (struct coding_system): Add utf_8_bom in `spec' union.
10525
10526 * coding.c (CODING_UTF_8_BOM): New macro.
10527 (enum coding_category): Delete coding_category_utf_8, add
10528 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10529 coding_category_utf_8_sig.
10530 (CATEGORY_MASK_UTF_8): Delete it.
10531 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10532 (CATEGORY_MASK_UTF_8_SIG): New macros.
10533 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10534 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10535 CATEGORY_MASK_UTF_8_SIG.
10536 (CATEGORY_MASK_UTF_8): New macro.
10537 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10538 (detect_coding_utf_8): Check BOM.
10539 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10540 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10541 (encode_coding_utf_16): Likewise.
10542 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10543 (detect_coding, detect_coding_system): Handle utf-8-auto.
10544 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10545 (syms_of_coding): Fix setting up of Vcoding_category_table.
10546
10547 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10548
10549 * process.c (Faccept_process_output): If `millisec' is non-nil,
10550 `seconds' default to 0.
10551 (wait_reading_process_output): Also return non-nil if we read output
10552 from a non-running process.
10553
10554 2008-05-29 Jason Rumney <jasonr@gnu.org>
10555
10556 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10557 `raster' specified.
10558 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10559 in the uniscribe backend, but disallow any font that has no
10560 unicode subrange support.
10561
10562 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
10563
10564 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10565 Fix typos in docstrings.
10566
10567 2008-05-29 Kenichi Handa <handa@m17n.org>
10568
10569 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10570 (Fx_family_fonts): Set frame correctly.
10571
10572 2008-05-28 Jason Rumney <jasonr@gnu.org>
10573
10574 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10575
10576 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10577
10578 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10579 calling build_annotations.
10580
10581 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
10582
10583 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10584 (Fencode_coding_string):
10585 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10586 <latin-extra-code-table>: Fix typos in docstrings.
10587 (syms_of_coding) <coding-system-alist>: Doc fix.
10588 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10589
10590 2008-05-28 Kenichi Handa <handa@m17n.org>
10591
10592 * fontset.c (Ffont_info): Don't call font_close_object.
10593
10594 * font.c (font_parse_family_registry): Use Ffont_put to validate
10595 foundry and family.
10596 (font_delete_unmatched): Don't check spacing.
10597 (font_list_entities): Add spacing to the spec to list fonts.
10598
10599 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10600 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10601
10602 * coding.c (encode_coding_raw_text): Fix previous change.
10603 (encode_coding_object): When the dst_object is a buffer and is
10604 different from src_object, move gap to PT.
10605
10606 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10607
10608 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10609
10610 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10611
10612 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10613 all branches. Compute it differently.
10614
10615 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10616
10617 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
10618
10619 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10620 into "else if () ... else ...".
10621
10622 2008-05-27 Jason Rumney <jasonr@gnu.org>
10623
10624 * w32font.c (w32font_open_internal): Determine if glyph indices
10625 are likely to work here.
10626
10627 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10628
10629 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10630 draw overlap glyphs with appropriate highlighting.
10631
10632 2008-05-27 Kenichi Handa <handa@m17n.org>
10633
10634 * xfont.c (xfont_open): Fix calculation of font->average_width.
10635
10636 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10637
10638 * casefiddle.c (casify_object): Try to guess better whether the
10639 argument is a byte or a char.
10640
10641 2008-05-26 Andreas Schwab <schwab@suse.de>
10642
10643 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10644 Always send multiples of format size.
10645
10646 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10647
10648 2008-05-26 Jason Rumney <jasonr@gnu.org>
10649
10650 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10651 (compute_metrics): Don't set failure if we just cleared the cache.
10652 (w32_weight_table): Remove unused variable.
10653 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10654 backwards compatibility.
10655
10656 2008-05-25 Kenichi Handa <handa@m17n.org>
10657
10658 * w32term.c (x_draw_glyph_string):
10659 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10660
10661 * xfaces.c: Delete unused function prototypes.
10662 (xstrlwr, font_frame): Delete them.
10663 (clear_face_cache): Delete unused variable.
10664
10665 * xftfont.c (xftfont_open): Delete unused variable.
10666 If underline_thickness is not 1, adjust underline_position.
10667
10668 * ftxfont.c (ftxfont_open): Delete unused variable.
10669
10670 * fontset.c (face_for_char): Optimize for the case of no charset
10671 property.
10672
10673 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10674 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10675 (otf_open, font_otf_capability, generate_otf_features)
10676 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10677 Comment out by surrounding "#if 0" and "#endif" for the moment.
10678 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10679 (syms_of_font): Codes for accessing above commented out.
10680
10681 2008-05-24 Eli Zaretskii <eliz@gnu.org>
10682
10683 * w32proc.c: Include dispextern.h.
10684
10685 * w32.c: Include dispextern.h.
10686
10687 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
10688
10689 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10690 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10691 Fix typos in docstrings.
10692
10693 2008-05-23 Jason Rumney <jasonr@gnu.org>
10694
10695 * xsmfns.c: Remove includes that are already included by config.h.
10696
10697 2008-05-23 Kenichi Handa <handa@m17n.org>
10698
10699 * charset.c (Qemacs, charset_emacs): New variables.
10700 (char_charset): Fix for non-Unicode characters.
10701 (syms_of_charset): Define charset_emacs.
10702
10703 * w32term.c (x_draw_glyph_string): Be sure to update
10704 s->underline_thickness and s->underline_position. Be sure to draw
10705 underline within the current line area.
10706
10707 * xterm.c (x_draw_glyph_string): Be sure to update
10708 s->underline_thickness and s->underline_position. Be sure to draw
10709 underline within the current line area.
10710
10711 * fontset.c: Delete unused variables and add casting for char *
10712 throughout the file.
10713 (fontset_font): Try the fallback fonts of the current fontset
10714 before consulting the default fontset.
10715
10716 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10717
10718 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10719
10720 2008-05-22 Jason Rumney <jasonr@gnu.org>
10721
10722 * font.c: Don't include strings.h.
10723
10724 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10725
10726 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10727 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10728 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10729 to call xstrcasecmp.
10730
10731 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10732
10733 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10734
10735 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10736
10737 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10738
10739 2008-05-22 Kenichi Handa <handa@m17n.org>
10740
10741 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10742
10743 * font.c (font_prop_validate_style): Adjust for the format
10744 change of font_style_table.
10745
10746 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10747 two args.
10748
10749 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10750 two args.
10751
10752 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10753
10754 * minibuf.c (keys_of_minibuf): Delete.
10755 * lisp.h (keys_of_minibuf): Delete.
10756 * emacs.c (main): Don't call keys_of_minibuf.
10757
10758 2008-05-22 Kenichi Handa <handa@m17n.org>
10759
10760 * ftfont.c (ftfont_resolve_generic_family): Rename from
10761 ftfont_list_generic_family. Return a single family for each
10762 generic family.
10763 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10764 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10765 Call font_add_log.
10766 (ftfont_match): Call font_add_log.
10767
10768 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10769 (FONT_DEBUG): Define it.
10770 (font_add_log): Extern it.
10771 (font_assert): Rename from xassert.
10772
10773 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10774 (xfont_list_family): Call font_add_log.
10775 (xfont_match): Likewise.
10776 (memq_no_quit): Delete.
10777
10778 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10779 call of Ffont_xlfd_name.
10780
10781 * xfaces.c (struct table_entry, slant_table, weight_table)
10782 (swidth_table): Move to font.c.
10783
10784 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10785 xassert are changed to font_assert. Delete many unused variables.
10786 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10787 New variables.
10788 (struct table_entry): Move from xfaces.c and modified.
10789 (weight_table, slant_table, width_table): Move from xfaces.c and
10790 contents adjusted for the change of struct table_entry.
10791 (font_style_to_value, font_style_symbolic): Adjust for the
10792 format change of font_style_table.
10793 (font_parse_family_registry): Don't overwrite existing foundry and
10794 family of font_spec.
10795 (font_score): Fix calculation of diff for sizes.
10796 (font_sort_entites): Call font_add_log.
10797 (font_delete_unmatched): Return a newly created list.
10798 (font_list_entities): Fix previous change. Call font_add_log.
10799 (font_matching_entity, font_open_entity, font_close_entity):
10800 Call font_add_log.
10801 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10802 (Finternal_set_font_style_table): Delete.
10803 (BUILD_STYLE_TABLE): New macro.
10804 (build_style_table): New function.
10805 (Vfont_log, font_log_env_checked): New variables.
10806 (font_add_log): New function.
10807 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10808 Declare Lisp variables "font-weight-table", "font-slant-table",
10809 "font-width-table", and "font-log". Initialize font_style_table.
10810
10811 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10812
10813 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10814
10815 2008-05-21 Seiji Zenitani <zenitani@mac.com>
10816 Ryo Yoshitake <ryo@shiftmode.net>
10817
10818 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10819 (Vframe_alpha_lower_limit): New variable.
10820 (x_set_alpha): New function.
10821
10822 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10823
10824 * xfns.c (x-create-frame, Qalpha):
10825 Initialize the frame parameter `alpha'.
10826 * xterm.c (OPAQUE, OPACITY): New.
10827 (x_set_frame_alpha): New function.
10828 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10829
10830 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10831 * w32fns.c (w32_frame_parm_handlers): Likewise.
10832
10833 2008-05-20 Jason Rumney <jasonr@gnu.org>
10834
10835 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10836 truetype fonts to opentype list.
10837
10838 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
10839
10840 * fontset.c (Ffontset_info): Doc fix.
10841 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10842 <ignore-relative-composition>: Fix typos in docstrings.
10843
10844 * font.c (syms-of-font) <font-encoding-alist>:
10845 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10846 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10847 (Ffont_otf_alternates): Doc fixes.
10848
10849 2008-05-20 Kenichi Handa <handa@m17n.org>
10850
10851 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10852 font.h through out the file.
10853 (FONT_DRIVERS): Rename from FONTOBJ.
10854 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10855 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10856
10857 * emacs.c (main): Call syms_of_font unconditionally.
10858
10859 * font.h (find_font_encoding): Extern it.
10860
10861 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10862 fontset.c.
10863 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
10864 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10865 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10866 only when HAVE_WINDOW_SYSTEM is defined.
10867 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10868 when HAVE_WINDOW_SYSTEM is defined.
10869
10870 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10871 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10872
10873 * xfaces.c: Include font.h unconditionally.
10874 (merge_face_ref, merge_face_vectors)
10875 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10876
10877 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10878
10879 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10880 indirect_variable.
10881 * eval.c (lisp_indirect_variable): New fun.
10882 (Fuser_variable_p): Use it.
10883
10884 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10885
10886 * lisp.h (indirect_variable):
10887 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10888 Use Lisp_Symbol pointers rather than Lisp_Object.
10889 Adjust callers.
10890 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10891 To this end, change calling-convention.
10892
10893 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10894 if some non-hidden buffers are selected by string&pred.
10895
10896 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
10897
10898 * process.c (wait_reading_process_output): Always check status
10899 when in batch mode.
10900
10901 2008-05-19 Kenichi Handa <handa@m17n.org>
10902
10903 * font.c (font_list_entities): Fix handling of cache.
10904 (font_matching_entity): Likewise.
10905
10906 * ftfont.c (cs_iso8859_1): Delete.
10907 (ft_face_cache): New variable.
10908 (struct ftfont_info): New member fc_charset_idx.
10909 (ftfont_build_basic_charsets): Delete.
10910 (fc_charset_table): New variable.
10911 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10912 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10913 Callers changed.
10914 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10915 (ftfont_spec_pattern): New argument fc_charset_idx.
10916 Check registry more rigidly. Change callers.
10917 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10918 change of :font-entity property of the font.
10919
10920 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10921 property of the font.
10922
10923 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
10924
10925 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10926 (Funencodable_char_position, Fcheck_coding_systems_region)
10927 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10928 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10929 (Ffind_operation_coding_system, Fset_coding_system_priority)
10930 (Fcoding_system_eol_type): Doc fixes.
10931
10932 2008-05-17 Glenn Morris <rgm@gnu.org>
10933
10934 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10935
10936 2008-05-16 Eli Zaretskii <eliz@gnu.org>
10937
10938 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10939 and st_gid.
10940
10941 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10942 HAVE_WINDOW_SYSTEM is not defined.
10943
10944 * xfaces.c (merge_face_ref, merge_face_vectors)
10945 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10946 HAVE_WINDOW_SYSTEM is defined.
10947 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10948
10949 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10950
10951 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10952
10953 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10954
10955 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10956
10957 2008-05-15 Kenichi Handa <handa@m17n.org>
10958
10959 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10960 preference.
10961
10962 2008-05-15 Glenn Morris <rgm@gnu.org>
10963
10964 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10965
10966 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
10967
10968 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10969 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10970
10971 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10972
10973 2008-05-15 Kenichi Handa <handa@m17n.org>
10974
10975 * ftfont.c (ftfont_list): Downcase family name to check generic
10976 families.
10977
10978 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10979 font-spec for QCfont value.
10980
10981 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10982 buffer. Check the return value of it.
10983
10984 2008-05-14 Jason Rumney <jasonr@gnu.org>
10985
10986 * w32term.c (w32_get_glyph_overhangs): Remove.
10987 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10988
10989 2008-05-14 Kenichi Handa <handa@m17n.org>
10990
10991 * font.c (font_prop_validate): Make nil a valid value.
10992 (font_clear_cache): Check if the cached vector of entities is nil
10993 or not.
10994
10995 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10996
10997 * emacs.c (main_thread): Conditionalize on
10998 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10999 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11000
11001 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11002 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11003 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11004
11005 2008-05-14 Kenichi Handa <handa@m17n.org>
11006
11007 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11008 has no corresponding coding system.
11009
11010 2008-05-14 Jason Rumney <jasonr@gnu.org>
11011
11012 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11013
11014 * w32font.h (w32font_open_internal): Update declaration.
11015
11016 * w32font.c (w32font_open_internal): Change last argument from
11017 w32font_info struct to font object. Fill in font object from
11018 font_entity. Get Outline metrics if possible. Use them to
11019 calculate underline position and thickness. Use xlfd name as name
11020 property. Don't set codepage.
11021 (w32font_open): Pass font_object to w32font_open_internal. Don't
11022 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11023 (w32font_draw): Use s->font.
11024 (clear_cached_metrics): Don't clear non-existent blocks.
11025
11026 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11027 font was not found.
11028 (x_draw_glyph_string): Use underline position and thickness from font.
11029
11030 * w32uniscribe.c (uniscribe_open): Pass font_object to
11031 w32font_open_internal.
11032
11033 2008-05-14 Kenichi Handa <handa@m17n.org>
11034
11035 These changes are to delete all legacy font-handling codes, and
11036 make Emacs use only font-backends.
11037
11038 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11039 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11040
11041 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11042
11043 * charset.h (Vcharset_non_preferred_head)
11044 (Vcurrent_iso639_language): Extern them.
11045
11046 * charset.c (Vcharset_non_preferred_head): New variable.
11047 (Vcurrent_iso639_language): New variable.
11048 (syms_of_charset): Declare it as a Lisp variable.
11049 (char_charset): Don't check non preferred charsets. As a last
11050 resort, return charset_unicode.
11051 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11052
11053 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11054 conditionals. Don't check enable_font_backend. Delete all codes
11055 used only when USE_FONT_BACKEND is not defined.
11056
11057 * dispextern.h (struct glyph_string): Change type of `font' to
11058 `struct font *'.
11059 (struct glyph_string): New member underline_position and
11060 underline_thickness.
11061 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11062 (struct face): Change type of `font' to `struct font *'. Remove
11063 members `font_name', `font_info_id'.
11064 (per_char_metric, encode_char): Delete externs.
11065 (calc_pixel_width_or_height): Adjust the prototype.
11066
11067 * emacs.c (enable_font_backend): Delete extern.
11068 (main): Don't set enable_font_backend. Don't check the command
11069 line argument "-disable-font-backend".
11070
11071 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11072 (enum font_property_index): New members FONT_DPI_INDEX,
11073 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11074 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11075 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11076 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11077 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11078 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11079 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11080 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11081 (struct font_spec, struct font_entity): New structs.
11082 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11083 (struct font): Many members from old "struct font_info" moved to
11084 here. Members font and entity deleted.
11085 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11086 the new font-related objects.
11087 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11088 (CHECK_FONT_GET_OBJECT): Likewise.
11089 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11090 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11091 (struct font_driver): New members case_sensitive anc check. Type
11092 of the member list and open changed.
11093 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11094 (font_symbolic_width, font_find_object, font_get_spec)
11095 (font_set_lface_from_name): Delete extern.
11096 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11097
11098 * font.c: Include <strings.h>.
11099 (enable_font_backend): Delete it.
11100 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11101 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11102 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11103 (null_string): Delete it.
11104 (null_vector): Make it static.
11105 (font_family_alist): Delete it.
11106 (Qnormal): Extern it.
11107 (QCextra, QClanguage): Delete it.
11108 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11109 (font_make_spec, font_make_entity, font_make_object)
11110 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11111 the string. Callers changed.
11112 (font_pixel_size): Adjusted for the format change of font-related
11113 objects.
11114 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11115 (font_style_to_value, font_style_symbolic): New function.
11116 (build_font_family_alist): Delete it.
11117 (font_registry_charsets): Use Fassoc_string instead of
11118 assq_no_quit.
11119 (font_prop_validate_symbol): Don't return null_string.
11120 (font_prop_validate_style): Adjusted for the change of
11121 style-related values in a font vector.
11122 (font_property_table): Delete entries for QClanguage and
11123 QCantialias, add entries for QCavgwidth.
11124 (get_font_prop_index): Delete the 2nd argument FROM.
11125 (font_prop_validate): Arguments changed.
11126 (font_put_extra): Adjusted for the change of font-related objects.
11127 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11128 (font_parse_fcname, font_unparse_fcname)
11129 (font_prepare_composition): Likewise.
11130 (font_parse_family_registry): Renamed from font_merge_old_spec.
11131 (otf_open): Delete the 1st arg entity.
11132 (font_otf_capability): Adjusted for the above change.
11133 (font_score): New arg alternate_families. Adjusted for the change
11134 of font-related objects.
11135 (font_sort_entites): New arg best_only.
11136 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11137 Delete them.
11138 (font_match_p): Check alternate families.
11139 (font_find_object): Delete it.
11140 (font_check_object): New function.
11141 (font_clear_cache): Adjusted for the change of font-related objects.
11142 (font_delete_unmatched): New arg.
11143 (font_list_entities): Call font_driver->list with a spec that
11144 doesn't specify style-related properties.
11145 (font_matching_entity): Arguments changed. Caller changed.
11146 (font_open_entity): Adjusted for the change of font-related objects.
11147 (font_close_object, font_has_char, font_encode_char)
11148 (font_get_name, font_get_spec): Likewise.
11149 (font_spec_from_name, font_clear_prop, font_update_lface):
11150 New functions.
11151 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11152 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11153 (font_at): Adjusted for the change of font-related objects.
11154 (font_range): New function.
11155 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11156 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11157 (Fcopy_font_spec, Fmerge_font_spec): New function.
11158 (Ffont_family_list): Renamed from list-families.
11159 (Finternal_set_font_style_table): Arguments changed.
11160 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11161 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11162 change of font-related objects.
11163 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11164
11165 * fontset.h (struct font_info): Delete it. Most members go to
11166 struct font.
11167 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11168 (enum FONT_SPEC_INDEX): Delete it.
11169 (font_info, list_fonts_func, load_font_func, query_font_func)
11170 (set_frame_fontset_func, find_ccl_program_func)
11171 (get_font_repertory_func, new_fontset_from_font_name): Delete
11172 externs.
11173 (fontset_from_font_name): Extern it.
11174 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11175 (FONT_INFO_FROM_FACE): Deleted.
11176 (face_for_font): Adjust prototype.
11177
11178 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11179 conditionals. Don't check enable_font_backend. Delete all codes
11180 used only when USE_FONT_BACKEND is not defined.
11181 (get_font_info_func, list_font_func, load_font_func)
11182 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11183 (get_font_repertory_func): Delete them.
11184 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11185 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11186 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11187 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11188 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11189 (fontset_compare_rfontdef): New function.
11190 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11191 rfont-defs by qsort. Adjusted for the change of font-group vector.
11192 (load_font_get_repertory): Deleted.
11193 (fontset_find_font): Use new macros to ref/set elements of
11194 font-def and rfont-def.
11195 (fontset_font): Fix the timing of remembering that no font for C.
11196 (free_face_fontset): Do nothing if the face has no fontset.
11197 (face_suitable_for_char_p): Use new macros to ref/set elements of
11198 rfont-def.
11199 (face_for_char): Likewise. Call face_for_char with font_object.
11200 (fs_load_font): Delete. Delete #pragma surrounding it.
11201 (fs_query_fontset): Use strcasecmp instead of strcmp.
11202 (generate_ascii_font_name): Adjusted for the format change of
11203 font-spec.
11204 (Fset_fontset_font): Likewise. Use new macros to set elements of
11205 font-def.
11206 (Fnew_fontset): Use font_unparse_xlfd to generate
11207 FONTSET_ASCII (fontset).
11208 (new_fontset_from_font_name): Deleted.
11209 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11210 a fontset is already created for the font. FIx updating of
11211 Vfontset_alias_alist.
11212 (fontset_ascii_font): Deleted.
11213 (Ffont_info): Adjusted for the format change of font-spec.
11214 (Finternal_char_font): Likewise.
11215 (Ffontset_info): Likewise.
11216 (syms_of_fontset): Don't check load_font_func.
11217
11218 * fns.c (internal_equal): Handle PREV_FONT.
11219
11220 * frame.h: Delete USE_FONT_BACKEND conditional.
11221
11222 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11223 conditionals. Don't check enable_font_backend. Delete all codes
11224 used only when USE_FONT_BACKEND is not defined.
11225 (x_set_font): Call x_new_font, not x_new_fontset2.
11226 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11227 already set for the frame.
11228
11229 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11230 a font-entity by font_make_entity. Use font_intern_prop instead
11231 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11232 font property. If a font is scalable, set avgwidth property to 0.
11233 Set font-entity property by font_put_extra.
11234 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11235 (ffont_driver): Adjusted for the change of struct font_driver.
11236 (ftfont_spec_pattern): New function.
11237 (ftfont_list): Return a list, not vector.
11238 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11239 (ftfont_list_family): Don't downcase names.
11240 (ftfont_free_entity): Deleted.
11241 (ftfont_open): Return a font-object. Adjusted for the change of
11242 struct font. Get underline_thickness and underline_position from
11243 font property. Don't update dpyinfo->smallest_font_height and
11244 dpyinfo->smallest_char_width.
11245 (ftfont_close): Don't free `struct font'.
11246 (ftfont_has_char): Adjusted for the format change of font-entity.
11247 (ftfont_encode_char, ftfont_text_extents): Likewise.
11248
11249 * ftxfont.c (ftxfont_list): Return a list, not vector.
11250 (ftxfont_open): Return a font-object. Adjusted for the change of
11251 struct font. Get underline_thickness and underline_position from
11252 font property. Don't update dpyinfo->smallest_font_height and
11253 dpyinfo->smallest_char_width.
11254 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11255 (ftxfont_draw): Adjusted for the change of struct font.
11256
11257 * image.c (image_ascent): Don't include "charset.h". Include
11258 "character.h" and "font.h".
11259
11260 * lisp.h (enum pvec_type): New member PREV_FONT.
11261 (Fassoc_string): EXFUN it.
11262
11263 * print.c: Include font.h.
11264 (print_object): Handle font-related objects.
11265
11266 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11267 conditionals. Don't check enable_font_backend. Delete all codes
11268 used only when USE_FONT_BACKEND is not defined.
11269 (handle_auto_composed_prop): Do nothing if it->f is not on a
11270 window system. Check how many following characters can be
11271 displayed by the same font.
11272 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11273 'struct font *'.
11274 (get_char_face_and_encoding): Assign the whole encoding task to
11275 the `encode-char' method of a font driver.
11276 (fill_composite_glyph_string): Adjusted for the change of `struct
11277 face' and `struct glyph_string'.
11278 (fill_glyph_string): Likewise.
11279 (get_per_char_metric): Arguments changed.
11280 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11281 and `struct glyph_string'.
11282 (produce_stretch_glyph, calc_line_height_property)
11283 (x_produce_glyphs): Likewise.
11284
11285 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11286 conditionals. Don't check enable_font_backend. Delete all codes
11287 used only when USE_FONT_BACKEND is not defined. Use
11288 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11289 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11290 (Qp): Extern them.
11291 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11292 Deleted.
11293 (struct font_name): Deleted.
11294 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11295 (compare_fonts_by_sort_order): New function.
11296 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11297 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11298 Deleted.
11299 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11300 compare_fonts_by_sort_order.
11301 (Fx_font_family_list): Call Ffont_family_list.
11302 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11303 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11304 (face_symbolic_slant, face_symbolic_swidth)
11305 (split_font_name_into_vector, build_font_name_from_vector)
11306 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11307 (font_rescale_ratio, split_font_name, build_font_name)
11308 (free_font_names, sort_fonts, x_face_list_fonts)
11309 (face_font_available_p, sorted_font_list, cmp_font_names)
11310 (font_list_1, concat_font_list, font_list, remove_duplicates):
11311 Deleted.
11312 (Fx_list_fonts): Use Ffont_list.
11313 (LFACE_AVGWIDTH): Deleted.
11314 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11315 by FONTP.
11316 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11317 (set_lface_from_font_name): Delete it.
11318 (set_lface_from_font): Renamed from
11319 set_lface_from_font_and_fontset. Caller changed. Don't set
11320 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11321 for face.
11322 (merge_face_vectors): Copy font-spec if necessary.
11323 Clear properties of the font-spec if necessary.
11324 (merge_face_ref): Clear properties of the font-spec if necessary.
11325 (Finternal_set_lisp_face_attribute): Likewise.
11326 (set_font_frame_param): Use font_load_for_lface to load a
11327 font-object, and call Fmodify_frame_parameters with it.
11328 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11329 font name by Ffont_xlfd_name.
11330 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11331 QCslant, and QCwidth.
11332 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11333 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11334 Compare fonts by EQ.
11335 (lookup_non_ascii_face): Deleted.
11336 (face_for_font): The 2nd argument changed.
11337 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11338 Check atomic font properties by case insensitive.
11339 (realize_non_ascii_face): Set face->overstrike correctly.
11340 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11341 (dump_realized_face): Get font name from
11342 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11343
11344 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11345 conditionals. Don't check enable_font_backend. Delete all codes
11346 used only when USE_FONT_BACKEND is not defined.
11347 (xic_create_xfontset): Original code deleted and renamed from
11348 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11349 (x_make_gc): Don't set GCFont in GCs.
11350 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11351 opened by "fixed".
11352 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11353 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11354 get_font_repertory_func.
11355
11356 * xfont.c: Include <stdlib.h> and "ccl.h".
11357 (struct xfont_info): New structure.
11358 (xfont_query_font): Deleted.
11359 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11360 moved from xterm.c.
11361 (xfont_driver): Adjusted for the change of struct font_driver.
11362 (compare_font_names): New function.
11363 (xfont_list_pattern): Sort font names case insensitively. Make
11364 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11365 (xfont_list): Return a list, not vector.
11366 (xfont_match): If the font doesn't have QCname property, generate
11367 a name from the other font properties.
11368 (xfont_open): Return a font-object. Adjusted for the change of
11369 struct font. Get underline_thickness and underline_position from
11370 font property. Don't update dpyinfo->smallest_font_height and
11371 dpyinfo->smallest_char_width.
11372 (xfont_close): Don't free struct font.
11373 (xfont_prepare_face): Adjusted for the change of struct font.
11374 (xfont_done_face): Deleted.
11375 (xfont_has_char): Adjusted for the change of struct font.
11376 (xfont_encode_char, xfont_draw): Likewise.
11377 (xfont_check): New function.
11378
11379 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11380 callback function.
11381 (xftfont_match): Adjusted for the format change of font-entity.
11382 (xftfont_open): Adjusted for the format change of font-entity and
11383 font-object. Adjusted for the change of struct font. Return a
11384 font-object. Don't update dpyinfo->smallest_font_height and
11385 dpyinfo->smallest_char_width.
11386 (xftfont_close): Block input while calling XftFontClose.
11387 (xftfont_prepare_face): Don't block input while calling
11388 xftfont_get_colors. Adjusted for the change of struct font.
11389 (xftfont_shape): Return value of error case fixed.
11390
11391 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11392
11393 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11394 conditionals.
11395 (FONT_WIDTH): Return (f)->max_width.
11396 (struct x_display_info): Delete member `font'.
11397 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11398 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11399 (struct x_output): Change type of `font' to `struct font *'.
11400
11401 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11402 conditionals. Don't check enable_font_backend. Delete all codes
11403 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11404 (x_per_char_metric, x_encode_char): Deleted.
11405 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11406 (x_compute_glyph_string_overhangs): Adjusted for the change of
11407 `struct face'.
11408 (x_draw_glyph_string_foreground)
11409 (x_draw_composite_glyph_string_foreground): Likewise.
11410 (x_draw_glyph_string): Likewise. Use font->underline_position and
11411 font->underline_thickness.
11412 (x_new_font): Renamed from x_new_fontset2.
11413 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11414 (x_check_font): Call `check' method of a font driver.
11415 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11416 (x_query_font, x_get_font_repertory): Deleted.
11417 (x_find_ccl_program): Renamed and moved to xfont.c.
11418 (x_redisplay_interface): Adjusted for the change of `struct
11419 redisplay_interface'.
11420
11421 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11422 conditionals. Don't check enable_font_backend. Delete all codes
11423 used only when USE_FONT_BACKEND is not defined. Surround non-used
11424 code by "#ifdef OLD_FONT" and "endif".
11425 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11426
11427 * w32font.h (struct w32font_info): New member.
11428 (FONT_COMPAT): New macro.
11429 (w32font_open_internal): Prototype adjusted.
11430
11431 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11432 OLD_FONT" and "endif".
11433
11434 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11435 conditionals. Don't check enable_font_backend. Delete all codes
11436 used only when USE_FONT_BACKEND is not defined.
11437 (w32font_open): Return a font-object. Make a font-object by
11438 font_make_object. Adjusted for the change of struct w32font_info.
11439 (w32font_close): Don't free struct font. Adjusted for the change
11440 of struct w32font_info.
11441 (w32font_encode_char, w32font_text_extents, w32font_draw):
11442 Adjusted for the change of struct w32font_info.
11443 (w32font_draw): Likewise.
11444 (w32font_list_internal): Return a list, not vector.
11445 (w32font_open_internal): Change the 4th arg to font-object.
11446 Adjusted for the change of struct w32font_info and font-object format.
11447 (add_font_name_to_list): Don't downcase names.
11448 (w32_enumfont_pattern_entity): Make a font-entity by
11449 font_make_entity. Adjusted for the format change of font-entity.
11450 Use FONT_SET_STYLE to set a style-related font property. If a
11451 font is scalable, set avgwidth property to 0. Set font-entity
11452 property by font_put_extra.
11453 (font_matches_spec): Adjusted for the format change of font-entity.
11454 (w32_weight_table, w32_decode_weight): New variables.
11455 (w32_encode_weight): New function.
11456 (fill_in_logfont): Adjusted for the format change of font-spec.
11457 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11458 weight value.
11459 (w32font_driver): Adjusted for the change of struct font_driver.
11460
11461 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11462 conditionals. Don't check enable_font_backend. Surround non-used
11463 code by "#ifdef OLD_FONT" and "endif".
11464 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11465 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11466
11467 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11468 conditionals. Don't check enable_font_backend. Delete all codes
11469 used only when USE_FONT_BACKEND is not defined. Surround non-used
11470 code by "#ifdef OLD_FONT" and "endif".
11471
11472 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11473 (uniscribe_open): Return value changed to font-object.
11474 Adjusted for the format change of font-object.
11475 (uniscribe_otf_capability): Adjusted for the change of struct font.
11476 (add_opentype_font_name_to_list): Don't downcase names.
11477 (uniscribe_font_driver): Adjusted for the change of struct
11478 font_driver.
11479
11480 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
11481
11482 * dispnew.c (update_frame_1): Check if tty output is still valid
11483 before flushing it.
11484
11485 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11486
11487 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11488 to Gtk+ menus.
11489
11490 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11491
11492 * dired.c (file_name_completion): Tweak the code so as to always do it
11493 in a single pass. Tighten the scope of some variables.
11494
11495 * dired.c (Qdefault_directory): New var.
11496 (file_name_completion): Use it instead of Fexpand_file_name.
11497 (syms_of_dired): Initialize it.
11498
11499 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11500
11501 * fileio.c (double_dollars): Remove dead code.
11502
11503 2008-05-10 Eli Zaretskii <eliz@gnu.org>
11504
11505 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11506 Mention w32-get-true-file-attributes in doc string.
11507
11508 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11509
11510 2008-05-09 Glenn Morris <rgm@gnu.org>
11511
11512 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11513 2008-04-23.
11514
11515 2008-05-09 Eli Zaretskii <eliz@gnu.org>
11516
11517 Support for reporting owner and group of each file on MS-Windows:
11518 * dired.c (stat_uname, stat_gname): New functions, with special
11519 implementation for w32.
11520 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11521
11522 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11523 (dflt_group_name): New static variable.
11524 (dflt_group): Rename from the_group.
11525 (init_user_info): Init dflt_group fields. Get user's group name
11526 from LookupAccountSid.
11527 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11528 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11529 New initialization states.
11530 (globals_of_w32): Initialize them to zero. Initialize the default
11531 group name to "None".
11532 (GetFileSecurity_Name): New global var, the name of the function
11533 to call for GetFileSecurity.
11534 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11535 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11536 (get_file_security, get_security_descriptor_owner)
11537 (get_security_descriptor_group, is_valid_sid)
11538 (get_file_security_desc, get_rid, get_name_and_id)
11539 (get_file_owner_and_group): New functions.
11540 (stat): Use get_file_security_desc and get_file_owner_and_group to
11541 report the owner and primary group of each file. Don't ignore the
11542 high 32 bits of file's size, now that st_size is 64-bit wide.
11543 Fix test when to get true file attributes.
11544 (init_user_info): Use get_rid instead of equivalent inline code.
11545 (fstat): Don't ignore the high 32 bits of file's size.
11546
11547 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
11548
11549 * image.c (png_load): Use correct bit-depth for setting background
11550 color.
11551
11552 2008-05-08 Eli Zaretskii <eliz@gnu.org>
11553
11554 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11555 epa-hook.elc.
11556
11557 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
11558
11559 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11560
11561 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11562
11563 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11564 because the original parameters are in pure storage now.
11565 (mac_window): Remove unused params. Update callers.
11566
11567 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11568
11569 * lread.c (substitute_object_recurse): Use lower-level primitives.
11570 Don't signal errors when traversing sub-char-tables.
11571 Don't loop over all the possible characters when traversing char-tables.
11572
11573 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11574 just like we do in print.c.
11575
11576 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11577
11578 * minibuf.c (Ftry_completion): Remove code left over from when we used
11579 scmp instead of Fcompare_strings.
11580
11581 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
11582
11583 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11584
11585 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11586
11587 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11588 Create bitmap context in native byte order.
11589
11590 * macterm.c (XDrawLine)
11591 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11592 context in native byte order.
11593
11594 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11595
11596 * config.in: Regenerate.
11597
11598 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11599 New definitions for Image I/O support.
11600 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11601 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11602 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11603 (mac_data_provider_release_data, image_load_image_io)
11604 [USE_MAC_IMAGE_IO]: New functions.
11605 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11606 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11607 (init_image_func_pointer) [MAC_OSX]: Remove function.
11608 (image_load_quartz2d) [MAC_OSX]: Check availability of
11609 CGImageCreateWithPNGDataProvider at compile time.
11610 Use lowercase `false' for boolean constant.
11611 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11612 Use image_load_image_io.
11613 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11614 Don't check MyCGImageCreateWithPNGDataProvider.
11615 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11616 Don't call init_image_func_pointer.
11617
11618 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11619
11620 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11621 Make variable non-static.
11622 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11623 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11624
11625 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11626 (RED_FROM_ULONG): Mask off higher bits.
11627 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11628
11629 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11630 Include AvailabilityMacros.h.
11631 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11632 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11633
11634 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11635
11636 * chartab.c (Fset_char_table_range): If range is t, really set all
11637 chars to that value.
11638
11639 2008-05-03 Eli Zaretskii <eliz@gnu.org>
11640
11641 * dired.c (Ffile_attributes): Don't allow the device number become
11642 negative.
11643
11644 2008-05-02 Daiki Ueno <ueno@unixuser.org>
11645
11646 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11647
11648 2008-05-02 Juri Linkov <juri@jurta.org>
11649
11650 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11651 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11652 DEFAULT argument as a list of default values in docstrings.
11653
11654 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
11655
11656 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11657
11658 2008-05-01 Martin Rudalics <rudalics@gmx.at>
11659
11660 * dispnew.c (change_frame_size_1): Preserve small windows when
11661 shrinking frames by calling set_window_height|width with third
11662 arg 2.
11663
11664 * window.h (struct window): Replace field too_small_ok by field
11665 resize_proportionally.
11666
11667 * window.c (make_window): Initialize resize_proportionally.
11668 (enlarge_window): Temporarily set resize_proportionally to make
11669 sure that shrink_windows does scale the window proportionally.
11670 (shrink_windows): When window has resize_proportionally set try
11671 to shrink it proportionally by stealing from other windows.
11672 (struct saved_window, Fset_window_configuration)
11673 (compare_window_configurations): Handle resize_proportionally.
11674 (WINDOW_TOTAL_SIZE): New macro.
11675 (window_min_size, shrink_windows, size_window): Use it.
11676 (check_min_window_sizes): Remove. Invalid values of
11677 window-min-height|width are handled by window_min_size_2 now.
11678 (size_window, Fsplit_window, enlarge_window)
11679 (adjust_window_trailing_edge, grow_mini_window): Don't call
11680 check_min_window_sizes.
11681 (window_min_size_2, window_min_size_1, window_min_size):
11682 New argument safe_p for retrieving "safe" minimum sizes.
11683 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11684 (adjust_window_trailing_edge, grow_mini_window):
11685 Adjust arguments of window_min_size... functions.
11686 (shrink_windows): Argument min_size removed. New argument
11687 safe_p allows shrinking windows to their safe minimum sizes.
11688 Calculate minimum size and decide whether a window shall be
11689 deleted for each window individually.
11690 (size_window): When nodelete_p equals 2, tell shrink_windows to
11691 delete windows only if their new minimum size is no more safe.
11692 (shrink_window_lowest_first): Call window_min_size_1 to make
11693 sure to preserve modeline of bottom-most window when resizing
11694 the minibuffer.
11695 (Fset_window_configuration, Fcurrent_window_configuration)
11696 (compare_window_configurations): Do not handle
11697 window-min-height|width any more.
11698 (syms_of_window): Clarify window-min-height|width doc-strings.
11699
11700 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11701
11702 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11703 some more. Copy some of the code from Ftry_completions.
11704 Remove special case code that dates back to initial revision when the
11705 slash was only added when necessary and that can't trigger nowadays.
11706
11707 2008-04-27 Kenichi Handa <handa@m17n.org>
11708
11709 * font.c (font_prop_validate): Signal `error' instead of `font'.
11710
11711 2008-04-29 Jason Rumney <jasonr@gnu.org>
11712
11713 * w32fns.c (Fw32_battery_status): New defun.
11714 (syms_of_w32fns): Defsubr it.
11715
11716 2008-04-28 Andreas Schwab <schwab@suse.de>
11717
11718 * dired.c (file_name_completion): Fix another mixing of encoded
11719 and decoded names.
11720
11721 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
11722
11723 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11724
11725 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
11726
11727 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11728
11729 2008-04-27 Andreas Schwab <schwab@suse.de>
11730
11731 * dired.c (file_name_completion): Fix inappropriate mixing of
11732 encoded and decoded names.
11733
11734 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11735
11736 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11737
11738 2008-04-26 Eli Zaretskii <eliz@gnu.org>
11739
11740 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11741 2008-03-31, it's not needed anymore with `struct stat' definition
11742 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11743 for the same reasons.
11744
11745 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11746
11747 * m/sparc.h: Additional redefinitions for GNU/Linux.
11748
11749 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11750
11751 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11752 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11753 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11754 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11755 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11756 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11757 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11758 Likewise.
11759
11760 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11761 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11762 (mac_ax_number_of_characters): Add externs.
11763 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11764 [USE_MAC_TSM]: Likewise.
11765 (mac_handle_text_input_event) [MAC_OSX]:
11766 Handle kEventTextInputOffsetToPos for no active input area case.
11767 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11768 (mac_handle_document_access_event)
11769 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11770 (install_application_handler) [MAC_OSX]: Register handlers for
11771 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11772 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11773 Register mac_handle_document_access_event.
11774
11775 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11776 Make functions non-static.
11777
11778 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11779
11780 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11781 (read_file_name_completion_ignore_case, insert_default_directory)
11782 (Qdefault_directory): Move to minibuffer.el.
11783 (Fread_file_name): Call the new `read-file-name' instead.
11784
11785 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11786
11787 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11788 Make function non-static.
11789 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11790 Remove function.
11791 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11792 Move to mactoolbox.c.
11793 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11794
11795 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11796 (mac_rect_make): New macro.
11797
11798 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11799 instead of float.
11800 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11801 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11802 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11803 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11804 CGRectMake.
11805 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11806 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11807 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11808 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11809 instead of WindowRef in argument type.
11810 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11811 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11812 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11813 instead of DISPLAY. All uses changed.
11814 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11815 (x_calc_absolute_position): Simplify so as not to use
11816 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11817
11818 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11819 instead of WindowRef in argument type.
11820 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11821 [TARGET_API_MAC_CARBON]: Remove externs.
11822 (create_apple_event, mac_event_parameters_to_lisp)
11823 [TARGET_API_MAC_CARBON]: Add externs.
11824
11825 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11826 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11827 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11828 is clicked.
11829 (x_activate_menubar): Remove extern for saved_menu_event_location.
11830 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11831 Move from mac.c.
11832
11833 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11834
11835 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11836 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11837
11838 2008-04-23 Jason Rumney <jasonr@gnu.org>
11839
11840 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11841 attributes only for local files.
11842
11843 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11844 default to Qlocal.
11845
11846 2008-04-22 Juri Linkov <juri@jurta.org>
11847
11848 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11849 read-buffer-to-switch instead of using the letter "B".
11850
11851 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11852
11853 * fileio.c (Qdefault_directory): New variable.
11854 (Fread_file_name): Use it to pass `dir' to the completion functions.
11855
11856 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
11857
11858 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11859
11860 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11861
11862 * keyboard.c (Vpre_help_message): Remove.
11863 (show_help_echo): Remove default C code.
11864
11865 * dired.c (directory_files_internal, file_name_completion):
11866 Only call ENCODE_FILE if the string is indeed decoded.
11867
11868 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11869
11870 * Makefile.in (TOOLKIT_DEFINES): Remove.
11871 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11872
11873 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11874
11875 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11876 (mactoolbox.o): New target.
11877
11878 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11879 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11880
11881 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11882 Use mac_set_frame_window_background instead of XSetWindowBackground.
11883 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11884 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11885 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11886 instead of SetWindowTitleWithCFString.
11887 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11888 Move function to mactoolbox.c.
11889 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11890 Use mac_set_window_modified instead of SetWindowModified.
11891 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11892 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11893 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11894 FrontNonFloatingWindow. Use mac_activate_window instead of
11895 ActivateWindow. Use mac_active_non_floating_window instead of
11896 ActiveNonFloatingWindow.
11897 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11898 Use mac_show_hourglass and mac_hide_hourglass.
11899 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11900 instead of GetGlobalMouse.
11901 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11902 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11903 Use mac_bring_window_to_front instead of BringToFront.
11904 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11905 mactoolbox.c.
11906 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11907 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11908 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11909 mactoolbox.c.
11910
11911 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11912 (XtPointer): Move typedef from macmenu.c.
11913 (enum button_type): Move enum from macmenu.c.
11914 (widget_value): Move typedef from macmenu.c.
11915 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11916 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11917 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11918 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11919 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11920 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11921 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11922 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11923 (Selection): Move typedef from macselect.c.
11924 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11925 macterm.c.
11926 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11927 (mac_is_window_collapsed, mac_bring_window_to_front)
11928 (mac_send_window_behind, mac_hide_window, mac_show_window)
11929 (mac_collapse_window, mac_front_non_floating_window)
11930 (mac_active_non_floating_window, mac_activate_window)
11931 (mac_move_window_structure, mac_move_window, mac_size_window)
11932 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11933
11934 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11935 (enum mac_menu_kind): Move enum to mactoolbox.c.
11936 (min_menu_id): Move variable to mactoolbox.c.
11937 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11938 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11939 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11940 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11941 [TARGET_API_MAC_CARBON]: Likewise.
11942 (XtPointer): Move typedef to macgui.h.
11943 (enum button_type): Move enum to macgui.h.
11944 (widget_value): Move typedef to macgui.h.
11945 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11946 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11947 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11948 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11949 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11950 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11951 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11952 (popup_activated_flag): Make variable non-static.
11953 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11954 (add_menu_item, fill_menu, dispose_menus):
11955 Move functions to mactoolbox.c.
11956 (restore_show_help_function, menu_target_item_handler)
11957 (install_menu_target_item_handler, mac_handle_dialog_event)
11958 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11959 [TARGET_API_MAC_CARBON]: Likewise.
11960 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11961 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11962 (find_and_call_menu_selection, name_is_separator): Make function
11963 non-static.
11964 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11965 to mactoolbox.c.
11966 (set_frame_menubar): Don't call install_menu_quit_handler.
11967 (menu_item_selection): New variable.
11968 (mac_menu_show): Use create_and_show_popup_menu.
11969 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11970 selection but set variable menu_item_selection. All uses changed.
11971 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11972 Call install_menu_quit_handler. Move to mactoolbox.c.
11973
11974 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11975 (Selection): Move typedef to macgui.h.
11976 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11977 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11978 Make variables non-static.
11979 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11980 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11981 Make functions non-static.
11982 (Vmac_service_selection) [MAC_OSX]: Likewise.
11983 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11984 (mac_valid_selection_target_p, mac_clear_selection)
11985 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11986 (mac_put_selection_value, mac_selection_has_target_p)
11987 (mac_get_selection_value, mac_get_selection_target_list)
11988 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11989 Move functions to mactoolbox.c.
11990 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11991 Likewise.
11992 (copy_scrap_flavor_data, mac_handle_service_event)
11993 (install_service_handler) [MAC_OSX]: Likewise.
11994 (syms_of_macselect) <Vmac_dnd_known_types>:
11995 Use mac_dnd_default_known_types.
11996
11997 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11998 Move to mactoolbox.c.
11999 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12000 (Fx_selection_owner_p): Add EXFUN.
12001 (install_window_handler, remove_window_handler, XSetWindowBackground):
12002 Remove externs.
12003 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12004 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12005 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12006 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12007 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12008 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12009 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12010 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12011 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12012 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12013 (mac_valid_selection_target_p, mac_clear_selection)
12014 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12015 (mac_put_selection_value, mac_selection_has_target_p)
12016 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12017 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12018 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12019 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12020 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12021 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12022 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12023 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12024 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12025
12026 * mactoolbox.c: New file.
12027
12028 2008-04-18 Jason Rumney <jasonr@gnu.org>
12029
12030 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12031
12032 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12033
12034 * character.c (Fmultibyte_char_to_unibyte):
12035 Return latin1 chars unchanged.
12036
12037 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12038 relocated if it points to `name'.
12039
12040 2008-04-17 Kenichi Handa <handa@m17n.org>
12041
12042 * data.c (Faset): Allow setting a multibyte character in an
12043 ASCII-only unibyte string.
12044
12045 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12046
12047 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12048
12049 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12050 done in config.h.
12051
12052 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
12053
12054 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12055 (Fchar_direction): Add usage in the docstring.
12056
12057 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
12058
12059 * keyboard.c (read_key_sequence): Remove always-true checks.
12060
12061 2008-04-14 Jason Rumney <jasonr@gnu.org>
12062
12063 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12064 compatibility struct, for better underline positioning.
12065
12066 2008-04-13 David Hansen <david.hansen@gmx.net>
12067
12068 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12069 string.
12070
12071 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12072
12073 * m/hp800.h (XUINT, XSET): Remove.
12074
12075 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
12076
12077 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12078 previous change.
12079
12080 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12081
12082 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12083 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12084
12085 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12086
12087 * keymap.h (map_keymap_canonical): Declare.
12088 * xmenu.c (single_keymap_panes): Use it.
12089
12090 2008-04-11 Glenn Morris <rgm@gnu.org>
12091
12092 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12093 set the target's value to that of the alias.
12094
12095 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12096
12097 * term.c (set_tty_color_mode): Left over typo.
12098
12099 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
12100
12101 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12102 only after check for file name handler functions. Signal, when
12103 native functionality is not supported.
12104 (syms_of_fileio): Declare it unconditionally.
12105
12106 2008-04-10 Jason Rumney <jasonr@gnu.org>
12107
12108 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12109 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12110
12111 * w32.c (logon_network_drive): Also logon to remote drives that
12112 are mapped to drive letters.
12113
12114 2008-04-10 Glenn Morris <rgm@gnu.org>
12115
12116 * xdisp.c (truncate-partial-width-windows): Doc fix.
12117
12118 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12119
12120 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12121 Move functions to minibuffer.el.
12122 (syms_of_fileio): Don't declare them.
12123
12124 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12125
12126 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12127 (syms_of_minibuf): Remove its initialization.
12128
12129 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12130
12131 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
12132
12133 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12134
12135 2008-04-09 Jason Rumney <jasonr@gnu.org>
12136
12137 * makefile.w32-in (distclean): Delete makefile too.
12138 (maintainer-clean): New target.
12139
12140 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12141
12142 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12143 for new font backend and composite cases.
12144
12145 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12146
12147 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12148 Most of the code moved to run_timers.
12149 (do_pending_atimers): Call run_timers.
12150 (run_timers): New function.
12151
12152 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12153 run atimers.
12154
12155 * process.c (wait_reading_process_output): The same as above.
12156
12157 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12158
12159 * minibuf.c (last_exact_completion): Remove variable.
12160 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12161 (complete_and_exit_1, complete_and_exit_2)
12162 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12163 (Fdisplay_completion_list, display_completion_list_1)
12164 (Fminibuffer_completion_help, Fself_insert_and_exit)
12165 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12166 minibuffer.el.
12167 (syms_of_minibuf): Remove corresponding initializations.
12168
12169 * keyboard.c (Qdeactivate_mark): New var.
12170 (command_loop_1): Use it to call `deactivate-mark'.
12171 (syms_of_keyboard): Initialize it.
12172
12173 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12174 to another frame.
12175 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12176 Don't call set_tty_color_mode.
12177 (store_frame_param): Reset previous_frame rather than call
12178 set_tty_color_mode.
12179 * term.c (set_tty_color_mode): Rewrite.
12180 * dispextern.h (set_tty_color_mode): New type.
12181 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12182
12183 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12184
12185 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12186 for generic chars, which do not exist any more in emacs-unicode.
12187
12188 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
12189
12190 * coding.c (detect_coding_emacs_mule)
12191 (Ffind_operation_coding_system): Fix typo.
12192
12193 2008-04-08 Jason Rumney <jasonr@gnu.org>
12194
12195 * w32uniscribe.c (SNAME): Extract only symbol name.
12196
12197 * w32font.h (struct w32_metric_cache): New struct.
12198 (w32font_info): Use it.
12199 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12200 (CACHE_BLOCKSIZE): New constants.
12201
12202 * w32font.c (Qja, Qko, Qzh): New symbols.
12203 (syms_of_w32font): Initialise them.
12204 (font_matches_spec): Use them to filter by language.
12205 (recompute_cached_metrics): Remove function.
12206 (compute_metrics, clear_cached_metrics): New functions.
12207 (w32font_encode_char): Use them to manage metric cache.
12208 (w32font_text_extents): Cache metrics for all glyphs on demand.
12209 Delay converting glyph indices to WORD until needed.
12210 (w32font_open_internal): Initialize metric cache to empty.
12211 (registry_to_w32_charset): Charset should always be a symbol.
12212 (fill_in_logfont, list_all_matching_fonts): Family should
12213 always be a symbol.
12214
12215 2008-04-06 Jason Rumney <jasonr@gnu.org>
12216
12217 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12218 Give up if glyph indices not supported. Use uniscribe obtained
12219 ABC widths for individual metrics. Map glyph clusters back to
12220 characters using fClusterStart flag. Return number of glyphs
12221 produced, not chars processed.
12222 (uniscribe_shape): Map char at FROM to current glyph.
12223
12224 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12225
12226 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12227 Use SetMenuItemHierarchicalMenu.
12228
12229 2008-04-05 Jason Rumney <jasonr@gnu.org>
12230
12231 * image.c (pbm_load): Allow color values up to 65535.
12232 Throw an error if max_color_idx is outside the supported range.
12233 Report an error when image size is invalid.
12234 Read two bytes at a time when raw images have max_color_idx above 255.
12235
12236 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12237
12238 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12239 cFileName a file name that includes `?' characters, use the 8+3
12240 alias in cAlternateFileName instead.
12241
12242 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12243
12244 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12245 append "CCL: Quitted" when the CCL program is quitted.
12246 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12247
12248 * ccl.h (struct ccl_program): New member quit_silently.
12249
12250 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
12251
12252 * search.c (compile_pattern_1): Treat non-nil and non-string of
12253 search-spaces-regexp as nil.
12254
12255 * minibuf.c (Fassoc_string): Tweak docstring.
12256
12257 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12258
12259 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12260 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12261 2008-03-14 to force inode be positive.
12262
12263 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12264 _S_* ones, since we now use our own sys/stat.h.
12265 (stat, fstat): Don't mangle the inode number.
12266 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12267
12268 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12269
12270 * frame.h (struct frame): Give one more bit to `visible' since we use
12271 values larger than 1 to indicate obscured frames on ttys.
12272
12273 * keymap.c (Qkeymap_canonicalize): New var.
12274 (Fmap_keymap_internal): New fun.
12275 (describe_map): Use keymap-canonicalize.
12276
12277 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12278 (Fundo_boundary): Set them.
12279 (syms_of_undo): Initialize them.
12280 (record_point): Use them instead of last_point_position*.
12281 (last_undo_buffer): Change type.
12282
12283 2008-04-04 Jason Rumney <jasonr@gnu.org>
12284
12285 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12286 (recompute_cached_metrics): Don't set ascent and descent per char.
12287
12288 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12289 (uniscribe_check_otf): Add GC protection before consing.
12290 Rearrange loop for counting features.
12291
12292 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12293
12294 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12295 buffer with byte-size of source buffer.
12296
12297 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
12298
12299 * callint.c (Fcall_interactively): Handle temporary region even
12300 when shift-select-mode is off.
12301
12302 2008-04-03 Jason Rumney <jasonr@gnu.org>
12303
12304 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12305
12306 2008-04-03 Kenichi Handa <handa@m17n.org>
12307
12308 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12309 (CATEGORY_MASK_UTF_16): Likewise.
12310 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12311 binary file.
12312 (detect_coding): Add null-byte detection for a binary file.
12313 (detect_coding_system): Likewise.
12314
12315 2008-04-03 Jason Rumney <jasonr@gnu.org>
12316
12317 * w32uniscribe.c: New file.
12318
12319 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12320
12321 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12322
12323 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12324 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12325 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12326 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12327 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12328 (Qphonetic): New symbols.
12329 (syms_of_w32font): Initialize them.
12330 (font_supported_scripts): Use them.
12331 (w32font_list_family): List all charsets.
12332 (w32font_text_extents, recompute_cached_metrics): Fix metric
12333 calculations.
12334 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12335 Give opentype fonts their own format.
12336 (font_matches_spec): New arguments backend and logfont.
12337 Handle :otf spec for uniscribe backend.
12338 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12339 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12340
12341 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12342 font backend.
12343 (globals_of_w32fns): Initialize uniscribe font backend.
12344
12345 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12346 dependencies.
12347 (w32uniscribe.$(O)): New file to build.
12348 (FONT_OBJ): Include w32uniscribe.$(O).
12349 (LIBS): Add uniscribe libraries.
12350
12351 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12352
12353 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
12354
12355 * callint.c (Vshift_select_mode): New var.
12356 (Finteractive): Document new ^ spec.
12357 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12358 is present.
12359
12360 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12361 (command_loop_1): Avoid running the direct display versions of
12362 forward-char and backward-char if shift-selection may occur.
12363 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12364 shift-translation takes place.
12365
12366 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12367 avoid clobbering by define-minor-mode.
12368
12369 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12370 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12371
12372 * syntax.c (Fforward_word): Add ^ interactive spec.
12373
12374 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12375 (Fscroll_right): Add ^ interactive spec.
12376
12377 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12378
12379 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12380
12381 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12382
12383 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12384
12385 2008-03-31 Juri Linkov <juri@jurta.org>
12386
12387 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12388
12389 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12390
12391 * gtkutil.c (xg_set_geometry): Fix indentation.
12392 (xg_resize_outer_widget): Remove.
12393 (x_wm_size_hint_off): Fix indentation.
12394 (xg_frame_set_char_size): Call flush_and_sync after
12395 gtk_window_resize.
12396 (x_wm_set_size_hint): Pass NULL as geometry window to
12397 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12398 Add menu bar and tool bar height to base height.
12399 (xg_update_frame_menubar, free_frame_menubar)
12400 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12401 (update_frame_tool_bar, free_frame_tool_bar):
12402 Change xg_resize_outer_widget to xg_frame_set_char_size.
12403
12404 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
12405
12406 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12407 (Fdbus_call_method): New parameter TIMEOUT.
12408 (dbus-send-signal): Optimize UNGCPRO call.
12409
12410 2008-03-29 Juri Linkov <juri@jurta.org>
12411
12412 * window.c (Fdisplay_buffer): Move call to
12413 Vsplit_window_preferred_function out of conditions that check
12414 if window is eligible for vertical splitting.
12415 When Vsplit_window_preferred_function is non-nil, call it and use
12416 its non-nil return value as window. Otherwise, continue doing
12417 vertical splitting using Fsplit_window with arg horflag=nil.
12418 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12419 default value from `split-window' to nil.
12420
12421 2008-03-29 Juri Linkov <juri@jurta.org>
12422
12423 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12424 for interactive code letters 'b' and 'B'.
12425
12426 2008-03-29 Eli Zaretskii <eliz@gnu.org>
12427
12428 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12429 multibyte string.
12430
12431 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12432
12433 * keyboard.c (pending_funcalls): New var.
12434 (timer_check): Run it.
12435 (syms_of_keyboard): Initialize it.
12436 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12437 (Vdelete_terminal_functions): New vars.
12438 (syms_of_terminal): Initialize them.
12439 (Fdelete_terminal): Run delete-terminal-functions.
12440 * xdisp.c (safe_eval): Rewrite.
12441 (safe_call2): New fun.
12442 * frame.c (Qdelete_frame_functions): New var.
12443 (syms_of_frame): Initialize it.
12444 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12445 * lisp.h (safe_call2, pending_funcalls): Declare.
12446
12447 2008-03-28 Andreas Schwab <schwab@suse.de>
12448
12449 * indent.c (Fmove_to_column): Move declaration before statements.
12450
12451 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12452
12453 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12454 (struct frame): Use bit fields for boolean vars.
12455
12456 * process.c (server_accept_connection): Simplify naming.
12457 (emacs_get_tty_pgrp): Use SDATA.
12458
12459 * coding.c (decode_coding_object): Fix last change.
12460
12461 2008-03-27 Jason Rumney <jasonr@gnu.org>
12462
12463 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12464
12465 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12466
12467 * charset.c (Fdefine_charset_internal): Change the way of
12468 registering charsets in Vcharset_order_list.
12469 (syms_of_charset): Make the charset `eight-bit' supplementary.
12470
12471 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12472
12473 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12474 operations, to avoid having the difference between pointers
12475 overflow.
12476
12477 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12478
12479 * indent.c (check_display_width): New fun.
12480 (scan_for_column): Use it.
12481
12482 * data.c (syms_of_data): Mark most-positive-fixnum and
12483 most-negative-fixnum as constants.
12484
12485 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12486
12487 * indent.c (scan_for_column): Extract from current_column_1.
12488 Merge with the same code from Fmove_to_column.
12489 (current_column_1, Fmove_to_column): Use it.
12490
12491 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12492
12493 * keymap.c (map_keymap_internal): New fun.
12494 (map_keymap): Use it.
12495 (Fmap_keymap_internal): New fun.
12496 (Fmap_keymap): Remove left-out test from before make_save_value.
12497
12498 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12499
12500 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12501 Use XCAR/XCDR.
12502
12503 * process.h (struct Lisp_Process): Remove filter_multibyte.
12504 * process.c (QCfilter_multibyte): Remove.
12505 (setup_process_coding_systems): Don't use filter_multibyte.
12506 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12507 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12508 (Fset_process_filter_multibyte): Change the coding-system to
12509 approximate the previous behavior.
12510 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12511 coding-system.
12512
12513 * coding.c (decode_coding_object): When not decoding into a buffer,
12514 obey the coding system's preference of (uni|multi)byte.
12515
12516 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12517
12518 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12519 every char is changed and has a different byte-length.
12520 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12521 Fix int -> EMACS_INT.
12522
12523 2008-03-23 David Hansen <david.hansen@gmx.net>
12524
12525 * dbusbind.c (xd_read_message): Remove extra copying of message
12526 strings. Check for NULL `interface' or `member'.
12527
12528 2008-03-22 Eli Zaretskii <eliz@gnu.org>
12529
12530 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12531 cFileName a file name that includes `?' characters, use the 8+3
12532 alias in cAlternateFileName instead.
12533
12534 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12535
12536 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12537
12538 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12539
12540 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12541 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12542 work on current_buffer only instead (that was already the case
12543 for some of the code anyway).
12544 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12545 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12546 (SET_PT, SET_PT_BOTH): Adjust.
12547 * intervals.h (set_point, temp_set_point, set_point_both)
12548 (temp_set_point_both): Remove redundant declarations.
12549
12550 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12551
12552 * fileio.c (Finsert_file_contents):
12553 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12554 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12555 when buffer != current_buffer anyway.
12556
12557 2008-03-20 Andreas Schwab <schwab@suse.de>
12558
12559 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12560 as default.
12561
12562 2008-03-19 Jason Rumney <jasonr@gnu.org>
12563
12564 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12565 (syms_of_w32fns): Initialize them.
12566 (HOURGLASS_ID): New constant.
12567 (x_window_to_frame): Don't check hourglass_window.
12568 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12569 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12570 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12571 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12572 Only change the cursor if hourglass is not active.
12573 (Fx_create_frame): Initialize frame's current_cursor.
12574 (hourglass_atimer): Remove.
12575 (hourglass_started): New function.
12576 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12577 (show_hourglass): Adapt to w32, changing argument to frame.
12578
12579 * w32term.h (struct w32_output): Remove hourglass_window.
12580 Add current_cursor.
12581
12582 * eval.c (call_debugger, Fsignal):
12583 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12584 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12585 (Fexecute_extended_command, cancel_hourglass_unwind):
12586 * minibuf.c (read_minibuf):
12587 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12588
12589 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12590
12591 * window.c (run_funs): New fun.
12592 (run_window_configuration_change_hook): Use it to run the buffer-local
12593 and the global part of the hook.
12594
12595 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12596 (unwind_format_mode_line): Restore selected window.
12597 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12598
12599 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12600
12601 * editfns.c (Fchar_equal): Check they are valid characters.
12602
12603 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12604
12605 2008-03-17 Andreas Schwab <schwab@suse.de>
12606
12607 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12608 against a charset.
12609
12610 * lisp.h (Fbuffer_list): Declare.
12611
12612 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
12613
12614 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12615 handlebox_widget is != 0.
12616
12617 2008-03-16 Juri Linkov <juri@jurta.org>
12618
12619 * callint.c (Fcall_interactively): For interactive code letters
12620 'b' and 'B' put the buffer list into the list of default "future"
12621 values of the minibuffer.
12622
12623 2008-03-16 Andreas Schwab <schwab@suse.de>
12624
12625 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12626 modifiers.
12627
12628 * regex.c (re_match_2_internal): Correct matching of a charset
12629 against latin-1 characters.
12630
12631 2008-03-16 Kenichi Handa <handa@m17n.org>
12632
12633 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12634 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12635 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12636 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12637 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12638 CHAR_STRING_ADVANCE.
12639 (produce_chars): Fix for the case that the source and the
12640 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12641 instead of CHAR_STRING_ADVANCE.
12642 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12643 STRING_CHAR_ADVANCE.
12644
12645 2008-03-15 Andreas Schwab <schwab@suse.de>
12646
12647 * regex.c (re_match_2_internal): Correct matching of eight bit
12648 characters in unibyte strings.
12649
12650 2008-03-15 Martin Rudalics <rudalics@gmx.at>
12651
12652 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12653 at end of range when it coincides with the end of the buffer.
12654
12655 2008-03-14 Eli Zaretskii <eliz@gnu.org>
12656
12657 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12658
12659 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12660
12661 2008-03-14 Jason Rumney <jasonr@gnu.org>
12662
12663 * editfns.c (initial_tz): New variable.
12664 (syms_of_editfns): Initialize it.
12665 (Fset_time_zone_rule): Set it when first called.
12666 Use it when TZSTRING is nil.
12667
12668 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12669 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12670 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12671 (globals_of_w32fns): Initialize them.
12672 (compute_tip_xy): Use them to position tooltips.
12673
12674 2008-03-14 Glenn Morris <rgm@gnu.org>
12675
12676 * emacs.c (main): Revert previous change.
12677 (standard_args): Revert -internal-script back to -scriptload,
12678 and remove the long-option form.
12679
12680 2008-03-13 Glenn Morris <rgm@gnu.org>
12681
12682 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12683 Remove option -enable-font-backend.
12684
12685 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12686
12687 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12688
12689 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12690
12691 * xterm.c (x_connection_closed): For GTK: If this is the last
12692 terminal just exit without closing the display.
12693
12694 2008-03-11 Jason Rumney <jasonr@gnu.org>
12695
12696 * w32font.c (w32font_full_name): Use floor to round.
12697
12698 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
12699
12700 * sound.c (alsa_configure): Declare vol at beginning of block.
12701
12702 * fontset.c (Ffontset_info): Remove extra semicolon.
12703
12704 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12705
12706 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12707 size of resulting string.
12708
12709 2008-03-10 Jason Rumney <jasonr@gnu.org>
12710
12711 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12712
12713 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12714
12715 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12716 Don't pretend as if characters with display property haven't been
12717 consumed for string-replacing-string case.
12718
12719 2008-03-08 Kim F. Storm <storm@cua.dk>
12720
12721 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12722 (get_next_display_element, next_element_from_string)
12723 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12724
12725 2008-03-08 Andreas Schwab <schwab@suse.de>
12726
12727 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12728
12729 2008-03-06 Jason Rumney <jasonr@gnu.org>
12730
12731 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12732 when charset not specified. Only translate ANSI to unicode when
12733 font_type is truetype.
12734 (w32font_coverage_ok): New function.
12735 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12736
12737 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12738
12739 * lread.c (Fread_char): Resolve modifiers.
12740 (Fread_char_exclusive): Likewise.
12741
12742 * character.c (char_resolve_modifier_mask): New function.
12743 (char_string): Use char_resolve_modifier_mask.
12744 (Fchar_resolve_modifiers): New function.
12745 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12746 function.
12747
12748 2008-03-04 Jason Rumney <jasonr@gnu.org>
12749
12750 * makefile.w32-in: Always include w32font.c in the build.
12751 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12752
12753 2008-03-04 Andreas Schwab <schwab@suse.de>
12754
12755 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12756 (versionclean): Likewise.
12757
12758 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
12759
12760 * .cvsignore: Add oo.
12761
12762 2008-03-03 Andreas Schwab <schwab@suse.de>
12763
12764 * coding.c (decode_coding_object): Inhibit gap shrinking while
12765 decoding in place.
12766
12767 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12768
12769 * w32term.c: Remove unused include "gnu.h".
12770 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12771
12772 * gnu.h: Rename to ...
12773 * emacs-icon.h: ... this.
12774 * xterm.c: Use emacs-icon.h instead of gnu.h.
12775 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12776
12777 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
12778
12779 * w32font.c: Include math.h.
12780
12781 2008-03-03 Jason Rumney <jasonr@gnu.org>
12782
12783 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12784 Compute options separately.
12785 (w32font_open_internal): Set glyph_idx before caching metrics.
12786
12787 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12788 Define if system headers don't.
12789 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12790 (w32font_encode_char): Don't declare here.
12791
12792 * w32font.c (Quniscribe, QCformat): New symbols.
12793 (syms_of_w32font): Define them.
12794 (w32font_has_char): Indicate uncertainty.
12795 (w32font_encode_char): Encode as glyph point. Make static.
12796 (recompute_cached_metrics): New function.
12797 (w32font_open_internal): Use it. Set font to use glyph points
12798 initially. Set format based on type of font.
12799 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12800 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12801 on it. Set format based on information available here.
12802 (add_font_entity_to_list): Identify backend based on opentype_only.
12803
12804 2008-03-02 Andreas Schwab <schwab@suse.de>
12805
12806 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12807
12808 * coding.c (decode_coding_big5, produce_chars):
12809 Fix typos in last change.
12810
12811 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12812
12813 * gnu.h: New icon.
12814
12815 2008-03-02 Kenichi Handa <handa@m17n.org>
12816
12817 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12818 `dos', don't decode '\r' if that is the last in the source.
12819 (decode_coding_utf_16, decode_coding_emacs_mule)
12820 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12821 (decode_coding_raw_text, decode_coding_charset): Likewise.
12822 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12823
12824 2008-03-01 Jason Rumney <jasonr@gnu.org>
12825
12826 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12827
12828 2008-03-01 Kim F. Storm <storm@cua.dk>
12829
12830 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12831
12832 2008-03-01 Jason Rumney <jasonr@gnu.org>
12833
12834 * w32font.c (w32font_full_name): New function.
12835 (w32font_open_internal): Use it.
12836
12837 2008-03-01 Kim F. Storm <storm@cua.dk>
12838
12839 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12840
12841 2008-03-01 Jason Rumney <jasonr@gnu.org>
12842
12843 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12844
12845 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12846
12847 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12848 xg_frame_resized when the event is for the edit widget.
12849
12850 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12851
12852 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12853 set_char_size.
12854 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12855 operations on widgets here. Just set frame size if needed.
12856 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12857 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12858 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12859 the whole frame.
12860 (xg_create_tool_bar): Move attachment of the tool bar to
12861 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12862 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12863
12864 2008-03-01 Jason Rumney <jasonr@gnu.org>
12865
12866 * w32fns.c (w32_msg_pump): Disable debug code.
12867
12868 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12869
12870 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12871
12872 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12873
12874 * xdisp.c (next_overlay_string): Don't set
12875 overlay_strings_at_end_processed_p if we're currently reading from
12876 a display string.
12877
12878 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12879
12880 * xdisp.c (get_overlay_strings_1): Fix typo.
12881
12882 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12883
12884 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12885
12886 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12887
12888 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12889
12890 * xdisp.c (display_mode_element): Cancel the previous change.
12891 (decode_mode_spec): Likewise.
12892 (handle_auto_composed_prop): Don't make composition if it->string
12893 is a string.
12894
12895 2008-02-27 Kim F. Storm <storm@cua.dk>
12896
12897 * lisp.h (GLYPH): Change type from int to struct with separate char
12898 and face_id members.
12899 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12900 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12901 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12902 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12903 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12904 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12905 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12906 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12907 handle new Lisp glyph code encoding, either an integer or a cons.
12908
12909 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12910 (GLYPH_ALIAS): Delete.
12911 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12912 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12913 (GLYPH_FROM_CHAR): Replace macro by ...
12914 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12915
12916 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12917 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12918 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12919 (GLYPH_INVALID_P): New macro.
12920 (spec_glyph_lookup_face): Update prototype.
12921
12922 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12923 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12924 new glyph code encoding.
12925 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12926 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12927
12928 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12929 Adapt to new glyph type and new glyph code encoding.
12930
12931 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12932
12933 * indent.c (current_column, current_column_1, Fmove_to_column)
12934 (compute_motion): Adapt to new glyph code encoding.
12935
12936 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12937
12938 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
12939
12940 * process.c (wait_reading_process_output): Check for window
12941 changes caused by timers.
12942 Suggested by Johan Bockgård.
12943
12944 2008-02-27 Glenn Morris <rgm@gnu.org>
12945
12946 * emacs.c (USAGE1): Add `--disable-font-backend'.
12947
12948 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12949
12950 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12951 is made to the buffer.
12952
12953 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12954
12955 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12956 (face_at_string_position):
12957 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12958 (face_at_string_position):
12959 * xdisp.c (display_string, next_overlay_change):
12960 * buffer.h (overlays_at):
12961 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12962 Update callers.
12963
12964 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
12965
12966 * editfns.c (Fformat): Doc fix.
12967
12968 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
12969
12970 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12971 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12972 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12973
12974 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12975
12976 * buffer.c (Fbuffer_swap_text): New function.
12977 (syms_of_buffer): Defsubr it.
12978
12979 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
12980
12981 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12982
12983 2008-02-25 Jason Rumney <jasonr@gnu.org>
12984
12985 * w32font.c (w32font_draw): Draw one character at a time when padding.
12986
12987 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12988
12989 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12990 Handle a nil arg. Use run_window_configuration_change_hook.
12991 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12992 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12993 Use run_window_configuration_change_hook.
12994
12995 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12996
12997 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12998 1-pixel width.
12999
13000 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13001
13002 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13003 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13004 if the glyph in the font is zero pixel with.
13005
13006 * dispextern.h (struct glyph_string): New member padding_p.
13007
13008 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13009
13010 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13011
13012 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13013
13014 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13015
13016 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13017
13018 2008-02-25 Jason Rumney <jasonr@gnu.org>
13019
13020 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13021
13022 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13023
13024 Allow fine-grained image-cache flushing.
13025 * dispextern.h (struct image): Add `dependencies' field.
13026 (clear_image_caches): Change arg to Lisp_Object.
13027 * image.c (make_image): Initialize `dependencies' field.
13028 (clear_image_cache): Change arg to allow fine-grained flushing.
13029 Perform the flush even if image-cache-eviction-delay is nil.
13030 (clear_image_caches): Change arg to Lisp_Object.
13031 (Fclear_image_cache): Expand meaning of the argument.
13032 (mark_image): Mark `dependencies' field.
13033 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13034 (lface_hash): Use XHASH rather than XFASTINT.
13035 (face_at_buffer_position): Fix int -> EMACS_INT position.
13036 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13037 (select_frame_for_redisplay): Remove code duplication.
13038 (redisplay_internal): Adapt arg to call to clear_image_caches.
13039
13040 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13041
13042 * s/vms4-0.h:
13043 * s/vms4-2.h:
13044 * s/vms4-4.h:
13045 * s/vms5-5.h: Remove, unused.
13046
13047 * s/irix5-2.h:
13048 * s/irix6-0.h:
13049 * s/riscos5.h:
13050 * s/mach-bsd4-3.h:
13051 * m/mips4.h: Remove files for obsolete systems.
13052
13053 * Makefile.in:
13054 * filelock.c:
13055 * unexmips.c:
13056 * m/hp9000s300.h:
13057 * m/iris4d.h:
13058 * s/aix3-1.h:
13059 * s/hpux.h:
13060 * s/msdos.h:
13061 * s/usg5-0.h:
13062 * s/usg5-2-2.h:
13063 * s/usg5-2.h:
13064 * s/usg5-3.h: Remove references to obsolete variables.
13065
13066 * s/irix5-0.h: Remove, move all the contents ...
13067 * s/irix6-5.h: ... here. Simplify.
13068 * config.in: Regenerate.
13069
13070 2008-02-24 Jason Rumney <jasonr@gnu.org>
13071
13072 * w32term.c (x_draw_glyph_string_background): Clear the background
13073 manually when cleartype is in use.
13074 (x_draw_glyph_string_foreground): Draw text transparently when
13075 cleartype is in use.
13076
13077 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13078 a font into it unless we have to.
13079
13080 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13081
13082 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13083 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
13084
13085 2008-02-18 Jason Rumney <jasonr@gnu.org>
13086
13087 * w32fns.c (Fw32_shell_execute): Encode parameters.
13088
13089 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13090
13091 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13092
13093 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
13094
13095 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13096
13097 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13098
13099 * xterm.c (x_set_offset): Don't change the gravity if
13100 CHANGE_GRAVITY is -1.
13101
13102 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
13103
13104 * fileio.c (auto_save_error_occurred): New var.
13105 (auto_save_error): Set it.
13106 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13107 error occurred.
13108
13109 2008-02-23 Eli Zaretskii <eliz@gnu.org>
13110
13111 * w32.c (globals_of_w32): Add initializations for
13112 g_b_init_get_sid_sub_authority and
13113 g_b_init_get_sid_sub_authority_count.
13114
13115 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13116
13117 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13118 (font_parse_xlfd): Use them for sanity check.
13119 (Finternal_set_font_style_table): Make sure the table is bijective.
13120
13121 Consolidate the image_cache to the terminal struct.
13122 * termhooks.h (P_): Remove redundant def.
13123 (struct terminal): New field `image_cache'.
13124 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13125 of FRAME_X_IMAGE_CACHE.
13126 * xterm.h (struct x_display_info): Remove image_cache field.
13127 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13128 * w32term.h (struct w32_display_info): Remove image_cache field.
13129 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13130 * macterm.h (struct mac_display_info): Remove image_cache field.
13131 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13132 * xterm.c (x_term_init):
13133 * w32term.c (w32_term_init):
13134 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13135 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13136 Remove declarations.
13137 (clear_image_caches, mark_image_cache): New declarations.
13138 * xfaces.c (clear_face_cache):
13139 * xdisp.c (redisplay_internal): Use clear_image_caches.
13140 * image.c (clear_image_cache): Don't check that a frame is on
13141 a window-system before checking if it shares the same cache.
13142 (clear_image_caches): New function.
13143 (Fclear_image_cache): Use it.
13144 (mark_image): Move from allo.c.
13145 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13146 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13147 (mark_object): Don't call mark_image_cache for frames.
13148 (mark_terminals): Call mark_image_cache.
13149
13150 * lisp.h (Fdelete_terminal): Declare.
13151
13152 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13153 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13154 wrong_type_argument.
13155
13156 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13157
13158 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13159 malayalam.el, and tamil.el. Add sinhala.el.
13160
13161 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13162
13163 * xterm.c (x_connection_closed): Consolidate identical tests.
13164 (x_delete_terminal): Don't crash if called via x_connection_closed.
13165
13166 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13167
13168 * xdisp.c (decode_mode_spec): New arg string.
13169 (display_mode_element): Adjust for the above change.
13170
13171 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13172
13173 * callint.c (Fcall_interactively): Use AREF.
13174
13175 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13176
13177 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13178
13179 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13180
13181 * xfns.c (Fx_show_tip): Set string to " " if empty.
13182
13183 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13184
13185 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13186 with Qt.
13187
13188 2008-02-17 Kenichi Handa <handa@m17n.org>
13189
13190 * ftfont.c (ftfont_shape): Return Lispy number.
13191
13192 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13193 for GCs.
13194 (Finternal_set_font_selection_order): Call font_update_sort_order
13195 only when enable_font_backend is set.
13196 (realize_x_face): Set face->font_info to that of default face only
13197 when enable_font_backend is set.
13198
13199 * xdisp.c (handle_composition_prop): Set it->c to the fist
13200 character of the composed region.
13201 (fill_composite_glyph_string): Set base_face->font_info to
13202 s->font_info. Get a face for ascii from base_face->ascii_face.
13203 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13204 with a face already decided.
13205 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13206 non-negative.
13207 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13208 call font_prepare_composition unconditionally.
13209
13210 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13211
13212 * xterm.h (struct x_display_info): New member font.
13213
13214 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13215 (x_set_mouse_face_gc, x_new_font): Likewise.
13216 (x_term_init): Setup display_info->font.
13217 (x_delete_terminal): Free display_info->font.
13218
13219 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13220
13221 * ftxfont.c (ftxfont_default_fid): Delete it.
13222 (ftxfont_open): Set xfont->fid to 0.
13223 (ftxfont_end_for_frame): Clear data specific to the frame and the
13224 font-driver.
13225
13226 * xftfont.c (xftfont_default_fid): Delete it.
13227 (xftfont_open): Set xfont->fid to 0.
13228
13229 * fontset.c (FONTSET_OBJLIST): New macro.
13230 (fontset_find_font): Update font-object list of the fontset.
13231 (free_realized_fontset): New function.
13232 (free_face_fontset): Call free_realized_fontset.
13233 (Ffont_info): Call font_close_object only when enable_font_backend
13234 is set.
13235
13236 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13237 [HAVE_NTGUI]: Include w32term.h.
13238 [MAC_OS]: Include macterm.ch.
13239 (font_otf_ValueRecord): Use make_number.
13240 (font_finish_cache): Fix handling of reference count.
13241 (font_clear_cache): Update num_fonts.
13242 (font_open_entity): Update smallest_char_width and
13243 smallest_font_height of the frame.
13244 (font_close_object): Update num_fonts.
13245 (Fclear_font_cache): Fix finding the target cache data.
13246
13247 2008-02-16 Glenn Morris <rgm@gnu.org>
13248
13249 * fontset.c (Finternal_char_font): Fix compilation warning.
13250
13251 2008-02-16 Eli Zaretskii <eliz@gnu.org>
13252
13253 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13254 instead of char arrays. Enlarge the size of array passed to
13255 get_token_information.
13256
13257 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13258 warnings.
13259
13260 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13261
13262 * .gdbinit: Don't set `args', it breaks gdb --args.
13263
13264 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13265
13266 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13267 within a narrowed buffer.
13268
13269 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13270
13271 * coding.c (decode_coding_object, encode_coding_object):
13272 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13273
13274 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13275
13276 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13277 hardcoding 1.
13278 (detect_coding_system):
13279 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13280 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13281 * insdel.c (insert_from_gap):
13282 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13283 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13284 (string_to_multibyte):
13285 * character.c (chars_in_text, multibyte_chars_in_text):
13286 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13287
13288 * character.h (FETCH_STRING_CHAR_ADVANCE)
13289 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13290 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13291 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13292
13293 * casefiddle.c (casify_region): Only call after-change and composition
13294 functions on the part of the region that was changed.
13295
13296 * keyboard.c (read_avail_input):
13297 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13298
13299 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13300
13301 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13302 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13303
13304 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
13305
13306 * w32menu.c (push_submenu_start, push_submenu_end)
13307 (push_left_right_boundary, push_menu_pane, push_menu_item):
13308 * keyboard.c (read_key_sequence): Don't pass args with side effects
13309 to AREF, it fails when compiling with -DENABLE_CHECKING.
13310
13311 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13312
13313 * Makefile.in (${lispsource}international/charprop.el):
13314 Delete this target.
13315
13316 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13317 emacs-unicode-2.
13318
13319 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13320
13321 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13322
13323 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13324
13325 * frame.c (Qnoelisp): New symbol.
13326 (syms_of_frame): Initialize it.
13327 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13328 harmless Elisp code, from a strong `force' from x_connection_closed.
13329 * frame.h (Qnoelisp): Declare.
13330 * xterm.c (x_connection_closed): Pass `noelisp'.
13331
13332 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13333 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13334 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13335 rather than `int' for the type of `type'.
13336
13337 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13338
13339 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13340
13341 * Makefile.in (GNUC): Remove support for gcc-1.x.
13342
13343 2008-02-10 Richard Stallman <rms@gnu.org>
13344
13345 * lisp.h (ASET): Use AREF, not ASLOT.
13346
13347 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13348
13349 * lisp.h (ASET): Check bounds.
13350
13351 2008-02-10 Glenn Morris <rgm@gnu.org>
13352
13353 * buffer.c (mode-name): Doc fix.
13354
13355 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13356
13357 * Makefile.in:
13358 * emacs.c:
13359 * gmalloc.c:
13360 * keyboard.c:
13361 * lisp.h:
13362 * m/ibm370aix.h:
13363 * process.c:
13364 * regex.c:
13365 * s/hpux.h:
13366 * sysdep.c:
13367 * sysselect.h:
13368 * systty.h:
13369 * unexec.c:
13370 * w32term.c:
13371 * xsmfns.c:
13372 * xterm.c: Remove code that deals with obsolete variables.
13373
13374 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13375
13376 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13377 nothing else needs it anymore.
13378
13379 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13380
13381 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13382 instead of unibyte_char_to_multibyte.
13383
13384 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13385
13386 * s/gnu-linux.h: Remove commented out code.
13387
13388 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13389
13390 * Makefile.in: Update what RMS says about using autoconf.
13391 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13392 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13393 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13394 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13395
13396 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13397
13398 * keymap.c (Fkey_description): Move side effect outside of macro call.
13399
13400 * xfaces.c (Finternal_make_lisp_face):
13401 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13402
13403 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13404 (syms_of_fontset): Use ASET.
13405
13406 * fns.c (concat): Move side effect outside of macro call.
13407 (hash_clear): Use ASET.
13408
13409 2008-02-08 Richard Stallman <rms@gnu.org>
13410
13411 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13412 If FORCE, and frame has a surrogate minibuffer for another frame,
13413 delete the other frame first.
13414
13415 2008-02-07 Timo Savola <timo.savola@iki.fi>
13416
13417 * xterm.c (x_detect_focus_change): Handle embed client message.
13418 (handle_one_xevent): Ditto.
13419 (handle_one_xevent): If embedded and we get a button press/release,
13420 request focus.
13421 (xembed_set_info, xembed_send_message): New functions.
13422 (x_make_frame_visible): Call xembed_set_info if embedded.
13423 (x_make_frame_invisible): Call xembed_set_info if embedded.
13424 (x_term_init): Initialize Xatom_XEMBED.
13425 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13426 (x_iconify_frame): Ditto.
13427
13428 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13429 (enum xembed_info, enum xembed_message, enum xembed_focus)
13430 (enum xembed_modifier, enum xembed_accelerator): New.
13431 (xembed_set_info, xembed_send_message): Declare.
13432 (FRAME_X_EMBEDDED_P): New.
13433
13434 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13435 gtk_plug_new.
13436
13437 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13438 window ID of a frame.
13439 (x_window): Reparent frame if embedded.
13440 (Fx_create_frame): Don't set border width if embedded.
13441
13442 * emacs.c (USAGE3): Add --parent-id.
13443 (standard_args): Ditto.
13444
13445 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13446
13447 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13448
13449 2008-02-07 Jim Meyering <meyering@redhat.com>
13450
13451 Use "do...while (0)", not "if (1)...else" in macro definitions.
13452 The latter provokes a warning from gcc about the empty else, when
13453 followed by ";". Also, without that trailing semicolon, it would
13454 silently swallow up any following statement.
13455 * syntax.h (SETUP_SYNTAX_TABLE)
13456 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13457 * buffer.h (DECODE_POSITION): Likewise.
13458 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13459 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13460 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13461 (FETCH_CHAR_ADVANCE): Likewise.
13462 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13463
13464 2008-02-07 Jim Meyering <meyering@redhat.com>
13465
13466 * lread.c [lint]: Don't include <sys/inode.h>.
13467
13468 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13469
13470 * xselect.c (x_handle_dnd_message):
13471 * xmenu.c (digest_single_submenu, xmenu_show):
13472 * xdisp.c (with_echo_area_buffer_unwind_data)
13473 (format_mode_line_unwind_data, unwind_format_mode_line)
13474 (display_menu_bar):
13475 * eval.c (Ffetch_bytecode):
13476 * doc.c (store_function_docstring):
13477 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13478 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13479 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13480
13481 2008-02-07 Kenichi Handa <handa@m17n.org>
13482
13483 * ftxfont.c (ftxfont_open): Don't set
13484 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13485
13486 * ftfont.c (ftfont_open): Fix previous change.
13487
13488 2008-02-06 Jason Rumney <jasonr@gnu.org>
13489
13490 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13491 Use cached metrics for ASCII characters.
13492 (w32font_open_internal): Don't set font's owning_frame.
13493 Cache metrics for ASCII characters.
13494
13495 * w32font.h (struct w32font_info): Add ascii_metrics.
13496 Remove owning_frame.
13497
13498 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13499
13500 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13501 to negative value.
13502
13503 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13504
13505 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13506
13507 * charset.c (syms_of_charset): Set QCtest and Qeq.
13508
13509 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13510
13511 * process.c (Fstart_process):
13512 * callproc.c (Fcall_process): Handle the case where
13513 Funhandled_file_name_directory returns nil.
13514
13515 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13516 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13517 * font.c (check_gstring): Use them and AREF to access the vector before
13518 we know it's really a gstring.
13519 (Ffont_shape_text): Fix typo.
13520 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
13521
13522 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13523 Declare.
13524
13525 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13526
13527 2008-02-05 Jason Rumney <jasonr@gnu.org>
13528
13529 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13530 Set smallest_font_height and smallest_char_width in display info.
13531
13532 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13533
13534 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13535
13536 2008-02-05 Miles Bader <miles@gnu.org>
13537
13538 * xfaces.c (get_lface_attributes, merge_named_face)
13539 (lookup_named_face, lookup_derived_face, realize_named_face):
13540 Revert 2008-02-01 change by cyd@stupidchicken.com.
13541
13542 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13543
13544 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13545 fallback fonts.
13546 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13547
13548 2008-02-04 Jason Rumney <jasonr@gnu.org>
13549
13550 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13551 set full_name.
13552 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13553
13554 2008-02-03 Jason Rumney <jasonr@gnu.org>
13555
13556 * makefile.w32-in (OBJ1): Include font.o here.
13557 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13558
13559 2008-02-02 Jason Rumney <jasonr@gnu.org>
13560
13561 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13562
13563 2008-02-01 Jason Rumney <jasonr@gnu.org>
13564
13565 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13566
13567 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13568
13569 2008-02-01 Andreas Schwab <schwab@suse.de>
13570
13571 * Makefile.in (shortlisp, lisp): Update for rename of
13572 ../lisp/language/myanmar.el.
13573
13574 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
13575
13576 * xfaces.c (get_lface_attributes): Delete function.
13577 (merge_named_face, lookup_named_face, lookup_derived_face)
13578 (realize_named_face): Call lface_from_face_name directly, and use
13579 the fact that merge_face_vectors does not alter its FROM argument.
13580
13581 2008-02-01 Jason Rumney <jasonr@gnu.org>
13582
13583 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13584 input in the default locale. Handle non-Unicode multibyte input.
13585
13586 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13587
13588 * fontset.c (reorder_font_vector): Exclude nil elements from the
13589 font group. Don't try multiple fonts.
13590 (fontset_font): Adjust for the above change.
13591 (Finternal_char_font): Return nil if the found font doesn't
13592 contain the character ch.
13593
13594 * Makefile.in (lisp, shortlisp): Add cham.el.
13595
13596 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13597
13598 * font.h (FONTP): Make it return 1 also for a font-object.
13599
13600 * .gdbinit (xfontset): New function.
13601
13602 * font.c (font_find_for_lface): Check if the character C is
13603 supported or not only for the first font.
13604
13605 * fontset.c (reorder_font_vector): Fix typo.
13606 (fontset_find_font): Don't add a font-spec specifying a script.
13607 Use 0 (not Qt) for the indication of empty font-group. Change the
13608 format of RFONT-DEF. Return Qt if no font in the font-group
13609 support the character.
13610 (fontset_font): Adjust for the above change. If no font was
13611 found the character, remember that.
13612 (face_for_char): Adjust for the change of RFONT-DEF.
13613 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13614 no font for the target.
13615 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13616
13617 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13618
13619 * font.c (font_load_for_face): Handle the case that the font in
13620 face->lface is a string.
13621
13622 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13623
13624 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13625
13626 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13627
13628 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13629 Fix previous change. If the frame is not on a window system,
13630 signal an error.
13631
13632 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13633
13634 * coding.c (decode_coding_object, encode_coding_object): Adjust
13635 marker positions after conversion.
13636
13637 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13638
13639 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13640
13641 * font.c (font_find_for_lface): Fix the handling of the return
13642 value of font_has_char.
13643 (Ffont_shape_text): Fix previous change.
13644
13645 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13646 (fontset_ref_and_range): Delete it.
13647 (fontset_find_font): Call char_table_ref_and_range instead of
13648 FONTSET_REF_AND_RANGE.
13649 (make_fontset): Don't setup font groups of Latin here.
13650 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13651 (new_fontset_from_font): Make the specified font the default for
13652 all Latin characters.
13653
13654 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13655
13656 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13657 is on a window system before accessing the fontset of the frame.
13658
13659 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13660
13661 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13662
13663 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13664 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13665
13666 * font.c (Ffont_shape_text): If the font driver doesn't have a
13667 shaper function, make zero-width glyphs to have at least one-pixel
13668 width. Fix setting of `to' field of glyphs.
13669
13670 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13671
13672 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13673 glyphs.
13674
13675 * font.h (struct font_driver): Improve docstring of member `shape'.
13676
13677 2008-02-01 Kenichi Handa <handa@m17n.org>
13678
13679 * composite.c (syms_of_composite): Fix docstring of
13680 auto-composition-function.
13681
13682 * font.h (LGLYPH_SIZE): New macro.
13683
13684 * font.c (Ffont_fill_gstring): Stop filling when a character not
13685 supported by the font is found.
13686 (Ffont_shape_text): When a shape callback function returns nil,
13687 try at most two more times with larger gstring.
13688 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13689
13690 * xdisp.c (handle_auto_composed_prop): Change the argument to
13691 auto-composition-function.
13692
13693 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13694 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13695 Lispy glyph and store it in the lgstring.
13696
13697 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13698
13699 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13700
13701 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13702
13703 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13704
13705 * fontset.c (Vfont_encoding_charset_alist): New variable.
13706 (syms_of_fontset): DEFVAR it.
13707 (reorder_font_vector, fontset_find_font): Optimize for the case of
13708 no need of reordering.
13709 (face_for_char): Map the charset property by
13710 Vfont_encoding_charset_alist.
13711
13712 2008-02-01 Jason Rumney <jasonr@gnu.org>
13713
13714 * w32font.c (logfonts_match): Don't check adstyle here.
13715 (font_matches_spec): Check here against physical font instead.
13716 (add_font_entity_to_list): Avoid some substitutions.
13717
13718 * font.c (font_parse_fcname): Default weight and slant to normal.
13719 (font_score): Prefer normal fonts if weight or slant unspecified.
13720 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13721 match freetype scores.
13722
13723 2008-02-01 Jason Rumney <jasonr@gnu.org>
13724
13725 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13726 font, as it may have been deleted.
13727 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13728 most common hyphenless variation.
13729 (logfonts_match): Check generic family.
13730 (font_matches_spec): Don't check generic family here.
13731 (fill_in_logfont): Set generic family based on adstyle.
13732
13733 * w32font.h (w32font_get_cache): Update declaration.
13734
13735 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13736
13737 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13738
13739 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13740 If none of the new drivers are available, call font_update_drivers
13741 with the old drivers.
13742
13743 * w32font.c (w32font_get_cache): Adjust the argument type.
13744
13745 * xfont.c (xfont_get_cache): Adjust the argument type.
13746
13747 * font.h (struct font_driver): Change argument type of get_cache.
13748
13749 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13750
13751 * font.c (Ffont_get): Fix arguments to Fassoc.
13752 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13753 (font_clear_cache): New function.
13754 (font_list_entities, font_matching_entity): Use font_get_cache.
13755 (font_update_drivers): Call font_clear_cache when finishing a driver.
13756
13757 * fontset.c (fontset_find_font): Fix previous change.
13758
13759 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13760
13761 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13762 dpyinfo->font_table.
13763 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13764 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13765
13766 * font.c (font_at): Handle the case that the arg C is negative.
13767 Handle the unibyte case.
13768 (Ffont_at): Call font_at with the arg C -1.
13769
13770 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13771 the position here, and call font_at with the arg C -1.
13772 Don't check the range of the existing composition at the point.
13773
13774 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13775
13776 * fontset.c (fontset_add): New args charset_id and family.
13777 Change caller.
13778 (load_font_get_repertory, fontset_find_font): Assume that
13779 font_spec is always a font-spec object.
13780 (Fset_fontset_font): Always store a font-spec object in a fontset.
13781
13782 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13783 instead of get_property_and_range.
13784
13785 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13786
13787 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13788 (xftfont_open): Don't keep locking face.
13789 (xftfont_close): Don't unlock face.
13790 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13791
13792 * fontset.c (fontset_find_font): Don't prefer a font of
13793 supplementary charset.
13794
13795 2008-02-01 Kenichi Handa <handa@m17n.org>
13796
13797 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13798 script, langsys_tag to langsys, new member script.
13799 (OTF_TAG_STR): Terminate by '\0'.
13800 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
13801 listing to the script specified in that property. Fix arg to
13802 OTF_check_features.
13803
13804 2008-02-01 Jason Rumney <jasonr@gnu.org>
13805
13806 * w32font.h: New file.
13807
13808 * w32font.c: Include it.
13809 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13810 (w32font_open): Set owning_frame.
13811 (w32font_text_extents): Use owning_frame.
13812 (struct font_callback_data): Add opentype_only field.
13813 (add_font_entity_to_list): Use it to filter fonts.
13814 Don't check against full name.
13815 (w32font_list_internal): New function.
13816 (w32font_list): Use it.
13817 (w32font_match_internal): New function.
13818 (w32font_match): Use it.
13819 (w32font_open_internal): New function.
13820 (w32font_open): Use it.
13821 (w32font_get_cache, w32font_close, w32font_has_char)
13822 (w32font_encode_char, w32font_text_extents, w32font_draw):
13823 Make non-static.
13824
13825 * makefile.w32-in (w32font.o): Depend on w32font.h.
13826
13827 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13828
13829 * charset.c (Fdefine_charset_internal): Record a supplementary
13830 charset at the tail of Vcharset_order_list.
13831
13832 * font.c (Ffont_shape_text): Fix the return value.
13833
13834 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13835
13836 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13837
13838 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13839
13840 * ftfont.c (struct OpenTypeSpec): New struct.
13841 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13842 (ftfont_get_open_type_spec): New function.
13843 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13844
13845 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13846
13847 2008-02-01 Jason Rumney <jasonr@gnu.org>
13848
13849 * w32font.c (add_font_entity_to_list): Compare only the beginning
13850 of full name.
13851
13852 2008-02-01 Kenichi Handa <handa@m17n.org>
13853
13854 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13855 Never return HANDLED_RECOMPUTE_PROPS.
13856
13857 2008-02-01 Kenichi Handa <handa@m17n.org>
13858
13859 * font.c (font_gstring_produce): Delete it.
13860
13861 * composite.h (COMPOSITION_METHOD):
13862 Handle COMPOSITION_WITH_GLYPH_STRING.
13863
13864 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13865
13866 * xfont.c (Qx): Delete.
13867 (syms_of_xfont): Don't initialize Qx.
13868
13869 * composite.h (enum composition_method):
13870 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13871
13872 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13873
13874 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13875 (choose_face_font): Accept new form of font-spec.
13876
13877 * frame.h (font_driver_list): Declare it unconditionally.
13878 (struct frame): Define members font_driver_list and font_data_list
13879 unconditionally.
13880
13881 * fontset.c: Include "font.h" unconditionally.
13882 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13883 (Fset_fontset_font): Accept a font-spec object.
13884
13885 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13886 PIXEL_SIZE part a wild card.
13887
13888 * dispextern.h (struct glyph_string): Define members clip and
13889 num_clips unconditionally.
13890 (struct face): Define members font_info and extra unconditionally.
13891
13892 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13893 ftfont_info only when HAVE_LIBOTF is defined.
13894
13895 2008-02-01 Andreas Schwab <schwab@suse.de>
13896
13897 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13898 and end.
13899
13900 2008-02-01 Jason Rumney <jasonr@gnu.org>
13901
13902 * w32font.c (w32font_driver): Add new fields.
13903
13904 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13905
13906 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13907 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13908 (LIBES): Add @M17N_FLT_CFLAGS@.
13909
13910 * composite.c (compose_text): Don't treat the new style
13911 composition specially.
13912
13913 * emacs.c (main): Call syms_of_font unconditionally.
13914
13915 * font.h (FONT_ENTITY_NOT_LOADABLE)
13916 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13917 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13918 (struct font_driver): New member shape.
13919 (font_registry_charsets): Extern it.
13920 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13921 (font_otf_capability, font_drive_otf): Delete their externs.
13922
13923 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13924 (font_charset_alist, font_registry_charsets): Move from xfont.c
13925 and rename.
13926 (font_prop_validate_otf): New function.
13927 (font_property_table): Register it for QCotf.
13928 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13929 (font_drive_otf): Delete.
13930 (font_prepare_composition): New arg F. Adjust for the change of
13931 lispy gstring.
13932 (font_find_for_lface): New arg C.
13933 (font_load_for_face): Adjust for the change of font_find_for_lface.
13934 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13935 lispy gstring.
13936 (Ffont_shape_text): New function.
13937 (Fopen_font): If the font size is not given, use 12-pixel.
13938 (Ffont_at): New arg STRING.
13939 (syms_of_font): Initalize font_charset_alist.
13940 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13941 conditionally.
13942
13943 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13944 fonts of the same font-spec. Change the format of RFONT-DEF.
13945 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13946 Adjust for the change of RFONT-DEF.
13947 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13948
13949 * ftfont.h: New file.
13950
13951 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13952 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13953 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13954 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13955 font_otf_capability and font_drive_otf, set ftfont_shape.
13956 (ftfont_list): Adjust for the change of :otf property value.
13957 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13958 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13959 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13960 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13961 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13962 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13963
13964 * w32term.c (x_draw_composite_glyph_string_foreground):
13965 Adjust for the change of lispy gstring.
13966
13967 * xdisp.c (handle_composition_prop): Adjust for the change of
13968 lispy gstring. Call a function for auto-composition with the
13969 third arg it->window.
13970 (fill_composite_glyph_string): Adjust for the change of lispy string.
13971 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13972
13973 * xfaces.c (set_font_frame_param): Adjust for the change of
13974 font_find_for_lface.
13975
13976 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13977 (xfont_registry_charsets): Likewise. Change caller.
13978 (syms_of_xfont): Don't handle x_font_charset_alist.
13979
13980 * xftfont.c: Include "ftfont.h".
13981 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13982 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13983 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13984 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13985 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13986 Set xftfont_driver.shape to xftfont_shape.
13987
13988 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13989 the change of lispy gstring.
13990
13991 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13992
13993 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13994
13995 2008-02-01 Jason Rumney <jasonr@gnu.org>
13996
13997 * w32font.c (w32font_draw): Fill background manually.
13998
13999 2008-02-01 Jason Rumney <jasonr@gnu.org>
14000
14001 * font.c (Qfontp): Remove unused symbol.
14002 (QCantialias): New symbol.
14003 (syms_of_font): Define it.
14004 (font_property_table): Set a validator for QCantialias.
14005
14006 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14007 Define if not already.
14008 (QCfamily): Share with xfaces.c.
14009 (Qstandard, Qsubpixel, Qnatural): New symbols.
14010 (syms_of_w32font): Define them. Don't define QCfamily here.
14011 (w32_antialias_type, lispy_antialias_type): New functions.
14012 (w32_enumfont_pattern_entity): New arg requested_font.
14013 Set antialias parameter if non-default was requested.
14014 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14015
14016 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14017
14018 * lread.c (read1): Undo the previous change.
14019
14020 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14021
14022 * frame.c (Fdelete_frame): Call font_update_drivers only when
14023 USE_FONT_BACKEND is defined.
14024
14025 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14026
14027 * font.h (struct font_bitmap): New member bits_per_pixel.
14028 (struct font_driver): New members start_for_frame and end_for_frame.
14029 (struct font_data_list): New struct.
14030 (font_put_frame_data, font_get_frame_data): Extern them.
14031
14032 * frame.h (struct frame): New member font_data_list.
14033
14034 * font.c (font_update_drivers): Call driver->start_for_frame and
14035 driver->end_for_frame at proper timings.
14036 (font_put_frame_data, font_get_frame_data): New functions.
14037 (Ffont_spec): Add usage in the docstring.
14038
14039 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14040 (Fdelete_frame): Call font_update_drivers.
14041
14042 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14043 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14044 (xftfont_get_xft_draw): New function.
14045 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14046 (xftfont_end_for_frame): New function.
14047 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14048
14049 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14050 Change argument. Cache GCs in the per-frame data.
14051 (struct ftxfont_frame_data): New struct.
14052 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14053 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14054 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14055 (ftxfont_end_for_frame): New function.
14056 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14057
14058 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14059
14060 2008-02-01 Kenichi Handa <handa@m17n.org>
14061
14062 * xselect.c (Vselection_coding_system)
14063 (Vnext_selection_coding_system): Delete them.
14064 (syms_of_xselect): Don't declare selection-coding-system and
14065 next-selection-coding-system. They are declared in select.el.
14066
14067 2008-02-01 Jason Rumney <jasonr@gnu.org>
14068
14069 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14070
14071 * w32fns.c: Include imm.h.
14072 (get_composition_string_fn, get_ime_context_fn): New optional
14073 system functions.
14074 (globals_of_w32fns): Load them from imm32.dll.
14075 (ignore_ime_char): New flag.
14076 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14077 WM_IME_ENDCOMPOSITION messages.
14078
14079 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14080 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14081
14082 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14083
14084 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14085 (READCHAR_REPORT_MULTIBYTE): New macro.
14086 (readchar): New 2nd arg MULTIBYTE.
14087 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14088 Make symbol's name multibyte according to the multibyteness of the
14089 source.
14090
14091 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14092
14093 * xfaces.c (face_for_overlay_string): Call lookup_face with
14094 correct arguments (fix of synching with the trunk).
14095
14096 2008-02-01 Kenichi Handa <handa@m17n.org>
14097
14098 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14099 (font_prop_validate_non_neg, font_prop_validate_spacing):
14100 Delete argument prop_index.
14101 (font_property_table): Change arguments to validater. Change Callers.
14102 (font_lispy_object): Delete.
14103 (font_at): Use font_find_object instead fo font_lispy_object.
14104
14105 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14106
14107 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14108 and file names.
14109
14110 2008-02-01 Jason Rumney <jasonr@gnu.org>
14111
14112 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14113 (font_matches_spec): Remove debug output.
14114 (add_font_entity_to_list): Avoid using substituted fonts.
14115
14116 2008-02-01 Jason Rumney <jasonr@gnu.org>
14117
14118 * doc.c (Fsnarf_documentation):
14119 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14120
14121 2008-02-01 Miles Bader <miles@gnu.org>
14122
14123 * dispextern.h (struct glyph_row): Only define "clip" field if
14124 HAVE_WINDOW_SYSTEM is defined.
14125
14126 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14127
14128 Fix up multi-tty merge.
14129
14130 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14131 and indentation.
14132
14133 * xfaces.c (free_realized_face, clear_face_gcs):
14134 Include font_done_for_face in the input_blocked section, just in case.
14135
14136 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14137 (get_char_face_and_encoding): Undo last change and remove the *other*
14138 duplicate definition (i.e. keep the one that's better scoped and that
14139 includes code for the font-backend).
14140
14141 * terminal.c (create_terminal): Default keyboard_coding to
14142 `no-conversion' and terminal_coding to `undecided'.
14143
14144 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14145
14146 * fontset.c (free_realized_fontsets): Check that the table entry does
14147 contain a fontset before trying to compare it to `base'.
14148
14149 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14150 syms_of_charset, and syms_of_coding earlier because init_window_once
14151 now needs Vcoding_system_hash_table to be setup.
14152
14153 * coding.h (default_buffer_file_coding): Remove.
14154
14155 * coding.c (default_buffer_file_coding): Remove.
14156 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14157 than ->symbol, and use the terminal-local coding system.
14158 (syms_of_coding): Don't setup the coding-systems that are not
14159 terminal-local.
14160 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14161
14162 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14163 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14164
14165 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14166 in chartab.c and were re-added here by mistake.
14167 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14168
14169 * doc.c (Fsnarf_documentation):
14170 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14171 src to etc.
14172
14173 * ChangeLog.10: Add mistakenly removed entry.
14174
14175 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14176
14177 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14178
14179 2008-02-01 Miles Bader <miles@gnu.org>
14180
14181 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14182 Add extra args to FACE_FOR_CHAR.
14183
14184 2008-02-01 Kenichi Handa <handa@m17n.org>
14185
14186 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14187 in sequence.
14188
14189 * chartab.c (map_sub_char_table, map_char_table): If the range
14190 contains just one character, call the function with that character
14191 even if the depth is not 3.
14192
14193 2008-02-01 Jason Rumney <jasonr@gnu.org>
14194
14195 * w32font.c (w32font_text_extents): Calculate metrics for the
14196 whole string.
14197
14198 2008-02-01 Jason Rumney <jasonr@gnu.org>
14199
14200 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14201
14202 2008-02-01 Jason Rumney <jasonr@gnu.org>
14203
14204 * w32term.c (x_set_glyph_string_clipping): Use
14205 get_glyph_string_clip_rects.
14206 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14207 Adjust for the change of struct glyph_string.
14208
14209 * w32font.c (w32font_draw): Do clipping here.
14210
14211 2008-02-01 Kenichi Handa <handa@m17n.org>
14212
14213 * xftfont.c (xftfont_draw): Adjust for the change of struct
14214 glyph_string.
14215
14216 * xterm.c (x_set_glyph_string_clipping): Use
14217 get_glyph_string_clip_rects.
14218 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14219 Adjust for the change of struct glyph_string.
14220
14221 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14222 the resulting clip(s}.
14223 (expose_overlaps): Add arg r. Change callers. Set it to
14224 row->clip temporarily.
14225 (expose_window): Redraw rows overlapping the exposed area.
14226
14227 * dispextern.h (struct glyph_row): New member clip.
14228 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14229 clip_height, new member clip, and num_clips.
14230
14231 2008-02-01 Kenichi Handa <handa@m17n.org>
14232
14233 * data.c (Fchar_or_string_p): Fix docstring.
14234
14235 2008-02-01 Kenichi Handa <handa@m17n.org>
14236
14237 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14238 create a temporary XftDraw object.
14239
14240 2008-02-01 Kenichi Handa <handa@m17n.org>
14241
14242 * font.c (Ffontp): Fix docstring.
14243
14244 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14245 strong evidence of ISO-2022.
14246
14247 2008-02-01 Kenichi Handa <handa@m17n.org>
14248
14249 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14250 SYNTAX_ENTRY_FOLLOW_PARENT.
14251
14252 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14253
14254 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14255 its type.
14256 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14257 Update to the new type of weak_hash_tables and next_weak.
14258
14259 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14260 a plain C pointer to Lisp_Hash_Table.
14261
14262 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14263 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14264 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14265 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14266 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14267 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14268 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14269 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14270 (GC_EQ): Remove since they've been identical to their non-GC_
14271 alter-egos ever since the markbit was eradicated.
14272
14273 * alloc.c:
14274 * buffer.c:
14275 * buffer.h:
14276 * data.c:
14277 * fileio.c:
14278 * filelock.c:
14279 * fns.c:
14280 * frame.h:
14281 * lisp.h:
14282 * macterm.c:
14283 * print.c:
14284 * process.c:
14285 * w32fns.c:
14286 * w32menu.c:
14287 * w32term.c:
14288 * xfns.c:
14289 * xmenu.c:
14290 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14291
14292 2008-02-01 Kenichi Handa <handa@m17n.org>
14293
14294 * chartab.c (map_sub_char_table): Make it work for the top-level
14295 char-table. Fix handling of parent char-table.
14296 (map_char_table): Adjust for the above change.
14297
14298 2008-02-01 Jason Rumney <jasonr@gnu.org>
14299
14300 * w32font.c (Qgdi): Rename from Qw32.
14301
14302 2008-02-01 Jason Rumney <jasonr@gnu.org>
14303
14304 * w32bdf.c (get_quoted_string): Make function static.
14305
14306 2008-02-01 Kenichi Handa <handa@m17n.org>
14307
14308 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14309 bigger ascent and descent than those of the font, use them as
14310 font's ascent and descent.
14311
14312 2008-02-01 Kenichi Handa <handa@m17n.org>
14313
14314 * Makefile.in (${lispsource}international/charprop.el): Move this
14315 target within "#ifdef HAVE_UNIDATA" and "#endif".
14316
14317 2008-02-01 Kenichi Handa <handa@m17n.org>
14318
14319 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14320 (shortlisp): Add ../lisp/language/tai-viet.el.
14321
14322 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
14323
14324 * Makefile.in (${lispsource}international/charprop.el): Depend on
14325 temacs${EXEEXT}.
14326
14327 2008-02-01 Jason Rumney <jasonr@gnu.org>
14328
14329 * w32font.c (w32font_close): Delete the GDI font object.
14330
14331 * w32menu.c: Include character.h.
14332
14333 * w32proc.c: Likewise.
14334
14335 * w32select.c: Likewise.
14336
14337 * makefile.w32-in (w32proc.o): Depend on character.h.
14338
14339 2008-02-01 Jason Rumney <jasonr@gnu.org>
14340
14341 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14342
14343 * w32menu.c (syms_of_w32menu): Likewise.
14344
14345 * w32proc.c (syms_of_ntproc): Likewise.
14346
14347 * w32select.c (syms_of_w32select): Likewise.
14348
14349 * w32term.c (syms_of_w32term): Likewise.
14350
14351 2008-02-01 Jason Rumney <jasonr@gnu.org>
14352
14353 * w32font.c (w32font_draw): Delete brush after using it.
14354
14355 2008-02-01 Jason Rumney <jasonr@gnu.org>
14356
14357 * w32font.c (w32font_open): Don't set font_idx.
14358 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14359 to font settings.
14360 (w32font_draw): Fill background explicitly.
14361
14362 2008-02-01 Jason Rumney <jasonr@gnu.org>
14363
14364 * w32term.c (w32_initialize): Don't call w32font_initialize.
14365
14366 * w32font.c (w32font_info): Remove subranges.
14367 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14368 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14369 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14370 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14371 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14372 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14373 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14374 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14375 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14376 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14377 New symbols.
14378 (font_callback_data): New struct.
14379 (w32font_list, w32font_match): Use it.
14380 (w32font_open): Don't populate subranges.
14381 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14382 (w32font_encode_char): Always return unicode code-point as-is.
14383 (w32font_text_extents): Supply a transformation matrix to
14384 GetGlyphOutline. Never look up by glyph index. Avoid looping
14385 twice. Use unicode version of GetTexExtentPoint32 instead of
14386 glyph index version.
14387 (set_fonts_frame): Remove.
14388 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14389 set frame parameter. Use backward compatible fake foundries.
14390 Save generic family in extra slot under QCfamily. Make width slot
14391 constant. Save QCspacing value. Save list of scripts instead of
14392 binary subranges.
14393 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14394 (add_font_entity_to_list): Use font_callback_data struct. Filter
14395 unwanted fonts.
14396 (add_one_font_entity_to_list): Use font_callback_data struct.
14397 (w32_registry): Default to iso10646_1.
14398 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14399 string font registries. Don't fill in font name if it is a generic
14400 family name, fill family instead. Use spacing, family and script
14401 extra info to fill pitch, family and charset fields.
14402 (list_all_matching_fonts): Use font_callback_data struct.
14403 (unicode_range_for_char): Remove.
14404 (font_supported_scripts): New function.
14405 (w32font_initialize): Remove.
14406 (syms_of_w32font): Update which symbols are defined.
14407
14408 2008-02-01 Jason Rumney <jasonr@gnu.org>
14409
14410 * font.c (font_pixel_size): Reverse assq_no_quit args.
14411
14412 * w32term.h (FONT_WIDTH): Report max width, not average.
14413 (FONT_MAX_WIDTH): Remove.
14414 (FONT_AVG_WIDTH): New macro.
14415
14416 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14417 redefinition of FONT_WIDTH.
14418
14419 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14420 (w32_cache_char_metrics): Use FONT_WIDTH.
14421
14422 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14423
14424 2008-02-01 Jason Rumney <jasonr@gnu.org>
14425
14426 * w32font.c (w32font_open): Make lfHeight negative.
14427
14428 * w32fns.c (x_default_font_parameter): Use new style font name.
14429 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14430
14431 2008-02-01 Jason Rumney <jasonr@gnu.org>
14432
14433 * w32font.c (QCsubranges): New symbol.
14434 (w32font_open, w32font_has_char): Get subranges from subproperty
14435 of extra.
14436 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14437 (syms_of_w32font): Define :subranges symbol.
14438
14439 * font.c (font_put_extra): Expose externally.
14440
14441 * font.h (font_put_extra): Move declaration from font.c.
14442
14443 * font.c (Ffont_get): Use font driver to determine otf capability.
14444 (adjust_anchor): Check if driver defines anchor_point before using.
14445
14446 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14447 (w32font_draw): Use options.
14448 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14449 Fix detection of truetype fonts.
14450 (registry_to_w32_charset): Handle charsets other than iso8859-1
14451 expressed as lisp symbols.
14452 (w32_registry): Express charset as lisp symbol.
14453 (fill_in_logfont): Reverse pixel and point height logic.
14454 Don't set width here. Set quality to default.
14455
14456 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14457 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14458
14459 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14460 Remove redundant loop and allocation.
14461
14462 * makefile.w32-in (font.o, w32font.o): New objects.
14463 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14464 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14465
14466 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14467 STORE_XCHARB a valid l-value.
14468
14469 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14470 calculations for non-Truetype fonts.
14471 (x_draw_glyph_string): Sync with xterm.c.
14472 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14473 Remove redundant code.
14474 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14475
14476 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14477 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14478
14479 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14480 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14481
14482 * w32font.c: New file for w32 font backend.
14483
14484 2008-02-01 Kenichi Handa <handa@m17n.org>
14485
14486 * term.c: Don't include "buffer.h" twice.
14487
14488 2008-02-01 Kenichi Handa <handa@m17n.org>
14489
14490 * character.c (Funibyte_string): New function.
14491 (syms_of_character): Defsubr it.
14492
14493 2008-02-01 Jason Rumney <jasonr@gnu.org>
14494
14495 * w32term.c [USE_FONT_BACKEND]:
14496 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14497 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14498 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14499 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14500 (x_free_frame_resources): Sync with xterm.c.
14501
14502 2008-02-01 Andreas Schwab <schwab@suse.de>
14503
14504 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14505 char-table size.
14506
14507 2008-02-01 Kenichi Handa <handa@m17n.org>
14508
14509 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14510
14511 2008-02-01 Kenichi Handa <handa@m17n.org>
14512
14513 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14514 font_otf_gpos, add font_drive_otf.
14515
14516 * fontset.c (fontset_find_font): Pay attention to font size
14517 specified for a font.
14518 (reorder_font_vector): Check contents of font_def.
14519
14520 * font.c (struct otf_list): Delete it.
14521 (otf_list): Make it a lisp variable.
14522 (otf_open): Use lispy otf_list.
14523 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14524 (check_otf_features): New function.
14525 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14526 New functions.
14527 (font_drive_otf): New function merging font_otf_gsub and
14528 font_otf_gpos.
14529 (font_open_for_lface): New arg spec. Change argument order.
14530 (font_load_for_face): Adjust for the change of font_open_for_lface.
14531 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14532 Ffont_otf_gpos.
14533 (syms_of_font): Staticpro otf_list. Delete defsubr of
14534 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14535
14536 * xfaces.c (set_font_frame_param): Adjust for the change of
14537 font_open_for_lface.
14538
14539 * font.h (font_open_for_lface): Adjust prototype.
14540 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14541 member otf_drive.
14542 (font_otf_gsub, font_otf_gpos): Delete externs.
14543 (font_drive_otf): Extern it.
14544
14545 2008-02-01 Kenichi Handa <handa@m17n.org>
14546
14547 * font.c (font_at): If the window W is not on a window system,
14548 return Qnil.
14549
14550 * coding.c (produce_chars, encode_coding): Don't call
14551 insert_from_gap if no characters to produce.
14552
14553 2008-02-01 Kenichi Handa <handa@m17n.org>
14554
14555 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14556 Fclear_face_cache.
14557
14558 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14559
14560 2008-02-01 Miles Bader <miles@gnu.org>
14561
14562 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14563 Parse "--disable-font-backend" option.
14564 (standard_args): Add "--disable-font-backend" option.
14565
14566 2008-02-01 Kenichi Handa <handa@m17n.org>
14567
14568 * fontset.c (fontset_find_font): New function.
14569 (fontset_font): Use fontset_find_font.
14570 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14571 Register the specified font for all Latin characters.
14572 (new_fontset_from_font): Register the specified font for all Latin
14573 characters.
14574 (dump_fontset): For a realized fontset, include the base fontset
14575 name in the returned vector.
14576
14577 2008-02-01 Kenichi Handa <handa@m17n.org>
14578
14579 * character.h (CHAR_STRING): Cast C to unsigned on calling
14580 char_string.
14581
14582 * character.c (char_string): Type of arg C changed to unsigned.
14583 Signal an error if C is an invalid character code.
14584
14585 * editfns.c (general_insert_function, Fchar_to_string):
14586 Use CHARACTERP, not INTEGERP.
14587
14588 2008-02-01 Kenichi Handa <handa@m17n.org>
14589
14590 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14591 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14592
14593 * regex.c (analyse_first): Fix for multibyte characters in "case
14594 charset:" and "case categoryspec:".
14595
14596 2008-02-01 Andreas Schwab <schwab@suse.de>
14597
14598 * Makefile.in (LIBES): Move standard libraries to the end.
14599
14600 2008-02-01 Kenichi Handa <handa@m17n.org>
14601
14602 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14603 nonzero, don't shrink the buffer nextb.
14604
14605 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14606
14607 * coding.c (coding_alloc_by_making_gap): New arg offset.
14608 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14609 offset.
14610 (decode_coding_iso_2022): Update coding->safe_charsets.
14611 (decode_coding_gap): Temporarily set
14612 current_buffer->text->inhibit_shrinking to 1.
14613
14614 2008-02-01 Kenichi Handa <handa@m17n.org>
14615
14616 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14617 indexing into elements of s->cmp and s->char2b.
14618
14619 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
14620
14621 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14622
14623 2008-02-01 Kenichi Handa <handa@m17n.org>
14624
14625 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14626 target_multibyte instead of multibyte.
14627 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14628 (bcmp_translate): Change the argument name from multibyte to
14629 target_multibyte.
14630
14631 2008-02-01 Kenichi Handa <handa@m17n.org>
14632
14633 These changes are to compile a regexp into a pattern that can be
14634 used both for multibyte and unibyte targets.
14635
14636 * Makefile.in (search.o): Depend on charset.h.
14637
14638 * character.c (multibyte_char_to_unibyte_safe): New function.
14639
14640 * search.c: Include "charset.h".
14641 (compile_pattern_1): Delete argument multibyte. Don't set
14642 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14643 (compile_pattern): Don't compare cp->buf.target_multibyte.
14644 Compare cp->buf.charset_unibyte.
14645 (compile_pattern): Set cp->buf.target_multibyte.
14646
14647 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14648
14649 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14650
14651 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14652 multibyte. Change callers.
14653 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14654 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14655 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14656 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14657 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14658 (regex_compile): Make the compiled pattern usable both for
14659 multibyte and unibyte targets.
14660 (analyse_first): Make the fastmap usable both for multibyte and
14661 unibyte targets.
14662 (TRANSLATE_VIA_MULTIBYTE): Delete.
14663 (re_match_2_internal): Pay attention to the case that the
14664 multibyteness of bufp and target may be different.
14665
14666 2008-02-01 Kenichi Handa <handa@m17n.org>
14667
14668 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14669 empty box occupy at least one column width.
14670
14671 2008-02-01 Miles Bader <miles@gnu.org>
14672
14673 * Makefile.in: Remove redundant HAVE_XFT clause.
14674
14675 2008-02-01 Kenichi Handa <handa@m17n.org>
14676
14677 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14678
14679 2008-02-01 Kenichi Handa <handa@m17n.org>
14680
14681 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14682 being nil.
14683
14684 2008-02-01 Kenichi Handa <handa@m17n.org>
14685
14686 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14687
14688 2008-02-01 Kenichi Handa <handa@m17n.org>
14689
14690 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14691
14692 2008-02-01 Kenichi Handa <handa@m17n.org>
14693
14694 * search.c (simple_search): Fix previous change.
14695
14696 2008-02-01 Kenichi Handa <handa@m17n.org>
14697
14698 * xftfont.c (ftfont_font_format): Extern declaration.
14699
14700 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14701
14702 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14703 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14704
14705 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14706 (ftfont_font_format): Fix previous change.
14707
14708 * font.h (Ffont_xlfd_name): EXFUN it.
14709
14710 * font.c (font_parse_xlfd): Fix the array size of `f'.
14711 (register_font_driver): Use EQ to compare driver->type.
14712
14713 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14714 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14715 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14716
14717 2008-02-01 Kenichi Handa <handa@m17n.org>
14718
14719 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14720 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14721
14722 2008-02-01 Kenichi Handa <handa@m17n.org>
14723
14724 * xfont.c (xfont_open): Set font->format.
14725
14726 * xftfont.c (xftfont_open): Set font->format.
14727
14728 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14729 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14730 (ftfont_open): Set font->format.
14731 (ftfont_font_format): New function.
14732
14733 * font.h (struct font): New member format.
14734
14735 * font.c (Qopentype): New variable.
14736 (syms_of_font): Defsym it.
14737 (Fquery_font): Change the format of the last element of the return
14738 value.
14739
14740 2008-02-01 Kenichi Handa <handa@m17n.org>
14741
14742 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14743 last resort.
14744
14745 2008-02-01 Kenichi Handa <handa@m17n.org>
14746
14747 * coding.c (detect_coding_charset): Fix detection of multi-byte
14748 charset.
14749
14750 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14751
14752 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14753
14754 2008-02-01 Kenichi Handa <handa@m17n.org>
14755
14756 * xdisp.c (get_next_display_element): Set it->face_id for the
14757 first component of a composition.
14758 (x_produce_glyphs): Check if the font is changed or not for composition.
14759
14760 2008-02-01 Kenichi Handa <handa@m17n.org>
14761
14762 * fontset.c (Qlatin): New variable.
14763 (syms_of_fontset): Define it as a lisp symbol.
14764 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14765
14766 2008-02-01 Kenichi Handa <handa@m17n.org>
14767
14768 * font.c (font_unparse_fcname): Pay attention to the case that
14769 some of font property is a null string.
14770
14771 2008-02-01 Kenichi Handa <handa@m17n.org>
14772
14773 * term.c: Include "composite.h".
14774 (encode_terminal_code): Output all components of composition.
14775 Check the size of encode_terminal_src.
14776 (produce_glyphs): For composition, call produce_composite_glyph.
14777 (append_composite_glyph, produce_composite_glyph): New functions.
14778
14779 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14780 is not found, get font_info from the current ascii face.
14781
14782 2008-02-01 Kenichi Handa <handa@m17n.org>
14783
14784 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14785 buffer-file-name to Qnil before calling insert_from_buffer.
14786
14787 * font.c (font_unparse_fcname): Pay attention to the case that
14788 foundry is a null string.
14789
14790 2008-02-01 Kenichi Handa <handa@m17n.org>
14791
14792 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14793
14794 * font.c (Qunicode_sip): New variable.
14795 (syms_of_font): Declare it as a Lisp symbol.
14796
14797 * font.h (Qunicode_sip): Extern it.
14798
14799 2008-02-01 Kenichi Handa <handa@m17n.org>
14800
14801 * composite.c (get_composition_id): Pay attention to TAB component.
14802
14803 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14804 TAB. Adjust for the change of s->char2b which always points to
14805 the first element of allocated memory.
14806
14807 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14808
14809 * xdisp.c (handle_composition_prop): Set it->c to the first
14810 non-TAB component.
14811 (fill_composite_glyph_string): Change argument.
14812 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14813 (x_produce_glyphs): Fix handling of left/right padding.
14814
14815 2008-02-01 Kenichi Handa <handa@m17n.org>
14816
14817 * coding.c (detect_coding_system): Fix for handling off
14818 inhibit_iso_escape_detection. Fix for the case that no coding
14819 system is defined for a specific coding category.
14820
14821 2008-02-01 Kenichi Handa <handa@m17n.org>
14822
14823 * font.c (font_matching_entity): Delete unused local var.
14824
14825 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14826 opening a font.
14827
14828 * fileio.c (Finsert_file_contents): On recovering a file, assume
14829 Unix-like eol.
14830 (choose_write_coding_system): On auto-saving a file, force
14831 Unix-like eol.
14832
14833 * coding.c (setup_coding_system): Fix setting of
14834 coding->common_flags based on eol_type.
14835 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14836 inherit from it.
14837
14838 2008-02-01 Kenichi Handa <handa@m17n.org>
14839
14840 * alloc.c (NSTATICS): Increas to 0x600.
14841
14842 2008-02-01 Kenichi Handa <handa@m17n.org>
14843
14844 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14845 (ftfont_list): Don't check :name property.
14846 (ftfont_match): New function.
14847 (ftfont_pattern_entity): If the pattern doesn't contain
14848 FC_SPACING, don't assume FC_MONO.
14849
14850 * font.h (struct font_driver): New member `match'.
14851 (font_update_drivers): Adjust prototype.
14852
14853 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14854 property of FONT.
14855 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14856 them unconditionally.
14857 (font_matching_entity): New function.
14858 (font_open_by_name): Try font_matching_entity if exact match is
14859 not found.
14860 (font_update_drivers): Delete the arg FONT. Return a list of
14861 actually used backends. Don't free faces, font caches here.
14862 Don't store data in frame parameters. Don't call x_set_font.
14863 (Ffont_spec): Store :name property as is.
14864 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14865 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14866 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14867 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14868 Call font->driver->otf_gsub instead of font_otf_gsub.
14869
14870 * frame.c (x_set_font_backend): Do more works that were done in
14871 font_update_drivers before.
14872
14873 * xfont.c (xfont_match): New function.
14874 (xfont_driver): Set xfont_driver.match to xfont_match.
14875 (xfont_draw): Set font in GC if necessary.
14876
14877 * ftxfont.c (ftxfont_match): New function.
14878 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14879
14880 * xftfont.c (xftfont_match): New function.
14881 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14882
14883 2008-02-01 Kenichi Handa <handa@m17n.org>
14884
14885 * font.h (struct font): New member scalable.
14886 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14887 (font_otf_gsub): Adjust prototype.
14888
14889 * font.c (font_otf_capability): Fix handling of the default langsys.
14890 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14891 Check the contents of SPEC.
14892 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14893 (check_gstring): New function.
14894 (REPLACEMENT_CHARACTER): New macro.
14895 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14896 glyph codes of GSTRING.
14897 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14898 (font_prepare_composition): Set cmp->glyph_len.
14899 (font_open_entity): Set font->scalable.
14900 (Ffont_get): Handle :otf property.
14901 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14902 functions.
14903 (Fquery_font): Use font->font.full_name.
14904 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14905 Sfont_otf_alternates.
14906
14907 * ftfont.c (ftfont_open): Set font->font.full_name and
14908 font->font.name properly. Fix calculation of font->font.height
14909 and font->min_width.
14910
14911 * ftxfont.c (ftxfont_create_gcs): New function.
14912 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14913 (ftxfont_draw_backgrond): Fix filling region.
14914 (ftxfont_default_fid): New function.
14915 (ftxfont_open): Set xfont->fid to the return value of
14916 ftxfont_default_fid.
14917 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14918 (ftxfont_done_face): Free only GCs that are created by
14919 ftxfont_create_gcs.
14920 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14921
14922 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14923 Clip to src->width, etc (not src->clip_XXX).
14924
14925 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14926 FontBackend frame parameter.
14927
14928 2008-02-01 Kenichi Handa <handa@m17n.org>
14929
14930 * font.h (struct font_driver_list): New member `on'.
14931 (Fclear_font_cache): EXFUN it.
14932 (font_update_drivers): Extern it.
14933
14934 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14935 (font_list_entities): Check driver_list->on.
14936 (register_font_driver): Initalize `on' member to 0.
14937 (font_update_drivers): New function.
14938 (Fclear_font_cache): Check driver_list->on.
14939
14940 * frame.h (Qfont_backend): Extern it.
14941 (x_set_font_backend): Extern it.
14942
14943 * frame.c (Qfont_backend): New variable.
14944 (frame_parms): New element for font-backend.
14945 (x_set_font_backend): New function.
14946
14947 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14948 FontBackend frame parameter.
14949 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14950 x_set_font_backend.
14951
14952 * xfont.c (xfont_list): Don't try listing by :name property if the
14953 name is not for XLFD.
14954
14955 2008-02-01 Kenichi Handa <handa@m17n.org>
14956
14957 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14958 (LGLYPH_SET_TO): New macros.
14959 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14960 element of G is vector or not.
14961 (font_at): Extern it.
14962
14963 * font.c: Include window.h.
14964 (font_lispy_object): New function.
14965 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14966 end of valid glyph.
14967 (font_close_object): Fix getting (struct font *).
14968 (font_at): New function.
14969 (Ffont_get): If FONT is a font-object, get entity from it.
14970 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14971 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14972 range check.
14973 (Ffont_at): New function.
14974 (syms_of_font): Defsubr Sfont_at.
14975
14976 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14977 before the entry for Qcomposition.
14978 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14979 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14980 the font in gstring.
14981 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14982 LGLYPH_FORM (g) to detect the end of valid glyph.
14983 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14984 we are composing with gstring.
14985
14986 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14987 Check if adjustment is vector or not.
14988
14989 * Makefile.in (font.o): Make it depends on window.h.
14990
14991 2008-02-01 Kenichi Handa <handa@m17n.org>
14992
14993 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14994 adjustment is vector or not.
14995
14996 2008-02-01 Miles Bader <miles@gnu.org>
14997
14998 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14999
15000 2008-02-01 Kenichi Handa <handa@m17n.org>
15001
15002 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15003 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15004 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15005
15006 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15007 (DEVICE_DELTA): Fix typo.
15008 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15009 LGLYPH format.
15010
15011 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15012 the change of LGLYPH format.
15013
15014 2008-02-01 Kenichi Handa <handa@m17n.org>
15015
15016 * ftfont.c (ftfont_list): Fix typo.
15017 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15018
15019 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15020
15021 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15022
15023 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15024 xftface_info is non-NULL.
15025
15026 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15027
15028 * ftfont.c (ftfont_list): Move misplaced #endif.
15029
15030 2008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * ftfont.c (ftfont_list): Pay attention to the case that
15033 FC_CAPABILITY is not defined.
15034
15035 2008-02-01 Kenichi Handa <handa@m17n.org>
15036
15037 * xftfont.c (xftfont_open): Set charset related members to -1.
15038
15039 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15040 QCname.
15041 (ftfont_open): Set charset related members to -1.
15042
15043 * fontset.c (Votf_script_alist): New variable.
15044 (syms_of_fontset): Initialize it.
15045 (fontset_font): Delete unused variable.
15046
15047 * fontset.h (Votf_script_alist): Extern it.
15048
15049 * font.c (font_find_for_lface): Optimize code.
15050
15051 * font.h (font_close_object, font_merge_old_spec): Extern them.
15052
15053 2008-02-01 Kenichi Handa <handa@m17n.org>
15054
15055 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15056 (syms_of_font): Initialize them.
15057 (font_pixel_size): Allow float value in dpi.
15058 (font_prop_validate_type): Delete.
15059 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15060 Change caller.
15061 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15062 (font_prop_validate_extra): Delete.
15063 (font_prop_validate_spacing): New function.
15064 (font_property_table): Add elements for all known properties.
15065 (get_font_prop_index): Rename from check_font_prop_name. New
15066 argument FROM. Change caller.
15067 (font_prop_validate): Validate all known properties.
15068 (font_put_extra): Delete argument force. Change caller.
15069 (font_expand_wildcards): Make it static. Fix the way of shrinking
15070 the possible range.
15071 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15072 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15073 Change caller.
15074 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15075 (font_parse_fcname): Delete argument merge. Fix parsing of point
15076 size. Don't validate properties values here. Change caller.
15077 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15078 (font_open_by_name): Delete unused variable.
15079 (Ffont_spec): Likewise. Validate property values.
15080 (Ffont_match_p): New function.
15081
15082 * font.h (QCscalable): Extern it.
15083 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15084
15085 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15086
15087 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15088 (xfont_list_pattern): New function.
15089 (xfont_list): Use xfont_list_pattern.
15090
15091 2008-02-01 Kenichi Handa <handa@m17n.org>
15092
15093 * font.h (Flist_fonts): EXFUN it.
15094
15095 2008-02-01 Jason Rumney <jasonr@gnu.org>
15096
15097 * w32term.c (w32_initialize): Add back smoothing_type and
15098 smoothing_enabled definitions.
15099
15100 2008-02-01 Kenichi Handa <handa@m17n.org>
15101
15102 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15103 s->face->font on determining underline position.
15104
15105 2008-02-01 Kenichi Handa <handa@m17n.org>
15106
15107 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15108 (font_has_char): Accept font-object too.
15109 (font_find_for_lface): Try at first with a size specified in face.
15110
15111 2008-02-01 Kenichi Handa <handa@m17n.org>
15112
15113 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15114 font_open_by_name.
15115
15116 2008-02-01 Kenichi Handa <handa@m17n.org>
15117
15118 * font.h (QCspacing, QCdpi): Extern them.
15119 (enum font_spacing): New enum.
15120 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15121
15122 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15123 (QCspacing, QCdpi): New variables.
15124 (syms_of_font): Initialize them.
15125 (font_pixel_size): New function.
15126 (font_put_extra): New function.
15127 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15128 in FONT_EXTRA.
15129 (font_parse_fcname): Handle enumerated values (e.g. bold).
15130 Fix handling font size. Add QCname property that contains only
15131 unknown properties.
15132 (font_score): Change argument. Change caller. Pay attention to
15133 FONT_PIXEL_SIZE_QUANTUM.
15134 (font_sort_entites, font_list_entities, font_find_for_lface)
15135 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15136 (Ffont_spec): Add QCname property that contains only unknown properties.
15137
15138 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15139 include weight in listing pattern, instead check weight of each
15140 listed font. Don't include scalable in pattern. Pay attention to
15141 FONT_PIXEL_SIZE_QUANTUM.
15142
15143 2008-02-01 Kenichi Handa <handa@m17n.org>
15144
15145 * font.c (font_parse_fcname): Fix parsing of point-size.
15146 (font_unparse_fcname): Produce symbolic names for style properties.
15147 (font_list_entities): Handle float size correctly.
15148 (font_open_by_name): Prefer `normal' property values if the name
15149 doesn't specify them.
15150
15151 * fontset.c (Finternal_char_font): Use font_get_name, not
15152 Ffont_xlfd_name.
15153
15154 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15155 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15156 pattern. Don't force scalable.
15157
15158 * xftfont.c (xftfont_open): For generating a name, start from
15159 96-byte buffer.
15160
15161 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15162
15163 * frame.h (x_new_fontset2): Fix prototype.
15164
15165 2008-02-01 Kenichi Handa <handa@m17n.org>
15166
15167 * font.h (struct font_driver): Delete member parse_name.
15168 (font_match_p, font_get_spec, font_parse_fcname)
15169 (font_unparse_fcname): Extern them.
15170 (font_get_name): Adjust prototype.
15171
15172 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15173 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15174 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15175 unnecessary checks for weight, slant, and swidth.
15176 (font_parse_fcname): New function.
15177 (font_unparse_fcname): New function.
15178 (font_parse_name): New function.
15179 (font_match_p): New function.
15180 (font_get_name): Change return value to Lisp string.
15181 (font_get_spec): New function.
15182 (Qunspecified, Qignore_defface): Don't extern them.
15183 (font_find_for_lface): Assume that LFACE is fully specified.
15184 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15185 object, use it for FACE.
15186 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15187 driver->parse_name.
15188 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15189
15190 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15191 prototype.
15192
15193 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15194 argument F. Don't call Fnew_fontset. Instead, directly call
15195 make_fontset.
15196
15197 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15198
15199 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15200 of x_new_fontset2.
15201
15202 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15203 (Qsans__serif): New variables.
15204 (ftfont_generic_family_list): New variable.
15205 (syms_of_ftfont): Initialize the above variables.
15206 (ftfont_pattern_entity): Delete argument NAME.
15207 (ftfont_list_generic_family): New function.
15208 (ftfont_parse_name): Delete this function.
15209 (ftfont_list): Try generic family only when FcFontList found no font.
15210 (ftfont_list_family): Fix args to FcObjectSetBuild.
15211
15212 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15213 object in attrs[LFACE_FONT_INDEX].
15214 (set_lface_from_font_name): Cancel all changes for font-backend.
15215 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15216 function.
15217 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15218 font object in QCfont attribute.
15219 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15220 (realize_default_face) [USE_FONT_BACKEND]: Call
15221 set_lface_from_font_and_fontset.
15222
15223 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15224 "fixed", and signal error here if no suitable font was found.
15225
15226 * xfont.c (xfont_parse_name): Delete this function.
15227
15228 * xftfont.c (xftfont_open): Change coding style of error
15229 handling. Generate fontconfig's fontname pattern.
15230
15231 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15232 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15233
15234 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15235 Both args FONTSET and FONT_OBJECT must be existing ones.
15236
15237 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15238
15239 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15240
15241 2008-02-01 Kenichi Handa <handa@m17n.org>
15242
15243 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15244
15245 * font.h (struct font): Fix typo.
15246
15247 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15248 XLFD_XXX_INDEX.
15249 (enum xlfd_field_mask): New enum.
15250 (intern_font_field): Changed argument. Change caller. If digits
15251 are followed by non-digits, return a symbol.
15252 (font_expand_wildcards): New function.
15253 (font_parse_xlfd): Fix wildcard handling.
15254 (Ffont_spec): If :name is specified, reflect the info in the other
15255 properties.
15256
15257 * ftfont.c (ftfont_pattern_entity): Fix typo.
15258 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15259 locale.
15260
15261 2008-02-01 Kenichi Handa <handa@m17n.org>
15262
15263 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15264
15265 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15266 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15267 registry doesn't specify encoding part.
15268 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15269 (font_open_by_name): At first try parsing the name.
15270 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15271 as Lisp symbols.
15272
15273 * fontset.c (reorder_font_vector): Pay attention to the case that
15274 the 3rd element of font_def is nil.
15275 (fontset_font): For the default fontset, append one more fontset
15276 elements for a script-based font specification. Don't add script
15277 attribute on finding a font.
15278 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15279 font name.
15280 (fontset_ascii_font): If a font can't be opened, return nil.
15281
15282 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15283 (ftfont_pattern_entity): New function.
15284 (ftfont_get_cache): Assume that freetype_font_cache is already
15285 initialized.
15286 (ftfont_list): Handle the case that a file is specified in font
15287 name. Use ftfont_pattern_entity to generate entities.
15288 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15289 (syms_of_ftfont): Initialize freetype_font_cache.
15290
15291 * xftfont.c (xftfont_open): Make the font name fontconfig's
15292 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15293 (xftfont_close): Free font->font.name if not NULL.
15294
15295 * xfont.c (xfont_list): If script is specified for a font, return
15296 null_vector.
15297 (xfont_list_family): Declare argument type.
15298
15299 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15300 name, set LFACE_FONT (lface) to nil.
15301
15302 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15303 return Qnil.
15304
15305 2008-02-01 Kenichi Handa <handa@m17n.org>
15306
15307 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15308 (standard_args): Add "-enable-font-backend".
15309
15310 2008-02-01 Kenichi Handa <handa@m17n.org>
15311
15312 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15313 (struct xftdraw_list, xftdraw_list): Delete them.
15314 (register_xftdraw, check_xftdraw): Delete them.
15315 (xftfont_prepare_face): Don't call register_xftdraw.
15316 (xftfont_done_face): Don't call check_xftdraw.
15317 (xftfont_draw): Get background color only when with_background is
15318 nonzero.
15319
15320 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15321
15322 2008-02-01 Kenichi Handa <handa@m17n.org>
15323
15324 These changes are for the new font handling codes.
15325
15326 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15327 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15328 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15329 (FONTSRC, FONTOBJ): New variables.
15330 (obj): Add $(FONTOBJ).
15331 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15332 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15333 @LIBOTF_LIBS@.
15334 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15335 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15336
15337 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15338
15339 * character.h (Vscript_representative_chars): Extern it.
15340
15341 * character.c (Vscript_representative_chars): New variable.
15342 (syms_of_character): Declare it as a Lisp variable.
15343
15344 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15345 enable_font_backend is nonzero, accept the composition method
15346 COMPOSITION_WITH_GLYPH_STRING.
15347
15348 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15349 enumeration COMPOSITION_WITH_GLYPH_STRING.
15350
15351 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15352 members clip_x, clip_y, clip_width, and clip_height.
15353 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15354
15355 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15356 --enable-font-backend. Call syms_of_font.
15357
15358 * fns.c (assoc_no_quit): New function.
15359
15360 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15361 (face_for_font, new_fontset_from_font)
15362 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15363
15364 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15365 (fontset_font, fontset_ascii, face_for_char)
15366 (make_fontset_for_ascii_face, Ffont_info)
15367 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15368 is nonzero, use font-backend mechanism.
15369 (find_font_encoding): Make it non-static.
15370 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15371 New functions.
15372
15373 * frame.h (struct frame): New members resx and resy.
15374 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15375 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15376
15377 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15378 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15379
15380 * lisp.h (assoc_no_quit): Extern it.
15381
15382 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15383 Through out the file, use FONT_INFO_FROM_FACE instead of
15384 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15385 rif->per_char_metric.
15386 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15387 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15388 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15389 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15390 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15391 nonzero, use font-backend mechanism.
15392 (get_per_char_metric): New function.
15393
15394 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15395 (set_lface_from_font_name)
15396 (set_font_frame_param, free_realized_face)
15397 (prepare_face_for_display, clear_face_gcs)
15398 (Finternal_set_font_selection_order, realize_x_face)
15399 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15400 font-backend mechanism.
15401 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15402 (load_face_font) [USE_FONT_BACKEND]: Abort.
15403 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15404 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15405
15406 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15407 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15408 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15409 nonzero, register all available font drivers. Call
15410 x_default_font_parameter for deciding a font.
15411 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15412
15413 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15414 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15415 (x_set_glyph_string_clipping_exactly)
15416 (x_compute_glyph_string_overhangs)
15417 (x_draw_glyph_string_foreground)
15418 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15419 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15420 enable_font_backend is nonzero, use font-backend mechanism.
15421 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15422
15423 2008-02-01 Kenichi Handa <handa@m17n.org>
15424
15425 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15426 system_eol_type.
15427 (syms_of_coding): Initialize system_eol_type.
15428
15429 * process.c (Fset_process_coding_system): Inherit system's eol
15430 format if necessary.
15431
15432 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15433
15434 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15435
15436 2008-02-01 Kenichi Handa <handa@m17n.org>
15437
15438 * coding.c (decode_eol): Pay attention to buffer relocation in
15439 del_range_2.
15440 (decode_coding): Call decode_eol before restoring undo_list.
15441
15442 2008-02-01 Kenichi Handa <handa@m17n.org>
15443
15444 * charset.c (Fdefine_charset_internal): Fix setting of
15445 emacs_mule_bytes.
15446
15447 2008-02-01 Kenichi Handa <handa@m17n.org>
15448
15449 * keyboard.c (read_char): Check if C is a character or not before
15450 looking up Vkeyboard_translate_table.
15451
15452 2008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15455 condition to terminate the loop.
15456
15457 2008-02-01 Kenichi Handa <handa@m17n.org>
15458
15459 * coding.c (produce_composition): Compare charbuf[i] instead of
15460 args[i] against 0.
15461 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15462
15463 2008-02-01 Kenichi Handa <handa@m17n.org>
15464
15465 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15466 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15467 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15468 detect_coding.
15469 (emacs_mule_char): Handle old style (Emacs 20) component character
15470 of a composition.
15471 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15472 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15473 composition rule.
15474 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15475
15476 2008-02-01 Kenichi Handa <handa@m17n.org>
15477
15478 * coding.c (encode_coding_ccl): Allocate destination dynamically
15479 when necessary.
15480
15481 2008-02-01 Kenichi Handa <handa@m17n.org>
15482
15483 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15484 the loop. When quitted, show a proper error message.
15485
15486 2008-02-01 Kenichi Handa <handa@m17n.org>
15487
15488 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15489 src->clip_head and src->clip_tail temporarily instead of src->hl.
15490
15491 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15492 character sequence.
15493 (Fccl_execute_on_string): Use ASET, not XSET.
15494
15495 2008-02-01 Kenichi Handa <handa@m17n.org>
15496
15497 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15498
15499 2008-02-01 Kenichi Handa <handa@m17n.org>
15500
15501 * coding.c (decode_coding): Fix the condition of terminating the
15502 decoding loop.
15503
15504 2008-02-01 Kenichi Handa <handa@m17n.org>
15505
15506 * data.c (Faset): On setting a character bigger than 255 in a
15507 unibyte string, signal an error instead of make the string multibyte.
15508
15509 2008-02-01 Kenichi Handa <handa@m17n.org>
15510
15511 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15512 made by a mapping table.
15513
15514 2008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15517 not.
15518 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15519 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15520
15521 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15522 s->face is NULL or not.
15523
15524 2008-02-01 Kenichi Handa <handa@m17n.org>
15525
15526 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15527 (x_draw_glyph_string): Fix drawing of right_overhang and
15528 left_overhang around/on cursor.
15529
15530 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15531
15532 2008-02-01 Kenichi Handa <handa@m17n.org>
15533
15534 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15535
15536 2008-02-01 Kenichi Handa <handa@m17n.org>
15537
15538 * coding.c (Fdefine_coding_system_internal)
15539 (Fdefine_coding_system_alias): Avoid a duplicated element in
15540 Vcoding_system_alist.
15541
15542 2008-02-01 Kenichi Handa <handa@m17n.org>
15543
15544 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15545
15546 * coding.c (Qcoding_system_define_form): New variable.
15547 (syms_of_coding): Intern and staticpro it.
15548 (Fcoding_system_p): Check Qcoding_system_define_form.
15549 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15550
15551 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15552 Fcoding_system_p.
15553 (CHECK_CODING_SYSTEM): If ID is not available, call
15554 Fcheck_coding_system.
15555 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15556 Try also Fcheck_coding_system.
15557
15558 2008-02-01 Kenichi Handa <handa@m17n.org>
15559
15560 * coding.c (code_conversion_restore): GCPRO arg.
15561
15562 2008-02-01 Kenichi Handa <handa@m17n.org>
15563
15564 * character.c (lisp_string_width): Check multibyteness of STRING.
15565
15566 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15567
15568 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15569 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15570 (decode_mac_font_name): Use decode_coding_c_string instead of
15571 decode_coding.
15572 (x_load_font): Initialize fontp->fontset to -1. Set
15573 fontp->encoding_type.
15574
15575 2008-02-01 Kenichi Handa <handa@m17n.org>
15576
15577 * search.c (search_buffer): Give up BM search on case-fold-search
15578 if one of a target character has a case-equivalence of different
15579 byte length even if that target charcter is an ASCII.
15580 (simple_search): Fix calculation of byte length of matched text.
15581 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15582
15583 2008-02-01 Kenichi Handa <handa@m17n.org>
15584
15585 * coding.c (decode_coding): Fix handling of invalid bytes.
15586
15587 2008-02-01 Kenichi Handa <handa@m17n.org>
15588
15589 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15590 Unicode characters.
15591
15592 2008-02-01 Kenichi Handa <handa@m17n.org>
15593
15594 * coding.c (encode_coding_object): If a pre-write-conversion
15595 function makes a new buffer, kill it.
15596
15597 2008-02-01 Kenichi Handa <handa@m17n.org>
15598
15599 * coding.c (QCascii_compatible_p): New variable.
15600 (syms_of_coding): Initialize it.
15601 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15602 calling string_char.
15603 (record_conversion_result): Add `default:' case.
15604 (coding_charset_list): Delete unused variable `coding_type'.
15605 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15606 property in the plist of the coding system.
15607 (Fcoding_system_put): Check QCascii_compatible_p.
15608
15609 2008-02-01 Miles Bader <miles@gnu.org>
15610
15611 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15612 removed calculation of frame `f', as it's now used.
15613
15614 2008-02-01 Kenichi Handa <handa@m17n.org>
15615
15616 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15617 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15618 (UNIDATA): New variable.
15619 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15620 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15621 $(RUN_TEMACS) unconditionally.
15622
15623 2008-02-01 Kenichi Handa <handa@m17n.org>
15624
15625 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15626 (admindir): New variable.
15627 ($(lispsource)international/charprop.el): New target.
15628
15629 2008-02-01 Miles Bader <miles@gnu.org>
15630
15631 * character.c (chars-in-region): Remove obsolete function.
15632 (syms_of_character): Remove its initialization.
15633
15634 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15635
15636 * w32select.c (validate_coding_system)
15637 (setup_windows_coding_system): New functions.
15638 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15639 setup_windows_coding_system.
15640 (setup_config, Fw32_get_clipboard_data): Use
15641 validate_coding_system.
15642 (Fx_selection_exists): Move call to setup_config to a place
15643 where signals are allowed.
15644
15645 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15646 (Fcheck_coding_system): Add declarations.
15647
15648 2008-02-01 Kenichi Handa <handa@m17n.org>
15649
15650 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15651
15652 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15653
15654 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15655 string as the second argument for x_new_fontset.
15656
15657 2008-02-01 Kenichi Handa <handa@m17n.org>
15658
15659 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15660 (encode_coding_object): Use safe_call instead of call2.
15661
15662 2008-02-01 Kenichi Handa <handa@m17n.org>
15663
15664 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15665
15666 * Makefile.in (lisp): Include charprop.el.
15667
15668 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15669
15670 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15671 Not sure if it's unnecessary.
15672
15673 2008-02-01 Steven Tamm <steventamm@mac.com>
15674
15675 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15676 some possibly unnecessary fontset checking code that crashed
15677 when creating a new frame.
15678
15679 2008-02-01 Kenichi Handa <handa@m17n.org>
15680
15681 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15682 lookup_face.
15683
15684 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15685
15686 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15687
15688 2008-02-01 Kenichi Handa <handa@m17n.org>
15689
15690 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15691 (coding_charset_list): New function.
15692
15693 * coding.h (coding_charset_list): Extern it.
15694
15695 2008-02-01 Kenichi Handa <handa@m17n.org>
15696
15697 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15698 concatenation of family and registry.
15699
15700 2008-02-01 Kenichi Handa <handa@m17n.org>
15701
15702 * character.h (BYTE8_STRING): Fix typo.
15703
15704 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15705 string to multibyte (sync to HEAD).
15706
15707 * casefiddle.c (casify_region): Handle changes in byte-length
15708 using replace_range_2 (sync to HEAD).
15709
15710 2008-02-01 Andreas Schwab <schwab@suse.de>
15711
15712 * chartab.c (map_char_table): GCPRO table and arg.
15713
15714 2008-02-01 Kenichi Handa <handa@m17n.org>
15715
15716 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15717 already at limit.
15718
15719 2008-02-01 Kenichi Handa <handa@m17n.org>
15720
15721 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15722 instead of fast_c_string_match_ignore_case.
15723 (find_font_encoding): Change argument to Lisp_Object. Use
15724 fast_string_match_ignore_case instead of
15725 fast_c_string_match_ignore_case. Change caller.
15726
15727 2008-02-01 Kenichi Handa <handa@m17n.org>
15728
15729 * xdisp.c (get_next_display_element): In unibyte case, decide to
15730 display in octal form by checking a character by
15731 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15732
15733 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15734
15735 * character.c (unibyte_has_multibyte_table): New variable.
15736
15737 * character.h (unibyte_has_multibyte_table): Extern it.
15738 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15739
15740 2008-02-01 Kenichi Handa <handa@m17n.org>
15741
15742 * coding.c (encode_coding_iso_2022): Fix handling of charset
15743 annotation.
15744
15745 2008-02-01 Kenichi Handa <handa@m17n.org>
15746
15747 * coding.c (setup_coding_system): If coding_system is nil, use
15748 Qundecided.
15749 (Fterminal_coding_system): Return nil if terminal coding system is
15750 `undecided'.
15751 (syms_of_coding): Define coding-system `undecided' here. Setup
15752 terminal_coding as `undecided'.
15753
15754 2008-02-01 Kenichi Handa <handa@m17n.org>
15755
15756 * xdisp.c (message_dolog, set_message_1): Call
15757 unibyte_char_to_multibyte with arg type int.
15758
15759 * lread.c (read1): Fix reading of a char-table.
15760
15761 * print.c (print_object): Include sub char-table in circularities
15762 detection.
15763
15764 2008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15767 Append the found sequences in car of ARGS instead of prepending.
15768
15769 2008-02-01 Kenichi Handa <handa@m17n.org>
15770
15771 * fileio.c (report_file_error): Make a unibyte string from
15772 strerror (errorno).
15773 (Fsubstitute_in_file_name): Fix the arg to
15774 unibyte_char_to_multibyte. It is evaluated twice.
15775
15776 2008-02-01 Kenichi Handa <handa@m17n.org>
15777
15778 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15779
15780 2008-02-01 Kenichi Handa <handa@m17n.org>
15781
15782 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15783 BOM is not found.
15784 (detect_coding, detect_coding_system): Optimization for ISO-2022
15785 when no 8-bit data is found.
15786
15787 2008-02-01 Jason Rumney <jasonr@gnu.org>
15788
15789 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15790
15791 2008-02-01 Kenichi Handa <handa@m17n.org>
15792
15793 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15794 CHARS.
15795
15796 2008-02-01 Steven Tamm <steventamm@mac.com>
15797
15798 * macterm.c (mac_encode_char): Add charset argument and update
15799 to use encoding_type.
15800 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15801 switch to pure fontset.
15802 (decode_mac_font_name): Temporarily remove decoding.
15803 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15804 (x_load_font): Temporarily remove encoding.
15805
15806 2008-02-01 Kenichi Handa <handa@m17n.org>
15807
15808 * xfaces.c (Fface_font): If frame is not on a window system,
15809 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15810 refer to face->font.
15811 (split_font_name_into_vector, build_font_name_from_vector)
15812 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15813 when HAVE_WINDOW_SYSTEM is defined.
15814
15815 2008-02-01 Kenichi Handa <handa@m17n.org>
15816
15817 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15818 (x_produce_glyphs): Fix setting of members of cmp in case
15819 cmp->glyph_len is zero.
15820
15821 * fontset.c (Fset_fontset_font): Fix docstring.
15822 (Ffontset_info): Make it backward compatible. New arg ALL.
15823
15824 2008-02-01 Kim F. Storm <storm@cua.dk>
15825
15826 * process.c (read_process_output): Grow decoding_buf when needed;
15827 this could cause a crash in allocate_string and compact_small_strings.
15828
15829 2008-02-01 Kenichi Handa <handa@m17n.org>
15830
15831 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15832
15833 2008-02-01 Kenichi Handa <handa@m17n.org>
15834
15835 * coding.c (setup_coding_system): Set coding->common_flags
15836 correctly for raw-text.
15837 (consume_chars): On encoding unibyte text by raw-text, don't check
15838 multibyte form.
15839 (encode_coding): On encoding by raw-text, never use translation tables.
15840
15841 * fileio.c (e_write): Short cut for the case of no encoding.
15842
15843 2008-02-01 Kenichi Handa <handa@m17n.org>
15844
15845 * coding.c (detect_coding, detect_coding_system): Delete unused
15846 variables.
15847
15848 2008-02-01 Kenichi Handa <handa@m17n.org>
15849
15850 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15851 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15852
15853 2008-02-01 Kenichi Handa <handa@m17n.org>
15854
15855 * coding.c (Ffind_coding_systems_region_internal): Include
15856 raw-text and no-conversion in the result.
15857
15858 2008-02-01 Kenichi Handa <handa@m17n.org>
15859
15860 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15861 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15862 FONT_DEF.
15863 (font_def_arg, add_arg, from_arg, to_arg): New args.
15864 (set_fontset_font): Change argument.
15865 (Fset_fontset_font): Fix for the case that TARGET is a script
15866 name and charset name.
15867 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15868
15869 2008-02-01 Kenichi Handa <handa@m17n.org>
15870
15871 * fontset.c (fontset_font): Rename from fontset_face. Change return
15872 value.
15873 (face_suitable_for_char_p, face_for_char): Adjust for the change
15874 of fontset_font.
15875 (make_fontset_for_ascii_face): Fix setting of the fontset element
15876 for ASCII.
15877 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15878 to get a font name.
15879 (Ffontset_info): Adjust for the change of fontset_font.
15880
15881 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15882
15883 * character.h (LEADING_CODE_LATIN_1_MIN)
15884 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15885
15886 2008-02-01 Kenichi Handa <handa@m17n.org>
15887
15888 * editfns.c (check_translation): New function.
15889 (Ftranslate_region_internal): Handle M:N mapping.
15890
15891 2008-02-01 Kenichi Handa <handa@m17n.org>
15892
15893 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15894
15895 2008-02-01 Kenichi Handa <handa@m17n.org>
15896
15897 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15898 goto invalid_code.
15899 (decode_coding_iso_2022): Fix handling of invalid designation.
15900
15901 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15902 after calling code_conversion_save.
15903
15904 2008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15907
15908 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15909
15910 * fontset.c: Include "intervals.h".
15911 (fontset_face): Fix comparing of Lisp_Objects.
15912 (free_face_fontset, new_fontset_from_font_name): Fix
15913 Lisp_Object/int mixup.
15914
15915 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15916
15917 * coding.c: Add many prototypes for static functions.
15918 (get_translation_table): Allow max_lookup to be NULL.
15919 (decode_coding, Ffind_coding_systems_region_internal)
15920 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15921 get_translation_table with max_lookup NULL.
15922
15923 2008-02-01 Kenichi Handa <handa@m17n.org>
15924
15925 * coding.c (get_translation_table): Declare it as Lisp_Object.
15926 (LOOKUP_TRANSLATION_TABLE): New macro.
15927 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15928 instead of CHAR_TABLE_REF.
15929
15930 2008-02-01 Kenichi Handa <handa@m17n.org>
15931
15932 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15933 annotation data format.
15934 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15935 Change arguments FROM and TO to single argument NCHARS. Change caller.
15936 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15937 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15938 (decode_coding_ccl, decode_coding_charset): Pay attention to
15939 coding->charbuf_used.
15940 (get_translation): New function.
15941 (produce_chars): New arguments translation_table and last_block.
15942 Translate characters here. Return number of carryover chars.
15943 Change caller.
15944 (produce_composition): New argument pos. Change caller.
15945 Adjust for the change of annotation data format.
15946 (produce_charset, produce_annotation): Likewise.
15947 (decode_coding, encode_coding): Don't call translate_chars.
15948 (consume_chars): New arg translation_table. Change caller.
15949 (translate_chars): Delete.
15950 (syms_of_coding): Make translation-table's number of extra slots 2.
15951
15952 2008-02-01 Kenichi Handa <handa@m17n.org>
15953
15954 * search.c (simple_search): Fix setting this_pos_byte in backward
15955 search.
15956
15957 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15958 byte sequence.
15959 (detect_coding_ccl): Fix setting of the variable valids.
15960
15961 2008-02-01 Kenichi Handa <handa@m17n.org>
15962
15963 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15964
15965 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15966
15967 * editfns.c (Ftranslate_region_internal): Rename from
15968 Ftranslate_region. Accept a char-table in TABLE.
15969 (syms_of_editfns): Defsubr Stranslate_region_internal.
15970
15971 * xfaces.c (set_lface_from_font_name): If a font is specified for
15972 a frame, generate a fontset from the font.
15973 (build_scalable_font_name): If the scalable font is requested for
15974 a specific size, don't change that size.
15975 (try_font_list): Try a scalable font also in the case that a
15976 pattern string is specified.
15977
15978 2008-02-01 Kenichi Handa <handa@m17n.org>
15979
15980 * xfaces.c (Fface_font): New optional arg CHARACTER.
15981
15982 2008-02-01 Kenichi Handa <handa@m17n.org>
15983
15984 * charset.h (CHARSET_OFFSET): New macro.
15985
15986 2008-02-01 Kenichi Handa <handa@m17n.org>
15987
15988 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15989
15990 * fontset.c (fontset_face): Handle the case that repertory is a
15991 char-table.
15992 (find_font_encoding): Return nil for unknown encoding.
15993 (Fset_fontset_font): Ignore a font of unknown encoding.
15994
15995 2008-02-01 Kenichi Handa <handa@m17n.org>
15996
15997 * keymap.c (describe_vector): Handle default value of a char table.
15998
15999 * fontset.c (fontset_face): Handle fallback fonts correctly.
16000 (Ffontset_info): Return infomation about fallback fonts.
16001
16002 2008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * fontset.c (FONTSET_DEFAULT): New macro.
16005 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16006 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16007 the case that it is nil.
16008 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16009 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16010
16011 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16012 subset or superset.
16013
16014 2008-02-01 Kenichi Handa <handa@m17n.org>
16015
16016 * emacs.c (main): Call init_charset after syms_of_XXX.
16017
16018 * charset.c (Vcharset_map_directory): Delete.
16019 (Vcharset_map_path): New variable.
16020 (load_charset_map_from_file): Use Vcharset_map_path instead.
16021 (init_charset): Initialize Vcharset_map_path.
16022 (syms_of_charset): Delete declaration of "charset-map-directory",
16023 add declaration of "charset-map-path".
16024
16025 2008-02-01 Kenichi Handa <handa@m17n.org>
16026
16027 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16028 ASCII only string.
16029
16030 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16031
16032 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16033 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16034
16035 2008-02-01 Kenichi Handa <handa@m17n.org>
16036
16037 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16038
16039 * coding.c (QCmnemonic, QCdefalut_char)
16040 (QCdecode_translation_table, QCencode_translation_table)
16041 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16042 (get_translation_table): Return a list of translation tables if
16043 necessary.
16044 (decode_coding): Call get_translation_table with ENCODEP 0.
16045 (char_encodable_p): If translation_table is non-nil, always call
16046 translate_char.
16047 (Fdefine_coding_system_internal): Accept list of translation
16048 tables as :encode-translation-table and :decode-translation-table.
16049 (Fcoding_system_put): New function.
16050 (syms_of_coding): Declare new symbols. Defsubr
16051 Scoding_system_put.
16052 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16053 typically JISX0212.
16054
16055 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16056 when the charset is superset type.
16057
16058 * character.c (translate_char): Accept list of translation tables.
16059
16060 2008-02-01 Kenichi Handa <handa@m17n.org>
16061
16062 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16063 (CODING_ATTR_TRANS_TBL): New macro.
16064
16065 * coding.c (get_translation_table): New function.
16066 (translate_chars): Fix the bug of skipping annotation data.
16067 (decode_coding, encode_coding): Utilize get_translation_table.
16068 (char_encodable_p, Funencodable_char_position): Translate char if
16069 necessary.
16070 (Ffind_coding_systems_region_internal)
16071 (Fcheck_coding_systems_region): Setup translation table for encode
16072 in a coding system attribute vector in advance.
16073 (Fdefine_coding_system_internal): Allow a symbol as translation
16074 table. For shift-jis type coding system, allow 4th charset.
16075
16076 2008-02-01 Kenichi Handa <handa@m17n.org>
16077
16078 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16079
16080 * xdisp.c (get_next_display_element): Pass -1 as POS to
16081 FACE_FOR_CHAR if displaying a C-string.
16082
16083 2008-02-01 Kenichi Handa <handa@m17n.org>
16084
16085 * composite.c (get_composition_id): Handle xoff and yoff in a
16086 composition rule.
16087
16088 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16089 (struct composition): New member lbearing and rbearing.
16090
16091 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16092 (x_get_glyph_overhangs): Handle a composition glyph.
16093 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16094
16095 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16096 composition glyph.
16097
16098 2008-02-01 Kenichi Handa <handa@m17n.org>
16099
16100 * print.c: Include charset.h.
16101 (Vprint_charset_text_property): New variable.
16102 (Qdefault): Extern it.
16103 (PRINT_STRING_NON_CHARSET_FOUND)
16104 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16105 (print_check_string_result): New variable.
16106 (print_check_string_charset_prop): New function.
16107 (print_prune_charset_plist): New variable.
16108 (print_prune_string_charset): New function.
16109 (print_object): Call print_prune_string_charset if
16110 Vprint_charset_text_property is not t.
16111 (print_interval): Print nothing if interval->plist is nil.
16112 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16113 variable. Init and staticpro print_prune_charset_plist.
16114
16115 2008-02-01 Kenichi Handa <handa@m17n.org>
16116
16117 * fontset.c (new_fontset_from_font_name): Use the specified font
16118 for all characters in the new fontset.
16119
16120 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16121 OBJECT args.
16122
16123 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16124 OBJECT args for composition too.
16125
16126 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16127 OBJECT args.
16128
16129 2008-02-01 Kenichi Handa <handa@m17n.org>
16130
16131 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16132
16133 * fontset.c (reorder_font_vector): Adjust for the change of
16134 FONT_DEF format.
16135 (fontset_face): New arg id. Change caller.
16136 (face_for_char): New args pos and object.
16137 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16138 (fs_query_fontset): Check NAME by Fassoc too.
16139 (Fset_fontset_font): Allow non-XLFD font name.
16140 (Ffontset_info): Adjust for the change of FONT_DEF format.
16141
16142 * fontset.h (face_for_char): Adjust prototype.
16143
16144 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16145 (append_space, extend_face_to_end_of_line)
16146 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16147 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16148
16149 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16150 POS and OBJECT args.
16151
16152 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16153 POS and OBJECT args.
16154
16155 2008-02-01 Jason Rumney <jasonr@gnu.org>
16156
16157 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16158 of GlobalAlloc'ed memory.
16159
16160 2008-02-01 Kenichi Handa <handa@m17n.org>
16161
16162 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16163
16164 * charset.h (charset_table_used): Delete extern.
16165
16166 * charset.c (charset_table_used): Make it static.
16167 (map_charset_chars): Fix args to c_function with.
16168
16169 * chartab.c (map_sub_char_table_for_charset): Fix args to
16170 c_function with.
16171
16172 * coding.h (enum coding_result_code): Delete
16173 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16174
16175 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16176 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16177 (Vlast_code_conversion_error): New variables.
16178 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16179 (ONE_MORE_BYTE): Record error if any instead of signaling an
16180 error. If non-ASCII multibyte char is found, return the negative
16181 value of the code. All callers changed to check it.
16182 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16183 (record_conversion_result): New function. Change all codes setting
16184 coding->result to call this function.
16185 (detect_coding_utf_8, decode_coding_utf_8)
16186 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16187 Don't use the local variable incomplete.
16188 (emacs_mule_char): Change the second arg to `const'.
16189 (decode_coding): Fix of flushing out unprocessed data.
16190 (make_conversion_work_buffer): Fix making of a work buffer.
16191 (decode_coding_object): Return coding->dst_object.
16192
16193 * fontset.c (set_fontset_font): Fix args.
16194
16195 * lisp.h (CHARACTERBITS): Define as 22.
16196
16197 * process.c (send_process): Be sure to set coding->src_multibyte.
16198
16199 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16200
16201 2008-02-01 Kenichi Handa <handa@m17n.org>
16202
16203 * xdisp.c (handle_auto_composed_prop): Give limit to
16204 Fnext_single_char_property_change.
16205
16206 2008-02-01 Kenichi Handa <handa@m17n.org>
16207
16208 * composite.c (syms_of_composite): Don't make the composition hash
16209 table weak.
16210
16211 * fontset.c (Fset_fontset_font): Fix docstring.
16212
16213 * lisp.h (detect_coding_system): Adjust prototype.
16214
16215 * fileio.c (kill_workbuf_unwind): Delete this function.
16216 (Finsert_file_contents): Adjust the call of detect_coding_system.
16217 Get conversion_buffer by code_conversion_save. Use the macro
16218 CODING_MAY_REQUIRE_DECODING. After decoding, update
16219 coding_system.
16220
16221 * coding.h (make_conversion_work_buffer): Delete extern.
16222 (code_conversion_save): Extern it.
16223
16224 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16225 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16226 (decode_coding_utf_8): Don't do eol converion.
16227 (detect_coding_utf_16): Check coding->src_chars, not
16228 coding->src_bytes. Add heuristics for those that have no signature.
16229 (decode_coding_emacs_mule, decode_coding_iso_2022)
16230 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16231 Don't do eol converion.
16232 (adjust_coding_eol_type): Return a new coding system.
16233 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16234 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16235 each change.
16236 (decode_coding): Pay attention to undo_list. Do eol conversion for
16237 all types of coding-systems (if necessary).
16238 (Vcode_conversion_work_buf_list): Delete it.
16239 (Vcode_conversion_reused_workbuf): Rename from
16240 Vcode_conversion_reused_work_buf.
16241 (Vcode_conversion_workbuf_name): New variable.
16242 (reused_workbuf_in_use): New variable.
16243 (make_conversion_work_buffer): Delete the arg DEPTH.
16244 (code_conversion_restore): Change argument to cons.
16245 (code_conversion_save): Delete the argument BUFFER. Change callers.
16246 (detect_coding_system): New argument src_chars. Change callers.
16247 Fix for utf-16 detection.
16248 (init_coding_once): Don't use ISO_carriage_return.
16249 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16250 reused_workbuf_in_use.
16251
16252 2008-02-01 Kenichi Handa <handa@m17n.org>
16253
16254 * keymap.c (store_in_keymap): Pay attention to the case that idx
16255 is a cons specifying a character range.
16256
16257 2008-02-01 Kenichi Handa <handa@m17n.org>
16258
16259 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16260 HANDLED_RECOMPUTE_PROPS.
16261
16262 * coding.c (Fdefine_coding_system_internal): Fix checking of
16263 ascii compatibility.
16264
16265 2008-02-01 Kenichi Handa <handa@m17n.org>
16266
16267 * charset.c (find_charsets_in_text): Delete unused locale variable.
16268 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16269
16270 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16271 Resync charset_list to Vemacs_mule_charset_list.
16272
16273 * keymap.c (store_in_keymap): Pay attention to the case that idx
16274 is a cons specifying a character range.
16275
16276 2008-02-01 Kenichi Handa <handa@m17n.org>
16277
16278 * composite.c (update_compositions): Bind inhibit-read-only, etc
16279 to t before calling remove-list-of-text-properties.
16280
16281 * print.c (print_object): Always print ASCII chars as is.
16282
16283 2008-02-01 Kenichi Handa <handa@m17n.org>
16284
16285 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16286
16287 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16288 is a char table.
16289
16290 2008-02-01 Kenichi Handa <handa@m17n.org>
16291
16292 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16293
16294 2008-02-01 Kenichi Handa <handa@m17n.org>
16295
16296 * xfaces.c (set_lface_from_font_name): Fix for the case that
16297 FONTNAME is not fontset name.
16298
16299 2008-02-01 Kenichi Handa <handa@m17n.org>
16300
16301 * fns.c (base64_encode_1): Fix previous change.
16302
16303 2008-02-01 Kenichi Handa <handa@m17n.org>
16304
16305 * fontset.c (set_fontset_font): New function.
16306 (Fset_fontset_font): If a font is specified for a charset, use
16307 map_charset_chars to store the font spec in a fontset.
16308
16309 2008-02-01 Kenichi Handa <handa@m17n.org>
16310
16311 * fontset.c (fontset_face): Create a fallback fontset on demand.
16312 (make_fontset): Don't create a fallback fontset here.
16313 (free_face_fontset): Free a fallback fontset (if any) too.
16314 (n_auto_fontsets): Delete this variable.
16315 (auto_fontset_alist): New variable.
16316 (new_fontset_from_font_name): Check auto_fontset_alist.
16317 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16318 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16319 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16320 Defsubr Sfontset_list_all.
16321
16322 2008-02-01 Kenichi Handa <handa@m17n.org>
16323
16324 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16325
16326 2008-02-01 Kenichi Handa <handa@m17n.org>
16327
16328 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16329
16330 2008-02-01 Kenichi Handa <handa@m17n.org>
16331
16332 * editfns.c (Fgoto_char): Fix docstring.
16333
16334 2008-02-01 Kenichi Handa <handa@m17n.org>
16335
16336 * insdel.c (insert_from_gap): Adjust intervals correctly.
16337
16338 2008-02-01 Jason Rumney <jasonr@gnu.org>
16339
16340 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16341 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16342 (w32_initialize): Try to load it.
16343 (x_get_font_repertory): Use it if available.
16344 (w32_encode_char): Add shortcut for unicode output.
16345
16346 * w32fns.c (w32_load_system_font): Default charset to -1.
16347 (x_to_w32_charset): Match all fonts for unicode.
16348 (w32_to_x_charset): New parameter matching. Don't return partial
16349 or wildcard charsets.
16350 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16351 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16352 (w32_to_x_font): Match charset to real charset.
16353 (enum_font_cb2): Always list unicode versions.
16354
16355 * makefile.w32-in (temacs): Increase EMHEAP.
16356
16357 2008-02-01 Jason Rumney <jasonr@gnu.org>
16358
16359 * w32term.c (w32_encode_char): New charset parameter.
16360 font_info.encoding becomes encoding_type.
16361 (x_get_font_repertory): New function. Warning: stub only!
16362 (x_new_font): Return quickly if font already set.
16363 (x_new_fontset): fontsetname parameter is Lisp_Object.
16364 Use new fs_query_fontset. Try new_fontset_from_font_name.
16365 Use fontset_name for return value.
16366
16367 * w32term.h: Declare x_get_font_repertory.
16368
16369 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16370 place of find_charset_in_text. Use encode_coding_object in place
16371 of encode_coding.
16372 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16373 decode_coding.
16374
16375 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16376 of x_new_fontset.
16377 (w32_load_system_font): Initialize charset as unicode.
16378 font_info.encoding becomes encoding_type.
16379 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16380 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16381 (syms_of_w32fns): Set get_font_repertory_func.
16382
16383 * w32console.c: Include character.h. Use terminal_encode_buffer
16384 from term.c.
16385 (write_glyphs): Use new version of encode_terminal_code. Use
16386 encode_coding_object in place of encode_coding.
16387
16388 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16389 encoding becomes encoding_type.
16390
16391 * term.c (terminal_encode_buffer): Make externally visible.
16392
16393 * makefile.w32-in: Add character.h dependancies.
16394 (character.o, chartab.o): New targets.
16395
16396 2008-02-01 Kenichi Handa <handa@m17n.org>
16397
16398 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16399 CODING_ID_EOL_TYPE.
16400
16401 2008-02-01 Andreas Schwab <schwab@suse.de>
16402
16403 * coding.c (produce_chars): Revert last change.
16404
16405 2008-02-01 Kenichi Handa <handa@m17n.org>
16406
16407 * charset.h (charset_unicode): Extern it.
16408
16409 * charset.c (string_xstring_p): Check by (C >= 0x100).
16410 (find_charsets_in_text): Change format of the arc CHARSETS. New
16411 arg MULTIBYTE.
16412 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16413 change of find_charsets_in_text.
16414 (Fsplit_char): Fix doc. Never return unknown.
16415
16416 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16417
16418 * coding.c (Fdefine_coding_system_alias): Update
16419 Vcoding_system_list.
16420
16421 * fontset.c (load_font_get_repertory): Pay attention to the case
16422 that ENCODING of a font is specified by a char-table.
16423
16424 * xterm.c (x_get_font_repertory): Handle the case that the
16425 encoding of font is other than Unicode.
16426
16427 2008-02-01 Kenichi Handa <handa@m17n.org>
16428
16429 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16430 if a character is encodable by the terminal coding system. If
16431 not, produces proper number of `?'s. Update
16432 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16433 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16434
16435 2008-02-01 Kenichi Handa <handa@m17n.org>
16436
16437 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16438 variables.
16439 (encode_terminal_code): Change argument. Encode multiple
16440 characters at once. Store the result of encoding in
16441 terminal_encode_buffer.
16442 (write_glyphs, insert_glyphs): Adjust for the change of
16443 encode_terminal_code.
16444 (term_init): Initialize terminal_encode_buffer and
16445 terminal_encode_buf_size.
16446
16447 * coding.c (consume_chars): If coding->src_object is nil, don't
16448 check annotation.
16449
16450 2008-02-01 Kenichi Handa <handa@m17n.org>
16451
16452 * character.c (char_string): Use ASCII_CHAR_P instead of
16453 SINGLE_BYTE_CHAR_P.
16454
16455 2008-02-01 Kenichi Handa <handa@m17n.org>
16456
16457 * xdisp.c (handle_auto_composed_prop): Check if the last
16458 characters of auto-composed region is newly composed with the
16459 following characters.
16460 (handle_composition_prop): Fix checking of point being inside
16461 composition.
16462
16463 2008-02-01 Kenichi Handa <handa@m17n.org>
16464
16465 * fns.c (concat): Don't change multibyteness of the result by
16466 concatenating an 8-bit character.
16467
16468 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16469 multibyteness of the result when newelt is an 8-bit character.
16470
16471 2008-02-01 Dave Love <fx@gnu.org>
16472
16473 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16474 EMACS_INT.
16475
16476 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16477
16478 * xfaces.c (face_numeric_value): Declare dim size_t.
16479 (Finternal_lisp_face_equal_p): Remove unused f.
16480
16481 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16482 (MATRIX_ROW): Remove unused vars.
16483 (draw_glyphs, x_insert_glyphs, fast_find_position)
16484 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16485 byte/char counts.
16486
16487 * regex.c (regex_compile): Remove unused var.
16488
16489 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16490
16491 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16492 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16493
16494 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16495
16496 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16497
16498 * fileio.c (Fwrite_region): Remove unused var.
16499
16500 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16501 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16502
16503 * composite.c (Fremove_list_of_text_properties): Declare.
16504
16505 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16506 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16507 (coding_inherit_eol_type): Remove unused attrs.
16508 (detect_coding): Cast arg of detect_eol.
16509
16510 * charset.c (syms_of_charset): Remove unused var p.
16511 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16512 byte/char counts.
16513
16514 * casetab.c (set_case_table): Remove unused var.
16515
16516 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16517 unused vars.
16518
16519 2008-02-01 Dave Love <fx@gnu.org>
16520
16521 * xterm.c (x_bitmap_mask): Declare.
16522
16523 2008-02-01 Dave Love <fx@gnu.org>
16524
16525 * xterm.c (x_term_init): Fix type error.
16526
16527 * lisp.h: Add Funibyte_char_to_multibyte.
16528
16529 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16530 (Fset_coding_system_priority): Doc fix.
16531
16532 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16533
16534 * indent.c (check_composition): Make start and end EMACS_INT.
16535
16536 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16537
16538 * xdisp.c (handle_composition_prop, check_point_in_composition):
16539 Make buffer positions EMACS_INT.
16540
16541 * composite.c (find_composition, run_composition_function)
16542 (update_compositions, Ffind_composition_internal): Make buffer
16543 positions EMACS_INT.
16544
16545 * composite.h (find_composition, update_compositions): Make
16546 position args EMACS_INT.
16547
16548 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16549
16550 * intervals.c (get_property_and_range):
16551 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16552
16553 * unexalpha.c: Don't include varargs.h.
16554
16555 2008-02-01 Dave Love <fx@gnu.org>
16556
16557 * coding.h (ENCODE_UTF_8): New.
16558
16559 * Makefile.in (gtkutil.o): Depend on coding.h.
16560
16561 * coding.c (Fset_coding_system_priority): Doc fix.
16562
16563 2008-02-01 Kenichi Handa <handa@m17n.org>
16564
16565 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16566 the case of auto saving.
16567
16568 2008-02-01 Andreas Schwab <schwab@suse.de>
16569
16570 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16571 `range' from GC.
16572
16573 2008-02-01 Kenichi Handa <handa@m17n.org>
16574
16575 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16576
16577 2008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * fileio.c (choose_write_coding_system): Return a decided coding system.
16580 (Fwrite_region): Set Vlast_coding_system_used to the return value
16581 of choose_write_coding_system.
16582
16583 2008-02-01 Kenichi Handa <handa@m17n.org>
16584
16585 * charset.c (Fset_charset_priority): Pay attention to duplicated
16586 arguments.
16587
16588 * coding.c (QCcategory): New variable.
16589 (syms_of_coding): Defsym it. Set all elements of
16590 Vcoding_category_table and their symbol values.
16591 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16592 coding-category-XXX, and coding-category-list.
16593 (Fdefine_coding_system_internal): Add category in the plist.
16594
16595 2008-02-01 Kenichi Handa <handa@m17n.org>
16596
16597 * callproc.c (Fcall_process): Handle carryover correctly.
16598
16599 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16600 (raw_text_coding_system): Check NILP (coding_system).
16601 (coding_inherit_eol_type): Check NILP (coding_system) and
16602 NILP (parent).
16603 (consume_chars): Fix for the case of raw-text.
16604
16605 * process.c (read_process_output): Handle carryover correctly.
16606
16607 2008-02-01 Dave Love <fx@gnu.org>
16608
16609 * regex.c (re_search_2): Fix last change.
16610
16611 2008-02-01 Kenichi Handa <handa@m17n.org>
16612
16613 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16614 target_multibyte. Even in a unibyte case, return a converted
16615 multibyte char.
16616 (GET_CHAR_AFTER): New macro.
16617 (PATFETCH): Translate via multibyte char.
16618 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16619 (SETUP_MULTIBYTE_RANGE): New macro.
16620 (regex_compile): Setup compiled code so that its multibyteness
16621 matches that of a target. Fix the handling of "[X-YZ]" using
16622 SETUP_MULTIBYTE_RANGE.
16623 (analyse_first) <charset>: For filling fastmap for all multibyte
16624 characters, don't check by BASE_LEADING_CODE_P.
16625 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16626 the same as RE_MULTIBYTE_P (bufp) now.
16627 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16628 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16629 (TRANSLATE_VIA_MULTIBYTE): New macro.
16630 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16631 It is the same as RE_MULTIBYTE_P (bufp) now.
16632 <exactn>: Translate via multibyte.
16633 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16634 translate it.
16635 <charset, charset_not>: Fetch a character by
16636 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16637 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16638 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16639 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16640 by GET_CHAR_AFTER.
16641 (bcmp_translate): Likewise.
16642
16643 * search.c (compile_pattern): Check the member target_multibyte,
16644 not the member multibyte of buf.
16645
16646 * lread.c (read1): While reading a string, set force_singlebyte
16647 and force_multibyte correctly.
16648
16649 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16650 up of unibyte_to_multibyte_table.
16651
16652 2008-02-01 Kenichi Handa <handa@m17n.org>
16653
16654 * coding.c (setup_coding_system): If coding has
16655 post-read-conversion or pre-write-conversion, set
16656 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16657 respectively.
16658 (decode_coding_gap): Run post-read-conversion if any.
16659
16660 * fileio.c (Finsert_file_contents): Even if we read into a
16661 unibyte buffer, check if we must decode the result or not.
16662
16663 2008-02-01 Kenichi Handa <handa@m17n.org>
16664
16665 * coding.c (make_conversion_work_buffer): Change the work buffer
16666 name to the same one as that of Emacs 21.
16667
16668 2008-02-01 Kenichi Handa <handa@m17n.org>
16669
16670 * coding.h (make_conversion_work_buffer): Adjust prototype.
16671 (code_conversion_restore): Don't extern it.
16672
16673 * coding.c (detected_mask): Delete unused variable.
16674 (decode_coding_iso_2022): Pay attention to the byte sequence of
16675 CTEXT extended segment, and retain those bytes as is.
16676 (decode_coding_ccl): Delete unused variable `valids'.
16677 (setup_coding_system): Delete unused variable `category'.
16678 (consume_chars): Delete unused variable `category'. Make it work
16679 for non-multibyte case.
16680 (make_conversion_work_buffer): Change argument.
16681 (saved_coding): Delete unused variable.
16682 (code_conversion_restore): Don't check saved_coding->destination.
16683 (code_conversion_save): New function.
16684 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16685 instead of record_unwind_protect.
16686 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16687 (detect_coding_system): Delete unused variable `mask'.
16688 (Fdefine_coding_system_internal): Delete unused variable id.
16689
16690 * fileio.c (kill_workbuf_unwind): New function.
16691 (Finsert_file_contents): On replacing, call
16692 make_conversion_work_buffer with correct args, and call
16693 record_unwind_protect with the first arg kill_workbuf_unwind.
16694
16695 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16696
16697 2008-02-01 Kenichi Handa <handa@m17n.org>
16698
16699 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16700 (fontset_add): Fix for the case that TO is less than TO1.
16701 (Ffontset_info): Don't use fallback fontset on checking the
16702 default fontset.
16703 (dump_fontset): New function for debugging.
16704
16705 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16706 coding_type is Qcharset.
16707
16708 2008-02-01 Kenichi Handa <handa@m17n.org>
16709
16710 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16711 (map_char_table): Don't inherit the value from the parent on
16712 initializing VAL. Adjust for the above change.
16713
16714 2008-02-01 Kenichi Handa <handa@m17n.org>
16715
16716 * coding.c (Qsignature, Qendian): Delete these variables.
16717 (syms_of_coding): Don't initialize them.
16718 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16719 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16720 detect_info->found.
16721 (decode_coding_utf_16): Don't detect BOM here.
16722 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16723 is NOT utf_16_without_bom.
16724 (setup_coding_system): For a coding system of type utf-16, check
16725 if the attribute :endian is Qbig or not (not nil or not), and set
16726 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16727 (detect_coding): If coding type is utf-16 and BOM detection is
16728 required, detect it.
16729 (Fdefine_coding_system_internal): For a coding system of type
16730 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16731
16732 2008-02-01 Kenichi Handa <handa@m17n.org>
16733
16734 * coding.c (coding_set_source): Fix for the case that the current
16735 buffer is different from coding->src_object.
16736 (decode_coding_object): Don't use the conversion work buffer if
16737 DST_OBJECT is a buffer.
16738
16739 2008-02-01 Dave Love <fx@gnu.org>
16740
16741 * lread.c (read_emacs_mule_char) [len==2]: Index
16742 emacs_mule_charset correctly.
16743
16744 2008-02-01 Dave Love <fx@gnu.org>
16745
16746 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16747 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16748 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16749 treated specially.)
16750 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16751 (detected_mask): Remove Big5 bits.
16752
16753 2008-02-01 Kenichi Handa <handa@m17n.org>
16754
16755 The following changes are to make the font rescaling facility
16756 compatible with Emacs 21.
16757
16758 * xfaces.c (Vface_font_rescale_alist): Rename from
16759 Vface_resizing_fonts.
16760 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16761 (font_rescale_ratio): Rename from font_resizing_ratio.
16762 (split_font_name): Set font->rescale_ratio.
16763 (better_font_p): Pay attention to font->rescale_ratio.
16764 (build_scalable_font_name): Likewise. Change RESX, and RESY
16765 fields.
16766 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16767
16768 2008-02-01 Kenichi Handa <handa@m17n.org>
16769
16770 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16771 (Qutf_16_le): Remove these variables.
16772 (syms_of_coding): Don't DEFSYM them.
16773 (decode_coding_utf_16): Fix handling of BOM.
16774 (encode_coding_utf_16): Fix handling of BOM.
16775
16776 2008-02-01 Kenichi Handa <handa@m17n.org>
16777
16778 * fileio.c (Finsert_file_contents): On replacing, before decoding
16779 the file into the work buffer, set point of the work buffer to the end.
16780
16781 2008-02-01 Dave Love <fx@gnu.org>
16782
16783 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16784
16785 2008-02-01 Dave Love <fx@gnu.org>
16786
16787 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16788 and fix C types.
16789
16790 2008-02-01 Kenichi Handa <handa@m17n.org>
16791
16792 * xdisp.c (SKIP_GLYPHS): New macro.
16793 (set_cursor_from_row): Pay attention to string display properties.
16794
16795 * category.c (copy_category_entry): Fix for the case that RANGE
16796 is an integer.
16797
16798 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16799
16800 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16801
16802 2008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * charset.c (Fcharset_id_internal): New function.
16805 (syms_of_charset): Defsubr it.
16806
16807 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16808 with the last arg charset_list acquired from coding.
16809 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16810 the attribute coding_attr_ccl_valids.
16811
16812 * coding.h (enum define_coding_ccl_arg_index): Set the first
16813 member coding_arg_ccl_decoder to coding_arg_max.
16814
16815 * ccl.h (ccl_driver): Adjust prototype.
16816
16817 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16818 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
16819 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
16820 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16821 last arg Qnil.
16822
16823 2008-02-01 Kenichi Handa <handa@m17n.org>
16824
16825 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16826 call encode_char.
16827
16828 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16829
16830 2008-02-01 Dave Love <fx@gnu.org>
16831
16832 * composite.c (syms_of_composite): Make composition_hash_table weak.
16833
16834 2008-02-01 Kenichi Handa <handa@m17n.org>
16835
16836 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16837 (font_name_registry): Don't extern them.
16838 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16839
16840 * fontset.h (Qfontset): Don't extern it.
16841 (new_fontset_from_font_name): Extern it.
16842
16843 * fontset.c: Give 8 extra slots to fontset objects.
16844 (Qfontset_info): New variable.
16845 (syms_of_fontset): Defsym it.
16846 (FONTSET_FALLBACK): New macro.
16847 (fontset_face): Try also the default fontset.
16848 (make_fontset): Realize a fallback fontset from the default fontset.
16849 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16850 using split_font_name_into_vector and build_font_name_from_vector.
16851 (Fset_fontset_font): Access the elements of font_spec by enum
16852 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16853 name by using split_font_name_into_vector.
16854 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16855 generate a proper font name from the fontset name. Update
16856 Vfontset_alias_alist.
16857 (n_auto_fontsets): New variable.
16858 (new_fontset_from_font_name): New function.
16859 (Ffont_info): Store the information about fonts generated from the
16860 default fontset in the first extra slot of the returned char-table.
16861
16862 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16863 (font_name_registry): Delete function.
16864 (split_font_name_into_vector): New function.
16865 (build_font_name_from_vector): New function.
16866 (font_list): The argument REGISTRY is now a list of registry names.
16867 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16868 specifies an explicit font name, return the name as is. Make a
16869 list of registy names.
16870
16871 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16872 of x_new_fontset.
16873 (Fx_create_frame): Don't call x_new_fontset here. Just use
16874 x_list_fonts to check the existence of fonts.
16875
16876 * xterm.h (x_new_fontset): Adjust prototype.
16877
16878 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16879 string. Use new_fontset_from_font_name to create a fontset from a
16880 font name.
16881
16882 2008-02-01 Kenichi Handa <handa@m17n.org>
16883
16884 * syntax.c (Vfind_word_boundary_function_table): New name for
16885 Vnext_word_boundary_function_table.
16886 (find-word-boundary-function-table): New name for
16887 next-word-boundary-function-table.
16888
16889 2008-02-01 Dave Love <fx@gnu.org>
16890
16891 * Makefile.in: Fix some dependencies.
16892
16893 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16894 set it to nil before returning.
16895
16896 * composite.c (update_compositions): Fix type error.
16897
16898 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16899
16900 2008-02-01 Kenichi Handa <handa@m17n.org>
16901
16902 * xterm.c (x_new_font): Optimize for the case that the font is
16903 already set for the frame.
16904
16905 2008-02-01 Kenichi Handa <handa@m17n.org>
16906
16907 * chartab.c (char_table_ascii): Check if the char table contents
16908 is sub-char-table or not.
16909 (char_table_set, char_table_set_range): Fix argument to
16910 char_table_ascii.
16911
16912 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16913 (detect_coding_utf_8, detect_coding_utf_16)
16914 (detect_coding_emacs_mule, detect_coding_iso_2022)
16915 (detect_coding_sjis, detect_coding_big5)
16916 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16917 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16918 sequence is valid in this coding system. Change callers.
16919 (MAX_ANNOTATION_LENGTH): New macro.
16920 (ADD_ANNOTATION_DATA): New macro.
16921 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16922 ADD_ANNOTATION_DATA. Change the format of annotation data.
16923 (ADD_CHARSET_DATA): New macro.
16924 (emacs_mule_char): New argument ID. Change callers.
16925 (decode_coding_emacs_mule, decode_coding_iso_2022)
16926 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16927 Produce charset annotation data in coding->charbuf.
16928 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16929 to charset annotation data in coding->charbuf.
16930 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16931 coding->common_flags if the coding system is iso-2022 based and
16932 uses designation.
16933 (produce_composition): Adjust for the new annotation data format.
16934 (produce_charset): New function.
16935 (produce_annotation): Handle charset annotation.
16936 (handle_composition_annotation, handle_charset_annotation): New
16937 functions.
16938 (consume_chars): Handle charset annotation. Utilize the above two
16939 functions.
16940 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16941 buffer, get the deleted text as a string and set
16942 coding->src_object to that string.
16943 (detect_coding, detect_coding_system): Use the new struct
16944 coding_detection_info.
16945
16946 * coding.h (struct coding_detection_info): New structure.
16947 (struct coding_system): Adjust prototype of the member `detector'.
16948 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16949
16950 2008-02-01 Kenichi Handa <handa@m17n.org>
16951
16952 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16953
16954 2008-02-01 Dave Love <fx@gnu.org>
16955
16956 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16957 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16958 to new local and nullify apropos_accumulate before returning.
16959 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16960
16961 2008-02-01 Kenichi Handa <handa@m17n.org>
16962
16963 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16964 correctly.
16965
16966 2008-02-01 Dave Love <fx@gnu.org>
16967
16968 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16969
16970 2008-02-01 Kenichi Handa <handa@m17n.org>
16971
16972 The following changes are to make character composition happen
16973 automatically on displaying.
16974
16975 * Makefile.in (lisp, shortlisp): Add composite.elc.
16976
16977 * composite.h (Qauto_composed, Vauto_composition_function)
16978 (Qauto_composition_function): Extern them.
16979
16980 * composite.c (Vcomposition_function_table)
16981 (Qcomposition_function_table): Delete variables.
16982 (Qauto_composed, Vauto_composition_function)
16983 (Qauto_composition_function): New variables.
16984 (run_composition_function): Don't call
16985 compose-chars-after-function.
16986 (update_compositions): Clear `auto-composed' text property.
16987 (compose_chars_in_text): Delete this function.
16988 (syms_of_composite): Staticpro Qauto_composed and
16989 Qauto_composition_function. Declare Vauto_composition_function as
16990 a Lisp variable.
16991
16992 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16993
16994 * xdisp.c (it_props): Add an entry for Qauto_composed.
16995 (handle_auto_composed_prop): New function.
16996
16997 * xselect.c (selection_data_to_lisp_data): Don't call
16998 compose_chars_in_text.
16999
17000 2008-02-01 Dave Love <fx@gnu.org>
17001
17002 * keyboard.c (read_char): Modify checking around use of
17003 Vkeyboard_translate_table.
17004
17005 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17006 and fix C types.
17007
17008 2008-02-01 Kenichi Handa <handa@m17n.org>
17009
17010 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17011 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17012 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17013 the case that the last byte is '\r' correctly.
17014 (decode_coding): Flush out the unprocessed data correctly.
17015 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17016
17017 2008-02-01 Dave Love <fx@gnu.org>
17018
17019 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17020 Add XK_ISO... case.
17021 (xaw_scroll_callback): Revert last change.
17022
17023 2008-02-01 Kenichi Handa <handa@m17n.org>
17024
17025 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17026
17027 2008-02-01 Kenichi Handa <handa@m17n.org>
17028
17029 * xfaces.c (Vface_resizing_fonts): New variable.
17030 (struct font_name): New member `resizing_ratio'.
17031 (font_resizing_ratio): New function.
17032 (split_font_name): Set font->resizing_ratio.
17033 (better_font_p): Pay attention to font->resizing_ratio.
17034 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17035 RESX, and RESY fields.
17036 (try_alternative_families): Try scalable fonts if
17037 Vscalable_fonts_allowed is not Qt.
17038 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17039
17040 2008-02-01 Dave Love <fx@gnu.org>
17041
17042 * xterm.c (xaw_scroll_callback): Cast correctly.
17043
17044 2008-02-01 Dave Love <fx@gnu.org>
17045
17046 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17047 (lispy_kana_keys): Comment out.
17048 (make_lispy_event) [XK_kana_A]: Comment out.
17049
17050 * xterm.c (xaw_scroll_callback): Cast call_data.
17051 (XTread_socket): Deal with ASCII keysyms.
17052 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17053
17054 2008-02-01 Dave Love <fx@gnu.org>
17055
17056 * xterm.c (Vx_keysym_table): New.
17057 (syms_of_xterm): Initialize it.
17058 (XTread_socket): Use it.
17059 From head: Eliminate incorrect optimization that tried to avoid
17060 decoding the output of X*LookupString.
17061 (x_get_font_repertory): Delete charset declaration.
17062
17063 2008-02-01 Kenichi Handa <handa@m17n.org>
17064
17065 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17066 return 0.
17067 (Fdefine_coding_system_internal): Setup
17068 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17069
17070 2008-02-01 Dave Love <fx@gnu.org>
17071
17072 * coding.c (Fcheck_coding_system): Doc fix.
17073
17074 * editfns.c (Finsert_byte): Return a proper value.
17075
17076 2008-02-01 Kenichi Handa <handa@m17n.org>
17077
17078 * coding.c (decode_coding): Fix args to translate_chars. Pay
17079 attention to Vstandard_translation_table_for_decode.
17080 (encode_coding): Fix args to translate_chars. Pay attention to
17081 Vstandard_translation_table_for_encode.
17082
17083 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17084 SINGLE_BYTE_CHAR_P.
17085
17086 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17087 not by SINGLE_BYTE_CHAR_P.
17088
17089 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17090 SINGLE_BYTE_CHAR_P.
17091
17092 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17093 SINGLE_BYTE_CHAR_P.
17094
17095 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17096 by SINGLE_BYTE_CHAR_P.
17097
17098 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17099 SINGLE_BYTE_CHAR_P.
17100
17101 2008-02-01 Dave Love <fx@gnu.org>
17102
17103 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17104
17105 2008-02-01 Dave Love <fx@gnu.org>
17106
17107 * fns.c (Flanginfo): Fix typo.
17108
17109 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17110
17111 2008-02-01 Kenichi Handa <handa@m17n.org>
17112
17113 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17114 (detect_coding_emacs_mule, detect_coding_iso_2022)
17115 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17116 incomplete byte sequence. Don't update *mask when correctly detected.
17117 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17118 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17119 (detect_coding, detect_coding_system): Adjust for the changes above.
17120
17121 2008-02-01 Kenichi Handa <handa@m17n.org>
17122
17123 * character.c (char_string): Rename from
17124 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17125 (string_char): Rename from string_char.
17126
17127 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17128 if C is greater than MAX_3_BYTE_CHAR.
17129 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17130 string_char instead of string_char_with_unification.
17131
17132 2008-02-01 Dave Love <fx@gnu.org>
17133
17134 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17135
17136 2008-02-01 Kenichi Handa <handa@m17n.org>
17137
17138 * keymap.c (push_key_description): Pay attention to force_multibyte.
17139
17140 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17141
17142 2008-02-01 Dave Love <fx@gnu.org>
17143
17144 * charset.c (define_charset_internal): Rename `supprementary'.
17145
17146 * Makefile.in (lisp, shortlisp): Remove latin-N.
17147
17148 2008-02-01 Dave Love <fx@gnu.org>
17149
17150 * xfns.c (x_window, x_window): Use use_xim.
17151
17152 * xterm.c (use_xim): Initialize.
17153 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17154 (x_term_init): Maybe set use_xim.
17155
17156 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17157
17158 2008-02-01 Kenichi Handa <handa@m17n.org>
17159
17160 * search.c (search_buffer): Fix case-fold-search of multibyte
17161 characters.
17162 (boyer_moore): Rename the last argument to char_high_bits.
17163
17164 2008-02-01 Kenichi Handa <handa@m17n.org>
17165
17166 * xdisp.c (display_string): Fix for the case of zero width glyph.
17167
17168 * xfns.c (x_set_font): Change the error message of the case that
17169 x_new_fontset returns Qt.
17170
17171 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17172 (Finternal_set_lisp_face_attribute): Use signal_error for the
17173 error of invalid fontset.
17174
17175 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17176 fontset, return Qt.
17177
17178 2008-02-01 Dave Love <fx@gnu.org>
17179
17180 * unexelf.c (unexec): Make .got handling not SGI-specific.
17181
17182 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17183
17184 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17185
17186 * keyboard.c (read_key_sequence): Fix type error.
17187
17188 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17189 type error.
17190
17191 * fontset.c (fontset_add): Return Lisp_Object.
17192
17193 2008-02-01 Dave Love <fx@gnu.org>
17194
17195 * charset.h (charset_ordered_list_tick): Declare extern.
17196
17197 2008-02-01 Kenichi Handa <handa@m17n.org>
17198
17199 The following changes (and some of 2008-02-01 changes of mine) are
17200 for handling syntax, category, and case conversion for unibyte
17201 characters by converting them to multibyte on the fly. With these
17202 changes, we don't have to setup syntax and case tables for unibyte
17203 characters in each language environment.
17204
17205 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17206 multibyte if necessary.
17207
17208 * bytecode.c (Fbyte_code): Likewise.
17209
17210 * character.h (LEADING_CODE_LATIN_1_MIN)
17211 (LEADING_CODE_LATIN_1_MAX): New macros.
17212 (unibyte_to_multibyte_table): Extern it.
17213 (unibyte_char_to_multibyte): New macro.
17214 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17215 (CHAR_LEADING_CODE): New macro.
17216 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17217
17218 * character.c (unibyte_to_multibyte_table): New variable.
17219 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17220 (multibyte_char_to_unibyte): If C is an eight-bit character,
17221 convert it to the corresponding byte value.
17222
17223 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17224 not 1, signals an error. Update the elements of
17225 unibyte_to_multibyte_table.
17226 (init_charset_once): Initialize unibyte_to_multibyte_table.
17227 (syms_of_charset): Define the charset `iso-8859-1'.
17228
17229 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17230 as is without converting it to unibyte. In a unibyte buffer,
17231 convert C to multibyte before checking the syntax.
17232
17233 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17234
17235 * minibuf.c (Fminibuffer_complete_word): Use the macro
17236 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17237
17238 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17239
17240 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17241 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17242 that is zero, convert an eight-bit char to multibyte.
17243 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17244 non-emacs case.
17245 (PATFETCH): Convert an eight-bit char to multibyte.
17246 (HANDLE_UNIBYTE_RANGE): New macro.
17247 (regex_compile): Setup the compiled pattern for multibyte chars
17248 even if the given regex string is unibyte. Use PATFETCH_RAW
17249 instead of PATFETCH in many places. To handle `charset'
17250 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17251 only for ASCII chars.
17252 (analyse_first) <exactn>: Simplify because the compiled pattern
17253 is multibyte.
17254 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17255 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17256 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17257 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17258 multibyte always 1.
17259 (re_search_2): In emacs, set the locale variable multibyte to 1,
17260 otherwise to 0. New local variable target_multibyte. Check it
17261 to decide the multibyteness of STR1 and STR2. If
17262 target_multibyte is zero, convert unibyte chars to multibyte
17263 before translating and checking fastmap.
17264 (TARGET_CHAR_AND_LENGTH): New macro.
17265 (re_match_2_internal): In emacs, set the locale variable multibyte
17266 to 1, otherwise to 0. New local variable target_multibyte. Check
17267 it to decide the multibyteness of STR1 and STR2. Use
17268 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17269 <charset, charset_not>: If multibyte is nonzero, check fastmap
17270 only for ASCII chars. Call bcmp_translate with
17271 target_multibyte, not with multibyte.
17272 <begline>: Declare the local variable C as `unsigned'.
17273 (bcmp_translate): Change the last arg name to target_multibyte.
17274
17275 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17276 the regexp pattern and the matching target. Set cp->buf.multibyte
17277 to the multibyteness of the regexp pattern. Set
17278 cp->but.target_multibyte to the multibyteness of the matching target.
17279 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17280 FETCH_STRING_CHAR_ADVANCE.
17281 (Freplace_match): Convert unibyte chars to multibyte.
17282
17283 * syntax.c (char_quoted, back_comment, scan_words)
17284 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17285 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17286 unibyte chars to multibyte.
17287 (skip_chars): Delete the arg syntaxp, and move the code for
17288 handling syntaxes to skip_syntaxes. Change callers.
17289 Fix the case that the multibyteness of STRING and the current
17290 buffer doesn't match.
17291 (skip_syntaxes): New function.
17292 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17293 SINGLE_BYTE_CHAR_P.
17294
17295 2008-02-01 Kenichi Handa <handa@m17n.org>
17296
17297 * xfaces.c (QCfontset): New variable.
17298 (LFACE_FONTSET): New macro.
17299 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17300 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17301 (Finternal_set_lisp_face_attribute)
17302 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17303 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17304 check also LFACE_FONTSET_INDEX.
17305 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17306 attrs[LFACE_FONT_INDEX].
17307 (syms_of_xfaces): Intern and staticpro QCfontset.
17308
17309 * dispextern.h (enum lface_attribute_index): New member
17310 LFACE_FONTSET_INDEX.
17311
17312 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17313
17314 2008-02-01 Kenichi Handa <handa@m17n.org>
17315
17316 * coding.c (coding_set_destination): Fix coding->destination for
17317 the case converting a region.
17318 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17319 (encode_coding_object): Fix coding->dst_pos and
17320 coding->dst_pos_byte for the case converting a region.
17321
17322 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17323
17324 * character.h (BYTE8_STRING): New macro.
17325
17326 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17327
17328 2008-02-01 Kenichi Handa <handa@m17n.org>
17329
17330 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17331 characters by octal form.
17332
17333 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17334
17335 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17336 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17337 _fetch_multibyte_char_len.
17338 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17339
17340 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17341
17342 * casefiddle.c (casify_object): Simplify. Handle the case that
17343 the case conversion change the byte length.
17344 (casify_region): Likewise.
17345
17346 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17347
17348 * character.c (_fetch_multibyte_char_len): Delete this variable.
17349 (syms_of_character): Setup Vprintable_chars.
17350
17351 * editfns.c (Fchar_equal): Fix for the unibyte case.
17352 (Finsert_byte): New function.
17353 (syms_of_editfns): Defsubr it.
17354
17355 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17356 of direct code 0x3ffff.
17357
17358 * search.c (Freplace_match): Fix for the unibyte case.
17359
17360 2008-02-01 Kenichi Handa <handa@m17n.org>
17361
17362 * lread.c (safe_to_load_p): Fix the logic.
17363
17364 * syntax.c (scan_words): Don't treat characters belonging to
17365 different scripts as constituting a word.
17366
17367 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17368
17369 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17370
17371 * emacs.c (main): In the case of --unibyte, instead of aborting on
17372 finding non-empty buffer, make it unibyte.
17373
17374 2008-02-01 Kenichi Handa <handa@m17n.org>
17375
17376 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17377 to create a fontset.
17378
17379 2008-02-01 Dave Love <fx@gnu.org>
17380
17381 * character.c (Funibyte_char_to_multibyte): Doc fix.
17382
17383 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17384
17385 2008-02-01 Kenichi Handa <handa@m17n.org>
17386
17387 * fontset.c (fontset_add): Make the type `int'.
17388 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17389
17390 * character.c (unibyte_char_to_multibyte)
17391 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17392 charset_unibyte, not charset_primary.
17393
17394 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17395
17396 * charset.c (charset_unibyte): Rename from charset_primary.
17397 (Funibyte_charset): Rename from Fprimary_charset.
17398 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17399 (syms_of_charset): Adjust for the above changes.
17400
17401 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17402 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17403 it->multibyte_p is zero.
17404
17405 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17406 Delete extern.
17407
17408 2008-02-01 Kenichi Handa <handa@m17n.org>
17409
17410 * coding.c (Fdefine_coding_system_internal): Fix category setting
17411 for a coding system of type iso-2022.
17412
17413 2008-02-01 Kenichi Handa <handa@m17n.org>
17414
17415 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17416
17417 2008-02-01 Kenichi Handa <handa@m17n.org>
17418
17419 * syntax.c (Vnext_word_boundary_function_table): New variable.
17420 (next-word-boundary-function-table): Declare it as a Lisp variable
17421 in syms_of_syntax.
17422 (scan_words): Call functions in Vnext_word_boundary_function_table
17423 if any.
17424
17425 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17426
17427 * fontset.c (fs_load_font): If fontp->charset is not negative,
17428 return fontp without setting its members.
17429
17430 2008-02-01 Dave Love <fx@gnu.org>
17431
17432 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17433
17434 * m/sparc.h (HAVE_ALLOCA): Delete.
17435
17436 * s/irix6-5.h: Don't include strings.h.
17437 (bcopy, bzero, bcmp): Don't undef.
17438
17439 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17440
17441 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17442 (TIOCSIGSEND): Don't test IRIX6.
17443 (bcopy, bzero, bcmp): Define conditionally.
17444
17445 2008-02-01 Kenichi Handa <handa@m17n.org>
17446
17447 * buffer.c (Qas, Qmake, Qto): New variables.
17448 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17449 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17450
17451 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17452 we are inserting a process output into a multibyte buffer.
17453
17454 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17455 multibyte_char_to_unibyte.
17456
17457 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17458 by the primary charset, make it eight-bit char.
17459 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17460
17461 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17462 (charset_8_bit__control, charset_8_bit_graphic)
17463 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17464 (define_charset_internal): New function.
17465 (syms_of_charset): Call define_charset_internal for pre-defined
17466 charsets.
17467
17468 * charset.h (charset_8_bit): Extern it.
17469
17470 * coding.c (make_conversion_work_buffer): Adjust for the change
17471 of Fset_buffer_multibyte.
17472 (encode_coding_raw_text): Increment p0 in the loop.
17473
17474 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17475
17476 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17477 for the change of Fset_buffer_multibyte.
17478
17479 * fns.c (Fstring_to_multibyte): New function.
17480 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17481
17482 2008-02-01 Dave Love <fx@gnu.org>
17483
17484 * xfns.c (x_put_x_image): Declare args.
17485
17486 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17487 (try_font_list): Declare an arg.
17488
17489 * xdisp.c (message2_nolog, set_message): Declare an arg.
17490
17491 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17492
17493 * syntax.c (scan_sexps_forward): Declare an arg.
17494
17495 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17496 Declare an arg.
17497
17498 * lisp.h (Fnew_fontset): Declare.
17499
17500 * keymap.c (push_key_description): Call CHARACTERP correctly.
17501
17502 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17503 (face_for_char): Delete unused vars.
17504 (Fset_fontset_font): Doc fix. Delete unused vars.
17505
17506 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17507
17508 * composite.c (update_compositions): Declare arg.
17509
17510 * cm.c (calccost, cmgoto): Declare args.
17511
17512 * charset.c: Remove `emacs' conditional. Doc fixes.
17513 (map_char_table_for_charset): Declare.
17514
17515 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17516
17517 * ccl.c: Remove `emacs' conditional.
17518
17519 2008-02-01 Kenichi Handa <handa@m17n.org>
17520
17521 The following changes are to allow specifying multiple font
17522 patterns for a character range (specified by script or charset).
17523
17524 * Makefile.in (abbrev.o): Depend on syntax.h.
17525 (xfaces.o): Depend on charset.h.
17526
17527 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17528 SINGLE_BYTE_CHAR_P.
17529
17530 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17531
17532 * character.h (Vchar_script_table): Extern it.
17533
17534 * character.c (Vscript_alist): Delete.
17535 (Vchar_script_table, Qchar_script_table): New variable.
17536 (syms_of_character): Declare Vchar_script_table as a lisp variable
17537 and initialize it.
17538
17539 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17540 have property char-table-extra-slots, make no extra slot.
17541
17542 * dispextern.h (struct face): Delete member `charset'.
17543 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17544 SINGLE_BYTE_CHAR_P.
17545 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17546 Add prototypes.
17547 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17548 (generate_ascii_font_name): Rename from generate_ascii_font.
17549
17550 * fontset.h (get_font_repertory_func): New prototype.
17551 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17552 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17553
17554 * fontset.c (Qprepend, Qappend): New variables.
17555 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17556 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17557 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17558 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17559 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17560 (load_font_get_repertory): New functions.
17561 (fontset_set): Delete.
17562 (fontset_face): New arg FACE. Return face ID, not face.
17563 Complete re-write to handle new fontset structure. Change caller.
17564 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17565 (face_for_char): Don't call lookup_face.
17566 (make_fontset_for_ascii_face): New arg FACE.
17567 (fs_load_font): New arg CHARSET_ID. Don't check
17568 Vfont_encoding_alist here.
17569 (find_font_encoding): New function.
17570 (list_fontsets): Use STRINGP, not ! NILP.
17571 (accumulate_script_ranges): New function.
17572 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17573 re-written to handle new fontset structure.
17574 (Ffontset_font): Return a copy of element.
17575 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17576 docstring of font-encoding-alist.
17577
17578 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17579 (Fset_fotset_font): Fix arguments to 5.
17580
17581 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17582
17583 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17584 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17585 (highlight_trailing_whitespace): Adjust for the change of
17586 lookup_named_face.
17587
17588 * xfaces.c: Include charset.h.
17589 (load_face_font): Delete argument C. Change caller.
17590 (generate_ascii_font_name): Rename from generate_ascii_font.
17591 (font_name_registry): New function.
17592 (cache_face): Store ascii faces before non-ascii faces in buckets.
17593 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17594 Lookup only ascii faces.
17595 (lookup_non_ascii_face): New function.
17596 (lookup_named_face): Delete argument C. Change caller.
17597 (lookup_derived_face): Delete argument C. Change caller.
17598 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17599 a string, just call font_list with it.
17600 (choose_face_font): Delete arguments FACE and C. New arg
17601 FONT_SPEC. Change caller.
17602 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17603 Change caller.
17604 (realize_non_ascii_face): New function.
17605 (realize_x_face): Call load_face_font here.
17606 (realize_tty_face): Delete argument C. Change caller.
17607 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17608 get a face ID.
17609 (dump_realized_face): Don't print charset of FACE.
17610
17611 * xfns.c (x_set_font): Always call x_new_fontset and
17612 store_frame_parameter.
17613 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17614 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17615
17616 * xterm.h (x_get_font_repertory): Extern it.
17617
17618 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17619 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17620 it->multibyte_p is zero.
17621 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17622 (x_new_fontset): If FONTSETNAME doesn't match any existing
17623 fontsets, create a new one.
17624 (x_get_font_repertory): New function.
17625
17626 2008-02-01 Kenichi Handa <handa@m17n.org>
17627
17628 * coding.c (Ffind_coding_systems_region_internal): Detect an
17629 ASCII only string correctly.
17630
17631 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17632 version is 0.
17633
17634 2008-02-01 Kenichi Handa <handa@m17n.org>
17635
17636 * lread.c: Include "coding.h".
17637 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17638 (load_each_byte, unread_char): New variables.
17639 (readchar_backlog): Delete.
17640 (readchar): Return a character unless load_each_byte is nonzero.
17641 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17642 cons. If unread_char is not -1, simply return it.
17643 (unreadchar): Handle the case that readcharfun is
17644 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17645 (read_multibyte): Delete.
17646 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17647 (read_emacs_mule_char): New functions.
17648 (Fload): Even if the file doesn't have the extension ".elc", if
17649 safe_to_load_p returns a positive version number, assume that the
17650 file contains bytecompiled code. If the version is less than 22,
17651 load the file while decoding multibyte sequences by emacs-mule.
17652 (readevalloop): Don't use readchar_backlog.
17653 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17654 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17655 (read_escape): Delete the arg BYTEREP.
17656 (read1): Set load_each_byte to 1 temporarily while handling
17657 #@NUMBER. Don't call read_multibyte.
17658 (read_vector): Call Fread with a cons. If readcharfun is
17659 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17660 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17661 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17662 and Qload_force_doc_strings.
17663
17664 2008-02-01 Kenichi Handa <handa@m17n.org>
17665
17666 * xdisp.c (face_before_or_after_it_pos): Call
17667 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17668
17669 2008-02-01 Kenichi Handa <handa@m17n.org>
17670
17671 * character.h (TRAILING_CODE_P): New macro.
17672 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17673 (string_char_with_unification): Fix prototype.
17674 (Vscript_alist): Extern it.
17675
17676 * character.c (Vscript_alist): New variable.
17677 (string_char_with_unification, str_as_unibyte)
17678 (string_escape_byte8): Add `const' to local variables.
17679 (syms_of_character): Declare script-alist as a Lisp variable.
17680
17681 * charset.h (Vcharset_ordered_list): Extern it.
17682 (charset_ordered_list_tick): Extern it.
17683 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17684 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17685 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17686 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17687 (Funify_charset): Adjust for the change of Funify_charset.
17688
17689 * charset.c (charset_ordered_list_tick): New variable.
17690 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17691 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17692 deunify intead of unify a charset.
17693 (string_xstring_p): Add `const' to local variables.
17694 (find_charsets_in_text): Add `const' to arguments and local variables.
17695 (encode_char): Adjust for the change of Funify_charset. Fix
17696 detecting of invalid code.
17697 (Fset_charset_priority): Increment charset_ordered_list_tick.
17698 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17699 and TO_CODE.
17700
17701 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17702 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17703 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17704 (decode_coding_ccl, consume_chars)
17705 (Ffind_coding_systems_region_internal)
17706 (Fcheck_coding_systems_region): Add `const' to local variables.
17707
17708 * print.c (print_object): Use octal form for printing the
17709 contents of a bool vector.
17710
17711 2008-02-01 Dave Love <fx@gnu.org>
17712
17713 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17714 <version == 20>: Refuse to load.
17715
17716 2008-02-01 Dave Love <fx@gnu.org>
17717
17718 * fns.c: Move coding.h.
17719 (Qcodeset, Qdays, Qmonths): New.
17720 (concat): Use CHARACTERP instead of INTEGERP.
17721 (Flocale_codeset): Delete.
17722 (Flanginfo): New function.
17723 (syms_of_fns): Change accordingly.
17724
17725 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17726
17727 2008-02-01 Dave Love <fx@gnu.org>
17728
17729 * casetab.c (init_casetab_once, init_casetab_once): Fix
17730 CHAR_TABLE_SET call.
17731
17732 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17733
17734 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17735
17736 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17737 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17738 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17739
17740 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17741
17742 * coding.c (ENCODE_DESIGNATION, decode_eol)
17743 (make_conversion_work_buffer, code_conversion_restore)
17744 (Fdefine_coding_system_internal): Convert Lisp types.
17745 (code_conversion_restore): Use EQ, not ==.
17746 (Fencode_coding_string): Fix code_convert_string call.
17747
17748 * coding.h (code_convert_region): Fix prototype.
17749
17750 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17751
17752 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17753 (Ffontset_info): Convert Lisp types.
17754
17755 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17756
17757 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17758
17759 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17760
17761 * chartab.c: Include "...h", not <...h> in some cases.
17762
17763 * callproc.c (Fcall_process): Remove unused variables.
17764
17765 2008-02-01 Dave Love <fx@gnu.org>
17766
17767 * coding.c (Fset_coding_system_priority): Allow null arg list.
17768
17769 2008-02-01 Dave Love <fx@gnu.org>
17770
17771 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17772 (Fself_insert_and_exit): Use CHARACTERP.
17773
17774 * callproc.c (Fcall_process): Remove unused vars.
17775
17776 * xterm.c (XTread_socket): Add extra dead keysyms.
17777
17778 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17779
17780 * dispextern.h: Remove prototypes for redraw_frame,
17781 redraw_garbaged_frames.
17782
17783 * cmds.c (Fself_insert_command): Use CHARACTERP.
17784
17785 * chartab.c (make_sub_char_table): Remove unused var.
17786 (Fset_char_table_default, Fmap_char_table): Doc fix.
17787
17788 * keymap.c (access_keymap): Remove generic char code.
17789 (push_key_description): Use CHARACTERP.
17790
17791 2008-02-01 Dave Love <fx@gnu.org>
17792
17793 * charset.c: Doc fixes.
17794 (Funify_charset): Extra checking.
17795
17796 2008-02-01 Dave Love <fx@gnu.org>
17797
17798 * lread.c: Remove some unused variables.
17799 (safe_to_load_p): If safe, return the magic number version byte.
17800 (Fload): Maybe use load-with-code-conversion.
17801
17802 2008-02-01 Kenichi Handa <handa@m17n.org>
17803
17804 * category.c (Fmodify_category_entry): Don't modify the contents
17805 of category_set for characters out of the range. Avoid
17806 unnecessary modification.
17807
17808 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17809 Vchar_unify_table. The default value of the table is now nil.
17810
17811 * character.c (syms_of_character): Setup Vchar_width_table for
17812 eight-bit-control and raw-byte chars.
17813
17814 * charset.h (enum define_charset_arg_index): Delete
17815 charset_arg_parents and add charset_arg_subset and
17816 charset_arg_superset.
17817 (enum charset_attr_index): Delete charset_parents and add
17818 charset_subset and charset_superset.
17819 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17820 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17821 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17822 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17823 (CHARSET_SUPERSET): New macros.
17824 (charset_work): Extern it.
17825 (ENCODE_CHAR): Use charset_work.
17826 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17827 (map_charset_chars): Extern it.
17828
17829 * charset.c (load_charset_map): Set the default value of encoder
17830 and deunifier char-tables to nil.
17831 (map_charset_chars): Change argument. Change callers. Use
17832 map_char_table_for_charset instead of map_char_table.
17833 (Fmap_charset_chars): New optional args from_code and to_code.
17834 (Fdefine_charset_internal): Adjust for the change of
17835 `define-charset' (:parents -> :subset or :superset).
17836 (charset_work): New variable.
17837 (encode_char, syms_of_charset): Adjust for the change of
17838 Fdefine_charset_internal.
17839 (Ffind_charset_string): Setup the vector `charsets' correctly.
17840
17841 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17842 the previous change.
17843 (char_table_ref_and_range): Adjust for the above change.
17844 (map_sub_char_table_for_charset): New function.
17845 (map_char_table_for_charset): New function.
17846
17847 * keymap.c (describe_vector): Handle a char-table directly here.
17848 (describe_char_table): Delete.
17849
17850 * lisp.h (map_charset_chars): Delete.
17851
17852 2008-02-01 Dave Love <fx@gnu.org>
17853
17854 * fns.c (count_combining): Comment out (unused).
17855 (Flocale_codeset): New.
17856 (syms_of_fns): Defsubr it.
17857
17858 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17859 (size_t): Remove.
17860
17861 2008-02-01 Dave Love <fx@gnu.org>
17862
17863 * Makefile.in (chartab.o): Depend on charset.h.
17864
17865 2008-02-01 Kenichi Handa <handa@m17n.org>
17866
17867 * character.c (syms_of_character): Set the default value of
17868 Vprintable_chars to Qnil.
17869
17870 2008-02-01 Dave Love <fx@gnu.org>
17871
17872 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17873
17874 2008-02-01 Kenichi Handa <handa@m17n.org>
17875
17876 * charset.c (load_charset_map): Handle the case that from < to
17877 correctly.
17878
17879 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17880 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17881 Pay attention to raw-8-bit chars.
17882
17883 2008-02-01 Kenichi Handa <handa@m17n.org>
17884
17885 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17886 It is not bytecompiled now.
17887
17888 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17889 (charset_jisx0208): New variables.
17890 (Fdefine_charset_internal): Setup them if appropriate.
17891 (init_charset_once): Initialize them to -1.
17892
17893 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17894 (charset_jisx0208): Extern them.
17895
17896 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17897 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17898 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17899 (setup_iso_safe_charsets): Fix arguments to Fassq.
17900 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17901 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17902 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17903 (encode_coding_iso_2022): Change the 1st arg to
17904 ENCODE_ISO_CHARACTER to a variable.
17905
17906 2008-02-01 Kenichi Handa <handa@m17n.org>
17907
17908 * charset.h (enum define_charset_arg_index): New enums
17909 charset_arg_min_code and charset_arg_max_code.
17910 (struct charset): New member char_index_offset.
17911
17912 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17913 Take charset->char_index_offset into account.
17914 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17915 args[charset_arg_max_code]. Setup charset.char_index_offset.
17916 (syms_of_charset): Fix args to Fdefine_charset_internal.
17917
17918 2008-02-01 Dave Love <fx@gnu.org>
17919
17920 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17921
17922 2008-02-01 Dave Love <fx@gnu.org>
17923
17924 * coding.c: Doc fixes.
17925 (Fcoding_system_aliases): Fix return value.
17926 (Qmac): Remove (duplicated) definition.
17927
17928 2008-02-01 Dave Love <fx@gnu.org>
17929
17930 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17931 New functions.
17932
17933 * character.c (Fstring): Doc fix.
17934
17935 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17936
17937 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
17938 (font-encoding-alist): Doc fix.
17939
17940 2008-02-01 Dave Love <fx@gnu.org>
17941
17942 * term.c (costs_set): Declare static, non-initialized for pcc.
17943 (encode_terminal_code): Remove unused var.
17944
17945 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17946 for K&R.
17947
17948 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17949
17950 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17951 (suffixes): Move out of make_subsidiaries for K&R.
17952
17953 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17954
17955 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17956
17957 2008-02-01 Dave Love <fx@gnu.org>
17958
17959 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17960
17961 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17962
17963 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17964
17965 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17966
17967 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17968
17969 2008-02-01 Kenichi Handa <handa@m17n.org>
17970
17971 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17972 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17973
17974 2008-02-01 Kenichi Handa <handa@m17n.org>
17975
17976 * coding.c (decode_coding_charset): Adjust for the change of
17977 Fdefine_coding_system_internal.
17978 (Fdefine_coding_system_internal): For a coding system of
17979 `charset' type, store a list of charset IDs in
17980 `charset_attr_charset_valids' element of coding attributes.
17981
17982 2008-02-01 Kenichi Handa <handa@m17n.org>
17983
17984 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17985 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17986 caller. Handle 2-byte and 3-byte charsets correctly.
17987 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17988 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17989 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17990 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17991 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17992 sequence.
17993 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17994 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17995 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17996 and alt&rule composition.
17997 (decode_coding_iso_2022): Handle composition correctly.
17998 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17999
18000 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18001 re-defining a charset. If the charset has :emacs-mule-id, setup
18002 emacs_mule_bytes.
18003 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18004
18005 2008-02-01 Kenichi Handa <handa@m17n.org>
18006
18007 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18008 (encode_coding_big5, encode_coding_charset): If coding requires safe
18009 encoding, produce a character specified by
18010 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18011
18012 2008-02-01 Dave Love <fx@gnu.org>
18013
18014 * xterm.c (XSetIMValues): Declare.
18015
18016 * process.c: Conditionally include sys/wait.h, pty.h.
18017
18018 * print.c (print_object): Fix print format for 64-bit systems.
18019
18020 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18021
18022 * buffer.c (emacs_strerror): Declare.
18023
18024 * fontset.c (Fclear_face_cache): Declare.
18025 (accumulate_font_info): Comment-out (unused).
18026 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18027 variables.
18028
18029 * character.h (string_escape_byte8): Declare.
18030
18031 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18032 unused vars.
18033 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18034 (Fmap_charset_chars): Doc fix.
18035
18036 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18037 (Fset_coding_system_priority, Fset_coding_system_priority)
18038 (Fdefine_coding_system_internal): Doc fix.
18039
18040 2008-02-01 Dave Love <fx@gnu.org>
18041
18042 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18043
18044 2008-02-01 Kenichi Handa <handa@m17n.org>
18045
18046 * character.c (string_escape_byte8): Make multibyte string with
18047 correct size.
18048
18049 * charset.c (Fmake_char): Delete unnecessary code.
18050
18051 2008-02-01 Kenichi Handa <handa@m17n.org>
18052
18053 * xfns.c (x_encode_text): Allocate coding.destination here, and
18054 call encode_coding_object with dst_object Qnil.
18055
18056 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18057 multibyte form correctly.
18058
18059 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18060 against Vfont_encoding_alist.
18061
18062 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18063 handling of charset list.
18064 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18065 (decode_coding_object): Move point to coding->dst_pos before
18066 calling post-read-conversion function.
18067 (encode_coding_object): Give correct arguments to
18068 pre-write-conversion. Ignore the return value of
18069 pre-write-conversion function. Pay attention to the case that
18070 pre-write-conversion changes the current buffer. If dst_object is
18071 Qt, even if coding->src_bytes is zero, allocate at least one byte
18072 to coding->destination.
18073
18074 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18075
18076 * charset.c (Fmake_char): Make it more backward compatible.
18077 (Fmap_charset_chars): Fix docstring.
18078
18079 2008-02-01 Dave Love <fx@gnu.org>
18080
18081 * coding.c: Doc fixes.
18082 (Fdefine_coding_system_alias): Use names, not symbols, in
18083 coding-system-alist.
18084
18085 2008-02-01 Kenichi Handa <handa@m17n.org>
18086
18087 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18088 of calling free_realized_face.
18089
18090 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18091
18092 * charset.c (read_hex): Don't treat SPC as a comment starter.
18093 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18094 (Fdecode_char): Fix typo.
18095
18096 2008-02-01 Kenichi Handa <handa@m17n.org>
18097
18098 * charset.h (struct charset): New member `code_space_mask'.
18099
18100 * coding.c (coding_set_source): Delete the local variable beg_byte.
18101 (encode_coding_charset, Fdefine_coding_system_internal):
18102 Delete the local variable charset.
18103 (Fdefine_coding_system_internal): Setup
18104 attrs[coding_attr_charset_valids] correctly.
18105
18106 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18107 member to check if CODE is valid or not.
18108 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18109 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18110 is within the range of charset->min_code and carset->max_code.
18111
18112 2008-02-01 Dave Love <fx@gnu.org>
18113
18114 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18115
18116 * dispextern.h (generate_ascii_font): Fix return type.
18117
18118 * xfaces.c (generate_ascii_font): Fix arg declaration.
18119
18120 * coding.c (coding_inherit_eol_type)
18121 (Fset_terminal_coding_system_internal)
18122 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18123
18124 2008-02-01 Kenichi Handa <handa@m17n.org>
18125
18126 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18127 multiple charsets correctly.
18128
18129 2008-02-01 Kenichi Handa <handa@m17n.org>
18130
18131 * search.c (boyer_moore): Fix handling of multibyte character
18132 translation.
18133
18134 * xdisp.c (display_mode_element): When the variable `elt' is
18135 changed, update `this' and `lisp_string'.
18136
18137 2008-02-01 Kenichi Handa <handa@m17n.org>
18138
18139 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18140
18141 * callproc.c (Fcall_process): Be sure to give the current buffer
18142 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18143
18144 * charset.c (struct charset_map_entries): New struct.
18145 (load_charset_map): Rename from parse_charset_map. New args
18146 entries and n_entries. Change caller.
18147 (load_charset_map_from_file): Rename from load_charset_map.
18148 Change caller. New arg control_flag. Call load_charset_map at
18149 the tail.
18150 (load_charset_map_from_vector): New function.
18151 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18152 (encode_char): If the charset is compact, change a character index
18153 to a code point.
18154
18155 * coding.c (coding_alloc_by_making_gap): Check the case that the
18156 source and destination are the same correctly.
18157 (decode_coding_raw_text): Set coding->consumed_char and
18158 coding->consumed to 0.
18159 (produce_chars): If coding->chars_at_source is nonzero, update
18160 coding->consumed_char and coding->consumed before calling
18161 alloc_destination.
18162 (Fdefine_coding_system_alias): Register ALIAS in
18163 Vcoding_system_alist.
18164 (syms_of_coding): Define `no-conversion' coding system at the tail.
18165
18166 * fileio.c (Finsert_file_contents): Set coding_system instead of
18167 val. If the current buffer is multibyte, always call
18168 decode_coding_gap.
18169
18170 * xfaces.c (try_font_list): Give higher priority to fontset's
18171 family than face's family.
18172
18173 2008-02-01 Kenichi Handa <handa@m17n.org>
18174
18175 * callproc.c (Fcall_process): Be sure to give the current buffer
18176 to decode_coding_c_string.
18177
18178 * xfaces.c (try_font_list): Give a family specified in a fontset
18179 higher priority than a family specified in a face.
18180
18181 2008-02-01 Kenichi Handa <handa@m17n.org>
18182
18183 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18184 Fix arguments to insert_from_buffer.
18185
18186 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18187
18188 2008-02-01 Kenichi Handa <handa@m17n.org>
18189
18190 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18191 (decode_coding_gap): Set coding->dst_multibyte correctly.
18192
18193 2008-02-01 Kenichi Handa <handa@m17n.org>
18194
18195 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18196 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18197 (encode_coding_utf_16): Substitute coding->default_char for
18198 non-Unicode characters.
18199 (decode_coding): Don't call record_insert here.
18200 (setup_coding_system): Initialize `surrogate' of
18201 coding->spec.utf_16 to 0.
18202 (EMIT_ONE_BYTE): Fix for multibyte case.
18203
18204 * insdel.c (insert_from_gap): Call record_insert.
18205
18206 2008-02-01 Kenichi Handa <handa@m17n.org>
18207
18208 * casefiddle.c (casify_region): Fix multibyte case.
18209
18210 * character.c (c_string_width): Add return type `int'.
18211 (char_string_with_unification): Delete arg ADVANCED.
18212
18213 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18214 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18215 (CHAR_STRING_ADVANCE): Make it do-while statement.
18216
18217 * chartab.c (sub_char_table_set_range): Optimize for the case
18218 DEPTH == 3. Add workaround code for a GCC optimization bug.
18219
18220 * charset.c (parse_charset_map): Remove an unused variable.
18221
18222 * coding.c: Delete unused variables.
18223
18224 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18225 earlier. If inserted is zero and the coding system doesn't
18226 require flushing, don't call decode_coding_gap.
18227
18228 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18229
18230 2008-02-01 Kenichi Handa <handa@m17n.org>
18231
18232 The following changes are for using Unicode as an internal
18233 character model, and use UTF-8 format for buffer/string
18234 representation.
18235
18236 * .gdbinit (xchartable): Adjust for the change of char table structure.
18237 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18238
18239 * Makefile.in (obj): Add character.o and chartab.o.
18240 (lisp, shortlisp): Remove utf-8.elc.
18241 (*.o): For many files, change dependency on charset.h to
18242 character.h, and add dependency on character.h.
18243 (character.o, chartab.o): New targets.
18244
18245 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18246 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18247 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18248 of "charset.h".
18249
18250 * dired.c, filelock.c: Include "character.h".
18251
18252 * alloc.c: Include "character.h" instead of "charset.h".
18253 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18254 (syms_of_alloc): Remove defsubr for Smake_char_table.
18255
18256 * buffer.c: Include "character.h" instead of "charset.h", don't
18257 include "coding.h".
18258 (Fset_buffer_multibyte): Adjust for UTF-8.
18259
18260 * buffer.h: EXFUN Fbuffer_live_p.
18261
18262 * callproc.c: Include "character.h" instead of "charset.h".
18263 (Fcall_process): Big change for the new code-conversion APIs.
18264
18265 * casetab.c: Include "character.h" instead of "charset.h".
18266 (set_canon, set_identity, shuffle): Adjust for the new
18267 map_char_table spec.
18268 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18269 accessing the char table structure.
18270
18271 * chartab.c: New file that implements char table.
18272
18273 * category.c: Include "character.h".
18274 (copy_category_entry): New function.
18275 (copy_category_table): Call map_char_table and copy_category_entry.
18276 (Fmake_category_table): Initialize all top-level slots.
18277 (char_category_set): New function.
18278 (modify_lower_category_set): Delete.
18279 (Fmodify_category_entry): Call char_table_ref_and_range.
18280
18281 * category.h (CATEGORY_SET): Just call char_category_set.
18282
18283 * ccl.c: Include "character.h".
18284 (Qccl, Qcclp): New variables.
18285 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18286 it's less than 256.
18287 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18288 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18289 and DST type.
18290 (ccl_driver): Change types of argument, adjust code accordingly.
18291 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18292 ccl_driver.
18293 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18294
18295 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18296 New members src_multibyte, dst_multibyte, consumed, and produced.
18297 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18298 (CODING_SPEC_CCL_PROGRAM): New macro.
18299 (ccl_driver): Update prototype.
18300 (Qccl, Qcclp, Fccl_program_p): Extern them.
18301 (CHECK_CCL_PROGRAM): New macro.
18302
18303 * character.c, character.h, chartab.c: New files.
18304
18305 * charset.c: Mostly re-written. Move character and multibyte sequence
18306 handling codes to character.c.
18307
18308 * charset.h: Mostly re-written. Move character and multibyte sequence
18309 handling codes to character.h.
18310
18311 * coding.c, coding.h: Mostly re-written.
18312
18313 * composite.c: Include "character.h" instead of "charset.h".
18314 (CHAR_WIDTH): Move to character.h.
18315 (HASH_KEY, HASH_VALUE): Delete.
18316
18317 * composite.h (enum composition_method): Change order of enumeration
18318 symbols.
18319
18320 * data.c: Include "character.h" instead of "charset.h".
18321 (Faref): Call CHAR_TABLE_REF for a char table.
18322 (Faset): Call CHAR_TABLE_SET for a char table.
18323
18324 * dispextern.h (free_realized_face, check_face_attribytes)
18325 (generate_ascii_font): Extern them.
18326 (free_realized_multibyte_face): Delete extern.
18327
18328 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18329 table structure.
18330
18331 * editfns.c: Include "character.h" instead of "charset.h".
18332 (Fchar_to_string): Always call CHAR_STRING.
18333
18334 * emacs.c (main): Call init_charset_once, init_charset,
18335 syms_of_chartab, and syms_of_character.
18336
18337 * fileio.c: Include "character.h" instead of "charset.h".
18338 (Finsert_file_contents): Big change for the new code-conversion API.
18339 (choose_write_coding_system, Fwrite_region): Likewise.
18340 (build_annotations_2): Delete.
18341 (e_write): Big change for the new code-conversion API.
18342
18343 * fns.c: Include "character.h" instead of "charset.h".
18344 (copy_sub_char_table): Move to chartab.c.
18345 (Fcopy_sequence): Call copy_char_table for a char table.
18346 (concat): Delete codes calling count_multibyte.
18347 (string_char_to_byte, string_byte_to_char): Adjust for the new
18348 multibyte form.
18349 (internal_equal): Adjust for the change of char table structure.
18350 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18351 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18352 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18353 (char_table_translate, optimize_sub_char_table)
18354 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18355 chartab.c.
18356 (char_table_ref_and_index): Delete.
18357 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18358 (Fmd5): Call preferred_coding_system instead of accessing
18359 Vcoding_category_list. Adjust for the new code-conversion API.
18360 (syms_of_fns): Move defsubr for char table related functions to
18361 chartab.c.
18362
18363 * fontset.c: Mostly re-written.
18364
18365 * fontset.h (struct font_info): Change type of the member encoding_type.
18366 (enum FONT_SPEC_INDEX): New enum.
18367 (fontset_font_pattern, fs_load_font): Update prototype.
18368 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18369
18370 * indent.c: Include "character.h" instead of "charset.h".
18371 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18372
18373 * insdel.c: Include "character.h" instead of "charset.h".
18374 (copy_text): Don't refer to Vnonascii_translation_table.
18375 (insert_from_gap): New function.
18376
18377 * keyboard.c: Include "character.h" instead of "charset.h".
18378 (command_loop_1): Never call direct_output_forward_char before
18379 a non-ASCII character.
18380 (read_char): If Vkeyboard_translate_table is a char table, always
18381 translate a character.
18382
18383 * keymap.c: Include "character.h".
18384 (store_in_keymap): Handle the case that IDX is a cons.
18385 (Fdefine_key): Handle the case that KEY is a cons and the car part
18386 is also a cons (range).
18387 (push_key_description): Adjust for the new character code.
18388 (describe_vector): Call describe_char_table for a char table.
18389 (describe_char_table): New function.
18390
18391 * keymap.h (describe_char_table): Extern it.
18392
18393 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18394 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18395 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18396 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18397 Delete.
18398 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18399 structure.
18400 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18401 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18402 (CHARTAB_SIZE_BITS_3): New macros.
18403 (chartab_size): Extern it.
18404 (struct Lisp_Char_Table): Re-design.
18405 (struct Lisp_Sub_Char_Table): New structure.
18406 (HASH_KEY, HASH_VALUE): Move from fns.c.
18407 (CHARACTERBITS): Define as 22.
18408 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18409 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18410 (GC_SUB_CHAR_TABLE_P): New macro.
18411 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18412 (code_convert_string_norecord): Deleted extern.
18413 (init_character_once, syms_of_character, init_charset)
18414 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18415
18416 * lread.c: Include "character.h".
18417 (read_multibyte): New arg NBYTES.
18418 (read_escape): Change the meaning of returned *BYTEREP.
18419 (to_multibyte): Delete.
18420 (read1): Adjust the handling of char table and string.
18421
18422 * print.c: Include "character.h" instead of "charset.h".
18423 (print_string): Convert 8-bit raw bytes to octal form by
18424 string_escape_byte8.
18425 (print_object): Adjust for the new multibyte form. Print 8-bit
18426 raw bytes always in octal form. Handle sub char table correctly.
18427
18428 * process.c: Include "character.h" instead of "charset.h".
18429 (read_process_output, send_process): Adjust for the new
18430 code-conversion API.
18431
18432 * puresize.h (BASE_PURESIZE): Increase.
18433
18434 * regex.c: Include "character.h" instead of "charset.h".
18435 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18436 (regex_compile): Accept a range whose starting and ending
18437 character have different leading bytes.
18438 (analyse_first): Adjust for the above change.
18439
18440 * search.c: Include "character.h" instead of "charset.h".
18441 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18442 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18443
18444 * syntax.c: Include "character.h" instead of "charset.h".
18445 (syntax_parent_lookup): Delete.
18446 (Fmodify_syntax_entry): Accept a cons as CHAR.
18447 (skip_chars): Adjust for the new multibyte form.
18448 (init_syntax_once): Call char_table_set_range instead of directly
18449 accessing the structure of a char table.
18450
18451 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18452 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18453 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18454 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18455
18456 * term.c: Include "buffer.h" and "character.h".
18457 (encode_terminal_code, write_glyphs): Adjust for the new
18458 code-conversion API.
18459 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18460
18461 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18462
18463 * xdisp.c: Include "character.h".
18464 (get_next_display_element): Adjust for the new multibyte form.
18465 (disp_char_vector): Adjust for the new char table structure.
18466 (decode_mode_spec_coding): Adjust for the new structure of
18467 coding system.
18468 (decode_mode_spec): Adjust for the new code-conversion API.
18469
18470 * xfaces.c: Include "character.h" instead of "charset.h".
18471 (load_face_font): Adjust for the change of choose_face_font and
18472 FS_LOAD_FONT.
18473 (generate_ascii_font): New function.
18474 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18475 (set_font_frame_param): Adjust for the change of choose_face_font.
18476 (free_realized_face): Make it public.
18477 (free_realized_faces_for_fontset): Rename from
18478 free_realized_multibyte_face. Free also faces realized for ASCII.
18479 (choose_face_font): Change arguments. Adjust for the change of
18480 fontset_font_pattern and FS_LOAD_FONT.
18481
18482 * xfns.c: Include "character.h".
18483 (x_encode_text): Adjust for the new code-conversion API.
18484
18485 * xselect.c: Don't include "charset.h".
18486 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18487
18488 * xterm.c: Include "character.h".
18489 (x_encode_char): New argument CHARSET. Change caller.
18490 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18491 Call ENCODE_CHAR instead of SPLIT_CHAR.
18492 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18493 CHAR_WIDTH instead of CHARSET_WIDTH.
18494 (XTread_socket): Adjust for the new code-conversion API.
18495 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18496 (x_load_font): Adjust for the change of struct font.
18497
18498 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18499
18500 * xfaces.c (face_at_buffer_position): Remove unused vars.
18501
18502 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18503
18504 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18505 Fix overflow checking.
18506
18507 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18508
18509 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18510 Cancel previous change.
18511
18512 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18513
18514 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18515 ccl->eight_bit_control. Fix check for buffer overflow.
18516 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18517 (ccl_driver): Initialize extra_bytes to 0.
18518
18519 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18520
18521 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18522 return it ORed with ctrl_modifier.
18523
18524 2008-01-29 Miles Bader <miles@gnu.org>
18525
18526 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18527
18528 2008-01-28 Jason Rumney <jasonr@gnu.org>
18529
18530 * w32.c (stat): Don't double check for networked drive.
18531
18532 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18533
18534 * window.c (run_window_configuration_change_hook): New function.
18535 Code extracted from set_window_buffer. Set the selected frame.
18536 (set_window_buffer): Use it.
18537 * window.h (run_window_configuration_change_hook): Declare.
18538 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18539
18540 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18541
18542 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18543
18544 * Makefile.in: Remove references to unused macros.
18545
18546 2008-01-26 Eli Zaretskii <eliz@gnu.org>
18547
18548 * w32.c (g_b_init_get_sid_sub_authority)
18549 (g_b_init_get_sid_sub_authority_count): New static variables.
18550 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18551 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18552 (init_user_info): Use them to retrieve uid and gid.
18553 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18554 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18555 st_uid and st_gid of the file.
18556
18557 2008-01-26 Jason Rumney <jasonr@gnu.org>
18558
18559 * w32.c (logon_network_drive): New function.
18560 (stat): Use it.
18561
18562 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
18563
18564 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18565 invisible text covered with an ellipsis.
18566
18567 2008-01-25 Richard Stallman <rms@gnu.org>
18568
18569 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18570 jump back to beginning. Move some other initializations after that.
18571 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18572 New variables.
18573 (syms_of_xdisp): Init them.
18574
18575 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18576
18577 * buffer.c (reset_buffer_local_variables):
18578 Implement `permanent-local-hook'.
18579 (Qpermanent_local_hook): New variable.
18580 (syms_of_buffer): Init and staticpro it.
18581
18582 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
18583
18584 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18585
18586 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18587
18588 * fns.c (Fclrhash): Return TABLE.
18589
18590 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18591
18592 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18593 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18594 is set even without positional changes.
18595 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18596
18597 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18598
18599 2008-01-23 Jason Rumney <jasonr@gnu.org>
18600
18601 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18602
18603 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18604 the unicode range available in MULE by locale-coding-system.
18605 Improve dbcs lead byte detection. Set event timestamp and modifiers
18606 earlier.
18607
18608 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18609
18610 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18611 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18612 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18613 when used on child processes.
18614
18615 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
18616
18617 * dbusbind.c (Fdbus_method_return_internal): Rename from
18618 Fdbus_method_return.
18619 (Fdbus_unregister_object): Move to dbus.el.
18620 (Fdbus_call_method, Fdbus_method_return_internal)
18621 (Fdbus_send_signal): Improve debug messages.
18622
18623 2008-01-20 Martin Rudalics <rudalics@gmx.at>
18624
18625 * undo.c (undo_inhibit_record_point): New variable.
18626 (syms_of_undo): Initialize it.
18627 (record_point): Don't record point when undo_inhibit_record_point
18628 is set.
18629
18630 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18631
18632 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18633
18634 * xdisp.c (Qauto_hscroll_mode): New var.
18635 (syms_of_xdisp): Initialize it.
18636 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18637 window's buffer.
18638 (hscroll_windows): Don't check automatic_hscrolling_p here.
18639
18640 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18641 vscroll if we're setting window-buffer to the value it already has.
18642
18643 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18644
18645 * m/intel386.h: Remove references to XENIX.
18646
18647 2008-01-17 Andreas Schwab <schwab@suse.de>
18648
18649 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18650 instead of HAVE_X86_64_LIB64_DIR.
18651 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18652
18653 2008-01-17 Glenn Morris <rgm@gnu.org>
18654
18655 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18656 to HAVE_X86_64_LIB64_DIR.
18657
18658 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18659
18660 * s/irix3-3.h:
18661 * s/irix4-0.h:
18662 * s/386-ix.h:
18663 * s/domain.h:
18664 * s/hpux9-x11r4.h:
18665 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18666
18667 * sysdep.c: Remove code containing references to symbols defined
18668 by unsupported systems.
18669
18670 2008-01-16 Glenn Morris <rgm@gnu.org>
18671
18672 * coding.c (select-safe-coding-system-function): Doc fix.
18673
18674 2008-01-15 Glenn Morris <rgm@gnu.org>
18675
18676 * config.in: Revert 2008-01-13 change: this is a generated file.
18677
18678 2008-01-13 Tom Tromey <tromey@redhat.com>
18679
18680 * lisp.h: Fix typo.
18681
18682 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18683
18684 * m/sequent-ptx.h:
18685 * m/sequent.h:
18686 * s/ptx.h:
18687 * s/ptx4-2.h:
18688 * s/ptx4.h: Remove files for systems no longer supported.
18689
18690 * callproc.c (Fcall_process): Fix previous change.
18691
18692 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18693
18694 * unexsunos4.c: Remove file, system not supported anymore.
18695
18696 * m/mips.h:
18697 * m/intel386.h:
18698 * callproc.c:
18699 * config.in:
18700 * ecrt0.c:
18701 * emacs.c:
18702 * fileio.c:
18703 * frame.c:
18704 * getpagesize.h:
18705 * keyboard.c:
18706 * lread.c:
18707 * process.c:
18708 * puresize.h:
18709 * sysdep.c:
18710 * systty.h:
18711 * syswait.h:
18712 * unexec.c:
18713 * xdisp.c:
18714 * alloc.c: Remove code containing references to symbols defined by
18715 unsupported systems.
18716
18717 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18718
18719 * coding.c (detect_coding_mask): Fix previous change.
18720
18721 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18722
18723 * coding.c (detect_coding_iso2022): New arg
18724 latin_extra_code_state. Allow Latin extra codes only
18725 when *latin_extra_code_state is nonzero.
18726 (detect_coding_mask): If there is a NULL byte, detect the encoding
18727 as UTF-16 or binary. If Latin extra codes exist, detect the
18728 encoding as ISO-2022 only when there's no other proper encoding is
18729 found.
18730
18731 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18732
18733 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18734 #ifdef MAC_OS.
18735
18736 2008-01-08 Richard Stallman <rms@gnu.org>
18737
18738 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18739
18740 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
18741
18742 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18743 menu bar in parentheses.
18744
18745 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18746
18747 * m/7300.h:
18748 * m/acorn.h:
18749 * m/alliant-2800.h:
18750 * m/alliant.h:
18751 * m/alliant1.h:
18752 * m/alliant4.h:
18753 * m/altos.h:
18754 * m/amdahl.h:
18755 * m/apollo.h:
18756 * m/att3b.h:
18757 * m/aviion-intel.h:
18758 * m/aviion.h:
18759 * m/celerity.h:
18760 * m/clipper.h:
18761 * m/cnvrgnt.h:
18762 * m/convex.h:
18763 * m/cydra5.h:
18764 * m/delta88k.h:
18765 * m/dpx2.h:
18766 * m/dual.h:
18767 * m/elxsi.h:
18768 * m/f301.h:
18769 * m/gould-np1.h:
18770 * m/gould.h:
18771 * m/i860.h:
18772 * m/ibmps2-aix.h:
18773 * m/ibmrt-aix.h:
18774 * m/ibmrt.h:
18775 * m/irist.h:
18776 * m/is386.h:
18777 * m/isi-ov.h:
18778 * m/mega68.h:
18779 * m/mg1.h:
18780 * m/news-r6.h:
18781 * m/news-risc.h:
18782 * m/news.h:
18783 * m/nh3000.h:
18784 * m/nh4000.h:
18785 * m/ns16000.h:
18786 * m/ns32000.h:
18787 * m/nu.h:
18788 * m/orion.h:
18789 * m/orion105.h:
18790 * m/paragon.h:
18791 * m/pfa50.h:
18792 * m/plexus.h:
18793 * m/pyramid.h:
18794 * m/pyrmips.h:
18795 * m/sh3el.h:
18796 * m/sps7.h:
18797 * m/sr2k.h:
18798 * m/stride.h:
18799 * m/sun1.h:
18800 * m/sun2.h:
18801 * m/sun3-68881.h:
18802 * m/sun3-fpa.h:
18803 * m/sun3-soft.h:
18804 * m/sun3.h:
18805 * m/sun386.h:
18806 * m/symmetry.h:
18807 * m/tad68k.h:
18808 * m/tahoe.h:
18809 * m/targon31.h:
18810 * m/tek4300.h:
18811 * m/tekxd88.h:
18812 * m/tower32.h:
18813 * m/tower32v3.h:
18814 * m/ustation.h:
18815 * m/wicat.h:
18816 * m/xps100.h:
18817 * s/cxux.h:
18818 * s/cxux7.h:
18819 * s/dgux.h:
18820 * s/dgux4.h:
18821 * s/dgux5-4-3.h:
18822 * s/dgux5-4r2.h:
18823 * s/esix.h:
18824 * s/esix5r4.h:
18825 * s/hiuxmpp.h:
18826 * s/hiuxwe2.h:
18827 * s/iris3-5.h:
18828 * s/iris3-6.h:
18829 * s/isc2-2.h:
18830 * s/isc3-0.h:
18831 * s/isc4-0.h:
18832 * s/isc4-1.h:
18833 * s/newsos5.h:
18834 * s/newsos6.h:
18835 * s/osf1.h:
18836 * s/osf5-0.h:
18837 * s/riscix1-1.h:
18838 * s/riscix12.h:
18839 * s/sco4.h:
18840 * s/sco5.h:
18841 * s/sunos4-0.h:
18842 * s/sunos4-1.h:
18843 * s/sunos413.h:
18844 * s/sunos4shr.h:
18845 * s/umax.h:
18846 * s/unipl5-2.h:
18847 * s/xenix.h:
18848 * cxux-crt0.s:
18849 * unexapollo.c:
18850 * unexconvex.c:
18851 * unexenix.c:
18852 * unexsni.c: Remove files for systems no longer supported.
18853
18854 * m/intel386.h: Remove references to unsupported systems.
18855
18856 * w32.c (get_emacs_configuration): Remove reference to i860.
18857
18858 * sysdep.c: Remove dead code.
18859
18860 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18861
18862 * s/rtu.h:
18863 * m/masscomp.h: Remove files. Platform is obsolete.
18864
18865 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
18866
18867 * dbusbind.c (Fdbus_method_return): New function.
18868 (xd_read_message): Add the serial number to the event.
18869 (Fdbus_register_method): Activate the function.
18870
18871 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18872
18873 * keyboard.c (read_key_sequence): Fix typo.
18874
18875 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
18876
18877 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18878 (xd_signature, xd_append_arg): Handle element type detection for
18879 empty arrays.
18880 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18881 SDATA () calls; this must be solved more general.
18882 (Fdbus_register_signal): Use SBYTES instead of strlen.
18883
18884 2008-01-03 Magnus Henoch <magnus@zemdatav>
18885
18886 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18887 unsigned int for byte values (necessary for big-endian platform).
18888 (Fdbus_call_method): Handle the case of no returned arguments.
18889
18890 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18891
18892 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18893
18894 2007-12-31 Magnus Henoch <mange@freemail.hu>
18895
18896 * dbusbind.c (xd_signature): Signature of variant is just "v".
18897
18898 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
18899
18900 * dbusbind.c: Fix several errors and compiler warnings.
18901 Reported by Tom Tromey <tromey@redhat.com>.
18902 (XD_ERROR, XD_DEBUG_MESSAGE)
18903 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18904 (xd_append_arg): Part for basic D-Bus types rewritten.
18905 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18906 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18907 appropriate.
18908 (xd_read_message): Return Qnil. Don't signal an error; it is not
18909 useful during event reading.
18910 (Fdbus_register_signal): Signal an error if the check for
18911 FUNCTIONP fails.
18912 (Fdbus_register_method): New function. The implementation is not
18913 complete, the call of the function signals an error therefore.
18914 (Fdbus_unregister_object): New function, renamed from
18915 Fdbus_unregister_signal. The initial check signals an error, if
18916 the object is not well formed.
18917
18918 2007-12-30 Richard Stallman <rms@gnu.org>
18919
18920 * textprop.c (get_char_property_and_overlay):
18921 Signal error if POSITION is out of range in a buffer.
18922
18923 2007-12-29 Martin Rudalics <rudalics@gmx.at>
18924
18925 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18926 because the original parameters are in pure storage now.
18927
18928 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18929
18930 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18931
18932 2007-12-22 Eli Zaretskii <eliz@gnu.org>
18933
18934 * callint.c (syms_of_callint) <command-history>: Add reference to
18935 history-length in the doc string.
18936
18937 2007-12-17 Jason Rumney <jasonr@gnu.org>
18938
18939 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18940 before passing as wParam.
18941
18942 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
18943
18944 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18945 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18946 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18947 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18948 as number.
18949 (Fdbus_call_method): Fix docstring.
18950
18951 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
18952
18953 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18954 New macros.
18955 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18956 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18957 Simplify.
18958 (xd_signature): New function.
18959 (xd_append_arg): Compute also signatures. Major rewrite.
18960 (xd_retrieve_arg): Make debug messages friendly.
18961 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18962 Check for signatures of arguments.
18963
18964 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
18965
18966 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18967 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18968 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18969 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18970 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18971 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18972 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18973 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18974 (xd_retrieve_value): Remove. Functionality included in ...
18975 (xd_append_arg): New function.
18976 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18977
18978 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
18979
18980 * dbusbind.c (top): Include <stdio.h>.
18981 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18982 dbus_message_new_method_call and dbus_message_new_signal.
18983 (Fdbus_register_signal): Rename unique_name to uname.
18984 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18985 non-existing unique name. Fix typos in matching rule. Return an
18986 object which is useful in Fdbus_unregister_signal.
18987 (Fdbus_unregister_signal): Reimplementation, in order to remove
18988 only the corresponding entry.
18989 (Vdbus_registered_functions_table): Change the order of entries.
18990 Apply these changes in xd_read_message and Fdbus_register_signal.
18991
18992 2007-12-16 Andreas Schwab <schwab@suse.de>
18993
18994 * fileio.c (Finsert_file_contents): Fix overflow check to not
18995 depend on undefined integer overflow.
18996
18997 2007-12-14 Jason Rumney <jasonr@gnu.org>
18998
18999 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19000 for characters above 127.
19001
19002 2007-12-13 Jason Rumney <jasonr@gnu.org>
19003
19004 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19005 before dereferencing array.
19006 (lookup_vk_code): Remove zero comparison.
19007
19008 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
19009
19010 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19011 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19012 Use `unsigned int' instead of `uint'.
19013 (xd_read_message, Fdbus_register_signal): Split expressions into
19014 multiple lines before operators "&&" and "||", according to the
19015 GNU Coding Standards.
19016
19017 2007-12-14 Eli Zaretskii <eliz@gnu.org>
19018
19019 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19020
19021 2007-12-12 Juri Linkov <juri@jurta.org>
19022
19023 * buffer.c (Frename_buffer): In interactive spec replace
19024 `read-buffer' with `read-string' that uses `buffer-name-history'
19025 as history, and the current buffer's name as default.
19026
19027 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19028
19029 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19030 manipulating the backtrace manually.
19031 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19032 (struct backtrace, backtrace_list): Remove.
19033 (command_loop_1): Remove dead var `no_direct'.
19034
19035 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19036 preserve non-built-in buffer-local variables.
19037 (Fkill_all_local_variables): Don't re-create&re-set permanent
19038 buffer-local variables.
19039
19040 2007-12-09 Juri Linkov <juri@jurta.org>
19041
19042 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19043 Lisp code that uses `read-buffer' with current buffer as default.
19044
19045 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
19046
19047 * dbusbind.c (xd_read_message): Generate an event for every
19048 registered handler. There might be several handlers registered
19049 for the same signal.
19050 (Fdbus_register_signal): Don't overwrite a registration for the
19051 same signal. Add a new registration if handlers are different.
19052 (Vdbus_registered_functions_table): Rework doc string.
19053
19054 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
19055
19056 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19057 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19058 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19059 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19060 Unify argument lists.
19061 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19062 arguments and hash table keys. Use unique name for service.
19063 (Fdbus_unregister_signal): Remove checks.
19064 (Vdbus_registered_functions_table): Fix doc string.
19065
19066 2007-12-05 Magnus Henoch <mange@freemail.hu>
19067
19068 * process.c (make_process): Initialize pty_flag to 0.
19069
19070 2007-12-05 Jason Rumney <jasonr@gnu.org>
19071
19072 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19073 specified XBMs.
19074
19075 2007-12-05 Richard Stallman <rms@gnu.org>
19076
19077 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19078
19079 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19080
19081 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19082 New variable.
19083 (mac_try_close_socket) [MAC_OSX]: New function.
19084 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19085 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19086
19087 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19088 Use mac_try_close_socket.
19089
19090 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19091
19092 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19093 reloc_base.
19094 (copy_dysymtab): Compute relocation base here.
19095 (rebase_reloc_address) [__ppc64__]: New function.
19096 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19097 changed.
19098
19099 2007-12-05 Jason Rumney <jasonr@gnu.org>
19100
19101 * w32proc.c (sys_spawnve): Quote args with wildcards.
19102
19103 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19104
19105 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19106 __objc_* sections.
19107 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19108
19109 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
19110
19111 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19112 Move check for Vdbus_registered_functions_table to
19113 xd_read_queued_messages.
19114 (xd_read_queued_messages): Protect xd_read_message calls by
19115 internal_condition_case_1.
19116
19117 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
19118
19119 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19120 Qdbus_system_bus and Qdbus_session_bus, respectively.
19121 (Vdbus_intern_symbols): Remove.
19122 (Vdbus_registered_functions_table): New hash table.
19123 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19124 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19125 Rewrite in order to manage registered functions by hash table
19126 Vdbus_registered_functions_table.
19127
19128 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19129
19130 * xterm.c: Update URL to Window Manager Specification in comment.
19131
19132 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
19133
19134 * config.in (HAVE_DBUS): Add.
19135
19136 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19137 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19138 (obj): Add $(DBUS_OBJ).
19139 (LIBES): Add $(DBUS_LIBS).
19140 (dbusbind.o): New target.
19141
19142 * dbusbind.c: New file.
19143
19144 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19145
19146 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19147 (Qdbus_event): New Lisp symbol.
19148 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19149 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
19150 (keys_of_keyboard): Define dbus-event.
19151
19152 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19153
19154 2007-12-01 Richard Stallman <rms@gnu.org>
19155
19156 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19157
19158 2007-11-30 Jason Rumney <jasonr@gnu.org>
19159
19160 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19161 (w32con_reset_terminal_modes): Clear screen buffer.
19162 (w32_face_attributes): Don't use color indexes that are out of range.
19163 Only reverse the default colors.
19164
19165 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19166 WINDOWSNT.
19167
19168 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19169
19170 2007-11-29 Jason Rumney <jasonr@gnu.org>
19171
19172 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19173 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19174 if the terminal colors are initialized.
19175 (unspecified_fg, unspecified_bg): Remove unused declarations.
19176
19177 2007-11-29 Andreas Schwab <schwab@suse.de>
19178
19179 * keyboard.c (apply_modifiers): Fix typo.
19180
19181 2007-11-29 Richard Stallman <rms@gnu.org>
19182
19183 * keymap.c (Fcurrent_local_map): Doc fix.
19184
19185 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19186
19187 * s/gnu-kfreebsd.h: New file.
19188
19189 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19190
19191 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19192 Don't cast redundantly.
19193
19194 * keyboard.c (KEY_TO_CHAR): New macro.
19195 (parse_modifiers, apply_modifiers): Accept integer arguments.
19196 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19197 for chars and symbol keys.
19198 After doing such remapping, apply function-key-map again.
19199
19200 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19201
19202 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19203 compiled anymore.
19204
19205 2007-11-26 Andreas Schwab <schwab@suse.de>
19206
19207 * process.c (list_processes_1): Fix indentation level of the
19208 command column.
19209
19210 2007-11-23 Andreas Schwab <schwab@suse.de>
19211
19212 * editfns.c (Fformat): Handle %c specially since it requires the
19213 argument to be of type int.
19214
19215 2007-11-23 Markus Triska <markus.triska@gmx.at>
19216
19217 * emacs.c (main): Call init_editfns before init_process, since
19218 init_process sets Vprocess_connection_type depending on OS release.
19219
19220 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19221
19222 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19223 (find_symbol_value): Use do_symval_forwarding.
19224
19225 * data.c (set_internal): Set the value in the `cons-cell' (for
19226 Buffer_Local_values) not only for frame-local variables.
19227
19228 2007-11-22 Andreas Schwab <schwab@suse.de>
19229
19230 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19231 values to sprintf.
19232 * keymap.c (Fsingle_key_description): Likewise.
19233 * print.c (print_object): Likewise.
19234
19235 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19236
19237 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19238 file for image is nil.
19239
19240 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19241
19242 * term.c: Include stdarg.h.
19243 (fatal): Implement using varargs.
19244 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19245
19246 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19247
19248 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19249 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19250 Update call to buffer_slot_type_mismatch.
19251 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19252 (buffer_slot_type_mismatch): Update.
19253 * buffer.c (buffer_local_types): Remove.
19254 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19255 (defvar_per_buffer): Set the type in the buffer_objfwd.
19256
19257 2007-11-21 Jason Rumney <jasonr@gnu.org>
19258
19259 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19260 CreateFileMapping returns NULL on failure.
19261
19262 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19263
19264 * search.c (Fset_match_data): Remove the `evaporate' feature.
19265 (unwind_set_match_data): Don't use the `evaporate' feature.
19266
19267 2007-11-21 Jason Rumney <jasonr@gnu.org>
19268
19269 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19270
19271 * w32console.c (w32con_write_glyphs): Remove unused variables.
19272
19273 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19274
19275 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19276
19277 * s/darwin.h (MULTI_KBOARD): Remove.
19278
19279 * macfns.c (x_create_tip_frame, Fx_create_frame)
19280 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19281
19282 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19283
19284 * buffer.c (Fbuffer_local_value): Remove redundant test.
19285 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19286 than in `current-buffer' to match the comment.
19287 Do the swap using swap_in_global_binding.
19288
19289 * data.c (store_symval_forwarding, set_internal):
19290 * eval.c (specbind): Remove dead code.
19291
19292 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19293 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19294 Since we do not want to see internal Lisp_*fwd objects here.
19295
19296 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19297
19298 * sysdep.c (init_system_name): Use getaddrinfo if available.
19299
19300 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19301 (x_scroll_bar_note_movement): start, end, with, height in struct
19302 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19303
19304 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19305
19306 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19307
19308 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19309
19310 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19311 This undoes Richard's change of 14-Oct-2002.
19312
19313 * alloc.c (allocate_other_vector):
19314 * lisp.h (allocate_other_vector): Remove.
19315
19316 * window.c (struct save_window_data): Move non-lisp data to the end
19317 and make it `int' rather than Lisp_Object.
19318 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19319 Done wrap/unwrap integer values.
19320 (Fset_window_configuration, compare_window_configurations):
19321 Update use of fields to their new types.
19322
19323 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19324 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19325 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19326 (SET_SCROLL_BAR_X_WINDOW): Remove.
19327 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19328 Access the new x_window field directly.
19329 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19330 Don't wrap/unwrap integers into Lisp_Objects.
19331 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19332 (x_scroll_bar_report_motion):
19333 Don't wrap/unwrap integers into Lisp_Objects.
19334 (x_term_init): Use SDATA.
19335 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19336 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19337 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19338 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19339 * xfns.c (x_set_background_color):
19340 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19341 Access the new x_window field directly.
19342
19343 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19344 (allocate_pseudovector): Make non-static.
19345
19346 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19347 (allocate_pseudovector): Declare.
19348 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19349
19350 2007-11-15 Andreas Schwab <schwab@suse.de>
19351
19352 * editfns.c (Fformat): Correctly format EMACS_INT values.
19353 Also take precision into account when formatting an integer.
19354
19355 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19356
19357 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19358
19359 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19360 (syms_of_keyboard): Defsubr it.
19361
19362 * data.c (swap_in_global_binding): Fix longstanding bug where
19363 store_symval_forwarding was not called with the right second argument,
19364 thus causing objfwd-ing from being dropped.
19365
19366 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19367
19368 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19369 (Fx_display_pixel_height, Fx_display_planes)
19370 (Fx_display_color_cells, Fx_server_max_request_size)
19371 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19372 (Fx_display_visual_class, Fx_display_save_under):
19373 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19374 (Fx_display_pixel_height, Fx_display_planes)
19375 (Fx_display_color_cells, Fx_server_max_request_size)
19376 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19377 (Fx_display_mm_height, Fx_display_mm_width)
19378 (Fx_display_backing_store, Fx_display_visual_class)
19379 (Fw32_select_font, Fx_display_save_under):
19380 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19381 (Fx_display_pixel_height, Fx_display_planes)
19382 (Fx_display_color_cells, Fx_server_max_request_size)
19383 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19384 (Fx_display_save_under): Fix typos in docstrings.
19385
19386 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19387
19388 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19389 corresponding to deleted entries; they are an implementation detail.
19390 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19391 Remove variables.
19392 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19393 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19394 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19395 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19396 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19397 (Fw32_define_rgb_color, Fw32_load_color_file)
19398 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19399 Fix typos in docstrings.
19400 (Fx_server_version): Reflow docstring.
19401 (Fw32_shell_execute): Doc fixes.
19402
19403 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
19404
19405 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19406 if w32_parse_hot_key returned nil.
19407
19408 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19409
19410 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19411
19412 2007-11-09 Jason Rumney <jasonr@gnu.org>
19413
19414 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19415
19416 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19417
19418 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19419 Remove W32_SCROLL_BAR_CLICK_EVENT.
19420
19421 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19422 Add MULTIMEDIA_KEY_EVENT.
19423
19424 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19425 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19426 (make_lispy_event) [WINDOWSNT]: Use it to translate
19427 MULTIMEDIA_KEY_EVENT.
19428
19429 * w32term.h (WM_APPCOMMAND): Define if not already.
19430 (GET_APPCOMMAND_LPARAM): Likewise.
19431
19432 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19433 WM_APPCOMMAND.
19434
19435 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19436 (syms_of_w32fns): Export and initialize it.
19437 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19438
19439 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
19440
19441 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19442 twice.
19443
19444 * xdisp.c (handle_face_prop): Fix last change.
19445
19446 2007-11-09 Richard Stallman <rms@gnu.org>
19447
19448 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19449 not just for after-strings and before-strings.
19450 Call face_for_overlay_string and pass the overlay to it.
19451 (handle_display_prop): Determine whether property came from an overlay.
19452 Pass OVERLAY arg to handle_single_display_spec.
19453 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19454 (load_overlay_strings): Fill in it->string_overlays.
19455 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19456
19457 * xfaces.c (face_for_overlay_string): Function renamed from
19458 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19459
19460 * dispextern.h (struct it): New elt string_overlays.
19461 New elt from_overlay, also in stack.
19462 Rearrange a few elements.
19463 (face_for_overlay_string): Decl renamed from
19464 face_at_buffer_position_no_overlays, and add argument.
19465
19466 2007-11-09 Richard Stallman <rms@gnu.org>
19467
19468 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19469 to get the base face for an overlay string.
19470
19471 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19472
19473 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19474
19475 * xdisp.c (handle_stop): Move some code out of loop.
19476
19477 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19478
19479 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19480 Fix conversion from Lisp object to ATSUFontID.
19481
19482 2007-11-09 Jason Rumney <jasonr@gnu.org>
19483
19484 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19485
19486 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19487
19488 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19489 Don't assume regions are aligned to page boundary.
19490 (print_load_command_name): Add LC_UUID if defined.
19491
19492 2007-11-09 Richard Stallman <rms@gnu.org>
19493
19494 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19495
19496 2007-11-07 Jason Rumney <jasonr@gnu.org>
19497
19498 * s/windows95.h: Remove.
19499
19500 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19501
19502 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19503 abort with a message on unhandled store_type values.
19504
19505 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19506
19507 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19508 Remove HAVE_X11R5 and HAVE_X11R4.
19509
19510 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19511
19512 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19513
19514 2007-11-01 Johan Bockgård <bojohan@gnu.org>
19515
19516 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19517 Don't set s->stippled_p here, since it has already been set by
19518 x_set_glyph_string_gc from x_draw_glyph_string.
19519
19520 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19521
19522 * sunfns.c: Remove file.
19523
19524 * m/sun386.h:
19525 * m/sun2.h:
19526 * m/sparc.h: Remove Sun windows code.
19527
19528 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19529
19530 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19531 (init_keyboard): Set current_kboard's window-system to nil.
19532 (tty_read_avail_input): Typo.
19533 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19534
19535 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19536
19537 * s/usg5-4.h:
19538 * s/usg5-3.h:
19539 * s/ptx.h:
19540 * m/is386.h:
19541 * m/ibmps2-aix.h:
19542 * Makefile.in: Remove all mentions of X10.
19543
19544 * dispnew.c (syms_of_display): Don't mention version 10.
19545
19546 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
19547
19548 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19549 ($(BLD)/abbrev.$(O)): Remove.
19550
19551 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19552
19553 Rewrite abbrev.c in Elisp.
19554 * image.c (Qcount): Don't declare as extern.
19555 (syms_of_image): Initialize and staticpro `Qcount'.
19556 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19557 * emacs.c (main): Don't call syms_of_abbrev.
19558 * Makefile.in (obj): Remove abbrev.o.
19559 (abbrev.o): Remove.
19560 * abbrev.c: Remove.
19561
19562 2007-10-26 Martin Rudalics <rudalics@gmx.at>
19563
19564 * window.c (window_min_size_2): Don't count header-line.
19565
19566 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19567
19568 * frame.h (struct frame): Move all bit fields after the first bit
19569 field to take advantage of the available space. Group all the
19570 chars together to reduce wasted space due to padding.
19571
19572 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
19573
19574 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19575
19576 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19577 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19578 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19579 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19580 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19581 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19582 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19583 (last_marked, mark_object_loop_halt): Make static.
19584
19585 * frame.c (syms_of_frame) <delete-frame-functions>:
19586 Fix typo in docstring.
19587
19588 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
19589
19590 * w32.c (init_environment): Fix tiny memory leak.
19591 (w32_get_resource): Remove unused variable `ok'.
19592
19593 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19594
19595 Make `window-system' into a keyboard-local variable (rather than
19596 frame-local as done originally by multi-tty).
19597
19598 * keyboard.h (struct kboard): Add Vwindow_system.
19599 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19600 (mark_kboards): Mark Vwindow_system.
19601
19602 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19603 (init_display): Don't set the obsolete `window-system' frame-param.
19604
19605 * xterm.c (x_term_init):
19606 * w32term.c (w32_create_terminal):
19607 * term.c (init_tty): Set Vwindow_system.
19608 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19609 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19610
19611 * xfns.c (Fx_create_frame, x_create_tip_frame):
19612 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19613 * macfns.c (Fx_create_frame):
19614 Don't set the obsolete `window-system' frame-param.
19615
19616 * frame.h (Qwindow_system): Remove.
19617 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19618 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19619
19620 2007-10-24 Richard Stallman <rms@gnu.org>
19621
19622 * frame.c (x_figure_window_size): For fullscreen case,
19623 set USPosition | PPosition without clobbering rest of window_prompting.
19624
19625 * keyboard.c (Fcurrent_idle_time): Doc fix.
19626
19627 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19628
19629 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19630
19631 * process.c (unwind_request_sigio): Only define if __ultrix__.
19632
19633 * callproc.c (child_setup): Remove spurious *.
19634
19635 * lisp.h (Fget_text_property): Declare.
19636 (have_menus_p): Declare it here rather than in sys-dep header files.
19637 * macterm.h (have_menus_p):
19638 * msdos.h (have_menus_p):
19639 * xterm.h (have_menus_p): Remove.
19640
19641 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19642 (Fmake_variable_frame_local): Just check the variable's const-ness
19643 rather than checking nil or t.
19644
19645 2007-10-22 Jason Rumney <jasonr@gnu.org>
19646
19647 * w32fns.c: Include math.h.
19648 (w32_abort): Declaration moved to nt/config.nt.
19649
19650 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19651 (abort): Redefinition moved to nt/config.nt.
19652
19653 * m/windowsnt.h: Remove.
19654
19655 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
19656
19657 * emacs.c (Fdump_emacs): Fix typo in message.
19658 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19659 <installation-directory>: Reflow docstring.
19660
19661 2007-10-22 Juri Linkov <juri@jurta.org>
19662
19663 * minibuf.c: Allow minibuffer default to be a list of default values.
19664 With empty input use the first element of this list as returned default.
19665 (string_to_object)
19666 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19667 (read_minibuf): If defalt is cons, set histstring to its car.
19668 (Fread_string): If default_value is cons, set val to its car.
19669 (Fread_buffer): If def is cons, use its car.
19670 (Fcompleting_read): If defalt is cons, set val to its car.
19671
19672 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
19673
19674 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19675
19676 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
19677
19678 * doc.c (Fdocumentation): Check for advice in all cases.
19679
19680 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
19681
19682 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19683
19684 2007-10-19 Richard Stallman <rms@gnu.org>
19685
19686 * doc.c (Fdocumentation): Check for and handle an advised function.
19687
19688 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
19689
19690 * process.c (Fset_process_filter): Doc fix.
19691
19692 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19693
19694 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19695 which caused key-translation-map to applied repeatedly (thus breaking
19696 double-mode).
19697
19698 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19699
19700 * xselect.c (x_own_selection, x_handle_selection_clear)
19701 (x_clear_frame_selections):
19702 * w32menu.c (list_of_panes, list_of_items):
19703 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19704 * textprop.c (validate_plist, interval_has_all_properties)
19705 (interval_has_some_properties, interval_has_some_properties_list)
19706 (add_properties, text_property_list):
19707 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19708 * minibuf.c (Fassoc_string):
19709 * macselect.c (x_own_selection, x_clear_frame_selections)
19710 (Fx_disown_selection_internal):
19711 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19712 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19713
19714 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
19715
19716 * process.c: Link to libs for calling res_init() if available.
19717 (Fmake_network_process): Call res_init() before getaddrinfo or
19718 gethostbyname, if possible.
19719
19720 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19721
19722 * lread.c (read1): Set pvectype for char_tables.
19723
19724 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19725 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19726 Add type checks.
19727 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19728
19729 * alloc.c (free_misc): Use XMISCTYPE.
19730 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19731
19732 2007-10-17 Glenn Morris <rgm@gnu.org>
19733
19734 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19735 (syms_of_minibuf): Add Qcompletion_ignore_case.
19736 * dired.c (Qcompletion_ignore_case): Change to external.
19737 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19738 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19739 (Fread_file_name): Use it rather than intern'ing.
19740
19741 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19742 (Fread_coding_system): Ignore case of user input.
19743
19744 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19745
19746 * xdisp.c (handle_display_prop): Ignore display specs after
19747 replacing one when string text is being replaced.
19748 (handle_single_display_spec): Pretend as if characters with display
19749 property haven't been consumed only when buffer text is being replaced.
19750
19751 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19752
19753 * xfns.c (Fx_create_frame, Fx_display_list):
19754 * window.c (window_fixed_size_p, enlarge_window)
19755 (shrink_window_lowest_first):
19756 * macterm.c (init_font_name_table):
19757 * macfns.c (Fx_create_frame, Fx_display_list):
19758 * lread.c (close_load_descs):
19759 * keyboard.c (read_char_x_menu_prompt):
19760 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19761 * coding.c (code_convert_region_unwind): Test the type of an object
19762 rather than just !NILP before extracting data from it.
19763
19764 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19765
19766 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19767 (XMISCANY): New macro.
19768 (XMISCTYPE): Use it.
19769 (struct Lisp_Misc_Any): New type.
19770 (union Lisp_Misc): Use it.
19771 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19772 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19773 (find_symbol_value, set_internal, default_value, Fset_default)
19774 (Fmake_variable_buffer_local, Fmake_local_variable)
19775 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19776 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19777 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19778 * alloc.c (allocate_buffer): Set the size and tag.
19779 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19780 Use XMISCANY.
19781 (die): Follow the GNU convention for error messages.
19782 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19783 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19784 tag any more.
19785 (set_buffer_internal_1):
19786 * frame.c (store_frame_param):
19787 * eval.c (specbind):
19788 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19789
19790 * doc.c (Fsnarf_documentation): Simplify.
19791
19792 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19793
19794 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19795 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19796
19797 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19798
19799 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19800
19801 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19802
19803 * eval.c (do_autoload): Don't save autoloads.
19804
19805 * data.c (Ffset): Save autoload of the function being set.
19806
19807 2007-10-07 John Paul Wallington <jpw@pobox.com>
19808
19809 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19810 parameter before setting up faces.
19811
19812 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19813
19814 * ccl.c (Fregister_code_conversion_map):
19815 * keyboard.c (append_tool_bar_item): Reformat last change.
19816
19817 * lisp.h (eabs): Rename from `abs'. All callers changed.
19818
19819 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19820
19821 * buffer.c (add_overlay_mod_hooklist):
19822 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19823 * fontset.c (make_fontset):
19824 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19825 (append_tool_bar_item):
19826 * macmenu.c (grow_menu_items):
19827 * w32menu.c (grow_menu_items):
19828 * xmenu.c (grow_menu_items): Use larger_vector.
19829
19830 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19831
19832 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19833 selected frame'' on MSDOS).
19834
19835 2007-10-12 Martin Rudalics <rudalics@gmx.at>
19836
19837 * frame.c (Qexplicit_name): New variable.
19838 (x_report_frame_params): Report it in parameter alist.
19839 (syms_of_frame): Intern and staticpro it.
19840
19841 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19842
19843 * macfns.c (x_create_tip_frame): Set terminal for frame.
19844
19845 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19846
19847 * frame.c (Qenvironment): Remove.
19848 (syms_of_frame) <Qenvironment>: Don't initialize.
19849 (Fdelete_frame): Don't treat the `environment' param specially.
19850 * frame.h (Qenvironment): Don't declare.
19851 * callproc.c (set_initial_environment): Don't set unused frame param.
19852
19853 * frame.c (Fframe_with_environment): Remove.
19854 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19855
19856 * lisp.h (Fframe_with_environment): Don't declare.
19857
19858 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
19859
19860 * indent.c (indent_tabs_mode, last_known_column)
19861 (last_known_column_modified): Make static.
19862 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19863
19864 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19865
19866 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19867
19868 2007-10-09 Jason Rumney <jasonr@gnu.org>
19869
19870 * w32term.c (x_set_window_size): Disable code that attempts to tell
19871 Lisp code about a size change before it actually happens.
19872
19873 2007-10-09 Richard Stallman <rms@gnu.org>
19874
19875 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19876 return HANDLED_RETURN.
19877
19878 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19879
19880 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19881 when there's an unread command event.
19882
19883 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19884 window autoselection act appropriately when leaving selected frame.
19885 (syms_of_frame): Initialize focus_follows_mouse.
19886 * frame.h (focus_follows_mouse): Extern it.
19887 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19888 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19889 * msdos.c (dos_rawgetc): Likewise.
19890 * w32term.c (w32_read_socket): Likewise.
19891 * xterm.c (handle_one_xevent): Likewise.
19892 * xdisp.c (syms_of_xdisp): In doc-string of
19893 mouse-autoselect-window mention focus-follows-mouse.
19894
19895 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19896
19897 * macterm.c (mac_load_query_font): Fix missing return value.
19898 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19899 Add BLOCK_INPUT.
19900
19901 2007-10-08 Richard Stallman <rms@gnu.org>
19902
19903 * xdisp.c (get_window_cursor_type): Implement documented behavior
19904 for cursor-in-non-selected-windows = t.
19905
19906 2007-10-08 Jason Rumney <jasonr@gnu.org>
19907
19908 * w32.c (w32_get_resource): Always close registry keys.
19909
19910 2007-10-08 Jason Rumney <jasonr@gnu.org>
19911
19912 * makefile.w32-in (LIBS): Add COMCTL32.
19913
19914 * w32fns.c (globals_of_w32fns): Init common controls.
19915
19916 2007-10-08 Richard Stallman <rms@gnu.org>
19917
19918 * image.c (our_memory_buffer): Rename from omfib_buffer.
19919
19920 2007-10-08 Richard Stallman <rms@gnu.org>
19921
19922 * buffer.c (Foverlays_at): Doc fix.
19923
19924 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19925
19926 * fns.c (Fplist_put): Preserve uneven tail data.
19927
19928 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19929
19930 * termhooks.h (enum event_kind): Remove trailing comma.
19931
19932 * frame.h (enum): Remove trailing comma.
19933
19934 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19935
19936 * w32proc.c (delete_child): Don't terminate threads of zombies.
19937
19938 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19939
19940 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19941
19942 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19943 last-repeatable-command.
19944 (init_kboard): Initialize Vlast_repeatable_command.
19945 (command_loop_1): Set it to real_this_command unless that was
19946 bound to an input event.
19947 (mark_kboards): Mark it.
19948
19949 2007-10-08 Richard Stallman <rms@gnu.org>
19950
19951 * eval.c (condition-case): Doc fix.
19952
19953 2007-10-08 Masatake YAMATO <jet@gyve.org>
19954
19955 * xfaces.c (tty_supports_face_attributes_p): Fix code
19956 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19957 was copied and not edited.
19958
19959 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19960
19961 Add new `input-decode-map' keymap and use it for terminal
19962 escape sequences.
19963 * keyboard.h (struct kboard): Add Vinput_decode_map.
19964 Remove Vlocal_key_translation_map.
19965 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19966 (init_kboard): Init input-decode-map.
19967 Replace local-key-translation-map back with key-translation-map.
19968 (syms_of_keyboard): Declare input-decode-map.
19969 Remove local-key-translation-map. Update docstrings.
19970 (mark_kboards): Mark Vinput_decode_map.
19971 Don't mark Vlocal_key_translation_map.
19972 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19973 Replace local-key-translation-map back with key-translation-map.
19974 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19975 Bind in input-decode-map rather than function-key-map.
19976
19977 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19978 This was made redundant by the previous introduction of XSETPVECTYPE.
19979
19980 2007-10-09 Richard Stallman <rms@gnu.org>
19981
19982 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19983
19984 2007-09-29 Richard Stallman <rms@gnu.org>
19985
19986 * eval.c (internal_condition_case_2, internal_condition_case_1)
19987 (internal_condition_case): Reenable abort if x_catching_errors ()
19988 to see if that really happens and why.
19989
19990 2007-10-06 Andreas Schwab <schwab@suse.de>
19991
19992 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19993
19994 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
19995
19996 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19997
19998 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19999
20000 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20001
20002 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20003
20004 * window.h (struct window):
20005 * window.c (struct save_window_data, struct saved_window):
20006 * termhooks.h (struct terminal):
20007 * process.h (struct Lisp_Process):
20008 * frame.h (struct frame):
20009 * buffer.h (struct buffer):
20010 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20011 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20012 The size field of (pseudo)vectors is now unsigned.
20013 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20014
20015 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20016 Turn `count' into an integer.
20017
20018 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20019 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20020 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20021 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20022 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20023
20024 * alloc.c (allocate_pseudovector): New fun.
20025 (ALLOCATE_PSEUDOVECTOR): New macro.
20026 (allocate_window, allocate_terminal, allocate_frame)
20027 (allocate_process): Use it.
20028 (mark_vectorlike): New function.
20029 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20030 (mark_terminals): Use it.
20031 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20032 (Fmake_byte_code): Use XSETPVECTYPE.
20033
20034 * frame.c (Fframe_parameters): Minor simplification.
20035
20036 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20037
20038 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20039
20040 * buffer.c (Fget_buffer_create, init_buffer_once):
20041 * lread.c (defsubr):
20042 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20043
20044 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20045 defined differently in the m/*.h files.
20046 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20047 (XSETPVECTYPE): New macro.
20048 (XSETPSEUDOVECTOR): Use it.
20049
20050 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20051 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20052
20053 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20054 * lread.c (defvar_per_buffer):
20055 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20056
20057 * window.c (candidate_window_p): Only consider as visible frames that
20058 are on the same terminal.
20059
20060 * m/ibms390x.h (MARKBIT): Remove unused macro.
20061
20062 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
20063
20064 * lread.c (Fload): Fix typo in docstring.
20065
20066 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20067
20068 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20069 of a non-zero value can't yield zero.
20070
20071 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20072
20073 * term.c (term_clear_mouse_face, term_mouse_highlight)
20074 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20075
20076 * print.c (safe_debug_print): Use XHASH.
20077
20078 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20079 Lisp elements such as tags.
20080 (XHASH): New macro.
20081 (EQ): Use it.
20082 (SREF, SSET, STRING_COPYIN): Use SDATA.
20083 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20084
20085 * alloc.c (mark_terminal): Remove left-over declaration.
20086 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20087 (allocate_vectorlike): Remove type argument. Adjust callers.
20088 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20089 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20090
20091 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20092 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20093 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20094 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20095 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20096 Use them.
20097
20098 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20099 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20100 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20101
20102 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20103
20104 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20105 loaded by default.
20106
20107 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20108
20109 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20110 on this tty.
20111 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20112
20113 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20114 Update all users.
20115 (handle_one_term_event): Use Gpm_DrawPointer.
20116 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20117 Signal errors instead of returning nil. Always return nil.
20118 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20119 Make it a noop if gpm-mouse was not activated.
20120 (syms_of_term): Update names.
20121
20122 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20123
20124 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20125 (init_sys_modes): Check that gpm_tty is the current tty.
20126
20127 * alloc.c (allocate_terminal): Set the vector size to only count the
20128 lisp fields. Initialize those to nil.
20129 (mark_object): Don't treat terminals specially.
20130 (mark_terminal): Remove.
20131 (mark_terminals): Use mark_object instead.
20132
20133 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20134 the GC to the beginning.
20135
20136 * indent.h:
20137 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20138
20139 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20140
20141 2007-09-25 Jason Rumney <jasonr@gnu.org>
20142
20143 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20144
20145 * w32console.c (create_w32cons_output): Remove.
20146
20147 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20148
20149 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20150 (reset_sys_modes): Use reset_terminal_modes_hook.
20151
20152 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20153
20154 * eval.c (do_autoload): Don't output any message.
20155
20156 2007-09-24 Juri Linkov <juri@jurta.org>
20157
20158 * emacs.c (standard_args): Change priority of "--no-splash"
20159 from 40 to 3. Add "--no-desktop" with the same priority.
20160
20161 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20162
20163 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20164 and optimize the case where they are all 1.
20165
20166 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
20167
20168 * lisp.h (abs): Define if not defined.
20169 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20170 Don't define `abs', since it's defined in lisp.h.
20171
20172 2007-09-22 Eli Zaretskii <eliz@gnu.org>
20173
20174 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20175 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20176 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20177 (init_tty): Use DEV_TTY instead of "/dev/tty".
20178 [WINDOWSNT]: No need to protect from NAME arg being null.
20179
20180 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20181
20182 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20183 up the tty state.
20184
20185 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20186
20187 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20188 (gpm_tty): Change its type.
20189 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20190 (gpm_tty): Change its type and initialize it.
20191 (Fterm_open_connection): Check the frame is indeed a tty.
20192 Use the new gpm_tty.
20193 (Fterm_close_connection): Use the new gpm_tty.
20194 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20195 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20196
20197 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
20198
20199 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20200 underline_color, to draw strike-through.
20201
20202 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20203
20204 * lisp.h (allocate_terminal): Declare.
20205
20206 * window.c (candidate_window_p): Consider frames that are being placed
20207 by the user as somewhere between visible and iconified.
20208 (window_loop): Prefer windows on the current frame.
20209 (Fselect_window): Move the use of select-frame to the beginning so we
20210 can just delegate all the work (it'll call us back anyway).
20211
20212 * frame.c (Qdisplay_environment_variable):
20213 * frame.h (Qdisplay_environment_variable): Delete.
20214
20215 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20216 of the first arg, since that value may be a union.
20217
20218 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20219 parameter rather than Qdisplay_environment_variable. If all else
20220 fails, look for DISPLAY in initial-environment.
20221
20222 2007-09-21 Glenn Morris <rgm@gnu.org>
20223
20224 * Makefile.in (emacstool): Remove target.
20225 (lisp, shortlisp): Remove termdev.elc.
20226
20227 2007-09-21 Markus Triska <markus.triska@gmx.at>
20228
20229 * xterm.c (x_delete_display): Compile session management conditionally.
20230
20231 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20232
20233 * callproc.c (getenv_internal_1): New function.
20234 (getenv_internal): Use it.
20235 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20236
20237 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20238 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20239 (Fset_terminal_parameter): Work with dead terminals as well.
20240 (Fmodify_terminal_parameters): Remove.
20241
20242 * terminal.c (get_terminal): Handle terminals.
20243 Make sure the terminal returned is live.
20244 (create_terminal): Use allocate_terminal.
20245 (mark_terminals): Move to alloc.c.
20246 (delete_terminal): Use terminal->name as liveness status.
20247 NULL out fields after freeing their contents.
20248 Don't deallocate the object.
20249 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20250 rather than an int.
20251 (Fterminal_live_p): Accept non-integer arguments.
20252 (Fterminal_list): Return terminal objects rather than an ints.
20253
20254 * alloc.c (enum mem_type): New member for `terminal' objects.
20255 (allocate_terminal): New function.
20256 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20257 Handle terminals.
20258 (mark_terminal): New fun.
20259 (mark_terminals): Move from terminal.c.
20260
20261 * term.c (get_tty_terminal): Don't treat output_initial specially.
20262 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20263 (delete_tty): Use terminal->name as liveness status.
20264
20265 * termhooks.h (struct terminal): Make it into a pseudovector.
20266 Remove `deleted' replaced by checking `name's nullness.
20267
20268 * print.c (print_object): Handle terminals.
20269
20270 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20271 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20272
20273 * frame.c (make_terminal_frame):
20274 * keyboard.c (tty_read_avail_input):
20275 * w32term.c (x_delete_terminal):
20276 * xfns.c (Fx_create_frame, x_create_tip_frame):
20277 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20278
20279 2007-09-20 Glenn Morris <rgm@gnu.org>
20280
20281 * process.c (Fmake_network_process): Doc fix.
20282
20283 2007-09-19 Jason Rumney <jasonr@gnu.org>
20284
20285 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20286
20287 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20288
20289 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20290 Fix a C warning regarding variable constness.
20291
20292 * xterm.c (handle_one_xevent): Fix a C warning.
20293
20294 2007-09-18 Jason Rumney <jasonr@gnu.org>
20295
20296 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20297
20298 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20299
20300 * gtkutil.c (gdpy_def): New variable.
20301 (xg_initialize): Initialize gdpy_def.
20302 (xg_display_close): If no other display exists, set gdpy_def to a
20303 new connection.
20304
20305 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20306
20307 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20308 when we have no file name for the icon.
20309 (xg_tool_bar_expose_callback): Remove.
20310 (xg_create_tool_bar): Don't connect expose signal to
20311 xg_tool_bar_expose_callback.
20312 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20313
20314 2007-09-16 Andreas Schwab <schwab@suse.de>
20315
20316 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20317 values instead of zapping them.
20318
20319 2007-09-14 Glenn Morris <rgm@gnu.org>
20320
20321 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20322 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20323 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20324 scope and rename to omfib_buffer for clarity.
20325 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20326
20327 2007-09-14 Kenichi Handa <handa@m17n.org>
20328
20329 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20330
20331 2007-09-13 Jason Rumney <jasonr@gnu.org>
20332
20333 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20334
20335 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20336
20337 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20338 (mac_term_init): Call here instead, passing rif.
20339
20340 2007-09-13 Glenn Morris <rgm@gnu.org>
20341
20342 * s/hpux.h: No longer define `static' as nothing.
20343
20344 2007-09-13 Johan Bockgård <bojohan@gnu.org>
20345
20346 * callint.c (Fcall_interactively): Remove unused var `fun'.
20347
20348 2007-09-12 Romain Francoise <romain@orebokech.com>
20349
20350 * window.c (prefer_window_split_horizontally, display_buffer):
20351 Revert 2007-09-08 change.
20352
20353 2007-09-12 Glenn Morris <rgm@gnu.org>
20354
20355 * alloca.c: Remove file.
20356 * Makefile.in (alloca): Do not undef.
20357 (allocaobj, alloca.o): Remove.
20358 (otherobj): Remove allocaobj.
20359 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20360 * regex.c (C_ALLOCA): Remove all references and code that was only
20361 used when this was defined.
20362 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20363 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20364 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20365
20366 * Makefile.in (SOURCES, unlock, relock): Delete.
20367
20368 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20369 (menu_grab_callback): All uses changed.
20370
20371 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20372 (x_reply_selection_request): All uses changed.
20373
20374 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20375
20376 * lread.c (load_warn_old_style_backquotes): Change message to look
20377 better when it appears in the middle of byte-compiler messages.
20378
20379 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20380
20381 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20382
20383 * xterm.c (x_create_terminal): Add comment.
20384
20385 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20386
20387 2007-09-10 Richard Stallman <rms@gnu.org>
20388
20389 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20390
20391 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20392
20393 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20394 (DEFUN): Document `intspec', use it instead of `prompt'.
20395
20396 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20397
20398 * data.c (Finteractive_form): If the interactive specification starts
20399 with a `(', use it as a Lisp form.
20400
20401 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20402 name and file modes.
20403
20404 * callint.c (Fcall_interactively): Comment fixes.
20405
20406 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20407
20408 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20409 and compiled functions.
20410
20411 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20412
20413 * window.c (prefer_window_split_horizontally): New variable.
20414 (display_buffer): Consider splitting window horizontally depending
20415 on prefer_window_split_horizontally.
20416
20417 2007-09-08 Eli Zaretskii <eliz@gnu.org>
20418
20419 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20420
20421 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20422
20423 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20424
20425 * frame.c (x_set_frame_parameters): Check number is positive before
20426 using XFASTINT.
20427
20428 * window.c (freeze_window_start): Don't presume selected_window holds
20429 a window object.
20430 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20431
20432 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20433
20434 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20435
20436 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20437
20438 * window.c (Vsplit_window_preferred_function): New var.
20439 (Fdisplay_buffer): Use it.
20440 (syms_of_window): Export, and initialize it.
20441
20442 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20443
20444 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20445
20446 2007-09-06 Glenn Morris <rgm@gnu.org>
20447
20448 * gtkutil.c (menu_grab_callback) <cnt>:
20449 * xselect.c (x_reply_selection_request) <cnt>: Move static
20450 variable to file scope.
20451
20452 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20453
20454 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20455 consistent values of selected_frame and selected_window.
20456
20457 2007-09-04 Jason Rumney <jasonr@gnu.org>
20458
20459 * w32console.c (initialize_w32_display): Zero unused hooks.
20460
20461 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20462
20463 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20464 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20465
20466 2007-09-04 Jason Rumney <jasonr@gnu.org>
20467
20468 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20469 in w32console.c. Set up input. Remove XXX comments that have been
20470 confirmed as correct.
20471
20472 * s/ms-w32.h (MULTI_KBOARD): Define.
20473
20474 * w32console.c (one_and_only_w32cons): Remove.
20475 (initialize_w32_display): Take terminal argument.
20476
20477 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20478 initialize_w32_display.
20479 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20480
20481 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20482
20483 * keyboard.c (discard_mouse_events): Discard it.
20484 (make_lispy_event): Translate it to a lisp event.
20485 (lispy_wheel_names): Add wheel-left and right events.
20486 (syms_of_keyboard): Enlarge wheel_syms.
20487
20488 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20489 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20490
20491 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20492
20493 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20494 from WM_MOUSEHWHEEL.
20495 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20496
20497 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20498 terminal.
20499
20500 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20501 keyboard for the terminal.
20502
20503 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20504
20505 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20506 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20507 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20508 and resume-tty-function to resume-tty-hook.
20509 (Fsuspend_tty, Fresume_tty): Use new names.
20510
20511 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20512
20513 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20514 if it starts with "n:".
20515
20516 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20517
20518 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20519
20520 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20521
20522 * frame.h:
20523 * frame.c (Qterm_environment_variable): Remove.
20524 (syms_of_frame): Don't init and staticpro it.
20525
20526 * callproc.c (getenv_internal): Remove special case for $TERM.
20527
20528 * callproc.c (Vinitial_environment): New variable.
20529 (set_initial_environment): Initialize it.
20530 (syms_of_callproc): Declare it.
20531 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20532 TERM under which a process runs is never related to the TERM in which
20533 Emacs is running.
20534
20535 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20536
20537 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20538 * s/darwin.h: ... do it here.
20539
20540 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20541
20542 * lisp.h (set_initial_environment): Rename from set_global_environment.
20543
20544 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20545 removed by mistake on the multi-tty branch.
20546
20547 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20548 (Fmodify_frame_parameters): Return a value.
20549
20550 * image.c (png_load): Comment-out var only used in commented-out code.
20551
20552 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20553 before passing it to mark_object.
20554
20555 * xfaces.c (internal_resolve_face_name): Return a value.
20556 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20557
20558 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20559 (x_icon): Comment-out var only used in commented-out code.
20560
20561 2007-08-29 Romain Francoise <romain@orebokech.com>
20562
20563 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20564 QUIT hasn't been provided.
20565
20566 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20567
20568 * callproc.c (child_setup, getenv_internal): Use the
20569 display-environment-variable and term-environment-variable frame params.
20570 (set_initial_environment): Initialise Vprocess_environment.
20571
20572 * config.in: Disable multi-keyboard support on a mac.
20573
20574 * frame.c (Qterm_environment_variable)
20575 (Qdisplay_environment_variable): New variables.
20576 (syms_of_frame): Intern and staticpro them.
20577 (Fmake_terminal_frame): Disable output method test.
20578
20579 * frame.h: Declare them here.
20580
20581 * macfns.c (x_set_mouse_color): Get rif from the frame.
20582 (x_set_tool_bar_lines): Don't use updating_frame.
20583 (mac_window): Add 2 new parameters for consistency with other systems.
20584 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20585 frame parameters following what is done in X11 and w32. Don't use
20586 FRAME_MAC_DISPLAY_INFO.
20587 (Fx_open_connection, start_hourglass): Remove window-system check.
20588 (x_create_tip_frame): Get the keyboard from the terminal.
20589
20590 * macmenu.c: Reorder includes.
20591 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20592
20593 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20594 terminal parameter.
20595 (x_clear_frame): Add a frame parameter.
20596 (note_mouse_movement): Get rif from the frame.
20597 (mac_term_init): Initialize the terminal.
20598 (mac_initialize): Make static and move terminal initialization ...
20599 (mac_create_terminal): ... to this new function.
20600
20601 * macterm.h (struct mac_display_info): Add terminal.
20602 (mac_initialize): Delete declaration.
20603
20604 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20605
20606 * sysdep.c: Comment out text after #endif.
20607
20608 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20609 is defined. Better initialize ttys in windows. Use terminal
20610 specific mouse_position_hook.
20611
20612 * termhooks.h (union display_info): Add mac_display_info.
20613
20614 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20615 Set the default minibuffer frame, window_system and the rest of the
20616 frame parameters following what is done in X11.
20617
20618 * w32term.c (w32_initialize): Make static.
20619
20620 * xselect.c (x_handle_selection_clear): Only access
20621 terminal->kboard when MULTI_KBOARD is defined.
20622
20623 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20624 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20625
20626 2007-08-29 Jason Rumney <jasonr@gnu.org>
20627
20628 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20629 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20630
20631 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20632 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20633
20634 * keyboard.c (restore_kboard_configuration): Only define when
20635 MULTI_KBOARD defined.
20636
20637 * makefile.w32-in: Update dependancies from Makefile.in.
20638 (OBJ1): Add terminal.$(O)
20639
20640 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20641 Don't define function body.
20642 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20643
20644 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20645
20646 * w32.c (request_sigio, unrequest_sigio): Remove.
20647
20648 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20649 (w32con_clear_frame, w32con_clear_end_of_line)
20650 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20651 (w32con_delete_glyphs, w32con_set_terminal_window)
20652 (scroll_line, w32_sys_ring_bell): Add frame arg.
20653 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20654 Add terminal arg.
20655 (PICK_FRAME): Remove.
20656 (w32con_write_glyphs): Use frame specific terminal coding.
20657 (one_and_only_w32cons): New global variable.
20658 (initialize_w32_display): Use it for storing hooks.
20659 (create_w32cons_output): New function.
20660
20661 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20662 arg a frame.
20663
20664 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20665 Set window_system.
20666 (x_set_tool_bar_lines): Don't use updating_frame.
20667 (Fx_create_frame): Set terminal and ref count.
20668 (Fx_open_connection): Remove window-system check.
20669
20670 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20671
20672 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20673 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20674 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20675 Add frame arg.
20676 (x_delete_terminal, w32_create_terminal): New functions.
20677 (w32_term_init): Create a terminal.
20678 (w32_initialize): Move terminal specific initialization to
20679 w32_create_terminal.
20680
20681 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20682 (w32_clear_rect, w32_clear_area): Use background from frame.
20683 (w32_display_info): Add terminal.
20684 (w32_sys_ring_bell, x_delete_display): Declare here.
20685
20686 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20687
20688 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20689
20690 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20691
20692 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20693 Fix get_named_tty calls for the controlling tty.
20694
20695 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20696
20697 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
20698
20699 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20700
20701 * term.c (tty_insert_glyphs): Add missing first parameter.
20702
20703 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20704
20705 * buffer.c (Fbuffer_list, Fbury_buffer):
20706 Take frame->buried_buffer_list into account.
20707
20708 * cm.c (current_tty): New variable, for cmputc().
20709 (cmputc): Use it.
20710 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20711 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20712 (cmgoto): Add tty parameter. Pass it on to calccost().
20713 Use emacs_tputs() instead of tputs().
20714
20715 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20716 tputs().
20717 (current_tty): New variable, for cmputc().
20718 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20719
20720 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20721 (internal_condition_case, internal_condition_case_1)
20722 (internal_condition_case_2): Don't abort when x_catching_errors.
20723
20724 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20725 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20726 prevent crashes caused by bogus longjmps in read_char.
20727
20728 * keymap.h (Fset_keymap_parent): Add EXFUN.
20729
20730 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20731 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20732 Remove redundant definition.
20733
20734 * macfns.c (x_set_mouse_color, x_make_gc):
20735 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20736
20737 * w32term.c (x_free_frame_resources):
20738 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20739 (w32_initialize): Use the accessor macros for terminal characteristics.
20740
20741 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20742 Use the accessor macros for terminal characteristics.
20743 * msdos.c (internal_terminal_init): Use the accessor macros for
20744 terminal characteristics.
20745 (ScreenVisualBell, internal_terminal_init):
20746 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20747
20748 * termopts.h (no_redraw_on_reenter): Declare.
20749
20750 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20751 (mark_terminals, mark_ttys): Declare.
20752 (Fgarbage_collect): Call them.
20753 (mark_object): Mark buried_buffer_list.
20754
20755 * prefix-args.c: Include stdlib.h for exit.
20756
20757 * syssignal.h: Add comment.
20758
20759 * indent.c: Include stdio.h.
20760
20761 * window.h (Vinitial_window_system): Declare.
20762 (Vwindow_system): Delete declaration.
20763
20764 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20765
20766 * image.c (lookup_image): Don't initialize `c' until the xasserts
20767 have been run.
20768
20769 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20770 FRAME_FOREGROUND_PIXEL.
20771
20772 * print.c (print_preprocess): Don't lose print_depth levels while
20773 iterating.
20774
20775 * widget.c (update_from_various_frame_slots):
20776 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20777
20778 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20779 frames.
20780 (window_internal_height): Remove bogus make_number call.
20781 (init_window_once): Call make_terminal_frame with two zero parameters.
20782
20783 * fileio.c (Fread_file_name): Update comment.
20784
20785 * callint.c (Fcall_interactively):
20786 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20787 Make sure it is correctly unwound.
20788
20789 * xsmfns.c (x_session_close): New function.
20790
20791 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20792 Delete declarations.
20793
20794 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20795 (x_output): Remove background_pixel and foreground_pixel fields.
20796 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20797 (x_delete_device, x_session_close): Declare.
20798
20799 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20800 (read_filtered_event): Call `read_char' with a local
20801 `wrong_kboard_jmpbuf'.
20802
20803 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20804 Don't call single_kboard_state. Use FRAME_RIF.
20805
20806 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20807 systems.
20808
20809 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20810 (Fframe_with_environment, Fset_input_meta_mode)
20811 (Fset_quit_char): EXFUN.
20812 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20813 (init_sys_modes, reset_sys_modes): Update prototypes.
20814 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20815
20816 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20817 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20818 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20819 Delete declarations.
20820 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20821 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20822 New declarations.
20823
20824 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20825 already does that during init_display(). Call syms_of_keymap
20826 before syms_of_keyboard. Call `syms_of_terminal'.
20827 Call set_initial_environment, not set_process_environment.
20828 (shut_down_emacs): Call reset_all_sys_modes() instead of
20829 reset_sys_modes().
20830
20831 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20832 (internal_resolve_face_name, resolve_face_name_error): New functions.
20833 (resolve_face_name): Protect against loops and errors thrown by Fget.
20834 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20835 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20836
20837 * scroll.c: Replace CURTTY() with local variables throughout the
20838 file (where applicable).
20839 (calculate_scrolling, calculate_direct_scrolling)
20840 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20841 characteristics.
20842
20843 * keymap.c (Vfunction_key_map): Remove.
20844 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20845 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20846 (Vkey_translation_map): Remove.
20847 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20848 (Fdescribe_buffer_bindings)
20849 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20850 Update for terminal-local key-translation-map.
20851
20852 * Makefile.in (callproc.o): Update dependencies.
20853 (lisp, shortlisp): Add termdev.elc.
20854 (obj): Add terminal.o.
20855 (terminal.o): Add dependencies.
20856 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20857 (data.o, fns.o): Add termhooks.h dependency.
20858 (SOME_MACHINE_LISP): Add dnd.elc.
20859 (minibuf.o): Fix typo.
20860 Update dependencies.
20861
20862 * data.c (do_symval_forwarding, store_symval_forwarding)
20863 (find_symbol_value): Use the selected frame's keyboard, not
20864 current_kboard.
20865
20866 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20867 Vwindow_system.
20868
20869 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20870 Fmenu_bar_open.
20871 (syms_of_xmenu): Update defsubr.
20872 (mouse_position_for_popup, Fx_popup_menu)
20873 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20874 (set_frame_menubar, free_frame_menubar)
20875 (create_and_show_popup_menu, xmenu_show)
20876 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20877 an X frame.
20878
20879 * xselect.c (x_own_selection): Abort if not an X frame.
20880 (some_frame_on_display): Check if it is an X frame.
20881 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20882
20883 * coding.c: Include frame.h and termhooks.h.
20884 (terminal_coding, keyboard_coding): Delete.
20885 (Fset_terminal_coding_system_internal)
20886 (Fset_keyboard_coding_system_internal)
20887 (Fkeyboard_coding_system)
20888 (Fterminal_coding_system): Add a terminal parameter.
20889 Get terminal_coding from the terminal.
20890 (init_coding_once): Don't call setup_coding_system here.
20891
20892 * dispextern.h (set_scroll_region, turn_off_insert)
20893 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20894 (tty_clear_end_of_line, tty_setup_colors)
20895 (delete_tty, updating_frame)
20896 (produce_special_glyphs, produce_glyphs, write_glyphs)
20897 (insert_glyphs): Remove.
20898 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20899 (tty_turn_off_highlight, get_tty_size): Add declaration.
20900 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20901
20902 * frame.h (enum output_method): Add output_initial.
20903 (struct x_output): Delete.
20904 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20905 Access foreground_pixel and background_pixel directly from the frame.
20906 (tty_display): Delete.
20907 (struct frame): Add buried_buffer_list, foreground_pixel,
20908 background_pixel and terminal. Delete kboard.
20909 (union output_data): Add tty.
20910 (FRAME_KBOARD): Get the kboard from the terminal.
20911 (FRAME_INITIAL_P): New macro.
20912 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20913 (Qterm_environment_variable, Qdisplay_environment_variable)
20914 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20915 New declarations.
20916
20917 * termchar.h (tty_output, tty_display_info): New structures.
20918 (tty_list): Declare.
20919 (FRAME_TTY, CURTTY): New macros.
20920 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20921 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20922 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20923 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20924
20925 * callproc.c: Include frame.h and termhooks.h, for terminal
20926 parameters.
20927 (add_env): New function.
20928 (child_setup): Use it.
20929 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20930 (getenv_internal): Fix get_terminal_param call.
20931 (Fgetenv_internal, egetenv): Update doc.
20932 (syms_of_callproc): Initialize Vprocess_environment to nil.
20933 Register and initialize them. Remove obsolete defvars. Update doc
20934 strings.
20935 (child_setup): Handle Vlocal_environment_variables.
20936 (getenv_internal): Add terminal parameter.
20937 Handle Vlocal_environment_variables.
20938 (Fgetenv_internal): Add terminal parameter.
20939 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20940 environment in a frame (not terminal) parameter. Update doc strings.
20941 (set_initial_environment): Rename from set_global_environment.
20942 Store Emacs environment in initial frame parameter.
20943
20944 * xdisp.c (redisplay_internal): Update references to
20945 `previous_terminal_frame'.
20946 (display_mode_line, Fformat_mode_line): Replace calls to
20947 `push_frame_kboard' with `push_kboard'.
20948 (get_glyph_string_clip_rects): Add extra parentheses and
20949 braces to prevent compiler warnings.
20950 (calc_pixel_width_or_height): Add xassert to check that the
20951 frame is alive. Don't call `lookup_image' on a termcap frame.
20952 (message2_nolog, message3_nolog, redisplay_internal)
20953 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20954 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20955 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20956 (Fx_display_pixel_width, Fx_display_pixel_height)
20957 (Fx_display_planes, Fx_display_color_cells)
20958 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20959 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20960 (Fx_display_backing_store, Fx_display_visual_class)
20961 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20962 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20963
20964 * xfns.c (x_set_foreground_color x_set_background_color)
20965 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20966 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20967 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20968 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20969 terminal that is being deleted.
20970 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20971 frame parameter, and make sure it overrides any user-supplied setting.
20972 (Fx_close_connection, Fx_synchronize): Unify argument names with
20973 the rest of the DEFUNs.
20974
20975 * dispnew.c (Fsend_string_to_terminal): Update call to
20976 `get_tty_terminal'.
20977 (Fredraw_frame, Fsend_string_to_terminal)
20978 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20979 FRAME_TERMCAP_P and FRAME_TTY.
20980 (window_change_signal): Don't believe width/height values that are
20981 impossibly small.
20982 (Vinitial_window_system): Rename from Vwindow_system.
20983 (termscript, Wcm, rif): Delete.
20984
20985 * termhooks.h (struct terminal): New struct containing the
20986 previously global text display hooks and new members NAME,
20987 DELETED and PARAM_ALIST.
20988 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20989 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20990 (FRAME_RIF): New macros.
20991 (get_terminal_param, get_device): New declarations.
20992 (termscript): Delete declaration.
20993
20994 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20995 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20996 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20997 FRAME_FOREGROUND_PIXEL.
20998 (x_fully_uncatch_errors): Disable definition.
20999 (x_scroll_bar_expose): Fix reference to foreground pixel.
21000 (XTread_socket): Disable loop on all X displays.
21001 (x_delete_terminal): Don't set terminal->deleted and let
21002 delete_terminal delete the frames on the terminal.
21003 (x_delete_display): Doc update to reflect changes in
21004 delete_terminal.
21005 (x_display_info) <terminal>: Move member earlier in the struct.
21006 (deleting_tty): Remove old variable.
21007 (Fsuspend_tty): Call clear_tty_hooks.
21008 (Fresume_tty, init_tty): Call set_tty_hooks.
21009 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21010 errors on X frames.
21011 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21012 (handle_one_xevent): Initialize `f' to NULL.
21013 (x_delete_terminal, x_create_terminal): New functions.
21014 (XTset_terminal_modes, XTreset_terminal_modes)
21015 (XTread_socket, x_connection_closed, x_term_init)
21016 (x_term_init, x_delete_display): Add terminal parameter.
21017 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21018 X connections.
21019
21020 * frame.c: Include termchar.h.
21021 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21022 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21023 (Qdisplay_environment_variable): New vars.
21024 (Fframep): Deal with output_initial.
21025 (Fframe-live-p): Doc fix.
21026 (Fwindow-system): New function.
21027 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21028 (make_terminal_frame): Don't create frames on a terminal that is
21029 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21030 (store_frame_param): Check for found_for_frame before calling XFRAME.
21031 (Fmake_terminal_frame): Handle NULL tty names correctly.
21032 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21033 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21034 frames to refer to a deleted frame in their 'environment parameter.
21035 (Fframe_with_environment): New function.
21036 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21037 (get_future_frame_param): New function.
21038 (Fmake_terminal_frame): Use it.
21039 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21040
21041 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21042 * sysdep.c (reset_sys_modes): Update for renames.
21043
21044 * keyboard.c (tty_read_avail_input): New function.
21045 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21046 (syms_of_keyboard): Defsubr them.
21047 (Fset_input_meta_mode, Fset_quit_char): New functions.
21048 (Fset_input_mode): Split to above functions.
21049 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21050 parameter. Use it in call to `read_char'.
21051 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21052 Set wrong_kboard_jmpbuf correctly in recursive calls.
21053 Use current_kboard to access Vkeyboard_translate_table.
21054 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21055 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21056 Update longjmp invocations. Remember the original current_kboard,
21057 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21058 changes it. Comment out unnecessary calls to
21059 `record_single_kboard_state' and `any_kboard_state'.
21060 Update recursive calls.
21061 (wrong_kboard_jmpbuf): Remove global variable.
21062 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21063 Handle deleted interrupted_kboards correctly; that is a legal
21064 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21065 and read_char calls. Abort if interrupted_kboard died in read_char.
21066 (any_kboard_state, single_kboard_state)
21067 (push_frame_kboard): Remove function.
21068 (pop_kboard): Switch out of single_kboard mode if the kboard has
21069 been deleted. Remove unused variable. Help debugging by not
21070 changing current_kboard unnecessarily. Set current_kboard to the
21071 kboard of the selected frame when the stored kboard object has
21072 been deleted before pop_kboard.
21073 (temporarily_switch_to_single_kboard): Change first parameter to a
21074 frame pointer. Throw an error when caller wants to change kboards
21075 while in single_kboard mode. Don't push_kboard if we weren't in
21076 single kboard state. Don't pop_kboard if we popped into any
21077 kboard state.
21078 (restore_kboard_configuration): Abort if pop_kboard changed the
21079 kboard in single_kboard mode. Call pop_kboard only after setting
21080 up single_kboard mode.
21081 (Frecursive_edit): Switch to single_kboard mode only in nested
21082 command loops.
21083 (cmd_error, command_loop, command_loop_1, timer_check):
21084 Comment out unnecessary call to `any_kboard_state' and
21085 `record_single_kboard_state'.
21086 (delete_kboard): Exit single_kboard mode if we have just deleted
21087 that kboard. Use FRAME_KBOARD.
21088 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21089 `fatal_error_signal'.
21090 (record_single_kboard_state): Don't push_kboard if we weren't in
21091 single kboard state. Don't pop_kboard if we popped into any
21092 kboard state.
21093 (push_frame_kboard): Rename to push_kboard.
21094 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21095 (read_avail_input): Read input from all terminals.
21096 (mark_kboards): Also mark Vkeyboard_translate_table.
21097 (kbd_buffer_store_event_hold): Simplify condition.
21098 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21099 (Vkeyboard_translate_table): Move to struct kboard.
21100 (init_kboard): Initialize Vkeyboard_translate_table.
21101 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21102 Vkeyboard_translate_table. Update doc strings. Update docs of
21103 local-function-key-map and function-key-map.
21104
21105 * terminal.c: New file.
21106
21107 * term.c: Include errno.h.
21108 (Vring_bell_function, device_list, initial_device)
21109 (next_device_id, ring_bell, update_begin, update_end)
21110 (set_terminal_window, cursor_to, raw_cursor_to)
21111 (clear_to_end, clear_frame, clear_end_of_line)
21112 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21113 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21114 (syms_of_term): Move their initialization to terminal.c.
21115 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21116 (Ftty_display_color_cells)
21117 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21118 (clear_tty_hooks, set_tty_hooks)
21119 (init_tty, maybe_fatal): New functions.
21120 (Ftty_type): Return nil if terminal is not on a tty instead of
21121 throwing an error. Doc update.
21122 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21123 Doc update. Initialize new subrs and variables.
21124 (delete_tty): Use terminal->deleted.
21125 (tty_set_terminal_modes): Rename from set_terminal_modes.
21126 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21127 (set_scroll_region): Rename to `tty_set_scroll_region'.
21128 (turn_on_insert): Rename to `tty_turn_on_insert'.
21129 (turn_off_insert): Rename to `tty_turn_off_insert'.
21130 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21131 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21132 (toggle_highligh): Rename to `tty_toggle_highlight'.
21133 (background_highlight): Rename to `tty_background_highlight'.
21134 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21135 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21136 (tty_set_scroll_region, tty_background_highlight)
21137 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21138 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21139 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21140 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21141 Add static modifier.
21142 (tty_reset_terminal_modes, tty_set_terminal_window)
21143 (tty_set_scroll_region, tty_background_highlight)
21144 (tty_highlight_if_desired, tty_cursor_to)
21145 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21146 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21147 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21148 renames.
21149
21150 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21151
21152 * keyboard.c: Qrtl is new.
21153 (parse_tool_bar_item): Handle :rtl keyword.
21154 (syms_of_keyboard): Intern :rtl keyword.
21155
21156 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21157
21158 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21159 so no Lisp code is executed.
21160 (file_for_image, find_rtl_image): New functions.
21161 (xg_get_image_for_pixmap): Use file_for_image.
21162 (update_frame_tool_bar): If direction is RTL, use RTL image if
21163 defined. Use Gtk stock images if defined.
21164
21165 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21166
21167 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21168 for nonexistent or zero-width glyph in composition glyph.
21169
21170 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21171
21172 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21173
21174 * xdisp.c (Finvisible_p): New function.
21175 (syms_of_xdisp): defsubr it.
21176
21177 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
21178
21179 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21180 Doc fixes.
21181
21182 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21183
21184 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21185
21186 2007-08-24 Martin Rudalics <rudalics@gmx.at>
21187
21188 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21189 whether decoding has modified buffer contents.
21190
21191 2007-08-24 Jason Rumney <jasonr@gnu.org>
21192
21193 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21194 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21195 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21196 (init_svg_functions) [HAVE_NTGUI]: New function.
21197 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21198 (svg_load_image): Use them.
21199 (svg_load_image) [HAVE_NTGUI]: Implement background.
21200
21201 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21202
21203 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21204 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21205 (LIBX): Remove @RSVG_LIBS@.
21206 (LIBES): Add $(RSVG_LIBS).
21207
21208 * image.c (svg_load_image): Blend with specified background if exists.
21209 Use IMAGE_BACKGROUND. Add Mac OS Support.
21210
21211 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21212 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21213 Remove macros.
21214 [MAC_OSX] (socket_callback): Do nothing.
21215 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21216 ReceiveNextEvent.
21217 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21218 socket_callback.
21219 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21220
21221 2007-08-22 Glenn Morris <rgm@gnu.org>
21222
21223 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21224
21225 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21226
21227 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21228
21229 * image.c: Add support for SVG images. Some additional comments
21230 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21231 (svg_image_p): New function to test for SVG image.
21232 (svg_load): New function to load SVG image.
21233 (svg_load_image): New function, helper for svg_load.
21234 (Qsvg): New Lisp_object.
21235 (svg_keyword_index): New enum.
21236 (svg_format): New static `image_keyword' struct.
21237 (svg_type): New static `image_type' struct.
21238 (librsvg/rsvg.h): Include it.
21239
21240 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21241
21242 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21243
21244 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21245
21246 * lread.c (Qold_style_backquotes): New var.
21247 (syms_of_lread): Init and staticpro it.
21248 (load_warn_old_style_backquotes): New fun.
21249 (Fload): Use them to warn about old style backquotes.
21250 (end_of_file_error, Fload): Remove unused vars.
21251
21252 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21253
21254 * lread.c (Vold_style_backquotes): New var.
21255 (syms_of_lread): Init and export it to Elisp.
21256 (read1): Set it when we find an old-style (back)quote.
21257
21258 2007-08-22 Jason Rumney <jasonr@gnu.org>
21259
21260 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21261
21262 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21263
21264 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21265
21266 2007-08-19 Richard Stallman <rms@gnu.org>
21267
21268 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21269
21270 2007-08-19 Andreas Schwab <schwab@suse.de>
21271
21272 * alloc.c (pure): Round PURESIZE up.
21273
21274 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21275
21276 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21277 active frame.
21278
21279 2007-08-16 Richard Stallman <rms@gnu.org>
21280
21281 * eval.c (Fcommandp): Add parens to clarify.
21282
21283 * minibuf.c (Fall_completions): Use enum for type of table.
21284
21285 * emacs.c (USAGE2): Improve text.
21286
21287 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21288
21289 * term.c (tty_default_color_capabilities): Declare static
21290 variables in file scope, to avoid HPUX compiler problem.
21291
21292 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21293
21294 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21295 to gtk_toolbar_insert.
21296
21297 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21298
21299 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21300
21301 * insdel.c (reset_var_on_error): New fun.
21302 (signal_before_change, signal_after_change):
21303 Use it to reset (after|before)-change-functions to nil in case of error.
21304 Bind inhibit-modification-hooks to t.
21305 Don't bind (after|before)-change-functions to nil while they run.
21306
21307 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21308
21309 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21310 filling pixmap with stippled background.
21311
21312 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21313
21314 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21315 Don't use invisible frame as parent window for repositioning.
21316
21317 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21318
21319 * print.c (new_backquote_output): Rename from old_backquote_output.
21320 (print): Inverse its logic (according to its name) so as to match the
21321 behavior of new_backquote_flag in lread.c.
21322
21323 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21324
21325 * gmalloc.c (posix_memalign): New function.
21326
21327 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21328 ActivateControl/DeactivateControl here.
21329 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21330 frame-notice-user-settings is non-nil.
21331 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21332 for kEventParamFMFontStyle.
21333 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21334 mac_pass_command_to_system and mac_pass_control_to_system here.
21335 (XTread_socket): Call ActivateControl/DeactivateControl here.
21336 (XTread_socket) [TARGET_API_MAC_CARBON]:
21337 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21338 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21339 for window repositioning.
21340
21341 2007-08-08 Glenn Morris <rgm@gnu.org>
21342
21343 * Replace `iff' in doc-strings and comments.
21344
21345 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
21346
21347 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21348
21349 2007-08-07 Martin Rudalics <rudalics@gmx.at>
21350
21351 * fileio.c (Finsert_file_contents): Run format-decode and
21352 after_insert_file_functions on entire buffer when REPLACE is
21353 non-nil and inhibit modification_hooks and point_motion_hooks.
21354 For consistency, run after_insert_file_functions iff something
21355 got inserted. Move signal_after_change and update_compositions
21356 after code running after_insert_file_functions. Make sure that
21357 undo_list doesn't record intermediate steps of the decoding process.
21358
21359 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21360
21361 * emacs.c (main)
21362 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21363 Call malloc_enable_thread on interactive startup.
21364
21365 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21366 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21367 [USE_PTHREAD]: Conditionalize with it.
21368 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21369 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21370 New functions.
21371
21372 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
21373
21374 * xdisp.c (redisplay_window): When restoring original buffer
21375 position, make sure it is still valid.
21376
21377 * image.c (png_load): Ignore png-supplied background color.
21378
21379 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21380
21381 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21382 Use kCFAbsoluteTimeIntervalSince1970.
21383
21384 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21385 New variable.
21386 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21387 event loop should be quit.
21388 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21389 Quit dialog event loop if quit_dialog_event_loop is set.
21390
21391 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21392 (Selection): New typedef. Use instead of ScrapRef.
21393 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21394 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21395 (mac_clear_selection): Rename from clear_scrap.
21396 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21397 scrap_has_target_type. All uses changed.
21398 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21399 (mac_selection_has_target_p): New functions.
21400 (mac_put_selection_value): Rename from put_scrap_string.
21401 (mac_get_selection_value): Rename from get_scrap_string.
21402 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21403 (put_scrap_private_timestamp, scrap_has_target_type)
21404 (get_scrap_private_timestamp): Remove functions.
21405 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21406 (x_own_selection, x_get_local_selection):
21407 Use mac_valid_selection_value_p.
21408 (x_own_selection): Don't use put_scrap_private_timestamp.
21409 Record OWNERSHIP-INFO into Vselection_alist instead.
21410 (x_get_local_selection): Don't check type if request is local.
21411 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21412 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21413
21414 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21415
21416 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21417 add comment explaining why.
21418
21419 2007-08-03 Richard Stallman <rms@gnu.org>
21420
21421 * fileio.c (Fvisited_file_modtime): Use make_time.
21422
21423 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21424
21425 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21426 build.
21427
21428 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21429
21430 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21431
21432 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21433
21434 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21435
21436 2007-07-30 Richard Stallman <rms@gnu.org>
21437
21438 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21439
21440 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21441
21442 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21443
21444 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
21445
21446 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21447 remote default-directory.
21448
21449 * buffer.c (mode-line-format): Update doc string.
21450
21451 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21452
21453 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21454 scroll bar gap.
21455 (x_scroll_bar_create): Set bar->fringe_extended_p.
21456 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21457 on frame edge. Check fringe background extension. Don't clear
21458 extended fringe background area.
21459
21460 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21461 (w32_fill_area): Enclose multiple statements with do ... while (0).
21462
21463 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21464 Extend fringe background to scroll bar gap.
21465 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21466 Set bar->fringe_extended_p.
21467 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21468 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21469 background extension. Don't clear extended fringe background area.
21470
21471 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21472 New member fringe_extended_p.
21473
21474 2007-07-25 Glenn Morris <rgm@gnu.org>
21475
21476 * Relicense all FSF files to GPLv3 or later.
21477
21478 * COPYING: Switch to GPLv3.
21479
21480 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21481
21482 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21483
21484 * data.c (Finteractive_form): Check for the presence of an
21485 `interactive-form' symbol property more thoroughly.
21486
21487 * data.c (Finteractive_form): Use an `interactive-form' property if
21488 present, analogous to the function-documentation property.
21489
21490 2007-07-24 Jason Rumney <jasonr@gnu.org>
21491
21492 * w32fns.c (x_real_positions): Get real position from OS instead of
21493 calculating it.
21494
21495 2007-07-23 Jason Rumney <jasonr@gnu.org>
21496
21497 * filelock.c (current_lock_owner): Allow for @ sign in username.
21498
21499 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
21500
21501 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21502 remote default-directory.
21503
21504 * buffer.c (mode-line-format): Describe above case in doc string.
21505
21506 2007-07-20 Eli Zaretskii <eliz@gnu.org>
21507
21508 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21509 Define if not defined.
21510
21511 2007-07-18 Jason Rumney <jasonr@gnu.org>
21512
21513 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21514
21515 2007-07-18 Richard Stallman <rms@gnu.org>
21516
21517 * data.c (Fsetq_default): Doc fix.
21518
21519 * eval.c (Fsetq): Doc fix.
21520
21521 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
21522
21523 * coding.c (Ffind_operation_coding_system):
21524 * eval.c (For, Fand): Doc fixes.
21525 Reported by Johan Bockgård.
21526
21527 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21528
21529 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21530
21531 * xterm.h: Declare x_ewmh_activate_frame.
21532
21533 * xterm.c (x_ewmh_activate_frame): New function.
21534 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21535
21536 2007-07-17 Martin Rudalics <rudalics@gmx.at>
21537
21538 * window.c (Fdisplay_buffer): If largest or LRU window is the
21539 only window, split it even if it is not eligible for splitting.
21540 This restores the original behavior broken by the 2007-07-15
21541 change.
21542
21543 2007-07-17 Glenn Morris <rgm@gnu.org>
21544
21545 * abbrev.c (abbrev_check_chars): New function.
21546 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21547 Call abbrev_check_chars to check abbrev characters are word
21548 constituents. Doc fix.
21549
21550 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21551
21552 * process.c (Fstart_process, Fmake_network_process)
21553 (read_process_output): Fix up last changes.
21554
21555 2007-07-16 Eli Zaretskii <eliz@gnu.org>
21556
21557 * makefile.w32-in (clean): Don't delete *~.
21558
21559 2007-07-16 Andreas Schwab <schwab@suse.de>
21560
21561 * window.c (Fdisplay_buffer): Use NILP.
21562 (Fset_window_scroll_bars): Likewise.
21563
21564 2007-07-15 Martin Rudalics <rudalics@gmx.at>
21565
21566 * window.c (window_min_size_2): New function.
21567 (window_min_size_1, size_window, Fdisplay_buffer)
21568 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21569 windows without mode- or header-lines when window-min-height is
21570 too small.
21571 (size_window): Reset nodelete_p after testing it, following an
21572 earlier note by Kim F. Storm.
21573 (display_buffer): Do not set split_height_threshold to twice the
21574 value of window_min_height to avoid changing the value of a
21575 customizable variable. Rather explicitly check whether the
21576 height of the window that shall be splitted is at least as large
21577 as split_height_threshold.
21578 (Fwindow_full_width_p): New defun.
21579 (syms_of_window): Defsubr it.
21580
21581 * window.h: Add EXFUN for Fwindow_full_width_p.
21582
21583 2007-07-14 Jason Rumney <jasonr@gnu.org>
21584
21585 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21586
21587 2007-07-14 Richard Stallman <rms@gnu.org>
21588
21589 * eval.c (maybe_call_debugger): New function.
21590 (find_handler_clause): Use maybe_call_debugger.
21591 Call it when the handler says `debug'.
21592 Eliminate DEBUGGER_VALUE_PTR.
21593 (Fsignal): Eliminate debugger_value.
21594 (Qdebug): New variable.
21595 (syms_of_eval): Initialize it.
21596
21597 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
21598
21599 * eval.c (Fprogn):
21600 * keyboard.c (Ftrack_mouse):
21601 * print.c (Fwith_output_to_temp_buffer):
21602 * window.c (Fsave_window_excursion): Doc fix.
21603
21604 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21605
21606 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21607
21608 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21609
21610 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21611 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21612 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21613 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21614 Remove unused encoding_carryover.
21615 * process.c: Adjust all functions accordingly.
21616
21617 2007-07-12 Richard Stallman <rms@gnu.org>
21618
21619 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21620
21621 2007-07-11 Jason Rumney <jasonr@gnu.org>
21622
21623 * makefile.w32-in (LIBS): Include OLE32.
21624
21625 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21626 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21627
21628 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21629
21630 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21631 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21632 from a Lisp_Object into a bare pointer.
21633 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21634 Adjust the code correspondingly.
21635
21636 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21637
21638 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21639 (term_show_mouse_face): Remove unused var `j'.
21640 (handle_one_term_event): Remove unused vars `i' and `j'.
21641 Don't cast return value of ttyname since it's not necessary.
21642
21643 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21644
21645 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21646 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21647
21648 * fns.c (map_char_table): Use an array of int for `indices' rather than
21649 an array of Lisp_Objects (which are only ever integers anyway).
21650 (Fmap_char_table): Update caller.
21651 * lisp.h: Update prototype.
21652 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21653 * fontset.c (Ffontset_info):
21654 * casetab.c (set_case_table): Update callers.
21655
21656 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21657
21658 * keymap.c (struct accessible_keymaps_data)
21659 (struct where_is_internal_data): New structures.
21660 (accessible_keymaps_1, where_is_internal_1): Use them to change
21661 interface to adhere to the one used by map_keymap.
21662 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21663 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21664
21665 * keymap.h (map_keymap_function_t): More informative prototype.
21666
21667 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21668
21669 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21670 (looking_at_1): Don't change search_regs and last_thing_searched
21671 if `inhibit-changing-match-data' is non-nil.
21672 (string_match_1, search_buffer, set_search_regs): Likewise.
21673 (syms_of_search): Add Lisp level definition for
21674 `inhibit-changing-match-data' and set it to nil.
21675 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21676 start and end of the match, instead of using values in search_regs.
21677
21678 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21679
21680 * minibuf.c (Fcompleting_read): New value `confirm-only'
21681 for `require-match'.
21682
21683 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21684
21685 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21686 part of the 2007-06-27 change to syms_of_fileio.
21687
21688 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21689
21690 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21691 Check WINDOWP before using XWINDOW. Consolidate return statements.
21692
21693 2007-06-27 Richard Stallman <rms@gnu.org>
21694
21695 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21696
21697 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
21698
21699 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21700
21701 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21702
21703 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21704 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21705 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21706 (_free_internal, memalign): Use them.
21707 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21708 Initialize to PTHREAD_MUTEX_INITIALIZER.
21709 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21710 (morecore_nolock): Rename from morecore. All uses changed.
21711 Use only nolock versions of internal allocation functions.
21712 (_malloc_internal_nolock, _realloc_internal_nolock)
21713 (_free_internal_nolock): New functions created from
21714 _malloc_internal, _realloc_internal, and _free_internal.
21715 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21716 Copy hook value to automatic variable before its use.
21717 (memalign): Copy hook value to automatic variable before its use.
21718
21719 2007-06-26 Kenichi Handa <handa@m17n.org>
21720
21721 * coding.c (Ffind_operation_coding_system): Docstring improved.
21722 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21723
21724 2007-06-25 David Kastrup <dak@gnu.org>
21725
21726 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21727 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21728 cater for additional parameter.
21729
21730 * keymap.h: Adjust number of parameters to `current-active-maps'.
21731
21732 * doc.c (Fsubstitute_command_keys): Adjust call of
21733 `current-active-maps'.
21734
21735 2007-06-25 David Kastrup <dak@gnu.org>
21736
21737 * callint.c (Fcall_interactively): Make the parsing of interactive
21738 specs somewhat more readable.
21739
21740 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21741
21742 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21743 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21744 if extended background has already been filled.
21745
21746 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21747
21748 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21749 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21750
21751 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21752 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21753 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21754 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21755 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21756 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21757 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21758 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21759 Run timers during dialog popup.
21760 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21761
21762 2007-06-21 Jason Rumney <jasonr@gnu.org>
21763
21764 * image.c (convert_mono_to_color_image): Swap fore and background.
21765
21766 2007-06-20 Jason Rumney <jasonr@gnu.org>
21767
21768 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21769 (w32_free_bdf_font): Unmap memory not handle.
21770
21771 2007-06-20 Sam Steingold <sds@gnu.org>
21772
21773 * gmalloc.c (__morecore): Fix the declaration to comply with the
21774 definition.
21775
21776 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
21777
21778 * w32term.c (w32_delete_display): Remove leftover declaration.
21779 (w32_define_cursor, w32_initialize): Make static.
21780
21781 * w32.c (_wsa_errlist): Fix typo in error message.
21782 (init_environment): Ignore any environment variable from the
21783 registry having a null value.
21784
21785 2007-06-20 Glenn Morris <rgm@gnu.org>
21786
21787 * Makefile.in (LIBGIF): Default to -lgif.
21788
21789 2007-06-17 Jason Rumney <jasonr@gnu.org>
21790
21791 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21792 unicode strings.
21793
21794 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
21795
21796 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21797 Fix typo in docstring.
21798
21799 2007-06-16 Eli Zaretskii <eliz@gnu.org>
21800
21801 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21802 and their keybindings.
21803
21804 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
21805
21806 * composite.c (update_compositions): Fix last fix.
21807
21808 2007-06-14 Jason Rumney <jasonr@gnu.org>
21809
21810 * w32.c (get_process_times_fn): New function pointer.
21811 (globals_of_w32): Intialize it if present in kernel32.dll.
21812 (w32_get_internal_run_time): New function.
21813
21814 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21815
21816 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21817
21818 * composite.c (update_compositions): Check the validness of
21819 compositions.
21820
21821 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21822
21823 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21824 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21825
21826 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21827 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21828
21829 * macgui.h (USE_MAC_TOOLBAR): New define.
21830
21831 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21832 Return immediately unless popup is activated.
21833
21834 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21835 background to scroll bar gap.
21836 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21837 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21838 scroll bars on frame edge. Check fringe background extension.
21839 Don't clear extended fringe background area.
21840 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21841 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21842 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21843 [USE_MAC_TOOLBAR]: New macros.
21844 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21845 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21846 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21847 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21848 [USE_MAC_TOOLBAR]: New functions.
21849 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21850 manually if previous repositioning has failed.
21851 (mac_handle_keyboard_event): Use precomputed event kind.
21852 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21853 as tool bar item click. Handle mouse movement over tool bar items.
21854
21855 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21856 toolbar_win_gravity.
21857 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21858 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21859 Add externs.
21860
21861 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21862 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21863
21864 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
21865
21866 * image.c (search_image_cache): Remove unused variable.
21867
21868 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
21869
21870 * xfns.c, xmenu.c: Link to xaw3d if available.
21871
21872 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21873
21874 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21875 frame_foreground and frame_background.
21876
21877 * image.c (lookup_image): Save frame foreground and background colors.
21878 (search_image_cache): Check if saved and current frame colors match.
21879
21880 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21881
21882 * regex.c (regex_compile): Remove the `regnum' counter.
21883 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21884
21885 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21886
21887 * term.c: Include intervals.h to declare Fget_text_property.
21888
21889 2007-06-10 Jason Rumney <jasonr@gnu.org>
21890
21891 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21892
21893 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
21894
21895 * callint.c (Fcall_interactively):
21896 * editfns.c (Fdelete_and_extract_region):
21897 * fileio.c (Fread_file_name):
21898 * fns.c (Fmapconcat):
21899 * keyboard.c (cmd_error_internal):
21900 * keymap.c (Fkey_description):
21901 * lread.c (openp):
21902 * minibuf.c (read_minibuf):
21903 * search.c (wordify):
21904 * sunfns.c (sel_read):
21905 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21906 * xfns.c (x_default_scroll_bar_color_parameter):
21907 * xmenu.c (menu_help_callback):
21908 * xselect.c (Fx_get_atom_name):
21909 * xterm.c (x_term_init): Use empty_unibyte_string.
21910
21911 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21912
21913 * alloc.c (init_strings): Initialize canonical empty strings.
21914 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21915 canonical empty string when the requested size is 0.
21916
21917 * emacs.c (empty_unibyte_string): Rename from empty_string.
21918 (empty_multibyte_string): New canonical empty string.
21919 (syms_of_emacs): Don't initialize empty_string.
21920
21921 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21922 string, if appropriate.
21923 (empty_unibyte_string, empty_multibyte_string): New externs.
21924 (empty_string): Remove extern.
21925
21926 * lread.c (syms_of_lread): Use empty_unibyte_string.
21927
21928 2007-06-07 Jason Rumney <jasonr@gnu.org>
21929
21930 * s/ms-w32.h: Don't define HAVE_TZNAME.
21931
21932 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21933
21934 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21935
21936 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21937
21938 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21939 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21940
21941 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21942 Don't call next handler.
21943 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21944 Remove argument. Install handler to application.
21945 (set_frame_menubar): Don't change deep_p.
21946 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21947 FRAME_OUTER_TO_INNER_DIFF_Y.
21948 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21949 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21950 [HAVE_DIALOGS]: New macros.
21951 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21952 Use them.
21953 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21954
21955 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21956 init_service_handler. All callers changed. Return OSStatus value.
21957
21958 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21959 All callers changed so as not to call SetPortWindowPort.
21960 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21961 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21962 mac_draw_string_common.
21963 (mac_draw_image_string_qd): Likewise.
21964 (mac_draw_string_common): Use them. Add INLINE.
21965 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21966 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21967 GetGlobalMouse.
21968 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21969 and FRAME_OUTER_TO_INNER_DIFF_Y.
21970 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21971 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21972 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21973 repositioning window to mac_handle_window_event.
21974 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21975 saving window location to mac_handle_window_event
21976 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21977 (install_menu_target_item_handler): Remove argument in extern.
21978 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21979 Also accept command events.
21980 (do_keystroke): New function created from XTread_socket.
21981 (init_command_handler): Remove functions.
21982 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21983 and save window location by kEventWindowShowing and kEventWindowHiding
21984 handlers here. Don't call next handler for window state change and
21985 focus events.
21986 (mac_handle_application_event, mac_handle_keyboard_event)
21987 [TARGET_API_MAC_CARBON]: New functions.
21988 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21989 kEventWindowShowing and kEventWindowHiding events. Move installation
21990 of mouse, font, text input and menu target item handlers to
21991 install_application_handler.
21992 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21993 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21994 New function.
21995 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21996 Register it.
21997 (XTread_socket) [TARGET_API_MAC_CARBON]:
21998 Consolidate SendEventToEventTarget calls.
21999 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22000 Move application activation handler to mac_handle_application_event.
22001 Move keyboard handler to mac_handle_keyboard_event.
22002 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22003 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22004 init_command_handler. Call install_application_handler.
22005
22006 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22007 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22008
22009 2007-06-07 Glenn Morris <rgm@gnu.org>
22010
22011 * emacs.c (main): Use `emacs-copyright' in --version output.
22012
22013 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
22014
22015 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22016
22017 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22018
22019 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22020
22021 * macgui.h: Replace WindowPtr with WindowRef.
22022
22023 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22024 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22025 Replace ControlHandle with ControlRef.
22026 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22027
22028 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22029 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22030 Replace ControlHandle with ControlRef.
22031 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22032 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22033
22034 * macterm.h (struct scroll_bar): Rename member control_handle_low
22035 and control_handle_high to control_ref_low and control_ref_high.
22036 All uses changed.
22037 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22038 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22039 respectively. All uses changed.
22040 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22041 (install_window_handler, remove_window_handler): Replace WindowPtr
22042 with WindowRef in externs.
22043
22044 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
22045
22046 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22047
22048 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
22049
22050 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22051
22052 * frame.c (Fmouse_position, Fmouse_pixel_position):
22053 Condition on HAVE_GPM too.
22054
22055 * term.c (term_mouse_highlight): Remove unused variables.
22056 (Fterm_open_connection): Set gpm_zerobased to 1.
22057 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22058 Use zero based co-ordinates.
22059 (handle_one_term_event): Report a drag as mouse movement too.
22060
22061 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22062
22063 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
22064
22065 * image.c (search_image_cache): New function. Require background
22066 color match if background color is unspecified in the image spec.
22067 (uncache_image, lookup_image): Use it.
22068
22069 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
22070
22071 * window.c (Fshrink_window): Reflow docstring.
22072
22073 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
22074
22075 * Version 22.1 released.
22076
22077 2007-06-01 Richard Stallman <rms@gnu.org>
22078
22079 * xfns.c (x_encode_text): Add GCPRO.
22080
22081 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22082
22083 * xfns.c (x_set_name_internal): Save encoded name before
22084 x_encode_text in case string data is relocated.
22085
22086 2007-05-31 Richard Stallman <rms@gnu.org>
22087
22088 * buffer.c (syms_of_buffer): Doc fix.
22089
22090 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
22091
22092 * sysdep.c (init_sys_modes): Add rather than replace with
22093 O_NONBLOCK.
22094
22095 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22096 term_mouse_moveto.
22097
22098 * termhooks.h (term_mouse_moveto): New extern.
22099
22100 * term.c (mouse_face_window): Rename...
22101 (Qmouse_face_window): ...to this.
22102 (term_show_mouse_face, term_clear_mouse_face)
22103 (term_mouse_highlight): Use Qmouse_face_window.
22104 (term_mouse_moveto): New function.
22105 (term_mouse_position): Make it work.
22106 (syms_of_term): Uncomment assignment to mouse_position_hook.
22107 Staticpro Qmouse_face_window.
22108
22109 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22110
22111 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22112 around current_column call.
22113
22114 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22115
22116 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22117 * xdisp.c (next_element_from_buffer):
22118 * window.c (delete_window):
22119 * term.c (term_mouse_highlight):
22120 * msdos.c (getdefdir):
22121 * macterm.c (mac_create_bitmap_from_bitmap_data)
22122 (init_font_name_table):
22123 * fns.c (Fsxhash):
22124 * data.c (Fmake_local_variable):
22125 * ccl.c (ccl_driver): Likewise.
22126
22127 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22128
22129 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22130 Call mac_wakeup_from_rne on window size change.
22131
22132 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
22133
22134 * image.c (uncache_image): Fix typo.
22135
22136 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22137
22138 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22139
22140 2007-05-22 Richard Stallman <rms@gnu.org>
22141
22142 * xterm.c (x_connection_closed): Remove NO_RETURN.
22143
22144 2007-05-22 Martin Rudalics <rudalics@gmx.at>
22145
22146 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22147
22148 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
22149
22150 * image.c (uncache_image): New function.
22151 (Fimage_refresh): New function.
22152
22153 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22154
22155 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22156
22157 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22158
22159 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22160 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22161
22162 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22163
22164 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22165 conditional on [HAVE_GPM_H].
22166
22167 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22168
22169 * syntax.c (skip_chars): Update syntax-table only after we checked that
22170 the new location is valid.
22171
22172 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22173
22174 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22175 mac_get_window_bounds.
22176
22177 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22178
22179 * Makefile.in (LIBGPM): Allow it to be set from configure.
22180 If set then link Emacs with it.
22181
22182 * config.in: Regenerate.
22183
22184 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22185 New externs.
22186
22187 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22188 Include gpm.h.
22189 (handle_one_term_event, term_gpm): New externs.
22190
22191 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22192 and allow it to be interrupted by SIGIO.
22193
22194 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22195 (wait_reading_process_output): Wait on gpm_fd too.
22196 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22197 (add_gpm_wait_descriptor_called_flag): New variable.
22198 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22199
22200 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22201 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22202 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22203 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22204 (make_lispy_event): Add case GPM_CLICK_EVENT.
22205 (read_avail_input): Handle mouse input.
22206
22207 * term.c (write_glyphs_with_face): New function.
22208 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22209 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22210 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22211 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22212 (last_mouse_x, last_mouse_y): New variables.
22213 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22214 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22215 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22216 (Fterm_close_connection): New functions.
22217 (term_init): Initialise mouse_face_window.
22218
22219 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
22220
22221 * xdisp.c (redisplay_window): If first window line is a
22222 continuation line, recompute the new window start instead of
22223 recentering.
22224
22225 2007-05-18 Glenn Morris <rgm@gnu.org>
22226
22227 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22228 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22229
22230 2007-05-17 Glenn Morris <rgm@gnu.org>
22231
22232 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22233
22234 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22235
22236 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22237 dead key repeat and up events.
22238
22239 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
22240
22241 * image.c (pbm_load): Check image size for monochrome pbm.
22242
22243 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
22244
22245 * xterm.c (XTread_socket): Revert last change.
22246
22247 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
22248
22249 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22250
22251 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22252
22253 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22254
22255 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22256 mixup (YAILOM).
22257
22258 2007-05-07 Andreas Schwab <schwab@suse.de>
22259
22260 * keymap.c (Flookup_key): Fix typo in last change.
22261
22262 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22263
22264 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22265 mapping for unibyte strings.
22266
22267 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22268
22269 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22270 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22271
22272 2007-04-29 Richard Stallman <rms@gnu.org>
22273
22274 * insdel.c (replace_range): For undo, record insertion first.
22275
22276 2007-04-29 Andreas Schwab <schwab@suse.de>
22277
22278 * lisp.h (VECSIZE): Use OFFSETOF.
22279
22280 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22281
22282 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22283 disabled lines.
22284
22285 2007-04-28 Richard Stallman <rms@gnu.org>
22286
22287 * lread.c (read_escape): In a string, \s is always space.
22288
22289 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22290
22291 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22292
22293 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22294 submenu for menu bar items.
22295
22296 See ChangeLog.10 for earlier changes.
22297
22298 ;; Local Variables:
22299 ;; coding: utf-8
22300 ;; add-log-time-zone-rule: t
22301 ;; End:
22302
22303 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
22304
22305 This file is part of GNU Emacs.
22306
22307 GNU Emacs is free software: you can redistribute it and/or modify
22308 it under the terms of the GNU General Public License as published by
22309 the Free Software Foundation, either version 3 of the License, or
22310 (at your option) any later version.
22311
22312 GNU Emacs is distributed in the hope that it will be useful,
22313 but WITHOUT ANY WARRANTY; without even the implied warranty of
22314 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22315 GNU General Public License for more details.
22316
22317 You should have received a copy of the GNU General Public License
22318 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22319
22320 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40